* tmac/unicode.tmac: Remove definitions for non-spacing entities.
[s-roff.git] / ChangeLog
blobff8c1a07d7a691e32101970e9f1f8643b4f02b20
1 2005-03-25  Werner LEMBERG  <wl@gnu.org>
3         * configure.ac: Undo change from 2005-03-24.
4         * configure: Regenerated.
6 2005-03-24  Werner LEMBERG  <wl@gnu.org>
8         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
9         (dist): Search Makefile while descending into $(EXTRADIRS).
11         * doc/Makefile.in (.PHONY): Add.
12         (clean): Don't remove *.png and *.eps.
13         Don't handle *.gif.
14         (realclean): Remove *.png and *.eps.
15         (extraclean): Depend on distclean.
17         * configure.ac: Add copyright.
18         Handle contrib/pdfmark/Makefile.
20         * configure: Regenerated.
22 2005-03-18  Larry Kollar  <kollar@alltel.net>
24         Add numbered and definition lists to www.tmac.
26         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
27         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
28         auxiliary string registers.
29         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
30         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
31         (www-level): Removed.
32         (www-level1, www-level2, www-level3): Initialize to empty.
33         (www-level0, www-level4, www-level5, www-level6, www-level7,
34         www-level8, www-level9): New string registers.
35         (www-push-li, www-pop-li): New macros.
36         (www-push-level, www-pop-level): Renamed to...
37         (www-push-ul-level, www-pop-ul-level): This.
38         Updated.
39         (www-push-ol-level, www-pop-ol-level): New macros.
40         (ULS, ULE): Updated.
41         (OLS, OLE, DLS, DLE): New user macros.
42         (LI): Removed.  It is aliased to one of...
43         (www-li-ul, www-li-ol, www-li-dl): New macros.
45         * tmac/groff_www.man: Document new macros.
47         * NEWS: Updated.
49 2005-03-18  Werner LEMBERG  <wl@gnu.org>
51         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
52         doc-operating-system-NetBSD-2.0.2): New strings.
54         * tmac/groff_mdoc.man: Updated.
56 2005-03-17  Werner LEMBERG  <wl@gnu.org>
58         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
60 2005-03-17  Werner LEMBERG  <wl@gnu.org>
62         * src/libs/libgroff/hypot.c: Renamed to...
63         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
65         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
67         * src/include/lib.h: Updated.
69 2005-03-16  Werner LEMBERG  <wl@gnu.org>
71         Add workaround for broken hypot() on Interix.
73         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
75         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
76         (CSRCS): Add `hypot.c'.
78         * src/include/lib.h: Declare `groff_hypot'.
80         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
81         Use `groff_hypot'.
83         * src/preproc/pic/pic.h: Don't declare `hypot'.
85         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
87 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
89         * src/devices/grohtml/post-html.cpp
90         (html_printer::lookahead_for_tables): End .ce properly to avoid a
91         segfault.
93 2005-03-15  Werner LEMBERG  <wl@gnu.org>
95         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
97         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
99         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
101 2005-03-14  Werner LEMBERG  <wl@gnu.org>
103         Add Cyrillic support to devutf8 and devhtml.
105         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
107         * tmac/unicode.tmac: New file.
109         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
111         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
113         * NEWS: Updated.
115 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
117         * src/libs/libdriver/printer.cpp (check_for_output_error): New
118         function.  It has been introduced to catch peculiar error contexts
119         on MS-Windows platforms.
121 2005-02-28  Werner LEMBERG  <wl@gnu.org>
123         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
124         null pointer.
126         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
128         * configure: Regenerated.
130         * NEWS: Updated.
132 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
134         Integrate `pdfmark' into normal groff build system;
135         install macro `pdfmark' packages, build and install `pdfroff',
136         and PDF format documentation.
138         * Makefile.comm: Add PDFDOCDIR.
140         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
141         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
142         (unstall_dirs): Add pdfdocdir.
144         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
145         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
146         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
147         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
148         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
149         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
150         set ALT_AWK_PROGS.
151         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
152         use of GROFF_AWK_PREFS.
153         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
154         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
156         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
157         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
158         also by modified GROFF_HTML_PROGRAMS).
160 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
162         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
163         paragraph spacing.
164         (html_text::done_para): Unset `start_space'.
165         (html_text::remove_para_align): Call `retrieve_para_space' for the
166         spacing.
168         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
169         `seen_space'.
170         (html_printer::do_check_center): Emit vertical space if necessary.
172         * src/roff/troff/env.cpp (environment_switch): Preserve
173         `seen_space', `seen_eol', and `suppress_next_eol' while switching
174         environments.
176         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
177         `is_special'.
179 2005-02-20  Werner LEMBERG  <wl@gnu.org>
181         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
182         eqn.
184 2005-02-17  Werner LEMBERG  <wl@gnu.org>
186         * doc/pic.ms, man/groff.man: Fix typos.
188         * doc/groff.texinfo: Fix typos.
189         (\LEmacro): Get proper mathematical spacing.
191 2005-02-16  Werner LEMBERG  <wl@gnu.org>
193         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
194         * configure: Regenerated with autoconf 2.59b.
196 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
198         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
199         html_printer::start_font): Fix handling of preformatted text.
201 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
203         These patches modify the indentation implementation to use `<p
204         style=margin-left: n%>'.  Many thanks to Peter and Larry for
205         suggesting this solution.  Grohtml only uses tables for `.IP' and
206         related tags when the first operand has a short width.
208         Similarly, they modify all vertical space code.  By default, grohtml
209         sets up a style sheet which uses no vertical space between `table',
210         `pre', and `p' tags.  It forces spaces when it needs them using
211         `style="margin-top: 1em"'.
213         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
214         (html_table::emit_table_header, html_table::emit_new_row):
215         Rewritten.
216         (html_table::set_space): New function.
217         (html_indent::html_indent): Don't set `is_used'.
218         (html_indent::begin): Rewritten.
219         (html_indent::end): Remove code in function.
221         * src/devices/grohtml/html-table.h: Updated.
222         (html_table): Make `out' public.
224         * src/devices/grohtml/html-text.cpp (html_text::html_text):
225         Initialize `start_space' with FALSE.
226         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
227         (html_text::issue_tag): Add argument to handle space style.
228         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
229         (html_text::flush_text): Don't set `start_space'.
230         (html_text::push_para): Don't set `p->really_issued'.
231         (html_text::do_emittext): Updated.
232         (html_text::do_para): Add paremeter to handle space.
233         Update all callers.
234         (html_text::retrieve_para_space): New function.
236         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
237         (tag_definition): Remove `really_issued'.
238         (html_text): Updated.
240         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
241         `current_column' and `row_space'.
242         Update constructor.
243         (html_printer::emit_raw, html_printer::write_header,
244         html_printer::do_indent, html_printer::do_check_center,
245         html_printer::do_tab_ts): Handle vertical space.
246         (html_printer:do_tab_te, html_printer::do_end_para): Call
247         `remove_para_space'.
248         (html_printer::do_col): Rewritten.
249         (html_printer::flush_globs): Remove debugging code.
250         (html_printer::is_line_start): New function.
251         (html_printer::start_font): Use `is_line_start'.
252         (html_printer::writeHeadMetaStyle): New function.
253         (html_printer::do_file_components, html_printer::~html_printer):
254         Call `writeHeadMetaStyle'.
256         * tmac/www.tmac (www-handle-percent): New macro.
257         (MPIMG): Handle percent values for width and height parameters.
258         (DC): Updated.
260         * tmac/groff_www.man: Updated.
262 2005-02-14  Werner LEMBERG  <wl@gnu.org>
264         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
265         $psname and $italic_angle.
266         Immediately restart file input loops if `split' returns an empty
267         array.
269 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
270             Werner LEMBERG  <wl@gnu.org>
272         Update afmtodit to better support Unicode (Michail).
273         Update afmtodit to use Perl 5 syntax (Werner).
275         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
276         `Getopts::Std'.
277         Decorate variables with `my' where necessary.
278         Use `defined' where necessary to avoid warnings.
279         Don't use `do' for subroutine calls.
280         Other minor syntax updates.
281         Check for both `uXXXX[X[X]]' and `uniXXXX'.
282         Handle glyph variants properly.
283         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
284         strings.
286         * src/utils/afmtodit/afmtodit.man: Updated.
288 2005-02-13  Werner LEMBERG  <wl@gnu.org>
290         Make groff.texinfo work with texinfo 4.8.
292         * doc/groff.texinfo (@Var): Use @r and @slanted.
293         (@defdummy, @Def*): Use @c to avoid empty lines.
294         (\angles): Replaced with...
295         (\Langlemacro, \Ranglemacro): New TeX macros.
296         (@Langlemacro, @Ranglemacro): New variables defined with @set.
297         (@angles): Use @Langlemacro and @Ranglemacro.
298         (\LE): Replaced with...
299         (\LEmacro): New TeX macro.
300         (@LEmacro): New variable defined with @set.
301         (@LE): Use @LEmacro.
302         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
303         variables defined with @set.
304         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
305         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
306         Update all callers.
308         Other minor updates.
310         * doc/texinfo.tex: Update to texinfo version 4.8.
312         * README.CVS: Updated.
314 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
316         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
317         and `FAM' registers.
319 2005-02-05  Werner LEMBERG  <wl@gnu.org>
321         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
322         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
323         Update BSD license.
325 2005-02-01  Werner LEMBERG  <wl@gnu.org>
327         * src/roff/groff/groff.man: Add information about paper size.
329 2005-01-25  Werner LEMBERG  <wl@gnu.org>
331         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
332         NetBSD bin/29114.
334 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
336         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
337         cases.
338         (Re): Emit a warning if called without `.Rs'.
339         (doc-finish-reference): Use parameter for decreasing
340         `doc-reference-count'.
341         (doc-print-reference): Pass specific count parameters to
342         `doc-finish-reference'.
344 2005-01-21  Werner LEMBERG  <wl@gnu.org>
346         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
347         Reset pointers to zero after deallocation.  This fixes a crash
348         if a driver is called with multiple input files.  Reported by
349         Ken Chilton <ken@chiltonfamily.org>.
351         * src/devices/grops/grops.man: Add more info on DSC.
353 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
355         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
356         Remove dead code.
358 2005-01-17  Werner LEMBERG  <wl@gnu.org>
360         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
361         against division by zero.
363 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
365         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
367 2004-12-19  Werner LEMBERG  <wl@gnu.org>
369         * install-sh: New version; taken from texinfo CVS.
371 2004-12-17  Werner LEMBERG  <wl@gnu.org>
373         * tmac/devtag.tmac: Protect against loading twice.
374         Protect agains compatibility mode.
375         * tmac/www.tmac: Protect against loading twice.
376         Load `devtag.tmac' before switching off compatibility mode.
377         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
379 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
381         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
382         * configure: Updated.
384 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
386         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
388 2004-12-15  Werner LEMBERG  <wl@gnu.org>
390         Make `test-groff' work again -- previously, wrong paths have been
391         used.  Additionally, it can now be called from anywhere.
393         * test-groff.in: Don't test for groff binary.  This is no longer
394         necessary since the proper paths are determined by `configure'.
395         (EXEEXT): Removed.  No longer used.
396         (srcdir, builddir): Use values provided by the configure script.
397         (XENVIRONMENT): Updated.
399         * INSTALL: Updated.
401 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
403         Make .tag and .taga work for all devices (but only grohtml actually
404         handles them).
406         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
407         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
408         html_printer::handle_assertion): Don't use hard-coded string
409         lengths.
410         (html_printer::lookahead_for_table): Reset `tbl' properly if
411         necessary.
412         (html_printer::devtag): New function, handling `devtag'.
413         (html_printer::special): Don't handle `html-tag'.
415         * src/include/printer.h, src/libs/libdriver/printer.cpp
416         (printer::devtag): New virtual function.
418         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
419         `devtag'.
421         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
422         src/roff/troff/node.cpp: s/html-tag/devtag/.
424         * src/roff/troff/input.cpp (tag, taga): Always call
425         curenv->add_node.
427         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
428         macros instead of HTML-TAG*.
430         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
432         * tmac/www.tmac: Load devtag.tmac.
433         Replace HTML-TAG* macros with DEVTAG* macros.
434         (HTML, HTML-NS): Changed definitions.
435         (URL): Use HTML-NS.
436         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
438         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
440 2004-12-10  Werner LEMBERG  <wl@gnu.org>
442         Import Mike's `gdiffmk' package.
444         * contrib/gdiffmk/*: New files.
445         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
446         * NEWS: Updated.
448 2004-12-08  Werner LEMBERG  <wl@gnu.org>
450         Import Keith's `pdfmark' package.  Integration is very preliminary.
452         * contrib/pdfmark/*: New files.
453         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
454         * NEWS: Updated.
456 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
458         Fix a bug with title handling in HTML.
460         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
461         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
462         length.
463         (html_printer::handle_tag_within_title): New function.
464         (html_printer::do_title): Use it.
466         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
467         (cov*tl-au-print): Emit `.eo.tl' tag.
469 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
471         * man/groff_char.man: Minor imrovements.
473 2004-12-04  Werner LEMBERG  <wl@gnu.org>
475         * src/preproc/eqn/eqn.man: Revised.
477 2004-11-25  Werner LEMBERG  <wl@gnu.org>
479         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
480         groff source files.
481         Include config.h.
482         Include limits.h.
483         Remove X_NOT_STDC_ENV conditional.
484         (Version_string, program_name): New global variables.
485         (groff_flag): Removed.
486         (MapFont): Updated.
487         (usage): Take a stream as argument.
488         Use `program_name'.
489         Update all callers.
490         (main): Add `long_options' array for `--help' and `--version'.
491         Make `-g' a dummy option.
492         Handle `-v' and unknown options.
493         Remove unused `position' variable.
495         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
496         (XLIBS): Add LIBGROFF.
498         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
499         New files.
501         * src/devices/xditview/Dvi.c (default_font_map): Split into three
502         parts to avoid compiler warning.
503         (resources): Don't initialize with `default_font_map'.
504         (ClassInitialize): Initialize first element of `resources'.
506         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
507         Removed.
509         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
510         src/utils/pfbtops/pfbtops.man: Revised, updated.
512         * configure.ac: Generate src/utils/xtotroff/Makefile.
513         * configure: Regenerated.
515 2004-11-24  Werner LEMBERG  <wl@gnu.org>
517         First fixes to get produce HTML.
519         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
520         attribute.
522         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
523         (HR, LI): Use `HTML</p>', not `HTML'.
525         * doc/webpage.ms: Minor updates.
527 2004-11-23  Larry Kollar  <kollar@alltel.net>
529         Add option -S grohtml to determine the file split level.
531         * src/devices/grohtml/post-html.cpp (split_level): New global
532         variable.
533         (html_header::determine_header_level): Use split_level.
534         (main): Handle `-S' command line option.
535         Sort options.
537         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
539         * src/devices/grohtml/grohtml.man: Document it.
540         Sort options.
542         * NEWS: Document it.
544 2004-11-23  Y T  <doarhop@hotmail.com>
546         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
547         the volume and number refer entries.
549 2004-11-22  Werner LEMBERG  <wl@gnu.org>
551         * src/devices/grohtml/html-table.cpp
552         (html_table::emit_table_header): Don't emit `cols' attribute which
553         doesn't exist in HTML 4.0 and is thus invalid.
555         * NEWS: More minor fixes and updates.
557 2004-11-18  Werner LEMBERG  <wl@gnu.org>
559         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
560         (HTML</p>): Minor clean-up.
562         * tmac/groff_www.man: Updated.
564         * src/devices/grohtml/grohtml.man: Revised and updated.
566         * NEWS: Updated.
568 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
570         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
571         Fix space insertion.
572         (html_printer::do_links): Fix rules generation around automatic
573         heading links.
575         * tmac/www.tmac (LK): Use HTML-TAG-NS.
576         (HR): Simplify.
577         No longer emit empty line for non-HTML devices.
579 2004-11-17  Werner LEMBERG  <wl@gnu.org>
581         * doc/Makefile.in (prepare_examples, webpage.html): Handle
582         `groff.css'.
584         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
585         prepare_examples, webpage.html): Handle `groff.css'.
587 2004-11-15  Werner LEMBERG  <wl@gnu.org>
589         * NEWS, README, doc/webpage.ms: Updated.
591         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
593 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
595         * src/include/printer.h (printer): Remove virtual function
596         `round_width'.
597         Update all source files.
599         * src/devices/grohtml/post-html.cpp (html_printer): New member
600         function `round_width'.
602 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
604         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
605         column key letter suffix.
607 2004-10-14  Werner LEMBERG  <wl@gnu.org>
609         * Makefile.in (check): Depend on `site.exp' and `docheck'.
610         (docheck): Run dejagnu's `runtest' if it exists.
611         (site.exp): Create dejagnu configuration file.
613         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
615 2004-10-13  Werner LEMBERG  <wl@gnu.org>
617         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
618         src/devices/grohtml/post-html.cpp (make_val,
619         html_printer::handle_state_assertion): Fix compiler warnings.
621         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
622         (diversion::diversion): Fix order of initializers.
624         * src/roff/troff/div.h: Don't include `mtsm.h'.
626         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
627         (environment::environment): Fix order of initializers.
628         (environment::make_tag, environment::construct_format_state): Fix
629         compiler warnings.
631         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
632         (input_iterator::input_iterator, macro::macro): Fix order of
633         initializers.
635         * src/roff/troff/mtsm.cpp: Include only necessary header files.
636         (state_set::add, state_set::val): Fix compiler warnings.
638         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
639         (bool_value_state, int_value_state, units_value_state,
640         string_value_state): Remove comma after last element which causes
641         an error with g++ 3.3.3.
643         * src/roff/troff/node.cpp: Include `stringclass.h'.
644         (hline_node::hline_node, vline_node::vline_node,
645         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
646         warnings.
647         (zero_width_node::zero_width_node): Fix order of initializers.
649         * src/roff/troff/node.h: Don't include `mtsm.h'.
650         (hmotion_node): Fix compiler warnings.
652         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
654 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
656         * doc/groff.css: New file.
658         * doc/webpage.ms: Use `groff.css'.
659         Other small fixes.
661         * tmac/an-old.tmac (need_eo_h): New number register.
662         (TH): Emit `.eo.tl' tag after title.
663         (SH): Set `need_eo_h'.
664         (an-trap): Handle `need_eo_h'.
665         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
667         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
668         (TL): Always start diversion.
669         Updated.
670         (@AI): Always call `par@reset'.
671         (@AB): Update code for -Thtml.
672         (cov*tl-au-print): Handle -Thtml.
673         (par@reset): Handle `need_eo_tl', `need_eo_h'.
674         (@IP): Simplified.
675         (@IT-html): Removed.
676         (@SH): Set `need_eo_h' for -Thtml.
677         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
678         Set `need_eo_tl'.
679         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
680         Set `need_eo_h' for -Thtml.
681         (@EQ, @EN): Don't handle -Thtml specially.
682         (par@load-init): Don't handle -Thtml specially.
684         * tmac/www.tmac (www:paraspace): New macro.
685         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
686         (HTML</p>, HTML-TAG-NEXT): New macros.
687         (HnE): Emit tag `.eo.h' instead of break.
688         (HR): s/HTML-NS/HTML/.
689         (www-end-nowhere): End diversion only if `www-html' not set.
690         Emit `.eo.tl' tag.
691         (ULS, ULE): s|HTML|HTML</p>|.
692         (LI): Call `www:paraspace'.
693         (HEAD): New macro.
695 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
697         * src/roff/troff/request.h (macro): Make `p' public.
698         New variable `is_a_diversion'.
699         New member function `is_diversion'.
702         * src/devices/grohtml/html.h (simple_output): New member function
703         `force_nl'.
705         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
706         computation of `total'.
707         (tabs::check_init): New function.
708         (html_table::emit_table_header): Emit style data.
709         (html_table::insert_column): Improved.
711         * src/devices/grohtml/html-table.h: Updated.
713         * src/devices/grohtml/html-text.cpp (html_text::html_text):
714         Initialize `start_space' with TRUE.
715         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
716         cases.
717         (html_text::flush_text): Set `start_space' flag.
718         (html_text::uses_indent, html_text::remove_para_space,
719         html_text::get_alignment): New functions.
720         (html_text::push_para): Updated.
721         (html_text::do_para): Check for empty argument.
722         Don't set `space_emitted'.
723         (html_text::do_space, html_text::emit_space): Updated.
725         * src/devices/grohtml/html-text.h (tag_definition): New variable
726         `really_issued'.
727         (html_text): New member function `uses_indent', `remove_para_space',
728         `get_alignment'.
730         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
731         function.
732         (simple_output:nl): Always emit `\n'.
734         * src/devices/grohtml/post-html.cpp: Include `string.h'.
735         (BASE_POINT_SIZE): Removed.
736         (base_point_size, head_info): New global variables.
737         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
738         `is_eo_h'.
739         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
740         tags, respectively.
741         (page::add_and_encode): Pass additional parameter for tag flag.
742         (assert_pos): New structure.
743         (assert_state): New class.
744         (html_printer): Remove `indentation', `prev_indent'.
745         Add variables `troff_indent', `device_indent', `temp_indent'.
746         Add variables `seen_indent', `next_indent', `seen_pageoffset',
747         `next_pageoffset', `seen_linelenght', `next_linelength',
748         `seen_center', `next_center', `seen_space', `seen_break', `as'.
749         Add member functions `do_check_center', `do_space', `do_head',
750         `get_troff_indent', `restore_troff_indent', `handle_assertion',
751         `handle_state_assertion', `do_end_para', `set_char_and_width'.
752         Change argument to `do_fill' to `char *'.
753         Update constructor.
754         (html_printer::emit_raw): Call `shutdown_table'.
755         Use new functions.
756         (html_printer::do_center): Simplified.
757         (html_printer::do_title): Improved.
758         (html_printer::write_header): Emit one more newline.
759         Use new functions.
760         (html_printer::do_heading, html_printer::do_indent,
761         html_printer::do_eol, html_printer::do_tab_ts,
762         html_printer::do_tab, html_printer::do_tab0,
763         html_printer::calc_po_in, html_printer::next_horiz_pos,
764         html_printer::remove_courier_tabs,
765         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
766         Updated.
767         (html_printer::do_linelength, html_printer::do_pageoffset,
768         html_printer::do_indentation, html_printer::do_tempindent,
769         html_printer::do_tab_te): Simplified.
770         (html_printer::do_pointsize): Check whether point size is really
771         associated a `.tl' tag.
772         (html_printer::do_break): Rewritten.
773         (html_printer::troff_tag): Improved.
774         (html_printer::flush_globs): Updated.
775         (html_printer::lookahead_for_tables): Handle `is_br'.
776         Use new functions.
777         (html_printer::set_char): Check `sbuf_style.f'.
778         (html_printer::write_navigation): Use string comparison.
779         (html_printer::~html_printer): Emit `head_info'.
780         (html_printer::special): Rewritten.
781         (get_str, make_val): New functions.
782         (main): New option `s' to set the base point size.
784         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
786 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
788         * src/roff/troff/node.cpp: New extern `debug_state'.
789         Include `stringclass.h' and `mtsm.h'.
790         Implement new classes and class members from `node.h'.
791         (real_output_file): Make `fp' public.
792         (troff_output_file): New variables `cur_div_level' and `tag_list'.
793         Update constructors.
794         (troff_output_file::really_print_line): Check whether we should push
795         the current troff state and use the state at the start of the
796         invocation of this diversion.
797         (troff_output_file::add_to_tag_list): New member function.
798         (node::add_char): Handle `glyph_comp_np'.
800         * src/roff/troff/node.h: Include `mtsm.h'.
801         (node): New variables `state', `push_state', `div_nest_level',
802         `is_special'.  Update constructors, all descendants.
803         Pass additional argument to `add_char' member function.
804         New virtual member functions `is_tag', `debug_node',
805         `debug_node_list'.  Update all descendants.
806         (tag_node): New class for handling tags.
807         (output_file): Add variable `state'.
809 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
811         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
812         providing a minimal troff state machine to emit meta tags for the
813         post-grohtml device driver.
815         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
816         files.
818 2004-10-09  Werner LEMBERG  <wl@gnu.org>
820         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
822 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
824         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
826         * src/roff/troff/div.h: Include `mtsm.h'.
827         (diversion): New variables `any_chars_added', `needs_push',
828         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
829         `saved_suppress_next_eol', `modified_tag'.
830         New virtual member function `is_diversion'.  Update all descendants.
832         * src/roff/troff/div.cpp (diversion::diversion,
833         macro_diversion::macro_diversion): Updated.
834         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
835         `suppress_next_eol'.
836         (top_level_diversion::space): Handle `curenv->seen_space'.
837         (page_offset): Update tag handling.
838         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
840         * src/roff/troff/env.h (environment): Make `tabs' public.
841         Remove `ignore_next_eol', `emitted_node'.
842         Update `output_line', `output'.
843         New variables `seen_space', `seen_eol', `suppress_next_eol',
844         `seen_break'.
845         New member functions `construct_state', `make_tag',
846         `construct_format_state, `construct_new_line_state,
847         `dump_troff_state'.
848         Remove `add_html_tag', `make_html_tag'.
850         * src/roff/troff/env.cpp: New externs `suppress_push',
851         `get_diversion_state', `global_diverted_space'.
852         (pending_output_line): New variable `was_centered'.
853         Update constructor and all callers.
854         (pending_output_line::output): Call `curenv->construct_format_state'.
855         (environment::environment, environment::copy): Updated.
856         (environment::output): Handle `was_centered'.
857         (environment::add_char): Handle construct and diversion state.
858         (environment::add_node): Handle construct state.
859         (environment::newline): Handle `was_centered'.
860         (environment::output_line): Updated.
861         (environment::possibly_break_line): Updated.
862         Update tag handling.
863         (environment::add_html_tag): Replaced with...
864         (environment::make_tag): New function.
865         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
866         (environment::dump_troff_state): New debugging function.
867         (environment::construct_state, environment::construct_format_state,
868         environment::construct_new_line_state): New functions.
869         (environment::do_break): Updated.
870         Handle `global_diverted_space'.
871         (environment::handle_tag): Update tag handling.
872         (point_size, fill, do_break_request): Don't call `add_html_tag'.
873         (no_fill): Don't call `add_html_tag'.
874         Set `suppress_next_eol'.
875         (center, right_justify, line_length, indent, temporary_indent,
876         set_tabs):
877         Update tag handling.
879         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
880         (input_iterator): New variables `is_diversion', `diversion_state'.
881         Update constructors.
882         (input_stack): New member functions `get_div_level',
883         `get_diversion_state', `check_end_diversion'.
884         New variables `div_level', `diversion_state'.  Initialize them.
885         (suppress_push, global_diverted_space): New global variables.
886         (input_stack::finish_get, input_stack::finish_peek,
887         input_stack::remove_boundary, input_stack::end_file,
888         input_stack::clear, input_stack::pop_macro): Call
889         `check_end_diversion'.
890         (input_stack::push): Handle `div_level' and `diversion_state'.
891         (get_diversion_state): New function.
892         (diverted_space_node::reread): Handle `global_diverted_space'.
893         (macro::macro): Update constructors.
894         (macro::is_diversion): New function.
895         (macro::operator=): Set `is_a_diversion'.
896         (string_iterator): New member function `is_diversion'.
897         (string_iterator::string_iterator): Update constructors.
898         (string_iterator::fill): Set `div_nest_level'.
899         (macro_iterator): New member function `is_diversion'.
900         (do_if_request): Handle `suppress_push'.
901         (tag, taga): New functions.
902         (init_input_requests): Add `tag' and `taga' requests.
904 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
906         * src/include/font.h (font): New member function
907         `get_image_generator'.
908         New variables `unscaled_charwidths' and `image_generator'.
910         * src/libs/libgroff/font.cpp (font::get_width): Always return the
911         character's unscaled width if `font::unscaled_charwidths' is set.
912         (font::get_image_generator): New function.
913         (font::load_desc): Check the `unscaled_charwidths' and
914         `image_generator' keywords.
916         * src/libs/libgroff/fontfile.cpp: Initialize
917         `font::unscaled_charwidths' and `font::image_generator'.
919         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
921         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
923         * man/groff_font.man: Document `unscaled_charwidths' and
924         `image_generator'.
926         * src/preproc/html/pre-html.cpp: Include `device.h'.
927         (image_gen): New global variable.
928         (imageList::createPage): Use `image_gen'.
929         (main): Use `image_generator' keyword.
931 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
933         * tmac/html.tmac: Handle \[sqrtex].
935 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
937         * src/include/printer.h (printer): New virtual method `round_width'.
939         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
940         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
941         src/devices/grotty/tty.cpp (printer::round_width): New function
942         member.
944         * src/devices/grohtml/post-html.cpp (printer::round_width): New
945         function member.
946         (html_printer::set_numbered_char): Use it.
948 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
950         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
952         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
954         * configure: Regenerated.
956         * Makefile.in (GHOSTSCRIPT): New variable.
957         (MDEFINES): Add GHOSTSCRIPT.
959 2004-10-03  Werner LEMBERG  <wl@gnu.org>
961         * INSTALL.gen: Updated (taken from texinfo CVS).
963 2004-09-28  Werner LEMBERG  <wl@gnu.org>
965         * NEWS: Updated.
967 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
969         * tmac/groff_www.man: Revised and updated.
971 2004-09-26  Werner LEMBERG  <wl@gnu.org>
973         Fix \$@ and \$* to handle any number of arguments.
975         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
976         characters.
978         * src/roff/troff/input.cpp (input_iterator::internal_level):
979         Removed.
980         (input_stack): New member functions `increase_level' and
981         `decrease_level'.
982         (input_stack::get_level): Don't use `internal_level'.
983         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
984         (end_quote_iterator): Completely removed.
985         (interpolate_arg): Build string for \$@ and \$* which is then
986         pushed onto the input stack.
988 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
990         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
991         2004-09-19.
993 2004-09-23  Werner LEMBERG  <wl@gnu.org>
995         * tmac/an-old.tmac (ne): Using default scaling operator.
997 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
999         This change implements the following features:
1001         PORPHANS
1002           New numeric register: Defines number of lines following LP, PP,
1003           QP, IP or XP, which must be kept together, before any automatic
1004           page break.  If insufficient space remains on the current page, a
1005           page break is forced before the new paragraph begins.
1007         HORPHANS
1008           New numeric register: Sets number of lines of following paragraph
1009           which must be kept with a heading, defined by NH or SH, before any
1010           automatic page break.  If insufficient space remains on the
1011           current page, a page break is forced before the heading.
1013         GROWPS
1014           (Thanks to Joerg van den Hoff, for this idea).
1016           New numeric register: Sets the first level of heading (set with
1017           NH), which will keep the same point size as body text; e.g. if
1018           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1019           point size specified by \n[PS], but .NH 2 and .NH 1 will have
1020           progressively larger point sizes, determined by \n[PSINCR] (see
1021           below).
1023         PSINCR
1024           New numeric register: Sets the point size increment for each level
1025           of heading, (set with NH), below the threshold level set by
1026           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1027           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1028           and all other levels will remain at 10pt, (because \n[PS] = 10).
1030         SH
1031           Existing macro now accepts a numeric argument, to make heading
1032           size match that of NH with same argument value, when the
1033           GROWPS/PSINCR feature is enabled.
1035         SN-DOT
1036           New string, set by NH macro, replaces the existing (undocumented)
1037           use of SN, to represent the assigned section number.
1039         SN-NO-DOT
1040           New string, set by NH macro, represents the assigned section
1041           number, but omits the terminal period (periods at intermediate
1042           levels are retained).
1044         SN
1045           String set by NH macro, originally undocumented, now implemented
1046           as an alias for SN-DOT (which reproduces original behaviour).
1048         * tmac/s.tmac (PORPHANS): New register.
1049         (par*start): Use it.
1050         (HORPHANS, GROWPS, PSINCR): New registers.
1051         (SH-NO-TAG, @SH): Use them.
1052         (@NH): Improved.
1054 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1056         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1057         of `Ds' and `De' macros.
1059 2004-09-10  Werner LEMBERG  <wl@gnu.org>
1061         In tbl, handle \a as an interpreted leader character if in
1062         compatibility mode.
1064         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1065         LEADER_CHAR): New macros.
1066         (compatible_flag): New declaration.
1068         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1069         LEADER_3, and LEADER_4 to `state'.
1070         (table_input::get): Handle `\a'.
1072         * src/preproc/tbl/table.cpp (PREFIX): Removed.
1073         (LEADER_REG): New macro.
1074         (table::init_output): Define LEADER_REG string register if in
1075         compatibility mode.
1077         * src/preproc/tbl/tbl.man: Document it.
1079 2004-08-18  Werner LEMBERG  <wl@gnu.org>
1081         * tmac/doc.tmac (An): Fix error message.
1083 2004-08-06  Werner LEMBERG  <wl@gnu.org>
1085         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1086         file can't be opened.  UNIX tbl has the same behaviour.
1088 2004-08-05  Y T  <doarhop@hotmail.com>
1090         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1091         (DBRead): If in compatibility mode, take into account the text
1092         when computing figure boundaries.
1094 2004-08-05  Werner LEMBERG  <wl@gnu.org>
1096         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
1097         from Tadziu Hoffmann.
1099 2004-08-03  Werner LEMBERG  <wl@gnu.org>
1101         * doc/meref.me: Document `_M' register.
1103 2004-08-03  Martin Husemann  <martin@duskware.de>
1105         Make hpftodit work correctly on big-endian systems.
1107         * src/utils/hpftodit/hpftodit.cpp (File): New method
1108         `get_uint32(char *)'.
1109         (entry): New member `orig_value'.
1110         (read_tags): Use new method.
1111         (output_font_name, read_and_output_pcltypeface, dump_ascii):
1112         Updated.
1114 2004-08-01  Werner LEMBERG  <wl@gnu.org>
1116         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
1117         are already in X11's `macros.t' file.
1119 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1121         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1122         Fix casting bug.
1123         (read_and_output_pcltypeface): Handle strings with length <= 4.
1125 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1127         * tmac/s.tmac (pg@top): Don't save `PO' register.
1128         (pg*end-col, pg*end-page): Directly use `PO' register.
1130 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1132         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1134         * src/preproc/refer/refer.cpp (output_references): Check for
1135         empty hash table.
1136         * src/preproc/refer/refer.man: Improve documentation of
1137         `bibliography' command.
1139 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1141         Add requests `fcolor' and `gcolor'.
1143         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1144         New functions.
1145         (init_env_requests): Add `fcolor' and `gcolor'.
1147         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1149         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1150         Document new requests.
1152 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1154         Add support for fractional point sizes in ms macros.  A value for
1155         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1156         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1158         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1159         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1161         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1163 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1165         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1166         Update constructor.
1167         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1168         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1170 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1172         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1173         * tmac/groff_mdoc.man: Updated.
1175 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1177         * doc/groff.texinfo: Further improve documentation of `hcode'.
1179 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1181         Improve appearance of arrows in pic.
1183         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1184         arrow head thin.
1185         Use two line segments for drawing non-filled arrow head.
1186         (line_object::print, spline_object::print): Shorten line length to
1187         avoid arrow sticking.
1188         (arc_object::print): Take arrow direction into account.
1190 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1192         * tmac/groff_www.man: Update documentation of .MPIMG.
1194 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1196         * tmac/an-old.tmac (RI): Always start with font `R'.
1197         (RI, IR): Properly end with font `R'.
1199 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1201         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1202         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1203         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1204         Don't pass more than six arguments to .R, .I, .B, etc., for
1205         compatibility with traditional troff macros.
1207 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1209         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1210         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1211         Update all users.
1212         (PUSH_COMP_MODE): New internal character constant.
1213         Update all users.
1215         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1216         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1217         (token::next, macro::append): Handle PUSH_COMP_MODE.
1218         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1219         POP_GROFFCOMP after each of the decoded arguments to make them
1220         independent from the compatibility mode status.
1221         (comp_mode): Add `COMP_ENABLE'.
1222         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1223         (define_string, append_string, define_macro, define_indirect_macro,
1224         append_macro, append_indirect_macro): Handle `compatible_flag'.
1225         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1227         * man/groff_diff.man, doc/groff.texinfo: Updated.
1229 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1231         * doc/groff.texinfo: Improve documentation of `hcode'.
1232         Use @documentencoding and convert document to latin-1; to do that
1233         make latin characters active and assign proper macros (within a
1234         @tex...@end tex environment).
1235         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1236         * doc/Makefile.sub (groff): Ditto.
1238 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1240         Implement two new conditional operators `F <name>' and `S <name>'
1241         which check whether <name> is a valid font or style, respectively.
1243         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1244         (text_file::text_file): Updated.
1245         (text_file::error): Don't emit message if `silent' is set.
1246         (font::load_font): Add optional third argument (which is directly
1247         passed to `load'.
1248         (font::load): Add optional second argument to check the header of
1249         a font only, without emitting warning or error messages.
1250         * src/include/font.h (font): Updated.
1252         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1253         conditionals.
1254         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1255         fourth argument to check a font without mounting.
1256         (check_font, check_style): New functions.
1257         * src/roff/troff/node.h: Updated.
1259         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1260         Updated.
1262 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1264         Implement new string-valued register `.sty' to return the current
1265         style name.
1267         * env.cpp (environment::get_style_name_string): New function.
1268         (init_env_requests): Add `.sty' register.
1269         * env.h (environment): Updated.
1270         * node.cpp (font_info): Make `get_style_name' a friend.
1271         (get_style_name): New function.
1272         * node.h: Updated.
1274         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1275         Updated.
1277 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1279         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1280         `nospaces' option.
1282 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1284         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1285         and \n[mo] to avoid dependency on current date.
1287 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1289         * Makefile.sub (install_data): New target.
1291 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1293         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1295 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1297         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1298         order of libraries.
1299         (install_data): Add $(srcdir).
1301         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1302         libraries.
1304 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1306         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1307         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1308         Add test for Xmu library.
1309         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1310         GROFF_APPRESDIR_DEFAULT): New macros.
1312         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1313         and GROFF_APPRESDIR_DEFAULT.
1315         * configure: Regenerated.
1317         * Makefile.in (appresdir): New variable.
1318         (MDEFINES): Add appresdir.
1320         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1321         -Xt.
1322         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1324         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1325         `$(srcdir)/eign', not `eign'.
1327         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1329         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1330         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1331         Protect (g)xditview with `\%' to avoid hyphenation.
1332         Other minor formatting.
1334 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1336         Integrate gxditview into groff's standard directory hierarchy.
1338         * src/xditview/*: Moved to ...
1339         * src/devices/xditview/*: Here.
1340         Moved DviChar.h and XFontName.h to src/include.
1341         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1342         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1343         Moved xtotroff.c to new directory src/utils/xtotroff.
1344         Provide proper Makefile.sub files (reusing the stuff from
1345         Imakefile.in).
1346         DESC renamed to DESC.in.
1347         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1348         Converted everything from K&R to ANSI C.
1349         Decorated with const where appropriate.
1350         Cast string constants with `String' and `char *' where appropriate.
1351         Made it compile with C++ (used as a C compiler).
1352         Removed other minor compiler warnings.
1354         * src/devices/xditview/device.c: Include config.h, string.h, and
1355         defs.h.
1356         Don't declare `exit', `strtok', `strchr', and `getenv'.
1357         (FONTPATH): Remove.
1359         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1360         `XFormatFontName'.
1362         * src/devices/xditview/xditview.c: Include config.h.
1363         Include stdio.h earlier.
1364         Protect declaration of `popen' and `pclose' with
1365         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1366         Replace `caddr_t' with `XtPointer'.
1367         (MakePromptFunc): New typedef.
1368         (DoPrint): Use RETSIGTYPE.
1369         (promptfunction): Change type to MakePromptFunc.
1370         (MakePrompt): Use MakePromptFunc for third argument.
1371         (xmalloc): Removed.
1373         * src/devices/xditview/ad2c: Add casts to `String'.
1375         * src/include/XFontName.h (XFontNameString): Don't use array
1376         notation.
1377         Add prototypes for `XParseFontName', `XFormatFontName',
1378         `XCompareFontName', and `XCopyFontName'.
1380         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1381         `XFontName.h'.
1383         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1384         Don't declare `XParseFontName' and `XFormatFontName'.
1385         (xmalloc): Removed.
1386         (main): Remove `optind' and `optarg'.
1388         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1389         (to select programs which need X).
1390         Make XDEVIDIRS depend on `FORCE'.
1391         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1392         X support).
1393         (MDEFINES): Updated.
1394         (LIBDIRS): Use XLIBDIRS.
1395         (CPROGDIRS): Use XPROGDIRS.
1396         (DEVDIRS): Remove font directories for gxditview.
1397         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1398         (EXTRADIRS): Remove src/xditview.
1400         * Makefile.sub (DISCLEANFILES): Updated.
1402         * Makefile.comm (LIBXUTIL): New variable.
1403         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1404         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1406         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1408         * aclocal.m4 (GROFF_X11): New function.
1410         * configure.ac: Call GROFF_X11.
1411         Don't create src/xditview/Imakefile.
1412         Don't emit notice how to build gxditview.
1414         * configure: Regenerated.
1416         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1418 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1420         * Makefile.in (CPPFLAGS): Define.
1421         (MDEFINES): Add CPPFLAGS.
1423 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1425         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1427 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1429         Fix problems with `friend name injections'.
1431         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1432         make_script_box), src/roff/troff/div.h (end_diversions),
1433         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1434         change 2004-04-08.
1436 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1438         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1440 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1442         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1443         src/libs/libgroff/color.cpp: Include lib.h.
1445 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1447         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1448         through Forte 6u1, and for how to get GNU make on Solaris.
1450 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1452         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1453         by Paul Eggert.
1455 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1457         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1458         rule.
1460 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1462         * REVISION: Set to 2.
1464         * aclocal.m4 (GROFF_STDINT_H): Removed.
1465         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1467         * configure.ac: Updated.
1468         * configure, src/include/config.hin: Regenerated.
1470         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1471         inttypes.h conditionally.
1473 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1475 Version 1.19.1 released
1476 =======================
1478 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1480         * src/preproc/refer/label.y (same_author_last_name,
1481         same_author_name): Handle empty sort keys.
1483 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1485         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1486         tmac/TODO: Updated.
1488         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1489         doc-str-Lb-librt): Reset font.
1490         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1491         Provide `doc-str-Lb' to reset font.
1492         * tmac/groff_mdoc.man: Updated.
1494 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1496         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1497         snprintf versions which don't conform to ANSI C 99 (this is,
1498         counting the string's trailing null byte in the return value).
1500 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1502         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1503         that all implementations of sprintf handle null pointers correctly.
1505 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1507         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1508         Document `.U' register.
1510         * src/roff/troff/env.cpp (environment::mark_last_line)
1511         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1513 2004-05-04  Larry Kollar  <kollar@alltel.net>
1515         New read-only register `.U'; it returns 1 in safer mode and 0
1516         otherwise.
1518         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1519         register.
1521 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1523         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1525 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1527         * src/include/font.h (font): Use `int' for ch_index.
1528         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1529         font::compact): Updated.
1531         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1532         warnings.
1534         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1535         (hyphen_word): Fix compiler warnings.
1536         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1537         `char'.
1538         Update all callers.
1539         (get_delim_number, get_line_arg): Change second argument type to
1540         `unsigned char'.
1541         (macro_header::copy, token::next, do_define_string,
1542         do_define_character, substring_request, asciify_macro,
1543         unformat_macro, read_size, non_interpreted_node::interpret,
1544         while_request, main: Fix compiler warnings.
1545         (read_color_draw_node): Initialize `col'.
1547         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1548         `start_col' and `end_col' of type `int'.
1549         (vertical_rule): Make `col' of type `int'.
1551         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1552         for EOF.
1554         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1555         New arrays.
1556         (format_serial): Use them to remove dependency on ASCII.
1558         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1559         compiler warning.
1560         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1561         Ditto.
1563         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1564         compiler warnings.
1565         (glyph): Change type of `hpos' to `int'.
1567         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1568         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1570         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1572         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1574 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1576         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1577         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1578         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1579         `double' instead of `float' everywhere.
1580         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1581         everywhere.
1582         (main): Add return value.
1583         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1584         everywhere.
1585         Update all user functions.
1587         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1588         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1589         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1590         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1591         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1592         src/roff/troff/input.cpp, src/roff/troff/request.h,
1593         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1594         declarations.
1596         * src/utils/indxbib/signal.c: Include stdlib.h.
1598 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1600         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1601         before the first page.
1603 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1605         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1606         (doc-operating-system-*): Updated.
1607         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1608         (doc-str-Lb-*): Add more library names.
1610 2004-04-10  Art Haas  <ahaas@airmail.net>
1612         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1613         use anonymous type.
1615 2004-04-09  Art Haas  <ahaas@airmail.net>
1617         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1619 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1621         * arch/misc/shdeps.sh: Generate better comment for sed script.
1623 2004-04-08  Art Haas  <ahaas@airmail.net>
1625         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1626         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1627         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1628         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1629         (polyfill), src/preproc/grn/main.cpp (polyfill),
1630         src/preproc/refer/command.cpp (command_table),
1631         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1632         gcc 3.5 doesn't like).
1634 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1636         Removing many compiler warnings.  groff should now compile with
1637         a C++ compiler used for C files also.  [Simple variable renamings
1638         to avoid shadowing aren't logged in detail.]
1640         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1641         (draw_dvi_printer::draw) ['c']: Enclose in block.
1643         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1644         (page::add_line): Fix typos.
1645         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1647         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1648         Some local variable renamings.
1649         * src/devices/grolbp/lbp.h: Some local variable renamings.
1651         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1652         variable renamings.
1654         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1655         Remove redundant local variable declaration.
1656         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1657         Don't use `caddr_t' but `void *'.
1658         Enclose functions with `extern "C"' for C++.
1660         * src/libs/libdriver/input.cpp (remember_filename,
1661         remember_source_filename): Use cast for string constant.
1663         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1664         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1665         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1666         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1667         style.
1668         Enclose functions with `extern "C"' for C++.
1669         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1670         (needs_quoting): Return `int'.
1671         (quote_arg): Add proper casts to malloc and realloc.
1672         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1673         various MS Windows environments.
1674         (spawnvp_wrapper): Add proper cast to malloc.
1676         * src/preproc/eqn/box.h: Remove redundant declarations of
1677         `make_script_box', `make_mark_box' and `make_lineup_box'.
1678         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1679         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1680         variable renamings.
1682         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1683         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1684         (dx, dy): Renamed functions to...
1685         (deltax, deltay): This.
1686         * src/preproc/grn/main.cpp: Some local variable renamings.
1687         (deffont): Add `const'.
1688         (initpic, conv): Use cast for string constant.
1690         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1691         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1692         (char_buffer::run_output_filter): Second argument is unused.
1693         * src/preproc/html/pushback.cpp: Some local variable renamings.
1695         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1696         * src/preproc/pic/object.cpp: Some local variable renamings.
1698         * src/preproc/refer/label.y (lookup_label): Remove redundant
1699         declaration of local variable.
1701         * src/preproc/soelim.cpp: Remove redundant declaration of
1702         `interpret_lf_args'.
1704         * src/preproc/tbl/main.cpp: Some local variable renamings.
1706         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1707         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1708         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1709         Don't use C++-style comments.
1711         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1712         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1713         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1714         renamings.
1715         * src/roff/troff/div.h: Remove redundant declaration of
1716         `end_diversions'.
1717         * src/roff/troff/troff.h: Remove redundant declaration of
1718         `cleanup_and_exit'
1719         * src/roff/troff/input.cpp: Remove redundant declaration of
1720         `handle_first_page_transition' and `process_input_stack'.
1722         * src/utils/hpftodit.cpp: Some local variable renamings.
1724         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1725         for C++.
1726         Don't define RETSIGTYPE.
1727         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1729         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1730         (error): Use `const' in argument.
1731         (main): Remove redundant declaration of `optind'.
1732         Move declaration of `Version_string' to top-level.
1734         * PROBLEMS: Document difficulties compiling signal.c if a C++
1735         compiler is used for C.
1737 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1739         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1741 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1743         Make scripts like nroff.sh and neqn.sh portable across various
1744         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1745         non-POSIX path separators.  The idea is to extend those scripts to
1746         decide at run-time (of the script) which path separator to use.
1748         * arch/misc/Makefile.sub: New file.
1749         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1750         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1751         a proper definition of the variable `GROFF_RUNTIME'.
1753         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1754         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1755         (PROGDEPDIRS): New variable.
1756         `FORCE' it.
1757         (PROGDIRS): Add PROGDEPDIRS.
1759         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1760         Don't substitute @SEP@ and @BINDIR@.
1761         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1762         (PATH): Use GROFF_RUNTIME.
1764         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1765         Don't substitute @SEP@ and @BINDIR@.
1766         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1767         (PATH): Use GROFF_RUNTIME.
1769 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1771         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1772         Cygwin which doesn't handle stderr correctly.
1774 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1776         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1777         against empty argument.  Problem reported by <cgd@broadcom.com>.
1779 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1781         * Makefile.in (SEP): Replaced with...
1782         (RT_SEP, SH_SEP): Separators for the target platform's native path
1783         separator and the build environment, respectively.
1784         (fontpath, tmacpath): Use RT_SEP.
1785         (MDEFINES): Updated.
1787         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1788         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1789         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1790         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1792 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1794         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1795         reduce alignment problems with newer printers which use built-in
1796         TrueType fonts (instead of the older Intellifonts).  The ideal
1797         solution is to provide a second set of groff metric files, but this
1798         is extremely time-consuming to produce, given that HP's metric
1799         files are very rudimentary.
1801 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1803         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1804         s/operand/argument/ in error message.
1806 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1808         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1809         is in use.
1811 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1813         * tmac/s.tmac (XE): Fix error message.
1815 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1817         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1818         New macros.
1820         * src/roff/groff/pipeline.c: Declare strcasecmp.
1821         (run_pipeline) [_WIN32]: Use function name variants which don't
1822         start with `_'.
1823         Fix stream handling.
1825 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1827         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1828         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1829         for platforms which use the native Win32 runtime libraries.
1830         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1832         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1833         QUOTE_ARG_REALLOC_ERROR): Fix string.
1835         * src/preproc/html/pre-html.cpp: Remove declaration of
1836         `spawnvp_wrapper'.
1837         Don't use __MINGW32__.
1838         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1839         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1840         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1841         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1842         calls to `set_redirection' and `WAIT'.
1843         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1844         Fix calls to `set_redirection' and `save_and_redirect'.
1845         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1846         to `set_redirection' and `save_and_redirect'.
1847         (usage): Fix message.
1848         (makeTempFiles, main): Use `DEBUG_FILE'.
1850 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1852         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1854 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1856         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1857         quoting for MSVC's spawn* and exec* functions.
1858         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1859         spawnvp with proper quoting for MSVC.
1861         * src/libs/libgroff/assert.cpp (program_name),
1862         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1863         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1865         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1867         * src/include/error.h (program_name): Declare as `extern "C"'.
1868         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1870 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1872         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1873         spawnvp_wrapper.
1874         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1876 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1878         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1879         variable.
1880         (sbasename) [__MSDOS__ || ...]: New function.
1881         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1882         generic algorithm.
1883         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1884         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1885         of XXX.
1886         Use STDOUT_FILENO instead of hardcoded file handle.
1887         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1889 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1891         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1892         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1894 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1896         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1897         new font and mapping files.
1899 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1900             Keith Marshall  <keith.d.marshall@ntlworld.com>
1902         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1903         an input pipe.  This is needed for the MSVC compiler to make troff's
1904         `-o' option work.
1906         * src/roff/troff/div.cpp: Include nonposix.h.
1907         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1909 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1911         * font/devlj4/generate/special.awk: New script.
1912         * font/devlj4/generate/Makefile (S): Use special.awk.
1913         * font/devlj4/*: Regenerated, including the following new files:
1914         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1915         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1916         * NEWS: Document new lj4 fonts and revised hpftodit.
1918 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1920         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1922 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1924         * src/libs/libgroff/progname.cpp: Replaced with...
1925         * src/libs/libgroff/progname.c: New file.
1926         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1928 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1930         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1932 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1934         * font/devlj4/generate/wingdings.map,
1935         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1936         Use groff glyph names where possible.
1937         * src/devices/grolj4/lj4_font.man: Minor updates.
1939 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1941         * tmac/www.tmac (DC): Handle TTY devices.
1943         * doc/webpage.ms: Document viewCVS from ffii.org.
1944         * NEWS, README: Updated.
1946         * src/roff/groff/groff.man: Mention lj4_font man page.
1948         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1949         variables.
1950         (FONTS): Add SYMBOL and WINGDINGS.
1951         (SYMBOL, WINGDINGS): New targets.
1953 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1955         * src/devices/grolj4/lj4_font.man: New man page.
1956         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1957         * src/devices/grolj4.man: Mention lj4_font man page.
1959         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1960         * src/utils/hpftodit/hpftodit.man: Document it.
1961         (CW): New macro.
1962         Remove details about fonts (which are now in lj4_font.man).
1964         * font/devlj4/generate/symbol.map,
1965         font/devlj4/generate/wingdings.map: New files.
1967 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1969         * README: Mention ffii's viewcvs access.
1971 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1973         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1975 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1977         Revert most of the change from 2004-01-03 to better control used
1978         symbol sets.
1980         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1981         (text_symbol_sets, special_symbol_sets): New arrays.
1982         (symbol_set_table): New global variable.
1983         (read_symbol_sets): Use search order given in the text_symbol_sets
1984         and special_symbol_sets arrays.  If command line flag -a is not
1985         given, search both arrays.
1986         (output_charset): Require x_height_tag only for command line flag -i.
1988 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1990         Implement string-valued registers \n[.m] and \n[.M] to return the
1991         name of the current drawing and background color, respectively.
1993         * src/roff/troff/symbol.h: Moved to...
1994         * src/include/symbol.h: Here.
1995         Small fixes to make it work outside of the `troff' directory.
1996         * src/roff/troff/symbol.cpp: Moved to...
1997         * src/libs/libgroff/symbol.cpp: Here.
1998         Small fixes to make it work outside of the `troff' directory.
2000         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2001         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2002         Updated.
2004         * src/include/color.h: Include symbol.h.
2005         (color): Add new field `nm'.
2006         * src/libs/libgroff/color.cpp (color::color): Updated.
2008         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2009         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2010         src/roff/troff/reg.cpp: Don't include symbol.h.
2012         * src/roff/troff/env.cpp: Don't include symbol.h.
2013         (environment::get_glyph_color_string,
2014         environment_get_fill_color_string): New member functions.
2015         (init_env_requests): Handle `.m' and `.M' registers.
2016         * src/roff/troff/input.cpp: Don't include symbol.h.
2017         (default_symbol): Moved to symbol.cpp/symbol.h.
2018         (do_glyph_color, do_fill_color, define_color): Pass symbol name
2019         to color constructor.
2020         * src/roff/troff/env.h: Updated.
2022         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2023         Document new registers.
2025 2004-01-05  Werner LEMBERG  <wl@gnu.org>
2027         * src/roff/troff/node.cpp (space_node::get_breakpoints,
2028         space_node::nbreaks): Protect against zero `next' field.
2030 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
2032         In hpftodit, use the symbol sets offered in the TFM.
2034         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2035         (symbol_set, text_symbol_sets, special_symbol_sets,
2036         symbol_set_table): Removed.
2037         (get_printcode): Removed.
2038         (read_symbol_sets): Initialize `symbol_set' field with
2039         `NO_SYMBOL_SET'.
2040         Simplify code to just use the `kind' value.
2041         (output_charset): Improve output formatting.
2042         (dump_symbols): Simplified.
2044 2004-01-02  Werner LEMBERG  <wl@gnu.org>
2046         * font/devlj4/generate/text.map: Add more MSL numbers.
2048 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
2050         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2051         (text_symbol_sets): Add more symbol sets.
2052         (debug_flag): New static variable (moved from `main').
2053         (get_printcode, show_symset): New functions.
2054         (main): Remove `debug_flag'.
2055         (output_charset): Use `show_symset'.
2056         (dump_symbols):  Use `show_symset'.
2057         Print symsets for all glyphs.
2058         (read_map): Actually call `unicode_to_ucode_make' but this time
2059         correctly.
2061 2004-01-01  Werner LEMBERG  <wl@gnu.org>
2063         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2064         Fix placement of comments.
2066 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
2068         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2069         option `-d' is given.
2070         (output_charset): Improve warning messages to give more information.
2071         (dump_symbols): Make information more precise.
2072         (usage): Updated.
2073         (read_map): Don't call unicode_to_ucode_name; the glyph names must
2074         appear as-is and shouldn't be decomposed.
2076 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2078         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2079         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2080         (FONTS): Add TrueType font families Arial and Times New Roman.
2081         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2082         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2083         `fl'.
2085 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
2087         * test-groff.in (SEP): Quote value.
2088         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2089         `tem' to `char*' to avoid deallocation of a pointer to a constant
2090         object which some compilers don't like.
2092 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2094         * font/devlj4/generate (text.map, special.map): Rewritten to work
2095         with the new hpftodit version.
2097 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
2099         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2100         set and 8bit character code for all glyphs also.
2102 2003-12-30  Werner LEMBERG  <wl@gnu.org>
2104         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2106 2003-12-29  Werner LEMBERG  <wl@gnu.org>
2108         More fixes for MSVC compiler.
2110         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2111         $(SEP).
2113         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2114         STDERR_FILENO) [_MSC_VER]: Define conditionally.
2115         (getpid) [_MSC_VER]: Remove.
2116         Include direct.h and process.h conditionally.
2118         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2119         parentheses for a_delete.
2121         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2123         * test-groff: Replaced with...
2124         * test-groff.in: This new template to handle path separator
2125         properly.
2127         * configure.ac: Check for direct.h and process.h.
2128         Generate test-groff script.
2129         * configure, src/include/config.hin: Regenerated.
2131 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2133         Add integral extension glyph.
2134         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2136         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2138         * font/devps/generate/textmap: Provide entry for `integralex' to
2139         override (old) PUA value of the AGL.
2140         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2141         * font/devps/*: Regenerated.
2143         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2144         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2146 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2148         Add forgotten `coproduct' symbol (already available for DVI).
2150         * font/devhtml/R.proto, font/devps/generate/textmap,
2151         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2152         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2153         U+2210 (\[coproduct]).
2155 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2157         hpftodit has been extended to handle TrueType metric files and
2158         more glyphs.  See hpftodit.man for more details.
2160         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
2161         ctype.h, and unicode.h.
2162         s/msl/charcode/ everywhere since we now handle Unicode values also.
2163         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2164         Use it where appropriate.
2165         (MULTIPLIER): Replaced with...
2166         (multiplier): New global static variable.
2167         (scale): Updated.
2168         (tag_type): Add more TFM tags.
2169         (tag_name): New array.
2170         (ENUM_TYPE, FLOAT_TYPE): Removed.
2171         (BYTE_TYPE): New value assigned.
2172         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2173         (text_symbol_sets, special_symbol_sets): Extended to cover more
2174         sets.
2175         (check_type): Add return value.
2176         (check_units): Add parameters to get ppi and upem values.
2177         Handle TrueType TFM data.
2178         (output_font_name): New function.
2179         (output_charset): Add parameter to handle TFM type.
2180         Handle TrueType TFMs also.
2181         (em_fract): New macro.
2182         (dump_tags): Be much more verbose and handle more tags.
2183         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2184         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2185         functions.
2186         (read_map): Add parameter to handle TFM type.
2187         Handle both MSL and Unicode mappings.
2188         (main): Add two new command line options `-a' and `-q'.
2189         Updated to make use of new functions.
2190         (usage): Updated.
2192         * src/utils/hpftodit/hpuni.cpp: New file.
2194         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2195         Updated.
2197 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2199         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2201 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2203         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2204         by Michail Vidiassov <master@iaas.msu.ru>.
2206 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2208         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2209         and u0049_0307.
2210         Add missing latin-2 glyphs.
2211         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2213         * tmac/troffrc: Load `composite.tmac' earlier.
2215         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2216         u00{53,73}_0327, and u0049_0307.
2217         * tmac/X.tmac: Add u00{47,67}_0306.
2218         * tmac/tty-char.tmac: Use composite glyph names for readability.
2220         * NEWS: Updated.
2222         * src/include/unicode.h: Remove `extern' keywords.
2224 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2226         * tmac/latin5.tmac: New file.
2228 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2230         Add some glyphs needed for Turkish.
2232         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2233         and u0049_0307.
2235         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
2236         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2237         u00{53,73}_0327, and u0049_0307.
2239 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2241         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2242         from 2001-10-04.
2243         Remove trailing zeros.
2245 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2247         Make \? transparent to end-of-sentence recognition.
2249         * src/roff/troff/input.cc (non_interpreted_node): Add
2250         `ends_sentence' member function.
2252 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2254         * doc/groff.texinfo: Document `dt' request correctly.
2255         Other minor typographical improvements.
2257 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2259         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2261 2003-12-10  Richard Stallman  <rms@gnu.org>
2263         * LICENSE: Better wording.
2265 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2267         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2268         * configure, NEWS: Updated.
2270 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2272         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2274 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2276         * LICENSE: Updated.
2278 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2280         * INSTALL: Improved.
2282 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2284         Use path separator character of target platform for compiled-in
2285         default paths.
2287         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2288         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2289         * configure: Regenerated.
2290         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2292 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2294         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2295         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2297 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2299         * LICENSE: New file.
2301 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2303         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2304         ligatures present in AFM files since groff currently only
2305         understands some standard ligatures and nothing else.
2307 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2309         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2310         option -v is given.
2312         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2313         messages.
2314         Close stdout copy.
2315         Don't use Unix wait flags.
2317 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2319         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2320         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2321         src/roff/troff/uniuni.cpp: Moved to...
2322         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2323         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2324         src/libs/libgroff/uniuni.cpp: Here.
2326         * src/include/Makefile.sub.old (HDRS),
2327         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2328         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2330 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2332         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2333         `DEBUG_FILE'.
2334         Updated all users.
2336 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2338         * groff.texinfo: Document special behaviour of `.vs 0'.
2339         Improve documentation of `cflags' request.
2340         * NEWS: Updated.
2342 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2344         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2345         * font/devlj4/CORONET: Regenerated.
2347 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2349         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2350         if processing hyphenation patterns in traditional mode.
2351         Improve error messages.
2353 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2355         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2356         troff_output_file::put_char): Fix type of local variable `c'.
2358 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2360         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2361         declarations.
2362         (i_to_a): Removed.  libgroff already provides this function.
2363         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2365 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2367         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2368         HAVE_DECL_SYS_LIST.
2370 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2372         * COPYING: Use correct version.
2374 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2376         LynxOS 4.0.0 doesn't declare vfprintf.
2378         * configure.ac: Check for vfprintf.
2379         * configure: Regenerated.
2380         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2381         * src/include/config.hin: Regenerated.
2383 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2385         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2387         * configure.ac: Check for vsnprintf.
2388         * configure: Regenerated.
2389         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2390         `HAVE_VSNPRINTF'.
2391         * src/include/config.hin: Regenerated.
2393 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2395         * aclocal.m4: Updated syntax to autoconf 2.59.
2396         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2397         Don't check for gsos2.
2398         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2399         working abs_top_srcdir and abs_top_builddir.
2401         * configure.ac: Updated syntax to autoconf 2.59.
2402         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2403         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2404         * configure: Regenerated.
2406         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2407         s/@groff_top_builddir@/@abs_top_builddir@/.
2409         * src/roff/groff/pipeline.c (xstrsignal):
2410         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2412 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2414         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2415         make start angle smaller than end angle to circumvent a bug in tpic
2416         handling of some versions of dvipdfm (and dvipdfmx).
2418 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2420         * src/devices/grops/grops.man: Improve section on creating EPS.
2422 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2424         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2425         -P-pletter).
2427 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2429         * doc/groff.texinfo: Fix documentation of `.if'.
2431 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2433         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2434         the form `uniXXXX' also.
2436 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2438         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2439         contrib/pic2graph/pic2graph.sh: Implement secure management of
2440         temporary files.
2441         Pass `-P-pletter' to groff to avoid data outside of the converted
2442         area -- some versions of `convert' (for example 5.3.8) don't check
2443         the bounding box of the image but always use a fixed image size
2444         (letter paper format).
2445         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2446         contrib/pic2graph/pic2graph.man: Updated.
2448         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2450 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2452         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2453         troff_output::simple_ellipse, troff_output::simple_arc,
2454         troff_output::simple_line, troff_output::simple_spline,
2455         troff_output::simple_polygon): Insert a space before arguments.
2456         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2457         latter doesn't produce a node, so the following `.sp -1' would do
2458         the wrong thing.
2459         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2460         (and we don't have to care about compatibility mode).
2461         (troff_output::set_color, troff_output::reset_color): Don't emit
2462         `.sp -1' after \M and \m.
2464         * src/roff/troff/input.cpp (old_have_input): New global variable.
2465         (input_stack::get): Handle `old_have_input'.
2466         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2467         `trapping_blank_line' depending on `old_have_input', not
2468         `have_input'.
2470 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2472         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2473         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2474         default directory names for temporary files.
2475         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2477         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2478         [__MSDOS__] (run_pipeline): Honour environment variables.
2479         Don't use `tmpnam' but `tempnam' to work around messy
2480         implementation.
2482         * README.MinGW: New file.
2484 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2486         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2487         `(*t)->next' without testing validity of `*t'.
2488         (usage): Make it more readable.
2490 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2492         Make html device run under both MS-DOS and Win32.
2494         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2495         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2496         spawn or fork+exec has to be used, and whether parent must sleep
2497         until the child process terminates.  Used in
2498         `char_buffer::run_output_filter'.
2499         (copyofstdoutfd): Removed.
2500         (char_buffer): Replace `write_file_html' and `write_file_troff'
2501         member functions with `emit_troff_output' and `run_output_filter'.
2502         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2503         macros.
2504         (replaceFd): Replaced with...
2505         (set_redirection): New auxiliary function.
2506         (waitForChild): Replaced with...
2507         (save_and_redirect): New auxiliary function for.
2509         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2510         functions.
2512 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2514         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2515         (GROFF_LIBC): New function.
2516         * configure.ac: Call GROFF_LIBC.
2517         Check for `kill'.
2518         * configure: Regenerated.
2520         * src/include/lib.h: Handle __MINGW32__.
2521         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2522         Add macro for `pipe'.
2523         Define P_tmpdir.
2525         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2526         correctly.
2528         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2529         Implement.
2531 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2533         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2534         <chuq@chuq.com>.
2536         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2537         directory.
2539 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2541         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2542         src/roff/troff/input.cc (usage): Updated.
2544         * NEWS, doc/groff.texinfo: Updated.
2546 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2548         * src/libs/libgroff/searchpath.cpp
2549         (search_path::open_file_cautious): New function which also handles
2550         `-' as stdin and stdout depending on the access mode.
2551         * src/include/searchpath.h (search_path): Updated.
2553         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2554         * src/devices/grops/ps.h: Include `searchpath.h'.
2555         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2556         Open resource file with `include_search_path.open_file_cautious'.
2557         * src/devices/grops/grops.man: Document new `-I' switch.
2559         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2560         (main), src/devices/grolj4/lj4.cpp (main),
2561         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2563         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2564         Replaced with...
2565         (include_search_path): New global variable.
2566         (include_path_append): Removed.
2567         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2568         (do_file): Simplify, using new
2569         `include_search_path.open_file_cautious'.
2571         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2572         parameter.
2573         (main): Pass arguments to `-I' to both troff and devices.
2574         Improve handling of `-V'.
2575         * src/roff/groff/groff.man: Document changes to -I and -V.
2577         * src/roff/troff/input.cpp (include_search_path): New global
2578         variable.
2579         (next_file, source, ps_bbox_request, transparent_file,
2580         process_input_file): Use new
2581         `include_search_path.open_file_cautious'.
2582         (main) Handle `-I' switch.
2583         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2584         Use new `include_search_path.open_file_cautious'.
2585         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2586         * src/roff/troff/troff.man: Document new `-I' switch.
2588 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2590         Support multiple calls of .Lb in LIBRARY section.
2592         * tmac/doc-common (doc-in-library-section): New register.
2593         (doc-section-library): New string.
2594         (Sh): Set `doc-in-library-section'.
2595         (Rd): Updated.
2596         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2597         if in LIBRARY section.
2598         * tmac/doc.tmac (doc-save-global-vars): Updated.
2599         * NEWS, tmac/groff_mdoc.man: Updated.
2601 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2603         * tmac/doc-common (doc-default-operating-system): New variable.
2604         (Os): Use it.
2606 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2608         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2610 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2612         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2613         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2614         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2615         $(DEVFILES) are not empty.
2616         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2618 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2620         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2621         with parallel runs of `make'.
2623 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2625         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2626         insert SORT_SEP.  With certain combinations of sort specifications,
2627         refer sorted entries in the wrong order.  In particular, entries
2628         with a missing field should be be sorted before all entries that
2629         have that field, before refer looks to the next field.
2631 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2633         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2634         g++ linker is used.  Reported by Mark J. Reed
2635         <mark.reed@turner.com>.
2637 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2639         Add key character `x' to tbl which makes tbl call a user-defined
2640         macro on a table cell.
2642         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2643         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2644         `set_modifier' after printing the compatibility request.
2645         (set_modifier): Print call to `m->macro' if not empty.
2646         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2647         `macro'.
2648         (process_format): Implement cases `x' and `X'.
2649         * src/preproc/tbl/tbl.man, NEWS: Updated.
2651 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2653         * doc/groff.texinfo: Minor fixes.
2655 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2657         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2659 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2661         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2662         argument list to nothing if there is no file to match.  Use `ls' as
2663         a protection, similar to autoconf.
2665         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2666         empty argument lists.
2668         * doc/groff.texinfo: Improve documentation how vertical spacing
2669         and line breaks interact.
2670         Other minor fixes.
2672         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2674 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2676         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2677         EPS (using eps2eps or similar programs to compute the bounding box).
2679 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2681         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2682         * doc/texinfo.tex: Updated from texinfo 4.6.
2683         * README.CVS: From now on we need texinfo 4.6.
2685 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2687         Add requests `dei1' and `ami1' for completeness.
2689         * src/roff/troff/input.cc (calling_mode): Remove
2690         CALLING_DISABLE_COMP.
2691         (comp_mode): New enumeration.
2692         (do_define_string, define_string, define_nocomp_string,
2693         append_string, append_nocomp_string): Updated.
2694         (do_define_macro): Add third parameter.
2695         (define_macro, define_nocomp_macro, define_indirect_macro,
2696         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2697         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2698         functions.
2699         (ignore): Updated.
2700         (init_input_requests): Add `dei1' and `ami1'.
2702         * tmac/trace.tmac: Handle de1 and am1.
2703         (de): Improve tracing message.
2704         (am): Add missing `do'.
2705         (return): Use de1.
2707         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2708         Document new requests.
2710 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2712         Add option -G to .MPIMG to insert a gap between text and the image.
2714         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2715         www-finish-left-ll): Updated.
2716         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2717         (MPIMG): Make option -L and -R optional.
2718         Implement option -G.
2720 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2722         * src/devices/grohtml/post-html.cpp
2723         (html_printer::do_file_components): Don't use `stdout' as lvalue
2724         since it can be a macro.
2726 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2728         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2729         the corresponding test in aclocal.m4.
2731 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2733         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2734         names but RGB values directly.  Otherwise pnmtopng depends on
2735         an external file `rgb.txt' which maps colour names to values.
2737 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2739         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2740         * configure, src/include/config.hin: Regenerated.
2742         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2744 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2746         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2748 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2750         * *.man: Switch to non-compatibility mode temporarily if GNU
2751         syntax extensions are used in the particular man page.
2753         * PROBLEMS: Add solutions for SGR problems.
2755 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2757         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2758         used to change the drawing scheme.
2760         * src/devives/grotty/tty.cpp (bold_flag_option,
2761         underline_flag_option, italic_flag_option, reverse_flag_option,
2762         bold_underline_mode_option): New global variables.
2763         (update_options): New function.
2764         (tty_printer::special): Call update_options.
2765         (main): Don't set xxx_flag but xxx_flag_option, then call
2766         update_options.
2768 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2770         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2772         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2773         values.
2774         (hline_char, vline_char): New global variables.
2775         (tty_printer::tty_printer): Initialize them.
2776         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2777         horizontal and vertical lines.
2778         (crossings): New global array.
2779         (tty_printer::end_page): Use it to determine the proper crossing
2780         character for -Tutf8.
2782 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2784         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2785         (HTMLDOCFILES): Revert to `pic.html'.
2786         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2788 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2790         * doc/pic.ms: Improve documentation of absolute coordinates.
2791         Document absolute positioning of pictures.
2793         * NEWS: Add new pic capability.
2795 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2797         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2798         Rewritten.
2800 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2802         Implement support for dashed and dotted ellipses in pic.  Based on
2803         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2805         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2806         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2807         functions.  Ellipse arcs are approximated with circle arcs.
2808         * src/preproc/pic/common.h (common_output): Updated.
2809         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2810         functions.
2811         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2813         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2815 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2817         Make grotty work on platforms which have unsigned char as the
2818         default for char.  Based on a patch by Thomas Klausner
2819         <wiz@netbsd.org>.
2821         * src/devices/grotty/tty.cpp (schar): New typedef.
2822         Updated calls to declare_ptable and implement_ptable.
2823         (glyph): Use schar for back_color_idx and fore_color_idx.
2824         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2825         (tty_printer::tty_color, tty_printer::tty_printer,
2826         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2828 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2830         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2831         * src/roff/nroff/nroff.man: Updated.
2833 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2835         * NEWS, tmac/groff_www.man: Updated.
2836         * doc/Makefile.sub: Updated.
2838 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2840         Implement support for multiple HTML output files.
2842         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2843         -j command line option.
2845         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2846         global variables.
2847         (file): New fields `new_output_file', `require_links',
2848         `output_file_name'.
2849         (file::file): Updated.
2850         (files::set_file_name, files::set_links_required,
2851         files::are_links_required, files::is_new_output_file,
2852         files::file_name, files::next_file_name): New functions.
2853         (header_desc): New fields `no_of_level_one_headings',
2854         `header_filename'.
2855         (header_desc::header_desc): Updated.
2856         (header_desc::write_headings): Handle multiple files.
2857         (html_printer::write_header): Save file name in which header occurs.
2858         (html_printer::determine_header_level): Possibly split files on
2859         level one headings.
2860         (html_printer::do_links, html_printer::troff_tag): Updated.
2861         (html_printer::insert_split_file, html_printer::do_job_name,
2862         html_printer::emit_link, html_printer::write_navigation,
2863         html_printer::do_file_components): New functions.
2864         (html_printer::~html_printer): Handle multiple files.
2865         (main): Handle command line option `-j'.
2867         * src/devices/grohtml/grohtml.man: Updated.
2869         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2870         which splits file.
2872         * tmac/www.tmac (JOBNAME): New macro.
2873         * tmac/s.tmac (SH-NO-TAG): New macro.
2874         (@SH): Call SH-NO-TAG.
2875         (@NH): Updated.
2877 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2879         * tmac/groff_mdoc.man: Improve documentation of punctuation
2880         characters.
2882 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2884         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2886 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2888         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2890 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2892         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2893         after `/*' and `*/'.
2894         Fix spacing.
2895         (Fn, Fo): Reduce indentation in synopsis.
2897         * tmac/doc-common (doc-check-depth): New macro.
2898         (doc-end-macro, Sh, Ss): Use it.
2899         (Cd): Fix behaviour in synopsis.
2900         (In): Make it parsed and callable.
2901         If not in the synopsis, represent the C header file enclosed in
2902         angle brackets.
2903         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2904         Use minus, not hyphen.
2906         * tmc/groff_mdoc.man: Updated.
2908 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2910         Integrated grap2graph, contributed by Eric S. Raymond.
2912         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2913         New files.
2914         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2915         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2917 2003-07-01  Colin Watson  <cjwatson@debian.org>
2919         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2920         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2922 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2924         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2926 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2928         * doc/Makefile.sub (CLEANADD): Remove all files created by
2929         running `make groff.{pdf,dvi}'.
2931         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2932         src/xditview also.
2934 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2936         * Makefile.in (SHELL): Define as @SHELL@.
2937         (mkinstalldirs): Use $(SHELL).
2938         (MDEFINES): Add $(SHELL).
2939         * Makefile.comm (SHELL): Removed.
2941 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2943         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2944         The X11 documentation files use them.
2945         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2947 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2949         * tmac/e.tmac (@C): Handle .ad also.
2951 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2953         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2955         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2956         Assign `n' even here.  It is possible to construct a node
2957         immediately following an escape character:
2959           .di xx
2960           \?\\\?a
2961           .br
2962           .di
2963           .xx
2965 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2967         * README.WIN32: Removed.
2968         * MANIFEST: Updated.
2970 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2972         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2974 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2976         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2977         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2979 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2981         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2982         is done by the calling function.
2984 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2986         * tmac/X.tmac: Fix definition of `em'.
2988 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2990         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2991         argument.
2993 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2995         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2996         to make items work which consist only of a tag.
2998 2003-05-17  Werner LEMBERG  <wl@gnu.org>
3000         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3001         aren't stretched in a tag (this can fail with unformatted boxes).
3002         Instead, insert a break and go back one line.
3004 2003-05-16  Werner LEMBERG  <wl@gnu.org>
3006         * src/roff/troff/input.cc (return_macro_request): If called with
3007         argument pop macro twice.  We need this to trace `return'.
3009         * tmac/trace.tmac: Handle `return'.
3010         Fix typos.
3012         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3013         Document.
3015 2003-05-15  Larry Kollar  <kollar@alltel.net>
3017         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3018         registers `FPS', `FVS', and `FPD'.
3020 2003-05-15  Werner LEMBERG  <wl@gnu.org>
3022         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3023         correctly.
3025 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
3027         * tmac/groff_mdoc.man: Slight improvements.
3029 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3031         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3032         `doc-header-space' after header line if register `cR' is set.
3034 2003-05-02  Werner LEMBERG  <wl@gnu.org>
3036         * TODO: Updated.
3038 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
3040         * tmac/doc-common (Nd): Use \[em].
3042 2003-05-01  Werner LEMBERG  <wl@gnu.org>
3044         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3045         doc-footer-space): Initialize to 0.5i.
3046         (doc-setup-page-layout): Don't set doc-header-space and
3047         doc-footer-space.
3049 2003-04-30  Werner LEMBERG  <wl@gnu.org>
3051         * REVISION: Set to 1.
3053         * doc/pic.ms: Document possible problems with `figname'.
3055 2003-04-29  Werner LEMBERG  <wl@gnu.org>
3057 Version 1.19 released
3058 =====================
3060         * VERSION: Set to 1.19.
3061         * REVISION: Set to 0.
3062         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3064         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3065         Define charset as `US-ASCII' in html output.
3067         * tmac/www.tmac (ULE): Add missing scaling indicator.
3069         * win32-diffs: Removed.
3071 2003-04-28  Werner LEMBERG  <wl@gnu.org>
3073         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3074         `.da' and `.boxa'.
3075         Document how to insert discardable whitespace with `.ss'.
3077 2003-04-27  Werner LEMBERG  <wl@gnu.org>
3079         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3080         work with plain TeX also.
3082         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3084 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
3086         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3087         Use a loose DTD.
3089 2003-04-24  Werner LEMBERG  <wl@gnu.org>
3091         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3092         vbox with positive height and zero depth if in TeX mode.
3094         * NEWS: Document glyph name changes for grodvi and grolj4.
3096 2003-04-23  Werner LEMBERG  <wl@gnu.org>
3098         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3099         * doc/pic.ms: Fixed.
3101 2003-04-21  Werner LEMBERG  <wl@gnu.org>
3103         HP-UX 10.20 has `snprintf' but it isn't declared.
3105         * configure.ac: Add declaration test for snprintf.
3106         * configure: Regenerated.
3107         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3108         * src/include/config.hin: Regenerated.
3110 2003-04-19  Werner LEMBERG  <wl@gnu.org>
3112         Add keyword `figname' to pic, specifying the name of the picture
3113         box in TeX mode.  Based on a patch from William J Poser
3114         <wjposer@unagi.cis.upenn.edu>.
3116         * src/preproc/pic/pic.y: New token `FIGNAME'.
3117         (macro_name): New rule of type <str>.
3118         (placeless_element): Handle `FIGNAME'.
3119         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3120         * src/preproc/pic/main.cpp (graphname): New global variable.
3121         (do_picture): Initialize `graphname'.
3122         * src/preproc/pic/pic.h: Updated.
3123         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3124         `graphname'.
3125         Simplify TeX code.
3126         (tex_output::text): Beautify output.
3127         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3128         `shaded' and `outlined' unconditionally.
3129         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3130         Minor improvements.
3132         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3133         greater is necessary.
3135 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3137         Add option -r to soelim to avoid emission of `.lf' lines.
3138         Add option -t to produces TeX comment lines instead of `.lf' lines.
3140         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3141         and `tex_flag'.
3142         (usage): Updated.
3143         (main): Handle `-r' and `-t'.
3144         (set_location): Handle `raw_flag' and `tex_flag'.
3145         * src/preproc/soelim/soelim.man, NEWS: Updated.
3147 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3149         * tmac/hyphenex.sh: Replaced with...
3150         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3151         nightmares.
3153         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3154         if --quiet is used for the configure script.
3155         * configure: Regenerated.
3157 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3159         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3160         Add `const' to second argument.
3161         (html_printer::add_table_end): Add `const' to argument.
3162         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3163         `const' to arguments.
3164         * src/devices/grohtml/html-text.h: Updated.
3166         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3167         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3168         argument.
3170         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3171         cast for integer constant.
3173         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3174         (writeNbytes): Add `const' to first argument.
3175         (writeString): Add `const' to argument.
3176         (char_buffer::can_see): Add `const' to third argument.
3177         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3178         `const' to argument.
3179         * src/preproc/html/pushback.h: Updated.
3181         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3182         (include_path_append): Add `const' to argument.
3183         (do_file): Updated.
3185         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3186         for `value'.
3187         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3188         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3189         for `value'.
3190         (unicode_decompose_init::unicode_decompose_init): Updated.
3191         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3192         for `value'.
3193         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3194         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3195         argument.
3197         * tmac/hyphenex.sh: Make script more portable by using a here
3198         document.
3200 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3202         Renamed all `*.cc' files to `*.cpp'.
3203         Updated all configuration files, makefiles, and documentation.
3205 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3207         * tmac/hyphenex.sh: Slight improvements.
3209 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3211         * font/devascii/R.proto, font/devcp1037/R.proto,
3212         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3213         character slots with unnamed glyphs.
3215         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3216         (an-first): New global variable.
3217         (an-header): Emit vertical space between multiple man pages.
3219 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3221         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3222         values.
3224 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3226         * PROBLEMS: Revised.
3228 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3230         * doc/webpage.ms: Improved.
3232 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3234         Add register \n[.height] which returns the value of \H.
3235         Add register \n[.slant] which returns the value of \S.
3237         * src/roff/troff/env.cc (init_env_requests): Implement.
3238         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3239         Document.
3241 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3243         * tmac/html.tmac: Move some of the data into html-end.tmac.
3244         Remove most of the character translations for eqn since html fonts
3245         now cover those characters.
3246         Load www.tmac.
3247         * tmac/html-end.tmac: New file.
3248         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3249         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3250         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3252 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3254         * man/groff_out.man: Document negative values of `N' if -Thtml is
3255         used.
3257 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3259         * Makefile.comm (depend.temp): Check location of YTABC.
3261 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3263         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3264         binary path.
3265         (groff_bin_path): Rename to GROFF_BIN_PATH.
3266         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3267         * doc/Makefile.in (TROFFBIN): New variable for troff
3268         binary path.
3269         (GROFFBIN): New variable for groff binary path.
3270         (groff_bin_path): Rename to GROFF_BIN_PATH.
3271         (TROFF): Use TROFFBIN.
3272         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3273         * doc/Makefile.sub (GROFFBIN): New variable for groff
3274         binary path.
3275         (groff_bin_path): Rename to GROFF_BIN_PATH.
3276         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3278         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3279         with INSTALL_SCRIPT.
3280         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3281         * Makefile.dev (all): Depend on DEVSCRIPTS.
3282         (install_dev): Likewise.
3283         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3284         scripts.
3285         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3286         (DEVGENSCRIPTS): New variable to hold generated scripts.
3288 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3290         * src/libs/libdriver/input.cc (IntArray::operator[],
3291         IntArray::get_data): Remove meaningless `const' in return value.
3293         * README.CVS: New file.
3295 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3297         Check for stdint.h in C++, not in C.
3299         * aclocal.m4 (GROFF_STDINT_H): New function,
3300         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3301         AC_CHECK_HEADERS.
3302         * configure, src/include/config.hin: Regenerated.
3303         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3306         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3307         with a negative value, representing the width of the unbreakable
3308         space (only for -Thtml).  grohtml then converts this back to
3309         &nbsp; and uses the value of N as its width.
3311         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3312         unbreakable_space_node::tprint): Emit `N-<width>'.
3313         * src/include/printer.h (printer::set_numbered_char): Make it
3314         virtual.
3315         Make members `font_table' and `nfonts' protected instead of private.
3316         * src/devices/grohtml/post-html.cc
3317         (html_printer::set_numbered_char): New member function.
3320         * src/libs/libgroff/maxfilename.cc:
3321         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3323         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3324         emit word marker.
3326 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3328         * man/roff.man: Small fixes.
3330 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3332         Make groff independent from locale's numeric settings.
3334         * configure.ac: Check for `setlocale'.
3335         * configure, src/include/config.hin: Regenerated.
3337         * src/include/lib.h: Handle HAVE_SETLOCALE.
3339         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3340         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3341         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3344         * doc/groff.texinfo: Change dir category to `Typesetting'.
3345         (Man font macros): Mention that there is no space between arguments
3346         of .BI and friends.
3348         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3349         (*printer::change_color, *printer::change_fill_color): Add missing
3350         `const'.
3352 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3354         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3355         html_table::is_gap): Compute table widths after converting border
3356         positions to avoid rounding errors.
3358 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3360         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3361         `space_emitted' properly.
3363 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3365         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3366         (html_table::set_linelength): Don't add 1.
3367         (html_table::add_indent): Don't subtract 1.
3369         * tmac/html.tmac: Set default page offset to zero.
3371 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3373         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3375         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3376         unbreakable_space_node::tprint): New functions.
3377         (troff_output_file): Make space_char_hmotion_mode::tprint and
3378         unbreakable_space_node::tprint to friends.
3379         * src/roff/troff/node.h: Updated.
3381         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3382         in the HTML standard).
3384 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3386         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3387         Otherwise, the following code
3389           .di xxx
3390           .ps 10
3391           a
3392           .br
3393           .di
3394           x\*[xxx]
3396         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3397         font changes in diversions for -Thtml.
3399         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3400         `HTML-TAG'.
3401         (an-do-tag-html): Merge with ...
3402         (an-do-tag): This macro.
3403         Change code slightly to circumvent grohtml bug.
3404         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3406         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3407         html_table::is_gap): Round `width' properly.
3409         * tmac/html.tmac: Provide some default layout parameters for
3410         grohtml.
3412         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3413         command.
3415 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3417         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3419 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3421         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3422         defined.
3424 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3426         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3427         `.vs'.
3428         * doc/groff.texinfo: Updated.
3430 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3432         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3433         TOKEN_END_TRAP>: Reset `have_input'.
3435 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3437         * src/roff/groff/groff.man: Mention groff_trace man page.
3439 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3441         * Makefile.in (LIBEXT): New variable to indicate the file extension
3442         of library files.  Computed heuristically from $(OBJEXT).
3443         (MDEFINES): Add $(LIBEXT).
3444         * Makefile.lib, Makefile.comm: Use it.
3446         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3447         overlong lines into smaller chunks.
3448         (get_binary): New function.
3449         (main): Use them.
3450         * src/utils/pfbtops/pfbtops.man: Updated.
3452 2003-03-15  Colin Watson  <cjwatson@debian.org>
3454         * src/roff/groff/groff.man: Minor syntax fix.
3456 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3458         * src/devices/grops/ps.cc (ps_printer::media_set,
3459         ps_printer::~ps_printer): Handle zero paper width and length.
3461 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3463         Add options -p and -l to grodvi.
3465         * src/devices/grodvi/dvi.cc: Include paper.h.
3466         (landscape_flag, user_paper_length, user_paper_width): New global
3467         variables.
3468         (dvi_printer::begin_page): Emit `papersize' special.
3469         Set color after initialization of `cur_h' and `cur_v'.
3470         (main): Add options `-l' and `-p'.
3471         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3472         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3474         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3476 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3478         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3479         * man/groff_tmac.man: This man page.
3480         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3481         deprecated.
3483         * tmac/X.tmac: Don't load pspic.tmac.
3485 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3487         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3488         by Bernd Warken <bwarken@mayn.de>.
3490         * src/include/driver.h (pr): Removed.
3492         * src/libs/libdriver/input.cc (pr): New global variable.
3493         (do_file): Deallocate `pr'.
3494         * src/libs/libdriver/printer.cc (pr): Removed.
3496         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3497         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3498         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3499         (main): Don't delete `pr'.
3501 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3503         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3504         * tmac/papersize.tmac: New file.
3505         * tmac/troffrc: Include `papersize.tmac'.
3506         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3507         * tmac/an-old.tmac: Set LT to LL by default.
3509         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3510         doc/groff.texinfo: Updated.
3512         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3513         bug which caused all odd iso papers to have wrong dimensions.
3515         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3516         (main) <'p'>: Set `user_paper_width' also.
3517         (ps_printer::media_width, ps_printer::media_height): Use values
3518         given with option `-p'.
3520 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3522         * src/include/nonposix.h: Provide default for SET_BINARY.
3524         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3525         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3526         unconditionally.
3528         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3529         (main): Treat \r\n as \n.
3531 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3533         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3534         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3536 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3538         Added support to access more than 256 glyphs in Type 1 fonts.
3540         * src/devices/grops/ps.cc (subencoding): New structure.
3541         (style): Add `sub' field.
3542         Updated all users.
3543         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3544         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3545         functions.
3546         Updated all users.
3547         (ps_printer::set_char): Use `set_subencoding'.
3548         (make_subencoding_name): New function.
3549         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3550         (ps_printer::~ps_printer): Emit subencoding definitions.
3552         * src/devices/grops/psrm.cc (valid_input_table): New array to
3553         properly support EBCDIC.
3554         (white_space): Add `\f'.
3555         (ps_get_line): Change first argument to be of type `string &'.
3556         Updated all callers.
3557         This allows to get lines of arbitrary length.
3558         Use `valid_input_table'.
3559         Remove warning about non-conforming PS line length.  This seems
3560         not to be of great importance -- for example, dvips don't emit
3561         a warning either.
3562         (PS_LINE_MAX): Removed.
3563         (matches_comment): Change first argument to be of type `string &'.
3565         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3567         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3568         %AGL_to_unicode, %default_ligatures): New hash tables.
3569         Read all map entries.
3570         Add unencoded characters.
3571         Check for default ligatures if there are no `L' entries.
3572         Print all kern entries.
3573         Print all characters in charset.
3574         * src/utils/afmtodit/afmtodit.man: Updated.
3576         * font/devps/*: Regerated all fonts.
3578         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3579         of characters, just use `.trin'.  Otherwise the mapping depends
3580         on the font encoding.
3581         * tmac/ps.tmac: Add `fi' and `fl'.
3582         Improve `Fi' and `Fl'.
3583         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3584         * tmac/Xps.tmac: Fix `em'.
3586         * NEWS: Updated.
3588 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3590         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3591         `have_input'.
3593 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3595         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3597         * font/devps/generate/textmap: Remove entry `similarequal'.
3598         * font/devps/symbolmap: Updated.
3600 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3602         * src/libs/libgroff/font.cc (font::load): Fix error message for
3603         bad character type.
3605         * src/devices/grops/grops.man: Improve documentation of the -b
3606         flag.
3608         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3609         `ascii' and `cp1047'.
3611 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3613         Document composite glyphs and the `composite' request.
3615         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3617 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3619         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3620         * font/devdvi/*EC: Updated.
3622         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3623         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3624         * tmac/troffrc: Load `composite.tmac'.
3625         * tmac/Makefile.sub (NORMALFILES): Updated.
3627         * doc/groff.texinfo (Input Encodings): New section.
3628         * NEWS: Updated.
3630 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3632         * doc/texinfo.tex: New version 2003-02-11.06.
3634         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3635         * tmac/groff_mdoc.man: Fix description of `Dt'.
3637 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3639         * font/devps/prologue.ps: Fix for included Postscript that does
3640         a setpagedevice -- which is now safely ignored.
3642         * NEWS: Updated.
3644         * src/devices/grops/ps.cc: Now sets the page size in the generated
3645         document.  This is done in two ways: Via a %%-comment for gv and
3646         the like, and via a PageSize and setpagedevice for programs that
3647         understands Postscript proper, like ps2pdf.
3649         * src/devices/grops/ps.h: New broken-flag to avoid page size
3650         definition, if required.
3652         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3654         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3655         Not really necessary due to the fix in prologue.ps, but cleaner:
3656         Such information does not belong in an .eps file.
3658         * doc/Makefile.sub: See doc/Makefile.in.
3660 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3662         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3663         instead of P1 since the latter is broken in some versions of netpbm.
3664         * configure: Updated.
3666 2003-02-26  Larry Kollar  <kollar@alltel.net>
3668         Make man pages more customizable.
3670         * tmac/an-old.tmac (FT): New register holding footer distance from
3671         bottom.
3672         (HF): New string holding the default heading font.
3673         (TH): Handle registers `IN' and `SN' set on the command line.
3674         Use `FT'.
3675         (PT, BT): New strings to customize header and footer lines.
3676         (an-header, an-footer): Use them.
3677         (SH, SS): Use `HF'.
3678         * tmac/groff_man.man: Document changes.
3680         * doc/groff.texinfo: Document man changes.
3681         Document Ultrix extensions of man.
3683 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3685         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3686         `have_input' after changing back to old environment.
3688         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3689         function up to be defined before first call.  This is necessary to
3690         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3692         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3693         the default font directory also.  Based on a patch from James
3694         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3695         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3696         * src/utils/afmtodit/afmtodit.man: Document it.
3698         * NEWS: Updated.
3700         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3702 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3704         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3705         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3706         * configure.ac: Use it.
3707         * configure: Regenerated.
3708         * Makefile.in: Updated.
3710         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3711         (CLEANADD): Add www.tmac-sed.
3712         (pnmtops_nosetpage): Define default.
3713         (install_data): Handle www.tmac-sed and substitute
3714         @PNMTOPS_NOSETPAGE@.
3715         (stamp-sed): Add www.tmac.
3716         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3717         It now breaks URLs at suitable places.
3718         (www:substring_ok): New register set by...
3719         (www:@test_substring): New macro.
3720         (www:error): New alias to www-error.
3721         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3722         New macros.
3723         (URL): Use www:url_breaks.
3724         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3725         (CDS, CDE): New macros.
3727 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3729         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3730         buffer overflow.
3732 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3734         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3735         can be negative also.
3737         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3738         `int16'.
3739         (read_char_table): Avoid negative ascenders.
3740         (output_charset): Add cast.
3741         * font/devlj4/*: Regenerated.
3743         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3744         possible.
3746         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3747         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3748         of `<>'.
3749         * font/devdvi/*: Regenerated.
3751         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3752         normal width, while the previously used characters (U+2329 and
3753         U+232A) are classified as wide due to canonical equivalence with the
3754         CJK punctuation characters U+3008 and U+3009.
3756         * font/devutf8/R.proto: Updated.
3757         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3759         * man/groff_char.man: Simplify handling of table traps by
3760         introducing `start block' and `end block' macros.
3761         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3762         (DL): Make it work with Unix troff also.
3763         Fix code values of `la' and `ra'.
3765         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3767 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3769         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3770         New destructor, fixing a major memory leak.
3772 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3774         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3775         to be in conformance with Unicode 3.0 and newer.
3777         * font/devlj4/generate/text.map: Add `Eu'.
3778         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3779         * font/devlj4/S: Regenerated.
3781         * man/groff_char.man: Completely rewritten.
3783         * doc/groff.texinfo: Fix description of request and macro arguments.
3785 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3787         Valgrind fixes.
3789         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3790         Deallocate `columns' list.
3791         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3792         New destructor.
3793         (text_glob::text_glob_html, text_glob::text_glob_special,
3794         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3795         text_glob::text_glob_tag): Avoid memory leaks.
3796         (text_glob::remember_table): Free memory before reassigning.
3798 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3800         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3801         alias `hbar'), the Planck constant over two pi.
3803         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3804         `+e' for position 34.
3805         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3806         `u2662' and `u2661'.
3807         * font/devdvi/{MI,S}: Regenerated.
3808         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3809         * font/devlbp/*: Add `hbar' alias.
3810         * font/devlj4/generate/special.map: Ditto.
3811         * font/devlj4/S: Regenerated.
3812         * font/devps/generate/symbolchars: Add `+e'.
3813         * font/devps/generate/textmap: Fix PS name for `-h'.
3814         Add `hbar' alias.
3815         * font/devps/symbolmap: Regenerated.
3817         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3819         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3820         `-h', `hbar'.
3821         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3822         `-h'.
3824         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3825         `hbar'.
3826         * tmac/tty-char.tmac: Add `+e'.
3828 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3830         Another round trying to really fix problems with `have_input'.
3832         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3833         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3835         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3836         handling if both foreground and background colors are default.
3838         * doc/groff.texinfo (Debugging): Document .lf differences to
3839         AT&T troff.
3841 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3843         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3844         null-bytes in created string.
3846         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3847         alias_macro, lookup_request): Improve warning messages.
3849         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3850         not `strdup'.
3851         Free `last_image_filename'.
3853         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3854         `buffer'.
3855         (imageList::createPage, imageList::createImage): Use `free', not
3856         `a_delete'.
3857         (imageItem::~imageItem): Free `imageName'.
3858         (addRegDef): Use `strsave', not `strdup'.
3859         (get_resolution): Free `pathp'.
3861 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3863         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3864         to `dummy'.
3866 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3868         Add memory management for colors to deallocate unnamed colors
3869         properly.
3871         * src/include/color.h (color): New members `free_list' and `next'.
3872         New member functions `new' and `delete'.
3873         Add destructor.
3874         * src/libs/libgroff/color.cc: Implement it.
3876         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3877         for array size of new operator.
3879         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3880         redundant comparison.
3882         * src/roff/troff/input.cc (word_space_node::reread,
3883         hmotion_node::reread): Avoid warning about unused parameter.
3884         (reset_output_registers): Remove redundant parameter.
3885         (define_color): Undo change 2003-02-12.
3887         * src/roff/troff/reg.h: Updated.
3889         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3890         output_file::put_filename, real_output_file::really_put_filename,
3891         ascii_output_file::really_print_line,
3892         break_char_node::get_hyphen_list): Avoid warning about unused
3893         parameter.
3894         (suppress_node::tprint): Updated.
3896         * configure.ac: Check declaration for rand() and srand().
3897         * configure: Regenerated.
3899         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3900         conditionally.
3901         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3902         and srand().
3904         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3905         to avoid compiler warnings.
3907         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3908         unused.
3910         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3911         is unused.
3912         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3913         (unused) parameter.
3914         Updated all callers.
3916         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3917         is unused.
3918         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3919         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3921         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3922         Parameter is unused.
3923         (html_printer::add_table_end): Define parameter conditionally.
3924         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3925         is unused.
3927         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3928         (lbp_printer::set_char): Last parameter is unused.
3930         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3932 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3934         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3935         Make \D'f ...' move horizontally again for backwards compatibility.
3936         Replace it with \D'Fg ...' where appropriate to avoid dependency
3937         on horizontal resolution.
3939         * src/roff/troff/input.cc (do_get_long_name): New function.
3940         (get_long_name): Call it.
3942         (read_draw_node): Handle `\D'Fx ...' by calling ...
3943         (read_color_draw_node): New function.
3945         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3946         `end'.
3947         Pass it to `do_get_long_name' which is used instead of
3948         `get_long_name'.
3950         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3951         unnecessary value guard.
3952         (parse_D_command) <'f'>: Add horizontal shift.
3954         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3955         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3956         (FILL_MAX): Removed.
3958         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3959         Updated.
3961 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3963         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3964         do_zero_width): Push `\n' if closing delimiter is missing.
3966         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3967         <'F'>: Make \F non-transparent at the beginning of line.
3968         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3969         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3970         `have_input'.
3972         (define_color): Free color in case of reassignment.
3974         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3975         @DefescListEnd): Use @Var, not @var.
3976         Fix all calls.
3978         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3980         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3981         `shaded' and `outlined' arrays.
3982         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3983         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3984         Use strsave.
3985         (closed_object::set_fill_color): Ditto.
3986         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3987         instead of strdup.
3988         (troff_output::reset_color): Use a_delete instead of free.
3989         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3991 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3993         * doc/groff.texinfo: Improve documentation of `ad'.
3994         Document that \D'f...' is dependent on the horizontal resolution.
3995         * man/groff_diff.man: Improve documentation of \D'f...'.
3997         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3998         compensating \h'...' for \D'f ...' since the latter no longer moves
3999         current position.
4000         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4002 2003-02-10  Werner LEMBERG  <wl@gnu.org>
4004         Improve error messages for `x F' (and `F') commands.
4006         * src/include/error.h: Add declaration for
4007         `current_source_filename'.
4008         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4009         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4010         parameter for source file string.
4011         Updated all callers.
4013         * src/libs/libdriver/input.cc: Add `current_source_filename'.
4014         (remember_source_filename): New function.
4015         (parse_x_command <'F'>, do_file <'F'>): Use it.
4017 2003-02-09  Werner LEMBERG  <wl@gnu.org>
4019         Make grotty not emit warnings about unknown colors more than
4020         necessary.
4022         * src/devices/grotty/tty.cc: Include `ptable.h'.
4023         (TTY_MAX_COLORS): Removed.
4024         (DEFAULT_COLOR_IDX): Defined to -1.
4025         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4026         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4027         Change `tty_colors' to be a ptable.
4028         First arg of `put_color' is now `char'.
4029         New functions `make_rgb_string' and `tty_color'.
4030         (tty_printer::tty_printer): Use `tty_color'.
4031         (tty_printer::color_to_idx): Return value is now `char'.
4032         Use `tty_color'.
4034         * src/include/color.h (color): Add `print_color' member function.
4035         * src/libs/libgroff/color.cc (color::print_color): Implement it.
4037 2003-02-08  Werner LEMBERG  <wl@gnu.org>
4039         Valgrind fixes.
4041         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4042         encoding file.
4044         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4045         assume that value has been allocated with `new[]', thus use
4046         `a_delete' for deallocation.
4048         * src/libs/libdriver/input.cc (get_integer_arg,
4049         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4050         where appropriate.
4052         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4053         * src/libs/libgroff/nametoindex.cc
4054         (character_indexer::named_char_index): Use `new <type>[1]'.
4056         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4057         <type>[1]'.
4058         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4059         (split_text): Use `a_delete'.
4061         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4062         <type>[1]'.
4064         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4065         harmless memory leak.
4066         (hyphen_trie::read_patterns_file): Initialize `buf'.
4067         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4068         Initialize `current_fill_color'and `current_glyph_color'.
4069         * src/roff/troff/glyphuni.cc
4070         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4071         * src/roff/troff/uniuni.cc
4072         (unicode_decompose_init::unicode_decompose_init): Ditto.
4073         * src/roff/troff/uniglyph.cc
4074         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4076 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4078         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4079         `access' before calling `unlink'.
4080         (do_file): Handle __EMX__.
4082         * src/include/nonposix.h: Handle __EMX__.
4084         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4085         (fontpath,tmacpath): Use it.
4086         (MDEFINES): Add it.
4087         Sorted alphabetically.
4089         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4090         @SEP@.
4091         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4092         @SEP@.
4094 2003-01-27  Werner LEMBERG  <wl@gnu.org>
4096         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4097         New files, copied from gnulib.
4098         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4099         * configure.ac: Updated.
4100         * configure: Regenerated.
4102         * src/include/config.hin: Regenerated.
4103         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4104         Don't define `strcasecmp' as `strcmp'.
4105         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4106         Dont define `strncasecmp' as `strncmp'.
4108         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4109         Removed.
4111 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4113         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4114         s/unline/unlink/.
4116 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4118         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4120 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4122         Add US-english hyphenation exceptions (converted from Barbara
4123         Beeton's hyphenation exception log reports which appear irregularly
4124         in TUGBoat).
4126         * tmac/hyphen.us: Updated to latest version.
4127         * tmac/README: Updated.
4128         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4129         * tmac/troffrc: Load `hyphenex.us'.
4130         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4131         * doc/groff.texinfo: Updated.
4133 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4135         Improve hyphenation slightly.  This is a first step in redesigning
4136         the hyphenation algorithm to make it more flexible (e.g. allowing
4137         kerns and ligatures between the hyphenation character and the
4138         following character -- while not used normally in English, other
4139         languages like German would benefit).
4141         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4142         assertion instead of if-clause.
4143         Let `get_hyphen_list' return the number of involved characters in
4144         the hyphenation pattern instead of computing it directly (which
4145         often yields too small values).
4146         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4147         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4148         parameter.
4150 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4152         Fixing a bug which caused groff to hang if the hyphenation exception
4153         dictionary tried to grow.
4155         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4156         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4157         pointer to dictionary.
4159 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4161         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4162         negative left italic correction.
4163         * src/utils/afmtodit/afmtodit.man: Document it.
4165         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4166         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4167         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4169         * NEWS: Updated.
4171 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4173         * NEWS: Updated.
4175 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4177         * src/preproc/refer/refer.man: Mention REFER environment variable.
4179 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4181         Similar to \[is], the square root glyph (\[sr]) and the square root
4182         extension glyph (\[radicalex]) are now text symbols.  The new
4183         mathematical versions are called \[sqrt] and \[sqrtex],
4184         respectively.
4186         * font/devX*/S: Regenerated.
4187         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4188         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4189         * font/devdvi/EX, font/devdvi/S: Regenerated.
4190         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4191         * font/devlj4/generate/special.map: Add `sqrt'.
4192         * font/devlj4/S: Regenerated.
4193         * font/devps/generate/textmap: Add `sqrt'.
4194         * font/devps/S, font/devps/symbolmap: Regenerated.
4196         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4197         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4198         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4199         overlap horizontally.
4201         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4202         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4203         Fix `radicalex'.
4205         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4206         and `sqrtex' are overlapping glyphs.
4208 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4210         * font/devdvi/generate/texsy.map: Add `is'.
4211         * font/devps/symbolmap: Regenerated.
4212         * font/devdvi/*TC, MI, S: Regenerated.
4214         * tmac/dvi.tmac: Remove `is'.
4216 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4218         `is' is now a text symbol (only relevant for dvi).  The math variant
4219         can be accessed with `integral'.
4221         * font/devX*/S: Regenerated.
4222         * font/devdvi/generate/texex.map: Remove `is'.
4223         * font/devdvi/EX: Updated.
4224         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4225         * font/devlj4/generate/special.map: Ditto.
4226         * font/devlj4/S: Regenerated.
4227         * font/devps/generate/textmap: Add `integral'.
4228         * font/devps/S: Regenerated.
4230         * tmac/dvi.tmac: Define `is'.
4232         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4234         * src/preproc/tbl/main.cc (process_format): Fix error message.
4236 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4238         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4239         * font/devps/textmap: Fix entries for `ne' and `nc'.
4240         * font/devps/symbolmap: Regenerated.
4242         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4243         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4244         `38', `58', `78', `-+', `|=', `nc', `ne'.
4246         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4247         Use `schar' for `aq'.
4248         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4249         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4250         * tmac/tty.tmac: Add `ne'.
4252         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4253         for fallback glyphs.
4255 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4257         Add glyph `|='.
4259         * font/devX*/*: Regenerated.
4260         * font/devdvi/generate/ec.map: Remove `eq'.
4261         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4262         Assign `|=' to position 39.
4263         * font/devdvi/*EC, S: Regenerated.
4264         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4265         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4266         Assign `|=' to position 549.
4267         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4268         `equalmath'.
4269         Add `uni2243' for `|='.
4271         * tmac/ec.tmac: Add `eq'.
4272         * tmac/dvi.tmac: Add `=~'.
4273         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4274         `|='.
4276 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4278         * font/devdvi/generate/tc.map: Remove `**'.
4279         * font/devdvi/*TC: Regenerated.
4280         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4281         `78', `<<', `>>'.
4282         * font/devutf8/NOTES: Updated.
4284         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4285         Don't give default parameter to `set_macro'.
4286         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4287         instead of `set_macro'.
4288         (charinfo::setx_macro): Implement it.
4289         (charinfo::set_macro): Don't change `mode'.
4291         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4292         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4293         * tmac/dvi.tmac: Define `!=' with `.schar'.
4295 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4297         * font/devX*/S: Regenerated.
4298         * font/devdvi/generate/ec.map: Remove `pl'.
4299         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4300         * font/devdvi/*{TC,EC}: Regenerated.
4301         * font/devhtml/R.proto: Add `-+'.
4302         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4303         * font/devlbp/*: Remove `or'.
4304         * font/devlj4/generate/special.map: Remove `or'.
4305         * font/devlj4/S: Regenerated.
4306         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4307         `seveneighths', `threeeighths'.
4308         Remove `plusmath'.
4309         Replace `minusplus' with `uni2213'.
4310         * font/devps/symbolmap: Regenerated.
4311         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4312         Add `-+'.
4314         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4315         function.
4316         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4317         Call glyph_color and fill_color even if tcommand_flag isn't set.
4318         (make_node, node::add_char): Check not ci->is_fallback but
4319         ci->is_normal.
4321         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4322         * tmac/ec.tmac: Add .rchar entry for `f/'.
4323         Don't remove `12', `14', `34'.
4324         Define `pl' to be always roman.
4325         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4326         Define `18', `38', `58', `78'.
4327         * tmac/tty.tmac: Add `-+'.
4328         * tmac/dvi.tmac: Define `f/'.
4329         (dvi-frac): Use `f/'.
4330         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4331         Define `18', `38', `58', `78'.
4333 2002-12-15  Colin Watson  <cjwatson@debian.org>
4335         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4337 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4339         Add glyph `tno', a textual variant of `no'.
4341         * font/devX*/*: Regenerated.
4342         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4343         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4344         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4345         * font/devdvi/*: Regenerated.
4346         * font/devlbp/*: Add `tno'.
4347         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4348         * font/devlj4/*: Regenerated.
4349         * font/devps/generate/textmap: Replace `no' with `tno'.
4350         * font/devps/generate/symbolchars: Add `no'.
4351         * font/devps/*: Regenerated.
4353         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4355         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4356         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4358         * NEWS: Updated.
4360         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4361         Add definition for `sd'.
4362         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4364         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4366 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4368         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4369         mode to avoid rounding errors.
4370         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4372         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4373         src/roff/troff/troff.man: Improve documentation of -T.
4375 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4377         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4378         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4380 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4382         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4383         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4384         Scaling Euro.sansserif glyphs down to have the same height as
4385         digits.
4386         Removed unnecessary points; added some extrema.
4388         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4389         Regenerated.
4391 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4393         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4394         and `Euro.symbol.bold.slanted'.
4395         Improve some glyph offsets and widths.
4396         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4397         Regenerated.
4398         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4399         typo.
4400         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4401         direcory.
4403         * tmac/europs.tmac: Updated to new glyph indices.
4404         Use Euro.symbol for font familiy `A'.
4406         * doc/groff.texinfo: Minor improvements.
4408 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4410         * font/devdvi/generate.tc.map: s/%O/%0/.
4411         * font/devdvi/*TC: Regenerated.
4413         * src/roff/troff/div.cc (init_div_requests): Sorted.
4415         * tmac/dvi.tmac: Remove `Ye'.
4416         * tmac/ec.tmac: Remove `Ye'.
4417         Add .rchar entry for `de'.
4419         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4420         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4421         * NEWS: Updated.
4423 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4425         Add PS font for various Euro glyphs.
4427         * font/devps/generate/freeeuro.sfd: New master font file for
4428         pfaedit.
4429         * font/devps/generate/sfdtopfa.pe: New conversion script for
4430         pfaedit.
4431         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4432         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4433         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4434         `freeeuro.sfd'.
4435         * font/devps/EURO: Generated from `freeeuro.afm'.
4436         * font/devps/download: Add `freeuro.pfa'.
4437         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4438         `freeeuro.pfa'.
4440         * tmac/europs.tmac: New file.
4441         * tmac/ps.tmac: Include `europs.tmac'.
4442         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4444 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4446         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4447         * font/devdvi/S: Regenerated.
4448         * font/devhtml/R.proto: Fix `CR' and `ci'.
4449         Add `OK'.
4450         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4451         Remove `bs'.
4452         * font/devps/symbolmap: Regenerated.
4453         * font/devutf8/R.proto: Fix `CR' and `ci'.
4454         Add `OK'.
4455         * font/devutf8/NOTES: Updated.
4457         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4458         `ci'.
4459         Add `OK'.
4460         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4462         * tmac/dvi.tmac: Add `lh' and `rh'.
4463         * tmac/Xps.tmac: Fix `lh' and `rh'.
4464         * tmac/X.tmac: Add `OK'.
4465         * tmac/lj4.tmac: Ditto.
4467 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4469         * font/devX*/S: Regenerated.
4470         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4471         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4472         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4473         * font/devdvi/S: Regenerated.
4474         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4475         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4476         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4477         `bracketleftbt', `bracketrighttp', `bracketrightex',
4478         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4479         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4480         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4481         `rb', and `bv'.
4482         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4483         * font/devutf8/NOTES: Updated.
4484         * font/devlj4/generate/special.map: Add glyph `braceex'.
4485         * font/devlj4/S: Regenerated.
4487         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4489 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4491         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4492         and `vA'.
4493         Fix code for `an'.
4494         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4496         * doc/texinfo.tex: New version from texinfo 4.3.
4497         * doc/groff.texinfo: Updated for texinfo 4.3.
4498         Use @tie{} where appropriate.
4499         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4500         * font/devdvi/generate/tc.map: Remove `rn'.
4501         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4502         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4503         Fix code for `an'.
4504         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4505         font/devX75-12/*: Regenerated.
4507         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4508         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4509         Improve definition of `an'.
4510         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4511         `ru'.
4512         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4513         * tmac/X.tmac: Add definition for `or'.
4514         * tmac/Xps.tmac: Undo change 2002-11-05.
4515         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4517 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4519         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4520         call flush_tbuf.
4522 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4524         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4525         defines a glyph which is searched after the check for fonts declared
4526         with `.special' (and before the check for all mounted special
4527         fonts).  `fschar' defines a glyph for a particular font which is
4528         searched after the check for fonts declared with `.fspecial' (and
4529         before the check for fonts declared with `.special').  `rfschar'
4530         removes glyphs defined with `fschar'.
4532         * src/roff/troff/token.h (char_mode): New enum.
4533         Declare do_define_character.
4534         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4535         `mode'.
4536         (charinfo::is_fallback): Updated.
4537         (charinfo::is_special): New method.
4538         * src/roff/troff/input.cc (do_define_character): Add and use
4539         optional second parameter used as a prefix for font-specific glyph
4540         names.
4541         (define_character, define_fallback_character): Updated.
4542         (define_special_character): New function.
4543         (init_input_requests): Add `schar'.
4544         (charinfo::charinfo, charinfo::set_macro): Updated.
4545         * src/roff/troff/node.cc: Include `stringclass.h'.
4546         (make_glyph_node): Handle special glyphs defined with `.schar' and
4547         `.fschar'.
4548         (define_font_special_character, remove_font_special_character): New
4549         functions.
4550         (init_node_requests): Sorted.
4551         Add `fschar' and `rfschar'.
4552         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4553         Document new requests.
4555         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4556         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4558 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4560         Added new font `SC' (cmtex10) to devdvi.
4562         * devdvi/generate/Makefile (FONTS): Add `SC'.
4563         (SC): New rule.
4564         * devdvi/generate/textex.map: New map file for cmtex.
4565         * devdvi/SC: New.
4566         * devdvi/Makefile.sub (DEVFILES): Updated.
4567         * tmac/dvi.tmac: Add fspecial entries for SC.
4568         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4569         found before `S' since the font position of `SC' is lower due to the
4570         gaps in DESC's `font' line.
4571         * tmac/ec.tmac: Add a `special' call.
4572         * NEWS: Updated.
4574         * font/devhtml/R.proto: Remove double entry for `ti'.
4575         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4576         * tmac/tty-char.tmac: Remove entry for `bq'.
4577         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4578         * tmac/ec.tmac: Don't remove `aq' glyph.
4579         * tmac/X.tmac: Fix entry for `em'.
4580         Add entries for `fo' and `fc'.
4581         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4583         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4584         documentation of `special' and `fspecial' requests.
4586 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4588         * font/devascii/R.proto, font/devcp1047/R.proto,
4589         font/devlatin1/R.proto: Remove entry for `.i'.
4590         * font/devdvi/generate/textt.map: Add entry for `ad'.
4591         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4592         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4593         We need this for getting kerning values to compose `/l' and `/L'.
4594         * font/devdvi: Regenerated font definition files for CM fonts.
4595         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4596         * font/devutf8/R.proto: Ditto.
4597         Remove double entry for `ti'.
4599         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4600         for (groff) ligatures, `la', and `ra'.
4601         Add "'C", "'c", `IJ', and `ij'.
4602         Remove double entry for `ti'.
4603         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4604         double entries.
4605         Add "'C", "'c", `IJ', and `ij'.
4606         Fix entries for (groff) ligatures, `la', and `ra'.
4608         * tmac/ps.tmac (ps-achar): New macro.
4609         Define "'c" and "'C".
4610         * tmac/tty.tmac: Add entry for `.i'.
4611         * tmac/X.tmac (X-achar): New macro.
4612         Define "'c", "'C", and `:Y'.
4613         Add entries for `IJ' and `ij'.
4614         * tmac/Xps.tmac (Xps-achar): New macro.
4615         Define "'c" and "'C".
4616         Add entries for `IJ' and `ij'.
4617         * tmac/lbp.tmac (lbp-achar): New macro.
4618         Add fallback characters for all groff ligatures and many other
4619         glyphs.
4620         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4621         Add entries for `/l' and `/L'.
4622         Define "'c" and "'C".
4623         Add entries for `IJ' and `ij'.
4625 2002-11-02  Larry Kollar  <kollar@alltel.net>
4627         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4629 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4631         Adding support for composite glyphs: \[xxx yyy ...] and the
4632         `composite' request.
4634         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4635         to Unicode-based glyph names.
4636         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4637         glyph names to groff glyph names.
4638         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4639         Unicode-based glyph names.
4640         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4641         for handling Unicode glyph names.
4642         * src/roff/troff/input.cc: Include unicode.h.
4643         (composite_glyph_name): New function.
4644         (token::next) <'['>: Handle Unicode glyph names and composite
4645         glyphs.
4646         (composite_dictionary): New dictionary for the `composite' request.
4647         (composite_request): Implement `composite' request.
4648         (init_input_requests): Add `composite'.
4649         Alphabetically sorted.
4650         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4651         commented out).
4652         (init_env_requests): Alphabetically sorted.
4653         Removed `tas' and `tar' (already commented out).
4654         * src/roff/troff/Makefile.sub: Updated.
4656 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4658         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4659         of options.
4661 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4663         Fix computation of .trunc register.  Additionally, its value (and
4664         the value of the .ne register) is now always set before entering the
4665         trap.
4667         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4668         `needed_space' before calling `space'.
4669         (top_level_diversion::space): Remove special code for 'sp before the
4670         first page.
4671         Call `begin_page' with the discarded space as a parameter.
4672         (top_level_diversion::begin_page): Add optional parameter to set
4673         `truncated_space'.
4674         * src/roff/troff/div.h: Updated.
4676         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4677         \n[.ne].
4679         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4680         (LP): Remove superfluous call to `br'.
4681         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4682         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4684 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4686         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4687         (doc-setup-header): Don't set page register `%'.
4688         * tmac/doc-nroff: Remove variable `C'.
4689         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4690         (doc-setup-header): Don't set page register `%'.
4691         Don't call `bp'.
4692         * tmac/doc-common (doc-header): Call `ns'.
4693         (doc-paragraph): Protect .sp with .br so that it survives traps
4694         possibly set by the user.
4695         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4697         * tmac/doc*: Replace ' with . for consistency if no effect.
4699 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4701         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4702         so that it survives traps possibly set by the user.
4704         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4705         (troff_output_file::set_font): Call flush_tbuf if necessary.
4706         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4707         flush_tbuf and do_motion only if necessary.
4708         (troff_output_file::start_special,
4709         troff_output_file::put_char_width, troff_output_file::put_char,
4710         troff_output_file::draw): Updated.
4711         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4712         vmotion_node::tprint): Undo change 2002-10-23.
4714 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4716         * tmac/www.tmac (DC): Fix case of overlapping images.
4718 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4720         * src/roff/troff/node.cc (troff_output_file::fill_color,
4721         troff_output_file::glyph_color): Set current color before testing
4722         color_flag.
4723         (troff_output_file::put_char_width, troff_output_file::put_char,
4724         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4725         before glyph_color.
4726         (troff_output_file::file_color, troff_output_file::glyph_color):
4727         Call do_motion.
4728         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4729         vmotion_node::tprint): Move first, then call fill_color.
4731 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4733         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4734         possible to use multiple main macro packages.
4736 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4738         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4739         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4740         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4741         is set.
4742         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4743         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4745 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4747         * NEWS, doc/webpage.ms: Updated.
4749 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4751         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4752         troff_output_file::put_char, troff_output_file::fill_color,
4753         troff_output_file::glyph_color): Handle case where color pointer
4754         is null.
4756 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4758         Add the new -r option to grotty.  It is similar to the -i option
4759         except it tells grotty(1) to use the "reverse video" attribute to
4760         render italic fonts.
4762         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4763         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4764         (tty_printer::make_underline, tty_printer::put_color,
4765         tty_printer::end_page): Use it.
4766         (main): Add -r switch.
4767         (usage): Updated.
4768         * src/devices/grotty/grotty.man: Document it.
4770 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4772         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4773         cast to `unsigned char' to properly read patterns with 8bit
4774         characters.
4776 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4778         * REVISION: Increased to 2.
4780 Version 1.18.1 released
4781 =======================
4783 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4785         * doc/webpage.ms, NEWS: Updated.
4787 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4789         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4790         suppress additional whitespace after the header.
4792         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4793         with NetBSD.
4795         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4797 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4799         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4800         (Dt): Use it to improve language localization (especially Russian
4801         and French).
4803 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4805         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4806         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4807         drawing commands.
4808         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4809         curve type.
4810         Call `picurve' for BSPLINE.
4811         (HGPrintElt): Handle BSPLINE.
4812         * src/preproc/grn/README: Document it.
4814 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4816         * src/roff/troff/node.cc (break_char_node::col): New variable.
4817         Updated constructor.
4818         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4819         unconditionally.
4820         (space_node::space_node): Remove assertion.
4821         (break_char_node::add_self): Pass color argument to space node.
4822         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4823         Ditto.
4824         * src/roff/troff/env.cc (environment::do_break,
4825         environment::add_padding): Ditto.
4827 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4829         Redesigning color support in troff.  Colors are no longer
4830         represented as separate nodes but are now part of glyph nodes and
4831         friends.  This fixes the current formatting misbehaviour due to the
4832         changes introduced on 2002-09-20.  Some extra code is necessary for
4833         proper grotty support: Without adding color variables to
4834         space-related nodes, the background color would be changed too late.
4836         * src/roff/troff/node.h, src/roff/troff/node.cc:
4837         s/current_pagecolor/current_fill_color/.
4838         s/current_glyphcolor/current_glyph_color/.
4839         (glyph_color_node, fill_color_node): Removed.
4840         (node::get_glyph_color, node::get_fill_color): New virtual member
4841         functions.
4842         (space_node::col): New variable.
4843         Updated constructors of space_node and derived classes accordingly.
4844         (hmotion_node::col): New variable.
4845         Updated constructors of hmotion_node and space_char_hmotion_node
4846         accordingly.
4847         (vmotion_node::col): New variable.
4848         Updated constructor accordingly.
4849         (draw_node::gcol, draw_node::fcol): New variables.
4850         Updated constructor accordingly.
4851         (special_node::gcol, special_node::fcol): New variables.
4852         Updated constructors accordingly.
4853         (troff_output_file::put_char, troff_output_file::put_charwidth,
4854         troff_output_file::draw): Set glyph and fill color.
4855         (troff_output_file::start_special): Set glyph and fill color.
4856         Always set current font.
4857         (troff_output_file::fill_color, troff_output_file::glyph_color):
4858         Don't call `do_motion'.
4859         (glyph_node::gcol, glyph_node::fcol): New variables.
4860         Updated constructors of glyph_node and ligature_node accordingly.
4861         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4862         member functions.
4863         (glyph_node::merge_glyph_node,
4864         kern_pair_node::add_discretionary_hyphen,
4865         node::add_discretionary_hyphen): Updated.
4866         (break_char_node::merge_self): Updated.
4867         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4868         vmotion_node::tprint): Handle color.
4869         (make_glyph_node, make_node, node::add_char): Updated.
4871         * src/roff/troff/env.cc (environment::space_newline,
4872         environment::space, environment::output_line, environment::do_break,
4873         environment::make_tab_node, environment::add_padding, title):
4874         Updated.
4875         (environment_switch, environment_copy): Don't add color nodes.
4877         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4878         nothing.
4879         (token::next): Updated.
4880         \m and \M now are as transparent as \s.
4881         (process_input_stack, token::add_to_node_list, token::process,
4882         read_draw_node): Updated.
4883         (charinfo_to_node_list): Don't add color nodes.
4885         * doc/groff.texinfo: Updated.
4887 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4889         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4890         strings.
4892 2002-09-27  Colin Watson  <cjwatson@debian.org>
4894         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4896 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4898         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4899         appropriate.
4900         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4901         (linewidth_factor): New global variable.
4902         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4903         linewidth_factor.
4904         (long_options): Add -w/--linewidth option.
4905         (usage): Updated.
4906         (main): Handle -w option to set linewidth_factor.
4907         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4908         line_thickness.
4910         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4912 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4914         Fixed a bug in the line thickness setting code.
4916         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4917         variable.
4918         (lbp_printer::set_line_thickness): Pass environment as second
4919         parameter.
4920         Implement it actually.
4921         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4922         and `set_line_thickness, depending on the current font size.
4924 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4926         Some Debian patches.
4928         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4929         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4930         `list->last'.
4932 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4934         * configure: Regenerated with autoconf 2.54.
4936 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4938         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4939         glyph_color.
4940         Rename cur_fill_color to fill_color.
4941         * src/roff/troff/env.cc: Updated.
4943 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4945         * src/roff/troff/env.cc (title): Copy color status after processing
4946         title.
4947         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4948         fill color nodes to reset colors properly.
4950         * tmac/www.tmac (DC): Fix color handling.
4952         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4953         * doc/groff.texinfo: Fixing documentation of `tl' request.
4954         * doc/webpage.ms: Updated.
4956 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4958         * src/roff/troff/env.cc (environent_switch, environment_copy):
4959         Emit glyph and fill color nodes to initialize colors properly.
4961 2002-09-17  Colin Watson  <cjwatson@debian.org>
4963         * src/roff/troff/env.cc (environment::set_glyph_color,
4964         environment::set_fill_color): Fix typo which prevented \m[] work
4965         correctly.
4967 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4969         Add left and right italic correction to non-slanted PS fonts.  This
4970         is an experimental feature to improve image rendering of grohtml.
4972         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4973         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4974         * font/devps/*: All non-slanted fonts regenerated.
4975         * NEWS: Updated.
4977 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4979         Add a site-specific font directory.
4981         * Makefile.in (localfontdir, legacyfontdir): New variables.
4982         (fontpath): Use them.
4983         (MDEFINES, uninstall_dirs): Updated.
4984         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4985         Remove `FONTPATH' and `MACROPATH'.
4987         * src/roff/troff/troff.man, NEWS: Updated.
4988         * doc/groff.texinfo (Font Directories): New section.
4989         Other minor fixes.
4991         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4992         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4993         src/preproc/grn/grn.man: Minor fixes.
4995         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4996         Remove unused variable.
4998 2002-09-11  Werner LEMBERG  <wl@gnu.org>
5000         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5001         * man/groff_out.man: Fix documentation of 'N'.
5003 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
5005         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5006         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5007         set.
5008         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5009         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5010         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5011         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5012         PRE_TAG>: Call `begin' with `FALSE'.
5014 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5016         * src/libs/libgroff/string.cc (string::extract): Fix position of
5017         terminating null byte.
5019 2002-09-08  Werner LEMBERG  <wl@gnu.org>
5021         Add global option `nospaces' to tbl so that leading and trailing
5022         spaces in data items are ignored.
5024         * src/libs/libgroff/string.cc (string::remove_spaces): New member
5025         function to remove leading and trailing spaces.
5026         * src/include/stringclass.h: Updated.
5028         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5030         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5031         option.
5032         Fix typo in error messages.
5033         (process_data): Implement `nospaces' option.
5034         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5036 2002-09-07  Werner LEMBERG  <wl@gnu.org>
5038         * src/include/config.hin: Add `HAVE_ISATTY'.
5039         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5040         `fname' member.
5041         * src/libs/libgroff/tmpname.cc: Include `time.h'.
5042         * src/libs/libdriver/input.cc (Char): Add `operator==' and
5043         `operator!=' for `char'.
5044         * doc/groff.texinfo: Replace @ifnottex block for top node with
5045         @ifhtml block.
5047 2002-09-06  Werner LEMBERG  <wl@gnu.org>
5049         * doc/Makefile.in (.texinfo.html): Add -I switch.
5050         * doc/groff.texinfo: Add @ifnottex block for top node to make
5051         translation to HTML work.
5053 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
5055         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5056         (get_papersize, determine_vertical_offset): Removed.
5057         (char_buffer::do_image): Always specify letter size.
5058         (main): Updated.
5059         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5060         -sPAPERSIZE.
5062 2002-09-05  Werner LEMBERG  <wl@gnu.org>
5064         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5065         default indentation.
5067 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
5069         * src/preproc/html/pre-html.cc (imageList::createPage): Use
5070         -sPAPERSIZE for gs.
5071         (generateImages): Clean up push-back buffer.
5073 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5075         * doc/groff.texinfo: Minor fixes.
5077 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5079         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5080         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5081         (gsPaper): Removed.
5082         (determine_vertical_offset): Use LETTER_LENGTH.
5083         (createPage): Moved to ...
5084         (imageList::createPage): This.
5085         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5086         (imageList::getMaxX): New function.
5087         (createImage): Moved to ...
5088         (imageList::createImage): This.
5089         (imageList::createImages): New function.
5090         (generateImages): Read `maxx' directly.
5091         Updated.
5092         (scanArguments): Don't specify `gsPaper' for `-o'.
5093         (makeTempFiles): Call `xtmpfile' with the last argument set to
5094         `TRUE'.
5096 2002-08-24  Werner LEMBERG  <wl@gnu.org>
5098         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5099         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5100         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5101         * src/preproc/html/pushback.cc: Include nonposix.h.
5102         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5103         conditionally.
5105 2002-08-23  Werner LEMBERG  <wl@gnu.org>
5107         Use $(OBJEXT) for the object file extension.
5109         * Makefile.comm (.SUFFIXES): Add .obj.
5110         (.cc.obj, .c.obj): New implicit rules.
5111         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5112         (MDEFINES): Add EXEEXT and OBJEXT.
5113         * */Makefile.sub: s/.o/.$(OBJEXT)/.
5115 2002-08-22  Werner LEMBERG  <wl@gnu.org>
5117         * INSTALL: Mention texinfo 4.2 as a prerequisite.
5119 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5121         * src/devices/grohtml/post-html.cc (colType): Make enum global to
5122         the file.
5123         (html_printer::update_min_max, html_printer::add_table_end): New
5124         methods.
5125         (html_printer::lookahead_for_tables): Use them.
5126         Reset page offset correctly.
5127         (html_printer::~html_printer): Add creation of creator comment up.
5129 2002-08-20  Werner LEMBERG  <wl@gnu.org>
5131         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5132         * man/groff_tmac.man: Fix typos.
5133         * man/groff_font.man: Minor reordering.
5134         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5136 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5138         Avoid endless loops while scanning for tables.
5140         * src/devices/grohtml/post-html.cc (list::insert): Set
5141         ptr->right->left.
5142         (html_printer::next_horiz_pos): Add `text_glob' argument; update
5143         all callers.
5144         Return immediately if that argument is NULL.
5145         (html_printer::calc_nf): Don't test if `g' is NULL.
5146         (html_printer::lookahead_for_tables): Use
5147         `glyphs.move_right_get_data'.
5148         Don't test if `g' is NULL.
5150 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5152         A better fix, replacing fix 2002-08-15, for increasing SIZE.
5154         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5155         a pointer.
5156         (char_block::char_block): Allocate `buffer'.
5157         (char_buffer::add_string): Use it.
5159 2002-08-15  Werner LEMBERG  <wl@gnu.org>
5161         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5162         src/devices/grodvi/grodvi.man: Document default line thickness.
5164 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
5166         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5167         8192.
5169 2002-08-14  Werner LEMBERG  <wl@gnu.org>
5171         * doc/webpage.ms: Updated.
5173 2002-08-09  Werner LEMBERG  <wl@gnu.org>
5175         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5176         unbreakable space.
5178 2002-08-08  Aaron Campbell  <aaron@monkey.org>
5180         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5181         (&& -> &).
5183 2002-08-08  Werner LEMBERG  <wl@gnu.org>
5185         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5186         tok.next().
5187         (read_gray): Ditto.
5188         Don't push back a space but a newline onto the stack.
5190 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
5192         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5193         inadvertently.
5195         * src/devices/grohtml/post-html.cc (html_printer::end_font,
5196         html_printer::start_font): Handle them.
5197         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5198         reset bold and tt.
5199         (html_text::do_bold): Don't reset italic and tt.
5200         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5201         * font/devhtml/DESC.proto: Add those fonts.
5202         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5204 2002-08-07  Werner LEMBERG  <wl@gnu.org>
5206         * MORE.STUFF: Added gpresent.
5208         * tmac/trace.tmac: Show nesting level by a corresponding amount of
5209         whitespace before printing the logging message.
5211 2002-07-31  Colin Watson  <cjwatson@debian.org>
5213         * src/devices/grohtml/html-table.cc (html_table::finish_row):
5214         Initialize `n' to zero.  This fixes a segfault on ARM.
5216 2002-07-30  Werner LEMBERG  <wl@gnu.org>
5218         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5220 2002-07-29  Werner LEMBERG  <wl@gnu.org>
5222         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5223         final semicolon.
5225 2002-07-28  Colin Watson  <cjwatson@debian.org>
5227         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5228         `.ps'.
5229         (html_printer::html_printer): Initialize `pointsize'.
5231 2002-07-26  Werner LEMBERG  <wl@gnu.org>
5233         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5234         gnu.png.
5235         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5236         (gnu.eps): Add -rle switch to pnmtops.
5237         (distfiles): Add gnu.eps and gnu.png.
5239 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
5241         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5242         Add `operator!='.
5244 2002-07-24  Werner LEMBERG  <wl@gnu.org>
5246         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5247         ' \+' but '  *' for sed.
5248         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5250 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5252         * doc/groff.texinfo: Document `papersize' keyword.
5253         * NEWS, man/groff_font.man: Updated.
5255 2002-07-23  Colin Watson  <cjwatson@debian.org>
5257         Extend papersize keyword to accept more than a single entry.  The
5258         first valid will be used.
5260         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5261         (font::scan_papersize): Really skip final newline.
5262         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5264 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5266         * configure.ac: Test for isatty.
5267         * configure: Regenerated.
5268         * src/include/posix.h: Check HAVE_ISATTY.
5269         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5270         * src/utils/lookbib/lookbib.cc: Include posix.h.
5271         Don't declare isatty.
5273 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5275         * NEWS: Add `output' request.
5277         * REVISION: Increased to 1.
5279 Version 1.18.0 released
5280 =======================
5282 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5284         Allow internal glyph indices > 0xFF in grohtml for input characters.
5286         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5287         as parameter.
5288         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5289         Updated all callers.
5290         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5291         (html_printer): Updated.
5293 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5295         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5296         * font/devutf8/R.proto: Adding some missing glyphs.
5297         * font/devutf8/NOTES: Updated.
5299         * tmac/dvi.tmac: Add more composite glyphs.
5300         * tmac/html.tmac: Updated.
5302         * man/groff_char.man: Add `sum' and `product' entities.
5304         * NEWS: Updated.
5306 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5308         Improved table, tab, and indenting support.
5310         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5311         string_iterator::suppress_newline_flag): Removed.  Updated all
5312         function which have used it.
5314         * src/roff/troff/env.cc: Include `input.h'.
5315         (environment::add_node): Accept 0 as parameter.
5316         (environment::add_html_tag): Add `force' parameter.
5317         Updated all callers.
5318         (environment::add_html_tag_tabs): Ditto.
5319         For the moment, support left-aligned tabs only.
5320         (environment::make_html_tag): New function.
5321         (fill, no_fill): Set .br html tag additionally.
5322         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5323         (environment::add_html_tag_eol): Removed.
5324         (tab_stops::distance_to_next_tab): Add variant for handling 
5325         nextpos'.
5326         (environment::distance_to_next_tab): Ditto.
5327         Updated all callers.
5328         (environment::handle_tab): Handle tabs for html.
5329         
5330         * src/roff/troff/env.h: Updated.
5332         * src/roff/troff/div.cc: Updated all callers of
5333         `environment::add_html_tag'.
5335         * src/devices/grohtml/html-table.cc,
5336         src/devices/grohtml/html-table.h: New files.
5338         * src/devices/grohtml/html-text.cc (html_text): New members
5339         `blank_para' and `start_space'.
5340         (html_text::issue_tag): Don't emit TABLE_TAG.
5341         Handle indentation for PRE_TAG and P_TAG.
5342         (html_text::end_tag): Updated.
5343         (html_text::table_is_void, html_text::issue_table_begin,
5344         html_text::issue_table_end): Removed.
5345         (html_text::do_push): Simplified.
5346         [DEBUGGING]: Small fix.
5347         (html_text::push_para): Add new parameter for indentation; updated
5348         all callers.
5349         Handle PRE_TAG.
5350         (html_text::do_indent, html_text::do_table, html_text::done_table,
5351         html_text::is_in_table): Removed.
5352         (html_text::do_pre): Handle P_TAG also.
5353         (html_text::shutdown): Handle p->indent.
5354         (html_text::check_emit_text): Simplified.
5355         (html_text::do_emittext): Reset `blank_para'.
5356         (html_text::do_para): Add new parameter for indentation; updated
5357         all callers.
5358         (html_text::remove_indent): New function.
5359         (html_text::do_space): Handle verbatim text properly.
5360         (html_text::ever_emitted_text, html_text::starts_with_space,
5361         html_text::remove_para_align): New functions.
5362         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5364         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5365         Updated.
5367         * src/devices/grohtml/post-html.cc: Include html-table.h.
5368         (INDENTATION): Removed.
5369         (text_glob): Added many `is_<foo>' functions.
5370         Added table description `tab'.
5371         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5372         member functions.
5373         (list): Add `insert' and `move_to' member functions.
5374         (page): Add `insert_tag' member function.
5375         (page::dump_page) [DEBUG_TABLES]: Improved.
5376         (html_printer): Add `table' and `max_linelength' elements.
5377         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5378         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5379         `remove_tabs', `remove_courier_tabs'.
5380         (html_printer::emit_raw): Handle indentation.
5381         (html_printer::do_center, html_printer::write_header): Updated.
5382         (html_printer::is_courier_until_eol): Check for tag.
5383         (html_printer::do_linelength): Handle max_linelength.
5384         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5385         fill_on.
5386         (html_printer::do_tempindent): Updated.
5387         (html_printer::do_indentedparagraph): Removed.
5388         (html_printer::do_indent): Simplified.
5389         (html_printer::do_eol): Use `ever_emitted_text'.
5390         (html_printer::do_flush, html_printer::do_links): Don't call
5391         done_table.
5392         (html_printer::do_break): Handle end_tempindent.
5393         (html_printer::troff_tag): Get argument.
5394         Don't handle `.ip'.
5395         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5396         (html_printer::flush_page): Call `lookahead_for_tables'.
5397         Don't call `done_table'.
5398         (html_printer::add_to_sbuf): Always call do_indent.
5400         * src/devices/grohtml/Makefile.sub: Updated.
5402         * tmac/an-old.tmac (TP): Don't handle html device specially.
5403         (an-do-tag-html): New function which will be used instead of
5404         `an-do-tag' if html device is used.
5406         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5408         * tmac/s.tmac (@IP): Don't handle html device specially.
5409         (@IP-html): New function which will be used instead of `@IP' if
5410         html device is used.
5412         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5413         is a hack which will eventually vanish again.
5414         (PIMG): Handle `-C' option correctly if not html.
5415         (HR): Use HTML-NS.
5417 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5419         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5421 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5423         * contrib/pic2graph/pic2graph.*: Use convert(1).
5424         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5426 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5428         * tmac/groff_trace.man: New file.
5429         * tmac/Makefile.sub: Updated.
5430         * NEWS: Updated.
5432 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5434         * src/roff/groff/groff.man: Add some cross references.
5436 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5438         * src/roff/troff/input.cc (substring_request): Add warnings for
5439         string indices out of range.
5441 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5443         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5444         * font/devdvi/*EC: Regenerated.
5446 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5448         * man/groff_char.man: Updated and extended.
5450 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5452         * src/roff/troff/input.cc (length_macro): Renamed to...
5453         (length_request): This.
5454         Move call of `tok.next()' to the very end, otherwise the register
5455         value hasn't been updated yet.
5456         (init_input_requests): Updated.
5458 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5460         * src/roff/troff/input.cc (substring_macro): Renamed to...
5461         (substring_request): This.
5462         (init_input_requests): Updated.
5463         * src/roff/troff/request.h: Updated.
5465 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5467         * src/roff/grog/grog.sh: Fix typo.
5469 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5471         * win32-diffs: Updated.
5473         Handle `papersize' keyword properly in DESC.
5475         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5476         type.
5477         Updated all callers.
5478         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5479         grolj4.
5480         * src/include/paper.h: Updated.
5482         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5483         Other minor C syntax fixes.
5484         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5485         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5486         members.
5487         (lbp_printer::lbp_printer): Pass three arguments.
5488         Set paper dimensions properly.
5489         (make_printer, main): Updated.
5490         (handle_unknown_desc_command): Fix error messages.
5491         (main): Handle papersize keyword in DESC properly.
5493         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5494         `user_paper_size'.
5495         (lbp_printer::lbp_printer): Pass an argument.
5496         Set paper_size properly.
5497         (handle_unknown_desc_command): Removed.
5498         (make_printer, main): Updated.
5499         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5501         * man/groff_font.man, NEWS: Updated.
5503 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5505         Integrated eqn2graph, contributed by Eric S. Raymond.
5507         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5508         files.
5509         * Makefile.in, NEWS: Updated.
5511 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5513         Changing the substring request to make it fit better with other
5514         string manipulation functions in other programming languages:
5515         Index 0 is now the first character in the string, and index -1
5516         indicates the last character.  Since this request didn't work
5517         properly anyway in the last release, it doesn't harm too much to
5518         change the syntax.
5520         * src/roff/troff/input.cc (substring_macro): Use loops to get
5521         the real string length (ignoring COMPATIBLE_SAVE and
5522         COMPATIBLE_RESTORE) and offsets.
5523         Implement change described above.
5525         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5526         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5528         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5530 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5532         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5533         COMPATIBLE_RESTORE are completely ignored.
5535         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5536         functions.
5537         (macro): `length' field renamed to `len'.
5538         Added new field `empty_macro' (1 if macro is empty), to be used
5539         instead of checking `len'.
5540         Updated all callers.
5541         (macro::empty): Updated.
5542         (macro::length, macro::set, macro::get): New functions.
5543         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5544         Set `empty_macro'.
5545         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5546         COMPATIBLE_RESTORE pairs.
5547         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5548         * src/roff/troff/request.h: Updated.
5550         * doc/groff.texinfo: Document .chop's behaviour better.
5552 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5554         * doc/pic.ms: Fix documentation for the addition of positions.
5556         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5558 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5560         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5562         * src/roff/troff/input.cc (have_string_arg): New global variable.
5563         (read_mode): New enumeration.
5564         (read_escape_name): Use it.  Update all calls.
5565         (read_long_escape_name): Use it.  Update all calls.
5566         Set have_string_arg if appropriate.
5567         (get_char_for_escape_name): Add parameter for handling space
5568         character.
5569         (interpolate_string_with_args, decode_string_args): New functions.
5570         (get_copy, token::next): Call it if necessary.
5571         (interpolate_string): Fix error message.
5573         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5574         Document it.
5576 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5578         * man/groff_tmac.man: Updated and extended.
5580 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5582         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5584 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5586         * doc/pic.ms: Improve documentation of composite block objects.
5588 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5590         * src/roff/troff/input.cc (init_registers): Add three registers
5591         `seconds', `minutes', and `hours' to hold the current time.
5593         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5594         Updated.
5596 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5598         Make \X accept both `\ ' and `\~', converting them to single space
5599         characters.
5601         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5602         (token::unstretchable_space): New inline function.
5603         * src/roff/troff/input.cc (token::next, token::delimiter,
5604         token::description, token::add_to_node_list, token::process): Handle
5605         TOKEN_UNSTRETCHABLE_NODE.
5606         (encode_char): Handle tok.stretchable_space and
5607         tok.unstretchable_space.
5609         * NEWS, doc/groff.texinfo: Document it..
5611 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5613         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5615         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5616         keyword to enable/disable SGR output.
5617         (tty_printer::change_fill_color): New function.
5618         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5620         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5621         call.
5623 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5625         Add a `color' request and a `.color' register to control usage of
5626         colours.
5628         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5629         (color_flag): This (which is the inverse).
5630         (activate_color): New function.
5631         (main, init_input_requests): Updated.
5632         * src/roff/troff/troff.h, src/roff/troff/node.cc
5633         (troff_output_file::fill_color, troff_output_file::glyph_color):
5634         Updated.
5636         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5637         Document the changes.
5639 2002-06-17  Colin Watson  <cjwatson@debian.org>
5641         Circumvent bug in autoconf 2.53 regarding top_builddir.
5643         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5644         * Makefile.in, doc/Makefile.in:
5645         s/@top_builddir@/@groff_top_builddir@/.
5646         * configure: Regenerated (with autoconf 2.53).
5648 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5650         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5651         `paperwidth' and `paperlength' for the `papersize' keyword.
5653 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5655         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5657 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5659         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5660         html_printer::do_linelength, html_printer::do_pageoffset,
5661         html_printer::do_indentation, html_printer::do_tempindent,
5662         html_printer::do_break, html_printer::begin_page): Clear indented
5663         text.
5664         * tmac/html.tmac: Disable hyphenation.
5666 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5668         Don't produce HTML files if utility programs are missing.
5670         * Makefile.in (make_html, make_install_html): New variables.
5671         (MDEFINES): Updated.
5673         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5674         utility programs.
5675         * configure.ac: Use it.
5676         * configure: Regenerated.
5678         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5679         (HTMLEXAMPLESFILES): This new variable.
5680         (EXAMPLESIMAGEFILES): Renamed to...
5681         (HTMLEXAMPLEIMAGEFILES): This.
5682         (CLEANADD): Add HTMLEXAMPLEFILES.
5683         (all): Use `make_html'.
5684         (html): New target.
5685         (install_data): Use `make_install_html'.
5686         Move html stuff to...
5687         (install_html): This new target.
5688         (uninstall_sub): Updated.
5690 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5692         * src/roff/grog/Makefile.sub (grog): Renamed to...
5693         (grog.old): This.
5694         (grog): New rule to always install grog.sh as grog.
5696 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5698         * src/roff/grog/grog.pl: Fix typo.
5700 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5702         * doc/groff.texinfo: Add more info on .tr arguments.
5704 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5706         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5708         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5709         * configure: Regenerated.
5711 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5713         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5715         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5717 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5719         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5720         is not initialized at the time we need it in case `--prefix' hasn't
5721         been set.  Check for `ac_default_prefix' also.
5722         Test for `papersize' keyword also and generalize allowed whitespace.
5723         * configure: Regenerated.
5725         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5726         `paperlength'.
5728         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5729         with...
5730         (src_version, src_revision): New variables to avoid overwriting
5731         from parent make process.
5732         (version.cc): Updated.
5734         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5735         (linebuf, linebufsize): New global variables.
5736         (sys_fatal): Use `fatal' to abort properly.
5737         (get_line): New function.
5738         (get_resolution): Use it.
5739         Improve error messages.
5740         (get_papersize): Check `papersize' also.
5741         Use `get_line'.
5742         Improve error messages.
5744 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5746         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5747         should be removed only if builddir is not srcdir.
5748         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5749         (clean): Depend on `mostlyclean'.
5750         (distclean): Depend on `clean'.
5751         (realclean, extraclean): Depend on `distclean'.
5752         (.y.cc, .y.o): Simplified.  The output files are no longer written
5753         to srcdir but to builddir.
5754         * Makefile.in (MDEFINES): Add `version' and `revision'.
5755         (uninstall_dirs): Fix order of directories.
5756         * doc/Makefile.sub (version, revision): Removed.
5757         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5758         Added `HTMLDOCFILES'.
5759         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5760         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5761         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5762         as prefix.
5764         * doc/texinfo.tex (\authortt): New macro.
5765         (\shortcontt): Define.
5766         (\titlepage): Set \tt to \authortt while defining \authorfont.
5767         (\appendixbox): New macro.
5768         (\chapmacro, \appendixentry): Use \appendixbox to get even
5769         indentation for letters.
5770         (\summarycontents): Set \tt.
5771         (\internalpagesize): Add two arguments for real paper width and
5772         height as needed by pdfTeX.
5773         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5774         Updated.
5775         (\tempdima, \tempdimb): New temporary dimensions.
5776         (\pagesizesyyy): Updated.
5778 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5780         Adding a new keyword `papersize' to the DESC file format (similar
5781         but not completely identical to grolbp's extension).  grops now has
5782         a -p command line option to override `papersize'.  Finally, grolbp
5783         has been adapted to the new syntax.
5785         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5786         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5787         elements.
5788         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5789         (CCSRCS): Add `paper.cc'.
5791         * src/include/font.h (font): Add `papersize' element.
5792         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5793         (font::scan_papersize): New function.
5794         (font::load_desc): Use it for handling `papersize' keyword.
5795         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5797         * src/devices/grops/ps.cc: Include paper.h.
5798         (user_paper_length): New global variable.
5799         (ps_printer): Use paper length as initializer.
5800         (make_printer): Updated.
5801         (main): Handle new `-p' option.
5802         * src/devices/grops/grops.man: Updated.
5804         * src/devices/grolbp/lbp.cc: Include paper.h.
5805         s/papersizes/lbp_papersizes/.
5806         (set_papersize): Use new `papersizes' array.
5807         (handle_unknown_desc_command): Don't handle `papersize'.
5808         (main): Use `font::scan_papersize' for handling `-p' option.
5809         * src/devices/grolbp/grolbp.man: Updated.
5811         * man/groff_font.man: Document `papersize'.
5812         * NEWS: Updated.
5814 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5816         * src/devices/grops/TODO: Updated.
5817         * src/devices/grops/grops.man: More info on paper formats.
5818         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5820 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5822         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5823         to list only if srcdir != currdir.
5824         (distfiles): New target.
5826         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5827         (NOMAKEDIRS): New variable.
5828         (DISTDIRS): Use it.
5830 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5832         Add .output request, similar to \! at top-level.
5834         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5835         (output_request): New function.
5836         (init_input_requests): Add it.
5837         Sorted.
5838         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5839         Document it.
5841         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5842         (prepare_examples): Fix typo.
5843         * doc/groff.texinfo (@direntry): Fix it.
5845 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5847         Including the doc subdir into groff's Makefile system.
5849         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5850         * configure.ac: Use it.
5851         Generate `doc/Makefile'.
5852         * configure: Regenerated.
5854         * Makefile.in (infodir, INSTALL_INFO): New variables.
5855         (MDEFINES, uninstall_dirs): Updated.
5856         (OTHERDIRS): Add `doc'.
5857         * Makefile.comm (CLEANDIRADD): New variable.
5858         (mostlyclean): Use it.
5860         * doc/Makefile.sub, doc/Makefile.in: New files.
5861         * doc/Makefile: Removed.
5863         * NEWS, INSTALL: Updated.
5865 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5867         * doc/homepage.ms: Renamed to ...
5868         * doc/webpage.ms: This.
5869         Use `.NHR'.
5871 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5873         Integrating the `mom' macro package, contributed by Peter Schaffter
5874         <df191@ncf.ca>.
5876         * contrib/mom/*: New subdirectory tree.
5877         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5878         be used for documentation files.
5879         (MDEFINES, uninstall_dirs): Use them.
5880         (OTHERDIRS): Add contrib/mom.
5881         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5882         @HTMLDOCDIR@.
5883         * MANIFEST, NEWS: Updated.
5885 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5887         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5888         if at outer level; at start-up we are at outer level.
5890         * src/roff/troff/input.cc (do_suppress): Implement it.
5891         Simplify \O[3].
5893         Add option -p to show progress information.
5894         pre-grohtml will now render only one page at a time, reducing the
5895         size of needed disk resources enormously.
5897         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5898         (imagePageName): New global variable.
5899         (psPageName, show_progress, currentPageNo): New global variables.
5900         (html_system): Close saved stderr and stdout handles.
5901         (write_end_image): Accept a parameter to control \O escape.
5902         (write_start_image): Adapted to new \O meaning.
5903         (char_buffer::write_upto_newline): Updated.
5904         (createAllPages): Replaced with...
5905         (createPage): This new function to create a single page for images.
5906         It uses `psselect' from the psutils package.
5907         (removeAllPages): Removed.
5908         (createImage): Updated.
5909         Handle progress display.
5910         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5911         (scanArguments): Add option -p.
5912         (makeTempFiles): Updated to create temp files for psPageName and
5913         imagePageName.
5914         (removeTempFiles): Removed.
5915         (main): Updated.
5917         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5918         html_printer::write_header): Append `\0' to `buffer'.
5919         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5920         (main): Handle -p.
5921         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5922         Handle `text_emitted'.
5923         (html_text::table_is_void): Slightly rewritten.
5924         (stop): New external symbol.
5925         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5926         (html_text::shutdown): Call `dump_stack'.
5927         (html_text::do_space): Rewritten.
5928         * src/devices/grohtml/grohtml.man: Document -p and the need of
5929         `psselect'.
5931         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5932         new \O syntax.
5933         Call \O[0] if `ps4html' is active.
5934         * tmac/s.tmac (@EQ, @EN): Handle html better.
5935         (@TS, TE): Ditto.
5936         * tmac/html.tmac: Don't use black for background colour.
5938         * src/roff/troff/node.cc: Include `div.h'.
5939         (troff_output_file::really_print_line): Don't use `is_on'. 
5940         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5941         troff_output_file::check_charinfo,
5942         troff_output_file::put_char_width, troff_output_file::put_char,
5943         troff_output_file::determine_line_limits, troff_output_file::draw,
5944         real_output_file::begin_page, glyph_color_node::tprintf,
5945         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5946         Use `is_on'.
5947         (troff_output_file::really_on): Call `do_motion'.
5948         (suppress_node::tprint): Use `get_page_number' instead of `%'
5949         register.
5950         Call `reset_output_registers' conditionally on `is_on'.
5952         * doc/groff.texinfo: Document new syntax of \O.
5953         * NEWS, man/groff_diff.man: Updated.
5955 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5957         * MORE.STUFF: Add info about David Frey's deroff implementation.
5958         Mention troff.org.
5960 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5962         Pic's `with' attribute now accepts positions.
5964         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5965         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5966         conflicts.
5967         (object_spec): Add rule for `WITH' and `position'.
5968         (relative_path): Give `corner' the precedence of `CHOP'.
5969         * src/preproc/pic/object.h (path): New members `pos' and
5970         `is_position'.
5971         * src/preproc/pic/object.cc: Updated initializers of `path'.
5972         (path::follow): Handle `is_position'.
5974         * doc/pic.ms: Completely updated grammar description.
5975         Many typographical improvements.
5977 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5979         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5980         code of x in range 0-127) also.
5981         * doc/groff.texinfo, man/groff_diff.man: Updated.
5983         Added keywords `north', `south', `east', and `west' for corners
5984         in pic.
5986         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5987         and WEST.
5988         (yylex): Handle them.
5989         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5990         (corner): Handle them.
5992 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5994         * src/devices/grops/grops.man: Clarify handling of `download' file.
5996 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5998         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5999         Jeffrey Friedl <jfriedl@yahoo.com>.
6001         * src/roff/troff/input.cc (spread_limit, warn_scale,
6002         warn_scaling_indicator): New global variables.
6003         (warnscale_request, spreadwarn_requests): New functions.
6004         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6005         (init_input_requests): Updated.
6006         (error_type): Add `OUTPUT_WARNING'.
6007         (do_error): Handle it.
6008         (output_warning): New warning function which shows output location.
6009         * src/roff/troff/env.h (spread_limit): New external variable.
6010         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6011         `output_warning'.
6012         (distribute_space): Emit warning if added space is larger than
6013         `spread_limit'.
6014         (environment::possibly_break_line): Emit warning if a line can't
6015         be adjusted on both sides.
6017         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6019 2002-05-08  Werner LEMBERG  <wl@gnu.org>
6021         * src/roff/troff/node.cc (special_node::special_node): Use
6022         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
6023         \X''\% crashes, for example.
6025         * doc/groff.texinfo: Document \! and \? used at top-level.
6027 2002-05-06  Werner LEMBERG  <wl@gnu.org>
6029         * src/preproc/pic/pic.man: Fix some keyword syntax.
6030         Other minor typographical fixes.
6032         * src/roff/groff/groff.man: Fix typos.
6034 2002-05-04  Werner LEMBERG  <wl@gnu.org>
6036         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6037         (ShortOpt[]): This to avoid problems with refer.
6039         * doc/pic.ms: Fix typo.
6040         Fix pic grammar description.
6042         * tmac/an-old.tmac (ne): Use de1, not de.
6044 2002-05-03  Werner LEMBERG  <wl@gnu.org>
6046         * doc/groff.texinfo: Finished separation of glyphs and characters.
6047         Don't use the string `Appendix' for appendix headers (both in
6048         the text and the table of contents).
6049         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6050         directories.
6052         Use registers LL and LT (similar to -ms) for controlling the
6053         length of title and line, respectively, in the -man and -mdoc
6054         macro packages.
6056         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6057         (doc-setup-page-layout): Use \n[LL] and \n[LT].
6058         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6059         (TH): Use \n[LL].
6060         (an-header, an-p-footer): Use \n[LT].
6061         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6062         doc/groff.texinfo: Document it.
6064 2002-05-02  Werner LEMBERG  <wl@gnu.org>
6066         * doc/fdl.texi: New file.
6067         * doc/groff.texinfo: Include it.
6068         Define and use @copying.
6069         Starting with separating glyph, symbol, and character.
6071 2002-04-27  Werner LEMBERG  <wl@gnu.org>
6073         * Makefile.in (EXEEXT): Set it.
6074         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6075         programs.
6077         * src/include/nonposix.h: Define GS_NAME.
6078         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6080         Some preliminary changes for EMX support under OS/2.
6082         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6083         __EMX__ similar to __MSDOS__.
6084         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6086 2002-04-25  Werner LEMBERG  <wl@gnu.org>
6088         * doc/groff.texinfo: Integrated groff_out.man.
6089         Some macro fixes.
6091 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6093         * man/groff_out.man: Minor fixes.
6095 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6097         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6098         correct page references.
6099         Fixed many index entries.
6101 2002-04-23  Bernd Warken  <bwarken@mayn.de>
6103         * man/roff.man: Enlarged.
6105 2002-04-22  Werner LEMBERG  <wl@gnu.org>
6107         * doc/groff.texinfo: More examples, other fixes.
6109 2002-04-20  Werner LEMBERG  <wl@gnu.org>
6111         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6112         will now form a chain, e.g.
6114           .pi foo
6115           .pi bar
6117         is now the same as
6119           .pi foo | bar
6121         This is for compatibility with plan 9's troff.
6123         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6124         with UNIX troff.
6125         * NEWS: Updated.
6127         * doc/groff.texinfo: Add documentation of remaining requests and
6128         registers.
6130 2002-04-19  Werner LEMBERG  <wl@gnu.org>
6132         * doc/groff.texinfo: Add documentation of remaining escapes.
6134         * font/devdvi/generate/tc.map: Remove entry for `sr'.
6135         * font/devdvi/*TC: Regenerated.
6137 2002-04-18  Werner LEMBERG  <wl@gnu.org>
6139         * src/roff/troff/input.cc (token::next): Make \H behave consistently
6140         if not in compatibility mode, i.e., increment relative to the
6141         previous height.
6142         * doc/groff.texinfo: Updated accordingly.
6144 2002-04-17  Werner LEMBERG  <wl@gnu.org>
6146         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6148 2002-04-16  Bernd Warken  <bwarken@mayn.de>
6150         * src/roff/groff/groff.man: Improve documentation of -P option.
6151         Other minor fixes.
6153 2002-04-15  Werner LEMBERG  <wl@gnu.org>
6155         Add new escape \F to switch font family.
6157         * src/roff/troff/input.cc (token::next): Handle \F.
6158         * src/roff/troff/env.cc (environment::set_family): Handle
6159         `interrupted' flag.
6160         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6161         Document it.
6163 2002-04-14  Werner LEMBERG  <wl@gnu.org>
6165         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6166         spaces in tags.
6168 2002-04-13  Werner LEMBERG  <wl@gnu.org>
6170         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
6171         \m[] and \M[], respectively.
6173         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6174         (symbol::symbol): Handle NULL string and empty string differently.
6175         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6176         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6177         Add optional parameter.
6178         Updated calling functions.
6179         (get_copy, do_glyph_color, do_fill_color, token::next): Use
6180         `symbol::is_empty'.
6181         * src/roff/troff/env.cc (environment::set_font): Ditto.
6183         * src/preproc/pic/troff.cc (troff_output::set_fill,
6184         troff_output::reset_color: Updated.
6186         * tmac/www.tmac: Updated.
6188         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6189         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6190         Updated.
6192         * tmac/Xps.tmac: Remove some redundant code.
6194         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6195         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6196         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6197         \f[].
6199 2002-04-13  Bernd Warken  <bwarken@mayn.de>
6201         * src/include/printer.h, src/libs/libdriver/printer.cc
6202         (printer::change_fill_color): New member function.
6203         * src/libs/libdriver/input.cc (parse_D_command): Use it.
6205 2002-04-12  Werner LEMBERG  <wl@gnu.org>
6207         * doc/groff.texinfo: Completed pass on gtroff reference.
6209 2002-04-11  Werner LEMBERG  <wl@gnu.org>
6211         * doc/groff.texinfo: More fixes.
6213 2002-04-11  Bernd Warken  <bwarken@mayn.de>
6215         * src/include/color.h: Decorate with `const'.
6216         Use `size_t'.
6217         Include `stddef.h'.
6218         * src/libs/libgroff.color.cc: Decorate with `const'.
6219         Use `size_t'.
6220         (color::color): Initialize members.
6221         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6222         command according to the documentation.
6224         * man/groff_out.man: Updated.
6225         Minor fixes.
6227 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
6229         * src/preproc/html/pre-html.cc (write_start_image): Remove
6230         redundant output.
6231         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6233         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6234         \C'hy' caused an assertion failure.
6236         * src/roff/troff/env.cc (environment::environment): Initialize
6237         `emitted_node'.
6238         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6240 2002-04-10  Werner LEMBERG  <wl@gnu.org>
6242         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6243         Document pvs request and .pvs register.
6245 2002-04-09  Werner LEMBERG  <wl@gnu.org>
6247         * doc/groff.texinfo: Improve and fix documentation of diversions
6248         and environments.
6250 2002-04-08  Werner LEMBERG  <wl@gnu.org>
6252         * doc/groff.texinfo: Fix documentation of drawing functions.
6253         Other minor fixes.
6255 2002-04-07  Werner LEMBERG  <wl@gnu.org>
6257         * doc/groff.texinfo: Better documentation of double quotes as
6258         arguments.
6259         Other minor fixes.
6261 2002-04-06  Werner LEMBERG  <wl@gnu.org>
6263         * man/groff_font.man: Document names of special characters better.
6264         * doc/groff.texinfo: Minor improvements.
6266         * tmac/lbp.tmac: Load latin1.tmac.
6267         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6269         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6271 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6273         * tmac/tty.tmac: Don't use shc request.
6274         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6275         * NEWS: Updated.
6277         * man/groff_diff.man: Minor fixes.
6279         * font/devlbp/*: Remove all `charXXX' entities.
6281         * src/libs/libgroff/font.cc (font::~font): Deallocate
6282         `special_device_coding'.
6283         (font::load): Use `new' for allocating `special_device_coding'.
6284         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6285         Removed unused member.
6287 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6289         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6290         (resource_manager::do_begin_binary,
6291         resource_manager::do_begin_data): Use it.
6293         * doc/texinfo.tex: Updated to version 4.2.
6295         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6296         (token::zero_width_break): New inline function.
6297         * src/roff/troff/input.cc (token::next): Use it.
6298         (token::description): Updated.
6299         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6300         (token::add_to_node_list, token::process): Use it.
6301         * NEWS, doc/groff.texinfo: Updated.
6303         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6304         * tmac/tty.tmac: Add missing backslash.
6306 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6308         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6309         `.ps' register instead of `.s' to handle fractional point sizes.
6310         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6311         limit_box::output): Ditto.
6312         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6313         size_box::output): Ditto.
6314         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6315         over_box::output): Ditto.
6316         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6317         script_box::output): Ditto.
6318         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6319         sqrt_box::output): Ditto.
6321 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6323         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6324         Fix typo.
6326 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6328         * doc/homepage.ms: Reduce title size.
6329         * doc/groff.texinfo: Fix documentation of .t register.
6330         Fix handling of colon.
6331         Fix `\' vs. `\\'.
6333         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6334         only if page length is positive to avoid a loop.
6336         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6337         tbl.
6339 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6341         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6342         s/__CYGWIN32__/__CYGWIN__/.
6344 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6346         * doc/gnu.xpm: New image contributed by Emily Mulley.
6347         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6348         (homepage.html): Be dependent on gnu.eps.
6349         * doc/homepage.ms: Updated to new image.
6351         * src/devices/grohtml/post-html.cc (html_printer): New member
6352         `sbuf_prev_hpos'.
6353         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6354         (html_printer::sbuf_continuation): Use it.
6356 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6358         * src/libs/libgroff/getopt.c: Updated to latest version.
6360         * tmac/README: More on hyphen.tex license.
6362 2002-03-26  Larry Kollar  <kollar@alltel.net>
6364         * doc/groff.texinfo: Add documentation of most missing requests.
6366 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6368         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6369         of `+-', `mu', and `di', respectively.
6371         * font/devascii/R.proto, font/devutf8/R.proto,
6372         font/devlatin1/R.proto, font/devhtml/R.proto,
6373         font/devcp1047/R.proto, font/devlpb/*: Add them.
6374         * font/devps/generate/textmap: Ditto.
6375         * font/devps/*: Regenerated.
6376         * font/devlj4/generate/text.map: Add them.
6377         * font/devlj4/*: Regenerated.
6378         * font/devdvi/generate/tc.map: Use them.
6379         * font/devdvi/generate/texsy.map: Add them.
6380         * font/devdvi/*: Regenerated.
6381         * font/devX*/*: Regenerated.
6383         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6384         tmac/tty-char.tmac: Updated.
6386         * NEWS, man/groff_char.man: Updated.
6388 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6390         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6391         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6392         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6393         we use `.fchar' in dvi.tmac.
6394         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6395         * tmac/Xps.tmac: Simplify some char definitions.
6396         Add definition for \[f/].
6397         * man/groff_char.man: Updated for new X.tmac.
6399         * tmac/README: New file.
6401 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6403         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6404         internal .y.o rule took precendence over the .y.cc rule, compiling
6405         the yacc files with gcc instead of g++.
6407 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6409         * tmac/dvi.tmac: Add replacement font for `CB'.
6411         * tmac/doc.tmac: s/request/macro/ in messages.
6412         (doc-generic-macro): Improve error message.
6413         * tmac/groff_mdoc.man: Minor improvements.
6415 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6417         * doc/groff.texinfo: Document possible conflict between `tr' and
6418         `char' requests.
6420 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6422         Improve handling of hyphenation patterns.  It is now possible to
6423         use most of TeX's pattern files unmodified.  To make the process
6424         more flexible, a new request `hpfcode' has been added which
6425         provides a character code mapping for the `hpf' request.  See
6426         comment before hpf_getc() for more details.
6428         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6429         functions.
6430         (read_patterns_file): Additional parameter for exception dictionary.
6431         Extended to recognize \pattern, \hyphenation, and \endinput.
6432         (do_hyphenation_patterns_file): Updated.
6433         * src/roff/troff/env.h (hpf_code_table): New extern.
6435         * src/roff/troff/input.cc (hpf_code_table): New array.
6436         (init_hpf_code_table, hyphenation_patterns_file_code): New
6437         functions.
6438         (hyphenation_code): Handle translation from `trin' correctly.
6439         (main, init_input_requests): Updated.
6440         (charinfo::set_translation): Handle hyphenation code also.
6442         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6443         inline function.
6445         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6446         char' is used for offsets in hyphenation exceptions.
6448         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6450         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6452 2002-03-20  Larry Kollar  <kollar@alltel.net>
6454         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6455         requests.
6457 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6459         * tmac/html.tmac: Fix serious typo.
6461 2002-03-17  Larry Kollar  <kollar@alltel.net>
6463         * doc/groff.texinfo: Add documentation for `writec' request.
6465 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6467         Added request `hpfa' to append hyphenation patterns.
6469         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6470         parameter `append'.
6471         (hyphenation_patterns_file): Renamed to...
6472         (do_hyphenation_patterns_file): This.
6473         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6474         functions.
6475         (init_hyphen_requests): Updated.
6476         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6478 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6480         Added request `writec' in analogy to `tmc'.
6482         * src/roff/troff/input.cc (write_request): Renamed to...
6483         (do_write_request): This.
6484         Added one parameter.
6485         (write_request, write_request_continue): New functions.
6486         (init_input_requests): Updated.
6487         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6489         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6490         5-10000pt.
6491         * NEWS: Document it.
6493 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6495         * man/groff.man: Add writem request.
6497         Add request `trin' (translate input) to make `.asciify' work
6498         correctly.  This is necessary since `charXXX' entity names are no
6499         longer hardcoded in font definition files.
6501         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6502         `translate_input' members.
6503         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6504         charinfo::set_translation_input): New methods.
6505         (charinfo::set_translation): Add third argument.
6506         * src/roff/troff/input.cc (charinfo:set_translation): Set
6507         `asciify_code'.
6508         (do_translate): Add second argument.
6509         (translate_input): New function.
6510         (init_input_requests): Updated.
6511         * src/roff/troff/node.cc (glyph_node::asciify,
6512         composite_node::asciify): Use `get_asciify_code'.
6514         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6516         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6518 2002-03-14  Larry Kollar  <kollar@alltel.net>
6520         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6522 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6524         Add a new request `sizes' similar to the `sizes' command in DESC
6525         files.
6527         * src/roff/troff/env.cc (override_sizes): New function.
6528         (init_env_requests): Use it.
6529         * src/roff/troff/token.h: Export `read_string'.
6530         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6532 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6534         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6536 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6538         * tmac/pspic.tmac: Add support for -Tdvi.
6539         * tmac/dvi.tmac: Include pspic.tmac.
6540         * src/devices/grodvi/grodvi.man: Document it.
6541         * NEWS: Updated.
6543         * font/devlj4/generate/Makefile: Fix URL of metric files.
6545 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6547         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6549 2002-03-09  Larry Kollar  <kollar@alltel.net>
6551         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6553 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6555         * doc/groff.texinfo: Fixes for texinfo 4.1.
6557 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6559         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6560         included.
6561         Handle CYGWIN properly.
6563 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6565         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6566         * tmac/lbp.tmac: Add some font translations.
6568 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6570         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6571         font/devhtml/R.proto: Remove `charXXX'  entries.
6572         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6573         where appropriate.
6575         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6576         * font/devlj4/*: Regenerated all font definition files.
6577         * tmac/lj4.tmac: Load latin1.tmac.
6579         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6580         from 2000-06-17: LJ4 metric files are *not* text files.
6582         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6583         register to test for EBCDIC.
6585 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6587         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6588         files (as grops already does).
6589         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6590         files.
6591         * src/devices/grops/grops.man: Document comment lines in encoding
6592         files.
6594         * tmac/cp1047.tmac: New file.
6595         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6596         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6597         * tmac/Makefile.sub (NORMALFILES): Updated.
6599         * tmac/ec.tmac: Don't load latin1.tmac again.
6601         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6602         font/devps/generate/dingbats.map,
6603         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6604         font/devps/generate/Makefile (symbolmap): Add header comment.
6605         * font/devps/generate/textmap: Ditto.
6606         Remove `charXXX' entries.
6607         * font/devps/symbolmap: Regenerated.
6608         * font/devps/*: Regenerated all font definition files.
6610 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6612         Add color support to grodvi (for drawing colors are currently
6613         translated to gray values).
6615         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6616         (dvi_printer): Add `cur_color' member.
6617         (dvi_printer::set_color): New function.
6618         (draw_dvi_printer): Remove `fill'.
6619         (draw_dvi_printer::fill_next): Pass environment as parameter.
6620         Update code for new color support translated to gray.
6621         (dvi_printer::set_char): Updated.
6622         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6623         changes crossing the page border.
6624         (dvi_printer::draw): Updated.
6625         Remove cases `f' and `F'.
6626         * tmac/dvi.tmac: Add color definitions.
6627         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6629         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6630         used incorrectly.
6632         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6633         versions of autoconf.
6634         * configure: Updated.
6636         * doc/homepage.ms: Use `.blm'.
6637         * tmac/www.tmac (www-depth): New auxiliary variable.
6638         (www-pop-level): Don't issue HTML tag.
6639         (ULS, ULE, LI): Use absolute indentation.
6641         * src/devices/grops/ps.cc (ps_printer::begin_page,
6642         ps_printer::end_page): Switch forth and back to default color while
6643         starting a new page.
6645 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6647         Add EC and TC fonts to devdvi.
6649         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6650         * font/devdvi/generate/cork.map: Renamed to...
6651         * font/devdvi/generate/ec.map: This.
6652         Remove entry for `aq'.
6653         * font/devdvi/generate/tc.map: New file.
6654         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6655         EC and TC fonts.
6656         (FONTS): Updated.
6657         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6658         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6659         * tmac/ec.tmac: New file.
6660         * tmac/Makefile.sub (NORMALFILES): Updated.
6661         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6662         * man/groff_char.man: Check `ECFONTS' register.
6664         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6666 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6668         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6669         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6670         * font/devdvi/*: Updated.
6671         * tmac/dvi.tmac: Formatting.
6673         Add font `HBI' for the dvi output.
6674         Add support for font families `T' and `H'.
6676         * font/devdvi/HBI: New file.
6677         * font/devdvi/B: Renamed to ...
6678         * font/devdvi/TB: This.
6679         * font/devdvi/BI: Renamed to ...
6680         * font/devdvi/TBI: This.
6681         * font/devdvi/I: Renamed to ...
6682         * font/devdvi/TI: This.
6683         * font/devdvi/R: Renamed to ...
6684         * font/devdvi/TR: This.
6685         * font/devdvi/H: Renamed to ...
6686         * font/devdvi/HR: This.
6687         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6688         * font/devdvi/generate/Makefile (HBI): New rule.
6689         (FONTS): Updated.
6690         (R, I, B, BI, H): Renamed to ...
6691         (TR, TI, TB, TBI, HR): This, respectively.
6692         (srcdir): Fixed.
6693         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6694         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6695         Add `styles' and `family' keywords.
6696         * tmac/dvi.tmac: Alias `H' to `HR'.
6697         Add some fspecial requests for italic fonts.
6698         Add TR and TI as special.
6699         Add support for `_' with font CWI.
6701         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6702         operator `:'.  Until now, the expression `0:1' would return 2
6703         instead of 1.
6705 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6707         * man/groff_char.man: Added some missing PS glyph names (from the
6708         Adobe Glyph List).
6709         * font/devps/generate/textmap, font/devps/symbolmap: Add
6710         `arrowupdn'.
6712         * doc/groff.texinfo: Minor additions and fixes.
6713         * man/groff_diff.man: Remove documentation of fp request.  This
6714         is already covered in the original troff manual.
6715         Updated to be consistent with other doc files.
6716         * NEWS: Updated.
6718 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6720         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6721         TTYDEVDIRS.
6722         Define new variable OTHERDEVDIRS (containing `font/devlj4
6723         font/devlbp' if not EBCDIC).
6724         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6725         (OTHERDEVDIRS): New variable.
6726         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6727         * configure: Regenerated.
6729         * NEWS, src/devices/grotty/grotty.man: Updated.
6731 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6733         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6734         get_line_arg): Honour input level.
6736         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6738         * font/*/*: Implement it in all font files.
6739         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6740         * font/devps/symbolmap: Updated.
6741         * font/devlj4/generate/text.map: Updated.
6742         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6743         * font/devdvi/generate/texmi.map: Updated.
6745         * font/devutf8/R.proto: Remove all `charXXX' entries.
6746         * font/devutf8/NOTES: Updated.
6748         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6749         version 4.1.0.
6751         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6753         * NEWS, man/groff_char.man: Updated.
6755 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6757         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6759 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6761         * src/roff/grog/grog.pl: Fix computation of $refer.
6763 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6765         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6766         `snprintf' and `vsnprintf'.
6768         * src/include/htmlindicate.h: Renamed to...
6769         * src/include/htmlhint.h: This.
6770         * src/include/Makefile.sub: Updated.
6771         * src/preproc/eqn/main.cc: Updated.
6773 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6775         * man/roff.man, man/groff_out.man, man/groff.man,
6776         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6777         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6779         * win32-diffs: Updated.
6781 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6783         * doc/Makefile (clean): Add *.eps.
6784         (MEMACROS): Removed.
6785         (TFLAG): New variable.
6786         (TROFF): Use it.
6787         Add -ww.
6788         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6789         (.me.dit): Fixed.
6790         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6792         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6793         `.tl'.
6794         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6795         unstripped.
6796         * src/roff/troff/troff.man: Fix order of parameter description.
6798         * NEWS: Updated.
6800 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6802         Simplify image handling for grohtml.
6803         Fix <p> bug.
6805         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6806         comment out.
6807         (html_text::dump_stack): Don't emit newline while debugging.
6808         (html_text::do_push) [DEBUGGING]: Print more info.
6809         (html_text::check_emit_text): Fix handling of <p>.
6810         * src/devices/grohtml/html.h: Updated.
6811         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6812         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6813         send its data to stderr also.
6814         Update all callers.
6815         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6816         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6817         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6819         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6820         Removed.
6821         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6822         is_inline_image): Removed.
6823         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6824         (graphic_start, graphic_end): Removed.
6825         * src/include/htmlindicate.h: Updated.
6826         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6827         (macroset_template): New global variable.
6828         (makeFileName): Use `macroset_template'.
6829         (write_end_image): Don't take a parameter.
6830         Don't emit newline.
6831         (write_start_image: Don't emit newline.
6832         (char_buffer::write_upto_newline): Updated.
6833         (char_buffer::skip_to_newline): Renamed to ...
6834         (char_buffer::skip_until_newline): This.
6835         Fix code.
6836         (char_buffer::write_file_troff, char_buffer::write_file_html):
6837         Simplified.
6838         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6839         (removeAllPages): Remove `DEBUGGING' conditionals.
6840         (addRegDef, dump_args): New functions.
6841         (char_buffer::do_html, char_buffer::do_image): Handle
6842         `www-image-template' command line variable.
6843         Add more debugging code.
6844         (addps4html): Removed.
6845         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6847         * src/preproc/eqn/main.cc: Include `ctype.h'.
6848         (suppress_html): Removed.
6849         (do_file): Updated.
6850         (inline_equation): Use `html_begin_suppress' and
6851         `html_end_suppress'.
6852         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6853         (troff_output::start_picture, troff_output::finish_picture):
6854         Updated.
6855         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6856         (process_input_file): Updated.
6858         * src/roff/troff/div.cc (page_number): Set page number only if the
6859         `ps4html' register isn't defined.
6860         * src/roff/troff/input.cc (image_no): New external variable.
6861         (do_suppress): Use it.
6862         * src/roff/troff/node.h (suppress_node::image_id): New member.
6863         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6864         (suppress_node::suppress_node): Initialize `image_id' member.
6865         (suppress_node::same): Handle `image_id' also.
6866         (suppress_node::copy): Updated.
6867         (last_image_id): New global variable.
6868         (suppress_node::tprint): Use it.
6870         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6871         HTML-IMAGE-END.
6872         * tmac/pspic.mac (PSPIC): Fix html support.
6873         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6874         * tmac/www.tmac (www-image-template): Set up.
6875         (HTMLINDEX): Renamed to...
6876         (HX): This.
6877         (BODYCOLOR): Renamed to...
6878         (BCL): This.
6879         (BACKGROUND): Renamed to...
6880         (BGIMG): This.
6881         (URL): Change order of parameters for consistency.
6882         (MAILTO): Renamed to...
6883         (MTO): This.
6884         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6885         (IMG, PIMG, MPIMG): This.
6886         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6887         (HnS, HnE): This.
6888         (LINKS): Renamed to...
6889         (LK): This.
6890         (LINE): Renamed to...
6891         (HR): This.
6892         (NO-AUTO-RULE): Renamed to...
6893         (NHR): This.
6894         (HTML-TL): Renamed to...
6895         (HTL): This.
6896         (UL-BEGIN, UL-END): Renamed to...
6897         (ULS, ULE): This.
6898         (DROPCAP): Renamed to...
6899         (DC): This.
6900         (TS, TE, EQ, EN): Provide default definitions.
6901         (www-make-unique-name): Updated.
6902         (HTML-IMAGE-INLINE): Fix typo.
6903         * tmac/groff_www.man: Updated.
6905         * doc/Makefile (homepage.html): Add option -r to grohtml.
6906         Use shortened image name.
6907         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6908         * doc/homepage.ms: Updated and extended.
6910 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6912         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6914         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6915         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6916         (tty_printer::put_color): Use it.
6917         (ttr_printer::end_page): Simplify.
6919 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6921         * tmac/groff_tmac.man: Moved to...
6922         * man/groff_tmac.man: This place.
6923         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6925 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6927         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6928         $(COMPILE.c) to not include groff's assert.h.
6930         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6931         variable.
6932         * NEWS, src/drivers/grotty/grotty.man: Document it.
6934 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6936         * src/libs/snprintf/snprintf.c: Updated to latest version
6937         (2002-02-11).
6939         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6940         test whether there is `.]' also.
6941         Don't check for spaces after `.['.
6942         * src/roff/grog/grog.sh: Do the same.
6944 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6946         Illegal -> Invalid.
6948         * src/libs/libgroff/illegal.cc: Renamed to ...
6949         * src/libs/libgroff/invalid.cc: This.
6950         (illegal_char_table): Renamed to ...
6951         (invalid_char_table): This.
6952         * src/libs/libgroff/Makefile.sub: Updated.
6953         * win32-diffs: Updated.
6955         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6956         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6957         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6958         font::load), src/preproc/eqn/main.cc (read_line, main),
6959         src/preproc/eqn/lex.cc (file_input::read_line),
6960         src/preproc/pic/lex.cc (file_input::read_line,
6961         simple_file_input::get, simple_file_input::peek),
6962         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6963         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6964         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6965         do_bib), src/preproc/tbl/main.cc (table_input::get),
6966         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6967         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6968         do_zero_width, read_request, encode_char, ps_get_line,
6969         transparent_file, get_char_for_escape_name, transparent_translate,
6970         asciify, input_char_description, read_string, set_string),
6971         src/roff/troff/env.cc (environment::add_html_tag),
6972         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6974         * src/include/lib.h: Updated.
6976         * src/preproc/eqn/eqn.cc: Removed.
6978         * NEWS: Updated.
6980         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6982 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6984         * doc/gnu.xpm: New image.
6985         * doc/Makefile (DOCS): Add homepage.ps.
6986         Add rules for converting xpm->png and xpm->eps.
6987         Use `gnu.{xpm,eps}' as image names.
6988         * doc/homepage.ms: Updated.
6990 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6992         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6993         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6994         Remove calls to `B1' and `B2'
6995         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6996         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6997         auxiliary variables for MARGIN-PNG-IMAGE.
6998         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6999         auxiliary macros for MARGIN-PNG-IMAGE.
7000         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7001         the margin.
7002         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7003         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7004         (DROPCAP): New macro to produce dropcap characters.
7005         (www-do-image): Renamed back to...
7006         (HTML-DO-IMAGE): This.
7007         Updated all callers.
7009         * doc/Makefile (gnubw.eps): Updated.
7010         * doc/homepage.ms: Updated.
7012 2002-02-08  Werner LEMBERG  <wl@gnu.org>
7014         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7015         Added `linethick' to table in section `Style Variables'.
7017 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
7019         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7021 2002-02-07  Werner LEMBERG  <wl@gnu.org>
7023         Adding options -C (compatibility mode) and -c (grotty's old output
7024         scheme) to nroff.
7026         * src/roff/nroff/nroff.sh: Implement it.
7027         Remove `-Wall'.
7028         * NEWS, src/roff/nroff/nroff.man: Updated.
7030         * PROBLEMS: Document bison 1.32 bug.
7032         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7034         * src/roff/troff/node.cc (make_tfont): Define it earlier.
7035         * src/roff/troff/div.h: Add prototype for `end_diversions'.
7036         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7037         * src/roff/troff/env.h: Add prototype for `title'.
7039         Adding EBCDIC support to grotty.
7041         * src/devices/grotty/tty.cc (CSI): New macro.
7042         (SGR_*, tty_printer::put_color): Use it.
7044 2002-02-06  Werner LEMBERG  <wl@gnu.org>
7046         Implementing color support in grotty.  The new switch -c activates
7047         the old drawing scheme, disabling color at the same time.  The new
7048         switch `-i' selects italic instead of underlining (SGR only).
7050         * src/devices/grotty/tty.cc (putstring): New define instead of
7051         `fputs'.  Updated all callers.
7052         (old_drawing_scheme): New global variable.
7053         (COLOR_CHANGE): New enum value.
7054         (SGR_*): New defines containing color handling escape sequences.
7055         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7056         (glyph): New members `back_color_idx' and `fore_color_idx'.
7057         (glyph::order): Add COLOR_CHANGE.
7058         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7059         `is_underline', `is_bold', `cu_flag', `tty_colors'.
7060         New methods `make_underline', `make_bold', `color_to_idx',
7061         `change_color', `put_color'.
7062         (cu_flag): Moved into `tty_printer' class.
7063         (tty_printer::tty_printer): Initialize colors.
7064         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7065         tty_printer::draw, tty_printer::end_page): Handle colors also.
7066         (main): Add options `-c' and `-i'.
7067         (usage): Updated.
7068         * NEWS, src/devices/grotty/grotty.man: Updated.
7070         * src/include/errarg.h (errarg): Add support for `unsigned int'.
7071         * src/libs/libgroff/errarg.c: Implement it.
7073         * src/include/printer.h (printer): Add `change_color' method
7074         (currently used by grotty only).
7075         * src/libs/libdriver/printer.cc: Implement it.
7076         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7077         call to `pr->change_color'.
7079         * src/roff/troff/node.cc (troff_output_file::fill_color,
7080         troff_output_file::glyph_color): Call `do_motion'.
7082         * tmac/tty.tmac: Add color definitions.
7084         * src/roff/groff/groff.man: Minor fixes.
7086 2002-02-05  Bernd Warken  <bwarken@mayn.de>
7088         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7089         it.  This is a preparation for future changes.
7091 2002-02-05  Werner LEMBERG  <wl@gnu.org>
7093         * src/roff/troff/input.cc (process_input_stack): Fix the case
7094         where leading spaces are followed by \f or \s; previously, an
7095         incorrect space width has been used.
7097         * doc/roff.man (quoted_char): Fix argument.
7098         (comment): Define string.
7100 2002-02-04  Larry Kollar  <kollar@alltel.net>
7102         * doc/groff.texinfo: More fixes.
7104 2002-02-04  Werner LEMBERG  <wl@gnu.org>
7106         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7107         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7108         `restore_compatibility' before `output_string' -- the LINE_STRING
7109         register now already contains proper switches from and to
7110         compatibility mode.
7112         * man/groff_char.man: Add Euro symbol.
7113         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7114         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7115         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7116         Other minor fixes.
7118         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7119         texinfo->pdf.
7120         (.texinfo.html): Add support for texinfo->html.
7122 2002-02-03  Werner LEMBERG  <wl@gnu.org>
7124         Added three new requests `ds1', `as1', and `ami'.  The former two
7125         are equivalent to `ds' and `as' with the difference that
7126         compatibility mode is saved on entry, switched off during string
7127         expansion, and restored on exit.  The latter is the pendant to `dei'
7128         for `am'.
7130         (do_define_string): Use `define_mode' and `calling mode'.
7131         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7132         end of string, respectively.
7133         (define_string, append_string): Use `calling_mode'.
7134         (define_nocomp_string, append_nocomp_string,
7135         define_string_indirect): New functions.
7136         (init_input_requests): Updated.
7137         * NEWS, man/groff_diff.man, man/groff.man: Document it.
7139         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7140         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
7141         mm macro package accesses this string register directly.
7142         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7144         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
7145         compatibility mode.
7147 2002-02-02  Larry Kollar  <kollar@alltel.net>
7149         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7151 2002-01-31  Werner LEMBERG  <wl@gnu.org>
7153         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7155 2002-01-31  Bernd Warken  <bwarken@mayn.de>
7157         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7158         * man/groff_out.man: Revised and updated.
7160 2002-01-30  Bernd Warken  <bwarken@mayn.de>
7162         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7163         out the unused `{' and `}' commands.  Undefined by default.
7164         (IntArray): Make `data' private.
7165         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7166         new methods instead.
7167         (skip_line_D, skip_to_end_of_line): New functions.
7168         (get_D_fixed_args): Use `skip_line_D'.
7169         Changed to handle dummy odd arguments by ...
7170         (get_D_fixed_args_odd_dummy): This new function.
7171         (get_D_variable_args): Split some code into ...
7172         (get_possibly_integer_args): This new function.
7173         (send_draw): Use more `const'.
7174         (delete_current_env): New function.
7175         (position_to_end_of_args): Use `size_t'.
7176         Updated.
7177         (send_draw): Updated.
7178         (parse_D_command): Handle `c', `C', and `t' better.
7179         Updated.
7180         (do_file): Updated.
7182 2002-01-29  Werner LEMBERG  <wl@gnu.org>
7184         * NEWS: Revised.
7185         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7186         @Def...ListEnd which replaces @Def...x.  This is necessary to get
7187         proper HTML output -- see the comment in the file for more
7188         information.
7189         Updated all calls.
7191 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
7193         Fixes to make color changes of 2002-01-21 work with grohtml.
7195         * src/devices/grohtml/post-html.cc (style): Updated.
7196         (html_printer): Remove unused methods.
7197         (html_printer::do_font, html_printer::draw, html_printer::set_char,
7198         html_printer::special): Updated.
7199         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7200         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7201         Added some debugging code.
7202         (html_text::start_tag): Updated.
7203         (html_text::do_push): New method.
7204         (html_text::push_para): Call it.
7205         Add method for handling color.
7206         (html_text::do_color): Updated.
7207         (html_text::shutdown): Handle color.
7208         * src/devices/grohtml/html-text.h (tag_definition): New member
7209         `col'.
7210         Updated.
7212 2002-01-28  Werner LEMBERG  <wl@gnu.org>
7214         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7216 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7218         Add two switches -a and -g to control the antialiasing bits for
7219         text and graphics, respectively.
7221         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7222         `-g'.
7223         * src/devices/grohtml/grohtml.man: Document them.
7224         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7225         New macros.
7226         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7227         (setupAntiAlias): New function.
7228         (createAllPages): Updated.
7229         (scanArguments): Handle `-a' and `-g'.
7230         (main): Call `setupAntiAlias'.
7231         * NEWS: Updated.
7233 2002-01-27  Werner LEMBERG  <wl@gnu.org>
7235         * doc/groff.texinfo (Def*): Call index function after deffn.
7237         * tmac/html.tmac: Call `nroff' request.
7239 2002-01-26  Larry Kollar  <kollar@alltel.net>
7241         * tmac/groff_ms.man: Add some omissions.
7243 2002-01-25  Larry Kollar  <kollar@alltel.net>
7245         * tmac/groff_ms.man: Typographical improvements.
7247 2002-01-25  Werner LEMBERG  <wl@gnu.org>
7249         * doc/groff.texinfo: Updated version and copyright.
7250         * src/devices/grops/grops.man: Updated.
7252         * tmac/groff_tmac.man: Fix `ig' macro.
7254         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7255         nroff mode.
7256         Use `.ne' unconditionally everywhere.
7257         (TS): Only insert some vertical space.  Doing a page break is no
7258         longer necessary due to the redefinition of the `ne' request.
7260         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7261         warning for unknown subcommands but parse and pass them to the
7262         device driver.
7264 2002-01-24  Werner LEMBERG  <wl@gnu.org>
7266         * tmac/groff_www.man, NEWS: Fix typos.
7268 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7270         Complete revision of color support:
7272           Adapt programs to the new libdriver/input.cc.
7274           Color spaces are no longer converted to RGB but transferred as-is
7275           in the troff intermediate output format.
7277           Handle default color gracefully.  troff now supports a `default'
7278           color (which can't be changed).
7280           grops will now use the proper color space functions if available.
7282           Update pic.
7284         Note that currently grohtml doesn't handle colors properly.  This
7285         has to be fixed.
7287         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7288         (ui_to_a): New function.
7289         * src/include/lib.h: Updated.
7291         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7292         (color): Simplified; removed all `double' members and methods.
7293         A new array `components' now holds the color parameters.
7294         (color::is_default, color::get_components): New methods.
7295         (color::operator==, color:operator!=): New.
7296         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7297         to make access to the `components' array more comprehensible.
7298         * src/libs/libgroff/color.cc: Implement new color support.
7299         (atoh): Small fixes.
7300         (color::read_encoding): Simplified for new troff intermediate color
7301         output format.
7302         (default_color): New global variable.
7304         * src/roff/troff/input.cc (default_symbol): New global variable.
7305         (lookup_color): Use it.
7306         (default_black): Removed.
7307         (do_glyph_color, do_fill_color): Simplified.
7308         (define_color): Handle default color.
7309         Improve warnings.
7310         (do_if_request): Handle default color.
7311         * src/roff/troff/env.cc (environment::environment): Initialize
7312         colors with `default_color'.
7313         * src/roff/troff/node.cc (troff_output_file::put): Add method
7314         for `unsigned int'.
7315         (troff_output_file::hex): Removed.
7316         (troff_output_file::fill_color, troff_output_file::glyph_color):
7317         Updated to include/color.h and libdriver/input.cc.
7319         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7320         fill color properly (identically to the outline color).  \D'f...'
7321         doesn't work any more.
7322         All function calls to it updated.
7324         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7325         Updated.
7326         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7327         Updated.
7329         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7330         (ps_printer::sbuf_color): Make a real member instead of pointer.
7331         (ps_printer::fill_color, ps_printer::output_color): Removed.
7332         (ps_printer::ps_printer): Updated.
7333         (ps_printer::set_char): Ditto.
7334         (ps_printer::set_color): Use various color schemes.
7335         Use `put_color' method.
7336         (ps_printer::flush_sbuf): Don't set color.
7337         (ps_printer::fill_path): Take `environment' as parameter.
7338         Simplify color handling.
7339         (ps_printer::set_line_thickness): Renamed to ...
7340         (ps_printer::set_line_thickness_and_color): This (and updated).
7341         (ps_printer::set_color): Change second parameter from `complete'
7342         to `fill' which better describes what it does.
7343         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7344         and text in the right order.
7345         Updated.
7346         Remove branches for `f' and `F'; this is handled by
7347         libdriver/input.cc.
7348         * src/devices/grops/ps.h: Updated.
7349         * font/devps/prologue (FL): Redefined.
7350         ({F,C}r,k,g: New color functions (with and without filling).
7352         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7353         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7354         doc/groff.texinfo, NEWS: Updated.
7356 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7358         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7359         in this file for what has been changed.
7361 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7363         * test-groff: Fix GROFF_FONT_PATH.
7364         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7365         is read before .TH or .Dd is parsed.
7367 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7369         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7370         quadrant boundaries.
7372 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7374         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7375         applied last patch.
7377 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7379         * tmac/doc.common: Initialize %I register for the %I macro to
7380         avoid (harmless) warning.
7381         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7382         when in the SYNOPSIS section.
7384 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7386         * src/preproc/pic/lex.cc (get_token): Fix typo.
7388 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7390         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7392 2002-01-17  Larry Kollar  <kollar@alltel.net>
7394         * tmac/groff_ms.man: Completely rewritten.
7396 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7398         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7400 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7402         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7403         fill colors.
7404         (ps_printer::draw): Ditto.
7406 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7408         * tmac/groff_mdoc.man: Minor fixes.
7410 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7412         * man/groff_out.man: Some fixes.
7414 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7416         * doc/pic.ms: Fix typos.
7418 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7420         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7422 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7424         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7425         symbols.
7426         * NEWS: Updated.
7428 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7430         * man/groff_out.man: Revised.
7431         * man/roff.man: Minor fixes.
7432         * src/roff/troff/troff.man: Some reordering.
7434 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7436         * tmac/an-old.tmac: Add dummy macros for equation support.
7438 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7440         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7442         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7443         man pages.
7444         * tmac/groff_man.man: Small improvements.
7446 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7448         * man/groff_diff.man: Revised.
7450 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7452         * tmac/www.tmac: Remove extraneous backslash.
7454 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7456         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7458 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7460         Integrated groffer, contributed by Bernd Warken.
7462         * contrib/groffer/*: New.       
7463         * Makefile.in, NEWS: Updated.
7465 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7467         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7468         registers defined in macro packages.
7469         Revising the ms part.
7471 2002-01-04  Larry Kollar  <kollar@alltel.net>
7473         * doc/groff.texinfo: Add documentation for ms macros.
7475 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7477         First step in adding PS support for the Euro symbol.  `eu' is the
7478         official Euro logo, `Eu' is a font-specific glyph variant.
7480         * font/devps/text.enc: Add `Euro' at position 9.
7481         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7482         * font/devps/symbolmap: Regenerated.
7484         * NEWS: Updated.
7486 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7488         * man/roff.man: Revised.
7490 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7492         * src/roff/groff/groff.man: Completely rewritten.
7494 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7496         * doc/Makefile: Updated.
7498 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7500         * tmac/www.tmac: Make all names of internal macros/registers/strings
7501         lowercase, and prepend `www-'.
7502         Other minor changes.
7503         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7505 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7507         Implement option `-b' in grohtml to set the HTML background colour.
7509         * src/devices/grohtml/post-html.cc (default_background): New global
7510         variable.
7511         (html_printer::html_printer): Initialize `background' to
7512         `default_background'.
7513         (main): Implement option `-b'.
7514         (usage): Updated.
7515         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7516         of `-b' option.
7517         * src/devices/grohtml/grohtml.man: Updated.
7518         * doc/Makefile (.ms.html): Use `-b'.
7519         * tmac/html.tmac: Don't set background color.
7521         Add new grohtml tag `.html-tl'.
7523         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7524         member variable.
7525         (title_desc::title_desc): Updated.
7526         (html_printer::troff_tag): Handle `.html-tl'.
7527         (html_printer::write_title): Use `with_h1'.
7528         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7529         (HTML-TL): New macro.
7531         Add support for unordered lists in HTML.
7533         * tmac/www.tmac (www-level): New auxiliary register.
7534         (www-level1, www-level2, www-level3): New auxiliary strings.
7535         (www-push-level, www-pop-level): New auxiliary macros
7536         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7538         Miscellaneous.
7540         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7541         (DEFAULT_VERTICAL_OFFSET): Removed.
7542         (IMAGE_BOARDER_PIXELS): Set to 0.
7543         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7544         (vertical_offset): Initialize with 0.
7545         (gsPaper): New global variable.
7546         (get_resolution): Scan for and return unsigned int.
7547         (get_papersize): New function to get paper length from devps/DESC.
7548         (determine_vertical_offset): New function.
7549         (createAllPages): Produce gray-level images and use proper page
7550         length.
7551         (createImage): Use `-quiet' option of pnmcrop.
7552         (addZ): Fix passing of `-Z'.
7553         (scanArguments): Fix handling of `-o'.
7554         (main): Call `determine_vertical_offset'.
7555         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7556         code for `l'.
7558         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7559         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7560         glyph descenders properly.
7562         * doc/homepage.ms: Include `gnubw.eps'.
7563         * doc/Makefile (gnubw.eps): New rule.
7564         (homepage.html): Depend on `gnubw.eps'.
7566 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7568         * src/roff/troff/input.cc (default_black): Fix return value.
7570 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7572         * tmac/doc-common (Dt): Change output of architecture strings.
7573         Do some syntax cleanup.
7574         * tmac/groff_mdoc.man: Updated.
7576 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7578         Adding an `itc' request (input line trap accepting \c).
7580         * src/roff/troff/env.h (environment): New member
7581         `continued_input_trap'.
7582         Make `do_input_trap' a friend function instead of `input_trap'.
7583         * src/roff/troff/env.cc (environment::environment,
7584         environment::copy): Updated.
7585         (environment::newline): Implement it.
7586         (do_input_trap): New function.
7587         (input_trap): Call `do_input_trap'.
7588         (input_trap_continued): New function.
7589         (init_env_requests): Updated.
7590         * src/roff/troff/TODO: Updated.
7592         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7593         `.it'.
7595         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7597 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7599         * tmac/doc-common, tmac/doc-syms: Small updates.
7601 2001-12-22  Colin Watson  <cjwatson@debian.org>
7603         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7605 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7607         * MANIFEST: New file.
7609 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7611         * src/preproc/grn/grn.man: Updated.
7613 2001-12-22  Solar Designer  <solar@openwall.com>
7615         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7616         (DBRead): Use it.
7618 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7620         Implement a fallback character request `.fchar'.
7622         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7623         (is_fallback): New inline function.
7624         * src/roff/troff/input.cc (do_define_character): New function.
7625         (define_character): Call `do_define_character'.
7626         (define_fallback_character): New function.
7627         (init_input_requests): Add `fchar'.
7628         (charinfo::charinfo): Updated.
7629         (charinfo::set_macro): New argument to set `fallback' flag.
7630         * src/roff/troff/node.cc (make_glyph_node, make_node,
7631         node::add_char): Check `fallback' flag.
7632         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7634 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7636         * groff.texinfo: Document exact search algorithm for glyphs.
7638 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7640         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7641         the left side of $(MANPAGES) rule to make it always non-empty.
7643 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7645         * src/roff/troff/input.cc (default_black): Define default color
7646         `black' if not yet defined.
7648 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7650         Implement new string-valued register `.fn' to return the current
7651         real (internal) font name.
7653         * env.cc (environment::get_font_name_string): New function.
7654         (init_env_requests): Add `.fn' register.
7655         * env.h (environment): Updated.
7656         * node.cc (font_info): Make `get_font_name' a friend.
7657         (get_font_name): New function.
7658         * node.h: Updated.
7660         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7662 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7664         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7666 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7668         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7670 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7672         * man/groff_diff.man: Adding documentation for \O.
7674 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7676         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7677         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7679 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7681         * man/roff.man: Revised.
7682         * src/roff/groff/groff.man: Replace man page references with a
7683         pointer to roff.man.
7685 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7687         * man/roff.man: Completely rewritten.
7689 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7691         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7693 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7695         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7696         longer used.
7697         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7698         order of initializers.
7699         * NEWS: Updated.
7701 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7703         * doc/groff.texinfo: Fix documentation of \O.
7705         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7706         html_text::do_table, html_text::do_emittext, html_text::do_para):
7707         Use `const' for first argument.
7708         (html_text::do_table): Use cast.
7709         * src/devices/grohtml/html-text.h: Updated.
7710         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7711         method for `const string &s'.
7712         * src/devices/grohtml/html.h: Updated.
7713         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7714         (ANCHOR_TEMPLATE): Modified.
7715         (manufacture_headings): New global variable to handle `-h' option.
7716         (is_subsection): Removed.
7717         (char_buffer::add_string): Add `const' to first argument.
7718         Protect against invalid string argument.
7719         Add method for `const string &s'.
7720         (text_glob): Completely redesigned.
7721         (page): Use `const' for strings and remove string length variable.
7722         (page::add_html): Removed.
7723         (page::add_end_encode): New member function.
7724         (to_unicode): Moved upwards.
7725         (title_desc, header_desc): Updated.
7726         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7727         definition.
7728         (html_printer::is_bold, html_printer::make_bold): New member
7729         functions.
7730         (html_printer::end_of_line): Updated.
7731         (generate_img_src, html_printer::do_auto_image,
7732         html_printer::do_title, html_printer::write_header,
7733         html_printer::determine_header_level, html_printer::do_heading,
7734         html_printer::do_linelength, html_printer::do_pageoffset,
7735         html_printer::do_indentation, html_printer::do_tempindent,
7736         html_printer::do_indentedparagraph, html_printer::do_break,
7737         html_printer::flush_sbuf, get_html_translation,
7738         html_printer::begin_page, html_printer::special): Rewritten to get
7739         rid of static string length limit.
7740         (html_printer::troff_tag): Added `.no-auto-rule'.
7741         (html_printer::flush_globs): Small fix.
7742         (html_printer::determine_space): Don't compute `space_width'.
7743         (html_printer::translate_to_html): Renamed to ...
7744         (html_printer::emit_html): This (with updates).
7745         (html_printer::write_header): Implement `-h' option.
7746         (html_printer::draw): Remove commented-out code.  Handle `F'
7747         command.
7748         (html_printer::add_char_to_sbuf): Removed.
7749         (html_printer::add_to_sbuf): Rewritten.
7750         (html_printer::sbuf_continuation): Fixed.
7751         (html_printer::seen_backwards_escape, reverse,
7752         html_printer::remove_last_char_from_sbuf): Removed.
7753         (char_translate_to_html, str_translate_to_html): Removed.
7754         (html_printer::overstrike): New function member.
7755         (html_printer::set_char): Use it.
7756         (html_printer::do_body): New function member.
7757         (html_printer::~html_printer): Use it.
7758         (main): Handle `-h' option.
7759         (usage): Updated.
7760         * src/devices/grohtml/grohtml.man: Document -h switch.
7762         * src/preproc/html/pre-html.cc: Include searchpath.h
7763         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7764         (get_resolution): New function.
7765         (checkImageDir): Use `0777' permissions in mkdir()
7766         (write_start_image): Rewritten to use `\O[5...]'.
7767         (createImage, generateImages): Updated.
7768         (main): Handle `F' and `h' options.
7769         Use `get_resolution'.
7771         * src/roff/troff/input.cc (begin, end, image): Removed.
7772         (do_suppress): Take parameter.
7773         Handle modified syntax of `\O'.
7774         (token::next): Updated.
7775         (init_markup_requests): Removed.
7776         (main): Updated.
7778         * src/roff/troff/div.h: Add declaration for begin_page().
7780         * tmac/color-html.tmac: Removed.  Contents moved to...
7781         * tmac/html.tmac: Here.  Set background color.
7782         * tmac/color.tmac: Removed.  Contents moved to...
7783         * tmac/ps.tmac: Here.
7784         * tmac/www.tmac: Remove the title command when generating images
7785         for html.
7786         (NO_AUTO_RULE): New macro.
7787         (HTML_DO_IMAGE): Use revised `\O' escapes.
7788         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7790 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7792         * tmac/groff_mdoc.man: Fix typo.
7794 2001-12-01  Colin Watson  <cjwatson@debian.org>
7796         * man/roff.man: Fix typo.
7798 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7800         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7801         stdlib.h.
7803         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7804         more than one argument to \D'f ...'.
7806         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7808 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7810         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7811         loaded only once.
7813         * tmac/groff_man.man: Minor cosmetic fix.
7815 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7817         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7818         tmac/groff_www.man: s/mwww/www/.
7820 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7822         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7823         * configure: Regenerated.
7824         * win32-diffs: Updated.
7826         * tmac/groff_mwww.tmac: Renamed to ...
7827         * tmac/groff_www.tmac: This.
7828         * tmac/mwww.tmac: Removed.
7829         * NEWS, tmac/Makefile.sub: Updated.
7831 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7833         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7834         Fix explanation of `\D' and `rt'.
7836 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7838         * tmac/an-old.tmac (an-header): Set header length equal to page
7839         width.
7840         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7841         minor fixes.
7842         * NEWS: Small fix.
7844 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7846         * NEWS, man/Makefile.sub: Updated.
7848 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7850         * man/ditroff.man: New file.
7852 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7854         * man/groff_differences.man: Renamed to ...
7855         * man/groff_diff.man: This.  Updated.
7856         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7858         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7859         * src/preproc/html/pushback.cc: This.  Updated.
7860         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7861         * src/preproc/html/pushback.h: This.
7862         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7863         Updated.
7865         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7866         * src/libs/libgroff/htmlhint.cc: This.
7867         * src/libs/libgroff/Makefile.sub: Updated.
7869         * tmac/an-old.tmac (an-end): Fix page length.
7871 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7873         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7874         * man/Makefile.sub: Include groff_differences.man.
7875         * VERSION: Set to 1.18.
7876         * REVISION: Set to 0.
7878 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7880         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7881         the second dot (or ending macro name) to end a macro.
7882         * doc/groff.texinfo: Doc fix.
7884 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7886         * tmac/doc-common (doc-header): Handle very long document titles
7887         better.
7889 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7891         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7893 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7895         * src/roff/troff/troff.man: Revised and split into troff.man and...
7896         * man/groff_differences.man: New file.
7897         * NEWS: Updated.
7899 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7901         * tmac/an-old.tmac (TS, TE): New macros for table support.
7903 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7905         * src/include/lib.h: Provide a fix for emx to not include
7906         groff-getopt.h.
7908 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7910         * src/roff/troff/input.cc (substring_macro): Fix computation of
7911         boundary values.
7913 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7915         Undo change from 2001-08-28.
7917         * src/roff/troff/input.cc (have_input): New global variable.
7918         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7919         in compatibility mode.
7920         (process_input_stack): Use it.
7922 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7924         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7925         being handled as end-of-sentence characters,
7927 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7929         * src/roff/troff/input.cc (file_iterator): New members
7930         `suppress_newline_flag' and `seen_escape'.
7931         (file_iterator::next_file): Updated.
7932         (file_iterator::fill): Use it.
7933         (string_iterator): New member `suppress_newline_flag'.
7934         (string_iterator::fill): Set it.
7935         (get_color_element): Use MAX_COLOR_VAL.
7936         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7937         (no_fill): Don't set `env->ignore_next_eol'.
7938         (environment::newline): Handle `eol' tag properly.
7939         Emit `eol.ce'.
7940         (environment::add_html_tag): Set `env->ignore_next_eol'.
7941         Don't handle `.ce'.
7942         * src/roff/troff/env.h (environment): Updated.
7944         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7945         member function.
7946         (html_printer::outstanding_eol): New member function.
7947         (html_printer::do_title): Use new functions.
7948         (html_printer::troff_tag): Test `id_eol_ce'.
7950 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7952         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7953         files work with -C also.
7955 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7957         * doc/pic.ms: Minor fix.
7958         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7959         as a valid command line switch.
7960         * src/devices/grohtml/post-html.cc (main): Ditto.
7961         (usage): Updated.
7962         * src/devices/grohtml/grohtml.man: Updated.
7963         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7965 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7967         Implementing color support in troff, pic, grops, and grohtml.  These
7968         changes are based on a major patch provided by Gaius Mulley
7969         <gaius@glam.ac.uk>.
7971         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7972         definitions with both hex values and fractions.
7974         New escapes: \m and \M for drawing and background color,
7975         respectively.  This corresponds to the troff output commands `m'
7976         and `DF'.
7978         groff and troff accept command line switch `-c' to disable color
7979         output (which is automatically disabled in compatibility mode).
7981         New scaling indicator `f' for fractions (1f = 65536u).
7983         New conditional operator `m' to test for defined colors with `if'
7984         and `ie'.
7986         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7987         (or `outlined'), and `shaded' added to pic.
7989         * src/include/color.h: New file.
7990         * src/include/driver.h: Include it.
7991         * src/include/printer.h: Include color.h.
7992         (environment): New members `col' and `fill'.
7993         (printer): Remove `adjust_arc_center' member function.
7994         * src/include/Makefile.sub: Updated.
7996         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7997         `env.fill'.
7998         Handle `m' and `DF' troff commands.
7999         * src/libs/libgroff/color.cc: New file.
8000         * src/libs/libgroff/Makefile.sub: Updated.
8002         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8003         (stop): Removed.
8004         (createImage): Fix computation of `y2'.
8005         Use `pnmcrop' also.
8006         (buffer::write_file_html): Remove calls to `stop'.
8008         * src/preproc/pic/common.h (common_output): New abstract function
8009         members `set_color', `reset_color', `get_last_filled', and
8010         `get_outline_color'.
8011         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8012         (object_spec): Add members `shaded' and `outlined'.
8013         * src/preproc/pic/output.h (output): `command' is now abstract.
8014         New function members `set_color', `reset_color', `get_last_filled',
8015         and `get_outline_color'.
8016         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8017         `outline[d]', and `shaded'.
8018         * src/preproc/pic/object.cc (output::command): Removed.
8019         (output::set_location): Moved to output.h.
8020         (graphic_object): Add protected members `outline_color' and
8021         `color_fill'.
8022         Add member functions `set_outline_color', `get_outline_color', and
8023         `set_fill_color'.
8024         (closed_object): Add member function `set_fill_color'.
8025         Add member `color_fill'.
8026         (graphic_object::print_text): Use `out->set_color' and
8027         `out->reset_color'.
8028         (box_object::print, ellipse_object::print, circle_object::print,
8029         line_object::print, spline_object::print, arc_object::print): Ditto.
8030         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8031         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8032         `SHADED', making them `%left'.
8033         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8034         * src/preproc/pic/tex.cc (tex_output): New dummy function members
8035         `set_color', `reset_color', `get_last_filled', and
8036         `get_outline_color'.
8037         * src/preproc/pic/troff.cc (simple_output): New abstract function
8038         members `set_color', `reset_color', and `get_last_filled'.
8039         (simple_output::polygon, simple_output::circle,
8040         simple_output::ellipse): Use `get_last_filled'.
8041         (troff_output): New members `last_filled' and `last_outlined'.
8042         New function members `set_color', `reset_color', `get_last_filled',
8043         and `get_outline_color'.
8044         (troff_output::finish_picture): Use `reset_color'.
8045         (troff_output::set_fill): Test `last_filled'.
8046         * src/preproc/pic/pic.man: Updated.
8048         * src/roff/groff/groff.cc (main): Implement `-c' option.
8049         (synopsis, help): Updated.
8050         src/roff/groff/groff.man: Updated.
8052         * src/roff/troff/troff.h: Include color.h.
8053         (warning_type): Add WARN_COLOR.
8054         * src/roff/troff/env.h (environment): New members
8055         `{cur,prev}_{glyph,fill}_color'.
8056         New member functions `get_{prev_,}{glyph,fill}_color'.
8057         * src/roff/troff/env.cc: Initialize and implement them.
8058         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8059         Replace `NULL' with `0' everywhere for consistency.
8060         (lookup_color, default_black, do_glyph_color, do_fill_color,
8061         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8062         define_color): New functions.
8063         (token::next): Implement \M and \m escapes.
8064         (do_if_request): Implement `m' operator.
8065         (usage): Updated.
8066         (main): Implement `-c' option.
8067         (init_markup_requests): Add `defcolor' request.
8068         (warning_table): Add `color' warning.
8069         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8070         classes.
8071         * src/roff/troff/node.cc (troff_output_file): New members
8072         `current_{page,glyph}color'.  New member functions `put_hex',
8073         `glyph_color', and `fill_color'.
8074         (glyph_color_node::*, fill_color_node::*): Implement it.
8075         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8076         (parse_term): Add support for `f'.
8077         * src/roff/troff/troff.man: Updated.
8079         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8080         entry for `F'.
8081         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8082         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8084         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8085         (tag_definition): Use `void *' for arg1.
8086         (html_text): New member functions `do_color' and `done_color'.
8087         Use `void *' for second parameter of `push_para' member function.
8088         New `push_para' member function with a single parameter.
8089         Use `char *' for parameter of `issue_table_begin' member funtion.
8090         New `issue_color_begin' member function.
8091         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8092         COLOR_TAG.
8093         (html_text::issue_color_begin): New function.
8094         (html_text::issue_table_begin): Use `char *' for parameter.
8095         (html_text::start_tag, html_text::shutdown,
8096         html_text::check_emit_text): Updated.
8097         (html_text::push_para): Use `void *' for second parameter.
8098         Add same function with only one parameter.
8099         (html_text::do_*): Updated.
8100         (html_text::do_color, html_text::done_color): New functions.
8101         * src/devices/grohtml/post-html.cc (style): New member `col'.
8102         Mew member `style' with 6 parameters.
8103         (style::style, style::operator==): Updated.
8104         (html_printer::do_font): Use it.
8105         (html_printer::draw): Add dummy entry for `F'.
8106         (html_printer::set_char): Updated.
8107         * src/devices/grohtml/grohtml.man: Updated.
8109         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8110         trailing zeroes removed.
8111         (ps_printer): New members `sbuf_color', `fill_color', and
8112         `output_color'.
8113         Removed member `fill'.
8114         New member function `set_color'.
8115         (ps_printer::ps_printer, ps_printer::set_char): Updated.
8116         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8117         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8119         * tmac/color-html.tmac, tmac/color.tmac: New files.
8120         * tmac/troffrc: Include them.
8121         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8122         * tmac/Makefile.sub: Updated.
8124         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8125         man/groff.man: Updated.
8126         * font/devps/prologue.ps: Define FC and CO functions.
8128 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
8130         Fix incorrect cropping of images and incorrect handling of special
8131         characters.  Fix handling of file names in \O.
8133         * src/include/geometry.h: New file.
8134         * src/libs/libgroff/geometry.cc: New file.
8135         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8136         to `geometry.cc'.
8137         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8138         initial spaces.
8139         (do_suppress): Updated.
8140         * src/roff/troff/node.cc: Include geometry.h.
8141         (troff_output_file::flush_tbuf): Fixed parameters to
8142         `check_output_limits'.
8143         (troff_output_file::check_charinfo): Ditto.
8144         (troff_output_file::determine_line_limits): Add support for `Da'
8145         and `Dl' commands.
8147         * src/devices/grohtml/post-html.cc (str_translate_to_html):
8148         Add new parameter `is_special' to decode special characters from
8149         escape sequences.
8150         (html_printer::do_title, html_printer::do_heading,
8151         html_printer::do_indentedparagraph,
8152         html_printer::translate_to_html, html_printer::special): Updated.
8154 2001-10-03  Werner LEMBERG  <wl@gnu.org>
8156         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8157         Fix entry for config.h.
8158         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8159         * tmac/troffrc: Translate nonbreakable space character to `\~'.
8160         * src/preproc/eqn/eqn.man: Document -d command line option.
8162 2001-09-27  Werner LEMBERG  <wl@gnu.org>
8164         * man/groff.man: Use
8166           .ev xxx
8167           .na
8168           .nh
8169           <table>
8170           .ev
8172         instead of the old code (`.ad .hy' after the table) to suppress
8173         incorrect hyphenation for grohtml output.
8175 2001-09-22  Werner LEMBERG  <wl@gnu.org>
8177         * man/groff_font.man, man/groff_out.man: Minor fixes.
8179 2001-09-20  Werner LEMBERG  <wl@gnu.org>
8181         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
8182         Arnold Robbins <arnold@skeeve.com>).
8184 2001-09-09  Werner LEMBERG  <wl@gnu.org>
8186         * configure: Regenerated with autoconf 2.52.
8188         * doc/groff.texinfo: Complete revision of indices.
8190 2001-09-07  Werner LEMBERG  <wl@gnu.org>
8192         * doc/Makefile (clean): Updated to delete all indices.
8194 2001-09-05  Werner LEMBERG  <wl@gnu.org>
8196         * src/roff/troff/troff.man: Remove superfluous line.
8198         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8199         given on the command line (or rather, if only the default warnings
8200         are set).
8202 2001-09-03  Werner LEMBERG  <wl@gnu.org>
8204         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8205         use .ne for TTY devices.
8207 2001-08-31  Werner LEMBERG  <wl@gnu.org>
8209         * src/roff/troff/token.h, src/roff/troff/input.cc:
8210         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8212 2001-08-28  Werner LEMBERG  <wl@gnu.org>
8214         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8215         * src/roff/troff/input.cc (token::next): Return
8216         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8217         compatibility mode.
8218         (token::description): Updated.
8219         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8220         (token::add_to_node_list, token::process): Ignore
8221         TOKEN_TRANSPARENT_ESCAPE.
8223 2001-08-27  Werner LEMBERG  <wl@gnu.org>
8225         * tmac/an-old.tmac: Fix `S' string.
8227 2001-08-26  Werner LEMBERG  <wl@gnu.org>
8229         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8231 2001-08-25  Werner LEMBERG  <wl@gnu.org>
8233         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8234         backslashes).
8235         Many other minor fixes.
8237         * configure.ac: Add message at end to inform how to compile
8238         xditview.
8239         * configure: Regenerated.
8241 2001-08-24  Werner LEMBERG  <wl@gnu.org>
8243         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8244         Updated to latest version of libc.
8246 2001-08-23  Werner LEMBERG  <wl@gnu.org>
8248         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8249         Autoconf 2.50 and newer can handle this.
8250         * configure: Regenerated.
8252 2001-08-21  Werner LEMBERG  <wl@gnu.org>
8254         * doc/pic.ms: Fix typo.
8255         * src/preproc/tbl/tbl.man: Document case of global options.
8257 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
8259         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8260         handling of `CR' font.
8262 2001-08-20  Werner LEMBERG  <wl@gnu.org>
8264         Use a config.h file.
8266         * src/include/lib.h: Include config.h.
8267         * All C files: Ditto (if necessary).
8268         * All C++ source and header files: Include lib.h first (if
8269         necessary).
8271         * src/include/config.hin: New file (autogenerated by autoheader).
8272         * stamp-h.in: New file.
8273         * configure.ac: Updated.
8274         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8275         (GROFF_ARRAY_DELETE): Simplified.
8276         * Makefile.sub (DISTCLEANFILES): Updated.
8277         Added targets for remaking config.status, config.hin, config.h,
8278         stamp-h.in, and stamp-h.
8279         * configure: Regenerated.
8281 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8283         * NEWS: Updated.
8285 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8287         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8288         (do_sprintf): Use snprintf().
8290 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8292         * src/libs/snprintf/*: Added an snprintf module written by Mark
8293         Martinec.
8294         * src/libs/libgroff/Makefile.sub: Updated.
8295         * configure.ac: Add test for snprintf().
8296         * Makefile.in: Updated.
8297         * configure: Regenerated.
8299         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8300         uses snprintf().
8302 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8304         * tmac/doc.tmac (Ex): New implementation.
8305         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8307 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8309         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8310         argument.
8311         * tmac/groff_tmac.man: Updated.
8313 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8315         * src/preproc/tbl/tbl.man: Minor documentation update.
8317 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8319         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8320         * configure.ac: Add declaration test for gettimeofday().
8321         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8322         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8323         * configure: Regenerated.
8325 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8327         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8328         * configure.ac: Add declaration test for strcasecmp().
8329         * Makefile.in: Updated.
8330         * configure: Regenerated.
8331         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8332         this is necessary because groff's mkstemp.cc is C++.
8333         Add declaration conditionally for strcasecmp().
8335 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8337         Integrated pic2graph, contributed by Eric S. Raymond.
8339         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8340         files.
8341         * Makefile.in, NEWS: Updated.
8343         * src/preproc/tbl/tbl.man: Revised.
8345 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8347         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8349 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8351         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8352         requests.
8354 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8356         * Makefile.sub (configure): Depend on configure.ac, not
8357         configure.in.
8358         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8360 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8362         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8363         fixes.
8365 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8367         * src/roff/troff/troff.man: Improve documentation of -E option.
8369 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8371         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8372         Simplified.
8374 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8376         * src/preproc/refer/refer.cc: Undo last change.
8377         * src/devices/grohtml/post-html.cc: Ditto.
8379 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8381         * src/preproc/refer/refer.cc: Include `lib.h'.
8382         * src/devices/grohtml/post-html.cc: Ditto.
8384 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8386         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8387         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8388         * Makefile.in: Comment updated.
8389         * configure: Regenerated.
8391 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8393         * src/preproc/pic/pic.cc: Removed.
8394         * src/preproc/pic/pic_tab.h: Removed.
8395         * src/preproc/refer/label.cc: Removed.
8397         * doc/Makefile (.ms.html): Don't use a file name extension in
8398         argument to grohtml's -I option.
8399         * Makefile.in (dist): Remove CVS directories.
8400         Call `distfiles' target.
8402         * src/devices/grohtml/grohtml.man: Add information about valid
8403         versions of pnmtopng.
8404         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8405         name instead of number.
8407 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8409         * doc/groff.texinfo: Minor fixes.
8411 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8413         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8414         (clean): Updated.
8416 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8418         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8419         * src/libs/libgroff/mkstemp.cc: New file.
8420         * src/libs/libgroff/mksdir.cc: New file.
8421         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8422         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8423         * src/libs/libgroff/Makefile.sub: Updated.
8424         * src/include/lib.h: Add mksdir() prototype.
8425         * src/include/posix.h: Define S_IXUSR if not yet defined.
8427         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8428         (createAllPages): Use mksdir() instead of current code.
8429         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8430         (main): [!HAVE_MKSTEMP]: Removed.
8432         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8433         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8434         macros.
8435         * configure.ac: Add tests for stdint.h, sys/time.h, and
8436         gettimeofday().
8437         Call new GROFF_xxx macros.
8438         * configure: Regenerated.
8439         * Makefile.in: Comments updated.
8441 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8443         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8444         instead of current code.
8445         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8446         * src/roff/groff/groff.cc (possible_command::insert_args): New
8447         function.
8448         (main): Use it for predriver handling instead of insert_arg().
8450 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8452         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8453         groff also.
8455         * src/include/posix.h: Define S_IWUSR if not yet defined.
8457 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8459         * NEWS: Updated.
8461 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8463         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8464         Some other minor fixes.
8465         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8467 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8469         Replace call to `troff' with `groff -Z' to make it aware of
8470         GROFF_BIN_PATH.
8472         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8473         (troff_command, command_prefix): Removed.
8474         (alterDeviceTo): Use groff.
8475         (addZ): New function.
8476         (char_buffer::do_html): Use it.
8477         (scanArguments): Use TROFF_COMMAND.
8478         (findPrefix): Removed.
8479         (main): Updated.
8480         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8482 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8484         * doc/pic.ms: Documentation fixes.
8486 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8488         Replace atexit() with global destructor.
8490         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8491         (xtmpfile_list_init): New global structure to deallocate
8492         xtmpfile_list on exit.  Its destructor inherits most code from
8493         remove_tmp_files().
8494         (remove_tmp_files): Deleted.
8495         (add_tmp_file): Simplified.
8497 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8499         Replace strdup() with strsave().
8501         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8502         (set_papersize): Use strsave() and a_delete.
8503         (main): Use strsave().
8504         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8505         removeAllPages): Use strsave() and a_delete.
8507         * configure.ac: Remove test for strdup.
8508         * Makefile.in: Comment updated.
8509         * configure: Regenerated.
8511 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8513         * win32-diffs: Updated.
8515 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8517         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8518         removing the old one.
8519         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8521 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8523         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8525 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8527         Merge -xwidth into -width.  Add -xwidth functionality to -column
8528         also.
8530         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8531         avoid warning.
8532         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8533         string immediately following a leading dot starts with a valid mdoc
8534         argument.
8535         Add similar code to the -column branch.
8536         (doc-Bl-usage): Updated.
8537         * groff_mdoc.man: s/-xwidth/-width/.
8539 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8541         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8542         running into centered or non-formatted text.
8544 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8546         Introduce short and long prefixes to have the selection at run-time
8547         whether there is a 8+3 limit for names of temporary files.
8549         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8550         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8551         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8552         variables.
8553         (temp_init): New global structure to initialize above three
8554         variables.
8555         (xtmptemplate): Use two parameters for long and short prefix.
8556         Simplify code use above three variables.
8557         (xtmpfile): Use long and short prefixes as parameters.
8558         * src/include/lib.h: Updated.
8560         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8561         with ...
8562         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8563         (createAllPages, makeTempFiles): Updated.
8565 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8567         * REVISION: Increased to 3.
8569 Version 1.17.2 released
8570 =======================
8572 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8574         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8575         to size_t.
8577 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8579         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8580         Fix synopsis.
8581         * tmac/groff_mdoc.man: Fix synopsis.
8583 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8585         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8586         Restore `doc-Pa-font'.
8588 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8590         * src/utils/indxbib/dirnamemax.c: Moved to ...
8591         * src/libs/libgroff/maxfilename.cc: Here.
8592         s/dir_name_max/file_name_max/.
8593         Add copyright.
8594         * src/include/lib.h: Add file_name_max.
8595         * src/utils/indxbib/indxbib.cc: Updated.
8596         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8597         Updated.
8599         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8600         as empty.
8601         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8603         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8604         REGION_TEMPLATE): New macros.
8605         (createAllPages, makeTempFiles): Use them.
8606         Include `nonposix.h'.
8607         (html_system): New function.
8608         (createAllPages, createImage): Use it.
8609         Use EXE_EXT.
8611         * tmac/www.tmac: Fix typos.
8613 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8615         * tmac/www.tmac: Disable hyphenation in normal text only if output
8616         device is html.
8617         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8618         * tmac/groff_mwww.man, NEWS: Updated.
8620 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8622         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8623         image location.
8625 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8627         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8628         doc-display-ps-stack): Implement font and font size stack for
8629         displays.
8631 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8633         * REVISION: Increased to 2.
8634         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8636         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8637         beginning of a line.
8638         * src/groff/grog/grog.sh: Ditto.
8640 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8642         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8643         make it portable.
8645 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8647         Fix problems with preprocessor string for `man' program.
8649         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8650         Updated/added copyright.
8651         Moved Emacs's local variable to identify nroff mode to the end of
8652         the file; add local variable if missing.
8654 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8656         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8657         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8658         * configure: Regenerated.
8660 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8662         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8663         * configure: Regenerated.
8665 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8667         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8668         but www.tmac.
8669         * doc/pic.ms: Fix typos.
8671 Version 1.17.1 released
8672 =======================
8674 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8676         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8677         * configure: Updated.
8679 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8681         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8682         image names.
8683         * src/roff/troff/dic.cc (blank_line): Add html tag.
8685 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8687         * src/roff/troff/input.cc (do_suppress): Fix typo.
8689 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8691         Added two new options (-D and -I) to specify image names and a
8692         subdirectory to place the images in.
8694         Change syntax from \\Ox to \\O[x].
8696         * src/devices/grohtml/post-html.cc (main): Add options.
8697         (usage): Updated.
8698         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8699         Use `NULL' instead of `0' for null string pointers.
8700         (MAX_RETRIES): New macro.
8701         (lengthOfintToStr, intToStr, make_message): New functions.
8702         (makeFileName): Make function static.
8703         Implement -D and -I options.
8704         (checkImageDir): New function.
8705         (write_end_image, write_start_image): Use new syntax of \O.
8706         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8707         make_message().
8708         (createImage): Use make_message().
8709         (addps4html): Add guard for malloc().
8710         (usage, scanArguments): Updated.
8711         (makeTempFiles): Use mkstemp().
8712         (removeTempFiles): Use unlink().
8713         (findPrefix): Add guard for malloc().
8714         (main): Updated.
8715         * src/roff/troff/input.cc (get_delim_file_name): New function to
8716         parse \O.
8717         (do_suppress): Updated to parse new syntax.
8718         * src/devices/grohtml/grohtml.man: Updated.
8719         * tmac/www.tmac: Updated to new syntax.
8721         * NEWS: Updated.
8723 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8725         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8727         * src/devices/grohtml/grohtml.man: Minor improvements.
8729 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8731         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8733 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8735         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8736         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8737         the former.
8738         * src/preproc/grn/grn.man: Add proper '\" string.
8740 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8742         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8744 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8746         Updated to autoconf 2.50.
8748         * configure.in: Renamed to...
8749         * configure.ac: This.
8750         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8751         (GROFF_OS390): Updated.
8752         * configure: Regenerated.
8754 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8756         * src/roff/troff/env.c, src/roff/troff/env.h,
8757         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8758         from 2000-12-21.
8760 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8762         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8764 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8766         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8767         less than or equal zero; set it to 1 then.
8768         * src/roff/troff/node.h (node::node): Initialize `last'.
8770 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8772         * tmac/an-old.tmac: Make predefined strings work in compatibility
8773         mode.
8774         Add troff version guard.
8775         * tmac/doc.tmac: Simplify version guard.
8777 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8779         The .ns and .rs requests are now honoured not only in the top-level
8780         but in all diversions (similar to UNIX troff).
8782         This change is based on a patch from Tadziu Hoffmann
8783         <hoffmann@usm.uni-muenchen.de>.
8785         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8786         (top_level_diversion): Remove `no_space_mode' member.
8787         * src/roff/troff/div.cc (diversion::diversion,
8788         top_level_diversion::top_level_diversion): Updated.
8789         (macro_diversion::output): Reset `no_space_mode'.
8790         (no_space, restore_spacing): Use `curdiv' unconditionally.
8791         (space_request, blank_line): Check `curdiv->no_space_mode'.
8792         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8793         `curdiv' unconditionally.
8794         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8795         Updated.
8797 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8799         Added two new requests `de1' and `am1' which are similar to `de' and
8800         `am' with the difference that compatibility mode is saved on entry,
8801         switched off during macro execution, and restored on exit.
8803         * src/roff/troff/input.h: Added two new special characters
8804         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8805         * src/roff/troff/input.cc (input_iterator): Added two member
8806         functions `save_compatible_flag' and `get_compatible_flag'.
8807         (input_stack): Ditto.
8808         (string_iterator): Ditto.  Also add private member
8809         `saved_compatible_flag'.
8810         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8811         (calling_mode): New enumeration.
8812         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8813         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8814         (define_macro, define_indirect_macro, append_macro, ignore): Use
8815         `calling_mode'.
8816         (define_nocomp_macro, append_nocomp_macro): New functions.
8817         (init_input_requests): Updated.
8818         (do_request): Rename local variable `saved_compatible_flag' to
8819         `old_compatible_flag'.
8820         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8822         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8823         public and trap-invoked macros.  As a consequence, the man macros
8824         work in compatibility mode also.
8826 2001-05-06  Solar Designer  <solar@openwall.com>
8828         * Makefile.in: Use $(mandir).
8830 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8832         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8834 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8836         Added `.ns' number register: Returns 1 in no-space mode (if in
8837         top-level diversion), 0 otherwise.
8839         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8840         (init_div_requests): Updated.
8841         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8842         Document it.
8844 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8846         * src/roff/nroff/nroff.man: Improved documentation (especially
8847         locales).
8849 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8851         Added `brp' request: This is \p as a request.
8853         * src/roff/troff/env.cc (environment::do_break): Add parameter
8854         `spread'.
8855         (do_break_request): New function (was `break_request').
8856         (break_request): Calls `do_break_request'.
8857         (break_spread_request): New; calls `do_break_request'.
8858         (init_env_requests): Updated.
8859         * src/roff/troff/env.h: Updated.
8860         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8862         * REVISION: Increased to 1.
8863         * win32-diffs: Updated.
8865 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8867         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8868         * tmac/troffrc-end: Make it really work in compatibility mode.
8870 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8872         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8873         stdlib.h.
8875 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8877         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8878         latest versions from glibc CVS archive.
8880         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8881         <c.zeelenberg@hccnet.nl>.
8883 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8885         * configure.in: Move check for mkstemp() to...
8886         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8887         * configure: Regenerated.
8889         * src/include/groff-getopt.h: Don't use variable names in
8890         declarations.
8892         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8893         * src/devices/grohtml/Makefile.sub,
8894         src/devices/grohtml/post-html.cc: Updated.
8896 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8898         * configure.in: Add special check for mkstemp().
8899         * src/libs/libgroff/tmpfile.cc: Use it.
8900         * src/utils/indxbib/indxbib.cc: Ditto.
8901         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8902         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8903         `const'.
8905 2001-04-20  Bruce Lilly  <blilly@erols.com>
8907         `Version_string' as C++ object was not visible to linker from C
8908         object files.
8909         Add `const' to `Version_string'.
8911         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8912         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8913         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8914         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8915         (scanArguments), src/preproc/refer/refer.cc (main),
8916         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8917         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8918         (main), src/devices/grohtml/post-html.cc (main),
8919         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8920         (main), src/utils/hpftodit/hpftodit.cc (main),
8921         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8922         (main), src/utils/lkbib/lkbib.cc (main),
8923         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8925         * src/roff/groff/pipeline.c: Add _UWIN.
8926         * src/include/nonposix.h: Ditto.
8928 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8930         * src/include/lib.h: Use HAVE_STRERROR.
8931         * src/roff/groff/pipeline.c: Ditto.
8932         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8933         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8934         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8935         * win32-diffs: Updated.
8936         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8938 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8940         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8941         instead of hardwired `"troff"'.
8942         (char_buffer::read_file): Remove unused variables.
8943         (char_buffer::write_file_troff): Ditto.
8944         (char_buffer::write_file_html): Ditto.
8945         (generateImages): Ditto.
8946         (abs): Removed.
8947         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8949         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8951         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8952         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8953         index_search_item::search1): Ditto.
8954         * src/roff/troff/node.h (width_list): Reorder members.
8955         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8956         (lookup_warning): Ditto.
8957         (prepend_string): Commented out.
8958         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8959         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8960         * src/preproc/tbl/main.cc (process_format): Ditto.
8961         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8962         compiler warnings.
8963         * src/preproc/pic/pic.cc: Updated.
8964         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8965         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8966         * src/preproc/refer/command.cc (execute_command): Ditto.
8967         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8968         * src/preproc/refer/token.cc (lookup_token): Ditto.
8969         * src/preproc/soelim/soelim.cc: Ditto.
8970         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8971         (isHexDigit): Commented out.
8972         (pushBackBuffer::isString): Remove unused variable.
8973         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8974         warning.
8975         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8976         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8977         Ditto.
8978         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8979         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8980         lookup_paper_size): Ditto.
8981         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8982         (text_glob, element_list): Reorder members.
8983         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8984         compiler warning.
8985         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8986         return value to `void'.
8987         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8988         of initializers.
8989         * src/devices/grohtml/html.h (simple_output::check_newline,
8990         simple_output::space_or_newline, simple_output::enable_newlines):
8991         Add return value.
8992         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8993         compiler warnings.
8994         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8995         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8996         output_ligatures, output_charset, read_map): Ditto.
8997         * src/utils/lookbib/lookbib.cc (main): Ditto.
8998         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8999         (do_file): Fix typo (`=' -> `==').
9000         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9001         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9003 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
9005         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9006         Fix usage of GROFF_BIN_PATH.
9007         * src/roff/nroff/nroff.man: Updated.
9009 2001-04-18  Werner LEMBERG  <wl@gnu.org>
9011         * NEWS: Fixing typos.
9012         Updated.
9014 Version 1.17 released
9015 =====================
9017 2001-04-17  Werner LEMBERG  <wl@gnu.org>
9019         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9020         directory, not in $(srcdir).
9022 2001-04-16  Werner LEMBERG  <wl@gnu.org>
9024         * doc/groff.texinfo: More info on conditionals.
9026 2001-04-15  Werner LEMBERG  <wl@gnu.org>
9028         * doc/groff.texinfo: Added some info about groff internals.
9030         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9031         about missing special character only if the name is non-null.
9033 2001-04-14  Werner LEMBERG  <wl@gnu.org>
9035         Removing the grohtml-old device driver which is now obsolete.
9037         * src/devices/grohtml-old/*: Removed.
9038         * font/devhtml-old/*: Removed.
9039         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9040         Remove comments.
9041         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9042         * test-groff (PATH): Updated.
9043         * tmac/Makefile.sub (NORMALFILES): Updated.
9044         * tmac/an-old.tmac: Remove special code for html-old device.
9045         Replace `html-or-html-old' register with `an-html'.
9046         * tmac/eqnrc: Updated.
9047         * tmac/html-old.tmac: Removed.
9048         * tmac/troffrc, tmac/troffrc-end: Updated.
9049         * tmac/www.tmac: Remove special code for html-old device.
9050         Replace `html-or-html-old' register with `www-html'.
9052         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9053         src/libs/libgroff/htmlindicate.cc (graphic_end),
9054         include/htmlindicate.h, src/preproc/grn/*.cc,
9055         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9056         single argument for consistency with rest of source code.
9058         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9060 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
9062         * src/roff/troff/troff.man: Fixing typos.
9064 2001-04-13  Werner LEMBERG  <wl@gnu.org>
9066         * doc/pic.ms: Fixing many font switches.
9067         * doc/groff.texinfo: Fixes, additions.
9068         * MORE.STUFF: Updated.
9070 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
9072         * src/devices/grohtml/grohtml.man: Updated manual page regarding
9073         simple anchor.
9074         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9075         cropping of images.
9076         (removeTempFiles): New function to tidy up temporary files.
9077         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9078         Many fixes to do with the new inline suppress node and image regions
9079         are much tighter.
9080         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9081         (generate_img_src): New function.
9082         (html_printer::do_auto_image): Utilizes it.
9083         (do_heading, do_title): Include inline images within their contents.
9084         (html_printer::begin_page): Tidied up comments that are issued to
9085         the html output file.
9086         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9087         than courier.
9088         (text_glob::is_br): New method used by do_heading.
9089         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9090         equivalent diversion.
9091         * src/include/html-strings.h: Altered image tags to reflect the
9092         inline image node.
9093         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9094         parameter.
9095         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9096         it is already inside a pic image.  Only emit tags if the argument
9097         `-Tps:html' is present.
9098         * src/preproc/tbl/main.cc: Changes to reflect additional
9099         `html_end_suppress' parameter.
9100         * src/roff/troff/env.cc: Only emit eol tag if a node has been
9101         emitted since the last eol tag was written.
9102         * src/roff/troff/env.h: New boolean `emitted_node'.
9103         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9104         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
9105         * src/roff/troff/node.cc (check_charinfo): New method. 
9106         (troff_output_file::determine_line_limits): Alterations to limit
9107         checking.
9108         * tmac/www.tmac: Changes to reflect new suppress nodes.
9109           
9110 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
9112         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9113         Escape the html_glyph in the buffer.
9114         (str_translate_to_html): Output the unescaped escaped_char.
9115         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9116         `frame=void', not `frame=none'.  Add `border=0'.
9118 2001-04-12  Werner LEMBERG  <wl@gnu.org>
9120         * PROBLEMS: Add some words on how to avoid wrapper macros.
9122 2001-04-11  Blake McBride  <blake@florida-software.com>
9124         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9126 2001-04-11  Werner LEMBERG  <wl@gnu.org>
9128         * font/devlbp/Makefile.sub (CLEANADD): Set it.
9129         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9130         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9131         * Makefile.sub (DISTCLEANFILES): Here.
9133         * libs/libgroff/new.cc: Include `nonposix.h'.
9134         * win32-diffs: Updated.
9136 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
9138         Added skeleton macro for defunct macros.
9140         Updated documentation.
9142         When inside displays, an empty input line warning should be
9143         suppressed.  If another macro call is put inside a display,
9144         all subsequent empty lines found in that display caused a
9145         warning to be emitted.
9147         * tmac/doc.tmac (doc-defunct-macro): New macro.
9148         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9149         (doc-restore-global-vars): Fixed typo.
9150         (doc-empty-line): Check the `doc-display-depth' register to
9151         determine whether we are inside display or not.
9153         * tmac/doc-common: Removed `Or' and `Sf' registers.
9154         Moved obsolete `Ds' macro to doc.tmac.
9156         * tmac/groff_mdoc.man: Bump document date.
9157         Document `.Vt' under ``Variable Types''.
9158         Removed documentation for obsolete `.Or' macro.
9160 2001-04-10  Werner LEMBERG  <wl@gnu.org>
9162         * NEWS: Updated.
9163         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9165 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
9167         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9168         (usage): Add stream argument. Don't exit.
9169         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9170         Write --version output to stdout, not stderr.
9171         (usage): Add stream argument. Don't exit.
9172         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9173         (usage): Add stream argument. Don't exit.
9174         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9175         constants.
9176         (usage): Add stream argument. Don't exit.
9177         (main): Write --help output to stdout, not stderr.
9178         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9179         (usage): Add stream argument. Don't exit.
9180         * src/devices/grops/ps.cc (main): Accept --help and --version.
9181         (usage): Add stream argument. Don't exit.
9182         * src/devices/grotty/tty.cc (main): Accept --help and --version.
9183         (usage): Add stream argument. Don't exit.
9184         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9185         (main): Accept --help and --version.
9186         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9187         (main): Accept --help and --version.
9188         * src/preproc/html/pre-html.cc (usage): Add stream argument.
9189         (scanArguments): Accept --help and --version.
9190         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9191         (main): Accept --help and --version.
9192         * src/preproc/refer/refer.cc (main): Accept --help and --version.
9193         (usage): Add stream argument. Don't exit.
9194         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9195         exit.
9196         (main): Accept --help and --version.
9197         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9198         (main): Accept --help and --version.
9199         * src/roff/groff/groff.cc (main): Accept --help and --version.
9200         (synopsis): Add stream argument.
9201         (help): Write --help output to stdout, not stderr.
9202         (usage): Add stream argument. Don't exit.
9203         * src/roff/grog/grog.pl: Accept --help and --version.
9204         (help): New sub.
9205         * src/roff/grog/grog.sh: Accept --help and --version.
9206         * src/roff/nroff/nroff.sh: Accept --help and --version.
9207         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9208         (usage): Add stream argument. Don't exit.
9209         (main): Accept --help and --version.
9210         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9211         (usage): New function with stream argument, doesn't exit.
9212         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9213         (usage): New function with stream argument, doesn't exit.
9214         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9215         (usage): Add stream argument. Don't exit.
9216         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9217         (main): Accept --help and --version.
9218         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9219         exit.
9220         (main): Accept --help and --version.
9221         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9222         (main): Accept --help and --version.
9223         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9224         (usage): Add stream argument. Don't exit.
9226 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
9228         Fix indentation in SYNOPSIS.
9230         Updated to include changes of latest BSD mdoc version (basically,
9231         the only change is that `.Fn' and `.Fc' put a final semicolon after
9232         a function declaration in the SYNOPSIS section).
9234         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9235         (doc-in-synopsis-section): New variable.  Updated all related
9236         functions.
9237         (doc-indent-synopsis-active): New register.
9238         (Nd, Fn, Fo): Use it.
9239         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9240         `.Cd' with long argument line produces indented wrapped lines. 
9241         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9242         undesirable line break to be output.
9243         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9244         `.rs'.
9245         (Fn, Fc): Add final `;' to output.
9246         (doc-save-global-vars, doc-restore-global-vars): Updated.
9247         * tmac/doc-common: Remove `Ex' register.
9248         Updated.
9249         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9250         copyright.
9252 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9254         * tmac/doc.tmac (Cd): Simplify code.
9255         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9257 2001-04-06  Werner LEMBERG  <wl@gnu.org>
9259         Implement continuous underlining for nroff mode.  To do that, a new
9260         request in the ditroff language has been added: `x u N' (N is 0
9261         or 1).
9263         \X and \Y are now transparent to end-of-sentence recognition.
9265         * src/include/printer.h (printer): Add `type' parameter to `special'
9266         method.
9267         * src/libs/libdriver/printer.cc (printer::special): Updated.
9268         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9270         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9271         specials of type `p'.
9272         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9273         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9274         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9275         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9276         (glyph::order): New method.
9277         (tty_printer::add_char): Use it.
9278         (tty_printer::special): New method.
9279         (tty_printer::end_page): Implement it.
9281         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9282         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9283         to set `no_init_string'.
9284         (special_node::tprint_start): Use it.
9285         (special_node::same, special_node::copy): Updated.
9286         (special_node::ends_sentence): New method.
9287         (troff_output_file::start_special): Add parameter to include
9288         inititialization of special conditionally.
9290         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9291         * src/roff/troff/env.cc (do_underline_special): New function.
9292         (environment::set_font): Use it.
9293         (do_underline): Use it.  This was `underline()'.
9294         (underline): Call `do_underline()'.
9295         (continuous_underline): New function which calls `do_underline()'.
9296         (environment::newline): Use `do_underline_special()'.
9297         (init_env_requests): Updated.
9299         * NEWS, man/troff_out.man: Updated.
9301 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9303         * font/devutf8/R.proto: Fix code of 'shc'.
9305 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9307         Many fixes.  Diag lists can now be nested also; additionally,
9308         `-compact' and `-offset' are supported.
9310         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9311         (doc-list-have-indent-stackXXX): A new register stack.
9312         (doc-have-diag-list): Removed.
9313         (Bl): Use `doc-list-have-indent-stackXXX'.
9314         (El): Updated.
9315         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9316         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9317         (doc-set-vertical-and-indent): Ditto.
9318         (doc-next-list-depth): Removed.
9319         (doc-increment-list-stack): Updated.
9320         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9321         `doc-next-list-depth'.
9322         (doc-end-list, doc-end-column-list): Don't use
9323         `doc-increment-list-stack'.
9324         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9325         (doc-save-global-vars, doc-restore-global-vars): Updated.
9326         * tmac/doc-common: Updated.
9327         * tmac/groff_mdoc.man: Updated.
9328         * NEWS: Fix typo.
9330 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9332         * src/devices/grotty/grotty.man: Fix grammatical error.
9334 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9336         Remove .Ld from mdoc package; replace it with special handling of
9337         `...'.
9339         * tmac/doc-common: Remove `Ld' register.
9340         Uncomment `doc-volume-ds-*' strings.
9341         Remove `doc-operating-system-default'.
9342         (Os): Updated.
9343         * tmac/doc-syms (Ld): Removed.
9344         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9345         `...' specially.
9346         * NEWS: Updated.
9348         * tmac/groff_mdoc.man: Many fixes and updates.
9350 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9352         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9353         Bond <tkb@tkb.mpl.com>.
9354         * tmac/www.tmac: Save compatibility mode.
9356 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9358         * tmac/groff_mdoc.man: Many fixes.
9360 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9362         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9363         isn't recognized.
9365 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9367         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9368         diversion.  This fixes overlong tags.
9370 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9372         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9373         * tmac/doc-syms: Fix error messages.
9374         * tmac/an-old.tmac: Remove incorrect double backslashes.
9376 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9378         * tmac/Makefile.sub: Strip mdoc.local also
9379         * tmac/strip.sed: Fixed.
9381 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9383         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9384         selecting the font size.
9385         * tmac/groff_mdoc.man, NEWS: Document it.
9387 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9389         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9390         to `sv' request.
9391         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9392         argument to restore previous font family.
9393         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9395         * doc/groff.texinfo: More fixes and additions (mainly for font
9396         manipulating commands).
9398         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9399         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9400         * tmac/Makefile.sub, NEWS: Updated.
9402 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9404         Replaced mdoc implementation.  The new version is `state of the
9405         art', using almost all new features of groff 1.17 -- it won't run
9406         with older versions.
9408         * tmac/doc.tmac: Completely rewritten.
9409         * tmac/doc-common: Ditto.
9410         * tmac/doc-nroff: Ditto.
9411         * tmac/doc-ditroff: Ditto.
9412         * tmac/doc-syms: Ditto.
9413         * tmac/mdoc.local: New file.
9414         * tmac/groff_mdoc.samples.man: Replaced with ...
9415         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9416         * tmac/strip.sed: Updated.
9417         * tmac/Makefile.sub: Updated.
9418         * INSTALL: Updated.
9420         * tmac/groff_man.man: Add `man.local' to the FILES section.
9422 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9424         * doc/groff.texinfo: Added many @noindent.
9425         Replaced @end_Example -> @endExample.
9426         Added info whether registers are r/o.
9427         Many other additions and fixes.
9429 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9431         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9432         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9433         Improved @Def* macros: Now the exact syntax of request, register,
9434         and escapes is shown.
9435         Added macros for parentheses and brackets to be used in @Def*.
9436         Many fixes and improvements of the documentation.
9438 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9440         * doc/groff.texinfo: Added new index: `st' (for strings).
9441         Added macros @Defstr(x).
9442         Added macro @Example (adding @group).
9443         Other minor improvements.
9445 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9447         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9448         `rq' for requests.  `fn' is no longer used.
9449         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9450         Removed @Deffn(x).
9452         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9453         number with name of man page.
9455 2001-03-19  Larry Kollar  <kollar@alltel.net>
9457         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9458         consistency.
9460 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9462         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9463         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9464         * src/devices/grohtml/grohtml.man: Fixing typos.
9466 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9468         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9469         * tmac/groff_mwww.man: Remove .LINE macro
9470         * tmac/www.tmac (LINE): Add `.ti'.
9472         * src/devices/grohtml/post-html.cc (html_printer): New member
9473         `indent'.
9474         (html_printer::emit_raw): Use it.
9475         (html_printer::do_linelength): Ditto.
9476         (html_printer::do_pageoffset): Ditto.
9477         (html_printer::do_indentation): Ditto.
9478         (html_printer::do_tempindent): Ditto.
9479         (html_printer::do_break): Ditto.
9480         (html_printer::begin_page): Ditto.
9481         (html_printer::do_indentedparagraph): New function.
9482         (html_printer::troff_tag): Handle `.ip'.
9483         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9484         Add `<td width=...>' handling.
9485         (html_text::do_table): Add parameter.
9486         (html_text::do_indent): Updated.
9487         * src/devices/groohtml/html-text.h: Updated.
9489 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9491         Introduced simple html tables to implement indentation.
9493         * src/devices/grohtml/html.h (word, word_list): New structures.
9494         (simple_output): Use it.
9495         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9496         (html_printer): Improve indentation handling.
9497         (html_printer::emit_raw): Set `in_table' element.  Handle
9498         indentation if set.
9499         (html_printer::write_header): Move conditional downwards.
9500         Don't allow whitespace in tags.
9501         (html_printer::do_linelength): Handle line length and indentation
9502         conditionally.
9503         (html_printer::do_pageoffset): Handle indentation conditionally.
9504         (html_printer::do_indentation): Ditto.
9505         (html_printer::do_tempindent): New function member.
9506         (html_printer::do_fill): Take care of indentation.
9507         (html_printer::do_flush): Finish table.
9508         (html_printer::do_links): Ditto.
9509         (html_printer::do_break): New function for handling `.br' and `.ti'.
9510         (html_printer::troff_tag): Use it.
9511         Handle `.ti'.
9512         (html_printer::flush_globs): Fix.
9513         (html_printer::flush_page): Finish table.
9514         (html_printer::html_printer): Fix error message.  Set up
9515         `linelength'.
9516         (html_printer::add_to_sbuf): Remove special handling of character
9517         code 255.
9518         (to_unicode): Remove `stop()'.
9519         (html_printer::write_title): Cleanup.
9520         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9521         (html_printer::~html_printer): Flush text and end the line.
9522         Use `put_string()'.
9523         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9524         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9525         emission of tags.
9526         (html_text::start_tag): Disable newlines.
9527         (html_text::table_is_void): New function.
9528         (html_text::issue_table_begin): Ditto.
9529         (html_text::issue_table_end): Ditto.
9530         (html_text::push_para): Better table handling.
9531         (html_text::do_indent): New function.
9532         (html_text::do_table): Ditto.
9533         (html_text::done_table): Ditto.
9534         (html_text::do_tt): Handle PRE_TAG.
9535         (html_text::is_in_table): New function.
9536         (html_text::check_emit_text): Handle tables.
9537         (html_text::do_emittext): Use `nl()'.
9538         (html_text::do_para): Handle table.
9539         (html_text::remove_def): New function.
9540         * src/devices/grohtml/output.cc (word, word_list): Implement
9541         methods.
9542         (simple_output::end_line): Flush last word.
9543         (simple_output::simple_comment): Ditto.
9544         (simple_output::begin_comment): Recoded.
9545         (simple_output::end_comment): Ditto.
9546         (simple_output::comment_arg): Removed.
9547         (simple_output::check_newline): Improve test and flush last word.
9548         (simple_output::space_or_newline): Improved.
9549         (simple_output::write_newline): Replaced with...
9550         (simple_output::nl): This.
9551         (simple_output::put_raw_char): Flush last word.
9552         (simple_output::check_space): Removed.
9553         (simple_output::put_translated_string): Ditto.
9554         (simple_output::put_string): Simplified.
9555         (simple_output::put_number): Updated.
9556         (simple_output::put_float): Ditto.
9557         (simple_output::put_symbol): Removed.
9558         (simple_output::enable_newlines): Add `check_newline()'.
9559         (simple_output::flush_last_word): New function.
9561         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9562         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9564         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9565         * tmac/an-old.tmac (TP): Ditto.
9567 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9569         * mdate.sh: Make it POSIX compliant.
9571 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9573         Added the `return' request to end a macro immediately.  It simply
9574         pops iterators from the input stack until a macro iterator is found.
9576         * src/roff/troff/input.cc (input_iterator::is_macro,
9577         macro_iterator::is_macro): New member.
9578         (input_return_boundary): New class to signal an immediate return
9579         to while_request().
9580         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9581         New functions.
9582         (input_stack::clear): Use it.
9583         (input_stack::pop_macro): New function.
9584         (while_request): Use `is_return_boundary()'.
9585         (return_macro_request): New function.
9586         (init_input_requests): Use it.
9588         * src/roff/troff/TODO: Updated.
9589         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9591 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9593         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9594         cleanup.
9596 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9598         Make `\B' more rigid.
9600         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9601         parameter.
9602         (get_number_rigidly): New function.
9603         * src/roff/troff/input.cc (do_expr_test): Use it.
9604         * src/roff/troff/token.h: Updated.
9606         * src/roff/troff/request.h: Fix typo (init_html_request ->
9607         init_markup_request).
9609 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9611         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9612         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9613         are now `.begin', `.end', `.image'.
9615         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9616         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9617         Use add_char_to_sbuf().
9618         (to_unicode): New function.
9619         (char_translate_to_html): Changing type of `ch' parameter.
9620         Use `to_unicode()'.
9621         (html_printer::~html_printer): Comment out doctype string.
9622         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9623         instead of `.html-end'.
9624         (write_start_image): Use `.begin' and `.image' instead of
9625         `.html-begin' and `.html-image'.
9626         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9627         (html_begin): Renamed to ...
9628         (begin): This.
9629         (html_end): Renamed to ...
9630         (end): This.
9631         (html_image): Renamed to ...
9632         (image): This.
9633         (init_html_requests): Renamed to ...
9634         (init_markup_requests): This.
9635         * tmac/www.tmac: Updated.
9637 2001-02-28  Bram  <bram@avontuur.org>
9639         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9640         constructor.
9642 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9644         * doc/meref.me: Fixing some typos.
9646 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9648         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9649         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9650         * src/roff/troff/node.h: Updated.
9652 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9654         * tmac/groff_tmac.man: Fix typo.
9656 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9658         Fixing a bug which prevented proper end-of-sentence recognition
9659         between an `unformatted' box and the following text.  As a
9660         consequence, vertical line distances are no longer preserved in
9661         boxes after a call to `.unformat' -- because boxes aren't
9662         line-oriented (contrary to diversions), this doesn't make sense
9663         anyway.
9665         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9666         value.
9667         (vertical_size_node::set_unformat_flag): New method.
9668         * src/roff/troff/node.hh: Updated.
9669         * src/roff/troff/input.cc (word_space_node::reread,
9670         hmotion_node::reread): Reset `unformat' flag after usage.
9671         (unformat_macro): Append only if `set_unformat_flag()' returns
9672         non-zero.
9673         * src/roff/troff/troff.man: Updated.
9675 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9677         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9678         documentation of `asciify' and `unformat' requests.
9680 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9682         Redesigned the `unformat' request.  It is no longer connected with
9683         `asciify' but rather uses new `reread()' methods if the `unformat'
9684         flag is set.  Additionally, the handling of space characters after
9685         unformatting has been fixed so that they retain their width.
9687         * src/roff/troff/node.h (width_list): New structure to store
9688         original widths of spaces.
9689         (node): Added `unformat' member.
9690         Replaced `num_spaces' variable with `orig_width' list.
9691         * src/roff/troff/node.cc (*node::asciify,
9692         asciify_reverse_node_list): Removed `unformat_only' flag and related
9693         code.
9694         (word_space_node::asciify, word_space_node::word_space_node): Use
9695         `orig_width'.
9696         (word_space_node::~word_space_node): New destructor.
9697         (word_space_node::copy): Updated to handle `orig_width'.
9698         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9699         (*node::merge_space): Update `orig_width' list if necessary.
9700         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9701         * src/roff/troff/enc.cc (environment::space_newline): Use
9702         `width_list'.
9703         (environment::space): Added method to handle space width and
9704         sentence space width as parameters.  Use `width_list'.
9705         (environment::make_tab_node): Updated.
9706         * src/roff/troff/env.h: Updated.
9707         * src/roff/troff/input.cc (word_space_node::reread,
9708         unbreakable_space_node::reread, hmotion_node::reread): New methods
9709         to handle nodes specially if `unformat' flag is set.
9710         (do_asciify_macro): Renamed back to ...
9711         (asciify_macro): This.
9712         (unformat_macro): New implementation to simply set the `unformat'
9713         flag.
9715         * MORE.STUFF: Added more info about deroff.
9717 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9719         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9720         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9721         and `add_self()' methods to avoid hyphenation.  For example, the
9722         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9723         soft hyphen after `foo'.  Now the hyphen list is correctly
9724         `foo<ignore><ignore>bar'.
9726 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9728         * tmac/groff_tmac.man: Fix `BIR' macro.
9730 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9732         A new escape sequence `\:', inserting a zero-width break point.
9734         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9735         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9736         Implement it.
9737         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9738         method.
9739         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9740         and `asciify()' methods.
9741         * src/roff/troff/node.cc (space_node::space_node): Updated.
9742         (space_node::asciify): Handle `was_escape_colon'.
9743         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9745         Handle `\~' similar to other comparable requests.
9747         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9748         label.
9749         (token::next): Move creation of an unbreakable_space_node to...
9750         (token::add_to_node_list): Here.
9752         Fix a bug which sometimes prevented hyphenation of words connected
9753         with `\~' or `\ ' (and other escape sequences handled as
9754         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9755         (after a call to the `unformat' request).
9757         * src/roff/troff/env.h (environment::possibly_break_line,
9758         environment::hyphenate_line): Introducing `start_here' parameter.
9759         * src/roff/troff/env.cc (environment::space_newline,
9760         environment::space): Use it.
9761         (environment::possibly_break_line, environment::hyphenate_line):
9762         Implement it.
9763         * src/roff/troff/input.cc (process_input_stack): Use it.
9764         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9765         space_char_hmotion_node, overstrike_node): Add
9766         `get_hyphenation_type()' method.
9767         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9768         if `unformat_only' is active.
9770 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9772         Implemented new read-only number register `.linetabs' which
9773         returns 1 if in line-tabs mode, 0 otherwise.
9775         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9776         * src/roff/troff/env.cc (get_line_tabs): New function.
9777         (init_env_requests): Use it.
9778         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9780         * VERSION, REVISION: Changing to 1.17.0.
9782 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9784         Fixed a bug which prevented hyphenation of words which are finished
9785         with `\)'.
9787         * src/roff/troff/token.h (token): Add enum type
9788         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9789         * src/roff/troff/input.cc (token::next, token::description,
9790         get_line_arg, token::add_to_node_list, token::process): Use it.
9792 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9794         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9795         * src/roff/troff/div.cc (do_divert): Use it.
9797         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9799 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9801         Adding the `linetabs' request.  If set, tab distances are not
9802         computed relative to the input line but relative to the output line.
9804         * src/roff/troff/env.h (environment): New member `line_tabs'.
9805         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9806         (environment::environment, environment::copy): Updated.
9807         (environment::distance_to_next_tab): Use `line_tabs'.
9808         (init_env_requests): Register request.
9809         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9810         fixes.
9812 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9814         Introducing a new read-only register `.int' which is set to a
9815         positive value if the last output line is interrupted (i.e., if it
9816         contains `\c').
9818         * src/roff/troff/env.cc (init_env_requests): Add it.
9819         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9821 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9823         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9824         * src/preproc/html/pre-html.cc (findPrefix): New function which
9825         generates the troff executable name via the system prefix.
9826         * src/preproc/eqn/main.cc: Modified warning message.
9828 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9830         troff's `box' and `boxa' requests didn't preserve temporary
9831         indentation.
9833         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9834         `saved_target_text_length' members.
9835         * src/roff/troff/div.cc (do_divert): Use them.
9837         Tabs (but not yet leaders and fields) are now handled correctly by
9838         `asciify' request.
9840         * node.h (hmotion_node): Add field `was_tab'.
9841         * env.cc (environment::make_tab_node): Set it.
9842         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9844         Added new request `unformat' which will, contrary to `asciify',
9845         preserve font information after unformatting (i.e., only nodes
9846         dealing with horizontal space are converted back to input
9847         characters).
9849         * input.cc (asciify_macro): Renamed to ...
9850         (do_asciify_macro): this, having a new parameter `unformat_only'.
9851         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9852         (init_input_requests): Added `unformat'.
9853         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9854         parameter to control asciification process.
9855         * node.h (*_node::asciify): Ditto.
9856         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9858 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9860         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9862 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9864         * tmac/ps.tmac: Remove call of psold.tmac.
9865         * tmac/psold.tmac: Comment updated.
9866         * tmac/psnew.tmac: Removed since no longer needed.
9867         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9869         * font/devutf8/R.proto: Adding `shc' glyph.
9870         * font/devutf8/NOTES: Updated.
9872         * test-groff: Updated.
9874 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9876         First cut of the new html device driver.  Changes to pre-html and
9877         the new grohtml are too numerous to be documented here.
9879         Stuff related to `html' has been renamed to `html-old' and `html2'
9880         stuff has been renamed to `html' (including directories).  The new
9881         html device driver is therefore invoked as `-Thtml'.
9883         Added new `\O' escape to suppress output (needed by html driver).
9885         Added functions and code to pass info about input-level commands
9886         (`.in', `.fl', etc.) to html driver.
9888         Three new functions (.html-begin, .html-end, and .html-image) for
9889         better html handling: `html-begin' will execute the remaining line
9890         if at the outermost nesting level, increasing an internal counter.
9891         `html-end' does the same but decreases the internal counter.
9892         `html_image' puts its arguments into a special node (suppress_node)
9893         to define an image region.
9895         The `output' request has been removed.
9897         * tmac/html-tags.tmac: Removed.
9898         * tmac/arkup.tmac: Updated and renamed to ...
9899         * tmac/www.tmac: New file.
9900         * tmac/markup.tmac Updated and renamed to ...
9901         * tmac/mwww.tmac: New file.
9902         * tmac/Makefile.sub: Updated.
9903         * tmac/an-old.tmac: Updated.
9904         * tmac/eqnrc: Updated.
9905         * tmac/groff_man.man
9906         * tmac/groff_markup.man: Updated and renamed to ...
9907         * tmac/groff_mwww.man: New file.
9908         * tmac/groff_tmac.man: Updated.
9909         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9910         * tmac/html.tmac: Updated and renamed from html2.tmac.
9911         * tmac/pspic.tmac: Updated html support.
9912         * tmac/s.tmac: Added html output support.
9913         * tmac/troffrc, tmac/troffrc-end: Updated.
9915         * Makefile.in, doc/Makefile: Updated.
9916         * doc/groff.texinfo: Added info about new `\O' escape.
9917         * doc/homepage.ms: Use `MAILTO' macro.
9919         * font/devhtml/DESC.proto: Add `C' font.
9920         * font/devhtml/Makefile.sub: Updated.
9921         * font/devhtml/R.proto: Minor fixes.
9922         * font/devhtml-old/Makefile.sub: Updated.
9924         * src/devices/grohtml-old/Makefile.sub: Updated.
9926         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9927         method.
9928         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9929         graphic_start): Add `inline' parameter.  Update.
9930         (html_end_suppress, graphic_end): Update.
9932         * src/include/html-strings.h: New file.
9933         * src/include/htmlindicate.h: Comments updated.
9934         * src/include/printer.h: Updated.
9936         * src/preproc/eqn/main.cc (do_file, main): Updated.
9937         * src/preproc/pic/troff.cc (troff_output::start_picture,
9938         troff_output::finish_picture): Updated.
9939         * src/preproc/tbl/main.cc (process_input_file): Updated.
9941         * src/roff/groff/groff.cc (main): Updated.
9942         Pass device arguments to predrivers also.
9943         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9944         * src/roff/troff/env.h (environment): Updated.
9945         New elements `need_eol' and `ignore_next_eol' (for html output).
9946         * src/roff/troff/env.cc (environment::environment): Add initializers
9947         for `need_eol' and `ignore_next_eol'.
9948         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9949         functions.
9950         (point_size, fill, no_fill, center, right_justify, line_length,
9951         indent, temporary_indent, break_request, handle_tab): Use
9952         `add_html_tag()'.
9953         (set_tabs): Use `add_html_tag_tabs()'.
9954         (environment::add_html_tag): Updated.
9955         (environment::do_break): Updated.
9956         * src/roff/troff/div.cc (space_request, flush_output): Use
9957         `environment::add_html_tag()'.
9958         * src/roff/troff/input.cc: Updated.
9959         New variable `html_level' to indicate nested `html-begin' requests.
9960         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9961         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9962         `force_tprint()' method.
9963         (token::next): Handle `\O'.
9964         (do_suppress): Implement it.
9965         (html_begin, html_end, html_image): New functions.
9966         (init_output_requests): Renamed to ...
9967         (init_html_requests): this.
9968         (main): Use it.
9969         (macro::append_str, macro::append_unsigned, macro::append_int): New
9970         methods.
9971         New variable `output_low_mark_miny' to limit minimal value of y.
9972         (reset_output_registers): Use it.
9973         (output_request): Removed.
9974         (get_output_registers): New function.
9975         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9976         (*_node): Added `force_tprint()' if necessary.
9977         (special_node): New elements `tf' and `get_tfont()'.
9978         (suppress_node): New class.
9979         * src/roff/troff/node.cc:
9980         New global variables `image_no' and `suppress_start_page'.
9981         (real_output_file): New method `is_on()'.
9982         (troff_output_file): New method `start_special(tfont)'.
9983         (troff_output_file::really_print_line): Use `tprint' conditionally.
9984         (real_output_file::print_line): Updated.
9985         (real_output_file::on): Updated.
9986         (*_node): Added `force_tprint()'.
9987         (special_node::special_node): Initializer updated.
9988         (special_node::same, special_node::copy, special_node::tprint_start):
9989         Updated.
9990         (get_reg_int, get_reg_str): New functions.
9991         (suppress_node::*): New methods.
9992         New global variables last_position, last_image_filename;
9993         (min): New inline function.
9994         * src/roff/troff/reg.h, src/roff/troff/request.h,
9995         src/roff/troff/troff.h: Updated.
9997 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9999         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10000         documentation of `asciify' request.
10002 2001-01-12  Werner LEMBERG  <wl@gnu.org>
10004         * src/roff/troff/input.cc: Move definition of special characters
10005         like `ESCAPE_TILDE' to ...
10006         * src/roff/troff/input.h: New file.
10007         * src/roff/troff/Makefile.sub (HDRS): Add it.
10009         Extending the .asciify request to `unformat' space characters also.
10011         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10012         to count input space characters.
10013         Update constructors to take care of it.
10014         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10015         `ESCAPE_SPACE' instead of normal space.
10016         (word_space_node::asciify): New method.
10017         (unbreakable_space_node::asciify): New method.
10018         (word_space_node::merge_space): New method.
10019         * src/roff/troff/env.cc (environment::space_newline,
10020         environment::space): Add code to initialize `num_spaces' (using the
10021         constructor of `word_space_node').
10022         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10023         Document it.
10025 2001-01-09  Werner LEMBERG  <wl@gnu.org>
10027         * man/groff_char.man: Use table header traps only conditionally.
10029 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
10031         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10033 2001-01-08  Werner LEMBERG  <wl@gnu.org>
10035         Introducing the `box' and `boxa' requests which are similar to
10036         `di' resp. `da' but omitting a partially filled line (which is
10037         restored after ending the diversion).
10039         * src/roff/troff/div.h (diversion): Add elements to save partially
10040         filled line.
10041         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10042         partially filled line.
10043         (divert, divert_append): Updated.
10044         (box, box_append): New functions.
10045         (init_div_requests): Use them.
10046         * src/roff/troff/env.h (environment): do_divert() is now a friend.
10047         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10049         * doc/groff.texinfo: Fix documentation of `lf' request.
10051 2000-12-25  Werner LEMBERG  <wl@gnu.org>
10053         * src/roff/troff/troff.man, NEWS: Document `writem' request.
10055 2000-12-21  Werner LEMBERG  <wl@gnu.org>
10057         Ignore `ss' request if in compatibility mode.
10059         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10060         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10061         * src/roff/troff/env.cc (space_size): Use it.
10063         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10064         `ss' request in nroff mode.
10066         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10067         changes.
10069 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
10071         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10073 2000-12-13  Werner LEMBERG  <wl@gnu.org>
10075         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10076         * src/preproc/eqn/neqn.man: Small fixes and additions.
10078 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
10080         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10081         Fixing typo.
10083         * src/preproc/eqn/neqn.man: New file.
10085         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10086         negative' warning.
10088         * tmac/e.tmac: Add `T&' macro.
10089         Fix `indent cannot be negative' warning.
10090         * tmac/s.tmac: Fix `indent cannot be negative' warning.
10092 2000-12-07  Werner LEMBERG  <wl@gnu.org>
10094         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10096 2000-12-06  Werner LEMBERG  <wl@gnu.org>
10098         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10099         `alloca' symbol .
10101         * MORE.STUFF: Added info about deroff for djgpp.
10103         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10104         documentation of -rcR switch.
10106 2000-12-03  Werner LEMBERG  <wl@gnu.org>
10108         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10109         if -rcR=1 (which is now the default in nroff mode), a single, very
10110         long page is created instead of multiple pages: All `ne' and `wh'
10111         requests are put into conditionals; a new macro `an-end' is added to
10112         be called with `em'.
10114         Some other minor cleanups.
10116         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10118 2000-12-02  Werner LEMBERG  <wl@gnu.org>
10120         Fixing a bug which prevented hyphenation in words followed
10121         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10123         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10124         Adding possibly_break_line().
10125         * src/roff/troff/env.h (environment): Make possibly_break_line()
10126         public.
10128         Make `\~' usable in .tr request.
10130         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10131         (token): Add stretchable_space().
10132         * src/roff/troff/input.cc (token::next, token::delimiter,
10133         token::description, process_input_stack, do_translate,
10134         add_to_node_list, token::process): Use it.
10135         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10136         for adjusting the space.
10137         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
10138         for stretchable space.
10139         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10140         (make_node): Add code for stretchable space.
10141         * src/roff/troff/env.cc (environment::add_char): Use it.
10142         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10143         (get_copy, token::next, transparent_translate, asciify): Use it.
10145         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10146         doc/groff.texinfo: Updated.
10147         * man/groff.man: Small reorderings.
10149 2000-11-23  Werner LEMBERG  <wl@gnu.org>
10151         * NEWS: Fixes.
10152         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10153         option.
10154         * src/roff/troff/input.cc (main): Add `config_macro_path' and
10155         `safer_macro_path' to -M option.
10156         * src/roff/troff/troff.man: Fixes.
10158 2000-11-22  Werner LEMBERG  <wl@gnu.org>
10160         Use safer path (except for config files) if -U isn't specified.  Add
10161         a special macro path (without home and current directory) for config
10162         files.  Add home directory to unsafe path for consistency.  Don't
10163         include the home directory in the font path.
10165         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10166         `macro_path'.
10167         * src/include/macropath.h: Add `config_macrp_path'.
10168         * src/libs/libgroff/fontfile.cc: Fix font path.
10169         * src/roff/troff/input.cc (process_startup_file): Use
10170         `config_macro_path'.
10171         (main): Select unsafe path if -U is given.
10173         * src/preproc/eqn/main.cc (main): Fixing search path for
10174         configuration file.
10175         * src/preproc/eqn/eqn.man: Updated.
10177         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10178         Updated.
10180         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10181         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10182         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10183         src/devices/grotty/grotty.man: Updated.
10185         * Makefile.in: Fix comments.
10187 2000-11-17  Werner LEMBERG  <wl@gnu.org>
10189         * tmac/safer.tmac: Empty file added (again) for compatibility
10190         reasons.
10191         * tmac/Makefile.sub: Updated.
10193 2000-11-16  Werner LEMBERG  <wl@gnu.org>
10195         * src/devices/grodvi/dvi.cc (main),
10196         src/devices/grohtml2/post-html.cc (main),
10197         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10198         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10199         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10200         (main), src/preproc/html2/pre-html.cc (main),
10201         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10202         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10203         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10204         (main), src/utils/hpftodit/hpftodit.cc (main),
10205         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10206         (main), src/utils/lookbib/lookbib.cc (main),
10207         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10208         (main): Use stdout for -v.
10209         * src/roff/groff/groff.cc (run_commands),
10210         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10211         to make direct printing to stdout possible.
10212         * src/roff/groff/pipeline.h: Updated.
10214         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10215         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10216         * src/utils/afmtodit/afmtodit.man: Updated.
10218         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10219         (version): New function.
10220         (usage): Updated.
10221         * src/utils/addftinfo/addftinfo.man: Updated.
10223         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10224         Fixing copyright dates.
10226         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10227         replacing it.
10229         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10230         version_string.
10232         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10234 2000-11-15  Werner LEMBERG  <wl@gnu.org>
10236         In all programs, make -v return immediately with exit status 0 to
10237         be compliant with the GNU standard.
10239         * src/devices/grodvi/dvi.cc (main),
10240         src/devices/grohtml2/post-html.cc (main),
10241         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10242         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10243         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10244         (main), src/preproc/html2/pre-html.cc (main),
10245         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10246         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10247         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10248         (main): Implement it.
10249         * NEWS: Updated.
10251         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
10252         and postprocessors to the -v option.
10254         * src/roff/grog/grog.pl: Implement -v.
10255         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10256         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10258         * src/roff/nroff/nroff.sh: Implement -v.
10259         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10260         * src/roff/nroff/nroff.man: Updated.
10261         
10262         * src/preproc/eqn/main.cc (main): Fix comment typo.
10264         * MORE.STUFF: Added info about djgpp port of grap.
10266 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10268         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10269         mode (or rather, implemented non-compatibility mode).
10270         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10272         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10273         replacing it -- we don't find gxditview otherwise.
10274         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10276         * src/preproc/pic/depend: Removed.  Unnecessary.
10278         Implemented dummy keyword `solid' in pic for compatibility with
10279         AT&T pic.
10281         * lex.cc (lookup_keyword): Added `solid'.
10282         * pic.y: Added SOLID with dummy rule.
10283         * pic.cc, pic_tab.h: Regenerated.
10284         * doc/pic.ms: Updated.
10286 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10288         For security reasons, don't use the current directory but the home
10289         directory while searching and scanning troffrc and troffrc-end.
10290         Similarly, replace the current directory with the home directory
10291         in the font path.
10293         * Makefile.in (fontpath, tmacpath): Remove current directory.
10295         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10296         two parameters `add_home' and `add_current'.
10297         (search_path::~search_path, search_path::command_line_dir,
10298         search_path::open_file): Remove tests for `dirs' being zero.
10299         * src/include/searchpath.h: Adjust.
10300         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10301         `safer_macro_path'.
10302         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10304         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10305         * src/roff/troff/input.cc: Use `mac_path', initialized with
10306         `macro_path'.
10307         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10308         * src/roff/troff/env.cc: Use `mac_path'.
10310         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10312         * NEWS, man/roff.man, src/roff/troff/troff.man,
10313         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10314         Updated.
10316 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10318         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10320         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10321         * configure.in: Fix typo in comment.
10322         * configure: Regenerated.
10324         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10325         copyright dates.
10327 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10329         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10331         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10332         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10333         $(systemtmacdir).
10334         Use @libdir@.
10335         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10336         * tmac/Makefile.sub (install_data): Create
10337         $(systemtmacdir) and $(localtmacdir).
10338         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10339         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10340         NEWS, doc/groff.texinfo: Updated and minor fixes.
10342         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10343         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10344         $(systemtmacdir) since the wrapper files are platform-dependent.
10346 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10348         * doc/groff.texinfo: Fix typo.
10350 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10352         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10353           tmac.doc.old -> doc-old.tmac
10354           tmac.an.old  -> an-old.tmac
10356         * tmac/tmac.*: Moved to ...
10357         * tmac/*.tmac: this.
10358         * tmac/man.local: Fix comment.
10359         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10360         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10361         Added some `FILES' sections.  More use of @...@ directives.  Other
10362         minor updates.
10363         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10364         * doc/homepage.ms, doc/groff.texinfo: Updated.
10365         * man/groff.man, man/roff.man: Updated.
10366         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10367         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10368         src/devices/grotty/grotty.man: Updated.
10369         * src/preproc/pic/pic.man: Updated.
10370         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10371         instead of -mdoc.old.
10372         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10373         * src/roff/nroff/nroff.man: Updated.
10374         * NEWS: Updated.
10376         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10378         * tmac/mm.diff: Removed -- it has no use now since the mm package
10379         is part of groff.
10381         * tmac/*: Removed trailing spaces.
10383         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10384         the tmac subdirectory also).
10386         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10387         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10388         stuff since it is no longer needed.
10390         * README, PROBLEMS: Updated.
10392 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10394         Invert current behaviour: Search first FOOBAR.tmac, then
10395         tmac.FOOBAR.
10397         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10398         (open_mac_file, macro_source): Implement it.
10399         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10400         doc/groff.texinfo, NEWS: Document it.
10402         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10403         Small documentation improvements.
10405         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10406         subdirectory also).
10408         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10410 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10412         Add local tmac directory (groff/site-tmac).
10414         * Makefile.in: Add $(localtmacdir).
10415         (uninstall_dirs): Add $(localtmacdir).
10416         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10417         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10418         in $(localtmacdir).  Create $(localtmacdir).
10419         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10420         Updated and minor fixes.
10422         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10424         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10426 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10428         Move hyphen.us to tmac directory.
10430         * src/roff/troff/hyphen.us: Removed.
10431         * src/tmac/hyphen.us: Added.
10432         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10434         Change installation structure for data files from .../groff/... to
10435         .../groff/<version><revision>/... to be conform with other GNU
10436         programs.
10438         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10439         doc/Makefile: Implement it.
10440         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10441         * configure: Updated.
10442         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10443         * NEWS: Document it.
10444         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10445         @MACRODIR@ instead of hard-coded directories.
10447 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10449         Implement $GROFF_BIN_PATH environment variable (which defaults to
10450         $bindir) used for child programs of groff and similar wrappers.
10452         * gendefs.sh: Improve documentation.
10453         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10454         src/preproc/eqn/Makefile.sub (neqn),
10455         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10456         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10457         $GROFF_BIN_PATH.
10458         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10459         $GROFF_PATH__ (the latter for communication with troff).
10460         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10461         set.
10462         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10463         doc/groff.texinfo: Document it.
10465         * doc/groff.texinfo: Improve documentation of troff's -a option.
10467 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10469         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10470         non-intrusive eol marker.
10471         (troff_output_file::determine_line_limits): New function.
10472         (troff_output_file::draw): Use it.
10473         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10474         output_pending_lines() instead of output_line().
10475         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10476         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10477         createImage): Small fixes.
10478         
10479 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10481         Replace tmac.safer with a real secure solution.
10483         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10484         system_request, pipe_output): Disable requests if in safer mode.
10485         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10486         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10487         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10488         doc/groff.texinfo, src/roff/groff/groff.man,
10489         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10491         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10492         (resource_manager::output_prolog): Replace setenv() with putenv().
10494 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10496         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10497         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10498         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10499         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10500         compilation errors with some compilers.  It seems that this code
10501         is no longer necessary -- if yes, it is easy to add some #ifdef's
10502         for that particular old-fashioned compiler.
10504         * MORE.STUFF: Added info about Meta-tbl.
10506         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10508 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10510         Adding a new escape sequence \B'...': If the string between
10511         the delimiters is a valid numeric expression, return the character
10512         `1', and `0' otherwise.  This is an analogon to \A.
10514         * src/roff/troff/input.cc (do_expr_test): Implement it.
10515         (token::next): Use it.
10516         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10518         * tmac/tmac.trace: Made independent from escape character.
10520 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10522         Adding a new request .dei: define indirect.  The first and second
10523         parameter of .dei are taken from string registers instead directly;
10524         this very special request is needed to make tmac.trace independent
10525         from the escape character (which might even be disabled).
10527         * src/roff/troff/input.cc (do_define_macro): Implement it.
10528         (define_macro_indirect): New function.
10529         (init_input_requests): Use it.
10531         Adding two requests .ecs and .ecr: Save and restore the escape
10532         character.  These two requests are needed to make tmac.trace
10533         independent from the escape character (which might even be
10534         disabled).
10536         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10537         Implement it.
10538         (init_input_requests): Use it.
10540         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10542 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10544         Adding a new option -P and new environment variable GROPS_PROLOGUE
10545         to grops, selecting a different prologue file (minor modifications
10546         by WL).
10548         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10549         src/devices/grops/ps.cc (main): Implement it.
10550         * src/devices/grops/grops.man, NEWS: Document it.
10552 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10554         * INSTALL: Add info about selecting paper format.
10556 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10558         * src/roff/troff/input.cc (main): Fixing compiler warning.
10559         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10560         strings.h from the former to the latter.
10561         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10562         stuff from the former to the latter.
10564 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10566         Implementing two new requests .tm1 and .tmc: The former is similar
10567         to .tm but can output leading spaces; its syntax is similar to
10568         defining a string, i.e., a `"' can be used to mark the beginning of
10569         the string to be written to stderr: `.tm1 " test'.  The latter is
10570         similar to .tm1 but doesn't write out a final newline character.
10572         * src/roff/troff/input.cc (terminal1, terminal_continue,
10573         do_terminal): New functions.
10574         (init_input_requests): Use them.
10575         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10577 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10579         * tmac/groff_mdoc.samples.man: Small fixes.
10581 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10583         * tmac/groff_mdoc.man: Fixing typo.
10585 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10587         Implementing a .nop request which does nothing.
10589         * src/roff/troff/input.cc (nop_request): New function.
10590         (init_input_requests): Use it.
10591         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10593 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10595         * doc/groff.texinfo: Added some comments.
10597 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10599         * src/roff/troff/TODO: Updated.
10601 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10603         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10605 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10607         * font/devps/generate/Makefile (SHELL): Define explicitly to
10608         "/bin/sh", for non-Unix platforms.
10609         (extraclean): Use a more portable "" quoting instead of a
10610         backslash (which doesn't work on DOS/Windows).
10611         
10612         * font/devlj4/generate/Makefile (extraclean): Ditto.
10614         * font/devdvi/generate/Makefile (extraclean): Ditto.
10616 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10618         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10619         src/roff/troff/troff.man: Document Eli's latest changes.
10621 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10623         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10624         macro file names of the form NAME.tmac as well as tmac.NAME.
10626 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10628         * src/include/posix.h: Remove definition of FILENAME_MAX.
10630         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10631         `sys_fatal' and `stop' function().
10633         * test-groff: Updated.
10635 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10637         Added the new troff command .output <arg> to suppress output (while
10638         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10639         registers (for passing the output dimensions to the output device).
10641         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10642         parameter.
10643         * src/roff/troff/node.h, src/roff/troff/node.cc
10644         (troff_output_file::really_print_line,
10645         ascii_output_file::really_print_line,
10646         supress_output_file::really_print_line): Use `width' parameter.
10647         (troff_output_file::really_on, troff_output_file::really_off,
10648         output_file::on, output_file::off, real_output_file::on,
10649         real_output_file::off, real_output_file::really_on,
10650         real_output_file::really_off): New functions.
10651         (real_output_file:public output_file): New variable `output_on'.
10652         (real_output_file::begin_page, real_output_file::copy_file,
10653         real_output_file::transparent_char, real_output_file::print_line):
10654         Use it.
10655         (real_output_file::print_line): Use check_output_limits.
10656         * src/roff/troff/reg.h, src/roff/troff/request.h,
10657         src/roff/troff/input.cc (assign_registers): New function to remove
10658         two `goto's.
10659         (do_ps_file): Use it.
10660         (check_output_limits, reset_output_registers, output_request,
10661         init_output_requests): New functions.
10662         (init_input_requests): Updated.
10664         Added new grohtml2 device and html2 preprocessor (coding
10665         not yet finished) which will eventually replace grohtml.
10667         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10668         Updated.
10669         * src/include/htmlindicate.h, src/include/htmlindicate
10670         (html_begin_suppress, html_end_suppress): New functions.
10671         * src/preproc/tbl/main.cc: Use it.
10672         * src/roff/groff/groff.cc: Add support for html2 device (which will
10673         automatically invoke the html2 preprocessor).
10674         * src/roff/troff/input.cc (is_html2): New variable.
10675         * src/roff/troff/troff.h, src/roff/troff/env.h,
10676         src/roff/troff/env.cc (environment::add_html_tag): New function
10677         (uses `is_html2').
10678         (environment::do_break): Use it.
10679         * font/devhtml2/*: New files.
10680         * src/devices/grohtml2: New device.
10681         * src/preproc/html2: New preprocessor.
10682         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10684 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10686         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10688 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10690         * src/include/lib.h: Provide a fix for IRIX to not include
10691         groff-getopt.h.
10693 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10695         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10696         since some non-GNU sed programs can't handle null regexps.
10697         * configure, src/preproc/eqn/Makefile.sub,
10698         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10700         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10701         bug (string.h and strings.h are both needed according to latest
10702         POSIX standard).
10704         * MORE.STUFF: Added info about unroff and troffcvt.
10706 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10708         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10709         used before -ms.
10711         * tmac/tmac.man.old: Remove unused number register.
10713         * tmac.doc: Minor documentation fix.
10715 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10717         * src/roff/groff/pipeline.c (is_system_shell):
10718         Fix typo: "monocased_shell" no longer exists.
10720 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10722         Remove FILENAME_MAX limits.
10724         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10725         that the argument length is less than FILENAME_MAX.
10726         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10727         Use struct hack to allocate and free file name.
10728         (struct xtmpfile_list): fname is now part of the structure,
10729         not a pointer to another string.
10731 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10733         * src/include/posix.h: Add a default value for FILENAME_MAX.
10735 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10737         Add support for new BSD-style man pages (with ".Dd" instead of
10738         ".TH"), so that "groff -man" understands both styles, even
10739         when running "groff -man" on a host whose system man page
10740         macros don't support ".Dd".
10742         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10743         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10744         in case the system man macros don't define Dd or TH.
10746         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10747         * tmac/tmac.an: New one-line file.
10748         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10750 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10752         * src/roff/troff/troff.man: Fixing typos.
10754 Version 1.16.1 released
10755 =======================
10757 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10759         Preparing release 1.16.1.
10761         * REVISION: Revision number set to 1.
10762         * MORE.STUFF: Added info about port to DOS.
10763         * NEWS, win32-diffs: Updated.
10765         * src/include/nonposix.h: Remove first line -- this file is used
10766         in C also.
10768         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10769         link to it.
10771 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10773         * doc/texinfo.tex: Update to latest version.
10775 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10777         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10778         commands that fail.  Don't assume that "export a=b" is valid shell
10779         syntax.  This is needed for Solaris 2.5.1.
10781         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10782         comment about missing Solaris headers.
10784         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10786 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10788         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10789         SET_BINARY().
10791         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10793         * win32-diffs: Updated.
10794         * README.WIN32: Added CRs to make all Windows editors happy.
10796         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10797         src/roff/groff/pipeline.c).
10799 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10801         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10802         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10804 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10806         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10807         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10808         are binary files.
10809         (main): Support non-Posix systems with several different styles of
10810         slash characters in file names.
10812         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10813         (main) [SET_BINARY]: Switch stdin into binary mode.
10815         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10816         (main): Support file names with several possible slash-type
10817         characters, as given by DIR_SEPS[] in nonposix.h.
10818         (main) [__MSDOS__]: If renaming the temporary index file fails
10819         because it has more than one dot in its trunk, replace the dot
10820         with an underscore and try again.
10821         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10822         Newline.
10823         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10825         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10826         (File::File): Open the input file in binary mode.  Strip CR
10827         characters from each CR-LF pair.
10828         (xbasename): Support file names with several possible slash-type
10829         characters, as given by DIR_SEPS[] in nonposix.h.
10831         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10833         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10834         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10835         [!_POSIX_VERSION]: Define for traditional Unix systems.
10836         (real_output_file::real_output_file): Remove the MSVC-specific
10837         call to popen, use instead POPEN_WT, appropriately defined on
10838         nonposix.h.  #include nonposix.h.
10839         (real_output_file::~real_output_file): Remove the MSVC-specific
10840         call to pclose, a suitable macro is now defined on nonposix.h.
10841         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10842         and WEXITSTATUS instead of assuming traditional Unix
10843         interpretation of the status returned by pclose.
10845         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10846         call to popen, use POPEN_RT instead (appropriately defined on
10847         nonposix.h).  #include nonposix.h.
10848         (ps_bbox_request): Open the PostScript file in binary mode.
10849         Close the file after processing it.
10850         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10851         nonposix.h.
10853         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10854         A version of run_pipeline that doesn't use `fork'.
10855         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10856         (system_shell_name, system_shell_dash_c)
10857         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10858         the ugliness of testing DOS/Windows file names for equality, and
10859         support both stock shells and ports of Unix shells.
10861         * src/roff/groff/groff.cc: #include nonposix.h.
10862         (BSHELL): Definition moved to nonposix.h.
10863         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10864         instead of a literal "-c".
10865         (xbasename): Support file names with several possible slash-type
10866         characters, as given by DIR_SEPS[] in nonposix.h.
10867         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10868         of literal strings.
10870         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10871         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10873         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10874         pic_tab.h.
10876         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10878         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10879         eqn_tab.h.
10881         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10883         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10884         P_tmpdir is defined, use it instead of the literal "/tmp".
10885         (remove_tmp_files, add_tmp_file): New functions.
10886         (xtmpfile): Record temporary files and register an atexit function
10887         to delete them explicitly, instead of relying on the OS to do
10888         that, which doesn't work on non-Unix systems.
10890         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10891         (search_path::search_path): Use PATH_SEP instead of a literal
10892         colon.
10893         (search_path::command_line_dir): Ditto.
10894         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10895         to support non-Posix systems.
10897         * src/libs/libbib/search.cc: #include nonposix.h.
10898         (search_list::add_file): Open the file in binary mode.
10900         * src/libs/libbib/linear.cc: #include nonposix.h.
10901         (file_buffer::load): Remove \r characters preceding \n from the
10902         loaded buffer.
10904         * src/libs/libbib/index.cc: #include nonposix.h.
10905         (make_index_search_item): Open index_filename in O_BINARY mode.
10906         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10907         characters before \n characters.
10908         (index_search_item::check_files): Open files in binary mode.
10909         (index_search_item::munge_filename): Support DOS-style file names
10910         with backslashes and drive letters, use IS_ABSOLUTE.
10912         * src/devices/grops/ps.cc: #include nonposix.h.
10913         (main) [SET_BINARY]: Switch stdout to binary mode.
10915         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10916         (main) [SET_BINARY]: Switch stdout to binary mode.
10918         * src/devices/grolbp/lbp.cc: #include nonposix.h
10919         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10921         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10922         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10923         nonposix.h).
10924         (main) [SET_BINARY]: Switch stdout to binary mode.
10925         [_MSC_VER]: Remove an explicit call to _setmode.
10927         * src/include/nonposix.h: New file.
10929         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10930         operation when building with DJGPP.
10931         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10932         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10933         ENVSETUP.
10935         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10936         MS-DOS.
10937         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10938         etc. can include a semi-colon on DOS/Windows.
10939         (depend.temp): Use depend1.temp instead of depend.temp1, to
10940         prevent files from overerwiting each other on 8+3 filesystems.
10942         * gendef.sh (t): Change definition to work with DOS/Windows.
10944         doc/groff.texinfo: Apart of some typo corrections, I also changed
10945         some index entris, to make them more non-ambiguous, and also put
10946         @ignore around some parts that are not yet written, to allow the
10947         Info output be readable.
10949 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10951         Replaced specific checks for function declarations with a generic
10952         routine taken from GNU bfd.
10954         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10955         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10956         * configure.in: Use it.
10957         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10958         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10959         src/roff/groff/groff.cc: Use it.
10960         * Makefile.in, configure: Updated.
10962 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10964         * src/devides/grolbp/lbp.h: Removed unused variables.
10966 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10968         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10969         strncasecmp().
10971 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10973         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10974         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10975         * configure.in: Use it.
10976         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10977         * configure, Makefile.in: Updated.
10979         * configure.in: Add test for strncasecmp().
10980         * src/include/lib.h: Use it.
10982 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10984         * src/preproc/grn/Makefile.sub: Add MLIB.
10986 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10988         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10990 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10992         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10994         * PROBLEMS: Small update.
10996         * src/devices/grolbp/lbp.cc: Various small fixes.
10998 2000-05-28  Keith Thompson  <kst@sdsc.edu>
11000         * src/roff/nroff/nroff.sh: Fix main loop syntax.
11002         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11004 2000-05-25  Werner LEMBERG  <wl@gnu.org>
11006         * man/roff.man: Removed unused macro.
11008 2000-05-24  Werner LEMBERG  <wl@gnu.org>
11010         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
11011         This is needed e.g. if you do
11012         `make distclean; ./configure; make dist'.
11014 Version 1.16 released
11015 =====================
11017 2000-05-23  Werner LEMBERG  <wl@gnu.org>
11019         Adding font CWI (constant width italic) to devdvi.
11021         * font/devdvi/CWI: New file.
11022         * font/devdvi/generate/Makefile: Add generating rule.
11023         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11024         tmac/tmac.dvi: Use it.
11025         * NEWS: Announce it.
11027         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11028         * font/devlj4/generate/Makefile: Cosmetic changes only.
11030         * man/groff.man: Removed most of the redundant description of
11031         special characters (which is in groff_char.man).  Added font
11032         translation CB->CR for devdvi.  Other minor fixes.
11034         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11035         (registered) symbols.
11037 2000-05-22  Werner LEMBERG  <wl@gnu.org>
11039         * doc/Makefile: Added rule for creating info files.
11041         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
11042         AMS font metrics.
11043         * font/devdvi/generate/Makefile: Fixed dependencies.
11045         * font/devps/*: Regenerated.  Heavy changes for Bookman and
11046         NewCentury Schoolbook!
11047         * font/devps/generate/afmname: Will now run with GNU awk.
11048         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11049         * font/devps/generate/Makefile: Cosmetic changes only.
11051 2000-05-21  Werner LEMBERG  <wl@gnu.org>
11053         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11054         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
11055         `.SS' now produces a heading with a smaller size than `.SH'. 
11056         Completely formatted.
11057         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11059         * man/groff.man: Improved table appearance.  Use of `eo' request
11060         to reduce number of doubled backslashes in macro definitions.
11061         Replacing `\e' with `\(rs'.  Other minor fixes.
11063         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11064         to have correct line number.
11066         * INSTALL: Small improvement.
11068 2000-05-20  Bernd Warken  <bwarken@mayn.de>
11070         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11071         WL).
11073 2000-05-19  Bernd Warken  <bwarken@mayn.de>
11075         * man/groff.man: Complete update (with a lot of corrections by WL).
11077 2000-05-18  Werner LEMBERG  <wl@gnu.org>
11079         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11081         * font/*/*: Implement it.
11082         * man/groff_char.man, NEWS: Document it.
11084         * src/include/unix.h: Removed.  It isn't used.
11086         * doc/groff.texinfo: Slight improvements.
11088 2000-05-17  Werner LEMBERG  <wl@gnu.org>
11090         * README, win32-diffs: Small fixes and improvements.
11092 2000-05-16  Werner LEMBERG  <wl@gnu.org>
11094         * FDL: New file (the Free Documentation License version 1.1).
11096         * doc/groff.texinfo: Added many start-up values for gtroff.
11097         Some structural improvements of the source code.
11099 2000-05-15  Werner LEMBERG  <wl@gnu.org>
11101         * src/roff/troff/input.cc: Added small comment about troffrc-end.
11102         * src/roff/troff/troff.man: Added info about troffrc-end.
11104 2000-05-14  Werner LEMBERG  <wl@gnu.org>
11106         * Makefile.in (EXTRADIRS): Fix typos.
11107         (dist): Handle deletion of old .tar.gz file correctly.
11108         (DISTDIRS): Include all tty output devices.
11110         * doc/groff.texinfo: Adding more cross references; countless other
11111         fixes.
11113 2000-05-13  Werner LEMBERG  <wl@gnu.org>
11115         * MORE.STUFF: Added Robert Marks's utilities.
11117 2000-05-12  Werner LEMBERG  <wl@gnu.org>
11119         Added win32 port contributed by Blake McBride
11120         <blake@florida-software.com>.
11122         * README.WIN32, win32-diffs: New files.
11123         * NEWS: Updated.
11125         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11126         (tmove, tmove2): Added parentheses to avoid compiler warnings.
11127         (change): Removed unused variables.
11129         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11130         (savebounds): Changed return value from `int' to `void'.
11131         * src/preproc/grn/hdb.cc: Ditto.
11133         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11134         final backslash in comment to avoid compiler warning.
11136         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11138         * doc/groff.texinfo: More fixes.
11140 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
11142         * tmac/tmac.doc: Documentation fix.
11144 2000-05-11  Werner LEMBERG  <wl@gnu.org>
11146         * doc/groff.texinfo: Reading the source code shows up a lot of
11147         omissions and incorrect data...  More conversion to @Deffn macros.
11149 2000-05-10  Werner LEMBERG  <wl@gnu.org>
11151         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11152         dependency.
11154         * src/roff/troff/request.h: Removing unused `no_break_flag'.
11156 2000-05-09  Werner LEMBERG  <wl@gnu.org>
11158         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11159         improvements.
11161         * doc/groff.texinfo: Extended history section.  More conversion to
11162         @Deffn macros.  More .tr documentation.
11164 2000-05-07  Werner LEMBERG  <wl@gnu.org>
11166         * doc/groff.texinfo: Completed tab section.  Added info about
11167         fields.
11169 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
11171         * PROBLEMS: Describe configure script fix for OS/390 Unix.
11173 2000-05-05  Werner LEMBERG  <wl@gnu.org>
11175         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11176         LaTeX 2e).
11177         * NEWS: Document it.
11179         * man/troff.man: Minor optical improvements.
11181 2000-05-03  Werner LEMBERG  <wl@gnu.org>
11183         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11185         * font/*/*: Implement it.
11186         * man/groff_char.man, NEWS: Document it.
11188 2000-05-02  Werner LEMBERG  <wl@gnu.org>
11190         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11191         expansion.
11192         * NEWS: Document the three new man pages.
11194         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11195         * configure: Updated.
11197         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11199 2000-05-01  Werner LEMBERG  <wl@gnu.org>
11201         Added grap support to grog.
11203         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11204         * src/roff/grog/grog.man: Document it.
11206         * doc/groff.texinfo, NEWS: Add info about grap support.
11208         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11209         (with slight fixes by me).
11211         * tmac/groff_tmac.man: New file documenting tmac mechanism.
11212         * tmac/Makefile.sub: Add groff_tmac.man.
11213         * man/roff.man: New file giving overview of roff system.
11214         * man/troff.man: A short reference of troff.
11215         * man/Makefile.sub: Add roff.man and troff.man.
11217 2000-04-30  Werner LEMBERG  <wl@gnu.org>
11219         Added grap support to groff.
11221         * src/roff/groff/groff.cc: Implement it.
11222         * src/roff/groff/groff.man: Document it.
11224         * src/devices/grotty/grotty.man: Add cp1047 device.
11225         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11226         Ditto.
11227         * src/roff/groff/groff.man: Ditto.
11228         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11229         * doc/groff.texinfo: Ditto.
11231         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11232         for cp1047.
11234 2000-04-29  Werner LEMBERG  <wl@gnu.org>
11236         * man/groff_char.man: Add `pc' glyph.
11237         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11238         * tmac/tmac.tty: Add `pc' glyph.
11239         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
11240         we use cp1047 output device.
11242         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11243         there are still hardcoded latin1->unicode values in utf8's font
11244         definition files.
11245         * configure: Updated.
11246         * NEWS: Minor clarification.  Updated.
11248         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
11249         Unix.
11251 2000-04-28  Werner LEMBERG  <wl@gnu.org>
11253         Adding EBCDIC code page 1047.
11255         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11256         font/devcp1047/DESC.proto: New files.
11258         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11259         either ascii/latin1 or cp1047.
11260         * Makefile.in: Use it.
11261         * configure: Updated.
11263         Replacing and/or adding `md' (mathdot) glyph with `pc'
11264         (periodcentered) in all text fonts.
11266         * font/*/*: Change it.
11268 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11270         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11272         * configure.in: Add check for strings.h.
11273         * src/include/driver.h: Use HAVE_STRINGS_H.
11274         * src/devices/grolbp/lpb.cc: Remove string.h.
11276         * src/include/groff-getopt.h: New file.  It will be used instead of
11277         getopt.h (to be included in lib.h) to avoid endless problems with
11278         picky C++ compilers.
11279         * src/include/lib.h: Use groff-getopt.h.
11280         * src/include/Makefile.sub: Updated.
11282         * configure: Updated.
11283         * Makefile.in: Updated.
11285         * NEWS: Mention EBCDIC support.
11287 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11289         * TODO: Some additions.
11291 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11293         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11294         of mso request.
11296 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11298         * src/roff/troff/troff.man: Minor fixes.
11300 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11302         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11303         `.T' string register and the incompatible definition of the `.T'
11304         number register (compared to Unix troff).
11306         * man/groff_char.man: Add some missing characters.
11307         * font/devutf8/NOTES: Update.
11309 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11311         * src/include/htmlindicate.h, src/include/lib.h,
11312         src/include/posix.h: Fix copyright.
11314         * src/include/Makefile.sub: Update.
11316 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11318         * src/roff/troff/input.cc (input_char_description): Removing
11319         superfluous space char.
11321         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11323         * doc/groff.texinfo: Document EBCDIC.
11325 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11327         Introducing `shc' as the glyph name for the soft hyphen character.
11329         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11330         font/devlatin1/R.proto: Use it.
11332         * NEWS: Updated.
11334 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11336         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11337         dependency on ASCII order.
11339 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11341         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11342         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11344         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11345         to increase portability.
11347 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11349         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11350         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11351         the generic `\n' if under OS/390 Unix.
11353         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11355         * configure: Regenerated.
11357 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11359         * doc/groff.texinfo: More conversions to @Deffn.
11361 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11363         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11364         with `:'.
11366         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11368 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11370         * doc/groff.texinfo: More conversions to @Deffn.
11372 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11374         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11375         Updated to latest version (glibc 2.1.3).
11377 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11379         * doc/Makefile (clean): Include more index files.
11380         Add rule texinfo->dvi.
11382 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11384         * doc/groff.texinfo: Added new index `op' for operators.  More
11385         info on end of sentence characters.  More use of @Deffn.
11387 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11389         * */*.man: Adding a note that a whitespace can be inserted between
11390         a command line option and its parameter -- we are using GNU getopt.
11392         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11394 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11396         Correct anachronism of calling the man macro file with `-man'
11397         instead of `-m man' etc.
11399         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11400         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11401         load tmac.<package>.
11403         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11405         * NEWS: Updated.
11407         * doc/groff.texinfo: Updated.
11409         * tmac/groff_man.man: Copyright added.
11411 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11413         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11414         typeset the request resp. escape name with a tt font -- due to a
11415         bug in texinfo.tex it is necessary to use the `-e' switch with
11416         texi2dvi.
11418         Improving info about usage of groff units.
11420         Other minor fixes.
11422 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11424         * doc/groff.texinfo: Added section about man macro package
11425         (I've basically taken groff_man.man).  Introducing new indices `ma'
11426         for macros/strings and `gl' for glyph names.  Other minor fixes.
11428         * tmac/groff_man.man: Fixed some typos.
11430 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11432         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11433         Other minor fixes.
11435         * doc/texinfo.tex: New file.
11437 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11439         * doc/groff.texinfo: Improved section on number registers.  Other
11440         minor updates.
11442 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11444         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11445         synopsis.
11447         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11448         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11449         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11450         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11452         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11454         * src/roff/grog/grog.man: Updated copyright date.
11456 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11458         * configure.in: Added test for strdup.
11460         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11461         is available.
11463         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11465         Other minor fixes.
11467 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11469         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11471 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11473         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11474         compilers silent.
11475         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11476         * src/include/lib.h: Remove some spaces.
11478 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11480         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11481         initializers from arguments (some compilers don't like this).
11483 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11485         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11486         used by pic and eqn to tell grohtml where the graphic regions start
11487         and end.
11488         * src/libs/libgroff/Makefile.sub: Use it.
11489         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11490         graphic_start() and graphic_end() from htmlindicate.cc.
11492 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11494         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11495         * tmac/groff_man.man: More fixes.
11497 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11499         * doc/Makefile: Added texput.log to the `clean' target.
11500         * doc/groff.texinfo: Added info about delimiters for escapes.
11502 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11504         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11505         other graphic formats.
11507 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11509         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11510         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11511         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11512         files.
11514 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11516         * doc/groff.texinfo: Spelling fixes.
11518 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11520         * tmac/groff_man.man: Completely revised to cover everything in
11521         tmac.an.
11523         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11524         Other minor fixings.
11525         * src/roff/troff/env.cc (environment_copy): Improve error message and
11526         fix itoa->i_to_a.
11527         * src/roff/troff/TODO: Updated.
11529         * doc/Makefile: Bug fixes -- this is still provisional, though...
11531         * tmac/eqnrc: Small fixes.
11533 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11535         Adding a request `evc' to copy environments.
11537         * src/roff/troff/env.cc (environment::copy, environment_copy):
11538         Implement it.
11539         * src/roff/troff/env.h: Add prototype.
11541 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11543         Adding strsep() -- Solaris 8 doesn't have it.
11545         * configure.in: Test it.
11546         * src/devices/grolbp/lbp.cc: Add code.
11548 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11550         * src/roff/troff/div.cc (macro_diversion::output,
11551         top_level_diversion::output): Fixing an incompatibility with
11552         original troff: \x'0' updates the .a register also.  Thanks to
11553         <Andries.Brouwer@cwi.nl> for pointing this out.
11554         * doc/groff.texinfo: Document it.
11556         * Makefile.in: Create Makefile.dep if necessary before calling the
11557         submake process to avoid warning about nonexistent file.
11559         * NEWS, PROJECTS: Updated.
11561 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11563         * tmac/troffrc: Add tmac.lbp.
11565 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11567         * tmac/tmac.lbp: New file.
11568         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11569         command.
11571 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11573         * Makefile.in: Fixing $(subdir).
11575         * README, NEWS: Small fixes.
11577         * test-groff: Adding path to grolbp.
11579         * configure.in: The (new) file src/xditview/Imakefile.in will be
11580         also configured -- it is now possible to build gxditview in a
11581         directory different from $srcdir.
11583 2000-03-02  Blake McBride  <blake@florida-software.com>
11585         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11587         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11589 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11591         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11592         files.
11594 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11596         Adding GNU getopt to the groff distribution.
11598         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11599         New files.
11600         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11601         * aclocal.a4: Remove GROFF_GETOPT function.
11602         * configure.in, Makefile.in, PROBLEMS: Update.
11603         * src/include/lib.h: Replace getopt tests with getopt.h.
11604         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11606         * doc/groff.texinfo: Further checking/updating.  Adding more index
11607         entries.
11609         * man/groff_out.man: Fix nroff mode activation (for emacs).
11610         * man/groff_font.man: Add missing ligature.
11612 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11614         * doc/groff.texinfo: Further checking/updating.  Adding more index
11615         entries.
11617         * src/devices/grolbp/grolbp.man: Added a comment line at the
11618         beginning of the file (similar to shell scripts) which indicates
11619         that `tbl' should be used as a preprocessor.
11621 2000-02-27  Blake McBride  <blake@florida-software.com>
11623         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11624         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11626         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11627         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11628         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11629         src/include/lib.h, src/libs/libgroff/errarg.cc,
11630         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11631         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11632         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11633         src/roff/troff/div.cc, src/roff/troff/env.cc,
11634         src/roff/troff/input.cc, src/roff/troff/node.cc,
11635         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11636         if_to_a() to avoid name clashes.
11637         * src/include/posix.h: Don't use unistd.h.
11638         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11639         clause for integrating non-Unix xtmpfile() code.
11640         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11641         structure; use "rt" for popen() in pipe_source(); add getpid()
11642         dummy function.
11643         * src/roff/troff/node.cc: Use special versions of popen() in
11644         real_output_file() and pclose() in ~real_output_file().
11646 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11648         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11649         LBP-8 series laser printers).  This code has been contributed by
11650         Francisco Andrés Verdú <pandres@dragonet.es>.
11652         * src/devices/grolbp/*: The grolbp output device.
11653         * font/devlpb/*: The font description files.
11654         * Makefile.in: Add grolpb and devlbp subdirectories.
11656         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11657         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11658         typographic fixes.
11660         * doc/groff.texinfo: Further checking/updating.  Adding more index
11661         entries.
11663         * NEWS: Updated.
11665         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11667         * man/groff_font.man: Adding info about obsolete DESC keywords.
11668         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11669         keywords.
11671 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11673         * src/preproc/grn/grn.man: Added info about the gremlin file format
11674         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11676 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11678         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11679         friends to be non-integer.
11681         * src/preproc/grn/grn.man: Document it.
11683         * doc/groff.texinfo: Further checking/updating.  Adding more index
11684         entries.
11686 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11688         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11689         line thicknesses to be integer multiples of this value.
11691         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11692         corresponding code doesn't work (yet).
11694         * doc/groff.texinfo: Further checking/updating.  Adding more index
11695         entries.
11697 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11699         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11700         specify line thickness instead of base units.  The new default
11701         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11702         thick lines respectively.
11704         Removed unused variable `prevval'.
11706         * src/preproc/grn/grn.man: Updated.
11708 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11710         * src/preproc/grn/main.cc: Slight formatting.
11712         * src/roff/groff/groff.man: Formatting fix.
11713         * src/preproc/grn/grn.man: Ditto.
11715         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11717         * doc/groff.texinfo: Further checking/updating.
11719 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11721         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11723         * test-groff: Added grn subdir to path.
11725         * doc/groff.texinfo: Some restructing and other small improvements.
11727         * src/roff/groff/groff.cc (help): Fixed info string.
11729 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11731         * doc/meref.me: Fix description of .GS request.
11733         * src/roff/troff/troff.man: Fixing typo.
11735         Adding the `grn' preprocessor for gremlin graphic files.
11737         * src/preproc/grn/*: This is the Berkeley distribution written by
11738         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11739         Senderowicz and Werner Lemberg.
11741         * doc/grnexampl.{me,g}: A sample for grn.
11743         * Makefile.in: Added subdirectory entry for grn.
11745         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11746         called with the switch `-g'.
11748         * src/roff/groff/groff.man: Updated.
11750         * src/roff/grog/grog.{man,pl,sh}: Updated.
11752         * NEWS: Updated.
11754 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11756         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11757         parametrically polymorphic.
11759         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11760         and the alterations to xtmpfile.
11761         xtmpfile can be requested to return the filename created
11762         and asked not to unlink the temp file.  The default behaviour
11763         if parameters are absent is exactly the same as before.
11765 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11767         A new request `length' is available which returns the length of a
11768         string in a number register:
11770         * src/roff/troff/input.cc (length_macro): Implement it.
11771         * src/roff/troff/input.cc (init_input_requests): Register it.
11773 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11775         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11776         of the `substring' request.
11778         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11779         request.
11781         * src/roff/troff/TODO, NEWS: Updated.
11783 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11785         * src/roff/groff/groff.man: Added an example.
11787 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11789         I've considerably modified the directory structure of the
11790         distribution to get a more vertical layout.  For example, the number
11791         of top level directories has been reduced from 42 to 6.
11793         As a consequence, many changes, especially to the makefiles, were
11794         necessary:
11796         * The makefile variables `top_builddir' and `top_srcdir' have been
11797         introduced.  Virtually all relative paths have been replaced with
11798         absolute ones using these two variables.
11800         * Dependencies (in the files `Makefile.dep') are no longer part of
11801         the distribution.  Instead, they are created during a `make install'
11802         in the build directory.
11804         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11805         make `top_srcdir' and `top_builddir' absolute.
11807         Some other changes:
11809         * Man pages now depend on the files `VERSION' and `REVISION'.
11811         * The added shell script `mkinstalldirs' will replace `mkdir' in
11812         almost all cases.
11814         * VERSION: Version number increased to 1.16.
11816 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11818         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11820         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11821         (after an update of the mm stuff).
11823         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11825 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11827         The .psbb request will now also accept Mac PS images (i.e. using LF
11828         as the EOL character).
11830         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11831         (with slight modifications).
11832         * troff/input.cc (do_ps_file): Use it.
11834         * test-groff: Add grohtml and grolj4 output devices to PATH.
11836 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11838         * NEWS, MORE.STUFF: Updated.
11840 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11842         Add the `srand' command to pic.
11844         * pic/lex.cc, pic/pic.y: Implement it.
11845         * pic/pic.man: Document it.
11846         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11848 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11850         Add a new request `.psbb'.  This does exactly what the external
11851         program psbb did.  It scans a PostScript image file for a
11852         %%BoundingBox comment and extracts the bounding box values (in
11853         PostScript units) which are then stored in the four new (read-only)
11854         number registers `llx', `lly', `urx', and `ury'.
11856         This will allow the usage of the .PSPIC macro without worrying
11857         about unsafe behaviour of groff, i.e., it will work without the
11858         `-U' switch of groff.
11860         * troff/input.cc: Implement it.
11861         * tmac/tmac.pspic: Use it.
11862         * troff/troff.man, grops/grops.man, NEWS: Document it.
11863         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11865         This is bloody C code simply adapted from psbb.c!  Any improvements
11866         welcome.
11868 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11870         * man/groff_font.man: Minor clarifications.
11872         * NEWS: Updated.
11874 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11876         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11878 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11880         * man/groff_font.man: Brought up to date regarding tcommand
11881         extensions.
11882         * libgroff/font.cc: Handle everything after `--' as a comment
11883         in the font files.
11884         * devps/*: Added comment delimiter inside devps font files.
11886 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11888         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11889         \fC...\fP (which now works as expected).
11891         * troff/troff.man: Fix typo.
11893 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11895         Completed the pass_filenames implementation in troff.
11897         * libdriver/input.cc: Will read the new `F' tcommand.
11898         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11899         * troff/input.cc: Use it.
11901 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11903         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11904         font will now be updated even if an invalid font is selected.
11906 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11908         * doc/homepage.ms: Updated for new tmac.arkup.
11910         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11912         * tmac/tmac.arkup: Cleanup.
11914         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11916         Removed obsolete .LINK macro completely.
11918         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11919         will be immediately appended to the second argument (to be used with
11920         punctuation, for example).
11922         Disabled .CDFTP macro temporarily for security reasons.
11924         * tmac/groff_markup.man: Complete revision for latest changes in
11925         tmac.arkup -- note that it does not yet format correctly with
11926         grohtml :-(
11928 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11930         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11931         * devutf8/R.proto: Add mappings for wp, lh, rh.
11932         * devutf8/NOTES: Updated.
11934 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11936         * doc/groff.texinfo: Updated version/copyright info.
11938 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11940         Added support for two new directives in device descriptions:
11941         `pass_filenames' (to pass the input file name to the output device)
11942         and `use_charnames_in_special' (to support e.g. accented characters
11943         in the `X' request).
11945         * include/font.h, troff/charinfo.h: Declare it.
11947         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11949         * devhtml/DESC: Use it.
11951         * troff/input.cc: New function encoded_char.
11953         * troff/token.h: Add test for `specialness'.
11955 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11957         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11958         mistake from the list of files to be installed.
11960 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11962         * README: Added info how to apply patches.
11964 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11966         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11968 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11970         * troff/input.cc: Add support for troffrc-end.
11972         * tbl/main.cc: Altered to issue table-start and table-end special
11973         characters if using the html device.
11975         * devhtml/*: Modified font files to incorporate html encoding of
11976         characters.
11978         * tmac/groff_markup.man: New file documenting tmac.arkup.
11980         * tmac/troffrc-end: New file.  This is invoked after all user
11981         specified macros.  Currently used by the html device to include
11982         tmac.html.  Thus no need for users to specify -mhtml anymore.
11984         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11985         (MAN7): Add groff_markup.man.
11987         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11989         * tmac/troffrc: tmac.arkup will now be called for the html device.
11991         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11992         extra device specific information about fonts.
11994         * doc/homepage.ms: New file.  It is an example how an HTML home page
11995         could look like with grohtml.
11997         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11999 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
12001         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
12002         of Im, Re.
12004         * devutf8/NOTES: Updated.
12006 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
12008         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12009         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12010         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12011         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12012         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12013         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12014         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12015         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12016         warnings.
12018         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12020 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
12022         grolj4: Paper size will be searched case-insensitively.
12024         * include/lib.h: Add check for strcasecmp().
12025         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12026         * configure.in: Check for strcasecmp().
12028 2000-01-11  Werner LEMBERG  <wl@gnu.org>
12030         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12031         `REVISION'.
12033 2000-01-10  Werner LEMBERG  <wl@gnu.org>
12035         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12036         revision scheme.
12038         Add a new read-only register, `.Y', which contains the groff
12039         revision.
12041         * troff/input.cc (init_input_requests): Define it.
12042         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12043         * doc/groff.texinfo, troff/troff.man: Document it.
12045         * libgroff/Makefile.sub (version.cc): Add definition of
12046         `Version_string[]', consisting of `<major>.<minor>.<revision>'
12047         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12048         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12049         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12050         troff/input.cc, pfbtops/pfbtops.c: Use it.
12052 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
12054         Add a revision scheme to the groff package.
12056         * REVISION: New file.
12057         * libgroff/Makefile.sub (version.cc): Use it to define
12058         `revision_string[]'.
12059         * grops/psrm.cc: Use revision_string (converted to an unsigned
12060         integer) in constructor of resource_manager.
12062 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
12064         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12065         files.
12066         * Makefile.in (DEVDIRS): Add devutf8.
12067         * grotty/tty.cc: Include device.h.
12068         (glyph): Change type of `code' to `unsigned int'.
12069         (tty_printer): New field is_utf8.  Constructor takes device argument.
12070         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12071         (tty_printer::add_char): Change type of first arg to `unsigned int'.
12072         (tty_printer::put_char): New function.
12073         (tty_printer::end_page): Use put_char() instead of ::putchar().
12074         (make_printer): Pass device to tty_printer constructor.
12075         * nroff.sh: Determine default device by calling 'locale'.  As a
12076         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12077         Recognize UTF-8 locales.
12078         * tmac/eqnrc: Recognize utf8 like latin1.
12079         * tmac/troffrc: Device utf8 needs tmac.tty.
12081 2000-01-07  Werner LEMBERG  <wl@gnu.org>
12083         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12085 2000-01-07  Paul Eggert  <eggert@twinsun.com>
12087         Add a new predefined writeable number register, `year',
12088         which contains the current year.
12090         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12091         * tmac/tmac.s: Use it.
12092         * troff/input.cc (init_registers): Initialize it.
12094 2000-01-06  Werner LEMBERG  <wl@gnu.org>
12096         * PROBLEMS: Fixed typo.
12098 2000-01-04  Paul Eggert  <eggert@twinsun.com>
12100         * PROBLEMS: Add Y2k advice for the yr number register.
12102 2000-01-03  Paul Eggert  <eggert@twinsun.com>
12104         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12106 2000-01-02  Werner LEMBERG  <wl@gnu.org>
12108         * tmac/tmac.arkup: Slight modification of macros to provide better
12109         appearance for non-HTML formats.
12111 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
12113         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12114         does not automatically translate to malloc(n) on all OSes
12115         (e.g., SunOS) so do it explicitly.  Also, check the returned
12116         value.
12118 2000-01-01  Werner LEMBERG  <wl@gnu.org>
12120         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
12122         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12123         expects this variable
12125 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
12127         * doc/Makefile: Added instructions to create HTML and text
12128         versions of some files.
12130 1999-12-31  Werner LEMBERG  <wl@gnu.org>
12132         * Updated INSTALL.gen.
12134         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12135         better resp. correctly with non-HTML devices.
12137 Version 1.15 released
12138 =====================
12140 1999-12-28  Werner LEMBERG  <wl@gnu.org>
12142         * NEWS, VERSION: Changed to 1.15
12144 1999-12-27  Paul Eggert  <eggert@twinsun.com>
12146         * nroff/nroff.man: -S is safer, not safe.
12148         * groff/groff.cc (main): Use `safer', not `safe', in variable
12149         names.  This does not change the behavior.
12151         * troff/input.cc (main): Likewise.
12153         * nroff/nroff.sh: Likewise.
12155         * troff/input.cc (prepend_string): New function.
12156         (main): Prepend -msafer, so that we check macro libraries for
12157         safety.
12159         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12161 Version 1.14 released
12162 =====================
12164 1999-12-26  Werner LEMBERG  <wl@gnu.org>
12166         * NEWS, VERSION: Changed to 1.14.
12168 1999-12-24  Werner LEMBERG  <wl@gnu.org>
12170         * refer/refer.cc: Fixing the last fix.
12172 Version 1.13 released
12173 =====================
12175 1999-12-23  Werner LEMBERG  <wl@gnu.org>
12177         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12178         number disappear.
12180         * NEWS: Updated.
12182         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12184         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12185         document conventions, the version number must be a real.
12187 Version 1.12.1 released
12188 =======================
12190 1999-12-22  Werner LEMBERG  <wl@gnu.org>
12192         * VERSION: Changed to 1.12.1.
12194 1999-12-22  Alan Rooks  <arooks@istar.ca>
12196         * refer/refer.cc (do_file): Slight modification to satisfy the
12197         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12198         UnixWare 7.1.
12200 1999-12-20  Werner LEMBERG  <wl@gnu.org>
12202         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12203         notices.
12205         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12206         list of unsafe requests.
12208         * pic/pic.man: Fixed a typo.
12210         * man/groff_out.man: Fixed a typo.
12212 1999-12-18  Werner LEMBERG  <wl@gnu.org>
12214         * Makefile.in: Doc fixes.
12216 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
12218         * groff/groff.cc: Missing `U' option added to getopt().
12220         * troff/troff.man: Missing `U' option added to synopsis.
12222 Version 1.12 released
12223 =====================
12225 1999-12-14  Werner LEMBERG  <wl@gnu.org>
12227         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12228         to the synopsis.
12230         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12231         with the more appropriate terms `safer' and `unsafe'.
12233         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12234         sys_nerr and sys_errlist[].
12236         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12238         * pic/pic.y, pic/pic.cc: Added check for fmod().
12240 1999-12-13  Werner LEMBERG  <wl@gnu.org>
12242         * VERSION: Changed to 1.12.
12244         Here some patches from various sources; most of them taken from
12245         the Debian distribution.
12247         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12248         tmac/Makefile.sub: New files copied directly from the NetBSD
12249         distribution.  Probably, some additional adaptation later on is
12250         necessary...
12252         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12253         of unsafe requests.
12255         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12256         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12257         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
12258         (`-S') is now the default.
12260         * README, NEWS: Updated.
12262 1999-12-09  Werner LEMBERG  <wl@gnu.org>
12264         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12266         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12268 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12270         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12271         grief than relief today.  Additionally, it is against the GNU
12272         coding standards.
12274         * configure: Recreated.
12276 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12278         * configure.in: Added GROFF_LIBM.
12280         * configure: Recreated.
12282         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12283         necessary.
12285         * Makefile.in: Added definition of $(LIBM).
12287         * Makefile.comm (LIBM): Removed.
12289         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12291 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12293         * doc/Makefile: Added rule for generation pic.html.
12295         (clean): Files produced by grohtml will be removed also.
12297         * doc/pic.ms: Small fix.
12299         * tmac/tmac.html: Fixed suppression of headers.
12301 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12303         * tmac/tmac.html: Fixing horizontal arrows.
12305         Turning off hyphenation.
12307         * tmac/tmac.an: Improved support for grohtml; better indentation,
12308         no footers/headers.
12310 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12312         * tmac/tmac.arkup: Added CDFTP macro
12314         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12315         macros.
12317         * tmac/troffrc: Some additions for HTML stuff.
12319 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12321         * tmac/tmac.html: Small changes.
12323 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12325         * doc/groff.texinfo: Minor fixes.
12327 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12329         * devhtml/TR: Changed spacewidth to 3.
12331         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12333         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12335         * tmac/tmac.arkup: New file.
12337         * grohtml/ChangeLog: New file.
12339 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12341         * doc/groff.texinfo (Common Features): Added Copying chapter.
12342         Changed format to @smallbook.
12344 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12346         * NEWS: Added info about groff.texinfo.
12348         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12349         warning messages.
12351 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12353         * groff/groff.man: More updates.
12355 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12357         * doc/groff.texinfo: New file.  This manual is still very
12358         rudimentary.  It has been originally contributed by Trent
12359         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12360         additions by me.
12362         * INSTALL: Added information about the `doc' subdir
12364         * troff/troff.man: Minor fixes.
12366         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12367         reordered options.
12369         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12371         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12372         also, otherwise it is included itself in another call of `make
12373         dist'.
12375         * groff/groff.cc (synopsis): Removed superfluous space.
12377         * PROJECTS, PROBLEMS, NEWS: Updated.
12379         * VERSION: Updated to 1.12beta.
12381         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12383         * README: Updated: Included documentation about CVS repository,
12384         mailing lists, and daily snapshots.
12386         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12388 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12390         * tmac/tmac.an: If the tag didn't fit into the space that the
12391         macro `TP' specifies, the rest of the tag went into the space for
12392         the next line.
12394 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12396         * grolj4/lj4.cc: Added duplex printing (option `-d').
12398         * grolj4/grolj4.man: Document duplex printing.
12400 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12402         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12403         non-GNUish sed programs.
12405         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12406         definition.
12408         * configure.in (LIBS): Added `-lc'
12410         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12412         * pic/tex.cc (solid_arc): Casting M_PI to double.
12414         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12416         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12417         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12418         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12420         * groff/groff_man.man: New file.  This manual page was originally
12421         written for the Debian GNU/Linux system by Susan G. Kleinmann
12422         <sgk@debian.org>.
12424         * eqn/list.cc (list_box::compute_metrics,
12425         list_box::compute_sublist_width): Removed variable declaration to
12426         avoid shadowing warnings.
12428         * grops/psrm.cc (resource_manager::process_file): Ditto.
12430         * tfmtodit/tfmtodit.cc (main): Ditto.
12432         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12433         to avoid shadowing warnings.
12435         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12436         shadowing loop variable.
12438         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12440 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12442         New grohtml frontend to convert groff input to html.
12444         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12446         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12448         * tmac/eqnrc: Added html device.
12450         * tmac/tmac.html: New file.
12452         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12453         (troff_output::start_picture, troff_output::finish_picture),
12454         tbl/main.cc (process_input_file):
12455         Surrounded output with `graphics_start' and `graphics_end' so that
12456         the html driver can identify non-text portions.
12458         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12459         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12460         grotty/tty.ps (tty_printer::set_char): Additional parameter
12461         `name'.
12463         * include/printer.h: Class printer: New function
12464         set_char_and_width; new variables (is_char_named, is_named_set,
12465         named_command, named_char_s, named_char_n) to hold information
12466         about named characters -- needed by the html driver.
12468         * libdriver/printer.cc (printer::set_ascii_char,
12469         printer::set_special_char): Use set_char_and_width.
12471         * devhtml/*: New device files for html driver.
12473         * grohtml/*: New driver grohtml.
12475 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12477         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12478         default strings.
12480 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12482         * libgroff/string.cc (search): Small fix to test against NULL
12483         pointer.
12485 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12487         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12488         \b'abc') were stacked in reverse order when processed in a
12489         diversion.
12491         * troff/node.h: Added `*last' to struct `node' to make the above
12492         fix work.
12494         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12495         The default scale for the 'f' and 't' graphics functions were 'm'
12496         rather than 'u' (i.e., no scaling).
12498 1999-09-11  Peter Miller  <peterm@jna.com.au>
12500         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12501         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12502         defining include paths.
12504         * soelim/soelim.cc (include_path_append): New function.
12506 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12508         * tbl/main.cc (process_options): Unix (at least Documenter's
12509         Workbench) tbl allows arbitrary non-alpha characters between
12510         options.
12512 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12514         Y2k fixes.  Don't assume that the current year precedes 2000.
12516         * doc/meref.me: Add \n(y2, \n(y4.
12518         * tmac/doc-common (Yr): New number register.
12519         (Dd): Don't assume current year precedes 2000.
12521         * tmac/tmac.e (td): Likewise.
12522         (y2, y4): New number registers.
12524         * pic/pic.man: Update reference for pic paper to May, 1991
12525         version.
12527 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12529         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12530         Removed quotation marks which prevented correct expansion of
12531         $(tmac_wrap).
12533         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12535 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12537         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12538         `config.cache'.
12540         * Removed configure.old.
12542 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12544         * VERSION: Updated to 1.11.1
12546 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12548         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12550         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12551         added quotations around $(tmac_wrap) to avoid syntax error if
12552         variable is empty.
12554         * configure: Newly generated using autoconf 2.13.
12556         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12558 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12560         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12561         doc/Makefile. doc/pic.ms, groff/groff.man:
12562         Prepare for 1.11 release.  No code changes.
12563         Documentation for pic added (doc/pic.ms).
12565 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12567         * Version 1.10 released.
12569 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12571         * afmtodit/afmtodit.pl: Avoid comment on first line.
12573 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12575         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12576         * configure.in: Call it.
12578         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12579         (distfiles): Doesn't depend on config.log or config.cache.
12581 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12583         * grog/grog.sh: Use print "" rather than print in END rule.
12585 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12587         * tbl/main.cc (process_data): Don't give error for excess data
12588         entries that are comments.
12590 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12592         * tbl/main.cc (process_data): Fix case where new for-scope rules
12593         silently change meaning of code.
12595 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12597         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12598         of non-zero hyphenation codes.
12600 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12602         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12604 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12606         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12608 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12610         * tmac/tmac.andoc: Make it work in compatibility mode.
12612         * refer/token.h (token_info::is_range_sep): New function.
12613         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12614         * refer/ref.cc (reference::output): More sophisticated check for
12615         multiple pages.
12617         * devps/prologue.ps (MANUAL): New procedure.
12618         * grops/ps.cc (main): New -m option.
12619         (usage): Include -m.
12620         (ps_printer::~ps_printer): Implement -m.
12622         * aclocal.m4 (GROFF_G): New macro.
12623         * configure.in: Call it.
12624         * Makefile.in (g): Provided by configure.
12626         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12628         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12629         translations.
12631         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12632         (tmac_m, tmac_s): Deleted.
12633         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12634         tmac_s_prefix): New variables.
12635         (MDEFINES): Change accordingly.
12636         * Makefile.comm (.man.n): Use new TMAC_* variables.
12637         * configure.in (GROFF_TMAC): Call.
12638         * aclocal.m4 (GROFF_TMAC): Define.
12639         * tmac/Makefile.sub (stamp_wrap): New target.
12640         (install_data, uninstall_sub): Handle macro wrapping.
12642 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12644         * tbl/main.cc (main): Ignore -T option.
12646 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12648         * devlj4/generate/special.map: Add definition of \(nb.
12650         * tmac/tmac.dvi: Add definition of \(nb.
12652         * troff/dictionary.c (dictionary::dictionary): association::v gets
12653         initialized by association::association.
12655         * tmac/Makefile.sub: Avoid using temporary files when installing.
12657         * troff/env.cc (environment::set_font): Make bad font number a
12658         warning.
12660         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12662         * Makefile.in (datadir): Use share rather than lib.
12664         * groff/groff.cc (basename): Rename to xbasename.
12666 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12668         * Makefile (CCLIBS): Don't use.
12669         * Makefile.ccpg: Likewise.
12671         * acgroff.m4: Rename to...
12672         * aclocal.m4: Modify extensively for autoconf 2.
12673         * configure.in: Likewise.
12674         * Makefile.in: Likewise.
12676         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12677         defined.
12678         (xstrsignal): Check for definition of NSIG. Conditionalize
12679         on SYS_SIGLIST_DECLARED.  Make return type const.
12681 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12683         * troff/input.cc (interpolate_macro): Rephrase missing space
12684         warning.
12686 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12688         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12689         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12690         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12691         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12692         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12693         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12694         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12695         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12696         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12697         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12698         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12699         Fix 'for' scoping.
12701 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12703         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12704         string_iterator.
12705         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12706         file.
12707         (macro_iterator::macro_iterator): Add additional argument.
12709 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12711         * troff/div.cc (vertical_size::vertical_size): In place of integer
12712         specifying line spacing use cunits specifying post vertical
12713         space.
12714         (macro_diversion::output, top_level_diversion::output): Likewise.
12715         * troff/div.h: Change declarations accordingly.
12716         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12717         field.
12718         (pending_output_line::pending_output_line,
12719         pending_output_line::output, environment::output,
12720         environment::output_line, environment::output_title,
12721         environment::hyphenate_line):  In place of
12722         integer specifying line spacing use cunits specifying post vertical
12723         space.
12724         (environment::environment): Add post_vertical_spacing and
12725         prev_post_vertical_spacing arguments.
12726         (environment::get_post_vertical_spacing): New function.
12727         (environment::total_post_vertical_spacing): New function.
12728         (environment::post_vertical_spacing): New function.
12729         (init_env_requests): Initialize pvs request and .pvs register.
12730         * troff/env.h: Change declarations.
12732 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12734         * tmac/tmac.pspic: Immediately remove the temporary file.
12736 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12738         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12739         height is specified.
12741 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12743         * tbl/table.c (struct vertical rule, class table_entry): Use int
12744         not short for start_row and end_row.
12746 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12748         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12749         functions.
12750         (diverted_space_node::reread, process_input_stack): Call
12751         trapping_blank_line() rather than blank_line().
12752         (init_input_requests): Bind "blm" to blank_line_macro().
12754         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12756 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12758         * troff/env.cc (environment::possibly_break_line): Require that
12759         width total excluding width of final space node be greater than
12760         the target text length.
12762 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12764         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12766 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12768         * troff/node.cc (charinfo_node): New class.
12769         (glyph_node, composite_node): Derive from charinfo_node.  Change
12770         member functions accordingly.
12772 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12774         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12776 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12778         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12780         * devps/generate/textmap (notsubset): Add.
12782         * tmac/tmac.a4: New file.
12784 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12786         * pic/main.cc (had_parse_error): New variable.
12787         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12788         returns non-zero.
12789         (main): Return 1 if had_parse_error is true.
12791 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12793         * grolj4/lj4.cc (main): Avoid use of strtoul.
12795 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12797         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12798         iso_8859_1 or $LESSCHARSET is latin1.
12800 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12802         * hpftodit: New directory.
12803         * Makefile.in (CCPROGDIRS): Add hpftodit.
12804         * devlj4/generate: New directory.
12806 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12808         * configure.in: Don't use AC_VFORK.
12809         * groff/pipeline.c (run_pipeline): Use fork() always.
12811 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12813         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12815         * Makefile.in (CCPROGDIRS): Add grolj4.
12816         (DEVDIRS): Add devlj4.
12817         * grolj4, devlj4: New directories.
12818         * tmac/troffrc: Handle lj4.
12819         * tmac/tmac.lj4: New file.
12821 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12823         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12825 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12827         * troff/input.cc (do_if_request): At end of second string, switch
12828         environments before getting next token.
12830 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12832         * devps/psstrip.sed: Split rule that strips whitespace on either
12833         side of delimiters.
12835 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12837         * troff/node.h (font_family::make_definition): Add return value to
12838         declaration.  * troff/symbol.h (symbol::operator==,
12839         symbol::operator!=): Likewise.
12841 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12843         * groff/groff.cc (main, help, synopsis): Handle -S.
12844         (possible_command::insert_arg): New function.
12846         * tmac/tmac.safer: New file.
12847         * tmac/msafer.man: New file.
12848         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12850 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12852         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12853         * pic/pic.y (placeless_element): Avoid unsafe operations if
12854         `safer_flag' is set.
12855         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12857 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12859         * eqn/lex.cc (get_token): Put call to add_context() in block to
12860         work around Sun C++ 4.0 bug.
12862         * include/stringclass.h (operator +): Use ?: instead of `if' to
12863         work around Sun C++ 4.0 bug.
12865 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12867         * tbl/main.cc (process_format): Accept - as a synonym for the _
12868         key letter.
12870         * libbib/index.cc (minus_one): Don't declare as const.
12872 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12874         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12876 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12878         * troff/input.cc (write_macro_request): New function.
12879         (init_input_requests): Bind write_macro_request to writem.
12881 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12883         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12884         equation.
12886         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12888         * tmac/tmac.s (@TS): Renamed from TS.
12889         (TS): Call LP then TS again.
12890         (cov*ab-init): Alias @TS to TS.
12892         * tmac/tmac.s: Allow QP or RS to initialize.
12894         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12895         Move initializations of PS and LL here.
12896         (par@init): Don't initialize HY.  Avoid changing environment 0.
12897         (par*env-init): Don't all par@reset.
12899 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12901         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12903 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12905         * Makefile.in (MDEFINES): Add LDFLAGS.
12906         (LDFLAGS): Add definition line.
12908 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12910         * troff/input.cc (get_optional_char): Split off error check into...
12911         (check_missing_character): New function.
12912         * troff/token.h: Declare it.
12913         * troff/env.cc (margin_character): Don't call get_optional_char.
12914         Only call tok.next() after making the node.
12916         * include/lib.h (getopt): Make 2nd argument char *const *.
12918 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12920         * nroff/conftest.sh: Deleted.
12922 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12924         * pic/make-dos-dist: Deleted.
12926 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12928         * devps/psstrip.sed: Strip comments before stripping trailing
12929         white space.
12931 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12933         * Version 1.09 released.
12935 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12937         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12939 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12941         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12943 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12945         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12946         about returning without a value.
12948         * troff/charinfo.h (charinfo::get_special_translation): Cast
12949         TRANSLATE_NONE to int.
12951         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12952         test.  Fix test so that it works with n unsigned.
12954         * pic/pic.y (defaults_table): Fully bracket initializer.
12955         * pic/lex.cc (lookup_keyword): Likewise.
12956         * eqn/lex.cc (token_table, def_table): Likewise.
12957         * eqn/box.cc (param_table): Likewise.
12958         * troff/input.cc (warning_table): Likewise.
12959         * libgroff/font.cc (table): Likewise.
12960         * grops/ps.cc (ps_printer::special): Likewise.
12961         * grops/psrm.cc (resource_manager::process_file): Likewise.
12962         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12963         * refer/command.cc (command_table): Likewise.
12964         * addftinfo/addftinfo.cc (param_table): Likewise.
12966         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12967         about temp's being unused.
12968         (unused): New function.
12970         * groff/pipeline.cc: Declare c_fatal.
12972         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12973         uchar.
12975         * libbib/index.cc (index_search_item::load): Prevent compiler
12976         warnings about fd_closer's being unused.
12977         (unused): New function.
12979 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12981         * troff/input.cc (copy_mode_error): Make `prefix' static.
12982         Fix typo.
12984         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12985         defined.
12986         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12987         HAVE_CC_OSFCN_H and modify accordingly.
12989         * troff/input.cc (init_charset_table): radicalex overlaps
12990         horizontally.
12992         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12993         udodo!hans@relay.NL.net).
12994         * groff/configure.in: Call it.
12996         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12997         * groff/configure.in: Call it.
12998         * include/lib.h: Conditionalize declaration of pclose.
13000         * troff/div.cc (last_page_number): New global variable.
13001         (top_level_diversion::begin_page): Exit if we just printed the
13002         last page.
13003         * troff/div.h (last_page_number): Declare it.
13004         * troff/input.cc (parse_output_page_list): Set last_page_number.
13006         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13007         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13008         tmac/tmac.X: Likewise.
13009         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13010         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13012 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
13014         * tmac/doc-ditroff (hK): Remove groff specific code which
13015         prevented page-breaks between separate manual entries.  If this is
13016         the first page, don't set the page number to 1.
13018         * acgroff.m4 (GROFF_POSIX): New macro.
13019         * configure.in: Use it.
13021         * troff/node.cc (class real_output_file,
13022         real_output_file::real_output_file,
13023         real_output_file::~real_output_file): Conditionalize use of
13024         popen/pclose on POPEN_MISSING.
13025         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13026         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13027         (pipe_source): Similarily.
13029         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13031         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13032         presence of declarations by trying to compile example with
13033         conflicting declarations.  (gcc only gives a warning for missing
13034         declarations.)
13036 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
13038         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13039         (from Ulrich Lauther).
13041 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
13043         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13045 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
13047         * indxbib/indxbib.cc (write_hash_table): Add code for case where
13048         pointers and ints have different sizes.
13050 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
13052         * tmac/tmac.s (par*env-init): Call par@reset.
13054 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
13056         * tmac/tmac.s (@IP): Switch to a new environment when diverting
13057         tag.
13058         (par*push-tag-env, par*pop-tag-env): New macros.
13060 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
13062         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13063         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
13065         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13066         comment.  Include <time.h>.
13068 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
13070         * grops/ps.cc (is_small_h, is_small_v): Deleted.
13071         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13072         lines.
13074 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
13076         * troff/input.cc (read_request): Only print a prompt if reading
13077         from the terminal.  Also clearerr on EOF if reading from the
13078         terminal.  Declare isatty.
13080 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
13082         * refer/label.y: Rename map_t to map_func and extractor_t to
13083         extractor_func.
13085 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
13087         * include/assert.h: Don't use volatile.
13088         * libgroff/assert.cc: Likewise.
13090 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
13092         * troff/input.cc (abort_request): Look at character in tok before
13093         calling get_copy().
13095 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
13097         * troff/troff.h (NO_RETURN): Deleted.
13098         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
13099         * troff/input.cc (exit_troff): Likewise
13101         * Makefile.in: Remove `Making ...' messages since GNU make now
13102         gives these. 
13104         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13106 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
13108         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13109         to constant 1 inch.
13111 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
13113         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13115 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
13117         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13118         MARK_REG if there was no left delimiter.
13120 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
13122         * pic/troff.cc (troff_output::text): Set line thickness to
13123         relative before outputting text.
13125         * tmac/tmac.e (@k): Don't zero ?T.
13126         ((z): Likewise.
13128 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
13130         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13132 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
13134         * troff/input.cc (decode_args): Warn about unquoted tabs (from
13135         Paul Eggert).
13137 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
13139         * troff/input.cc (ignoring): New variable.
13140         (ignore): Set ignoring during call to do_define_macro.
13141         (do_define_macro): Clear ignoring before interpolating terminating
13142         macro.
13143         (copy_mode_error): New function.
13144         (get_char_for_escape_name, read_long_escape_name,
13145         interpolate_arg): Use copy_mode_error.
13146         (warning_table): Add WARN_IG.
13147         * troff/troff.h (WARN_IG): Declare.
13148         (WARN_TOTAL): Change accordingly.
13150         * groff/pipeline.c (strsignal): Rename to xstrsignal.
13151         * groff/groff.cc (strsignal): Delete declaration.
13153 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
13155         * troff/div.cc (page_offset): Use 'm' as default scaling.
13157 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
13159         * nroff/nroff.sh: Ignore -u.
13161 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
13163         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13165 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
13167         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13168         drawing box.
13169         (B2): With -Tascii, leave additional vertical space before
13170         and after. Ensure that the left and right indent is restored to
13171         what it was even if the point size changes.  Don't call
13172         par@finish. Change the indent, line length and title length
13173         directly.  With -Tascii, make the width of the box 1n less.
13174         (B1): Remember 1n at the current point size.  Don't call
13175         par@reset.  Change the indent, line length and title length
13176         directly.  Ensure that the temporary indent is preserved.
13177         (par*box-mark-top): Turn off no spacing mode.
13179 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
13181         * Makefile.in (dist): Use .gz suffix.
13183 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
13185         * troff/input.cc (main): Add return 0.
13186         * pic/main.cc (main): Use return instead of exit.
13187         * tbl/main.cc (main): Likewise.
13188         * eqn/main.cc (main): Likewise.
13189         * grops/ps.cc (main): Likewise.
13190         * grotty/tty.cc (main): Likewise.
13191         * groff/groff.cc (main): Likewise.
13192         * grodvi/dvi.cc (main): Likewise.
13193         * refer/refer.cc (main): Likewise.
13194         * indxbib/indxbib.cc (main): Likewise.
13195         * lkbib/lkbib.cc (main): Likewise.
13196         * soelim/soelim.cc (main): Likewise.
13197         * addftinfo/addftinfo.cc (main): Likewise.
13198         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13199         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13201         * troff/token.h (process_input_stack): Don't declare as static.
13202         * troff/input.cc: Likewise.
13204         * troff/node.c (invalidate_fontno): Make it a static member of
13205         class font_family.  Change callers.
13206         * troff/node.c: Change declaration.
13208         * tbl/main.cc (struct input_entry_format): Add explicit public
13209         specifier.
13210         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13211         struct double_hline_stuff): Likewise.
13212         * tbl/table.h (struct entry_format): Likewise.
13213         * pic/object.h (struct saved_state): Likewise.
13215         * include/stringclass.h: Add forward declarations of friend
13216         functions that are later declared as inline.  Don't include inline
13217         specifier in friend declaration.
13219         * libgroff/lib.h: Declare popen and pclose.
13220         * acgroff.m4 (GROFF_POPEN): New macro.
13221         * configure.in: Call it.
13223         * include/lib.h (PI): New constant. Undef first if necessary.
13224         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13225         * grops/ps.cc (degrees, radians): Likewise.
13226         * libgroff/font.cc (font::get_skew): Likewise.
13228         * grops/ps.cc (is_ascii): New function.
13229         (ps_output::put_string): Use is_ascii.  Use csprint rather than
13230         isprint.
13231         (ps_printer::define_encoding): Use csspace.
13232         * libgroff/strtol.c (ISASCII): New macro.
13233         (strtol): Cast arguments to is*() and tolower() to unsigned char.
13234         Use ISASCII rather than isascii.
13235         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13236         * libgroff/cset.cc: Likewise.
13237         * libdriver/input.cc: Include cset.h.
13238         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13239         than isdigit().
13241         * refer/refer.cc (main): Use %ld rather than %d for longs.
13243         * libbib/index.cc (index_search_item_iterator::get_tag): Use
13244         S_ISREG macro.
13246         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13248 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
13250         * troff/input.cc (hyphenation_code): Skip white space between
13251         char/code pairs.
13253 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
13255         * tbl/table.h (table::entry_list_tailp): New member.
13256         (table::table): Initialize it.
13257         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13258         behaviour.
13260 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
13262         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13263         with negative horizontal positions. Remove casts of glyph::hpos to
13264         int.
13265         (USHRT_MAX): Delete definition.
13266         (SHRT_MAX, SHRT_MIN): New definitions.
13267         (glyph::hpos): Change type to short.
13268         (tty_printer::end_page): Output multiple backspaces if necessary.
13269          Remove casts of glyph::hpos to int.
13270         
13271 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13273         * tmac/tmac.s (@RT): New definition.
13275 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13277         * refer/refer.cc (do_file): Make sure current_filename is set when
13278         filename is "-".
13280         * pic/common.cc (common_output::dot_line): Handle zero length
13281         lines.
13283 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13285         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13286         (par@init): Initialize \n[HY].
13288 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13290         * troff/dictionary.cc (dictionary::remove): Continue when
13291         r < j < i.
13293 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13295         * Makefile.com (.y.cc): Avoid ending up with two versions of
13296         $(YTABH).
13298 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13300         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13301         (\(,C): Likewise.  Also fix typo.
13303 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13305         * lib.h: Delete extraneous semi-colon.
13307         * Add pso request: `so' from a pipe.
13308         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13309         (file_iterator::close): New function.
13310         (file_iterator::~file_iterator, file_iterator::next_file): Use
13311         file_iterator::close.
13312         (file_iterator::backtrace): Say `process' rather than `file' when
13313         the stream is popened.
13314         (pipe_source): New function.
13315         (init_input_requests): Bind ".pso" to pipe_source.
13317 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13319         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13321         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13322         digits in lower case.
13324 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13326         * Version 1.08 released.
13328         * Makefile.in (dist): Insert || true after ln -s commands that
13329         might fail.
13331         * mm: Update to mm 1.16.
13333         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13334         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13335         SH_SCRIPT_SED_CMD.
13336         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13337         MDEFINES.
13338         * nroff/Makefile.sub (nroff): New target.
13339         (install_data): Install nroff.
13340         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13341         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13343 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13345         * eqn/Makefile.sub (neqn): Add chmod +x.
13347         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13349 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13351         * troff/input.cc (string_iterator::string_iterator()): Initialize
13352         lineno and count.
13354 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13356         * troff/div.cc (macro_diversion::space,
13357         top_level_diversion::space): Don't set high_water_mark.
13358         (macro_diversion::output, top_level_diversion::output): Don't
13359         include post line space in high water mark.
13361 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13363         * eqn/eqn.y: Don't define YYDEBUG.
13364         * pic/pic.y: Likewise.
13366 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13368         * tmac/tmac.e ([3): Add space after comma following editors.
13369         Change double spaces to single spaces.
13370         ([4): Change double spaces to single spaces.
13372         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13373         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13374         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13375         after %!PS-Adobe- (for Newsprint).
13377         * troff/div.cc (top_level_diversion::begin_page): When
13378         before_first_page is 1, set page_number to 1.
13380 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13382         * eqn/box.cc (box::top_level): Protect equation with \&.
13384 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13386         * groff/groff.cc (possible_command::set_name): Delete old name.
13388         * groff/groff.cc (possible_command::~possible_command): Use
13389         a_delete.
13391         * troff/node.cc (troff_output_file::begun_page): New member.
13392         (troff_output_file::troff_output_file): Initialize it.
13393         (troff_output_file::really_begin_page): Only output V command if a
13394         page has been begun.
13396         * pic/pic.y (placeless_element): Delete argument to PRINT after
13397         use.
13399 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13401         * Make wrapman work.
13402         * troff/div.h (class top_level_diversion): Replace
13403         first_page_begun by before_first_page (with opposite sense).
13404         * Change first_page_begun to before_first_page inverting sense.
13405         * troff/div.cc (class nl_reg): New class.
13406         (init_div_requests): Use class nl_reg for \n(nl.
13407         (top_level_diversion::begin_page): Don't call
13408         output_file::begin_page if before_first_page is 2;
13409         reset before_first_page afterwards.  If have_next_page_number is
13410         false, then always increment page_number.
13411         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13412         Restore compatibility mode after loading, and then disable
13413         compatibility mode in TH.
13415 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13417         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13418         past last line.
13419         * troff/node.h (output_file::trailer): Declare.
13420         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13421         * troff/node.cc (output_file::trailer): New function.
13422         (troff_output_file::~troff_output_file): Move most code into...
13423         (troff_output_file::trailer): New function.
13424         (class troff_output_file): Delete page_length member. Declare
13425         trailer().
13426         (troff_output_file::really_begin_page): Use current page length
13427         for final V command.
13429         * tbl/main.cc (struct options): New decimal_point_char member.
13430         (options::options): Initialize this.
13431         (process_options): Implement decimalpoint option.
13432         (process_data): Pass decimal_point_char option to table::table.
13433         * tbl/table.h (class table): New decimal_point_char member.
13434         (table::table): Add additional argument.
13435         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13436         second argument specifying decimal point character.  Use this
13437         instead of '.'.
13438         (table::table): Initialize decimal_point_char.
13439         (table::add_entry): Change call to find_dot.
13441         * troff/input.cc (get_copy, token::next): Implement \V.
13442         (interpolate_environment_variable): New function.
13444 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13446         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13447         * pic/pic.y: Likewise.
13449         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13450         Add casts to int.
13451         * refer/ref.cc (reference::insert_field, reference::delete_field):
13452         Likewise.
13453         * troff/number.cc (parse_term): Likewise.
13455         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13456         * configure.in: Use GROFF_PROG_YACC.
13458         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13459         and g++.
13460         * Makefile.in (OPTIMIZE): New define.
13461         (DEBUG): Empty by default.
13462         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13464         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13465         (GROFF_ARRAY_DELETE): Likewise.
13466         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13468         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13470         * devps/psstrip.sed: Use different delimiter on last line (so that
13471         it works with BSD 4.4 sed.)
13473 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13475         * devps/psstrip.sed: Delete comments.
13477         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13478         optind, opterr, optarg.
13479         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13480         opterr, optarg.
13482 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13484         * Makefile.in (check): Dummy target.
13486 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13488         * Version 1.07 released.
13490         * Integrate mm 1.11.
13492         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13493         where start_col was meant.
13495 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13497         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13499 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13501         * troff/input.cc (token::next): Make \z\o'...' and similar things
13502         work.
13504         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13505         constants.
13506         (environment): Add margin_character_flags member.
13507         * env.cc (environment::environment(symbol),
13508         environment::environment(const environment *): Initialize
13509         margin_character_flags.
13510         (margin_character): Rewrite.
13511         (environment::output_line): Add a margin character if
13512         margin_character_flags is non-zero.  Turn off the
13513         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13514         zero, use margin_character_node without copying and then set
13515         margin_character_node to 0.
13517         * devps/DESC.in: Change minimum size to 1000.
13519 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13521         * troff/symbol.h (symbol::hash): Change return type to unsigned
13522         long.
13523         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13524         Add casts to int.
13526         * test-groff: Use -r rather than -x.
13528         * grops/psfig.diff: Include in distribution again.
13530 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13532         * Makefile.in (dist): Use gzip.
13534 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13536         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13537         unistd.h as well as in stdlib.h.
13538         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13539         defined; otherwise include <sys/types.h> and <unistd.h> if
13540         UNISTD_H_DECLARES_GETOPT is defined.
13542         * configure.in: use builtin(include, ... rather than include(...
13543         * configure: Regenerate with autoconf 1.3.
13545         * libdriver/print.cc (printer::adjust_arc_center): Use new
13546         algorithm suggested by Andy Fyfe.
13548         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13549         * include/printer.h: Declare this.
13550         * grops/ps.cc (ps_printer::draw): Use it.
13551         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13553 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13555         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13557 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13559         * eqn/main.cc (main): Handle "eqn -".
13561 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13563         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13565         * mm: Integrate version 1.08.
13567         * pic/troff.cc (troff_output::finish_picture): Set
13568         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13569         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13570         if it's not defined. Check whether the register is non-zero rather
13571         than whether it's not defined.
13572         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13574         * indxbib/indxbib.cc: Move all signal handling into...
13575         * indxbib/signal.c: New file.
13576         * configure.in: Call AC_RETSIGTYPE.
13578         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13579         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13580         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13582         * troff/input.cc (token::token, token::operator=): Work round SGI
13583         C++ bug.
13584         * pic/object.cc (position::position): Likewise.
13586 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13588         * pic/pic.h: Move declaration of hypot().
13590 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13592         * pic/pic.h: Declare hypot().
13594         * pic/pic.h: Define M_PI if necessary.
13596 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13598         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13599         `.ta T' feature.
13601         * devps/prologue.ps (RE): Handle the possibility that the old font
13602         doesn't have a FontName entry.
13604 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13606         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13607         (@C): Use @fam not fam.
13609 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13611         * lookbib/lookbib.cc (main): Change type of start to const char *.
13612         * lkbib/lkbib.cc (main): Likewise.
13614         * eqn/lex.cc (definition::definition): Don't use member
13615         initializer syntax for members of anonymous unions.
13617         * troff/input.cc (input_stack::backtrace): Change type of to const
13618         char *.
13620 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13622         * include/stringclass.h (class string): Declare inline friend
13623         functions as inline in class declaration.
13624         * troff/hvunits.h (class hunits, class vunits): Likewise.
13625         * include/refid.h (class reference_id): Likewise
13626         * troff/troff.h (points_to_units(units), scale(units, double)):
13627         Delete declarations.
13628         * libdriver/input.cc (get_char): Delete declaration.
13629         * include/lib.h: Change 2nd argument of getopt from const char **
13630         to char **.
13631         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13632         char **' before assigning to a `const char **'.
13633         * tbl/table.cc: Delete extra declarations of prints().
13635 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13637         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13638         char **' before assigning to a `const char **'.
13640         * libgroff/errarg.cc (errarg::errarg): Don't use member
13641         initializer syntax for members of anonymous unions.
13643 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13645         * mm: Integrate version 1.07.
13647 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13649         * troff/input.c (translate2): Rename to
13650         (translate_no_transparent).
13651         (init_input_requests): Rename tr2 to trnt.
13653 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13655         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13656         (charinfo::set_translation, charinfo::set_special_translation):
13657         Add second argument that specifies value for
13658         transparent_translate.
13659         (charinfo::get_translation, charinfo::get_special_translation):
13660         Add optional second argument that specifies whether translation is
13661         being used for transparent throughput.
13662         * troff/input.cc (charinfo::set_translation,
13663         charinfo::set_special_translation): Handle second argument.
13664         (charinfo::charinfo): Initialize transparent_translate.
13665         (translate): Split main part off into
13666         (do_translate): New function.  Pass argument saying whether
13667         translation applies to transparent throughput.
13668         (translate2): New request.
13669         (init_input_requests): Bind translate2 to `tr2'.
13671 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13673         * tbl/table.h (class table): Add `nokeep' flag.
13674         * tbl/main.cc (process_options): Handle `nokeep' option.
13675         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13676         table::do_bottom): Don't output keep/release macro definitions or
13677         calls when `nokeep' option has been specified.
13679 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13681         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13683 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13685         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13686         block_entry::divert, alphabetic_block_entry::divert): Add extra
13687         argument giving column separation.
13688         (table::compute_widths): Pass column separation to
13689         table_entry::divert().
13690         (block_entry::do_divert): If an entry spans multiple columns and a
13691         minimumum width has been specified for each column, then set the
13692         line length to the sum of the widths (plus possibly the column
13693         separations).
13695         * troff/input.cc (set_escape_char): Don't set the escape_char
13696         until after calling has_arg().
13698 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13700         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13701         case.
13703         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13704         in case where r > nrows - 1.
13706         * tbl/table.cc (BODY_HEIGHT): Deleted.
13707         (LINE_SEP): New definition.
13708         (table::print_single_hline, table::print_double_hline,
13709         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13710         table::do_row, table::do_top): Use LINE_SEP space before a line
13711         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13713         * tbl/table.cc (text_entry::print_contents): New function.
13714         (text_string_name, right_text_string_name): Deleted.
13715         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13716         (simple_text_entry::do_width, numeric_text_entry::do_width,
13717         alphabetic_text_entry::do_width): Don't store the contents of the
13718         entry in a string.
13719         (left_text_entry::simple_print, right_text_entry::simple_print,
13720         center_text_entry::simple_print,
13721         alphabetic_text_entry::simple_print,
13722         numeric_text_entry::simple_print): Print the entry directly
13723         instead of using the stored string.
13725 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13727         * devps/Makefile: Strip PostScript files.
13728         * devps/prologue: Rename to...
13729         * devps/prologue.ps.
13730         * devps/psstrip.sed: New file.
13731         * devps/download: Use .pfa rather than .ps for installed versions
13732         of fonts.
13734 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13736         * troff/env.cc (input_trap): Give a warning if the argument is out
13737         of range.
13739         * troff/env.cc (adjust): Treat negative argument as missing. Round
13740         argument > 5 down to 5.
13742         * troff/env.cc (center, right_justify): Make negative argument zero.
13744         * troff/div.cc (page_offset, vertical_position_traps): Treat
13745         invalid argument as missing.
13746         * troff/env.cc (line_spacing, line_length, title_length, indent,
13747         underline, hyphen_line_max_request, control_char,
13748         no_break_control_char, widow_control_request, adjust, input_trap,
13749         point_size): Likewise.
13750         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13751         constant_space): Likewise.
13752         * troff/input.cc (compatible, shift, warn_request,
13753         set_escape_char): Likewise.
13755         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13756         * tbl/table.cc (table::table): Likewise.
13758         * Makefile.dev (install_dev): depends on $(DEVFILES).
13760 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13762         * devX75, devX75-12, devX100, devX100-12: New directories.
13763         * Makefile.in: Add these to DEVDIRS.
13765         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13766         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13767         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13768         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13769         targets.
13770         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13771         (uninstall): New target.
13772         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13773         uninstall_prog, uninstall_dev): New targets.
13775         * troff/div.cc (return_request): Treat an invalid argument as
13776         missing.
13778 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13780         * tmac/tmac.e ((f): Set up the environment even when there's a
13781         current diversion.  Transperently throughput a call to @N.
13782         (@N): New macro.
13784 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13786         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13787         up to vertical resolution.
13789         * tbl/table.cc (table::do_row): Change row number after printing
13790         stuff list.
13792         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13794 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13796         * Rename CHANGES to NEWS.
13798 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13800         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13802 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13804         * man.ultrix: Removed.
13806 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13808         * Makefile.comm (extraclean): Delete files whose names begin with
13809         `='.
13811         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13812         aligned text.
13814 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13816         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13817         * troff/div.cc (page_length, need_space, space_request): Treat
13818         invalid optional argument as missing.
13819         * troff/env.cc (number_lines): If the first argument is present
13820         but not a number, turn on line numbering, don't change the next
13821         line number and parse the remaining arguments.
13823         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13825 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13827         * eqn/box.h: Change declaration accordingly.
13828         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13829         the specified size was bad but don't give an error.  Check for
13830         overflow.
13831         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13832         * eqn/lex (do_size): Likewise.
13834 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13836         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13837         compatible headers.
13839 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13841         * tbl/table.cc (table::init_output): Improve error message when
13842         table won't fit on one page.
13844 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13846         * pic/troff.cc (troff_output::start_picture): Generate line
13847         containing a horizontal motion equal to the width of the picture.
13849         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13850         using GROFF_COMMAND_PREFIX environment variable.
13852 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13854         * mdate.sh: Use $NF rather than $(NF).
13856 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13858         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13860         * eqn/main.cc (main): Output code to check that geqn was given the
13861         correct -T option.
13863 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13865         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13866         `ln -s ../Makefile .; make; rm -f Makefile'.
13868         * troff/hyphen: Rename to...
13869         * troff/hyphen.us:
13870         * troff/input.cc (main): Delete -H option. Don't call
13871         read_hyphen_file().
13872         * troff/env.cc: Include searchpath.h and macropath.h.
13873         (exception_dictionary): Deleted.
13874         (ht): Deleted.
13875         (read_hyphen_file): Deleted.
13876         (hyphenation_language): New struct.
13877         (class trie, class hyphen_trie): Move declarations up.
13878         (trie_node::~trie_node): Deleted.
13879         (trie::delete_trie_node): New function.
13880         (trie::do_delete): New pure virtual function.
13881         (hyphen_trie::do_delete): New function.
13882         (trie::~trie): New function.
13883         (hyphen_trie::~hyphen_trie): New function.
13884         (trie::clear): No need to chcek that tp is not 0.
13885         (current_language, language_dictionary): New variables.
13886         (hyphen_word): Give an error if no current language.  Use
13887         exceptions dictionary in current language.
13888         (hyphen_trie::read_patterns_file): Find file using macro_path.
13889         Allow comments (starting with %) in patterns file.  Don't make it
13890         a fatal error if the file can't be found.
13891         (hyphenate): Return if no current language.  Get the exceptions
13892         dictionary and the hyphenation patterns from the current language.
13893         (set_hyphenation_language): New variable.
13894         (hyphenation_patterns_file): New function.
13895         (hyphenation_language_reg): New class.
13896         (hyphenation_language_reg::get_string): New function.
13897         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13898         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13899         register.
13900         * groff/groff.cc (main, help, synopsis): Delete -H option.
13901         * include/Makefile.sub: Don't define HYPHENFILE.
13902         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13903         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13904         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13905         hyphenation patterns.
13907 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13909         * eqn/neqn.sh: New file.
13910         * eqn/Makefile.sub: Handle neqn.sh.
13912         * eqn/eqn.h: Declare `nroff' variable.
13913         * eqn/box.cc (param_table): Add `nroff' param.
13914         (nroff): Define it.
13915         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13916         variable.
13917         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13919         * troff/troff.h (WARN_FONT): New warning.
13920         (WARN_TOTAL): Change accordingly.
13921         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13922         (warning_table): Add WARN_FONT.
13923         * troff/node.cc (mount_font_no_translate): Pass argument to
13924         font::load_font.  If this is non-zero, give a warning.
13925         Don't give an error message when accessing a font that has already
13926         been found to be invalid.
13927         * include/font.h (font::load, font::load_font): Add additional
13928         optional argument which suppresses error message if the font is
13929         not found.
13930         * libgroff/font.cc (font::load_font): Handle additional argument.
13931         (font::load): Add additional argument. If this is non-null, set it
13932         to 1 and don't give error message.
13934         * include/printer.h (printer::end_page): Add argument giving
13935         length of page.
13936         * libdriver/input.cc (do_file): Pass this.
13937         * grops/ps.cc (ps_printer::end_page): Add argument.
13938         * grodvi/dvi.cc (dvi_printer::end_page,
13939         draw_dvi_printer::end_page): Add argument.
13940         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13941         columns_per_page members. New member nlines.
13942         (DEFAULT_LINES_PER_PAGE): Deleted.
13943         (tty_printer::tty_printer): Don't compute lines_per_page from
13944         font::paperlength. Don't compute columns_per_page from
13945         font::paperwidth.
13946         (tty_printer::add_char): Don't check horizontal position against
13947         columns_per_page. Grow glyphs vector if neccessary.
13948         (tty_printer::end_page): Add argument giving page_length in units.
13949         Discard lines past end of page.
13951 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13953         * tmac/tmac.tty-char: Fix definition of \(/l.
13955         * tmac/tmac.X: Define \(en.
13957 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13959         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13960         lpq, then use lp rather than lpr.
13962         * tmac/tmac.s (par@reset): Don't call `ad'.
13963         (par*env-init): Call `ad'.
13965 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13967         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13968         date.
13970         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13971         * indxbib/indxbib.cc: Likewise.
13973 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13975         * libgroff/putenv.c: New file.
13976         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13977         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13978         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13979         stdlib.h with AC_HAVE_HEADERS.
13981 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13983         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13984         does not exist.
13986 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13988         * eqn/box.cc (gsize): Make it an int.
13989         (set_gsize): Parse argument handling increment or decrement.
13990         (box::top_level): Convert gsize to a string.
13992         * troff/input.cc (exit_troff): Make buf unsigned char [].
13993         Call to make_temp_iterator casts buf to char*.
13995         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13997         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13998         * Makefile.cpg (depend.temp): Likewise.
14000         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14002         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14004 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
14006         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14008 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
14010         * Version 1.06 released.
14012         * Integrate mm 1.04.
14014 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
14016         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14018 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
14020         * afmtodit/afmtodit.pl: Add -n option that disables generation of
14021         ligatures command.
14022         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14023         afmtodit. Regenerate.
14025         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14026         @f back past the current position.
14028         * tmac/tmac.e: Change calls to @R so that comments are not part of
14029         arguments.
14031 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
14033         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14035         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14036         check that we can link a call to a function declared in <stdio.h>.
14037         (GROFF_UNISTD_H): New macro.
14038         * configure.in: Call it.
14039         * Makefile.in: Document it.
14040         * include/posix.h: New file.
14041         * troff/troff.h: Don't include <osfcn.h>
14042         * troff/input.cc: Include posix.h.
14043         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14044         osfcn.h.
14045         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14046         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14047         <fcntl.h>.
14048         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14049         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14050         * libbib/search.cc (O_RDONLY): Delete definition.
14051         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14052         Don't include <osfcn.h>.
14054         * acgroff.m4 (GROFF_TIME_T): New macro.
14055         * configure.in: Call it.
14056         * Makefile.in: Document it.
14058         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14059         * configure.in: Call it.
14060         * Makefile.in: Document -DTRADITIONAL_CPP.
14061         * include/ptable.h: Don't include generic.h.
14062         (name2): Define it.
14064         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14065         Afterwards remove [T1 and [T2.
14066         (ref*spec!0, ref*spec!2): Use T1 rather than T.
14067         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14068         (ref*add-T2): Renamed from ref*add-T.
14069         (ref*add-T1): New macro.
14071 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
14073         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14075         * libbib/index.cc: Include <fcntl.h>.
14076         (O_RDONLY): Define if necessary.
14077         (make_index_search_item, index_search_item_iterator::get_tag,
14078         index_search_item::check_files): Use O_RDONLY.
14079         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14080         (O_RDONLY): Define if necessary.
14081         (search_list::add_file): Use O_RDONLY.
14082         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14083         <sys/stat.h>.
14084         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14085         (main): Use these.
14087         * libbib/index.cc (S_ISREG): Define it if necessary.
14088         (index_search_item::load): Use S_ISREG.
14090         * include/driver.h: Include <errno.h>.
14092 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
14094         * eqn/box.cc (body_height): Increase default value to 85.
14095         (body_depth): Increase default value to 35.
14097 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
14099         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14100         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14101         protected from expansion with \E.
14103         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14105         * Makefile (Makefile): New target.
14107         * Makefile.sub (configure, distfiles): New targets.
14109         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14110         construct.
14112 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
14114         * eqn/box.cc (param_table): Add body_height and body_depth.
14116         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14118 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
14120         * psbb/Makefile.sub: Don't link with libgroff.a.
14122         * acgroff.m4 (GROFF_PUTENV): New macro.
14123         * configure.in: Call GROFF_PUTENV.
14124         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14125         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14126         is defined.
14128         * troff/env.cc (distribute_space): Rename force_forward argument
14129         to force_reverse.  Reverse the list if force_reverse is true.
14131 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
14133         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14135         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14136         height or depth to be negative.  Guard against SUP_RAISE quantity
14137         being negative.
14139 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
14141         * devps/generate/textmap: Add `an' (arrowhorizex).
14142         * tmac/tmac.ps: \(an overlaps horizontally.
14143         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14145         * devps/symbolchars: Add arrowverttp, arrowvertbt.
14146         * devps/textmap: Add arrowvertex.
14147         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14148         updownarrow delimiters.
14149         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14151         * tbl/table.cc (simple_entry::position_vertically,
14152         block_entry::position_vertically):  For a centered entry, perform
14153         the motion in two stages.
14155         * refer/refer.cc (split_punct): Don't call lookup_token if there
14156         is no token.
14158 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
14160         * troff/input.cc (token::next): Delete token_node after copying
14161         token.
14163         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14164         cur_point_size.
14166         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14168         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14170 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
14172         * grops/ps.cc (usage): -b option takes an argument.
14174         * devps/prologue (PLG): New procedure.
14175         * grops/ps.cc (main, usage): New -g option.
14176         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
14177         length using PLG.
14179 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
14181         * include/cset.h: Include <limits.h> if we have it.
14183         * libgroff/illegal.cc: New file.
14184         * include/lib.h (illegal_input_char): Use table.
14185         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14186         * pic/lex.cc (ARG1): Renumber to 14.
14187         * eqn/lex.cc (ARG1): Likewise.
14189         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14190         (eg 1.05.90) correctly.
14192 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
14194         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14195         Rename $r and $R registers to $v and $V.
14196         ($r, $R): Initialize to 0.
14197         (@v, @V): New macros.
14198         (sz): Call @v.
14199         (@M): Call @V.
14201         * troff/input.cc (main, usage): Add -R option that says not to
14202         load troffrc.
14203         * eqn/main.cc (main, usage): Rename -n to -R.
14205 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
14207         * devps/DESC.in: Leave font positions 5-9 blank.
14208         * devdvi/DESC.in: Likewise.
14210         * grog/grog.pl: Handle `.PS <file' correctly.
14212         * troff/input.cc (input_stack::push): Improve error message when
14213         input stack limit exceeded.
14215 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
14217         * refer/refer.cc (main): Fix typo in handling of `a' option.
14219         * refer/refer.cc (do_bib): In state START after a newline remain
14220         in state START.
14222         * groff/groff.sh: Deleted.
14223         * groff/Makefile.sub: Delete handling of groff.sh.
14225         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14226         to determine whether to use \X'ps:...'.
14227         * tmac/troffrc: Set 0p register to 0.
14228         * tmac/tmac.ps: Set 0p register to 1.
14230         * groff/groff.cc: Support -X option. Give warning for -TXps and
14231         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14232         * tmac/troffrc: Support -r.X=1.
14234         * pic/troff.cc (troff_output::dot): Don't test
14235         zero_length_line_flag.
14237 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
14239         * include/lib.h: Declare getopt() and friends unless
14240         STDLIB_H_DECLARES_GETOPT is defined.
14242         * doc/chars.tr: Delete.
14243         * man/groff_char.man: New file.
14245 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
14247         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14248         user has changed register format.
14250 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
14252         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
14253         `postpro' command in DESC file.  Get spooler command from `print'
14254         command in DESC file.  Execute spooler command with /bin/sh.
14256         * groff/groff.cc: Split Unix-specific parts into...
14257         * groff/pipeline.c: New file.
14259         * LICENSE: Delete.
14260         * COPYING: New file.
14261         * all files: Update copyright notices.
14263         * Rearrange files.  Redo Makefiles.  Use autoconf.
14265 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
14267         * troff/input.c (charinfo_to_node_list): Interpret character
14268         definition with escape_char of `\'.
14270 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14272         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14273         Define INT_DIGITS as big enough for 64-bit integer.
14274         * lib/strtol.c: Don't include lib.h.
14275         * lib/lib.h: Delete ifdef __cplusplus stuff.
14277 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14279         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14280         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14281         get DESC from current directory.
14283 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14285         * tbl/main.c (main): Always reset the line number when reading
14286         from stdin.
14288         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14289         table::define_bottom_macro, table::do_row, table::do_top): Round
14290         vertical spacing up to vertical resolution.
14292 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14294         * ps/ps.h (enum resource_type): Avoid comma at end of
14295         enumerator-list.
14296         * dvi/dvi.c (class dvi_printer): Likewise.
14297         * dvi/tfmtodit.c (gf::load): Likewise.
14298         * refer/label.y (struct expression): Likewise.
14299         * refer/refer.c (class label_processing_state): Likewise.
14300         * refer/indxbib.c (do_file): Likewise.
14301         * troff/troff.c (enum warning_type): Likewise.
14302         * tbl/main.c (process_data): Likewise.
14303         * troff/charinfo.h (class charinfo):
14305 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14307         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14309 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14311         * groff.c: Move to new groff subdirectory.
14312         * groff/Makefile: New file.
14313         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14315         * man/mdate.sh: Use ls -L if supported.
14317         * Consolidate all header files produced by gendef into lib/defs.h.
14318         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14319         Don't include path.h.
14320         * lib/Makefile (path.h): Don't generate.
14321         * troff/input.c: Include defs.h. Don't include config.h.
14322         * troff/Makefile (config.h): Don't generate.
14323         * refer/index.h: Don't include suffix.h.
14324         * refer/index.c: Include defs.h.
14325         * refer/indxbib.c: Include defs.h.
14326         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14327         defs.h.
14328         * refer/Makefile (suffix.h, path.h): Don't generate.
14329         * groff.c: Don't include config.h. Include defs.h.
14330         * Makefile (config.h): Don't generate.
14331         (lib/defs.h): Generate.
14332         (topclean): Remove lib/defs.h.
14334 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14336         * lib/malloc.c, lib/getpagesize.h: Deleted.
14337         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14338         related stuff.
14339         * lib/Makefile: Delete malloc-related stuff.
14340         * lib/new.c: Workaround COOKIE_BUG if necessary.
14342         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14343         needed header files directly.
14344         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14345         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14347 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14349         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14350         argument.
14351         * lib/font (font::load_desc, font::load): Don't split argument of
14352         unknown command.
14353         (font::handle_unknown_font_command): Change type.
14354         * ps/ps.c (ps_font::handle_unknown_font_command,
14355         handle_unknown_desc_command): Change type.
14356         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14358 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14360         * lib/font.h (font::handle_unknown_font_command): Add file and
14361         line arguments.
14362         * lib/font.c (font::handle_unknown_font_command):
14363         * ps/ps.c (ps_font::handle_unknown_font_command):
14364         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14365         lineno arguments.  Use _with_file_and_line functions for error
14366         reporting.
14368         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14369         data member.
14370         * lib/font.c (font::set_unknown_desc_command_handler): New
14371         function.
14372         (font::load_desc): For unknown commands, call
14373         unknown_desc_command_handler if not null.
14374         * lib/font.h (class font): Declare them.
14375         (FONT_COMMAND_HANDLER): New typedef.
14376         * ps/ps.c (handle_unknown_desc_command): New function.
14377         (main): Set bflag if we had a -b option. Call
14378         font::set_unknown_desc_command_handler.
14379         (broken.h): Don't include.
14380         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14381         submake 
14382         * ps/devps/Makefile: Add `broken' command to DESC file using
14383         BROKEN_SPOOLER_FLAGS.
14385         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14387         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14389         * macros/tmac.e (@R, @S): New macros.
14390         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14391         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14392         Declare $H, $[0-9], .. macros with @S.
14393         Declare |0, |1, |2, |3 strings with @S.
14395         * macros/tmac.e (@S): Rename to @U.
14397         * macros/tmac.e (@z): Define @b and bp as empty instead of
14398         deleting them,
14400         * macros/tmac.e (@m): Deleted.
14401         (@h): Don't call @m.
14402         (@z): Don't set @m trap.
14404         * macros/tmac.e ($h, $f): Define |z as empty string.
14406         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14407         (@q): Likewise.
14409         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14410         removing them.
14411         ()f): Likewise for * register.
14413         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14414         argument is missing, don't change $R.  Call sr with three
14415         arguments when initializing.
14417 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14419         * macros/tmac.e (sr): New macro.
14420         Initialize $r and $R using sr.
14422         * macros/tmac.e (,): Delete \*(#[.
14424         * troff/env.c (set_tabs): Read the tab type even if the position
14425         is bad.  Allow the position of the first tab stop to be negative.
14427 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14429         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14430         _POSIX_VERSION.
14431         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14432         rather than -DPATHCONF_MISSING.
14433         * Makefile: Get rid of PATHCONF_MISSING.
14435         * refer/map.c: New file.
14436         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14437         to map_len.
14438         * refer/Makefile: Handle map.c.
14439         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14441 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14443         * Makefile: RANLIB should be `true' if there is no ranlib.
14444         * lib/Makefile (libgroff.a): Simplify.
14445         * driver/Makefile (libdriver.a): Simplify.
14447         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14448         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14449         defined.
14451 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14453         * troff/env.c (compare_ranges): Declare as extern "C".
14455         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14457         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14459 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14461         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14462         but conditionalize use of \X based on \*(.T.
14463         (grops_output::*): Deleted.
14464         * pic/output.h: Delete declaration of make_grops_output.
14465         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14466         by default. -n sets it to 0.
14467         (usage): Corresponding changes.
14468         * groff.c (main): Don't pass -x or -p to pic.
14469         * groff.sh: Likewise.
14471         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14472         to be non-zero.
14474         * ps/devps/afmtodit: Change calculation of asc_boundary and
14475         desc_boundary.  Make these bounds inclusive.
14476         * ps/devps: Regenerate font files.
14478 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14480         * macros/tmac.latin1: New file.
14481         * macros/tmac.tty-char: Use tmac.latin1.
14482         (tmac.tty-tr): Deleted.
14483         * macros/Makefile: Install tmac.latin1.
14484         * macros/tmac.dvi: Use tmac.latin1.
14485         * macros/troffrc: Translate \[char160] onto no-break space here.
14486         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14488 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14490         * macros/tmac.Xps: Use `do' request.
14492         * macros/tmac.ps: Use `do' request.
14494         * macros/tmac.e (@C): Use `do' request.
14496         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14497         * macros/Makefile: Install tmac.X*.
14499         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14500         * tty/Makefile: Don't install tmac.tty*.
14501         * macros/Makefile: Install tmac.tty*.
14503         * dvi/tmac.dvi: Move to macros.
14504         * dvi/Makefile: Don't install tmac.dvi.
14505         * macros/Makefile: Install tmac.dvi.
14507         * ps/tmac.ps*: Move to macros.
14508         * ps/Makefile: Don't install tmac.ps*.
14509         * macros/Makefile: Install tmac.ps*.
14511         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14512         option.
14513         * macros/eqnrc: Set draw_lines parameter based on device.
14514         * groff.c: Don't pass -D flag to eqn.
14515         * groff.sh: Likewise.
14516         * eqn/main.c: Warn about use of -D.
14518         * troff/input.c (process_startup_file): New function.
14519         (main): Call process_startup_file().
14520         * macros/troffrc: New file.
14521         * macros/Makefile: Install troffrc.
14522         * groff.c (main): Don't pass extra -m option to troff. For a 
14523         pseudo device pass the name of the pseudo device to troff using
14524         -d.
14525         * groff.sh: Likewise.
14526         * groff.c (possible_command::prepend_arg): Deleted.
14528         * troff/input.c (do_request): New function.
14529         (init_input_requests): Bind "do" to do_request.
14531         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14532         load eqnrc from macro directory.
14533         * macros/eqnrc: New file.
14534         * macros/Makefile: Install eqnrc.
14535         * ps/devps/eqnchar: Deleted.
14536         * ps/devps/Makefile: Don't install eqnchar.
14537         * dvi/devdvi/eqnchar: Deleted.
14538         * dvi/devdvi/Makefile: Don't install eqnchar.
14539         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14540         variable optM.
14542         * lib/device.[ch]: New files.
14543         * lib/font.h (font::set_device_name, font::get_device_name):
14544         Deleted.
14545         * lib/fontfile.c: Use device.h.
14546         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14547         * troff/input.c: Delete definition of `device'.
14548         (main): Don't initialize device.
14549         * troff/troff.h: Include device.h rather than declaring device.
14550         * troff/Makefile: No need to handle DEVICE.
14551         * driver/input.c: Include device.h. Don't use
14552         font::{set,get}_device_name.
14553         * groff.c, Makefile: Rename device.h to config.h.
14554         * groff.c: Use library device variable.
14555         * eqn/main.c: Use library device variable.
14556         * eqn/Makefile: No need to handle DEVICE.
14558         * lib/searchpath.[ch]: New files.
14559         * lib/Makefile: Handle searchpath.[ch].
14560         * troff/input.c (open_file, init_dirs): Deleted.
14561         (macro_dirs): Deleted.
14562         (open_mac_file, macro_source): Use class search_path.
14563         (add_string, struct string_list): Move definition.
14564         (main): Change -M option to use macro_path. Delete call to
14565         init_dirs().
14566         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14567         Rewrite to use class search_path.
14568         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14569         * lib/Makefile: fontfile.c depends on searchpath.h.
14570         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14571         MACROPATH.
14572         * lib/macropath.[ch]: New files.
14573         * troff/Makefile: No need to handle MACROPATH.
14575         * troff/input.c: Delete DUMP code.
14576         * lib/fontfile.c, lib/font.h: Delete
14577         font::forget_command_line_font_dirs.
14579         * troff/input.c (push_token): New function.
14580         (handle_first_page_transition): Use push_token().
14581         (process_input_stack): Change handling of a space at the beginning
14582         of the line.
14584 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14586         * troff/input.c (font_dirs): Delete unused variable.
14588         * eqn/lex.c (do_set): Correct error messages.
14590 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14592         * troff/input.c (do_define_string): Allow the string name to be
14593         followed immediately by a tab.
14594         (define_character): Likewise.
14596 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14598         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14599         be negative.
14601         * troff/input.c (input_iterator::is_file): New virtual function.
14602         (file_iterator::is_file): New function.
14603         (input_stack::end_file): New function.
14604         (input_stack::next_file): Handle the situation where there is no
14605         file on the input stack correctly.  Avoid making two passes over
14606         the input stack.
14607         (next_file): Make the filename optional; in this case call
14608         input_stack::end_file().
14610 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14612         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14613         produce a real _ charater when the current font is CW and _
14614         otherwise.
14616         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14617         expression to work around gcc 2.2 bug.
14619 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14621         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14623         * troff/env.c (environment::add_padding): New function.
14624         (environment::add_char): Use add_padding().
14625         (environment::space): Likewise.
14626         (environment::wrap_up_field): Add some padding if there is none
14627         and there's no current tab.
14628         * troff/env.h: Declare environment::add_padding.
14630 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14632         * pic/pic.y: undef fmod and rand before declaring them.
14634 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14636         * troff/input.c (main): If the DESC file specifies a font name of
14637         0, then leave the corresponding font position empty.
14639         * nroff.sh: New file.
14640         * Makefile (install.nobin): Install nroff.sh.
14642         * tty/devlatin1/R.proto: Add ao as synonym for de.
14643         * tty/tmac.tty-char: Define ao as o.
14645         * tty/dev{ascii,latin1}/R.proto: Add aq.
14646         * tty/tmac.tty-char: Delete definition of aq.
14648 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14650         * troff/input.c (init_charset_table): Don't translate 0240.
14651         * ps/tmac.ps: Translate char160 to space.
14652         * dvi/tmac.dvi: Likewise.
14653         * tty/tmac.tty: Likewise.
14655 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14657         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14659         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14660         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14661         \(oe, \(r?, \(r!.
14663         * tty/tmac.tty-char: Add \(ah.
14665         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14666         No need to define \(FM and \(!/. Conditionalize all character
14667         definitions.
14669         * ps/devps/lgreekmap: Add +h, +f, +p.
14671         * ps/tmac.psnew: New file.
14672         * ps/Makefile: Install tmac.psnew.
14674         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14675         character definitions in compatible mode.
14677         * troff/input.c (remove_character): New function.
14678         (init_input_requests): Bind remove_character to "rchar".
14680         * ps/tmac.psold: New file.
14681         * ps/Makefile: Install tmac.psold.
14682         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14683         characters into tmac.psold.  Make these definitions unconditional.
14685         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14687         * ps/tmac.ps: Don't define \('c and \('C.
14689         * ps/devps/textmap: Move Greek characters to...
14690         * ps/devps/symbolchars:
14692 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14694         * ps/devps/text.enc: Add quotesingle.
14695         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14696         * tty/tmac.tty-char: Likewise.
14697         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14698         * dvi/devdvi/texi.map: Add Fn.
14699         * dvi/devdvi/msam.map: Add lz.
14700         * dvi/tmac.dvi: Handle Bq, bq, aq.
14702         * pic/lex.c (get_token): Recognize 'th.
14703         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14705 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14707         * ps/devps/textmap: Move di, mu, +- to...
14708         * ps/devps/symbolchars:
14710         * macros/tmac.s (@XS): Don't call par@reset or fi.
14711         (XA): Call LP. Turn off adjustment. Reduce line length.
14713         * macros/tmac.s: Initially alias XS to LP.
14714         (XS): Rename to @XS.
14715         (cov*ab-init): Alias XS to @XS.
14717 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14719         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14720         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14721         (token::is_size, token::changes_env): Deleted.
14722         * troff/number.c (parse_term): No need to process \s explicitly.
14723         Call tok.next() only after scale indicator has been processed.
14724         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14725         \f etc explicitly.
14726         (token::next): Handle \s, \f, \S, \H immediately rather than
14727         returning them as tokens.
14728         (token::operator==, token::description, token::add_to_node_list,
14729         token::process): Remove handling of deleted tokens.
14731         * troff/env.c (environment::add_char): When adding padding
14732         indicator character, call start_line() if necessary.
14734 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14736         * ps/devps/afmtodit: Don't output 0 kerns.
14738         * ps/devps/afmtodit: Remove directory from name of encoding in
14739         font description file.
14741         * ps/devps/afmtodit: Improve error messages.
14743         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14745         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14746         * ps/devps/FontMakefile: Deleted.
14747         * ps/devps/afmname: New file.
14749         * ps/devps/symbol.sed: New file.
14750         * ps/devps/symbol.diff: Deleted.
14751         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14752         Generate zapfdr.afm from zapfd.afm.
14754         * tty/tmac.tty (tty-char): Prefix definition with ".
14756         * macros/tmac.an (TP): Don't start a diversion if one has already
14757         been started.
14759         * tty/tmac.tty-char: Add Latin-1 characters.
14761         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14763 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14765         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14766         Move declaration of struct horizontal_span.
14768         * tbl/table.c (table::table): Initialize span_list.
14769         (table::~table): Delete span_list.
14771         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14773         * ps/devps/Makefile: Avoid dependency on GNU make.
14775         * ps/tmac.ps: Check that character does not already exist before
14776         defining it.
14778         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14779         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14780         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14781         files.
14783         * tty/tmac.tty-char: New file.
14784         * tty/Makefile: Install tmac.tty-char.
14785         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14786         tmac.tty-char.
14788         * tty/tmac.tty: Fix definition of \(34.
14790         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14791         bracket-drawing characters onto |. Add *o.
14793         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14794         only if current_field.
14796         * troff/dictionary.c (dictionary::lookup): Free old_table after
14797         rehashing. 
14799 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14801         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14802         whose glyphs are identical to glyphs of some Roman character.
14804         * tty/devlatin1/R.proto (bu): Deleted.
14805         * tty/devascii/R.proto (bu): Deleted.
14806         * tty/tmac.tty: Add definition of \(bu.
14808         * eqn/main.c (do_file): Pass FILE as argument.
14809         (main): Automatically load eqnchar.  New options -F and -n.
14810         Pass do_file an opened FILE.
14811         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14812         No need to include font.h.
14813         * groff.sh: Likewise.  Don't need to use - for standard input.
14814         Prefix files with -- if first file starts with -.
14816         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14818         * troff/env.c (environment::possibly_break_line): Don't set line
14819         to 0 across call to output_line().  Don't call output_line() until
14820         after discarding nodes after break.
14822 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14824         * request.h (macro::empty): Declare it.
14825         * input.c (macro::empty): New method.
14826         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14827         macro is empty.
14829 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14831         * troff/env.c (environment::start_field): Decrement space_total
14832         when a space is frozen.
14834 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14836         * macros/tmac.an (R): Delete macro.
14838         * troff/input.c (get_copy, token::next): Support \# (like \" but
14839         newline is ignored).
14841         * troff/input.c (token::next): Fix error message in 'Y' case.
14843 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14845         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14846         a delimiter name.
14848 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14850         * c++test.c: Include <osfcn.h>.
14852         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14853         <errno.h> doesn't.
14855 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14857         * tbl/table.c (table::divide_span): Don't count column separation
14858         if expand was specified.
14860         * tbl/main.c (process_format): Don't ignore width specs in
14861         continued format.  Give warning for changing equal widths or
14862         column separation in continued format.
14863         (process_data): Set column separation, minimum width, equal
14864         columns at end of table.
14866 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14868         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14869         node::add_discretionary_hyphen): Use soft_hyphen_char.
14870         (set_soft_hyphen_char): New function.
14871         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14873         * Makefile (c++tested): Give more helpful message if test fails.
14875 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14877         * troff/input.c (init_charset_table): Translate 0240 to
14878         an unbreakable space.
14880         * troff/token.h (token::hyphen_indicator): New function.
14881         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14882         translation.
14883         * troff/input.c (translate): Allow translation to \%.
14884         * troff/node.c (node::add_char): Handle
14885         TRANSLATE_HYPHEN_INDICATOR.     
14886         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14888         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14889         for \(hy.
14891         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14893 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14895         * groff.c (run_commands): If the last command gets a SIGPIPE send
14896         a SIGPIPE to all children than haven't yet terminated.  When
14897         command terminates, set pid field to -1.
14899 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14901         * groff.c (main): Pass an appropriate -filename option to gxditview.
14903 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14905         * Makefile.bd (install): Remove existing program before copying.
14907         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14908         programs which have Unix counterparts to be installed with
14909         user-specified prefix.
14911         * troff/input.c (exit_troff): Don't check if exit_started.
14912         (exit_request): Don't call exit_troff if exit_started.
14914         * Makefile.bd (install.mm): Rename to install.dwbmm.
14916 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14918         * driver/input.c (do_file): Add missing break for '#' case.
14920 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14922         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14923         then add the boundaries back.
14925         * troff/input.c (exit_troff): Return immediately if already
14926         exiting.
14928         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14929         end macro.
14930         (pg*end-page): If the text has ended and there are no more
14931         footnotes or keeps, exit.
14933         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14935         * troff/input.c (init_charset_table): Make \(rq transparent by
14936         default.
14938         * macros/tmac.an: Define lq and rq strings.
14940         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14942 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14944         * troff/env.c (environment::final_break): New function.
14945         (environment::newline): Set prev_line_interrupted to 2 if
14946         exit_started.
14947         * troff/env.h: Declare environment::final_break.
14948         * troff/input.c (exit_troff): Call environment::final_break()
14949         instead of environment::do_break().
14951         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14952         doesn't already exist.
14953         * macros/man.local: New file.
14954         * macros/tmac.an: Load man.local.
14955         * macros/man.ultrix: New file.
14957 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14959         * troff/input.c (exit_groff): Rename to...
14960         (exit_troff): New function.
14962         * troff/div.c (exit_started, done_end_macro,
14963         seen_last_page_ejector): New global variables.
14964         (began_page_in_end_macro): New static variable.
14965         (exit_flag): Deleted.
14966         (top_level_diversion::top_level_diversion): Initialize
14967         last_page_count.
14968         (top_level_diversion): More elaborate test for whether
14969         cleanup_and_exit() should be called.
14970         Set began_page_in_end_macro if the end macro isn't yet finished.
14971         * troff/div.h (top_level_diversion::last_page_count): New data
14972         member.
14973         (top_level_diversion::set_last_page): New function.
14974         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14975         * troff/env.c (do_break): Zero prev_line_interrupted.
14976         * troff/input.c (exit_flag): Delete declaration.
14977         (LAST_PAGE_EJECTOR): New magic cookie.
14978         (token::next): Handle LAST_PAGE_EJECTOR.
14979         (exit_groff): Set exit_started and done_end_macro instead of
14980         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14981         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14982         another ejection after setting seen_last_page_ejector.
14984 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14986         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14988         * macros/tmac.e (TH): Make sure there's room for the initial
14989         header.
14991         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14992         Set FVS in points rather than units.
14994 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14996         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14997         position of empty slots.
14999 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
15001         * ps/devps/S: Fix height and depth of parenrightex.
15002         * ps/devps/symbol.diff: Regenerate.
15004 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
15006         * tmac.e (u): Do underlining as in -mgs.
15008 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
15010         * tty/tty.c (tty_printer::end_page): If overstriking is
15011         suppressed, still turn overstruck horizontal and vertical lines
15012         into +.
15014         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15015         2.1.
15017         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15019 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
15021         * Version 1.05 released.
15023 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
15025         * tty/tty.c: Instead of keeping an array of glyphs and then
15026         sorting it, keep a ordered linked list of glyphs for each line.
15028         * driver/driver.h: Include stddef.h.
15030         * tty/tty.c (compare_glyph):
15031         * refer/refer.c (rcompare):
15032         * troff/env.c (compare_ranges): Arguments of qsort comparison
15033         function should be const void *.
15035         * troff/number.c (parse_term):
15036         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15037         switch statement.
15039         * refer/label.y (consider_authors): Don't access variables
15040         constructed under a condition outside that condition: put braces
15041         round for statement containing declaration; redeclare use of same
15042         variable later.
15044         * pic/pic.y (text_expr): Delete production that allows
15045         parenthesised text_expr.
15046         (expr): Allow a conditional_expr to appear in parentheses.
15047         (conditional_expr): Rename to any_expr.
15049         * mm: Install new version 1.01 from jh.
15051         * lib/font.c (font::get_width): Cache scaled widths.
15052         (font::font): Initialize widths_cache.
15053         (font::~font): Destroy widths_cache.
15054         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15056 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
15058         * c++test.c, c++test.ref: New files.
15059         * Makefile: Check that the C++ compiler works.
15061         * ps/tmac.pspic (PSPIC): Do a break.
15063         * ps/tmac.ps: Move definition of PSPIC into...
15064         * ps/tmac.pspic: New file.
15065         (PSPIC): Draw box around picture, but make it invisible to grops.
15066         * ps/tmac.ps: Load tmac.pspic.
15067         * ps/Makefile: Install tmac.pspic.
15069 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
15071         * lib/font.c (scale_round): If n is negative,
15072         subtract .5 before truncating floating point result.
15074         * lib/fontfile.c: Include <errno.h>.
15076 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
15078         * driver/input.c (get_char): Inline. Don't update current_lineno.
15079         Change callers to up date current_lineno if necessary.
15080         Use get_char() instead of getc(current_file).
15082 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
15084         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15086 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
15088         * tty/tty.c (tmac.tty): Define \(rg as (R).
15090 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
15092         * lib/lib.h: New define a_delete.
15093         * Use a_delete instead of delete when deleting an array of objects
15094         without destructors.
15096         * lib/lib.h: Rename adelete to ad_delete.
15097         * Change uses of adelete.
15099 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
15101         * eqn/eqn.y: Include lib.h.
15103         * troff/node.c (grow_font_table): Delete old_font_table.
15105         * mm: Install new version from jh.
15107 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
15109         * tbl/table.h (format_type): Make global instead of local to class
15110         entry_format.  Prefix enumerators with FORMAT_.
15111         * tbl/table.c, tbl/main.c: Corresponding changes.
15112         * refer/token.h (token_type): Make global.  Prefix enumerators
15113         with TOKEN_.
15114         * refer/token.[ch]: Corresponding changes.
15115         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15117         * troff/div.c (node::set_vertical_size): Don't name argument.
15119 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
15121         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15122         * lib/lib.h: Define adelete accordingly.
15123         * pic/object.c (graphic_object::graphic_object):
15124         * tbl/main.c (format::~format):
15125         * tbl/table.c (table::~table):
15126         * refer/ref.c (reference::~reference, reference::merge,
15127         reference::insert_field, reference::delete_field): Use adelete.
15129         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15130         * refer/token.h:
15131         * tbl/table.h: Corresponding changes.
15133         * common.c (common_output::dashed_arc, common_output::dotted_arc):
15134         Ensure total_angle is positive.
15136 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
15138         * refer/ref.c (reference::merge, reference::insert_field,
15139         reference::delete_field): Avoid delete[0].
15141         * refer/token.c (init_special_chars): Move calls to cmupper
15142         outside calls to init_two_char_letter to work around bug in gcc
15143         2.0.
15145 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
15147         * lib/new.c (operator new): Use __builtin_new for g++.
15149         * pic/object.c (graphic_object::~graphic_object):  Don't use
15150         delete [] on 0.
15152         * pic/object.c (output::compute_scale): Initialize max_width and
15153         max_height.
15155 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
15157         * troff/input.c (write_request): Call fflush.
15159         * troff/node.h (class composite_node): Move declaration to node.c
15160         * troff/input.c (charinfo_to_node): Rename to ...
15161         (charinfo_to_node_list): Return node list rather than composite
15162         node.
15163         * troff/node.c (make_composite_node): New function.
15164         (make_node, add_char): Call make_composite_node instead of
15165         charinfo_to_node.
15166         (class composite_node): Add a tfont * member.  Delete font_size
15167         member.
15168         (composite_node::composite_node, composite_node::copy,
15169         composite_node::size): Corresponding changes.
15170         (composite_node::tprint): Provide constant spacing, emboldening
15171         and track kerning as specified in tfont.
15172         (composite_node::width): Change width calculation accordingly.
15173         * troff/env.h (environment::composite): New member.
15174         (environment::is_composite, environment::set_composite): New
15175         functions.
15176         * troff/env.c (environment::environment): Initialize composite.
15177         * troff/input.c (charinfo_to_node): Call
15178         environment::set_composite.
15179         * troff/node.c (make_composite_node, make_glyph_node): Use the
15180         plain version of the tfont if the environment is composite.
15182         * troff/node.c (font_info::get_space_width): Additional argument
15183         giving space_size.  Handle constant space correctly. Scale by
15184         space_size unless constant spaced.
15185         (env_sentence_space_width): New function.
15186         * troff/node.h: Declare it.
15187         * troff/env.h (environment::get_space_size,
15188         environment::get_sentence_space_size,
15189         environment::get_narrow_space_width,
15190         environment::get_half_narrow_space_width): Make inline.
15191         (environment::get_space_width): Make inline.  Just call
15192         env_space_width.
15193         * troff/env.c: Delete definitions for funtions made inline.
15194         (environment::space_newline, environment::space): Use
15195         env_sentence_space_width(). Don't scale by space_size.
15196         * troff/node.h: Move declarations of env*space_width() functions
15197         into env.h.
15199 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
15201         * macros/tmac.s (PS): Don't try to set negative indent.
15203 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
15205         * pic/pic.y: Fix min function.
15207 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
15209         * man/mdate.sh: Clear LANGUAGE.
15211 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
15213         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15214         * pic/lex.c: New COMMAND keyword.
15215         * pic/pic.y (print_args, print_arg): New rules.
15216         (placeless_element): Use print_args for PRINT.
15217         New COMMAND element.
15219 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
15221         * troff/input.c (terminal): Handle missing argument correctly.
15223         * pic/pic.y (text_expr): New rule.
15225         * pic/pic.y: Implement := operator.
15227 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
15229         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15230         mdoc.
15232 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
15234         * ps/devps/dingbatsrmap: Include this in the distribution.
15236         * macros/tmac.doc: Replace with new version from 2nd Networking
15237         Release. Fix loading of doc-* files.
15238         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15239         * macros/tmac.doc.old: New file.  Apply fixes that had been
15240         applied to old tmac.doc.
15241         * macros/tmac.andoc: Check that we're running under groff.
15242         * macros/Makefile: Rework.
15244 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
15246         * tbl/table.h (format_type): 
15247         * refer/token.h (token_type): If NESTED_TYPES is defined, use
15248         typedef to make these types visible at file scope.
15249         * Makefile: Add NESTED_TYPES configuration option.
15251         * troff/div.c (mark): At the top level use the value of
15252         nl_reg_contents rather than the current vertical position.
15254 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
15256         * tty/tty.c: Implement \D for horizontal or vertical lines.
15257         (tty_printer::set_char): Use vec_used+2 as serial number.
15258         Don't allow size of vector to exceed USHRT_MAX-2.
15259         Split off part into...
15260         (tty_printer::add_char): New function.
15261         (tty_printer::draw): New function.
15262         (compare_glyph): Handle equal serial numbers.
15263         (tty_printer::end_page): Handle overstruck characters from \D.
15264         (main, usage): Implement -d option.
15266 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15268         * tbl/main.c (process_format):
15269         * eqn/text.c (split_text):
15270         * troff/input.c (token::next): Use inner block for declarations
15271         with initializers in switch statement.
15273 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15275         * pic/common.c (common_output::dash_line): Cope with zero-length
15276         lines.
15278 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15280         * Version 1.04 released.
15282 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15284         * macros/tmac.an (TH): Define a macro an-init to define variables
15285         based on command line arguments.
15286         (an-header): Call it.
15288 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15290         * Makefile (install.mm): Rename to install.dwbmm.
15292         * Makefile: Integrate mm.
15293         * mm: New directory.
15295 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15297         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15298         <sys/types.h>.
15300         * pic/troff.c (troff_output::simple_spline,
15301         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15302         shadowing parameter.
15304         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15306         * lib/ptable.h: Add explicit casts when converting from unsigned
15307         long to unsigned.
15309         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15310         * dvi/devdvi/Makefile: Install SA, SB.
15312         * refer/indxbib.c: Add declaration of mktemp.
15314         * refer/lookbib.c: Add declaration of isatty.
15316 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15318         * pic/lex.c (interpolate_macro_with_args):  While collecting
15319         arguments, keep track of whether we're in a string.
15321 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15323         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15324         down with \v, so as to avoid problems with top of page trap
15325         setting no space mode.
15327 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15329         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15331 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15333         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15334         Improve error message.
15336 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15338         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15339         printf("%03o");
15341 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15343         * groff.c (possible_command::execp): Always use _exit() after a
15344         failed exec.
15346         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15347         NO_SYS_WAIT_H   configuration options.
15348         * groff.c: Use these options.  Use POSIX-style macros to extract
15349         fields from the status returned by wait().
15351 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15353         * tbl/table.c (table::compute_separation_factor): Allow the
15354         separation factor to drop to 0.
15356 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15358         * refer/search.c: Include <errno.h>.
15360 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15362         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15364         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15365         C++. 
15367         * pic/lex.c (input_stack::bol): Move definition out of class body.
15369         * pic/main.c: On MSDOS munge argv[0].
15371         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15373         * lib/ptable.c (hash_string): Use unsigned long rather than
15374         unsigned.
15375         (next_ptable_size): Use unsigned rather than int.  Give an error
15376         message if we've hit the largest table size.
15377         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15378         table size.
15380         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15381         flags as const unisgned long rather than as enums.
15383         * pic/output.c: Deleted.
15385         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15387         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15388         Add additional argument.
15389         (line_entry::note_double_vrule_on_{left,right}): Set value of
15390         douvle_vrule_on_{right,left} flag according to argument.
15391         (simple_line_entry::simple_print,
15392         simple_line_entry::double_line_print): If adjacent to double vrule
15393         on a corner extend rather than shorten the rule by half the double
15394         vrule sep.
15396         * troff/number.c (parse_term): In checking for overflow, handle the
15397         case where the current horizontal position is negative.
15399 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15401         * pic/object.c (draw_arrow): Check for object having zero length.
15403 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15405         * eqn/main.c (do_file): Split off inline equation handling into...
15406         (inline_equation): New function.  Search for starting delimiter
15407         using...
15408         (delim_search): New function. Don't recognize a delimiter that
15409         occurs in the name of an escape sequence, number register, string
15410         etc.
15412 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15414         * eqn/delim.c (delim_box::compute_metrics): Don't call
15415         define_extensible_string if left is 0.
15416         (delim_box::output):  Don't print the left delimiter if left is 0.
15417         (delim_box::debug_print): Check for left == 0 before calling printf.
15419 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15421         * troff/Makefile (majorminor.c): Include only digits in
15422         minor_version.
15424 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15426         * refer/dirnamemax.c: new file.
15427         * refer/genlimits.c: Deleted.
15428         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15429         Don't check path length.
15430         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15431         * Makefile: Add PATHCONF_MISSING option.
15433         * refer/indxbib.c (get_cwd): New function.
15434         (main): Use get_cwd().
15435         * lib/getcwd.c: New file.
15436         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15437         GETCWD in SUBFLAGS.
15438         * lib/Makefile: Compile getcwd.o.
15440         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15441         userdict.
15443         * refer/indxbib.c (main): Check success of mktemp.
15445         * lib/tmpfile.c: New file.
15446         * lib/Makefile: Add tmpfile.c.
15447         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15448         * ps/ps.h: Delete declaration of mktemp().
15449         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15450         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15451         * driver/driver.h: No need now to include errno.h.
15453         * everywhere: Set errno to 0 before calling fopen().
15455         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15456         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15457         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15459 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15461         * troff/env.h (translate_space_to_dummy): Declare it.
15462         * troff/env.c (environment::space_newline, environment::space):
15463         If translate_space_to_dummy is set then make the width of spaces 0.
15464         * troff/input.c (translate): If the second character of a
15465         translation is a space, translate to unbreakable space.  If the
15466         first character is a space, set or clear translate_space_to_dummy
15467         according to whether the second character is \&.  Weird!
15469 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15471         * groff.c (run_commands): Don't use non-zero exit code because a
15472         command gets SIGPIPE.
15474         * groff.c, groff.sh: Use -mXps with -TXps.
15476         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15477         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15478         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15479         (ps_printer::special): New specials invis and endinvis.
15480         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15481         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15482         (ps_printer::end_page): Check that invis_count == 0.
15483         (ps_printer::invis_count): New member.
15484         (ps_printer::ps_printer): Initialize invis_count to 0.
15486         * troff/env.c (environment::hyphenate_line): Hyphenation
15487         indicator at beginning of word inhibits splitting after -, \(em
15488         etc.
15490         * pic/pic.y (element): Allow another element to follow } without
15491         any intervening separator.
15493 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15495         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15497 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15499         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15500         declaration of wait() in header files.
15501         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15503         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15505         * lib/lib.h: Declare return type of strerror as char *.
15507         * man/Makefile: Add g flag to sed substitutions.
15508         * Makefile (shgroff, bindist): Likewise.
15510 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15512         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15513         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15514         userdict.
15516 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15518         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15519         userdict.
15521 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15523         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15524         group.
15526 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15528         * troff/input.c (define_number_reg):  If currently undefined,
15529         don't define it if the argument is an invalid expression.
15531         * Makefile: Ignore return value of `if' commands without `else'
15532         parts.
15534         * Makefile: Split up CPPDEFINES into a series of separate
15535         configuration options.
15537         * troff/input.c (init_registers): Use time_t instead of long
15538         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15539         than passing pointer.
15540         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15542         * lib/Makefile (fontpath.h): Use gendef.
15544 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15546         * troff/input.c (input_iterator::shift): Delete argument name.
15547         * troff/node.c (suppress_output_file::really_begin_page,
15548         suppress_output_file::really_transparent_char, node::ascii_print,
15549         node::tprint): Delete names of unused arguments.
15551 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15553         * refer/label.y (string):  Pass $4 to command_error.
15555 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15557         * Version 1.03 released.
15559 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15561         * Makefile: Pass definition of SHELL in SUBFLAGS.
15563         * gendef: New file.
15564         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15565         ps/Makefile: Use gendef to construct header files that are
15566         constructed from the Makefile.
15568         * macros/Makefile: make all should build stripped version of tmac.e.
15570         * refer/Makefile (clean): Remove y.output.
15572 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15574         * ps/pfbtops.c (main): Add -v option which prints out a version
15575         number.
15576         * ps/Makefile (pfbtops): Link with libgroff.a.
15578 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15580         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15581         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15583         * refer/lkbib.c (main): Always terminate reference with blank
15584         line.
15585         * refer/lookbib.c (main): Likewise.
15587         * refer/linear.c (file_buffer::load): Check that the file is not a
15588         binary file.
15590         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15591         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15592         Delete second inclusion of <sys/param.h>.
15594 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15596         * troff/token.h (token::special): Deleted.
15598         * tbl/main.c (process_format): Rework so that opt->tab_char is
15599         recognized only when appropriate.
15601         * ps/Makefile (clean): Remove pfbtops.
15603 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15605         * lib/font.c (text_file::next): Don't return if we have got a
15606         blank line.
15608 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15610         * refer/refer.c (store_reference): Get hash code from old_table[i]
15611         when rehashing the table.
15613 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15615         * eqn/box.c (box::top_level): Save size and prev size using \R and
15616         restore it afterwards. Set the size to the size at the beginning
15617         of the line.
15618         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15619         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15621         * refer/Makefile (limits.h): Use ./genlimits.
15623 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15625         * refer/index.c: Delete declarations of stat() and fstat().
15627 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15629         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15631 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15633         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15635 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15637         * troff/input.c (token::get_char): Handle \e.
15639         * refer/linear.c: Delete declarations of fstat() and stat().
15641 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15643         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15644         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15646 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15648         * troff/input.c (do_define_macro): Improve error handling for end
15649         of file while defining macro.
15651 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15653         * eqn/box.h: Fix declaration of set_gsize.
15654         * eqn/box.c (set_gsize): Make argument const char *.
15655         (gsize): Declare as char *.
15656         * eqn/main.c (main): Don't convert gsize to int.
15657         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15659         * Version 1.02 released.
15661 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15663         * macros/tmac.andoc: New file.
15664         * macros/Makefile: Install tmac.andoc.
15666         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15667         operator new and delete on OP_DELETE_BROKEN not being defined.
15668         * Makefile: Mention OP_DELETE_BROKEN.
15670 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15672         * Makefile (bindist): Pass SUBFLAGS.
15674 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15676         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15678         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15679         parameter.
15681         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15683         * ps/ps.h, ps/psrm.c: Make comment_table and
15684         header_comment_table local to resource_manager::process_file.
15686         * groff.sh: With -TXps pass -printCommand option to gxditview.
15688         * groff.c (possible_command::print): Implement using
15689         append_arg_to_string.
15691         * xditview: Merge in new implementation with own ChangeLog.
15693 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15695         * groff.c (main): Implement PRINT_OPTION.
15696         (append_arg_to_string): New command.
15697         (device_table): Set PRINT_OPTION flag for Xps.
15699 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15701         * troff/groff.h: Rename to troff.h.
15703         * pic/lex.c (lookup_keyword, docmp): New functions.
15704         (get_token): Use new lookup_keyword.
15705         Don't include key.h.
15706         * pic/key.[ch], pic/pic.gperf: Deleted.
15707         * pic/Makefile: Remove gperf stuff.
15709         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15710         into output.h.
15711         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15713         * troff/Makefile, troff/node.c: Move definition of
15714         STORE_WIDTH into node.c.
15716         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15718 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15720         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15721         dvi/devdvi/texb.map: Add lq and rq.
15722         dvi/devdvi: Regenerate fonts.
15723         * ps/devps/textmap: Add lq and rq.
15724         * ps/devps: Regenerate fonts.
15725         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15726         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15728         * pic/object.c (position_rectangle): When checking radius
15729         cope with possiblity that width or height is negative.
15730         (box_object::box_object): Have separate xrad and yrad with
15731         signs matching signs of dim components.
15732         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15733         (box_object::print): With rounded boxes use absolute values
15734         for dim and rad arguments.
15736         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15737         in fontpath.h.
15739         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15741         * various files: Add explicit destructors to keep Saber CC +d
15742         happy.
15744 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15746         * eqn/box.c (box::top_level): Restore fonts correctly after
15747         font changes in line containing inline equation.  Also
15748         restore previous font as well as current font.
15749         * eqn/pbox.h: Define necessary string and register names.
15751         * troff/input.c (token::next): Case 'R' calls do_register.
15752         (do_register): New function.
15754 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15756         * groff.c, groff.sh: Support Xps device.  Allow each device
15757         to have a pseudo_name and a real_name.
15759         * groff.c (run_commands): Don't print `Broken pipe' messages.
15761         * ps/pfbtops.c: New file.
15762         * ps/Makefile: Add pfbtops.
15764         * troff/number.c (parse_term): Improved error message.
15766 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15768         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15770         * Makefile: Integrate refer.
15771         * refer: New directory.
15772         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15773         man/lkbib.man: New files.
15774         * man/Makefile: Support refer man pages.
15776         * lib/lib.h: Declare is_prime.
15777         * lib/prime.c: New file.
15779         * troff/input.c (macro_source): New function.
15780         (init_input_requests): Bind "mso" to macro_source.
15782         * troff/env.c (environment::possibly_break_line): Maintain
15783         pointer to pointer to node to be split in ndp so as to avoid
15784         using address of freed node.
15786         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15787         pointer to first node to be hyphenated in startp so as to
15788         avoid using address of freed node.
15790         * troff/env.c (class trie, class hyphen_trie): Make the
15791         elements of the trie be of type char not unsigned char.
15792         Declare arguments to be const char* instead of unsigned char *.
15793         
15794         * troff/env.c (hyphenate): Initialize hbuf[0].
15796         * troff/input.c (set_string): Declare p to be char * and cast
15797         *p to unsigned char when necessary.
15799         * troff/input.c (do_define_macro): Declare s to be const
15800         char*. Cast element to unisgned char when necessary, Declare
15801         d to be an int.  Handle EOF better.
15803         * troff/Makefile, troff/input.c: Different scheme for passing
15804         definitions of MACROPATH, HYPHENFILE and DEVICE.
15806 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15808         * tty/devascii/R.proto: Delete entry for em.
15809         * tty/devlatin1/R.proto: Likewise.
15811 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15813         * troff/input.c (translate): Stop when we get a space. Treat eof
15814         like newline.
15816         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15818 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15820         * tbl/main.c (process_format): A font name following a `f'
15821         modifier that starts with a digit can be only one character long.
15822         Also deal with EOF on the second character of the font name.
15824 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15826         * troff/input.c (token::next): Turn \~ into an
15827         unbreakable_space_node.
15828         * troff/node.c (unbreakable_space_node): New class.
15829         * troff/node.h: Declare it.
15831 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15833         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15834         it's >= 0, before outputting it as a single byte.
15836 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15838         * lib/font.c: Make font_char_metric::code an int.
15839         (font::get_code): Change return type to int.
15840         (font::load): Allow code to be arbitrary integer.
15841         * lib/font.h (font::get_code): Change return type to int.
15842         (font::number_to_index): Change argument type to int.
15843         * troff/input.c (token::next):  In case 'N', allow any value.
15844         Store value in token::val.
15845         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15846         (token::get_char, token::add_to_node_list, token::process): Get
15847         number from val.
15848         (charinfo::set_number): Change argument to int.
15849         (charinfo::get_number):  Require that NUMBERED flag be set.
15850         (get_charinfo_by_number): Store numbered characters not between 0
15851         and 255 in a dictionary.
15852         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15853         to int.
15854         (charinfo::number): Change type to int.
15855         (charinfo::set_number): Change type of set_number to int.
15856         * troff/node.c (troff_output_file::put_char_width,
15857         troff_output_file::put_char): Test whether character is numbered
15858         using charinfo::numbered().
15859         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15860         values of num.
15861         * lib/nametoindex.c: New implementation to cope with arbitrary
15862         number characters.
15864         * troff/input.c (token::operator==): Test val for
15865         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15866         TOKEN_SIZE.
15868         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15869         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15871 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15873         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15874         variable.
15876         * all Makefiles: rm targets of cp and >.
15878         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15879         it.
15881         * eqn/lex.c (def_table): Add dollar.
15883 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15885         * troff/input.c (do_width): Push back newline before closing delim
15886         like do_bracket.
15888 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15890         * groff.c (possible_command::prepend_arg): New function.
15891         (main): Prepend device -m option.
15892         * groff.sh: Put device -m options before command-line options.
15894 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15896         * macros/tmac.an (IP): Quote argument to TP.
15898         * ps/ps.c (main): New option -b, which sets...
15899         (broken_flags): New variable.
15900         (ps_printer::~ps_printer): Incorporate the setup section in the
15901         prolog if (broken_flags & NO_SETUP_SECTION).
15902         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15903         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15904         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15905         ps_printer::print_needed_font_comment,
15906         ps_printer::print_supplied_font_comment,
15907         ps_printer::print_include_font_comments,
15908         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15909         ps_printer::read_download_file, read_document_fonts, add_font,
15910         skip_line, parse_fonts_arg, document_font::document_font,
15911         document_font::~document_font, document_font::download,
15912         ps_output::include_file):  Deleted.
15913         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15914         rather than %!PS-Adobe-2.0.  Make calls to
15915         resource_manager::need_font for each font that we used. Replace
15916         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15917         print_supplied_font_comment, print_needed_font_comment by call to
15918         resource_manager::print_header_comments. Output %%Orientation
15919         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15920         Don't output the prolog directly.  Instead call
15921         resource_manager::output_prolog.  Only define #copies when ncopies
15922         > 1.  Delete calls to print_include_font_comments  and
15923         download_fonts.  Add call to resource_manager::document_setup.
15924         (ps_printer::do_file): Call resource_manager::import_file instead
15925         of including it ourselves.
15926         (ps_printer::do_import): Likewise.  Also don't call
15927         merge_import_fonts. Push userdict on the dictionary stack before
15928         and pop it afterwards.
15929         Move declaration of ps_output into ps.h.
15930         * ps/psrm.c: New file implementing resource_manager class.
15931         * ps/ps.h: New file declaring ps_output and resource_manager
15932         classes.
15933         * ps/devps/zapfdr.ps:
15934         * ps/devps/symbolsl.ps:
15935         * ps/devps/prologue:  Use 3.0 conventions.
15936         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15937         Add default definition of BROKEN_SPOOLER_FLAGS.
15938         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15939         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15941 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15943         * etc/grog.pl: New file.
15944         * Makefile (GROG): New variable.
15945         Add GROG to SUBFLAGS.
15946         * etc/Makefile (GROG): New variable.
15947         (install.nobin): Install $(GROG) rather than grog.sh.
15949 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15951         * eqn/special.c (special_box::compute_metrics): Make the input and
15952         output strings the same.  Get the new height and depth from the
15953         predefined height and depth registers.  Also make subscript kern
15954         and skew available.
15955         (special_box::compute_subscript_kern, special_box::compute_skew):
15956         New functions.
15958         * eqn/box.c (pointer_box::compute_skew,
15959         simple_box::compute_metrics, box::top_level)
15960         * eqn/text.c (prime_box::compute_metrics,
15961         prime_box::comput_subscript_kern)
15962         * eqn/limit.c (limit_box::compute_metrics):
15963         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15964         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15965         negative numbers in `nr' requests with a leading 0.
15967 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15969         * eqn/special.c: New file.
15970         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15971         Add new rule for simple.
15972         * eqn/lex.c (token_table): Add SPECIAL.
15973         * eqn/box.h: Declare make_special_box.
15974         * eqn/Makefile: Add special.[co].
15976 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15978         * ps/devps/prologue: Possibly set packing to true while defining.
15979         Create grops dictionary here.  Initialize local variables before
15980         defining procedures.
15981         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15982         the dictionary stack. Set strokeadjust and overprint to false if
15983         the relevant operators are defined.
15984         (PEND): New procedure.
15985         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15986         prologue.  Do everything else in the setup section.
15987         (ps_printer::do_import): Just call PBEGIN and PEND around the
15988         picture. Also push userdict before, and pop it afterwards.
15990 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15992         * troff/node.c (bracket_node::tprint): Brackets were being printed
15993         1m too low.
15995         * macros/tmac.an (SH, SS): Set fill mode.
15997 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15999         * troff/div.c (top_level_diversion::begin_page): Set
16000         high_water_mark to 0.
16002 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
16004         * man/mdate.sh: New file.
16005         * man/mdate.c: Deleted.
16006         * man/Makefile: Use mdate.sh instead of mdate.
16007         (mdate): Deleted.
16009         * eqn/lex.c (do_gsize): Supply missing argument to error message.
16011 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
16013         * man/mdate.c: New file.
16014         * man/*.man: Replace modification date by @MDATE@.
16015         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16016         (mdate): New target.
16018         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16019         Remove illegal input characters.
16021 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
16023         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16025 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
16027         * troff/div.c (begin_page): Change behaviour when
16028         !first_page_begun and !break_flag.
16030         * troff/input.c (do_name_test): Return 0 if argument is empty.
16032         * troff/input.c (read_long_escape_name): Require closing ] to be
16033         at same input level as opening [.
16035         * troff/input.c (read_increment_and_escape_name): New function.
16036         (get_copy, process_input_stack): Use this for \n.
16038 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
16040         * troff/div.c (top_level_diversion::begin_page): Ignore the
16041         current value of page_number if !first_page_begun.
16043         * groff.c (main): Fix declaration of buf.
16045         * troff/input.c (do_name_test): New function.
16046         (token::next): Implement \A.
16047         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16048         (token::description, token::add_to_node_list, token::process):
16049         Handle TOKEN_ESCAPE.
16050         * troff/token.h: New token TOKEN_ESCAPE.
16052 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
16054         * pic/main.c (do_picture): Allow space before and after filename
16055         following `<'.  Check that the filename is not empty.
16057 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
16059         * Version 1.01 released. 
16061         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16063         * dvi/tmac.dvi: ftr HR to H.
16065         * macros/tmac.e: Round up computation of $r.
16067         * xditview/tmac.X:  Don't give up completely in compatibility mode.
16068         Use \n(.s instead of \n[.s].
16070         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16071         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16072         Add u to factors inside \s[...]. Rename frac to dvi-frac.
16073         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16074         short names in the char definitions.
16076         * ps/tmac.ps: Don't give up completely in compatibility mode.
16077         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16078         quote in front of \n(.s. Add u to factors inside \s[...].
16080 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
16082         * tty/tmac.tty: Call the nroff request.
16084         * macros/tmac.e ((x, )x):  Better definitions that work properly
16085         in a diversion.
16086         (@0, @1): Helper macros for (x.
16088         * macros/tmac.e ($s, hl): Use \l rather than \D.
16090         * tty/tmac.tty: Make it work better in compatibility mode.
16091         (pchar): Rename to tty-char.
16093         * macros/tmac.e (@E): New macro.
16094         (r, i, b, rb, bi): Use @E.
16096         * macros/tmac.e (@F): Don't use (;...) syntax.
16098         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
16099         it was modified for groff.
16101         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16103         * macros/tmac.e (<., .>): Removed.
16104         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16106         * macros/tmac.e: Remove check that groff is being used.
16108         * macros/tmac.e (@C): Change families only if using groff; turn
16109         compatibility mode off while changing familes. Save compatibility
16110         mode before changing families and restore it afterwards.
16112         * macros/tmac.e (@h): Remove test for offset + line length.
16114         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
16115         (lo, th, ac): Define to call @S instead of using als.
16117         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16118         the ratio of the vertical spacing to the point size in units
16119         expressed as a percentage.  Use these instead of $10r and $10R,
16120         Delete $10r and $10R.
16122         * lib/font.c (font::load): In default computation of space_width,
16123         divide by sizescale.  Use scale_round.
16125         * macros/tmac.an (TP): Don't call `nf'.
16126         (an-do-tag): Don't call `fi'.
16128 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
16130         * troff/input.c (process_input_stack): Handle the case where
16131         spaces at the beginning of an input line are followed by a
16132         newline.
16134 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
16136         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16137         * groff.sh: Use pic -x with the dvi device.
16139         * dvi/devdvi/FontMakefile (H): Don't use -s.
16141         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16142         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16143         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16144         in FONTS.
16146 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
16148         * ps/psfig.diff: New file.
16149         * ps/tmac.psfig: New file.
16151 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
16153         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16154         (]-): Don't call ref*do-tl.
16156         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16158         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16159         (fn@do-FS): Rename to fn*do-FS.
16161         * troff/input.c (transparent_translate): New function.
16162         (process_input_stack): Apply transparent_translate before calling
16163         diversion::transparent_output(unsigned char).
16165 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
16167         * troff/input.c (do_define_macro): Define the macro before calling
16168         skip_line.
16170         * xditview/Makefile: Add DEVICES variable.  Change install target
16171         to use this.
16173 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
16175         * groff.c (run_commands): Handle the possibility that there are
16176         child processes other than those forked by us.
16178 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
16180         * lib/string.c (string::append): New function.
16181         * lib/stringclass.h: Declare it.
16183 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
16185         * eqn/main.c (main): New option -N which sets
16186         no_newline_in_delim_flag. 
16187         (do_file): If no_newline_in_delim_flag is set don't allow newlines
16188         in delimiters.
16189         * groff.c (main): Pass -N on to eqn.
16190         (help, synopsis): Mention -N.
16191         * groff.sh: Implement -N.
16193 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
16195         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16196         (]-): Call ref*do-tl if ref*need-tl is non-zero.
16197         (XP): Allow as initializer.
16199 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
16201         * troff/env.c (environment::wrap_up_field): If field_spaces are
16202         non-zero and we have a current_tab, subtract padding from
16203         tab_distance.  If this makes tab_distance <= 0, use the next tab
16204         stop instead.  If there isn't any next tab or it's a left tab,
16205         wrap up the current tab.
16206         (environment::start_field): Initialize tab_precedes_field.
16207         (environment::wrap_up_tab): If there's a current field, update
16208         pre_field_width, field_distance and tab_precedes_field.
16209         * troff/env.h (environment::tab_precedes_field): New member.
16211 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
16213         * ps/ps.c (ps_printer::do_file): New function.
16214         (ps_printer::special): Bind to `file' special.
16215         (ps_printer::do_exec): Set ndefined_styles to 0.
16217 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
16219         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16220         Avoid stripping first character from the start of unrecognized
16221         escapes.  Use lex_error instead of error to report errors.
16222         * eqn/lex.c (get_token): Rework handling of escapes.
16223         (lex_error): Move declaration into...
16224         * eqn/eqn.h.
16226         * xditview/xditview.c (main): Make -page option work.
16228         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16230 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
16232         * macros/tmac.s (B2): Correct size of box.
16234 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
16236         * macros/tmac.s (B2): Postpone drawing the box until in the
16237         top-level diversion.
16239         * tty/tmac.tty: Add font translations for C, CR, CW.
16241         * groff.c (synopsis, help): Document -i.
16242         * groff.sh: Implement -i.
16244         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16245         Simplify the construction of SN.
16247         * troff/number.c (parse_term): Give `|' a higher precedence.
16248         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16249         accordingly.
16251         * macros/tmac.s (B2): Use par@finish instead of par@reset.
16253 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
16255         * lib/string.c (string::move): New function.
16256         * lib/stringclass.h: Declare it.
16258 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
16260         * troff/env.c (distribute_space): Add optional argument
16261         `force_forward'.
16262         (environment::wrap_up_field): Call distribute_space with
16263         `force_forward' argument of 1.
16265 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
16267         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16268         Inline it.  Move reallocation into...
16269         (string::grow1): New function.
16270         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16271         dependencies to include library header files.
16272         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16274 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16276         * macros/tmac.s (@NH): Use the same number registers than -ms does
16277         for the heading level counters.  Use the same string that -ms does
16278         for the number for this heading.
16280 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16282         * lib/new.c (operator new): Cast result of malloc to char *.
16284         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16285         is not null.
16287 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16289         * groff.c (main): Support -i.
16291 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16293         * pic/pic.h: Include <osfcn.h>.
16295         * ps/ps.c: Add declaration of mktemp.
16297         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16298         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16299         argument as union wait *.
16300         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16301         argument to union wait *.
16303 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16305         * tty/tmac.tty: Add definition of \(co.
16307         * pic/object.c (make_arc): Only increase radius when radius
16308         strictly less than d.
16309         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16310         more than once.
16312         * troff/env.c (environment::environment(symbol),
16313         environment::environment(const environment *)):  Initialize
16314         input_trap_count.
16316 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16318         * tbl/main.c (main): Add exit(0).
16320         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16322         * pic/main.c (main):
16323         * eqn/main.c (main):
16324         * tbl/main.c (main):
16325         * etc/soelim.c (main):
16326         * driver/printer.c (printer::~printer):
16327         * troff/node.c (real_output_file::~real_output_file,
16328         real_output_file::flush):  Check for errors on stdout.
16330         * most files: Add 1991 to copyright notice.
16332         * macros/tmac.s: Don't test \n(.x and \n(.y.
16334         * troff/input.c (token::next): Rename `escape_char' label to
16335         `handle_escape_char' and `normal_char' label to
16336         `handle_normal_char'.
16338 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16340         * groff.c (main, synopsis, help): Support -a option.
16341         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16342         to trflags while parsing options.
16344 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16346         * troff/number.c (parse_term): With `m', `M' and `n' scale
16347         indicators, convert scale factor to hunits before scaling.
16349 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16351         * lib/font.c (scale_round): Better test for overflow when n is
16352         negative.
16354 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16356         * tbl/main.c (process_format): Add second argument of type
16357         options*. Change callers.  Allow opt->tab_char as well as '\t'
16358         between format items.
16360 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16362         * macros/tmac.an (PD): With no arguments, make sure register PD is
16363         at least \n[.V].
16364         (TH): Call PD with no argument, instead of setting register PD
16365         directly.
16367 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16369         * Version 1.00 released.
16371 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16373         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16375         * dvi/devdvi/DESC: Mount CW instead of CR.
16377         * dvi/tmac.dvi: Add definition of \(tm.
16379         * dvi/devdvi/texsy.map: Add lh, and rh.
16380         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16381         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16383         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16384         * dvi/devdvi/Makefile: Install H.
16385         * dvi/devdvi/H: New file.
16387 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16389         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16390         be 0.
16392 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16394         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16396         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16398         * macros/tmac.s (@EN): Handle the case where the equation is empty
16399         but the label is not.
16401 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16403         * troff/groff.h: New warning category WARN_SPACE.
16404         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16405         WARN_SPACE to warning_table.
16406         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16407         is longer than two characters and is not defined, but the first
16408         two characters do make a defined name.
16410         * PROBLEMS: New file.
16412         * CHANGES: New file.
16413         * README-0.6, README-1.00: Deleted.
16415         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16416         * xditview/devX75/Makefile: Make devX75-12.
16417         * xditview/devX100/Makefile: Make devX100-12.
16419         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16420         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16422 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16424         * README-0.7: Rename to README-1.00.
16426         * macros/tmac.pic: New file.
16427         * macros/Makefile (install.nobin): Install tmac.pic.
16429 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16431         * troff/env.c (hyphen_word): Correct the test for whether the
16432         token is a hyphen.  Reset npos to 0.
16434         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16436 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16438         * macros/tmac.s (ds*common-end): Call par*reset.
16439         (PE): Likewise.
16440         (par@reset-indent): Deleted.
16442         * macros/tmac.s (@IP): Divert the label.
16444 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16446         * xditview/draw.c (setGC): Use a line width of .1m rather than
16447         .04m by default; round rather than truncate value.
16449         * tbl/table.c (class empty_entry): New class.
16450         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16451         (table::add_entry): Represent empty entries by objects of type
16452         empty_entry.
16453         (table_entry::line_type): Return -1.
16454         (table::determine_row_type): Ignore entries with line_type 0.
16455         Treat type -1 as non-lines.
16457 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16459         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16460         macros/tmac.s: Rename \(-d to \(Sd.
16462 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16464         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16465         * xditview/libXdvi/DviChar.c: Likewise.
16466         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16468 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16470         * troff/div.c (top_level_diversion::begin_page): Call
16471         init_output() if the_output is 0.
16473 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16475         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16476         ESCAPE_c.
16477         (get_copy): Turn \E into ESCAPE_E.
16478         (token::process, asciify): Handle ESCAPE_E.
16480         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16481         (RD): New macro.
16482         (DS): Implement `.DS R'.
16484 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16486         * macros/tmac.s (FS): New macro.
16488         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16490         * macros/tmac.s (cov*tl-init): Remove after first execution
16491         instead of aliasing to @nop.  Call top of page macro explicitly
16492         instead of setting trap; call @init first.  Set pg@top as top of
16493         page macro.
16494         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16495         cov*auto-init as top of page trap. 
16496         (TL, LP): Do a break instead of calling cov*tl-init.
16497         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16498         @FE; in this case also give a warning and always start another
16499         page. No need to set pg@top here.
16500         (cov*tl-init): Rename to cov*first-page-init.
16502         * macros/tmac.s (RP): Do `.pn 0'.
16503         (cov*tl-init): With RP format don't do `.pn 0'.
16505         * macros/tmac.s (pg@cs-top): Set no space mode.
16507         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16508         (cov*ab-init): Alias TL, AU and AI to these.
16510 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16512         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16513         (@EN): Do nothing unless \n[dl] is > 0.
16515 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16517         * pic/object.c (ellipse_object::radius): New function.
16519         * VERSION: Change version to 0.7.
16521         * tbl/table.c (block_entry::do_divert): Declare return type as
16522         void.
16523         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16525 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16527         * troff/column.c: New file.
16528         * troff/Makefile: Corresponding changes.
16530         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16531         Friend of vunits.
16533         * troff/div.c (top_level_diversion::space): If the space causes
16534         the first-page transition and springs a trap, truncate the space
16535         to 0.
16537 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16539         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16540         the document.
16542         * pic/troff.c (troff_output::line_thickness,
16543         troff_output::set_fill): Do a horizontal motion to compensate for
16544         the width of the \D escape sequence.
16546 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16548         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16549         (not X75).
16551         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16552         to printf.
16554         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16555         Supply empty definition.
16556         (text_entry::simple_print, simple_text_entry::simple_print):
16557         Delete declarations.
16558         (table::add_entry): Represent empty entries by objects of type
16559         `simple_entry'.
16561 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16563         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16565         * tbl/table.c (left_text_entry::add_tab): New function.
16567         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16568         initialize like LP.
16570 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16572         * troff/env.c (environment::start_field): Give an error message if
16573         there is no next tab.
16575 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16577         * troff/env.c (hyphenate): Skip initial elements with zero
16578         hyphenation code.
16580         * macros/tmac.s (par@init): Keep VS in points rather than units.
16582 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16584         * pic/main.c (main): Implement `-c' option.
16585         * pic/output.h: Declare make_tpic_output().
16586         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16587         protected.
16588         (tpic_output): New class.
16589         (tpic_output::tpic_output, tpic_output::set_pen_size,
16590         tpic_output::command, make_tpic_output): New functions.
16592 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16594         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16595         if they're not already defined.
16596         * tbl/table.c (init_output): Don't test \n(.g.
16598         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16599         `d', `r' and `c' conditions even in compatibility mode.
16601 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16603         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16604         box.
16606 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16608         * troff/env.h (environment::prev_line_interrupted): New member.
16609         (environment::get_prev_line_interrupted): New function.
16610         * troff/env.c (environment::newline): Set prev_line_interrupted.
16611         (environment::environment(const environment *),
16612         environment::environment(symbol)): Initialize
16613         prev_line_interrupted.
16614         * troff/input.c (process_input_stack): Don't give special
16615         treatment to space and newline at the beginning of the line if the
16616         previous line was interrupted.
16618 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16620         * eqn/eqn.y: Disallow PRIME by itself.
16621         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16622         PRIME.
16623         (def_table): Remove definition of '.  Define prime to be `.
16625         * eqn/eqn.y: Split off part of rule `script' into a new rule
16626         `nonsup'.
16628 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16630         * macros/tmac.s ({, }): New string aliases.
16632 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16634         * README-0.7: New file.
16636 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16638         * macros/tmac.s: New file.
16639         * man/groff_ms.man: New file.
16640         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16641         * Makefile.bd: Similarily.
16642         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16643         definition of TMAC_S.
16644         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16645         * macros/TODO: New file.
16647 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16649         * troff/env.c (right_justify): New function.
16650         (init_env_requests): Bind this to request "rj".
16651         (center_lines): Set right_justify_lines to 0. If we get a bad
16652         integer, center 1 line.
16653         (environment::environment(symbol), environment::environment(const
16654         environment *)): Initialize right_justify_lines.
16655         (environment::get_right_justify_lines): New function.
16656         (init_env_requests): Bind this to number_register ".rj".
16658         * troff/env.c (environment::choose_breakpoint): Implement
16659         hyphenation_margin and hyphenation_space.
16660         (environment::get_hyphenation_space,
16661         environment::get_hyphenation_margin): New functions.
16662         (init_env_requests): Bind these to .hys and .hym.
16663         (hyphenation_space_request, hyphenation_margin_request): New
16664         functions
16665         (init_env_requests): Bind these to hys and hym.
16666         (environment::environment(symbol), environment::environment(const
16667         environment *)): Initialize hyphenation_margin and
16668         hyphenation_space.
16669         * troff/env.h: Corresponding changes to class environment.
16671 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16673         * troff/div.c (blank_line): Always do a break.
16675         * eqn/box.c (do_text): Turn off escapes while appending text to
16676         string.
16678 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16680         * troff/input.c (while_break_request, while_continue_request): New
16681         functions.
16682         (init_input_requests): Bind these to "break" and "continue".
16683         (while_depth, while_break_flag): New variables.
16684         (while_request): Update while_depth.  Break out of loop if
16685         while_break_flag is set.
16687 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16689         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16690         rather than 0.
16692 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16694         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16696         * stringify: New file.
16697         * Makefile (groff.o): Use stringify.
16699         * xditview/tmac.X: Remove definition of \(rn.
16700         * xditview/libXdvi/DviChar.c: Remove radicalex from
16701         Adobe_symbol_map.
16703 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16705         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16706         (alphabetic_block_entry::alphabetic_block_entry,
16707         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16708         New functions.
16709         (block_entry::divert): Split off body into ...
16710         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16711         from the line length; also update the span width to dl+2n, and the
16712         alphabetic span width to dl.
16714         * driver/input.c (do_file):  While reading argument to D command,
16715         when expanding buffer, multiply szp by sizeof(int) rather than 2
16716         in the argument to memcpy.
16718         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16719         width of alphabetic columns.
16721 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16723         * troff/node.c (lookup_family): Supply second argument to lookup.
16725         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16726         search, return immediately if v is 0.
16728         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16729         (troff_output::start_picture): Set this reg.
16730         (troff_output::end_picture): Remove this reg
16731         * eqn/box.c (box::extra_space): Don't produce `\x's if
16732         EQN_NO_EXTRA_SPACE_REG is defined.
16734         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16735         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16736         character.
16738 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16740         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16741         requests.
16743         * troff/div.c (top_level_diversion::top_level_diversion):
16744         Initialize page_number to 0.
16746 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16748         * groff/troff (environment::environment(const environment *)):
16749         Initialize name to e->name, rather than "anonymous".
16751 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16753         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16754         requested_page.  Split middle part into ...
16755         (FindPage): New function.
16756         (SetValues): If we don't yet know the last page, and the requested
16757         page is greater than the current page, call FindPage.
16758         Update the font_map_string before doing this.
16760         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16761         Translate \(lh and \(rh into left and right double arrows.
16763         * troff/node.c (class hyphen_inhibitor_node): New class.
16764         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16765         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16766         hyphen_inhibitor_node::type,
16767         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16768         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16769         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16770         word.
16772 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16774         * troff/node.h (dummy_node::get_hyphenation_type,
16775         transparent_dummy_node::get_hyphenation_type):  Declare them.
16776         * troff/node.c: (dummy_node::get_hyphenation_type,
16777         transparent_dummy_node::get_hyphenation_type): New functions.
16779 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16781         * xditview/libXdvi/draw.c: If M_PI not defined after including
16782         math.h, then define it.
16784         * xditview/Makefile: Add definition of AR. Pass it to the submake
16785         in libXdvi.
16786         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16788 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16790         * troff/dictionary.h (object_dictionary::alias): Declare return
16791         value as int.
16792         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16793         if the old name was defined.
16794         * troff/input.c (alias_macro): Give a warning if the old name was
16795         not defined.
16796         * troff/reg.c (alias_reg): Likewise.
16798 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16800         * troff/input.c (token::next): Delete implementation of \R.
16802         * macros/Makefile: Strip comments from tmac.e while installing it.
16804         * troff/input.c: New variable `nroff_mode'.
16805         (troff_request, nroff_request): New functions.
16806         (init_input_requests): Bind `troff' and `nroff' to troff_request
16807         and nroff_request.
16808         (do_if_request): Compute results of t and n conditions from
16809         nroff_mode.
16811         * text/text.c (split_text): Fix typo in >=.
16813         * eqn/lex.c: Add definition of `==' to def_table.
16815 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16817         * pic/tex.c (tex_output::start_picture): Change the definitions of
16818         \graph and \graphtemp so that they work properly with Plain TeX.
16820         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16821         argument to `ar' is not less than the first.
16823         * pic/pic.y: Allow a comma between elements of the variable list
16824         in the argument to `reset'.
16826         * pic/object.c (arc_object::arc_object): Fix computation of
16827         radius.
16829         * eqn/main.c (main): Add exit(0).
16831 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16833         * troff/div.c (begin_page): Test no_space_mode after doing the
16834         break, but still push the page ejector cookie before doing the
16835         break.  Also set the next page number after doing the break.
16836         
16837         * xditview/xditview.c (NewFile): Don't set the title and icon name
16838         if this is the first file and its name is `-'.
16839         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16840         the X75 and X100 devices.
16841         (main): If a device has the XT_OPTION flag set and there's exactly
16842         one file argument, pass the driver -xrm and -title options to set
16843         the icon name and window title to the name of the file.
16845         * troff/env.c (environment_switch): If there was an argument but
16846         it wasn't a valid number or name, then pop an environment but
16847         don't give an error message on underflow.
16849         * troff/number.c (start_number): Correct spelling in error message.
16851         * troff/input.c (token::delimiter): Don't print an error message
16852         if err is false.
16854         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16855         ParseDrawFunction if dw->display_enable is true.
16857 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16859         * pic/pic.y: Parse text positioning like normal attributes, so as
16860         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16861         positioning attribute.
16863 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16865         * tbl/main.c (process_data): When in state START while reading a
16866         text block, don't change to state MIDDLE if c is a newline.
16868 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16870         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16871         so as to avoid shadowing parameter.
16873 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16875         * tbl/table.c (trim_space): Deleted.
16876         (table::add_entry): Don't call trim_space.
16878 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16880         * VERSION: Change version to 0.6.
16882         * troff/number.c (parse_expr): Make == work.
16884 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16886         * man/grog.man: New file.
16887         * man/Makefile: Add grog.n to MAN1PAGES.
16888         * etc/grog.sh: New file.
16889         * etc/Makefile: Install grog.sh as grog.
16891 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16893         * troff/input.c (token::next): Implement \E.
16895 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16897         * xditview/tmac.X: Change font translations to match tmac.ps.
16899         * troff/input.c (non_empty_name_warning): Don't give a warning if
16900         `\{' terminates the name.
16902 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16904         * ps/devps/symbol.diff: New file.
16905         * ps/devps/FontMakefile: Mention symbol.diff.
16907 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16909         * troff/node.c (font_position): Use get_long_name to read the
16910         external_name.
16912         * troff/env.c (environment_switch): If we get a number that's < 0
16913         or >= NENVIRONMENTS, treat it like a name.
16914         Change NENVIRONMENTS to 10.
16916         * troff/groff.h: Remove definition of FONTS_MAX.
16917         * troff/node.h (class font_family): Make map a pointer instead of
16918         an array. Add a map_size member. Make it a class. Make nm const
16919         and public. Make invalidate_fontno a friend.
16920         * troff/node.c: Define font_table_size. Make font_info a pointer
16921         rather than an array.
16922         (class troff_output_file): Allocate font_position dynamically. Add
16923         nfont_positions member.
16924         (troff_output_file::set_font): Grow font_position if necessary.
16925         (troff_output_file::~troff_output_file): Delete font_position.
16926         (troff_output_file::troff_output_file): Allocate font_position.
16927         (grow_font_table): New function.
16928         (troff_output_file::really_begin_page,
16929         troff_output_file:really_copy_page): Use nfont_positions rather
16930         than FONTS_MAX.
16931         (mount_font_no_translate, mount_style): Call grow_font_table if
16932         necessary.
16933         (font_family::font_family): Allocate map.
16934         (font_family::make_definite): Grow map if necessary. Use
16935         font_table_size instead of FONTS_MAX.
16936         (font_family::~font_family): New function.
16937         (invalidate_fontno): Use font_family::map_size.
16938         (get_fontno, env_space_width, env_half_narrow_space_width,
16939         env_narrow_space_width, symbol_fotno, is_good_fontno,
16940         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16941         FONTS_MAX.
16942         (next_available_font_position): Never return 0.
16944 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16946         * ps/tmac.ps: Add font translations for compatibility with dpost.
16948 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16950         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16951         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16952         Move definitions baseline_sep, shift_down, column_sep,
16953         matrix_side_sep into...
16954         * eqn/box.c: Add them to param_table.
16955         * eqn/pbox.h: Add declarations to pbox.h.
16957         * troff/input.c (set_string): Cast value to unsigned char *.
16959         * troff/token.h (process_input_stack): Declare it static before
16960         declaring it a friend.
16962 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16964         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16965         and bottom.
16966         * dvi/devdvi/EX: Regenerate.
16968         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16969         transparent.
16971 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16973         * eqn/lex.c: In defaults_table, make definition of `dot' call
16974         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16975         accents.
16977         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16978         argument.
16979         (for_input::get, for_input::peek): Use this.
16980         (do_for): Add by_is_multiplicative argument.
16981         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16982         Change semantic value of optional_by to be a double plus a flag
16983         saying whethet the by clause is multiplicative.
16985         * eqn/lex.c (get_delimited_text): Remember location of start of
16986         definition.  Improve error handling when EOF is encountered.
16988         * lib/font.h: Rename handle_x_command to
16989         handle_unknown_font_command.
16990         * lib/font.c (font::load): Call handle_unknown_font_command for
16991         any unknown command in the font description file.  Don't call
16992         handle_x_command. Include the name of the command in the argv.
16993         Improve message for unknown command after kernpairs or charset
16994         command.
16995         * ps/ps.c (ps_font::handle_x_command): Rename to
16996         handle_unknown_font_command.  Remove message about `x download'
16997         command.  Give error message for wrong number of arguments.
16998         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16999         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17000         handle_unknown_font_command. Give an error message for wrong
17001         number of arguments.  Rename design_size to designsize.
17002         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17003         checksum', `designsize' instead of `design_size'.
17005 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
17007         * eqn/*.[chy]: Change underaccent to uaccent.
17009         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
17010         give it the same precedence as ACCENT.
17011         * eqn/other.c (make_underaccent_box): New function.
17012         * eqn/box.h: Declare it.
17013         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17014         def_table.
17016 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
17018         * pic/pic.y (reset_all): New function. Called in rule for RESET.
17019         (parse_init): Call reset_all.
17020         (define_variable): When defining scale reset only those
17021         pre-defined variables that are scaled.
17022         (defaults_table): Add `scale' as non-scaled value.
17024         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17025         together with the text; allow any number of positioning words;
17026         allow center as a positioning word.
17028         * pic/object.c (output::compute_scale): Get picture maximum height
17029         and width from variables called maxpswid and maxpsht.
17030         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17032 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
17034         * pic/object.c (object_spec::make_text): Multiply textht by number
17035         of text items.
17037         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17038         occur.
17039         (do_sprintf): New function.
17040         (pic.gperf): Add sprintf token.
17041         (text, sprintf): New rules.
17043         * pic/pic.y: `rand()' with no arguments returns a random number
17044         in the range [0,1).
17046         * pic/pic.y: Allow a bare expression to be an attribute: change
17047         precedences to support this.  Change optional_ordinal rule to
17048         optional_ordinal_last to avoid reduce/reduce conflict.
17049         * pic/object.c (object_spec::object_spec): Initialize direction.
17051         * pic/pic.y: Implement ^ operator meaning exponentiation.
17053         * troff/node.h: Add default argument to mount_font.
17054         * troff/node.c (font_position): Read an optional third argument
17055         giving the external_name.
17056         (mount_font): Add optional argument giving the external_name.
17057         (mount_font_not_translate): Have additional argument giving
17058         external name.  Use this name to load the font.  Pass both names
17059         to font_info::font_info.
17060         (font_info::font_info): Have additional argument giving
17061         external_name.
17062         (class tfont): New member external_name.
17063         (font_info::get_tfont): Use external name to construct tfont_spec.
17065 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
17067         * eqn/lex.c (init_table): Add argument giving device.  Define
17068         name of device to be "1".
17069         (do_ifdef): Counts as true if the argument has been defined with
17070         `define'.
17071         * eqn/main.c (main): Call init_table with device argument. Make
17072         device local to main.
17073         * eqn/eqn.h: Change declaration of init_table. Remove declaration
17074         of device.
17076         * pic/lex.c (get_delimited): Allow text to be delimited by
17077         matching {}s.  Don't recognize ending delimiter within a string.
17079         * troff/input.c (get_delim_name): New function.
17080         (token::next): Implement \C.
17082         * lib/font.c (font::load): Grok ---.  Add an alias for each
17083         character based on its code.
17084         (font::get_code_width): Deleted.
17085         * lib/font.h (class font): Declare font::number_to_index().
17086         Remove declaration of font::get_code_width.
17087         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17088         to indices of named characters.
17089         (font::number_to_index): New function.
17090         * troff/input.c (font::number_to_index): New function.
17091         (get_charinfo_by_number, charinfo::get_number,
17092         charinfo::set_number): New functions.
17093         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17094         (token::process, token::description, token::get_char,
17095         token::add_to_node_list, token::operator==): Handle
17096         TOKEN_NUMBERED_CHAR.
17097         * troff/charinfo.h: Declare get_charinfo_by_number,
17098         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
17099         charinfo class.
17100         (charinfo::numbered): New function.
17101         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17102         * troff/env.h (class environment): Remove declaration of ...
17103         * troff/env.c (environment::make_numbered_char_node): Deleted.
17104         * troff/node.c (make_numbered_node): Deleted.
17105         (class numbered_glyph_node): Remove.
17106         (troff_output_file::put_char_width, troff_output_file::put_char):
17107         Handle numbered chars.
17108         (troff_output_file::numbered_char): Removed.
17109         (tfont::get_code_width): Removed.
17110         (make_glyph_node): Don't search special fonts for numbered
17111         characters.
17112         * troff/node.h: Remove declaration of make_numbered_node.
17113         * driver/input.c (do_file): Handle N command.
17114         * driver/printer.h: Add declaration of ...
17115         * driver/printer.c (printer::set_numbered_char): New function.
17116         * dvi/tfmtodit.c (main): Generate unnamed entries.
17117         * ps/devps/afmtodit: Likewise.
17118         * xditview/xtotroff.c (MapFont): Likewise.
17119         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17121         * tbl/main.c (process_format): If multiple widths are specified
17122         for a column but all the widths are the same, don't give an error
17123         message.
17125         * tbl/table.c (table::do_row): If the current row is all lines and
17126         the stuff doesn't contains a line, mark the top of the row after
17127         printing stuff before the row.  If the current row is not all
17128         lines and the stuff doesn't contain a line, don't unnecessarily
17129         mark the top of the row before printing the stuff.
17130         
17131 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
17133         * troff/groff.h: Remove MAX_PATH.
17134         * troff/input.c (open_file): Dynamically allocate space for the
17135         path.
17136         (open_mac_file, process_macro_file): Corresponding changes.
17138 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
17140         * troff/node.h (class output_file): Make copy_file pure.  Add
17141         vspace method ifdef COLUMN. Add is_printing method.
17142         * troff/node.c: Add class printing_reg. Add class
17143         real_output_file. Derive other output_file classes from
17144         real_output_file; in these classes rename begin_page to
17145         really_begin_page, print_line to really_print_line, copy_file to
17146         really_copy_file, transparent_char to really_transparent_char.
17147         Move output_file::flush to real_output_file. Add printing member
17148         to class output_file.
17149         * troff/div.h: Remove printing member from top_level_diversion.
17150         Add vspace member function to class diversion ifdef COLUMN. Add
17151         some declarations ifdef COLUMN.
17152         * troff/div.c (top_level_diversion::copy_file,
17153         top_level_diversion::transparent_output,
17154         top_level_diversion::output): Don't test printing member before
17155         output.
17156         * troff/input.c: Handle initial variable_space_request ifdef
17157         COLUMN.
17158         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17159         but comment it out.
17161 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
17163         * troff/div.c (diversion::need): Make any space forced.  If we
17164         sprung a trap, set truncated_space to minus the distance to the
17165         trap and set needed_space to the amount that was needed.
17166         (top_level_diversion::space): A forced space turns no_space_mode
17167         off.
17168         (class constant_vunits_reg): New class.
17169         (init_div_requests): Implement number registers .trunc and .ne
17170         using constant_vunits_reg.
17171         (class truncated_space_reg): Deleted.   
17173         * troff/div.h: Don't have a no_space_mode member in diversion.
17174         Instead have it in top_level_diversion.
17175         * troff/div.c (diversion::diversion): Don't initialize
17176         no_space_mode.
17177         (top_level_diversion::top_level_diversion): Initialize
17178         no_space_mode.
17179         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17180         (macro_diversion::output): Don't clear no_space_mode.
17182         * troff/input.c (diverted_space_node::reread): Don't call
17183         environment::do_break.  In fill mode, act like a blank line.
17184         (diverted_copy_file_node::reread): Don't call
17185         environment::do_break.
17187         * troff/div.c (blank_line): New function.
17188         * troff/div.h: Declare it.
17189         * troff/input.c (process_input_stack): Call it.
17191         * troff/div.c (truncated_space_reg::get_string): New function.
17192         (init_div_requests): Bind to .trunc.
17193         (space_request, top_level_diversion::space,
17194         top_level_diversion::output, macro_diversion::space,
17195         macro_diversion::output): Update truncated_space.
17196         (macro_diversion::output): Redo calculations when trap sprung.
17197         (macro_diversion::output, macro_diversion::space): No need for
17198         trap_flag.
17200         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17201         after truncating post line spacing.
17203 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
17205         * ps/devps/prologue (MF, SF): Make them work even if setfont is
17206         defined as a procedure rather than as an operator.
17208 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
17210         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17212 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
17214         * troff/div.c (top_level_diversion::output): Merge
17215         output_file::print_line and output_file::end_of_line member
17216         functions.
17217         * troff/div.h (class output_file):
17218         * troff/node.c (troff_output_file::print_line,
17219         troff_output_file::end_of_line, output_file::end_of_line,
17220         ascii_output_file::print_line, suppress_output_file::print_line):
17221         Corresponding changes.  
17223 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
17225         * troff/input.c (token::next): Don't give a warning for `\.'.
17227         * troff/env.c (environment::get_center_lines): New function.
17228         (init_env_requests): Bind number register .ce to it.
17229         * troff/env.h: Declare it.
17230         * tbl/table.c (table::init_output): Define reset macro to restore
17231         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
17232         Then do .ce 0.
17233         (table::print): If center option not given, then imply center
17234         option if SAVED_CENTER_REG > 0.
17236 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
17238         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17239         Troff.ps from DOWNLOAD.
17240         
17241         * troff/Makefile: Change comment in DEFINES to avoid confusing
17242         System V make.
17244         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17245         code.  Don't try to catch errors with stopped.
17246         (check_line_lengths): New function.
17247         * ps/devps/prologue (EXEC): Deleted.
17248         (EBEGIN, EEND): New procedures.
17250 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
17252         * troff/input.c: Include request.h before node.h.
17253         * troff/node.c: Likewise.
17254         * troff/env.c: Likewise.
17255         * troff/div.c: Likewise.
17256         * troff/node.h (class special_node): Store argument as a macro
17257         rather than a char *.
17258         * troff/node.c (special_node::special_node, special_node::copy):
17259         Grok this.
17260         (special_node::~special_node): Deleted.
17261         (special_node::tprint): Deleted.
17262         (special_node::tprint_start, special_node::tprint_end,
17263         special_node::tprint_char): New functions.
17264         (troff_output_file::special): Deleted.
17265         (troff_output_file::start_special, troff_output_file::end_special,
17266         troff_output_file::special_char): New functions.
17267         * troff/input.c (special_node::tprint): New function.
17268         (do_special): Use macro not char *.
17269         (do_transparent_macro): Deleted.
17270         (token::next): Don't call do_transparent_macro.
17272         * troff/input.c (token::next): Add 'Y' case.
17273         (do_transparent_macro): New function.
17274         * troff/node.c (troff_output_file::special): Handle newlines with
17275         argument using new continuation convention.
17276         * driver/input.c (get_string): Cope with continuation convention.
17277         (do_file): Don't call skip_line after calling get_string(1).
17278         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17279         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17280         arg.
17281         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17282         with +.
17284 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17286         * troff/input.c (asciify): By default, illegal input characters
17287         should return empty string.
17289         * troff/input.c (copy_file): Handle first page transition like title.
17290         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17292         * troff/input.c (token::next): Improve error message for EOF after
17293         escape character.
17294         (input_char_description): New function.
17295         (get_char_for_escape_name): Use input_char_description.
17296         (token::next): Warn about unrecognized escape sequences.
17297         (warning_table): Add WARN_ESCAPE.
17298         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17299         accordingly.
17301         * troff/token.h: Remove declaration of process_input_stack.
17303         * troff/input.c: Remove declaration of init_hyphen_requests.
17304         * troff/request.h: Correct spelling in declaration of same.
17306         * troff/input.c (token::next): Check whether escape_char is 0.
17308 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17310         * groff.c (main, usage, help): Implement -P and -L options.
17311         * groff.sh: Likewise.
17313         * troff/input.c (token::next): Use some gotos to avoid code
17314         duplication.
17316         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17317         Avoid calling symbol::symbol if name empty.
17319 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17321         * troff/input.c (init_input_requests): Make \n(.x return the major
17322         version number and \n(.y return the minor version number.
17323         * troff/Makefile: Construct file majorminor.c defining
17324         major_version and minor_version automatically from ../VERSION.
17326         * troff/node.c (class glyph_node): Make operator new and operator
17327         delete public.
17328         (class ligature_node): Similarily.
17330         * troff/input.c (operator==(const macro &, const macro &)): New
17331         function.
17332         (non_interpreted_node::same): Use this.
17333         (string_iterator::string_iterator): Make macro& argument const.
17335         * troff/input.c (input_iterator::get): New function. Don't make
17336         asciify_macro or class non_interpreted_node friends of class
17337         input_iterator.
17338         (non_interpreted_node::interpret): Use input_iterator::get.
17339         (asciify_macro): Likewise.
17341         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17342         ~non_interpreted_node): Deleted.
17343         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17344         Deleted.
17346         * troff/symbol.h: Make all symbol member functions const.
17348         * lib/strtol.c: New file.
17349         * lib/Makefile: Add strtol.c.
17350         * Makefile: Define STRTOL as strtol.o to include strtol in
17351         libgroff.a.
17353 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17355         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17357 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17359         * troff/input.c (do_special): Use input_level.
17361         * troff/token.h (TOKEN_BACKSPACE): New token.
17362         (token::backspace): New function.
17363         * troff/input.c (token::description, token::next, token::process):
17364         Grok TOKEN_BACKSPACE.
17365         (do_special): Turn TOKEN_BACKSPACE back into \b.
17367         * troff/token.h (token::leader): New function.
17368         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17370         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17372         * troff/input.c (do_special): Use token::description in error
17373         message.
17375 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17377         * troff/input.c (decode_args): Combine quoted and
17378         quote_input_level variables. Make it a for (;;) loop.
17380         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17382         * troff/input.c (read_long_escape_name): The test for whether to
17383         expand buffer was off by 1.
17384         (read_string): Similarily.
17386 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17388         * troff/input.c: Use `const int' rather than `static const int'.
17390         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17391         (macro_diversion::copy_file): New function.
17392         * troff/node.h: New class diverted_copy_file_node.
17393         * troff/node.c: Implement it.
17394         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17395         first page transition by pushing a diverted_copy_file_node.
17396         * troff/input.c (token::next, process_input_stack): Don't handle
17397         COPY_FILE_REQUEST.
17399 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17401         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17402         whether space widths need adjusting.
17404         * troff/charinfo.h: Generalize translated_to_space to
17405         special_translation so as to allow translation to \&.
17406         * troff/input.c (translate): Allow translation to \&.
17407         (charinfo::*): Corresponding changes.
17408         * troff/node.c (make_node, node::add_char): Corresponding changes.
17409         * troff/node.h (dummy_node::dummy_node): Allow optional first
17410         argument.
17412         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17413         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17414         TOKEN_REQUEST.
17415         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17416         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17417         (token::process): Grok that.
17418         * troff/input.c (copy_file): Handle first page transition like
17419         title by pushing a COPY_FILE_REQUEST cookie.
17420         (token::next, process_input_stack): Grok that.
17421         * troff/node.h (output_file::copy_file): Add x and y arguments.
17422         Make it non-pure.
17423         * troff/div.c (top_level_diversion::copy_file): Supply them.
17424         * troff/node.c (troff_output_file::copy_file): Add x and y
17425         arguments; moveto specified position.  Invalidate font_position
17426         array after copying file.
17427         (output_file::copy_file): New function.
17428         (suppressed_output_file::copy_file, ascii_output::copy_file):
17429         Removed.
17430         * troff/input.c (transparent_file): New function.
17431         (init_input_requests): Bind to "trf".
17432         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17433         (process_input_stack): Likewise.
17435         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17437         * troff/node.c (init_node_requests): New number registers .kern
17438         pointing to global_kern_mode, and .lg pointing to
17439         global_ligature_mode.
17441         * troff/node.c (ligature): Don't change it if we get a bad
17442         integer.
17444         * troff/input.c (do_define_string): Don't strip tabs.
17446         * troff/input.c (asciify_macro): Make the string_iterator auto.
17448         * troff/node.c (init_font_requests): Rename to...
17449         (init_node_requests):
17450         * troff/node.h: Change declaration.
17451         * troff/input.c (main): Change call.
17453         * troff/input.c (node::reread, diverted_space_node::reread): New
17454         methods.
17455         (process_input_stack): Call reread rather than
17456         get_diverted_space_node.
17457         * troff/node.c (node::get_diverted_space_node,
17458         diverted_space_node::get_diverted_space_node): Removed.
17459         * troff/node.h: Declare reread methods instead of
17460         get_diverted_space_node methods. Make `n' member private.
17461         * troff/input.c: (token::diverted_space): Removed.
17462         * troff/token.h: Removed declaration.
17463         
17465 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17467         * eqn/script.c (script_box::compute_metrics): Don't let
17468         SUP_RAISE_FORMAT become negative.
17470         * tbl/table.c (table::do_row): Entries that don't end in the
17471         this row shouldn't make the row non-blank.
17472         
17473         * tbl/table.c (table::make_columns_equal): Only set the width of
17474         columns which are marked as equal.
17475         
17476         * tbl/main.c (process_data): Before issuing excess data error,
17477         if last character was a newline unget it; then get it again after
17478         the error.  Also include the contents of the entry in the message.
17480         * groff.c: New file.
17481         * Makefile: Build groff from groff.c.  Make it possible to use
17482         either groff.sh or groff.c as groff.
17483         * Makefile.bd: Similarily.
17485 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17487         * groff.sh: Don't delay expansion of $@ in assignment to files.
17488         Remove occurrences of \".
17490 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17492         * all Makefiles: Simplify and rearrange.
17494         * Makefile: Handle fmod like malloc.
17495         * lib/Makefile: Similarily.
17496         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17498         * Makefile: Rename OPTIMISE to OPTIMIZE.
17500         * groff.sh: Remove assignment to PATH.
17501         * Makefile: Remove SHPATH variable.
17502         * Makefile.bd: Similarily.
17504         * groff.sh: Add -V option to print the pipeline instead of
17505         executing it.
17507 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17509         * lib/font.c: Split off file searching into ...
17510         * lib/fontfile.c: New file.
17512         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17514 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17516         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17517         Also change misleading comment.
17518         (table::do_vspan): Change similarily misleading comment.
17519         * tbl/main.c (process_data): A format row with an explicit `s'
17520         uses up a data line, even if all the other columns are `_' or `='.
17522         * troff/input.c (token::description): Fix description of
17523         TOKEN_DUMMY and TOKEN_EMPTY.
17525 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17527         * groff.sh: Fix description of -Z in help message.
17529 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17531         * pic/object.c (object_spec::make_object): Allow negative and zero
17532         line thicknesses.
17533         * pic/pic.y: Give linethick default value of -1.0.
17534         * pic/troff.c (troff_output::troff_output): Initialize
17535         last_line_thickness to BAD_THICKNESS.
17536         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17537         (troff_output::line_thickness): Canonicalize negative thicknesses
17538         to RELATIVE_THICKNESS.
17539         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17540         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17541         to -1.0.
17542         (tex_output::start_picture): Set pen_size to -2.0.
17544         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17545         0, then use 0 linewidth.
17546         (ps_printer::ps_printer): Initialize line_thickness to -1.
17548         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17550         * ps/devps/symbolchars: Remove `or'.
17551         * ps/tmac.ps: Implement \(or with .char.
17553         * ps/devps/symbolchars: Move most characters into textmap.
17554         * ps/devps/textmap: Add names for troff bracket characters. Remove
17555         ul, ru, br, bv.
17557         * ps/devps/TSymbol.ps: Removed.
17558         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17559         * ps/tmac.ps: Do with .char what TSymbol did.
17560         * ps/devps/download: Remove TSymbol.
17562         * ps/devps/T: Removed.
17563         * ps/devps/Troff.ps: Removed.
17564         * ps/devps/Troff.afm: Removed.
17565         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17566         * ps/devps/download: Remove Troff.
17567         * ps/devps/FontMakefile: Remove T target.
17568         * ps/devps/DESC-A4: Remove T from font list.
17569         * ps/devps/DESC-letter: Likewise.
17571         * troff/input.c (macro_to_node): Rename to ...
17572         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17573         character's definition while processing it.
17574         * troff/node.c (node::add_char, make_node): Change calls to
17575         macro_to_node accordingly.
17577         * troff/input.c (token::next): Translate \_ to \(ul.
17579         * tty/devascii/R.proto: Add `|'.
17580         * tty/devlatin1/R.proto: Likewise.
17582 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17584         * man: Put the version number in all the man pages.
17586 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17588         * Makefile.bd: New file.
17589         * README.bd: New file.
17591         * VERSION: New file.
17592         * lib/version.c: Removed.
17593         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17594         in clean target.
17596         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17597         environment variable.
17599         * all Makefiles: Split install target into install.bin for
17600         binaries, and install.nobin for everything else.
17601         * Makefile: Add bindist target.
17603         * man/afmtodit.man: New file.
17604         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17605         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17606         in BINDIR.
17607         * ps/Makefile: Pass BINDIR to make install in devps.
17609         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17610         the space character.
17612         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17614 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17616         * ps/ps.c: Redo font downloading.
17617         * ps/devps/download: New file.
17618         * ps/devps/Makefile: Add download to DEVICEFILES.
17619         * ps/devps/afmtodit: Remove -d option.
17620         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17621         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17622         * ps/devps/zapfdr.ps: Likewise.
17623         * ps/devps/TSymbol.ps: Likewise.
17625 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17627         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17629 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17631         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17632         then strip the first line if it starts with %.
17633         * Makefile: Add a comment about this.
17635         * man/tfmtodit.man: New file.
17636         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17637         * dvi/Makefile: Install tfmtodit in BINDIR.
17639         * dvi/tfmtodit.c (usage): Mention -v option.
17641 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17643         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17644         * troff/node.c (troff_output_file::transparent_char): Don't call
17645         flush_tbuf.
17647         * eqn: Add check_tabs method to most box classes.
17648         * eqn/box.c (box::top_level): Call check_tabs.
17650         * eqn/script.c (script_box::output): Use \Z.
17651         * eqn/limit.c (limit_box::output): Use \Z.
17653         * eqn/box.c (box::top_level): Use itoa.
17655 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17657         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17658         * dvi/devdvi/Makefile: Don't make links to CW.
17660         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17661         HX, HD.
17662         * xditview/tmac.X: Likewise.
17664         * troff/node.c: Add font translation feature.
17665         (get_font_translation): New function.
17666         (symbol_fontno): Translate the font name.
17667         (mount_font_no_translate): Rename to mount_font to this.
17668         (mount_font): New function.
17669         (font_family::make_definite): Call mount_font_no_translate instead
17670         of mount_font.
17671         (mount_style): Translate the font name.
17672         (font_translate): New function.
17673         (init_font_requests): Bind "ftr" to font_translate.
17675         * ps/devps/prologue (SN): New procedure that rounds a position to
17676         the nearest (pixel + (.25,.25)).
17677         (DL): Use SN to round endpoints.
17679         * lib/version.c: Changed version to 0.5.
17681 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17683         * Makefile: Move definition of PAGE to the very beginning, so that
17684         people are less likely to miss it.
17686 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17688         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17690         * troff/env.c (environment::choose_breakpoint): Make `can't find
17691         breakpoint' error a warning of type WARN_BREAK.  Change message to
17692         `can't break line'.
17693         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17694         code 040000.
17695         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17696         WARN_BREAK in DEFAULT_WARNING_MASK.
17698         * tty/tmac.tty: Add definition of \(+-.
17700         * groff.sh: Remove `--' option to set command.
17702         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17704         * ps/devps/eqnchar: Better definition of cdot using md.
17705         * dvi/devdvi/eqnchar:  Likewise.
17706         * xditview/devX100/eqnchar:  Likewise.
17707         * xditview/devX75/eqnchar: Likewise.
17708         * eqn/lex.c: Add definition of cdot.
17710 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17712         * troff/input.c (get_optional_char): New function.
17713         * troff/input.c (set_page_character): Use get_optional_char(),
17714         rather than has_arg() and tok.get_char(1).
17715         * troff/env.c (tab_character, leader_character, hyphen_char,
17716         field_characters): Likewise.
17717         (margin_character): Likewise.  Also always delete the
17718         margin_character_node.
17720         * troff/input.c (token::get_char): Use token::description.
17722         * troff/input.c (has_arg): Don't skip over tab and \}.
17723         * troff/number.c (start_number): Give a warning if the number
17724         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17726 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17728         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17729         functions.
17730         (get_name, get_long_name): Use these.  Rename `warn' argument to
17731         `required'.
17733         * troff/node.c (get_fontno): Test that the symbol is not null.
17735         * troff/input.c (token::description): New function.
17736         * troff/number.c (parse_term): Use token::description in `numeric
17737         expression expected' message.
17738         * troff/groff.h: Add WARN_MISSING.
17739         * troff/number.c (start_number): New function.
17740         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17741         get_incr_number): Use start_number().
17742         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17743         default.
17744         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17745         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17746         token::descripion.
17747         * troff/input.c (token::get_char): Use WARN_MISSING.
17748         * troff/input.c (token::delimiter): Use token::description.
17749         * troff/env.c (environment_switch): Back out Aug 3 change.
17750         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17751         warning.
17752         * troff/token.h (token::tab): New function.
17753         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17754         * troff/reg.c (alter_format): Likewise.
17755         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17757 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17759         * troff (most files): Redo warnings. Divide warnings into various
17760         categories; warning() has an additional first argument indicating
17761         the category it falls into.
17762         * troff/input.c (main): -w now takes an argument. New option -W.
17763         (enable_warning, disable_warning): New functions.
17765         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17766         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17768 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17770         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17771         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17772         * xditview/devX75/eqnchar: Likewise.
17773         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17775         * eqn/other.c: When bar or over applies to a single character
17776         don't produce an overline_box or an underline_box. Instead produce
17777         an accent_box or an underaccent_box, with the accent a line
17778         whose width is accent_width.  New classes underaccent_box,
17779         overline_char_box and underline_char_box.
17780         * eqn/box.h: Move overline_box, underline_box, accent_box class
17781         declarations into eqn/other.c. Add declarations of
17782         make_underline_box, make_overline_box, make_accent_box.
17783         * eqn/eqn.y: Call make_overline_box, make_underline_box
17784         make_accent_box instead of constructors.
17785         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17787         * eqn/other.c: Add accent_box::~accent_box.
17788         * eqn/box.h: Declare it.
17790         * groff.sh: With -Tps, use eqn -D.
17792         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17793         rather than \l.
17794         (underline_box::output): Similarily.
17795         (accent_box::output): Use \Z.
17797         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17798         bit smaller.)
17800 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17802         * troff/div.c (top_level_diversion::transparent_output(unsigned
17803         char)): Use asciify.
17804         * troff/input.c (asciify): Don't make it static.
17805         * troff/token.h (asciify): Declare it.
17806         
17807         * troff/input.c (get_name, get_long_name, token::get_char,
17808         token::delimiter): Add an extra default argument which says
17809         whether a warning should be printed.
17810         * troff: Pass a non-zero argument to one of these rather than
17811         printing a warning directly.
17813 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17815         * troff: Consistently use symbol::is_null.
17817         * troff/dictionary.h: Move some inline functions into
17818         dictionary.c.
17820         * troff/request.h: Move inline functions into input.c.
17821         (request_or_macro::invoke): Make it pure.
17823         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17824         * troff/input.c (init_input_requests): Use class constant_int_reg.
17825         (class compatible_reg): Deleted.
17826         * troff/div.c (init_div_requests): Use class constant_int_reg.
17827         (class last_post_line_extra_space_reg): Deleted.
17829         * troff/env.c (tab_character): Don't change the tab character if
17830         we get an invalid argument.
17831         (hyphen_char): Similarily.
17833         * troff/reg.c (alter_format): Check that nm is not null.
17835         * Makefile, groff.sh: Make it possible to customize the commands
17836         used for printing PostScript and dvi files. Also make it possible
17837         to customize the path used by groff.sh.
17839         * eqn/eqn.y: Make `left' right associative.
17841 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17843         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17844         don't have it.
17846         * pic/pic.h: Removed definition of INT_MAX.
17848         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17849         `return'.
17851         * troff/input.c (token::next):  Handle \R like \n.
17853 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17855         * ps/tmac.pc (PSPIC): Simplify.
17857         * troff/env.c (tab_stops::to_string):
17858         * pic/pic.y (object_type_name):
17859         * pic/troff.c (simple_output::line):
17860         * pic/tex.c (tex_output::spline):
17861         * pic/object.c (object_spec::make_object):
17862         * tbl/main.c (process_data):  Add cases to switch statements to
17863         avoid cfront warnings. (Some of these are spurious, since the
17864         switch already has a default case.)
17866         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17867         `ps-'.  Don't test systat; instead check number of arguments to
17868         ps-bb.
17870 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17872         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17874         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17875         Unlink the file as soon as we have opened it, so that we don't
17876         have to bother with signal handlers.
17877         (handler): Deleted.
17878         (fatal_error_exit): Deleted.
17879         (main): Don't call signal.
17881         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17882         can be ignored.
17883         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17885         * pic/pic.y:  If there is a label, or an nth construction before
17886         the first `.' in the argument to `with', ignore it and generate a
17887         warning.
17888         * pic/lex.c (lex_warning): New function.
17890         * tbl/table.c (table::init_output): In section keep and release
17891         macro, use 0 indent when diverting and the correct indent when
17892         rereading.
17894         * troff/input.c (interpolate_number_format): Do not interpolate
17895         anything if the number register is not defined.
17897         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17899 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17901         * ps/devps/prologue (PICTURE): Set components of graphics state to
17902         their default values.
17904         * ps/devps/text.enc: Add trademark
17905         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17906         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17907         * ps/devps/symbolchars: Add names for summation and product.
17909         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17910         suchthat. Add pp. Add upper-case letters.
17912         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17913         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17914         Upsilon.
17916         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17917         rA (right angle bracket) to ra.  Introduce names for double-headed
17918         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17919         * ps/devps/textmap: Likewise for ps device.
17920         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17921         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17922         * tty/devascii/R.proto: Likewise.
17923         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17924         \(uA, \(dA.
17925         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17927         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17929         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17930         def_table.
17932 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17934         * troff/div.c (when_request): Use symbol::is_null rather than
17935         has_arg to determine whether we have an argument.
17936         (change_trap): Remove the trap if we get an invalid number. Give
17937         an error if we don't get at least the macro name.
17938         (diversion_trap): Remove trap if we get an invalid name or number.
17940         * troff/env.c (environment_switch): Pop if we get an invalid
17941         symbol or numeric expression.
17943         * troff/input.c (do_define_macro):  If EOF is encoutered while
17944         defining the macro, do tok.next() before returning.
17946         * troff/token.h (has_arg): Move definition from here, to ...
17947         * troff/input.c (has_arg): ... here
17949         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17950         * troff/input.c (shift): Likewise.
17952         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17953         for `.c'.
17955         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17956         `..'.
17958         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17959         interpret_lf_args succeeds.
17961         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17962         \\.  This avoids problems with \$N.
17964         * groff.sh: Pass -C to preprocessors.
17966         * lib/lf.c (interpret_lf_args):  Be more flexible.
17968         * tbl/main.c (main): Add -C option.
17969         (table_input::get): Do not recognize TE if followed by character
17970         other than a space or newline unless -C option given.
17971         (process_input_file): Likewise for lf, TS.
17972         (process_data): Likewise for lf in text blocks.
17974         * eqn/main.c (main): Add -C option.
17975         (do_file): Don't recognize EQ, EN or lf if followed by character
17976         other than space or newline unless -C option given.
17977         * eqn/lex.c (file_input::read_line): Similarily.
17978         * eqn/eqn.h: Declare compatible_flag.
17980         * etc/soelim.c (main): Add -C option.
17981         (interpret_lf_args): Use version in libgroff.
17982         (do_file):
17984         * pic/main.c (main): Add -C option, which sets compatible_flag.
17985         (top_input::get), (top_input::peek):  If -C option not given,
17986         do not recognize .PS/.PE/.PF/.lf if followed by a character
17987         other than space or newline.
17988         * pic/lex.c (file_input::read_line): Similarily.
17989         * pic/pic.h: Add declaration of compatible_flag.
17991 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17993         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17995         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17996         derived from node.  New class space_char_hmotion_node.
17997         * troff/input.c (asciify_macro): New function.
17998         * troff/input.c (init_input_requests): New request `asciify' bound
17999         to asciify_macro.
18000         * macros/mm.diff: New file.
18001         * Makefile:  In install.mm target use `patch' to apply
18002         macros/mm.diff.
18004         * troff/input.c (macro::print_size): Just print the size in bytes.
18006         * troff/div.c (return_request): Correct the argument
18007         interpretation.
18009 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
18011         * troff/node.h (class composite_node): Add sz member.
18012         * troff/node.c (composite_node::size): Return sz.
18013         * troff/input.c (macro_to_node):  Use the initial size in the
18014         environment as the size of the composite_node.
18016         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
18017         default.
18019 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
18021         * troff/div.c (change_trap): If we get a bad number expression,
18022         do nothing.
18024 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
18026         * lib/matherr.c (matherr): Define this only if math.h defines
18027         TLOSS.
18029 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
18031         * troff/div.c (macro_diversion::distance_to_next_trap): If there
18032         no diversion trap return vunits(INT_MAX - vresolution).
18034 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
18036         * troff/input.c (do_zero_width): New implementation that doesn't
18037         use a temporary environment. Use instead:
18038         (token::add_to_node_list): New function.
18039         * troff/env.c (environment::get_prev_char_height),
18040         (environment::get_prev_char_height),
18041         (environment::get_prev_char_skew): New functions.
18042         (environment::get_prev_char): New function.
18043         (environment::get_prev_char_width): Change to use get_prev_char.
18044         (init_env_request): Implement new registers .cht, .cdp, .csk.
18045         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18046         \Z being processed in a separate environment.
18048 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
18050         * tbl/table.c: Removed TABLE_BOTTOM_REG.
18052         * tbl/table.c (table::init_output): In the section release macro,
18053         give a warning message if the section won't fit on one page.
18055         * tbl/table.c (table::do_top): Emit table keep only if table is
18056         boxed.
18057         (table::do_bottom): Likewise for table release.
18058         (table::table), (table::add_vertical_rule):  Remove reference to
18059         keep member.
18060         * tbl/table.h: Remove keep member.
18062         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18063         SECTION_RELEASE_MACRO, if there's not enough space before the next
18064         trap to output the diversion, call T# ourselves, set
18065         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18066         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
18067         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
18068         vertical position and return to it before turning traps on again.
18069         
18070 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
18072         * troff/node.c, troff/node.h: In classes derived from node,
18073         replace prev_char_width method by last_char_node method.
18074         * troff/env.c (environment::get_prev_char_width): Use
18075         node::last_char_node rather than node::get_prev_char_width.
18077         * Makefile: Added comment about -fno-inline on 68030-based
18078         Apollos.
18080         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18081         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18082         expressions using sizeof to int.
18083         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18085         * macros/tmac.e (TS):  Don't move @f back past the current
18086         position.
18088 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
18090         * ps/ps.c (main): Buffer stderr.
18091         * dvi/dvi.c (main): Likewise.
18092         * tty/tty.c (main): Likewise.
18094         * ps/ps.c (ps_printer::do_import): Improve error handling.
18096         * troff/input.c (abort_request): Use asciify.
18098         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18099         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18100         type of first argument int rather than char.  This works around a
18101         bug on the 68030 based Apollo using g++ 1.37.1.
18103         * tbl/table.h (class table): Add `keep' member.
18104         * tbl/table.c (table::table): Initialize `keep'.
18105         (table::add_vertical_rule): Set `keep' to 1.
18106         (table::do_top): Only emit table keep macro is `keep' is non-zero.
18107         (table::do_bottom): Likewise for table release macro.
18108         (table::do_row): Emit section keep macro even if the row is 0.
18110 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
18112         * macros/tmac.e (@C): Preserve the font family across the change
18113         in environments.
18115 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
18117         * lib/font.c: Initialize font::hor and font::vert to 1.
18118         (font::load_desc): Check the values of font::hor and font::vert.
18120         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18121         be included in a C compilation.
18122         (iftoa): Use INT_DIGITS. Include lib.h.
18123         (itoa): Likewise.
18124         (as_string): Likewise.
18125         * tbl/table.c: Removed definition of INT_DIGITS.
18126         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18127         * troff/input.c (input_input_requests): Likewise.
18128         * ps/ps.c (make_encoding_name): Likewise.
18129         (ps_printer::set_style): Likewise.
18130         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18132         * tty/devascii/R.proto: Map fm onto '.
18133         * tty/devlatin1/R.proto: Likewise.
18135 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
18137         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18138         argument to \w is at a different input level.
18140         * tbl/table.c (table::init_output): Define a new macro
18141         REPEATED_VPT_MACRO, like vpt but if in a diversion also
18142         transparently outputs itself.
18143         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18144         vpt.
18145         (table::do_row): Likewise.
18147         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18148         TRANSPARENT_STRING_NAME.
18150         * tbl/table.c (table::init_output): In the table release macro
18151         print an error message and don't produce any output if after
18152         issuing the need request the table still will not fit.  Also
18153         remove the diversion after bringing it back.
18155         * tbl/table.c (table::init_output): Define a new macro
18156         REPEATED_MARK_MACRO, like mk but if in a diversion also
18157         transparently outputs itself.
18158         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18159         is necessary because .TH might not call .T#.
18160         (table::do_top): Likewise TOP_REG.
18161         (table::define_bottom_macro): If TOP_REG is no longer valid, use
18162         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18163         table header might contain just the two top rules.
18165 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
18167         * troff/div.c: Implement new request `ptr' to print all traps.
18169         * troff/env.c (init_env_requests): Implement `.tabs' reg with
18170         init_string_env_reg.
18171         * troff/env.c (class tab_reg): Deleted.
18173 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
18175         * troff/div.c: New number register .pn returns the number of the
18176         next page as set by the pn request.
18178         * macros/tmac.an: Redid headers and footers.  Number each manual
18179         entry starting from 1 unless \nC is > 0, like Sun.  Added an
18180         optional 5th argument to .TH which specifies the manual name and
18181         appears in the center of the header.  Understand the X, P and D
18182         registers like Sun.
18184 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
18186         * troff/env.c (init_env_requests): New number register `.lt' to
18187         return the title length.
18189         * troff/node.h (class transparent_dummy_node): New class.
18190         * troff/node.c (class transparent_dummy_node): Provide member
18191         functions. 
18192         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18193         than a dummy_node.
18195         * troff/input.c (token::next): New escape sequence \).
18196         * troff/input.c (get_copy): Recognize \) in copy mode.
18198         * troff/input.c (input_stack::clear): New function.
18199         * troff/input.c (exit_request): Use input_stack::clear.
18201         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18202         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18204         * troff/env.c: Move set_page_character to input.c.  Move
18205         page_character to input.c also.
18206         * troff/env.c (title): Split off the reading of the parts of the
18207         title into read_title_parts.
18208         * troff/input.c (read_title_parts): New function.  Check the
18209         input_level when testing whether a token matches the delimiter.
18211         * troff/input.c (exit_request): New function.
18212         * troff/input.c (init_input_requests): Bind ex request to
18213         exit_request rather than exit_groff.
18215         * troff/input.c (exit_groff): Call tok.next() before
18216         process_input_stack().
18218 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
18220         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18221         * troff/env.h: ditto.
18222         * troff/input.c: ditto.
18224         * troff/env.c (environment::is_empty): Test pending_lines.
18226         * troff/env.c (environment::have_pending_lines): Removed.
18228         * troff/input.c: Add request to flush pending lines from the
18229         environment.
18231         * troff/env.c, troff/env.h: Add automatic widow control feature.
18233         * troff/input.c (exit_groff):  Do process_input_stack() after
18234         do_break() but before setting exit_flag to 2.
18236         * troff/input.c: Remove FLUSH_PENDING_LINES and
18237         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18238         environment after END_TRAP token seen, but only if there aren't
18239         any more traps still unfinished.
18240         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18242 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
18244         * troff/env.c: Rename the `retain_size' member of class
18245         pending_output_line to `no_fill'.
18247         * troff/env.c (title): When the line is output, make the
18248         retain_size argument !fill.
18250         * troff/node.h: Add `hyphenated' member to struct breakpoint.
18251         * troff/node.c (space_node::get_breakpoints),
18252         (dbreak_node::get_breakpoints):  Fill this in.
18253         * troff/env.c:  Allow specification of maximum number of
18254         consecutive hyphenated lines.
18256         * troff/env.c (environment::is_empty): Add test for !current_tab.
18258 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
18260         * troff/env.c (environment::hyphenate_line): Don't completely give
18261         up if the word is not to be hyphenated; continue so that breaks
18262         can be made at break_char_node's.
18264         * lib/lib.h: Only define INT_MAX if it's not already defined;
18265         undef INT_MIN if it's already defined.
18267         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18269         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18270         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18271         compiler.
18272         
18273         * macros/tmac.an (an-header): Set no-space mode.
18275         * macros/tmac.an (TH): Start a new page if necessary.
18277         * Started using ChangeLog at version 0.4.
18279 Local Variables:
18280 version-control: never
18281 coding: latin-1
18282 End: