* src/roff/troff/input.cpp (string_iterator::fill): Protect against
[s-roff.git] / ChangeLog
blob8bfd7aa08aa7c5c16197670f1a74e48ddbc3a4ed
1 2005-02-28  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
4         null pointer.
6         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
8         * configure: Regenerated.
10         * NEWS: Updated.
12 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
14         Integrate `pdfmark' into normal groff build system;
15         install macro `pdfmark' packages, build and install `pdfroff',
16         and PDF format documentation.
18         * Makefile.comm: Add PDFDOCDIR.
20         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
21         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
22         (unstall_dirs): Add pdfdocdir.
24         * aclocal.m4: (GROFF_APPRESDIR_OPTION): use AC_HELP_STRING instead
25         of AS_HELP_STRING.
26         (GROFF_GHOSTSCRIPT_PREFS): New function; support `--with-alt-gs'
27         option, set ALT_GHOSTSCRIPT_PROGS.
28         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
29         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
30         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
31         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
32         set ALT_AWK_PROGS.
33         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
34         use of GROFF_AWK_PREFS.
35         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
36         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
38         * configure.ac: Add AC_PREREQ(2.56), GROFF_PDFDOC_PROGRAMS.
39         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
40         also by modified GROFF_HTML_PROGRAMS).
42 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
44         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
45         paragraph spacing.
46         (html_text::done_para): Unset `start_space'.
47         (html_text::remove_para_align): Call `retrieve_para_space' for the
48         spacing.
50         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
51         `seen_space'.
52         (html_printer::do_check_center): Emit vertical space if necessary.
54         * src/roff/troff/env.cpp (environment_switch): Preserve
55         `seen_space', `seen_eol', and `suppress_next_eol' while switching
56         environments.
58         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
59         `is_special'.
61 2005-02-20  Werner LEMBERG  <wl@gnu.org>
63         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
64         eqn.
66 2005-02-17  Werner LEMBERG  <wl@gnu.org>
68         * doc/pic.ms, man/groff.man: Fix typos.
70         * doc/groff.texinfo: Fix typos.
71         (\LEmacro): Get proper mathematical spacing.
73 2005-02-16  Werner LEMBERG  <wl@gnu.org>
75         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
76         * configure: Regenerated with autoconf 2.59b.
78 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
80         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
81         html_printer::start_font): Fix handling of preformatted text.
83 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
85         These patches modify the indentation implementation to use `<p
86         style=margin-left: n%>'.  Many thanks to Peter and Larry for
87         suggesting this solution.  Grohtml only uses tables for `.IP' and
88         related tags when the first operand has a short width.
90         Similarly, they modify all vertical space code.  By default, grohtml
91         sets up a style sheet which uses no vertical space between `table',
92         `pre', and `p' tags.  It forces spaces when it needs them using
93         `style="margin-top: 1em"'.
95         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
96         (html_table::emit_table_header, html_table::emit_new_row):
97         Rewritten.
98         (html_table::set_space): New function.
99         (html_indent::html_indent): Don't set `is_used'.
100         (html_indent::begin): Rewritten.
101         (html_indent::end): Remove code in function.
103         * src/devices/grohtml/html-table.h: Updated.
104         (html_table): Make `out' public.
106         * src/devices/grohtml/html-text.cpp (html_text::html_text):
107         Initialize `start_space' with FALSE.
108         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
109         (html_text::issue_tag): Add argument to handle space style.
110         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
111         (html_text::flush_text): Don't set `start_space'.
112         (html_text::push_para): Don't set `p->really_issued'.
113         (html_text::do_emittext): Updated.
114         (html_text::do_para): Add paremeter to handle space.
115         Update all callers.
116         (html_text::retrieve_para_space): New function.
118         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
119         (tag_definition): Remove `really_issued'.
120         (html_text): Updated.
122         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
123         `current_column' and `row_space'.
124         Update constructor.
125         (html_printer::emit_raw, html_printer::write_header,
126         html_printer::do_indent, html_printer::do_check_center,
127         html_printer::do_tab_ts): Handle vertical space.
128         (html_printer:do_tab_te, html_printer::do_end_para): Call
129         `remove_para_space'.
130         (html_printer::do_col): Rewritten.
131         (html_printer::flush_globs): Remove debugging code.
132         (html_printer::is_line_start): New function.
133         (html_printer::start_font): Use `is_line_start'.
134         (html_printer::writeHeadMetaStyle): New function.
135         (html_printer::do_file_components, html_printer::~html_printer):
136         Call `writeHeadMetaStyle'.
138         * tmac/www.tmac (www-handle-percent): New macro.
139         (MPIMG): Handle percent values for width and height parameters.
140         (DC): Updated.
142         * tmac/groff_www.man: Updated.
144 2005-02-14  Werner LEMBERG  <wl@gnu.org>
146         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
147         $psname and $italic_angle.
148         Immediately restart file input loops if `split' returns an empty
149         array.
151 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
152             Werner LEMBERG  <wl@gnu.org>
154         Update afmtodit to better support Unicode (Michail).
155         Update afmtodit to use Perl 5 syntax (Werner).
157         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
158         `Getopts::Std'.
159         Decorate variables with `my' where necessary.
160         Use `defined' where necessary to avoid warnings.
161         Don't use `do' for subroutine calls.
162         Other minor syntax updates.
163         Check for both `uXXXX[X[X]]' and `uniXXXX'.
164         Handle glyph variants properly.
165         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
166         strings.
168         * src/utils/afmtodit/afmtodit.man: Updated.
170 2005-02-13  Werner LEMBERG  <wl@gnu.org>
172         Make groff.texinfo work with texinfo 4.8.
174         * doc/groff.texinfo (@Var): Use @r and @slanted.
175         (@defdummy, @Def*): Use @c to avoid empty lines.
176         (\angles): Replaced with...
177         (\Langlemacro, \Ranglemacro): New TeX macros.
178         (@Langlemacro, @Ranglemacro): New variables defined with @set.
179         (@angles): Use @Langlemacro and @Ranglemacro.
180         (\LE): Replaced with...
181         (\LEmacro): New TeX macro.
182         (@LEmacro): New variable defined with @set.
183         (@LE): Use @LEmacro.
184         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
185         variables defined with @set.
186         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
187         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
188         Update all callers.
190         Other minor updates.
192         * doc/texinfo.tex: Update to texinfo version 4.8.
194         * README.CVS: Updated.
196 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
198         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
199         and `FAM' registers.
201 2005-02-05  Werner LEMBERG  <wl@gnu.org>
203         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
204         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
205         Update BSD license.
207 2005-02-01  Werner LEMBERG  <wl@gnu.org>
209         * src/roff/groff/groff.man: Add information about paper size.
211 2005-01-25  Werner LEMBERG  <wl@gnu.org>
213         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
214         NetBSD bin/29114.
216 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
218         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
219         cases.
220         (Re): Emit a warning if called without `.Rs'.
221         (doc-finish-reference): Use parameter for decreasing
222         `doc-reference-count'.
223         (doc-print-reference): Pass specific count parameters to
224         `doc-finish-reference'.
226 2005-01-21  Werner LEMBERG  <wl@gnu.org>
228         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
229         Reset pointers to zero after deallocation.  This fixes a crash
230         if a driver is called with multiple input files.  Reported by
231         Ken Chilton <ken@chiltonfamily.org>.
233         * src/devices/grops/grops.man: Add more info on DSC.
235 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
237         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
238         Remove dead code.
240 2005-01-17  Werner LEMBERG  <wl@gnu.org>
242         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
243         against division by zero.
245 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
247         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
249 2004-12-19  Werner LEMBERG  <wl@gnu.org>
251         * install-sh: New version; taken from texinfo CVS.
253 2004-12-17  Werner LEMBERG  <wl@gnu.org>
255         * tmac/devtag.tmac: Protect against loading twice.
256         Protect agains compatibility mode.
257         * tmac/www.tmac: Protect against loading twice.
258         Load `devtag.tmac' before switching off compatibility mode.
259         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
261 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
263         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
264         * configure: Updated.
266 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
268         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
270 2004-12-15  Werner LEMBERG  <wl@gnu.org>
272         Make `test-groff' work again -- previously, wrong paths have been
273         used.  Additionally, it can now be called from anywhere.
275         * test-groff.in: Don't test for groff binary.  This is no longer
276         necessary since the proper paths are determined by `configure'.
277         (EXEEXT): Removed.  No longer used.
278         (srcdir, builddir): Use values provided by the configure script.
279         (XENVIRONMENT): Updated.
281         * INSTALL: Updated.
283 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
285         Make .tag and .taga work for all devices (but only grohtml actually
286         handles them).
288         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
289         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
290         html_printer::handle_assertion): Don't use hard-coded string
291         lengths.
292         (html_printer::lookahead_for_table): Reset `tbl' properly if
293         necessary.
294         (html_printer::devtag): New function, handling `devtag'.
295         (html_printer::special): Don't handle `html-tag'.
297         * src/include/printer.h, src/libs/libdriver/printer.cpp
298         (printer::devtag): New virtual function.
300         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
301         `devtag'.
303         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
304         src/roff/troff/node.cpp: s/html-tag/devtag/.
306         * src/roff/troff/input.cpp (tag, taga): Always call
307         curenv->add_node.
309         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
310         macros instead of HTML-TAG*.
312         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
314         * tmac/www.tmac: Load devtag.tmac.
315         Replace HTML-TAG* macros with DEVTAG* macros.
316         (HTML, HTML-NS): Changed definitions.
317         (URL): Use HTML-NS.
318         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
320         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
322 2004-12-10  Werner LEMBERG  <wl@gnu.org>
324         Import Mike's `gdiffmk' package.
326         * contrib/gdiffmk/*: New files.
327         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
328         * NEWS: Updated.
330 2004-12-08  Werner LEMBERG  <wl@gnu.org>
332         Import Keith's `pdfmark' package.  Integration is very preliminary.
334         * contrib/pdfmark/*: New files.
335         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
336         * NEWS: Updated.
338 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
340         Fix a bug with title handling in HTML.
342         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
343         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
344         length.
345         (html_printer::handle_tag_within_title): New function.
346         (html_printer::do_title): Use it.
348         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
349         (cov*tl-au-print): Emit `.eo.tl' tag.
351 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
353         * man/groff_char.man: Minor imrovements.
355 2004-12-04  Werner LEMBERG  <wl@gnu.org>
357         * src/preproc/eqn/eqn.man: Revised.
359 2004-11-25  Werner LEMBERG  <wl@gnu.org>
361         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
362         groff source files.
363         Include config.h.
364         Include limits.h.
365         Remove X_NOT_STDC_ENV conditional.
366         (Version_string, program_name): New global variables.
367         (groff_flag): Removed.
368         (MapFont): Updated.
369         (usage): Take a stream as argument.
370         Use `program_name'.
371         Update all callers.
372         (main): Add `long_options' array for `--help' and `--version'.
373         Make `-g' a dummy option.
374         Handle `-v' and unknown options.
375         Remove unused `position' variable.
377         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
378         (XLIBS): Add LIBGROFF.
380         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
381         New files.
383         * src/devices/xditview/Dvi.c (default_font_map): Split into three
384         parts to avoid compiler warning.
385         (resources): Don't initialize with `default_font_map'.
386         (ClassInitialize): Initialize first element of `resources'.
388         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
389         Removed.
391         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
392         src/utils/pfbtops/pfbtops.man: Revised, updated.
394         * configure.ac: Generate src/utils/xtotroff/Makefile.
395         * configure: Regenerated.
397 2004-11-24  Werner LEMBERG  <wl@gnu.org>
399         First fixes to get produce HTML.
401         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
402         attribute.
404         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
405         (HR, LI): Use `HTML</p>', not `HTML'.
407         * doc/webpage.ms: Minor updates.
409 2004-11-23  Larry Kollar  <kollar@alltel.net>
411         Add option -S grohtml to determine the file split level.
413         * src/devices/grohtml/post-html.cpp (split_level): New global
414         variable.
415         (html_header::determine_header_level): Use split_level.
416         (main): Handle `-S' command line option.
417         Sort options.
419         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
421         * src/devices/grohtml/grohtml.man: Document it.
422         Sort options.
424         * NEWS: Document it.
426 2004-11-23  Y T  <doarhop@hotmail.com>
428         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
429         the volume and number refer entries.
431 2004-11-22  Werner LEMBERG  <wl@gnu.org>
433         * src/devices/grohtml/html-table.cpp
434         (html_table::emit_table_header): Don't emit `cols' attribute which
435         doesn't exist in HTML 4.0 and is thus invalid.
437         * NEWS: More minor fixes and updates.
439 2004-11-18  Werner LEMBERG  <wl@gnu.org>
441         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
442         (HTML</p>): Minor clean-up.
444         * tmac/groff_www.man: Updated.
446         * src/devices/grohtml/grohtml.man: Revised and updated.
448         * NEWS: Updated.
450 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
452         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
453         Fix space insertion.
454         (html_printer::do_links): Fix rules generation around automatic
455         heading links.
457         * tmac/www.tmac (LK): Use HTML-TAG-NS.
458         (HR): Simplify.
459         No longer emit empty line for non-HTML devices.
461 2004-11-17  Werner LEMBERG  <wl@gnu.org>
463         * doc/Makefile.in (prepare_examples, webpage.html): Handle
464         `groff.css'.
466         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
467         prepare_examples, webpage.html): Handle `groff.css'.
469 2004-11-15  Werner LEMBERG  <wl@gnu.org>
471         * NEWS, README, doc/webpage.ms: Updated.
473         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
475 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
477         * src/include/printer.h (printer): Remove virtual function
478         `round_width'.
479         Update all source files.
481         * src/devices/grohtml/post-html.cpp (html_printer): New member
482         function `round_width'.
484 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
486         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
487         column key letter suffix.
489 2004-10-14  Werner LEMBERG  <wl@gnu.org>
491         * Makefile.in (check): Depend on `site.exp' and `docheck'.
492         (docheck): Run dejagnu's `runtest' if it exists.
493         (site.exp): Create dejagnu configuration file.
495         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
497 2004-10-13  Werner LEMBERG  <wl@gnu.org>
499         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
500         src/devices/grohtml/post-html.cpp (make_val,
501         html_printer::handle_state_assertion): Fix compiler warnings.
503         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
504         (diversion::diversion): Fix order of initializers.
506         * src/roff/troff/div.h: Don't include `mtsm.h'.
508         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
509         (environment::environment): Fix order of initializers.
510         (environment::make_tag, environment::construct_format_state): Fix
511         compiler warnings.
513         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
514         (input_iterator::input_iterator, macro::macro): Fix order of
515         initializers.
517         * src/roff/troff/mtsm.cpp: Include only necessary header files.
518         (state_set::add, state_set::val): Fix compiler warnings.
520         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
521         (bool_value_state, int_value_state, units_value_state,
522         string_value_state): Remove comma after last element which causes
523         an error with g++ 3.3.3.
525         * src/roff/troff/node.cpp: Include `stringclass.h'.
526         (hline_node::hline_node, vline_node::vline_node,
527         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
528         warnings.
529         (zero_width_node::zero_width_node): Fix order of initializers.
531         * src/roff/troff/node.h: Don't include `mtsm.h'.
532         (hmotion_node): Fix compiler warnings.
534         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
536 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
538         * doc/groff.css: New file.
540         * doc/webpage.ms: Use `groff.css'.
541         Other small fixes.
543         * tmac/an-old.tmac (need_eo_h): New number register.
544         (TH): Emit `.eo.tl' tag after title.
545         (SH): Set `need_eo_h'.
546         (an-trap): Handle `need_eo_h'.
547         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
549         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
550         (TL): Always start diversion.
551         Updated.
552         (@AI): Always call `par@reset'.
553         (@AB): Update code for -Thtml.
554         (cov*tl-au-print): Handle -Thtml.
555         (par@reset): Handle `need_eo_tl', `need_eo_h'.
556         (@IP): Simplified.
557         (@IT-html): Removed.
558         (@SH): Set `need_eo_h' for -Thtml.
559         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
560         Set `need_eo_tl'.
561         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
562         Set `need_eo_h' for -Thtml.
563         (@EQ, @EN): Don't handle -Thtml specially.
564         (par@load-init): Don't handle -Thtml specially.
566         * tmac/www.tmac (www:paraspace): New macro.
567         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
568         (HTML</p>, HTML-TAG-NEXT): New macros.
569         (HnE): Emit tag `.eo.h' instead of break.
570         (HR): s/HTML-NS/HTML/.
571         (www-end-nowhere): End diversion only if `www-html' not set.
572         Emit `.eo.tl' tag.
573         (ULS, ULE): s|HTML|HTML</p>|.
574         (LI): Call `www:paraspace'.
575         (HEAD): New macro.
577 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
579         * src/roff/troff/request.h (macro): Make `p' public.
580         New variable `is_a_diversion'.
581         New member function `is_diversion'.
584         * src/devices/grohtml/html.h (simple_output): New member function
585         `force_nl'.
587         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
588         computation of `total'.
589         (tabs::check_init): New function.
590         (html_table::emit_table_header): Emit style data.
591         (html_table::insert_column): Improved.
593         * src/devices/grohtml/html-table.h: Updated.
595         * src/devices/grohtml/html-text.cpp (html_text::html_text):
596         Initialize `start_space' with TRUE.
597         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
598         cases.
599         (html_text::flush_text): Set `start_space' flag.
600         (html_text::uses_indent, html_text::remove_para_space,
601         html_text::get_alignment): New functions.
602         (html_text::push_para): Updated.
603         (html_text::do_para): Check for empty argument.
604         Don't set `space_emitted'.
605         (html_text::do_space, html_text::emit_space): Updated.
607         * src/devices/grohtml/html-text.h (tag_definition): New variable
608         `really_issued'.
609         (html_text): New member function `uses_indent', `remove_para_space',
610         `get_alignment'.
612         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
613         function.
614         (simple_output:nl): Always emit `\n'.
616         * src/devices/grohtml/post-html.cpp: Include `string.h'.
617         (BASE_POINT_SIZE): Removed.
618         (base_point_size, head_info): New global variables.
619         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
620         `is_eo_h'.
621         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
622         tags, respectively.
623         (page::add_and_encode): Pass additional parameter for tag flag.
624         (assert_pos): New structure.
625         (assert_state): New class.
626         (html_printer): Remove `indentation', `prev_indent'.
627         Add variables `troff_indent', `device_indent', `temp_indent'.
628         Add variables `seen_indent', `next_indent', `seen_pageoffset',
629         `next_pageoffset', `seen_linelenght', `next_linelength',
630         `seen_center', `next_center', `seen_space', `seen_break', `as'.
631         Add member functions `do_check_center', `do_space', `do_head',
632         `get_troff_indent', `restore_troff_indent', `handle_assertion',
633         `handle_state_assertion', `do_end_para', `set_char_and_width'.
634         Change argument to `do_fill' to `char *'.
635         Update constructor.
636         (html_printer::emit_raw): Call `shutdown_table'.
637         Use new functions.
638         (html_printer::do_center): Simplified.
639         (html_printer::do_title): Improved.
640         (html_printer::write_header): Emit one more newline.
641         Use new functions.
642         (html_printer::do_heading, html_printer::do_indent,
643         html_printer::do_eol, html_printer::do_tab_ts,
644         html_printer::do_tab, html_printer::do_tab0,
645         html_printer::calc_po_in, html_printer::next_horiz_pos,
646         html_printer::remove_courier_tabs,
647         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
648         Updated.
649         (html_printer::do_linelength, html_printer::do_pageoffset,
650         html_printer::do_indentation, html_printer::do_tempindent,
651         html_printer::do_tab_te): Simplified.
652         (html_printer::do_pointsize): Check whether point size is really
653         associated a `.tl' tag.
654         (html_printer::do_break): Rewritten.
655         (html_printer::troff_tag): Improved.
656         (html_printer::flush_globs): Updated.
657         (html_printer::lookahead_for_tables): Handle `is_br'.
658         Use new functions.
659         (html_printer::set_char): Check `sbuf_style.f'.
660         (html_printer::write_navigation): Use string comparison.
661         (html_printer::~html_printer): Emit `head_info'.
662         (html_printer::special): Rewritten.
663         (get_str, make_val): New functions.
664         (main): New option `s' to set the base point size.
666         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
668 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
670         * src/roff/troff/node.cpp: New extern `debug_state'.
671         Include `stringclass.h' and `mtsm.h'.
672         Implement new classes and class members from `node.h'.
673         (real_output_file): Make `fp' public.
674         (troff_output_file): New variables `cur_div_level' and `tag_list'.
675         Update constructors.
676         (troff_output_file::really_print_line): Check whether we should push
677         the current troff state and use the state at the start of the
678         invocation of this diversion.
679         (troff_output_file::add_to_tag_list): New member function.
680         (node::add_char): Handle `glyph_comp_np'.
682         * src/roff/troff/node.h: Include `mtsm.h'.
683         (node): New variables `state', `push_state', `div_nest_level',
684         `is_special'.  Update constructors, all descendants.
685         Pass additional argument to `add_char' member function.
686         New virtual member functions `is_tag', `debug_node',
687         `debug_node_list'.  Update all descendants.
688         (tag_node): New class for handling tags.
689         (output_file): Add variable `state'.
691 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
693         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
694         providing a minimal troff state machine to emit meta tags for the
695         post-grohtml device driver.
697         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
698         files.
700 2004-10-09  Werner LEMBERG  <wl@gnu.org>
702         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
704 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
706         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
708         * src/roff/troff/div.h: Include `mtsm.h'.
709         (diversion): New variables `any_chars_added', `needs_push',
710         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
711         `saved_suppress_next_eol', `modified_tag'.
712         New virtual member function `is_diversion'.  Update all descendants.
714         * src/roff/troff/div.cpp (diversion::diversion,
715         macro_diversion::macro_diversion): Updated.
716         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
717         `suppress_next_eol'.
718         (top_level_diversion::space): Handle `curenv->seen_space'.
719         (page_offset): Update tag handling.
720         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
722         * src/roff/troff/env.h (environment): Make `tabs' public.
723         Remove `ignore_next_eol', `emitted_node'.
724         Update `output_line', `output'.
725         New variables `seen_space', `seen_eol', `suppress_next_eol',
726         `seen_break'.
727         New member functions `construct_state', `make_tag',
728         `construct_format_state, `construct_new_line_state,
729         `dump_troff_state'.
730         Remove `add_html_tag', `make_html_tag'.
732         * src/roff/troff/env.cpp: New externs `suppress_push',
733         `get_diversion_state', `global_diverted_space'.
734         (pending_output_line): New variable `was_centered'.
735         Update constructor and all callers.
736         (pending_output_line::output): Call `curenv->construct_format_state'.
737         (environment::environment, environment::copy): Updated.
738         (environment::output): Handle `was_centered'.
739         (environment::add_char): Handle construct and diversion state.
740         (environment::add_node): Handle construct state.
741         (environment::newline): Handle `was_centered'.
742         (environment::output_line): Updated.
743         (environment::possibly_break_line): Updated.
744         Update tag handling.
745         (environment::add_html_tag): Replaced with...
746         (environment::make_tag): New function.
747         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
748         (environment::dump_troff_state): New debugging function.
749         (environment::construct_state, environment::construct_format_state,
750         environment::construct_new_line_state): New functions.
751         (environment::do_break): Updated.
752         Handle `global_diverted_space'.
753         (environment::handle_tag): Update tag handling.
754         (point_size, fill, do_break_request): Don't call `add_html_tag'.
755         (no_fill): Don't call `add_html_tag'.
756         Set `suppress_next_eol'.
757         (center, right_justify, line_length, indent, temporary_indent,
758         set_tabs):
759         Update tag handling.
761         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
762         (input_iterator): New variables `is_diversion', `diversion_state'.
763         Update constructors.
764         (input_stack): New member functions `get_div_level',
765         `get_diversion_state', `check_end_diversion'.
766         New variables `div_level', `diversion_state'.  Initialize them.
767         (suppress_push, global_diverted_space): New global variables.
768         (input_stack::finish_get, input_stack::finish_peek,
769         input_stack::remove_boundary, input_stack::end_file,
770         input_stack::clear, input_stack::pop_macro): Call
771         `check_end_diversion'.
772         (input_stack::push): Handle `div_level' and `diversion_state'.
773         (get_diversion_state): New function.
774         (diverted_space_node::reread): Handle `global_diverted_space'.
775         (macro::macro): Update constructors.
776         (macro::is_diversion): New function.
777         (macro::operator=): Set `is_a_diversion'.
778         (string_iterator): New member function `is_diversion'.
779         (string_iterator::string_iterator): Update constructors.
780         (string_iterator::fill): Set `div_nest_level'.
781         (macro_iterator): New member function `is_diversion'.
782         (do_if_request): Handle `suppress_push'.
783         (tag, taga): New functions.
784         (init_input_requests): Add `tag' and `taga' requests.
786 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
788         * src/include/font.h (font): New member function
789         `get_image_generator'.
790         New variables `unscaled_charwidths' and `image_generator'.
792         * src/libs/libgroff/font.cpp (font::get_width): Always return the
793         character's unscaled width if `font::unscaled_charwidths' is set.
794         (font::get_image_generator): New function.
795         (font::load_desc): Check the `unscaled_charwidths' and
796         `image_generator' keywords.
798         * src/libs/libgroff/fontfile.cpp: Initialize
799         `font::unscaled_charwidths' and `font::image_generator'.
801         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
803         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
805         * man/groff_font.man: Document `unscaled_charwidths' and
806         `image_generator'.
808         * src/preproc/html/pre-html.cpp: Include `device.h'.
809         (image_gen): New global variable.
810         (imageList::createPage): Use `image_gen'.
811         (main): Use `image_generator' keyword.
813 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
815         * tmac/html.tmac: Handle \[sqrtex].
817 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
819         * src/include/printer.h (printer): New virtual method `round_width'.
821         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
822         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
823         src/devices/grotty/tty.cpp (printer::round_width): New function
824         member.
826         * src/devices/grohtml/post-html.cpp (printer::round_width): New
827         function member.
828         (html_printer::set_numbered_char): Use it.
830 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
832         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
834         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
836         * configure: Regenerated.
838         * Makefile.in (GHOSTSCRIPT): New variable.
839         (MDEFINES): Add GHOSTSCRIPT.
841 2004-10-03  Werner LEMBERG  <wl@gnu.org>
843         * INSTALL.gen: Updated (taken from texinfo CVS).
845 2004-09-28  Werner LEMBERG  <wl@gnu.org>
847         * NEWS: Updated.
849 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
851         * tmac/groff_www.man: Revised and updated.
853 2004-09-26  Werner LEMBERG  <wl@gnu.org>
855         Fix \$@ and \$* to handle any number of arguments.
857         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
858         characters.
860         * src/roff/troff/input.cpp (input_iterator::internal_level):
861         Removed.
862         (input_stack): New member functions `increase_level' and
863         `decrease_level'.
864         (input_stack::get_level): Don't use `internal_level'.
865         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
866         (end_quote_iterator): Completely removed.
867         (interpolate_arg): Build string for \$@ and \$* which is then
868         pushed onto the input stack.
870 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
872         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
873         2004-09-19.
875 2004-09-23  Werner LEMBERG  <wl@gnu.org>
877         * tmac/an-old.tmac (ne): Using default scaling operator.
879 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
881         This change implements the following features:
883         PORPHANS
884           New numeric register: Defines number of lines following LP, PP,
885           QP, IP or XP, which must be kept together, before any automatic
886           page break.  If insufficient space remains on the current page, a
887           page break is forced before the new paragraph begins.
889         HORPHANS
890           New numeric register: Sets number of lines of following paragraph
891           which must be kept with a heading, defined by NH or SH, before any
892           automatic page break.  If insufficient space remains on the
893           current page, a page break is forced before the heading.
895         GROWPS
896           (Thanks to Joerg van den Hoff, for this idea).
898           New numeric register: Sets the first level of heading (set with
899           NH), which will keep the same point size as body text; e.g. if
900           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
901           point size specified by \n[PS], but .NH 2 and .NH 1 will have
902           progressively larger point sizes, determined by \n[PSINCR] (see
903           below).
905         PSINCR
906           New numeric register: Sets the point size increment for each level
907           of heading, (set with NH), below the threshold level set by
908           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
909           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
910           and all other levels will remain at 10pt, (because \n[PS] = 10).
912         SH
913           Existing macro now accepts a numeric argument, to make heading
914           size match that of NH with same argument value, when the
915           GROWPS/PSINCR feature is enabled.
917         SN-DOT
918           New string, set by NH macro, replaces the existing (undocumented)
919           use of SN, to represent the assigned section number.
921         SN-NO-DOT
922           New string, set by NH macro, represents the assigned section
923           number, but omits the terminal period (periods at intermediate
924           levels are retained).
926         SN
927           String set by NH macro, originally undocumented, now implemented
928           as an alias for SN-DOT (which reproduces original behaviour).
930         * tmac/s.tmac (PORPHANS): New register.
931         (par*start): Use it.
932         (HORPHANS, GROWPS, PSINCR): New registers.
933         (SH-NO-TAG, @SH): Use them.
934         (@NH): Improved.
936 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
938         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
939         of `Ds' and `De' macros.
941 2004-09-10  Werner LEMBERG  <wl@gnu.org>
943         In tbl, handle \a as an interpreted leader character if in
944         compatibility mode.
946         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
947         LEADER_CHAR): New macros.
948         (compatible_flag): New declaration.
950         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
951         LEADER_3, and LEADER_4 to `state'.
952         (table_input::get): Handle `\a'.
954         * src/preproc/tbl/table.cpp (PREFIX): Removed.
955         (LEADER_REG): New macro.
956         (table::init_output): Define LEADER_REG string register if in
957         compatibility mode.
959         * src/preproc/tbl/tbl.man: Document it.
961 2004-08-18  Werner LEMBERG  <wl@gnu.org>
963         * tmac/doc.tmac (An): Fix error message.
965 2004-08-06  Werner LEMBERG  <wl@gnu.org>
967         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
968         file can't be opened.  UNIX tbl has the same behaviour.
970 2004-08-05  Y T  <doarhop@hotmail.com>
972         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
973         (DBRead): If in compatibility mode, take into account the text
974         when computing figure boundaries.
976 2004-08-05  Werner LEMBERG  <wl@gnu.org>
978         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
979         from Tadziu Hoffmann.
981 2004-08-03  Werner LEMBERG  <wl@gnu.org>
983         * doc/meref.me: Document `_M' register.
985 2004-08-03  Martin Husemann  <martin@duskware.de>
987         Make hpftodit work correctly on big-endian systems.
989         * src/utils/hpftodit/hpftodit.cpp (File): New method
990         `get_uint32(char *)'.
991         (entry): New member `orig_value'.
992         (read_tags): Use new method.
993         (output_font_name, read_and_output_pcltypeface, dump_ascii):
994         Updated.
996 2004-08-01  Werner LEMBERG  <wl@gnu.org>
998         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
999         are already in X11's `macros.t' file.
1001 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1003         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1004         Fix casting bug.
1005         (read_and_output_pcltypeface): Handle strings with length <= 4.
1007 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1009         * tmac/s.tmac (pg@top): Don't save `PO' register.
1010         (pg*end-col, pg*end-page): Directly use `PO' register.
1012 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1014         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1016         * src/preproc/refer/refer.cpp (output_references): Check for
1017         empty hash table.
1018         * src/preproc/refer/refer.man: Improve documentation of
1019         `bibliography' command.
1021 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1023         Add requests `fcolor' and `gcolor'.
1025         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1026         New functions.
1027         (init_env_requests): Add `fcolor' and `gcolor'.
1029         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1031         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1032         Document new requests.
1034 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1036         Add support for fractional point sizes in ms macros.  A value for
1037         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1038         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1040         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1041         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1043         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1045 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1047         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1048         Update constructor.
1049         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1050         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1052 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1054         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1055         * tmac/groff_mdoc.man: Updated.
1057 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1059         * doc/groff.texinfo: Further improve documentation of `hcode'.
1061 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1063         Improve appearance of arrows in pic.
1065         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1066         arrow head thin.
1067         Use two line segments for drawing non-filled arrow head.
1068         (line_object::print, spline_object::print): Shorten line length to
1069         avoid arrow sticking.
1070         (arc_object::print): Take arrow direction into account.
1072 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1074         * tmac/groff_www.man: Update documentation of .MPIMG.
1076 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1078         * tmac/an-old.tmac (RI): Always start with font `R'.
1079         (RI, IR): Properly end with font `R'.
1081 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1083         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1084         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1085         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1086         Don't pass more than six arguments to .R, .I, .B, etc., for
1087         compatibility with traditional troff macros.
1089 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1091         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1092         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1093         Update all users.
1094         (PUSH_COMP_MODE): New internal character constant.
1095         Update all users.
1097         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1098         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1099         (token::next, macro::append): Handle PUSH_COMP_MODE.
1100         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1101         POP_GROFFCOMP after each of the decoded arguments to make them
1102         independent from the compatibility mode status.
1103         (comp_mode): Add `COMP_ENABLE'.
1104         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1105         (define_string, append_string, define_macro, define_indirect_macro,
1106         append_macro, append_indirect_macro): Handle `compatible_flag'.
1107         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1109         * man/groff_diff.man, doc/groff.texinfo: Updated.
1111 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1113         * doc/groff.texinfo: Improve documentation of `hcode'.
1114         Use @documentencoding and convert document to latin-1; to do that
1115         make latin characters active and assign proper macros (within a
1116         @tex...@end tex environment).
1117         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1118         * doc/Makefile.sub (groff): Ditto.
1120 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1122         Implement two new conditional operators `F <name>' and `S <name>'
1123         which check whether <name> is a valid font or style, respectively.
1125         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1126         (text_file::text_file): Updated.
1127         (text_file::error): Don't emit message if `silent' is set.
1128         (font::load_font): Add optional third argument (which is directly
1129         passed to `load'.
1130         (font::load): Add optional second argument to check the header of
1131         a font only, without emitting warning or error messages.
1132         * src/include/font.h (font): Updated.
1134         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1135         conditionals.
1136         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1137         fourth argument to check a font without mounting.
1138         (check_font, check_style): New functions.
1139         * src/roff/troff/node.h: Updated.
1141         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1142         Updated.
1144 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1146         Implement new string-valued register `.sty' to return the current
1147         style name.
1149         * env.cpp (environment::get_style_name_string): New function.
1150         (init_env_requests): Add `.sty' register.
1151         * env.h (environment): Updated.
1152         * node.cpp (font_info): Make `get_style_name' a friend.
1153         (get_style_name): New function.
1154         * node.h: Updated.
1156         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1157         Updated.
1159 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1161         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1162         `nospaces' option.
1164 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1166         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1167         and \n[mo] to avoid dependency on current date.
1169 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1171         * Makefile.sub (install_data): New target.
1173 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1175         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1177 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1179         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1180         order of libraries.
1181         (install_data): Add $(srcdir).
1183         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1184         libraries.
1186 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1188         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1189         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1190         Add test for Xmu library.
1191         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1192         GROFF_APPRESDIR_DEFAULT): New macros.
1194         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1195         and GROFF_APPRESDIR_DEFAULT.
1197         * configure: Regenerated.
1199         * Makefile.in (appresdir): New variable.
1200         (MDEFINES): Add appresdir.
1202         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1203         -Xt.
1204         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1206         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1207         `$(srcdir)/eign', not `eign'.
1209         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1211         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1212         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1213         Protect (g)xditview with `\%' to avoid hyphenation.
1214         Other minor formatting.
1216 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1218         Integrate gxditview into groff's standard directory hierarchy.
1220         * src/xditview/*: Moved to ...
1221         * src/devices/xditview/*: Here.
1222         Moved DviChar.h and XFontName.h to src/include.
1223         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1224         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1225         Moved xtotroff.c to new directory src/utils/xtotroff.
1226         Provide proper Makefile.sub files (reusing the stuff from
1227         Imakefile.in).
1228         DESC renamed to DESC.in.
1229         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1230         Converted everything from K&R to ANSI C.
1231         Decorated with const where appropriate.
1232         Cast string constants with `String' and `char *' where appropriate.
1233         Made it compile with C++ (used as a C compiler).
1234         Removed other minor compiler warnings.
1236         * src/devices/xditview/device.c: Include config.h, string.h, and
1237         defs.h.
1238         Don't declare `exit', `strtok', `strchr', and `getenv'.
1239         (FONTPATH): Remove.
1241         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1242         `XFormatFontName'.
1244         * src/devices/xditview/xditview.c: Include config.h.
1245         Include stdio.h earlier.
1246         Protect declaration of `popen' and `pclose' with
1247         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1248         Replace `caddr_t' with `XtPointer'.
1249         (MakePromptFunc): New typedef.
1250         (DoPrint): Use RETSIGTYPE.
1251         (promptfunction): Change type to MakePromptFunc.
1252         (MakePrompt): Use MakePromptFunc for third argument.
1253         (xmalloc): Removed.
1255         * src/devices/xditview/ad2c: Add casts to `String'.
1257         * src/include/XFontName.h (XFontNameString): Don't use array
1258         notation.
1259         Add prototypes for `XParseFontName', `XFormatFontName',
1260         `XCompareFontName', and `XCopyFontName'.
1262         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1263         `XFontName.h'.
1265         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1266         Don't declare `XParseFontName' and `XFormatFontName'.
1267         (xmalloc): Removed.
1268         (main): Remove `optind' and `optarg'.
1270         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1271         (to select programs which need X).
1272         Make XDEVIDIRS depend on `FORCE'.
1273         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1274         X support).
1275         (MDEFINES): Updated.
1276         (LIBDIRS): Use XLIBDIRS.
1277         (CPROGDIRS): Use XPROGDIRS.
1278         (DEVDIRS): Remove font directories for gxditview.
1279         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1280         (EXTRADIRS): Remove src/xditview.
1282         * Makefile.sub (DISCLEANFILES): Updated.
1284         * Makefile.comm (LIBXUTIL): New variable.
1285         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1286         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1288         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1290         * aclocal.m4 (GROFF_X11): New function.
1292         * configure.ac: Call GROFF_X11.
1293         Don't create src/xditview/Imakefile.
1294         Don't emit notice how to build gxditview.
1296         * configure: Regenerated.
1298         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1300 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1302         * Makefile.in (CPPFLAGS): Define.
1303         (MDEFINES): Add CPPFLAGS.
1305 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1307         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1309 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1311         Fix problems with `friend name injections'.
1313         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1314         make_script_box), src/roff/troff/div.h (end_diversions),
1315         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1316         change 2004-04-08.
1318 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1320         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1322 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1324         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1325         src/libs/libgroff/color.cpp: Include lib.h.
1327 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1329         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1330         through Forte 6u1, and for how to get GNU make on Solaris.
1332 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1334         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1335         by Paul Eggert.
1337 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1339         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1340         rule.
1342 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1344         * REVISION: Set to 2.
1346         * aclocal.m4 (GROFF_STDINT_H): Removed.
1347         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1349         * configure.ac: Updated.
1350         * configure, src/include/config.hin: Regenerated.
1352         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1353         inttypes.h conditionally.
1355 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1357 Version 1.19.1 released
1358 =======================
1360 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1362         * src/preproc/refer/label.y (same_author_last_name,
1363         same_author_name): Handle empty sort keys.
1365 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1367         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1368         tmac/TODO: Updated.
1370         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1371         doc-str-Lb-librt): Reset font.
1372         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1373         Provide `doc-str-Lb' to reset font.
1374         * tmac/groff_mdoc.man: Updated.
1376 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1378         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1379         snprintf versions which don't conform to ANSI C 99 (this is,
1380         counting the string's trailing null byte in the return value).
1382 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1384         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1385         that all implementations of sprintf handle null pointers correctly.
1387 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1389         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1390         Document `.U' register.
1392         * src/roff/troff/env.cpp (environment::mark_last_line)
1393         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1395 2004-05-04  Larry Kollar  <kollar@alltel.net>
1397         New read-only register `.U'; it returns 1 in safer mode and 0
1398         otherwise.
1400         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1401         register.
1403 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1405         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1407 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1409         * src/include/font.h (font): Use `int' for ch_index.
1410         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1411         font::compact): Updated.
1413         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1414         warnings.
1416         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1417         (hyphen_word): Fix compiler warnings.
1418         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1419         `char'.
1420         Update all callers.
1421         (get_delim_number, get_line_arg): Change second argument type to
1422         `unsigned char'.
1423         (macro_header::copy, token::next, do_define_string,
1424         do_define_character, substring_request, asciify_macro,
1425         unformat_macro, read_size, non_interpreted_node::interpret,
1426         while_request, main: Fix compiler warnings.
1427         (read_color_draw_node): Initialize `col'.
1429         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1430         `start_col' and `end_col' of type `int'.
1431         (vertical_rule): Make `col' of type `int'.
1433         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1434         for EOF.
1436         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1437         New arrays.
1438         (format_serial): Use them to remove dependency on ASCII.
1440         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1441         compiler warning.
1442         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1443         Ditto.
1445         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1446         compiler warnings.
1447         (glyph): Change type of `hpos' to `int'.
1449         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1450         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1452         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1454         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1456 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1458         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1459         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1460         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1461         `double' instead of `float' everywhere.
1462         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1463         everywhere.
1464         (main): Add return value.
1465         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1466         everywhere.
1467         Update all user functions.
1469         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1470         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1471         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1472         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1473         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1474         src/roff/troff/input.cpp, src/roff/troff/request.h,
1475         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1476         declarations.
1478         * src/utils/indxbib/signal.c: Include stdlib.h.
1480 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1482         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1483         before the first page.
1485 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1487         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1488         (doc-operating-system-*): Updated.
1489         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1490         (doc-str-Lb-*): Add more library names.
1492 2004-04-10  Art Haas  <ahaas@airmail.net>
1494         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1495         use anonymous type.
1497 2004-04-09  Art Haas  <ahaas@airmail.net>
1499         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1501 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1503         * arch/misc/shdeps.sh: Generate better comment for sed script.
1505 2004-04-08  Art Haas  <ahaas@airmail.net>
1507         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1508         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1509         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1510         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1511         (polyfill), src/preproc/grn/main.cpp (polyfill),
1512         src/preproc/refer/command.cpp (command_table),
1513         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1514         gcc 3.5 doesn't like).
1516 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1518         Removing many compiler warnings.  groff should now compile with
1519         a C++ compiler used for C files also.  [Simple variable renamings
1520         to avoid shadowing aren't logged in detail.]
1522         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1523         (draw_dvi_printer::draw) ['c']: Enclose in block.
1525         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1526         (page::add_line): Fix typos.
1527         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1529         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1530         Some local variable renamings.
1531         * src/devices/grolbp/lbp.h: Some local variable renamings.
1533         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1534         variable renamings.
1536         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1537         Remove redundant local variable declaration.
1538         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1539         Don't use `caddr_t' but `void *'.
1540         Enclose functions with `extern "C"' for C++.
1542         * src/libs/libdriver/input.cpp (remember_filename,
1543         remember_source_filename): Use cast for string constant.
1545         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1546         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1547         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1548         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1549         style.
1550         Enclose functions with `extern "C"' for C++.
1551         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1552         (needs_quoting): Return `int'.
1553         (quote_arg): Add proper casts to malloc and realloc.
1554         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1555         various MS Windows environments.
1556         (spawnvp_wrapper): Add proper cast to malloc.
1558         * src/preproc/eqn/box.h: Remove redundant declarations of
1559         `make_script_box', `make_mark_box' and `make_lineup_box'.
1560         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1561         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1562         variable renamings.
1564         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1565         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1566         (dx, dy): Renamed functions to...
1567         (deltax, deltay): This.
1568         * src/preproc/grn/main.cpp: Some local variable renamings.
1569         (deffont): Add `const'.
1570         (initpic, conv): Use cast for string constant.
1572         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1573         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1574         (char_buffer::run_output_filter): Second argument is unused.
1575         * src/preproc/html/pushback.cpp: Some local variable renamings.
1577         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1578         * src/preproc/pic/object.cpp: Some local variable renamings.
1580         * src/preproc/refer/label.y (lookup_label): Remove redundant
1581         declaration of local variable.
1583         * src/preproc/soelim.cpp: Remove redundant declaration of
1584         `interpret_lf_args'.
1586         * src/preproc/tbl/main.cpp: Some local variable renamings.
1588         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1589         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1590         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1591         Don't use C++-style comments.
1593         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1594         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1595         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1596         renamings.
1597         * src/roff/troff/div.h: Remove redundant declaration of
1598         `end_diversions'.
1599         * src/roff/troff/troff.h: Remove redundant declaration of
1600         `cleanup_and_exit'
1601         * src/roff/troff/input.cpp: Remove redundant declaration of
1602         `handle_first_page_transition' and `process_input_stack'.
1604         * src/utils/hpftodit.cpp: Some local variable renamings.
1606         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1607         for C++.
1608         Don't define RETSIGTYPE.
1609         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1611         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1612         (error): Use `const' in argument.
1613         (main): Remove redundant declaration of `optind'.
1614         Move declaration of `Version_string' to top-level.
1616         * PROBLEMS: Document difficulties compiling signal.c if a C++
1617         compiler is used for C.
1619 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1621         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1623 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1625         Make scripts like nroff.sh and neqn.sh portable across various
1626         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1627         non-POSIX path separators.  The idea is to extend those scripts to
1628         decide at run-time (of the script) which path separator to use.
1630         * arch/misc/Makefile.sub: New file.
1631         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1632         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1633         a proper definition of the variable `GROFF_RUNTIME'.
1635         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1636         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1637         (PROGDEPDIRS): New variable.
1638         `FORCE' it.
1639         (PROGDIRS): Add PROGDEPDIRS.
1641         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1642         Don't substitute @SEP@ and @BINDIR@.
1643         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1644         (PATH): Use GROFF_RUNTIME.
1646         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1647         Don't substitute @SEP@ and @BINDIR@.
1648         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1649         (PATH): Use GROFF_RUNTIME.
1651 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1653         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1654         Cygwin which doesn't handle stderr correctly.
1656 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1658         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1659         against empty argument.  Problem reported by <cgd@broadcom.com>.
1661 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1663         * Makefile.in (SEP): Replaced with...
1664         (RT_SEP, SH_SEP): Separators for the target platform's native path
1665         separator and the build environment, respectively.
1666         (fontpath, tmacpath): Use RT_SEP.
1667         (MDEFINES): Updated.
1669         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1670         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1671         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1672         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1674 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1676         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1677         reduce alignment problems with newer printers which use built-in
1678         TrueType fonts (instead of the older Intellifonts).  The ideal
1679         solution is to provide a second set of groff metric files, but this
1680         is extremely time-consuming to produce, given that HP's metric
1681         files are very rudimentary.
1683 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1685         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1686         s/operand/argument/ in error message.
1688 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1690         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1691         is in use.
1693 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1695         * tmac/s.tmac (XE): Fix error message.
1697 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1699         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1700         New macros.
1702         * src/roff/groff/pipeline.c: Declare strcasecmp.
1703         (run_pipeline) [_WIN32]: Use function name variants which don't
1704         start with `_'.
1705         Fix stream handling.
1707 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1709         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1710         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1711         for platforms which use the native Win32 runtime libraries.
1712         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1714         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1715         QUOTE_ARG_REALLOC_ERROR): Fix string.
1717         * src/preproc/html/pre-html.cpp: Remove declaration of
1718         `spawnvp_wrapper'.
1719         Don't use __MINGW32__.
1720         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1721         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1722         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1723         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1724         calls to `set_redirection' and `WAIT'.
1725         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1726         Fix calls to `set_redirection' and `save_and_redirect'.
1727         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1728         to `set_redirection' and `save_and_redirect'.
1729         (usage): Fix message.
1730         (makeTempFiles, main): Use `DEBUG_FILE'.
1732 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1734         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1736 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1738         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1739         quoting for MSVC's spawn* and exec* functions.
1740         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1741         spawnvp with proper quoting for MSVC.
1743         * src/libs/libgroff/assert.cpp (program_name),
1744         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1745         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1747         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1749         * src/include/error.h (program_name): Declare as `extern "C"'.
1750         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1752 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1754         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1755         spawnvp_wrapper.
1756         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1758 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1760         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1761         variable.
1762         (sbasename) [__MSDOS__ || ...]: New function.
1763         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1764         generic algorithm.
1765         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1766         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1767         of XXX.
1768         Use STDOUT_FILENO instead of hardcoded file handle.
1769         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1771 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1773         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1774         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1776 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1778         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1779         new font and mapping files.
1781 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1782             Keith Marshall  <keith.d.marshall@ntlworld.com>
1784         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1785         an input pipe.  This is needed for the MSVC compiler to make troff's
1786         `-o' option work.
1788         * src/roff/troff/div.cpp: Include nonposix.h.
1789         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1791 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1793         * font/devlj4/generate/special.awk: New script.
1794         * font/devlj4/generate/Makefile (S): Use special.awk.
1795         * font/devlj4/*: Regenerated, including the following new files:
1796         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1797         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1798         * NEWS: Document new lj4 fonts and revised hpftodit.
1800 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1802         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1804 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1806         * src/libs/libgroff/progname.cpp: Replaced with...
1807         * src/libs/libgroff/progname.c: New file.
1808         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1810 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1812         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1814 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1816         * font/devlj4/generate/wingdings.map,
1817         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1818         Use groff glyph names where possible.
1819         * src/devices/grolj4/lj4_font.man: Minor updates.
1821 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1823         * tmac/www.tmac (DC): Handle TTY devices.
1825         * doc/webpage.ms: Document viewCVS from ffii.org.
1826         * NEWS, README: Updated.
1828         * src/roff/groff/groff.man: Mention lj4_font man page.
1830         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1831         variables.
1832         (FONTS): Add SYMBOL and WINGDINGS.
1833         (SYMBOL, WINGDINGS): New targets.
1835 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1837         * src/devices/grolj4/lj4_font.man: New man page.
1838         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1839         * src/devices/grolj4.man: Mention lj4_font man page.
1841         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1842         * src/utils/hpftodit/hpftodit.man: Document it.
1843         (CW): New macro.
1844         Remove details about fonts (which are now in lj4_font.man).
1846         * font/devlj4/generate/symbol.map,
1847         font/devlj4/generate/wingdings.map: New files.
1849 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1851         * README: Mention ffii's viewcvs access.
1853 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1855         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1857 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1859         Revert most of the change from 2004-01-03 to better control used
1860         symbol sets.
1862         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1863         (text_symbol_sets, special_symbol_sets): New arrays.
1864         (symbol_set_table): New global variable.
1865         (read_symbol_sets): Use search order given in the text_symbol_sets
1866         and special_symbol_sets arrays.  If command line flag -a is not
1867         given, search both arrays.
1868         (output_charset): Require x_height_tag only for command line flag -i.
1870 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1872         Implement string-valued registers \n[.m] and \n[.M] to return the
1873         name of the current drawing and background color, respectively.
1875         * src/roff/troff/symbol.h: Moved to...
1876         * src/include/symbol.h: Here.
1877         Small fixes to make it work outside of the `troff' directory.
1878         * src/roff/troff/symbol.cpp: Moved to...
1879         * src/libs/libgroff/symbol.cpp: Here.
1880         Small fixes to make it work outside of the `troff' directory.
1882         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1883         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1884         Updated.
1886         * src/include/color.h: Include symbol.h.
1887         (color): Add new field `nm'.
1888         * src/libs/libgroff/color.cpp (color::color): Updated.
1890         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1891         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1892         src/roff/troff/reg.cpp: Don't include symbol.h.
1894         * src/roff/troff/env.cpp: Don't include symbol.h.
1895         (environment::get_glyph_color_string,
1896         environment_get_fill_color_string): New member functions.
1897         (init_env_requests): Handle `.m' and `.M' registers.
1898         * src/roff/troff/input.cpp: Don't include symbol.h.
1899         (default_symbol): Moved to symbol.cpp/symbol.h.
1900         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1901         to color constructor.
1902         * src/roff/troff/env.h: Updated.
1904         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1905         Document new registers.
1907 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1909         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1910         space_node::nbreaks): Protect against zero `next' field.
1912 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1914         In hpftodit, use the symbol sets offered in the TFM.
1916         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1917         (symbol_set, text_symbol_sets, special_symbol_sets,
1918         symbol_set_table): Removed.
1919         (get_printcode): Removed.
1920         (read_symbol_sets): Initialize `symbol_set' field with
1921         `NO_SYMBOL_SET'.
1922         Simplify code to just use the `kind' value.
1923         (output_charset): Improve output formatting.
1924         (dump_symbols): Simplified.
1926 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1928         * font/devlj4/generate/text.map: Add more MSL numbers.
1930 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1932         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1933         (text_symbol_sets): Add more symbol sets.
1934         (debug_flag): New static variable (moved from `main').
1935         (get_printcode, show_symset): New functions.
1936         (main): Remove `debug_flag'.
1937         (output_charset): Use `show_symset'.
1938         (dump_symbols):  Use `show_symset'.
1939         Print symsets for all glyphs.
1940         (read_map): Actually call `unicode_to_ucode_make' but this time
1941         correctly.
1943 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1945         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1946         Fix placement of comments.
1948 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1950         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1951         option `-d' is given.
1952         (output_charset): Improve warning messages to give more information.
1953         (dump_symbols): Make information more precise.
1954         (usage): Updated.
1955         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1956         appear as-is and shouldn't be decomposed.
1958 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1960         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1961         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1962         (FONTS): Add TrueType font families Arial and Times New Roman.
1963         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1964         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1965         `fl'.
1967 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1969         * test-groff.in (SEP): Quote value.
1970         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1971         `tem' to `char*' to avoid deallocation of a pointer to a constant
1972         object which some compilers don't like.
1974 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1976         * font/devlj4/generate (text.map, special.map): Rewritten to work
1977         with the new hpftodit version.
1979 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1981         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1982         set and 8bit character code for all glyphs also.
1984 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1986         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1988 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1990         More fixes for MSVC compiler.
1992         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1993         $(SEP).
1995         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1996         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1997         (getpid) [_MSC_VER]: Remove.
1998         Include direct.h and process.h conditionally.
2000         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2001         parentheses for a_delete.
2003         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2005         * test-groff: Replaced with...
2006         * test-groff.in: This new template to handle path separator
2007         properly.
2009         * configure.ac: Check for direct.h and process.h.
2010         Generate test-groff script.
2011         * configure, src/include/config.hin: Regenerated.
2013 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2015         Add integral extension glyph.
2016         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2018         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2020         * font/devps/generate/textmap: Provide entry for `integralex' to
2021         override (old) PUA value of the AGL.
2022         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2023         * font/devps/*: Regenerated.
2025         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2026         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2028 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2030         Add forgotten `coproduct' symbol (already available for DVI).
2032         * font/devhtml/R.proto, font/devps/generate/textmap,
2033         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2034         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2035         U+2210 (\[coproduct]).
2037 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2039         hpftodit has been extended to handle TrueType metric files and
2040         more glyphs.  See hpftodit.man for more details.
2042         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
2043         ctype.h, and unicode.h.
2044         s/msl/charcode/ everywhere since we now handle Unicode values also.
2045         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2046         Use it where appropriate.
2047         (MULTIPLIER): Replaced with...
2048         (multiplier): New global static variable.
2049         (scale): Updated.
2050         (tag_type): Add more TFM tags.
2051         (tag_name): New array.
2052         (ENUM_TYPE, FLOAT_TYPE): Removed.
2053         (BYTE_TYPE): New value assigned.
2054         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2055         (text_symbol_sets, special_symbol_sets): Extended to cover more
2056         sets.
2057         (check_type): Add return value.
2058         (check_units): Add parameters to get ppi and upem values.
2059         Handle TrueType TFM data.
2060         (output_font_name): New function.
2061         (output_charset): Add parameter to handle TFM type.
2062         Handle TrueType TFMs also.
2063         (em_fract): New macro.
2064         (dump_tags): Be much more verbose and handle more tags.
2065         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2066         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2067         functions.
2068         (read_map): Add parameter to handle TFM type.
2069         Handle both MSL and Unicode mappings.
2070         (main): Add two new command line options `-a' and `-q'.
2071         Updated to make use of new functions.
2072         (usage): Updated.
2074         * src/utils/hpftodit/hpuni.cpp: New file.
2076         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2077         Updated.
2079 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2081         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2083 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2085         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2086         by Michail Vidiassov <master@iaas.msu.ru>.
2088 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2090         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2091         and u0049_0307.
2092         Add missing latin-2 glyphs.
2093         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2095         * tmac/troffrc: Load `composite.tmac' earlier.
2097         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2098         u00{53,73}_0327, and u0049_0307.
2099         * tmac/X.tmac: Add u00{47,67}_0306.
2100         * tmac/tty-char.tmac: Use composite glyph names for readability.
2102         * NEWS: Updated.
2104         * src/include/unicode.h: Remove `extern' keywords.
2106 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2108         * tmac/latin5.tmac: New file.
2110 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2112         Add some glyphs needed for Turkish.
2114         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2115         and u0049_0307.
2117         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
2118         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2119         u00{53,73}_0327, and u0049_0307.
2121 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2123         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2124         from 2001-10-04.
2125         Remove trailing zeros.
2127 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2129         Make \? transparent to end-of-sentence recognition.
2131         * src/roff/troff/input.cc (non_interpreted_node): Add
2132         `ends_sentence' member function.
2134 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2136         * doc/groff.texinfo: Document `dt' request correctly.
2137         Other minor typographical improvements.
2139 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2141         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2143 2003-12-10  Richard Stallman  <rms@gnu.org>
2145         * LICENSE: Better wording.
2147 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2149         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2150         * configure, NEWS: Updated.
2152 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2154         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2156 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2158         * LICENSE: Updated.
2160 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2162         * INSTALL: Improved.
2164 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2166         Use path separator character of target platform for compiled-in
2167         default paths.
2169         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2170         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2171         * configure: Regenerated.
2172         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2174 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2176         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2177         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2179 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2181         * LICENSE: New file.
2183 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2185         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2186         ligatures present in AFM files since groff currently only
2187         understands some standard ligatures and nothing else.
2189 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2191         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2192         option -v is given.
2194         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2195         messages.
2196         Close stdout copy.
2197         Don't use Unix wait flags.
2199 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2201         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2202         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2203         src/roff/troff/uniuni.cpp: Moved to...
2204         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2205         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2206         src/libs/libgroff/uniuni.cpp: Here.
2208         * src/include/Makefile.sub.old (HDRS),
2209         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2210         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2212 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2214         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2215         `DEBUG_FILE'.
2216         Updated all users.
2218 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2220         * groff.texinfo: Document special behaviour of `.vs 0'.
2221         Improve documentation of `cflags' request.
2222         * NEWS: Updated.
2224 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2226         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2227         * font/devlj4/CORONET: Regenerated.
2229 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2231         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2232         if processing hyphenation patterns in traditional mode.
2233         Improve error messages.
2235 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2237         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2238         troff_output_file::put_char): Fix type of local variable `c'.
2240 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2242         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2243         declarations.
2244         (i_to_a): Removed.  libgroff already provides this function.
2245         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2247 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2249         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2250         HAVE_DECL_SYS_LIST.
2252 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2254         * COPYING: Use correct version.
2256 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2258         LynxOS 4.0.0 doesn't declare vfprintf.
2260         * configure.ac: Check for vfprintf.
2261         * configure: Regenerated.
2262         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2263         * src/include/config.hin: Regenerated.
2265 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2267         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2269         * configure.ac: Check for vsnprintf.
2270         * configure: Regenerated.
2271         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2272         `HAVE_VSNPRINTF'.
2273         * src/include/config.hin: Regenerated.
2275 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2277         * aclocal.m4: Updated syntax to autoconf 2.59.
2278         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2279         Don't check for gsos2.
2280         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2281         working abs_top_srcdir and abs_top_builddir.
2283         * configure.ac: Updated syntax to autoconf 2.59.
2284         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2285         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2286         * configure: Regenerated.
2288         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2289         s/@groff_top_builddir@/@abs_top_builddir@/.
2291         * src/roff/groff/pipeline.c (xstrsignal):
2292         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2294 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2296         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2297         make start angle smaller than end angle to circumvent a bug in tpic
2298         handling of some versions of dvipdfm (and dvipdfmx).
2300 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2302         * src/devices/grops/grops.man: Improve section on creating EPS.
2304 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2306         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2307         -P-pletter).
2309 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2311         * doc/groff.texinfo: Fix documentation of `.if'.
2313 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2315         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2316         the form `uniXXXX' also.
2318 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2320         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2321         contrib/pic2graph/pic2graph.sh: Implement secure management of
2322         temporary files.
2323         Pass `-P-pletter' to groff to avoid data outside of the converted
2324         area -- some versions of `convert' (for example 5.3.8) don't check
2325         the bounding box of the image but always use a fixed image size
2326         (letter paper format).
2327         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2328         contrib/pic2graph/pic2graph.man: Updated.
2330         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2332 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2334         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2335         troff_output::simple_ellipse, troff_output::simple_arc,
2336         troff_output::simple_line, troff_output::simple_spline,
2337         troff_output::simple_polygon): Insert a space before arguments.
2338         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2339         latter doesn't produce a node, so the following `.sp -1' would do
2340         the wrong thing.
2341         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2342         (and we don't have to care about compatibility mode).
2343         (troff_output::set_color, troff_output::reset_color): Don't emit
2344         `.sp -1' after \M and \m.
2346         * src/roff/troff/input.cpp (old_have_input): New global variable.
2347         (input_stack::get): Handle `old_have_input'.
2348         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2349         `trapping_blank_line' depending on `old_have_input', not
2350         `have_input'.
2352 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2354         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2355         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2356         default directory names for temporary files.
2357         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2359         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2360         [__MSDOS__] (run_pipeline): Honour environment variables.
2361         Don't use `tmpnam' but `tempnam' to work around messy
2362         implementation.
2364         * README.MinGW: New file.
2366 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2368         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2369         `(*t)->next' without testing validity of `*t'.
2370         (usage): Make it more readable.
2372 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2374         Make html device run under both MS-DOS and Win32.
2376         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2377         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2378         spawn or fork+exec has to be used, and whether parent must sleep
2379         until the child process terminates.  Used in
2380         `char_buffer::run_output_filter'.
2381         (copyofstdoutfd): Removed.
2382         (char_buffer): Replace `write_file_html' and `write_file_troff'
2383         member functions with `emit_troff_output' and `run_output_filter'.
2384         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2385         macros.
2386         (replaceFd): Replaced with...
2387         (set_redirection): New auxiliary function.
2388         (waitForChild): Replaced with...
2389         (save_and_redirect): New auxiliary function for.
2391         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2392         functions.
2394 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2396         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2397         (GROFF_LIBC): New function.
2398         * configure.ac: Call GROFF_LIBC.
2399         Check for `kill'.
2400         * configure: Regenerated.
2402         * src/include/lib.h: Handle __MINGW32__.
2403         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2404         Add macro for `pipe'.
2405         Define P_tmpdir.
2407         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2408         correctly.
2410         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2411         Implement.
2413 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2415         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2416         <chuq@chuq.com>.
2418         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2419         directory.
2421 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2423         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2424         src/roff/troff/input.cc (usage): Updated.
2426         * NEWS, doc/groff.texinfo: Updated.
2428 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2430         * src/libs/libgroff/searchpath.cpp
2431         (search_path::open_file_cautious): New function which also handles
2432         `-' as stdin and stdout depending on the access mode.
2433         * src/include/searchpath.h (search_path): Updated.
2435         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2436         * src/devices/grops/ps.h: Include `searchpath.h'.
2437         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2438         Open resource file with `include_search_path.open_file_cautious'.
2439         * src/devices/grops/grops.man: Document new `-I' switch.
2441         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2442         (main), src/devices/grolj4/lj4.cpp (main),
2443         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2445         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2446         Replaced with...
2447         (include_search_path): New global variable.
2448         (include_path_append): Removed.
2449         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2450         (do_file): Simplify, using new
2451         `include_search_path.open_file_cautious'.
2453         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2454         parameter.
2455         (main): Pass arguments to `-I' to both troff and devices.
2456         Improve handling of `-V'.
2457         * src/roff/groff/groff.man: Document changes to -I and -V.
2459         * src/roff/troff/input.cpp (include_search_path): New global
2460         variable.
2461         (next_file, source, ps_bbox_request, transparent_file,
2462         process_input_file): Use new
2463         `include_search_path.open_file_cautious'.
2464         (main) Handle `-I' switch.
2465         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2466         Use new `include_search_path.open_file_cautious'.
2467         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2468         * src/roff/troff/troff.man: Document new `-I' switch.
2470 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2472         Support multiple calls of .Lb in LIBRARY section.
2474         * tmac/doc-common (doc-in-library-section): New register.
2475         (doc-section-library): New string.
2476         (Sh): Set `doc-in-library-section'.
2477         (Rd): Updated.
2478         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2479         if in LIBRARY section.
2480         * tmac/doc.tmac (doc-save-global-vars): Updated.
2481         * NEWS, tmac/groff_mdoc.man: Updated.
2483 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2485         * tmac/doc-common (doc-default-operating-system): New variable.
2486         (Os): Use it.
2488 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2490         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2492 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2494         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2495         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2496         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2497         $(DEVFILES) are not empty.
2498         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2500 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2502         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2503         with parallel runs of `make'.
2505 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2507         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2508         insert SORT_SEP.  With certain combinations of sort specifications,
2509         refer sorted entries in the wrong order.  In particular, entries
2510         with a missing field should be be sorted before all entries that
2511         have that field, before refer looks to the next field.
2513 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2515         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2516         g++ linker is used.  Reported by Mark J. Reed
2517         <mark.reed@turner.com>.
2519 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2521         Add key character `x' to tbl which makes tbl call a user-defined
2522         macro on a table cell.
2524         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2525         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2526         `set_modifier' after printing the compatibility request.
2527         (set_modifier): Print call to `m->macro' if not empty.
2528         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2529         `macro'.
2530         (process_format): Implement cases `x' and `X'.
2531         * src/preproc/tbl/tbl.man, NEWS: Updated.
2533 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2535         * doc/groff.texinfo: Minor fixes.
2537 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2539         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2541 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2543         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2544         argument list to nothing if there is no file to match.  Use `ls' as
2545         a protection, similar to autoconf.
2547         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2548         empty argument lists.
2550         * doc/groff.texinfo: Improve documentation how vertical spacing
2551         and line breaks interact.
2552         Other minor fixes.
2554         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2556 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2558         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2559         EPS (using eps2eps or similar programs to compute the bounding box).
2561 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2563         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2564         * doc/texinfo.tex: Updated from texinfo 4.6.
2565         * README.CVS: From now on we need texinfo 4.6.
2567 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2569         Add requests `dei1' and `ami1' for completeness.
2571         * src/roff/troff/input.cc (calling_mode): Remove
2572         CALLING_DISABLE_COMP.
2573         (comp_mode): New enumeration.
2574         (do_define_string, define_string, define_nocomp_string,
2575         append_string, append_nocomp_string): Updated.
2576         (do_define_macro): Add third parameter.
2577         (define_macro, define_nocomp_macro, define_indirect_macro,
2578         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2579         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2580         functions.
2581         (ignore): Updated.
2582         (init_input_requests): Add `dei1' and `ami1'.
2584         * tmac/trace.tmac: Handle de1 and am1.
2585         (de): Improve tracing message.
2586         (am): Add missing `do'.
2587         (return): Use de1.
2589         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2590         Document new requests.
2592 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2594         Add option -G to .MPIMG to insert a gap between text and the image.
2596         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2597         www-finish-left-ll): Updated.
2598         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2599         (MPIMG): Make option -L and -R optional.
2600         Implement option -G.
2602 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2604         * src/devices/grohtml/post-html.cpp
2605         (html_printer::do_file_components): Don't use `stdout' as lvalue
2606         since it can be a macro.
2608 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2610         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2611         the corresponding test in aclocal.m4.
2613 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2615         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2616         names but RGB values directly.  Otherwise pnmtopng depends on
2617         an external file `rgb.txt' which maps colour names to values.
2619 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2621         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2622         * configure, src/include/config.hin: Regenerated.
2624         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2626 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2628         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2630 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2632         * *.man: Switch to non-compatibility mode temporarily if GNU
2633         syntax extensions are used in the particular man page.
2635         * PROBLEMS: Add solutions for SGR problems.
2637 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2639         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2640         used to change the drawing scheme.
2642         * src/devives/grotty/tty.cpp (bold_flag_option,
2643         underline_flag_option, italic_flag_option, reverse_flag_option,
2644         bold_underline_mode_option): New global variables.
2645         (update_options): New function.
2646         (tty_printer::special): Call update_options.
2647         (main): Don't set xxx_flag but xxx_flag_option, then call
2648         update_options.
2650 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2652         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2654         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2655         values.
2656         (hline_char, vline_char): New global variables.
2657         (tty_printer::tty_printer): Initialize them.
2658         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2659         horizontal and vertical lines.
2660         (crossings): New global array.
2661         (tty_printer::end_page): Use it to determine the proper crossing
2662         character for -Tutf8.
2664 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2666         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2667         (HTMLDOCFILES): Revert to `pic.html'.
2668         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2670 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2672         * doc/pic.ms: Improve documentation of absolute coordinates.
2673         Document absolute positioning of pictures.
2675         * NEWS: Add new pic capability.
2677 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2679         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2680         Rewritten.
2682 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2684         Implement support for dashed and dotted ellipses in pic.  Based on
2685         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2687         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2688         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2689         functions.  Ellipse arcs are approximated with circle arcs.
2690         * src/preproc/pic/common.h (common_output): Updated.
2691         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2692         functions.
2693         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2695         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2697 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2699         Make grotty work on platforms which have unsigned char as the
2700         default for char.  Based on a patch by Thomas Klausner
2701         <wiz@netbsd.org>.
2703         * src/devices/grotty/tty.cpp (schar): New typedef.
2704         Updated calls to declare_ptable and implement_ptable.
2705         (glyph): Use schar for back_color_idx and fore_color_idx.
2706         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2707         (tty_printer::tty_color, tty_printer::tty_printer,
2708         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2710 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2712         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2713         * src/roff/nroff/nroff.man: Updated.
2715 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2717         * NEWS, tmac/groff_www.man: Updated.
2718         * doc/Makefile.sub: Updated.
2720 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2722         Implement support for multiple HTML output files.
2724         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2725         -j command line option.
2727         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2728         global variables.
2729         (file): New fields `new_output_file', `require_links',
2730         `output_file_name'.
2731         (file::file): Updated.
2732         (files::set_file_name, files::set_links_required,
2733         files::are_links_required, files::is_new_output_file,
2734         files::file_name, files::next_file_name): New functions.
2735         (header_desc): New fields `no_of_level_one_headings',
2736         `header_filename'.
2737         (header_desc::header_desc): Updated.
2738         (header_desc::write_headings): Handle multiple files.
2739         (html_printer::write_header): Save file name in which header occurs.
2740         (html_printer::determine_header_level): Possibly split files on
2741         level one headings.
2742         (html_printer::do_links, html_printer::troff_tag): Updated.
2743         (html_printer::insert_split_file, html_printer::do_job_name,
2744         html_printer::emit_link, html_printer::write_navigation,
2745         html_printer::do_file_components): New functions.
2746         (html_printer::~html_printer): Handle multiple files.
2747         (main): Handle command line option `-j'.
2749         * src/devices/grohtml/grohtml.man: Updated.
2751         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2752         which splits file.
2754         * tmac/www.tmac (JOBNAME): New macro.
2755         * tmac/s.tmac (SH-NO-TAG): New macro.
2756         (@SH): Call SH-NO-TAG.
2757         (@NH): Updated.
2759 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2761         * tmac/groff_mdoc.man: Improve documentation of punctuation
2762         characters.
2764 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2766         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2768 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2770         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2772 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2774         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2775         after `/*' and `*/'.
2776         Fix spacing.
2777         (Fn, Fo): Reduce indentation in synopsis.
2779         * tmac/doc-common (doc-check-depth): New macro.
2780         (doc-end-macro, Sh, Ss): Use it.
2781         (Cd): Fix behaviour in synopsis.
2782         (In): Make it parsed and callable.
2783         If not in the synopsis, represent the C header file enclosed in
2784         angle brackets.
2785         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2786         Use minus, not hyphen.
2788         * tmc/groff_mdoc.man: Updated.
2790 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2792         Integrated grap2graph, contributed by Eric S. Raymond.
2794         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2795         New files.
2796         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2797         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2799 2003-07-01  Colin Watson  <cjwatson@debian.org>
2801         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2802         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2804 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2806         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2808 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2810         * doc/Makefile.sub (CLEANADD): Remove all files created by
2811         running `make groff.{pdf,dvi}'.
2813         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2814         src/xditview also.
2816 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2818         * Makefile.in (SHELL): Define as @SHELL@.
2819         (mkinstalldirs): Use $(SHELL).
2820         (MDEFINES): Add $(SHELL).
2821         * Makefile.comm (SHELL): Removed.
2823 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2825         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2826         The X11 documentation files use them.
2827         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2829 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2831         * tmac/e.tmac (@C): Handle .ad also.
2833 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2835         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2837         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2838         Assign `n' even here.  It is possible to construct a node
2839         immediately following an escape character:
2841           .di xx
2842           \?\\\?a
2843           .br
2844           .di
2845           .xx
2847 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2849         * README.WIN32: Removed.
2850         * MANIFEST: Updated.
2852 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2854         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2856 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2858         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2859         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2861 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2863         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2864         is done by the calling function.
2866 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2868         * tmac/X.tmac: Fix definition of `em'.
2870 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2872         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2873         argument.
2875 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2877         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2878         to make items work which consist only of a tag.
2880 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2882         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2883         aren't stretched in a tag (this can fail with unformatted boxes).
2884         Instead, insert a break and go back one line.
2886 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2888         * src/roff/troff/input.cc (return_macro_request): If called with
2889         argument pop macro twice.  We need this to trace `return'.
2891         * tmac/trace.tmac: Handle `return'.
2892         Fix typos.
2894         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2895         Document.
2897 2003-05-15  Larry Kollar  <kollar@alltel.net>
2899         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2900         registers `FPS', `FVS', and `FPD'.
2902 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2904         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2905         correctly.
2907 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2909         * tmac/groff_mdoc.man: Slight improvements.
2911 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2913         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2914         `doc-header-space' after header line if register `cR' is set.
2916 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2918         * TODO: Updated.
2920 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2922         * tmac/doc-common (Nd): Use \[em].
2924 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2926         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2927         doc-footer-space): Initialize to 0.5i.
2928         (doc-setup-page-layout): Don't set doc-header-space and
2929         doc-footer-space.
2931 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2933         * REVISION: Set to 1.
2935         * doc/pic.ms: Document possible problems with `figname'.
2937 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2939 Version 1.19 released
2940 =====================
2942         * VERSION: Set to 1.19.
2943         * REVISION: Set to 0.
2944         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2946         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2947         Define charset as `US-ASCII' in html output.
2949         * tmac/www.tmac (ULE): Add missing scaling indicator.
2951         * win32-diffs: Removed.
2953 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2955         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2956         `.da' and `.boxa'.
2957         Document how to insert discardable whitespace with `.ss'.
2959 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2961         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2962         work with plain TeX also.
2964         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2966 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2968         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2969         Use a loose DTD.
2971 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2973         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2974         vbox with positive height and zero depth if in TeX mode.
2976         * NEWS: Document glyph name changes for grodvi and grolj4.
2978 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2980         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2981         * doc/pic.ms: Fixed.
2983 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2985         HP-UX 10.20 has `snprintf' but it isn't declared.
2987         * configure.ac: Add declaration test for snprintf.
2988         * configure: Regenerated.
2989         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2990         * src/include/config.hin: Regenerated.
2992 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2994         Add keyword `figname' to pic, specifying the name of the picture
2995         box in TeX mode.  Based on a patch from William J Poser
2996         <wjposer@unagi.cis.upenn.edu>.
2998         * src/preproc/pic/pic.y: New token `FIGNAME'.
2999         (macro_name): New rule of type <str>.
3000         (placeless_element): Handle `FIGNAME'.
3001         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3002         * src/preproc/pic/main.cpp (graphname): New global variable.
3003         (do_picture): Initialize `graphname'.
3004         * src/preproc/pic/pic.h: Updated.
3005         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3006         `graphname'.
3007         Simplify TeX code.
3008         (tex_output::text): Beautify output.
3009         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3010         `shaded' and `outlined' unconditionally.
3011         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3012         Minor improvements.
3014         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3015         greater is necessary.
3017 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3019         Add option -r to soelim to avoid emission of `.lf' lines.
3020         Add option -t to produces TeX comment lines instead of `.lf' lines.
3022         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3023         and `tex_flag'.
3024         (usage): Updated.
3025         (main): Handle `-r' and `-t'.
3026         (set_location): Handle `raw_flag' and `tex_flag'.
3027         * src/preproc/soelim/soelim.man, NEWS: Updated.
3029 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3031         * tmac/hyphenex.sh: Replaced with...
3032         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3033         nightmares.
3035         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3036         if --quiet is used for the configure script.
3037         * configure: Regenerated.
3039 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3041         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3042         Add `const' to second argument.
3043         (html_printer::add_table_end): Add `const' to argument.
3044         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3045         `const' to arguments.
3046         * src/devices/grohtml/html-text.h: Updated.
3048         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3049         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3050         argument.
3052         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3053         cast for integer constant.
3055         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3056         (writeNbytes): Add `const' to first argument.
3057         (writeString): Add `const' to argument.
3058         (char_buffer::can_see): Add `const' to third argument.
3059         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3060         `const' to argument.
3061         * src/preproc/html/pushback.h: Updated.
3063         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3064         (include_path_append): Add `const' to argument.
3065         (do_file): Updated.
3067         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3068         for `value'.
3069         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3070         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3071         for `value'.
3072         (unicode_decompose_init::unicode_decompose_init): Updated.
3073         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3074         for `value'.
3075         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3076         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3077         argument.
3079         * tmac/hyphenex.sh: Make script more portable by using a here
3080         document.
3082 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3084         Renamed all `*.cc' files to `*.cpp'.
3085         Updated all configuration files, makefiles, and documentation.
3087 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3089         * tmac/hyphenex.sh: Slight improvements.
3091 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3093         * font/devascii/R.proto, font/devcp1037/R.proto,
3094         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3095         character slots with unnamed glyphs.
3097         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3098         (an-first): New global variable.
3099         (an-header): Emit vertical space between multiple man pages.
3101 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3103         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3104         values.
3106 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3108         * PROBLEMS: Revised.
3110 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3112         * doc/webpage.ms: Improved.
3114 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3116         Add register \n[.height] which returns the value of \H.
3117         Add register \n[.slant] which returns the value of \S.
3119         * src/roff/troff/env.cc (init_env_requests): Implement.
3120         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3121         Document.
3123 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3125         * tmac/html.tmac: Move some of the data into html-end.tmac.
3126         Remove most of the character translations for eqn since html fonts
3127         now cover those characters.
3128         Load www.tmac.
3129         * tmac/html-end.tmac: New file.
3130         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3131         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3132         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3134 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3136         * man/groff_out.man: Document negative values of `N' if -Thtml is
3137         used.
3139 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3141         * Makefile.comm (depend.temp): Check location of YTABC.
3143 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3145         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3146         binary path.
3147         (groff_bin_path): Rename to GROFF_BIN_PATH.
3148         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3149         * doc/Makefile.in (TROFFBIN): New variable for troff
3150         binary path.
3151         (GROFFBIN): New variable for groff binary path.
3152         (groff_bin_path): Rename to GROFF_BIN_PATH.
3153         (TROFF): Use TROFFBIN.
3154         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3155         * doc/Makefile.sub (GROFFBIN): New variable for groff
3156         binary path.
3157         (groff_bin_path): Rename to GROFF_BIN_PATH.
3158         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3160         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3161         with INSTALL_SCRIPT.
3162         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3163         * Makefile.dev (all): Depend on DEVSCRIPTS.
3164         (install_dev): Likewise.
3165         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3166         scripts.
3167         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3168         (DEVGENSCRIPTS): New variable to hold generated scripts.
3170 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3172         * src/libs/libdriver/input.cc (IntArray::operator[],
3173         IntArray::get_data): Remove meaningless `const' in return value.
3175         * README.CVS: New file.
3177 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3179         Check for stdint.h in C++, not in C.
3181         * aclocal.m4 (GROFF_STDINT_H): New function,
3182         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3183         AC_CHECK_HEADERS.
3184         * configure, src/include/config.hin: Regenerated.
3185         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3188         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3189         with a negative value, representing the width of the unbreakable
3190         space (only for -Thtml).  grohtml then converts this back to
3191         &nbsp; and uses the value of N as its width.
3193         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3194         unbreakable_space_node::tprint): Emit `N-<width>'.
3195         * src/include/printer.h (printer::set_numbered_char): Make it
3196         virtual.
3197         Make members `font_table' and `nfonts' protected instead of private.
3198         * src/devices/grohtml/post-html.cc
3199         (html_printer::set_numbered_char): New member function.
3202         * src/libs/libgroff/maxfilename.cc:
3203         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3205         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3206         emit word marker.
3208 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3210         * man/roff.man: Small fixes.
3212 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3214         Make groff independent from locale's numeric settings.
3216         * configure.ac: Check for `setlocale'.
3217         * configure, src/include/config.hin: Regenerated.
3219         * src/include/lib.h: Handle HAVE_SETLOCALE.
3221         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3222         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3223         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3226         * doc/groff.texinfo: Change dir category to `Typesetting'.
3227         (Man font macros): Mention that there is no space between arguments
3228         of .BI and friends.
3230         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3231         (*printer::change_color, *printer::change_fill_color): Add missing
3232         `const'.
3234 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3236         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3237         html_table::is_gap): Compute table widths after converting border
3238         positions to avoid rounding errors.
3240 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3242         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3243         `space_emitted' properly.
3245 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3247         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3248         (html_table::set_linelength): Don't add 1.
3249         (html_table::add_indent): Don't subtract 1.
3251         * tmac/html.tmac: Set default page offset to zero.
3253 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3255         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3257         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3258         unbreakable_space_node::tprint): New functions.
3259         (troff_output_file): Make space_char_hmotion_mode::tprint and
3260         unbreakable_space_node::tprint to friends.
3261         * src/roff/troff/node.h: Updated.
3263         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3264         in the HTML standard).
3266 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3268         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3269         Otherwise, the following code
3271           .di xxx
3272           .ps 10
3273           a
3274           .br
3275           .di
3276           x\*[xxx]
3278         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3279         font changes in diversions for -Thtml.
3281         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3282         `HTML-TAG'.
3283         (an-do-tag-html): Merge with ...
3284         (an-do-tag): This macro.
3285         Change code slightly to circumvent grohtml bug.
3286         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3288         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3289         html_table::is_gap): Round `width' properly.
3291         * tmac/html.tmac: Provide some default layout parameters for
3292         grohtml.
3294         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3295         command.
3297 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3299         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3301 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3303         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3304         defined.
3306 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3308         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3309         `.vs'.
3310         * doc/groff.texinfo: Updated.
3312 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3314         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3315         TOKEN_END_TRAP>: Reset `have_input'.
3317 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3319         * src/roff/groff/groff.man: Mention groff_trace man page.
3321 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3323         * Makefile.in (LIBEXT): New variable to indicate the file extension
3324         of library files.  Computed heuristically from $(OBJEXT).
3325         (MDEFINES): Add $(LIBEXT).
3326         * Makefile.lib, Makefile.comm: Use it.
3328         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3329         overlong lines into smaller chunks.
3330         (get_binary): New function.
3331         (main): Use them.
3332         * src/utils/pfbtops/pfbtops.man: Updated.
3334 2003-03-15  Colin Watson  <cjwatson@debian.org>
3336         * src/roff/groff/groff.man: Minor syntax fix.
3338 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3340         * src/devices/grops/ps.cc (ps_printer::media_set,
3341         ps_printer::~ps_printer): Handle zero paper width and length.
3343 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3345         Add options -p and -l to grodvi.
3347         * src/devices/grodvi/dvi.cc: Include paper.h.
3348         (landscape_flag, user_paper_length, user_paper_width): New global
3349         variables.
3350         (dvi_printer::begin_page): Emit `papersize' special.
3351         Set color after initialization of `cur_h' and `cur_v'.
3352         (main): Add options `-l' and `-p'.
3353         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3354         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3356         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3358 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3360         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3361         * man/groff_tmac.man: This man page.
3362         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3363         deprecated.
3365         * tmac/X.tmac: Don't load pspic.tmac.
3367 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3369         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3370         by Bernd Warken <bwarken@mayn.de>.
3372         * src/include/driver.h (pr): Removed.
3374         * src/libs/libdriver/input.cc (pr): New global variable.
3375         (do_file): Deallocate `pr'.
3376         * src/libs/libdriver/printer.cc (pr): Removed.
3378         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3379         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3380         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3381         (main): Don't delete `pr'.
3383 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3385         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3386         * tmac/papersize.tmac: New file.
3387         * tmac/troffrc: Include `papersize.tmac'.
3388         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3389         * tmac/an-old.tmac: Set LT to LL by default.
3391         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3392         doc/groff.texinfo: Updated.
3394         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3395         bug which caused all odd iso papers to have wrong dimensions.
3397         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3398         (main) <'p'>: Set `user_paper_width' also.
3399         (ps_printer::media_width, ps_printer::media_height): Use values
3400         given with option `-p'.
3402 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3404         * src/include/nonposix.h: Provide default for SET_BINARY.
3406         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3407         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3408         unconditionally.
3410         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3411         (main): Treat \r\n as \n.
3413 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3415         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3416         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3418 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3420         Added support to access more than 256 glyphs in Type 1 fonts.
3422         * src/devices/grops/ps.cc (subencoding): New structure.
3423         (style): Add `sub' field.
3424         Updated all users.
3425         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3426         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3427         functions.
3428         Updated all users.
3429         (ps_printer::set_char): Use `set_subencoding'.
3430         (make_subencoding_name): New function.
3431         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3432         (ps_printer::~ps_printer): Emit subencoding definitions.
3434         * src/devices/grops/psrm.cc (valid_input_table): New array to
3435         properly support EBCDIC.
3436         (white_space): Add `\f'.
3437         (ps_get_line): Change first argument to be of type `string &'.
3438         Updated all callers.
3439         This allows to get lines of arbitrary length.
3440         Use `valid_input_table'.
3441         Remove warning about non-conforming PS line length.  This seems
3442         not to be of great importance -- for example, dvips don't emit
3443         a warning either.
3444         (PS_LINE_MAX): Removed.
3445         (matches_comment): Change first argument to be of type `string &'.
3447         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3449         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3450         %AGL_to_unicode, %default_ligatures): New hash tables.
3451         Read all map entries.
3452         Add unencoded characters.
3453         Check for default ligatures if there are no `L' entries.
3454         Print all kern entries.
3455         Print all characters in charset.
3456         * src/utils/afmtodit/afmtodit.man: Updated.
3458         * font/devps/*: Regerated all fonts.
3460         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3461         of characters, just use `.trin'.  Otherwise the mapping depends
3462         on the font encoding.
3463         * tmac/ps.tmac: Add `fi' and `fl'.
3464         Improve `Fi' and `Fl'.
3465         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3466         * tmac/Xps.tmac: Fix `em'.
3468         * NEWS: Updated.
3470 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3472         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3473         `have_input'.
3475 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3477         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3479         * font/devps/generate/textmap: Remove entry `similarequal'.
3480         * font/devps/symbolmap: Updated.
3482 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3484         * src/libs/libgroff/font.cc (font::load): Fix error message for
3485         bad character type.
3487         * src/devices/grops/grops.man: Improve documentation of the -b
3488         flag.
3490         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3491         `ascii' and `cp1047'.
3493 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3495         Document composite glyphs and the `composite' request.
3497         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3499 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3501         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3502         * font/devdvi/*EC: Updated.
3504         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3505         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3506         * tmac/troffrc: Load `composite.tmac'.
3507         * tmac/Makefile.sub (NORMALFILES): Updated.
3509         * doc/groff.texinfo (Input Encodings): New section.
3510         * NEWS: Updated.
3512 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3514         * doc/texinfo.tex: New version 2003-02-11.06.
3516         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3517         * tmac/groff_mdoc.man: Fix description of `Dt'.
3519 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3521         * font/devps/prologue.ps: Fix for included Postscript that does
3522         a setpagedevice -- which is now safely ignored.
3524         * NEWS: Updated.
3526         * src/devices/grops/ps.cc: Now sets the page size in the generated
3527         document.  This is done in two ways: Via a %%-comment for gv and
3528         the like, and via a PageSize and setpagedevice for programs that
3529         understands Postscript proper, like ps2pdf.
3531         * src/devices/grops/ps.h: New broken-flag to avoid page size
3532         definition, if required.
3534         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3536         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3537         Not really necessary due to the fix in prologue.ps, but cleaner:
3538         Such information does not belong in an .eps file.
3540         * doc/Makefile.sub: See doc/Makefile.in.
3542 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3544         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3545         instead of P1 since the latter is broken in some versions of netpbm.
3546         * configure: Updated.
3548 2003-02-26  Larry Kollar  <kollar@alltel.net>
3550         Make man pages more customizable.
3552         * tmac/an-old.tmac (FT): New register holding footer distance from
3553         bottom.
3554         (HF): New string holding the default heading font.
3555         (TH): Handle registers `IN' and `SN' set on the command line.
3556         Use `FT'.
3557         (PT, BT): New strings to customize header and footer lines.
3558         (an-header, an-footer): Use them.
3559         (SH, SS): Use `HF'.
3560         * tmac/groff_man.man: Document changes.
3562         * doc/groff.texinfo: Document man changes.
3563         Document Ultrix extensions of man.
3565 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3567         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3568         `have_input' after changing back to old environment.
3570         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3571         function up to be defined before first call.  This is necessary to
3572         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3574         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3575         the default font directory also.  Based on a patch from James
3576         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3577         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3578         * src/utils/afmtodit/afmtodit.man: Document it.
3580         * NEWS: Updated.
3582         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3584 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3586         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3587         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3588         * configure.ac: Use it.
3589         * configure: Regenerated.
3590         * Makefile.in: Updated.
3592         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3593         (CLEANADD): Add www.tmac-sed.
3594         (pnmtops_nosetpage): Define default.
3595         (install_data): Handle www.tmac-sed and substitute
3596         @PNMTOPS_NOSETPAGE@.
3597         (stamp-sed): Add www.tmac.
3598         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3599         It now breaks URLs at suitable places.
3600         (www:substring_ok): New register set by...
3601         (www:@test_substring): New macro.
3602         (www:error): New alias to www-error.
3603         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3604         New macros.
3605         (URL): Use www:url_breaks.
3606         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3607         (CDS, CDE): New macros.
3609 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3611         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3612         buffer overflow.
3614 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3616         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3617         can be negative also.
3619         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3620         `int16'.
3621         (read_char_table): Avoid negative ascenders.
3622         (output_charset): Add cast.
3623         * font/devlj4/*: Regenerated.
3625         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3626         possible.
3628         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3629         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3630         of `<>'.
3631         * font/devdvi/*: Regenerated.
3633         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3634         normal width, while the previously used characters (U+2329 and
3635         U+232A) are classified as wide due to canonical equivalence with the
3636         CJK punctuation characters U+3008 and U+3009.
3638         * font/devutf8/R.proto: Updated.
3639         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3641         * man/groff_char.man: Simplify handling of table traps by
3642         introducing `start block' and `end block' macros.
3643         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3644         (DL): Make it work with Unix troff also.
3645         Fix code values of `la' and `ra'.
3647         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3649 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3651         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3652         New destructor, fixing a major memory leak.
3654 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3656         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3657         to be in conformance with Unicode 3.0 and newer.
3659         * font/devlj4/generate/text.map: Add `Eu'.
3660         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3661         * font/devlj4/S: Regenerated.
3663         * man/groff_char.man: Completely rewritten.
3665         * doc/groff.texinfo: Fix description of request and macro arguments.
3667 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3669         Valgrind fixes.
3671         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3672         Deallocate `columns' list.
3673         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3674         New destructor.
3675         (text_glob::text_glob_html, text_glob::text_glob_special,
3676         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3677         text_glob::text_glob_tag): Avoid memory leaks.
3678         (text_glob::remember_table): Free memory before reassigning.
3680 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3682         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3683         alias `hbar'), the Planck constant over two pi.
3685         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3686         `+e' for position 34.
3687         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3688         `u2662' and `u2661'.
3689         * font/devdvi/{MI,S}: Regenerated.
3690         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3691         * font/devlbp/*: Add `hbar' alias.
3692         * font/devlj4/generate/special.map: Ditto.
3693         * font/devlj4/S: Regenerated.
3694         * font/devps/generate/symbolchars: Add `+e'.
3695         * font/devps/generate/textmap: Fix PS name for `-h'.
3696         Add `hbar' alias.
3697         * font/devps/symbolmap: Regenerated.
3699         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3701         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3702         `-h', `hbar'.
3703         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3704         `-h'.
3706         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3707         `hbar'.
3708         * tmac/tty-char.tmac: Add `+e'.
3710 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3712         Another round trying to really fix problems with `have_input'.
3714         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3715         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3717         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3718         handling if both foreground and background colors are default.
3720         * doc/groff.texinfo (Debugging): Document .lf differences to
3721         AT&T troff.
3723 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3725         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3726         null-bytes in created string.
3728         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3729         alias_macro, lookup_request): Improve warning messages.
3731         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3732         not `strdup'.
3733         Free `last_image_filename'.
3735         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3736         `buffer'.
3737         (imageList::createPage, imageList::createImage): Use `free', not
3738         `a_delete'.
3739         (imageItem::~imageItem): Free `imageName'.
3740         (addRegDef): Use `strsave', not `strdup'.
3741         (get_resolution): Free `pathp'.
3743 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3745         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3746         to `dummy'.
3748 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3750         Add memory management for colors to deallocate unnamed colors
3751         properly.
3753         * src/include/color.h (color): New members `free_list' and `next'.
3754         New member functions `new' and `delete'.
3755         Add destructor.
3756         * src/libs/libgroff/color.cc: Implement it.
3758         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3759         for array size of new operator.
3761         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3762         redundant comparison.
3764         * src/roff/troff/input.cc (word_space_node::reread,
3765         hmotion_node::reread): Avoid warning about unused parameter.
3766         (reset_output_registers): Remove redundant parameter.
3767         (define_color): Undo change 2003-02-12.
3769         * src/roff/troff/reg.h: Updated.
3771         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3772         output_file::put_filename, real_output_file::really_put_filename,
3773         ascii_output_file::really_print_line,
3774         break_char_node::get_hyphen_list): Avoid warning about unused
3775         parameter.
3776         (suppress_node::tprint): Updated.
3778         * configure.ac: Check declaration for rand() and srand().
3779         * configure: Regenerated.
3781         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3782         conditionally.
3783         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3784         and srand().
3786         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3787         to avoid compiler warnings.
3789         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3790         unused.
3792         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3793         is unused.
3794         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3795         (unused) parameter.
3796         Updated all callers.
3798         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3799         is unused.
3800         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3801         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3803         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3804         Parameter is unused.
3805         (html_printer::add_table_end): Define parameter conditionally.
3806         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3807         is unused.
3809         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3810         (lbp_printer::set_char): Last parameter is unused.
3812         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3814 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3816         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3817         Make \D'f ...' move horizontally again for backwards compatibility.
3818         Replace it with \D'Fg ...' where appropriate to avoid dependency
3819         on horizontal resolution.
3821         * src/roff/troff/input.cc (do_get_long_name): New function.
3822         (get_long_name): Call it.
3824         (read_draw_node): Handle `\D'Fx ...' by calling ...
3825         (read_color_draw_node): New function.
3827         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3828         `end'.
3829         Pass it to `do_get_long_name' which is used instead of
3830         `get_long_name'.
3832         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3833         unnecessary value guard.
3834         (parse_D_command) <'f'>: Add horizontal shift.
3836         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3837         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3838         (FILL_MAX): Removed.
3840         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3841         Updated.
3843 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3845         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3846         do_zero_width): Push `\n' if closing delimiter is missing.
3848         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3849         <'F'>: Make \F non-transparent at the beginning of line.
3850         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3851         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3852         `have_input'.
3854         (define_color): Free color in case of reassignment.
3856         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3857         @DefescListEnd): Use @Var, not @var.
3858         Fix all calls.
3860         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3862         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3863         `shaded' and `outlined' arrays.
3864         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3865         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3866         Use strsave.
3867         (closed_object::set_fill_color): Ditto.
3868         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3869         instead of strdup.
3870         (troff_output::reset_color): Use a_delete instead of free.
3871         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3873 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3875         * doc/groff.texinfo: Improve documentation of `ad'.
3876         Document that \D'f...' is dependent on the horizontal resolution.
3877         * man/groff_diff.man: Improve documentation of \D'f...'.
3879         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3880         compensating \h'...' for \D'f ...' since the latter no longer moves
3881         current position.
3882         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3884 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3886         Improve error messages for `x F' (and `F') commands.
3888         * src/include/error.h: Add declaration for
3889         `current_source_filename'.
3890         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3891         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3892         parameter for source file string.
3893         Updated all callers.
3895         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3896         (remember_source_filename): New function.
3897         (parse_x_command <'F'>, do_file <'F'>): Use it.
3899 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3901         Make grotty not emit warnings about unknown colors more than
3902         necessary.
3904         * src/devices/grotty/tty.cc: Include `ptable.h'.
3905         (TTY_MAX_COLORS): Removed.
3906         (DEFAULT_COLOR_IDX): Defined to -1.
3907         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3908         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3909         Change `tty_colors' to be a ptable.
3910         First arg of `put_color' is now `char'.
3911         New functions `make_rgb_string' and `tty_color'.
3912         (tty_printer::tty_printer): Use `tty_color'.
3913         (tty_printer::color_to_idx): Return value is now `char'.
3914         Use `tty_color'.
3916         * src/include/color.h (color): Add `print_color' member function.
3917         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3919 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3921         Valgrind fixes.
3923         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3924         encoding file.
3926         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3927         assume that value has been allocated with `new[]', thus use
3928         `a_delete' for deallocation.
3930         * src/libs/libdriver/input.cc (get_integer_arg,
3931         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3932         where appropriate.
3934         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3935         * src/libs/libgroff/nametoindex.cc
3936         (character_indexer::named_char_index): Use `new <type>[1]'.
3938         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3939         <type>[1]'.
3940         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3941         (split_text): Use `a_delete'.
3943         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3944         <type>[1]'.
3946         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3947         harmless memory leak.
3948         (hyphen_trie::read_patterns_file): Initialize `buf'.
3949         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3950         Initialize `current_fill_color'and `current_glyph_color'.
3951         * src/roff/troff/glyphuni.cc
3952         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3953         * src/roff/troff/uniuni.cc
3954         (unicode_decompose_init::unicode_decompose_init): Ditto.
3955         * src/roff/troff/uniglyph.cc
3956         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3958 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3960         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3961         `access' before calling `unlink'.
3962         (do_file): Handle __EMX__.
3964         * src/include/nonposix.h: Handle __EMX__.
3966         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3967         (fontpath,tmacpath): Use it.
3968         (MDEFINES): Add it.
3969         Sorted alphabetically.
3971         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3972         @SEP@.
3973         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3974         @SEP@.
3976 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3978         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3979         New files, copied from gnulib.
3980         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3981         * configure.ac: Updated.
3982         * configure: Regenerated.
3984         * src/include/config.hin: Regenerated.
3985         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3986         Don't define `strcasecmp' as `strcmp'.
3987         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3988         Dont define `strncasecmp' as `strncmp'.
3990         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3991         Removed.
3993 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3995         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3996         s/unline/unlink/.
3998 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4000         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4002 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4004         Add US-english hyphenation exceptions (converted from Barbara
4005         Beeton's hyphenation exception log reports which appear irregularly
4006         in TUGBoat).
4008         * tmac/hyphen.us: Updated to latest version.
4009         * tmac/README: Updated.
4010         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4011         * tmac/troffrc: Load `hyphenex.us'.
4012         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4013         * doc/groff.texinfo: Updated.
4015 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4017         Improve hyphenation slightly.  This is a first step in redesigning
4018         the hyphenation algorithm to make it more flexible (e.g. allowing
4019         kerns and ligatures between the hyphenation character and the
4020         following character -- while not used normally in English, other
4021         languages like German would benefit).
4023         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4024         assertion instead of if-clause.
4025         Let `get_hyphen_list' return the number of involved characters in
4026         the hyphenation pattern instead of computing it directly (which
4027         often yields too small values).
4028         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4029         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4030         parameter.
4032 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4034         Fixing a bug which caused groff to hang if the hyphenation exception
4035         dictionary tried to grow.
4037         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4038         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4039         pointer to dictionary.
4041 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4043         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4044         negative left italic correction.
4045         * src/utils/afmtodit/afmtodit.man: Document it.
4047         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4048         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4049         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4051         * NEWS: Updated.
4053 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4055         * NEWS: Updated.
4057 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4059         * src/preproc/refer/refer.man: Mention REFER environment variable.
4061 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4063         Similar to \[is], the square root glyph (\[sr]) and the square root
4064         extension glyph (\[radicalex]) are now text symbols.  The new
4065         mathematical versions are called \[sqrt] and \[sqrtex],
4066         respectively.
4068         * font/devX*/S: Regenerated.
4069         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4070         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4071         * font/devdvi/EX, font/devdvi/S: Regenerated.
4072         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4073         * font/devlj4/generate/special.map: Add `sqrt'.
4074         * font/devlj4/S: Regenerated.
4075         * font/devps/generate/textmap: Add `sqrt'.
4076         * font/devps/S, font/devps/symbolmap: Regenerated.
4078         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4079         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4080         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4081         overlap horizontally.
4083         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4084         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4085         Fix `radicalex'.
4087         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4088         and `sqrtex' are overlapping glyphs.
4090 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4092         * font/devdvi/generate/texsy.map: Add `is'.
4093         * font/devps/symbolmap: Regenerated.
4094         * font/devdvi/*TC, MI, S: Regenerated.
4096         * tmac/dvi.tmac: Remove `is'.
4098 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4100         `is' is now a text symbol (only relevant for dvi).  The math variant
4101         can be accessed with `integral'.
4103         * font/devX*/S: Regenerated.
4104         * font/devdvi/generate/texex.map: Remove `is'.
4105         * font/devdvi/EX: Updated.
4106         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4107         * font/devlj4/generate/special.map: Ditto.
4108         * font/devlj4/S: Regenerated.
4109         * font/devps/generate/textmap: Add `integral'.
4110         * font/devps/S: Regenerated.
4112         * tmac/dvi.tmac: Define `is'.
4114         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4116         * src/preproc/tbl/main.cc (process_format): Fix error message.
4118 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4120         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4121         * font/devps/textmap: Fix entries for `ne' and `nc'.
4122         * font/devps/symbolmap: Regenerated.
4124         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4125         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4126         `38', `58', `78', `-+', `|=', `nc', `ne'.
4128         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4129         Use `schar' for `aq'.
4130         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4131         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4132         * tmac/tty.tmac: Add `ne'.
4134         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4135         for fallback glyphs.
4137 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4139         Add glyph `|='.
4141         * font/devX*/*: Regenerated.
4142         * font/devdvi/generate/ec.map: Remove `eq'.
4143         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4144         Assign `|=' to position 39.
4145         * font/devdvi/*EC, S: Regenerated.
4146         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4147         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4148         Assign `|=' to position 549.
4149         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4150         `equalmath'.
4151         Add `uni2243' for `|='.
4153         * tmac/ec.tmac: Add `eq'.
4154         * tmac/dvi.tmac: Add `=~'.
4155         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4156         `|='.
4158 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4160         * font/devdvi/generate/tc.map: Remove `**'.
4161         * font/devdvi/*TC: Regenerated.
4162         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4163         `78', `<<', `>>'.
4164         * font/devutf8/NOTES: Updated.
4166         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4167         Don't give default parameter to `set_macro'.
4168         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4169         instead of `set_macro'.
4170         (charinfo::setx_macro): Implement it.
4171         (charinfo::set_macro): Don't change `mode'.
4173         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4174         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4175         * tmac/dvi.tmac: Define `!=' with `.schar'.
4177 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4179         * font/devX*/S: Regenerated.
4180         * font/devdvi/generate/ec.map: Remove `pl'.
4181         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4182         * font/devdvi/*{TC,EC}: Regenerated.
4183         * font/devhtml/R.proto: Add `-+'.
4184         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4185         * font/devlbp/*: Remove `or'.
4186         * font/devlj4/generate/special.map: Remove `or'.
4187         * font/devlj4/S: Regenerated.
4188         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4189         `seveneighths', `threeeighths'.
4190         Remove `plusmath'.
4191         Replace `minusplus' with `uni2213'.
4192         * font/devps/symbolmap: Regenerated.
4193         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4194         Add `-+'.
4196         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4197         function.
4198         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4199         Call glyph_color and fill_color even if tcommand_flag isn't set.
4200         (make_node, node::add_char): Check not ci->is_fallback but
4201         ci->is_normal.
4203         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4204         * tmac/ec.tmac: Add .rchar entry for `f/'.
4205         Don't remove `12', `14', `34'.
4206         Define `pl' to be always roman.
4207         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4208         Define `18', `38', `58', `78'.
4209         * tmac/tty.tmac: Add `-+'.
4210         * tmac/dvi.tmac: Define `f/'.
4211         (dvi-frac): Use `f/'.
4212         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4213         Define `18', `38', `58', `78'.
4215 2002-12-15  Colin Watson  <cjwatson@debian.org>
4217         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4219 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4221         Add glyph `tno', a textual variant of `no'.
4223         * font/devX*/*: Regenerated.
4224         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4225         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4226         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4227         * font/devdvi/*: Regenerated.
4228         * font/devlbp/*: Add `tno'.
4229         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4230         * font/devlj4/*: Regenerated.
4231         * font/devps/generate/textmap: Replace `no' with `tno'.
4232         * font/devps/generate/symbolchars: Add `no'.
4233         * font/devps/*: Regenerated.
4235         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4237         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4238         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4240         * NEWS: Updated.
4242         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4243         Add definition for `sd'.
4244         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4246         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4248 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4250         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4251         mode to avoid rounding errors.
4252         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4254         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4255         src/roff/troff/troff.man: Improve documentation of -T.
4257 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4259         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4260         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4262 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4264         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4265         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4266         Scaling Euro.sansserif glyphs down to have the same height as
4267         digits.
4268         Removed unnecessary points; added some extrema.
4270         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4271         Regenerated.
4273 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4275         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4276         and `Euro.symbol.bold.slanted'.
4277         Improve some glyph offsets and widths.
4278         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4279         Regenerated.
4280         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4281         typo.
4282         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4283         direcory.
4285         * tmac/europs.tmac: Updated to new glyph indices.
4286         Use Euro.symbol for font familiy `A'.
4288         * doc/groff.texinfo: Minor improvements.
4290 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4292         * font/devdvi/generate.tc.map: s/%O/%0/.
4293         * font/devdvi/*TC: Regenerated.
4295         * src/roff/troff/div.cc (init_div_requests): Sorted.
4297         * tmac/dvi.tmac: Remove `Ye'.
4298         * tmac/ec.tmac: Remove `Ye'.
4299         Add .rchar entry for `de'.
4301         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4302         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4303         * NEWS: Updated.
4305 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4307         Add PS font for various Euro glyphs.
4309         * font/devps/generate/freeeuro.sfd: New master font file for
4310         pfaedit.
4311         * font/devps/generate/sfdtopfa.pe: New conversion script for
4312         pfaedit.
4313         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4314         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4315         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4316         `freeeuro.sfd'.
4317         * font/devps/EURO: Generated from `freeeuro.afm'.
4318         * font/devps/download: Add `freeuro.pfa'.
4319         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4320         `freeeuro.pfa'.
4322         * tmac/europs.tmac: New file.
4323         * tmac/ps.tmac: Include `europs.tmac'.
4324         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4326 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4328         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4329         * font/devdvi/S: Regenerated.
4330         * font/devhtml/R.proto: Fix `CR' and `ci'.
4331         Add `OK'.
4332         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4333         Remove `bs'.
4334         * font/devps/symbolmap: Regenerated.
4335         * font/devutf8/R.proto: Fix `CR' and `ci'.
4336         Add `OK'.
4337         * font/devutf8/NOTES: Updated.
4339         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4340         `ci'.
4341         Add `OK'.
4342         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4344         * tmac/dvi.tmac: Add `lh' and `rh'.
4345         * tmac/Xps.tmac: Fix `lh' and `rh'.
4346         * tmac/X.tmac: Add `OK'.
4347         * tmac/lj4.tmac: Ditto.
4349 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4351         * font/devX*/S: Regenerated.
4352         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4353         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4354         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4355         * font/devdvi/S: Regenerated.
4356         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4357         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4358         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4359         `bracketleftbt', `bracketrighttp', `bracketrightex',
4360         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4361         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4362         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4363         `rb', and `bv'.
4364         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4365         * font/devutf8/NOTES: Updated.
4366         * font/devlj4/generate/special.map: Add glyph `braceex'.
4367         * font/devlj4/S: Regenerated.
4369         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4371 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4373         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4374         and `vA'.
4375         Fix code for `an'.
4376         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4378         * doc/texinfo.tex: New version from texinfo 4.3.
4379         * doc/groff.texinfo: Updated for texinfo 4.3.
4380         Use @tie{} where appropriate.
4381         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4382         * font/devdvi/generate/tc.map: Remove `rn'.
4383         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4384         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4385         Fix code for `an'.
4386         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4387         font/devX75-12/*: Regenerated.
4389         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4390         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4391         Improve definition of `an'.
4392         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4393         `ru'.
4394         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4395         * tmac/X.tmac: Add definition for `or'.
4396         * tmac/Xps.tmac: Undo change 2002-11-05.
4397         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4399 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4401         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4402         call flush_tbuf.
4404 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4406         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4407         defines a glyph which is searched after the check for fonts declared
4408         with `.special' (and before the check for all mounted special
4409         fonts).  `fschar' defines a glyph for a particular font which is
4410         searched after the check for fonts declared with `.fspecial' (and
4411         before the check for fonts declared with `.special').  `rfschar'
4412         removes glyphs defined with `fschar'.
4414         * src/roff/troff/token.h (char_mode): New enum.
4415         Declare do_define_character.
4416         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4417         `mode'.
4418         (charinfo::is_fallback): Updated.
4419         (charinfo::is_special): New method.
4420         * src/roff/troff/input.cc (do_define_character): Add and use
4421         optional second parameter used as a prefix for font-specific glyph
4422         names.
4423         (define_character, define_fallback_character): Updated.
4424         (define_special_character): New function.
4425         (init_input_requests): Add `schar'.
4426         (charinfo::charinfo, charinfo::set_macro): Updated.
4427         * src/roff/troff/node.cc: Include `stringclass.h'.
4428         (make_glyph_node): Handle special glyphs defined with `.schar' and
4429         `.fschar'.
4430         (define_font_special_character, remove_font_special_character): New
4431         functions.
4432         (init_node_requests): Sorted.
4433         Add `fschar' and `rfschar'.
4434         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4435         Document new requests.
4437         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4438         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4440 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4442         Added new font `SC' (cmtex10) to devdvi.
4444         * devdvi/generate/Makefile (FONTS): Add `SC'.
4445         (SC): New rule.
4446         * devdvi/generate/textex.map: New map file for cmtex.
4447         * devdvi/SC: New.
4448         * devdvi/Makefile.sub (DEVFILES): Updated.
4449         * tmac/dvi.tmac: Add fspecial entries for SC.
4450         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4451         found before `S' since the font position of `SC' is lower due to the
4452         gaps in DESC's `font' line.
4453         * tmac/ec.tmac: Add a `special' call.
4454         * NEWS: Updated.
4456         * font/devhtml/R.proto: Remove double entry for `ti'.
4457         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4458         * tmac/tty-char.tmac: Remove entry for `bq'.
4459         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4460         * tmac/ec.tmac: Don't remove `aq' glyph.
4461         * tmac/X.tmac: Fix entry for `em'.
4462         Add entries for `fo' and `fc'.
4463         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4465         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4466         documentation of `special' and `fspecial' requests.
4468 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4470         * font/devascii/R.proto, font/devcp1047/R.proto,
4471         font/devlatin1/R.proto: Remove entry for `.i'.
4472         * font/devdvi/generate/textt.map: Add entry for `ad'.
4473         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4474         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4475         We need this for getting kerning values to compose `/l' and `/L'.
4476         * font/devdvi: Regenerated font definition files for CM fonts.
4477         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4478         * font/devutf8/R.proto: Ditto.
4479         Remove double entry for `ti'.
4481         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4482         for (groff) ligatures, `la', and `ra'.
4483         Add "'C", "'c", `IJ', and `ij'.
4484         Remove double entry for `ti'.
4485         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4486         double entries.
4487         Add "'C", "'c", `IJ', and `ij'.
4488         Fix entries for (groff) ligatures, `la', and `ra'.
4490         * tmac/ps.tmac (ps-achar): New macro.
4491         Define "'c" and "'C".
4492         * tmac/tty.tmac: Add entry for `.i'.
4493         * tmac/X.tmac (X-achar): New macro.
4494         Define "'c", "'C", and `:Y'.
4495         Add entries for `IJ' and `ij'.
4496         * tmac/Xps.tmac (Xps-achar): New macro.
4497         Define "'c" and "'C".
4498         Add entries for `IJ' and `ij'.
4499         * tmac/lbp.tmac (lbp-achar): New macro.
4500         Add fallback characters for all groff ligatures and many other
4501         glyphs.
4502         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4503         Add entries for `/l' and `/L'.
4504         Define "'c" and "'C".
4505         Add entries for `IJ' and `ij'.
4507 2002-11-02  Larry Kollar  <kollar@alltel.net>
4509         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4511 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4513         Adding support for composite glyphs: \[xxx yyy ...] and the
4514         `composite' request.
4516         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4517         to Unicode-based glyph names.
4518         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4519         glyph names to groff glyph names.
4520         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4521         Unicode-based glyph names.
4522         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4523         for handling Unicode glyph names.
4524         * src/roff/troff/input.cc: Include unicode.h.
4525         (composite_glyph_name): New function.
4526         (token::next) <'['>: Handle Unicode glyph names and composite
4527         glyphs.
4528         (composite_dictionary): New dictionary for the `composite' request.
4529         (composite_request): Implement `composite' request.
4530         (init_input_requests): Add `composite'.
4531         Alphabetically sorted.
4532         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4533         commented out).
4534         (init_env_requests): Alphabetically sorted.
4535         Removed `tas' and `tar' (already commented out).
4536         * src/roff/troff/Makefile.sub: Updated.
4538 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4540         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4541         of options.
4543 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4545         Fix computation of .trunc register.  Additionally, its value (and
4546         the value of the .ne register) is now always set before entering the
4547         trap.
4549         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4550         `needed_space' before calling `space'.
4551         (top_level_diversion::space): Remove special code for 'sp before the
4552         first page.
4553         Call `begin_page' with the discarded space as a parameter.
4554         (top_level_diversion::begin_page): Add optional parameter to set
4555         `truncated_space'.
4556         * src/roff/troff/div.h: Updated.
4558         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4559         \n[.ne].
4561         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4562         (LP): Remove superfluous call to `br'.
4563         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4564         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4566 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4568         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4569         (doc-setup-header): Don't set page register `%'.
4570         * tmac/doc-nroff: Remove variable `C'.
4571         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4572         (doc-setup-header): Don't set page register `%'.
4573         Don't call `bp'.
4574         * tmac/doc-common (doc-header): Call `ns'.
4575         (doc-paragraph): Protect .sp with .br so that it survives traps
4576         possibly set by the user.
4577         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4579         * tmac/doc*: Replace ' with . for consistency if no effect.
4581 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4583         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4584         so that it survives traps possibly set by the user.
4586         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4587         (troff_output_file::set_font): Call flush_tbuf if necessary.
4588         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4589         flush_tbuf and do_motion only if necessary.
4590         (troff_output_file::start_special,
4591         troff_output_file::put_char_width, troff_output_file::put_char,
4592         troff_output_file::draw): Updated.
4593         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4594         vmotion_node::tprint): Undo change 2002-10-23.
4596 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4598         * tmac/www.tmac (DC): Fix case of overlapping images.
4600 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4602         * src/roff/troff/node.cc (troff_output_file::fill_color,
4603         troff_output_file::glyph_color): Set current color before testing
4604         color_flag.
4605         (troff_output_file::put_char_width, troff_output_file::put_char,
4606         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4607         before glyph_color.
4608         (troff_output_file::file_color, troff_output_file::glyph_color):
4609         Call do_motion.
4610         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4611         vmotion_node::tprint): Move first, then call fill_color.
4613 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4615         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4616         possible to use multiple main macro packages.
4618 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4620         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4621         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4622         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4623         is set.
4624         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4625         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4627 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4629         * NEWS, doc/webpage.ms: Updated.
4631 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4633         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4634         troff_output_file::put_char, troff_output_file::fill_color,
4635         troff_output_file::glyph_color): Handle case where color pointer
4636         is null.
4638 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4640         Add the new -r option to grotty.  It is similar to the -i option
4641         except it tells grotty(1) to use the "reverse video" attribute to
4642         render italic fonts.
4644         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4645         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4646         (tty_printer::make_underline, tty_printer::put_color,
4647         tty_printer::end_page): Use it.
4648         (main): Add -r switch.
4649         (usage): Updated.
4650         * src/devices/grotty/grotty.man: Document it.
4652 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4654         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4655         cast to `unsigned char' to properly read patterns with 8bit
4656         characters.
4658 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4660         * REVISION: Increased to 2.
4662 Version 1.18.1 released
4663 =======================
4665 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4667         * doc/webpage.ms, NEWS: Updated.
4669 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4671         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4672         suppress additional whitespace after the header.
4674         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4675         with NetBSD.
4677         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4679 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4681         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4682         (Dt): Use it to improve language localization (especially Russian
4683         and French).
4685 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4687         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4688         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4689         drawing commands.
4690         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4691         curve type.
4692         Call `picurve' for BSPLINE.
4693         (HGPrintElt): Handle BSPLINE.
4694         * src/preproc/grn/README: Document it.
4696 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4698         * src/roff/troff/node.cc (break_char_node::col): New variable.
4699         Updated constructor.
4700         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4701         unconditionally.
4702         (space_node::space_node): Remove assertion.
4703         (break_char_node::add_self): Pass color argument to space node.
4704         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4705         Ditto.
4706         * src/roff/troff/env.cc (environment::do_break,
4707         environment::add_padding): Ditto.
4709 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4711         Redesigning color support in troff.  Colors are no longer
4712         represented as separate nodes but are now part of glyph nodes and
4713         friends.  This fixes the current formatting misbehaviour due to the
4714         changes introduced on 2002-09-20.  Some extra code is necessary for
4715         proper grotty support: Without adding color variables to
4716         space-related nodes, the background color would be changed too late.
4718         * src/roff/troff/node.h, src/roff/troff/node.cc:
4719         s/current_pagecolor/current_fill_color/.
4720         s/current_glyphcolor/current_glyph_color/.
4721         (glyph_color_node, fill_color_node): Removed.
4722         (node::get_glyph_color, node::get_fill_color): New virtual member
4723         functions.
4724         (space_node::col): New variable.
4725         Updated constructors of space_node and derived classes accordingly.
4726         (hmotion_node::col): New variable.
4727         Updated constructors of hmotion_node and space_char_hmotion_node
4728         accordingly.
4729         (vmotion_node::col): New variable.
4730         Updated constructor accordingly.
4731         (draw_node::gcol, draw_node::fcol): New variables.
4732         Updated constructor accordingly.
4733         (special_node::gcol, special_node::fcol): New variables.
4734         Updated constructors accordingly.
4735         (troff_output_file::put_char, troff_output_file::put_charwidth,
4736         troff_output_file::draw): Set glyph and fill color.
4737         (troff_output_file::start_special): Set glyph and fill color.
4738         Always set current font.
4739         (troff_output_file::fill_color, troff_output_file::glyph_color):
4740         Don't call `do_motion'.
4741         (glyph_node::gcol, glyph_node::fcol): New variables.
4742         Updated constructors of glyph_node and ligature_node accordingly.
4743         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4744         member functions.
4745         (glyph_node::merge_glyph_node,
4746         kern_pair_node::add_discretionary_hyphen,
4747         node::add_discretionary_hyphen): Updated.
4748         (break_char_node::merge_self): Updated.
4749         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4750         vmotion_node::tprint): Handle color.
4751         (make_glyph_node, make_node, node::add_char): Updated.
4753         * src/roff/troff/env.cc (environment::space_newline,
4754         environment::space, environment::output_line, environment::do_break,
4755         environment::make_tab_node, environment::add_padding, title):
4756         Updated.
4757         (environment_switch, environment_copy): Don't add color nodes.
4759         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4760         nothing.
4761         (token::next): Updated.
4762         \m and \M now are as transparent as \s.
4763         (process_input_stack, token::add_to_node_list, token::process,
4764         read_draw_node): Updated.
4765         (charinfo_to_node_list): Don't add color nodes.
4767         * doc/groff.texinfo: Updated.
4769 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4771         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4772         strings.
4774 2002-09-27  Colin Watson  <cjwatson@debian.org>
4776         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4778 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4780         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4781         appropriate.
4782         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4783         (linewidth_factor): New global variable.
4784         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4785         linewidth_factor.
4786         (long_options): Add -w/--linewidth option.
4787         (usage): Updated.
4788         (main): Handle -w option to set linewidth_factor.
4789         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4790         line_thickness.
4792         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4794 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4796         Fixed a bug in the line thickness setting code.
4798         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4799         variable.
4800         (lbp_printer::set_line_thickness): Pass environment as second
4801         parameter.
4802         Implement it actually.
4803         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4804         and `set_line_thickness, depending on the current font size.
4806 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4808         Some Debian patches.
4810         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4811         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4812         `list->last'.
4814 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4816         * configure: Regenerated with autoconf 2.54.
4818 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4820         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4821         glyph_color.
4822         Rename cur_fill_color to fill_color.
4823         * src/roff/troff/env.cc: Updated.
4825 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4827         * src/roff/troff/env.cc (title): Copy color status after processing
4828         title.
4829         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4830         fill color nodes to reset colors properly.
4832         * tmac/www.tmac (DC): Fix color handling.
4834         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4835         * doc/groff.texinfo: Fixing documentation of `tl' request.
4836         * doc/webpage.ms: Updated.
4838 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4840         * src/roff/troff/env.cc (environent_switch, environment_copy):
4841         Emit glyph and fill color nodes to initialize colors properly.
4843 2002-09-17  Colin Watson  <cjwatson@debian.org>
4845         * src/roff/troff/env.cc (environment::set_glyph_color,
4846         environment::set_fill_color): Fix typo which prevented \m[] work
4847         correctly.
4849 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4851         Add left and right italic correction to non-slanted PS fonts.  This
4852         is an experimental feature to improve image rendering of grohtml.
4854         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4855         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4856         * font/devps/*: All non-slanted fonts regenerated.
4857         * NEWS: Updated.
4859 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4861         Add a site-specific font directory.
4863         * Makefile.in (localfontdir, legacyfontdir): New variables.
4864         (fontpath): Use them.
4865         (MDEFINES, uninstall_dirs): Updated.
4866         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4867         Remove `FONTPATH' and `MACROPATH'.
4869         * src/roff/troff/troff.man, NEWS: Updated.
4870         * doc/groff.texinfo (Font Directories): New section.
4871         Other minor fixes.
4873         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4874         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4875         src/preproc/grn/grn.man: Minor fixes.
4877         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4878         Remove unused variable.
4880 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4882         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4883         * man/groff_out.man: Fix documentation of 'N'.
4885 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4887         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4888         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4889         set.
4890         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4891         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4892         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4893         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4894         PRE_TAG>: Call `begin' with `FALSE'.
4896 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4898         * src/libs/libgroff/string.cc (string::extract): Fix position of
4899         terminating null byte.
4901 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4903         Add global option `nospaces' to tbl so that leading and trailing
4904         spaces in data items are ignored.
4906         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4907         function to remove leading and trailing spaces.
4908         * src/include/stringclass.h: Updated.
4910         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4912         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4913         option.
4914         Fix typo in error messages.
4915         (process_data): Implement `nospaces' option.
4916         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4918 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4920         * src/include/config.hin: Add `HAVE_ISATTY'.
4921         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4922         `fname' member.
4923         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4924         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4925         `operator!=' for `char'.
4926         * doc/groff.texinfo: Replace @ifnottex block for top node with
4927         @ifhtml block.
4929 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4931         * doc/Makefile.in (.texinfo.html): Add -I switch.
4932         * doc/groff.texinfo: Add @ifnottex block for top node to make
4933         translation to HTML work.
4935 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4937         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4938         (get_papersize, determine_vertical_offset): Removed.
4939         (char_buffer::do_image): Always specify letter size.
4940         (main): Updated.
4941         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4942         -sPAPERSIZE.
4944 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4946         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4947         default indentation.
4949 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4951         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4952         -sPAPERSIZE for gs.
4953         (generateImages): Clean up push-back buffer.
4955 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4957         * doc/groff.texinfo: Minor fixes.
4959 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4961         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4962         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4963         (gsPaper): Removed.
4964         (determine_vertical_offset): Use LETTER_LENGTH.
4965         (createPage): Moved to ...
4966         (imageList::createPage): This.
4967         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4968         (imageList::getMaxX): New function.
4969         (createImage): Moved to ...
4970         (imageList::createImage): This.
4971         (imageList::createImages): New function.
4972         (generateImages): Read `maxx' directly.
4973         Updated.
4974         (scanArguments): Don't specify `gsPaper' for `-o'.
4975         (makeTempFiles): Call `xtmpfile' with the last argument set to
4976         `TRUE'.
4978 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4980         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4981         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4982         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4983         * src/preproc/html/pushback.cc: Include nonposix.h.
4984         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4985         conditionally.
4987 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4989         Use $(OBJEXT) for the object file extension.
4991         * Makefile.comm (.SUFFIXES): Add .obj.
4992         (.cc.obj, .c.obj): New implicit rules.
4993         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4994         (MDEFINES): Add EXEEXT and OBJEXT.
4995         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4997 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4999         * INSTALL: Mention texinfo 4.2 as a prerequisite.
5001 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5003         * src/devices/grohtml/post-html.cc (colType): Make enum global to
5004         the file.
5005         (html_printer::update_min_max, html_printer::add_table_end): New
5006         methods.
5007         (html_printer::lookahead_for_tables): Use them.
5008         Reset page offset correctly.
5009         (html_printer::~html_printer): Add creation of creator comment up.
5011 2002-08-20  Werner LEMBERG  <wl@gnu.org>
5013         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5014         * man/groff_tmac.man: Fix typos.
5015         * man/groff_font.man: Minor reordering.
5016         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5018 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5020         Avoid endless loops while scanning for tables.
5022         * src/devices/grohtml/post-html.cc (list::insert): Set
5023         ptr->right->left.
5024         (html_printer::next_horiz_pos): Add `text_glob' argument; update
5025         all callers.
5026         Return immediately if that argument is NULL.
5027         (html_printer::calc_nf): Don't test if `g' is NULL.
5028         (html_printer::lookahead_for_tables): Use
5029         `glyphs.move_right_get_data'.
5030         Don't test if `g' is NULL.
5032 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5034         A better fix, replacing fix 2002-08-15, for increasing SIZE.
5036         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5037         a pointer.
5038         (char_block::char_block): Allocate `buffer'.
5039         (char_buffer::add_string): Use it.
5041 2002-08-15  Werner LEMBERG  <wl@gnu.org>
5043         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5044         src/devices/grodvi/grodvi.man: Document default line thickness.
5046 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
5048         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5049         8192.
5051 2002-08-14  Werner LEMBERG  <wl@gnu.org>
5053         * doc/webpage.ms: Updated.
5055 2002-08-09  Werner LEMBERG  <wl@gnu.org>
5057         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5058         unbreakable space.
5060 2002-08-08  Aaron Campbell  <aaron@monkey.org>
5062         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5063         (&& -> &).
5065 2002-08-08  Werner LEMBERG  <wl@gnu.org>
5067         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5068         tok.next().
5069         (read_gray): Ditto.
5070         Don't push back a space but a newline onto the stack.
5072 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
5074         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5075         inadvertently.
5077         * src/devices/grohtml/post-html.cc (html_printer::end_font,
5078         html_printer::start_font): Handle them.
5079         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5080         reset bold and tt.
5081         (html_text::do_bold): Don't reset italic and tt.
5082         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5083         * font/devhtml/DESC.proto: Add those fonts.
5084         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5086 2002-08-07  Werner LEMBERG  <wl@gnu.org>
5088         * MORE.STUFF: Added gpresent.
5090         * tmac/trace.tmac: Show nesting level by a corresponding amount of
5091         whitespace before printing the logging message.
5093 2002-07-31  Colin Watson  <cjwatson@debian.org>
5095         * src/devices/grohtml/html-table.cc (html_table::finish_row):
5096         Initialize `n' to zero.  This fixes a segfault on ARM.
5098 2002-07-30  Werner LEMBERG  <wl@gnu.org>
5100         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5102 2002-07-29  Werner LEMBERG  <wl@gnu.org>
5104         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5105         final semicolon.
5107 2002-07-28  Colin Watson  <cjwatson@debian.org>
5109         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5110         `.ps'.
5111         (html_printer::html_printer): Initialize `pointsize'.
5113 2002-07-26  Werner LEMBERG  <wl@gnu.org>
5115         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5116         gnu.png.
5117         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5118         (gnu.eps): Add -rle switch to pnmtops.
5119         (distfiles): Add gnu.eps and gnu.png.
5121 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
5123         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5124         Add `operator!='.
5126 2002-07-24  Werner LEMBERG  <wl@gnu.org>
5128         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5129         ' \+' but '  *' for sed.
5130         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5132 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5134         * doc/groff.texinfo: Document `papersize' keyword.
5135         * NEWS, man/groff_font.man: Updated.
5137 2002-07-23  Colin Watson  <cjwatson@debian.org>
5139         Extend papersize keyword to accept more than a single entry.  The
5140         first valid will be used.
5142         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5143         (font::scan_papersize): Really skip final newline.
5144         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5146 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5148         * configure.ac: Test for isatty.
5149         * configure: Regenerated.
5150         * src/include/posix.h: Check HAVE_ISATTY.
5151         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5152         * src/utils/lookbib/lookbib.cc: Include posix.h.
5153         Don't declare isatty.
5155 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5157         * NEWS: Add `output' request.
5159         * REVISION: Increased to 1.
5161 Version 1.18.0 released
5162 =======================
5164 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5166         Allow internal glyph indices > 0xFF in grohtml for input characters.
5168         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5169         as parameter.
5170         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5171         Updated all callers.
5172         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5173         (html_printer): Updated.
5175 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5177         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5178         * font/devutf8/R.proto: Adding some missing glyphs.
5179         * font/devutf8/NOTES: Updated.
5181         * tmac/dvi.tmac: Add more composite glyphs.
5182         * tmac/html.tmac: Updated.
5184         * man/groff_char.man: Add `sum' and `product' entities.
5186         * NEWS: Updated.
5188 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5190         Improved table, tab, and indenting support.
5192         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5193         string_iterator::suppress_newline_flag): Removed.  Updated all
5194         function which have used it.
5196         * src/roff/troff/env.cc: Include `input.h'.
5197         (environment::add_node): Accept 0 as parameter.
5198         (environment::add_html_tag): Add `force' parameter.
5199         Updated all callers.
5200         (environment::add_html_tag_tabs): Ditto.
5201         For the moment, support left-aligned tabs only.
5202         (environment::make_html_tag): New function.
5203         (fill, no_fill): Set .br html tag additionally.
5204         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5205         (environment::add_html_tag_eol): Removed.
5206         (tab_stops::distance_to_next_tab): Add variant for handling 
5207         nextpos'.
5208         (environment::distance_to_next_tab): Ditto.
5209         Updated all callers.
5210         (environment::handle_tab): Handle tabs for html.
5211         
5212         * src/roff/troff/env.h: Updated.
5214         * src/roff/troff/div.cc: Updated all callers of
5215         `environment::add_html_tag'.
5217         * src/devices/grohtml/html-table.cc,
5218         src/devices/grohtml/html-table.h: New files.
5220         * src/devices/grohtml/html-text.cc (html_text): New members
5221         `blank_para' and `start_space'.
5222         (html_text::issue_tag): Don't emit TABLE_TAG.
5223         Handle indentation for PRE_TAG and P_TAG.
5224         (html_text::end_tag): Updated.
5225         (html_text::table_is_void, html_text::issue_table_begin,
5226         html_text::issue_table_end): Removed.
5227         (html_text::do_push): Simplified.
5228         [DEBUGGING]: Small fix.
5229         (html_text::push_para): Add new parameter for indentation; updated
5230         all callers.
5231         Handle PRE_TAG.
5232         (html_text::do_indent, html_text::do_table, html_text::done_table,
5233         html_text::is_in_table): Removed.
5234         (html_text::do_pre): Handle P_TAG also.
5235         (html_text::shutdown): Handle p->indent.
5236         (html_text::check_emit_text): Simplified.
5237         (html_text::do_emittext): Reset `blank_para'.
5238         (html_text::do_para): Add new parameter for indentation; updated
5239         all callers.
5240         (html_text::remove_indent): New function.
5241         (html_text::do_space): Handle verbatim text properly.
5242         (html_text::ever_emitted_text, html_text::starts_with_space,
5243         html_text::remove_para_align): New functions.
5244         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5246         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5247         Updated.
5249         * src/devices/grohtml/post-html.cc: Include html-table.h.
5250         (INDENTATION): Removed.
5251         (text_glob): Added many `is_<foo>' functions.
5252         Added table description `tab'.
5253         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5254         member functions.
5255         (list): Add `insert' and `move_to' member functions.
5256         (page): Add `insert_tag' member function.
5257         (page::dump_page) [DEBUG_TABLES]: Improved.
5258         (html_printer): Add `table' and `max_linelength' elements.
5259         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5260         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5261         `remove_tabs', `remove_courier_tabs'.
5262         (html_printer::emit_raw): Handle indentation.
5263         (html_printer::do_center, html_printer::write_header): Updated.
5264         (html_printer::is_courier_until_eol): Check for tag.
5265         (html_printer::do_linelength): Handle max_linelength.
5266         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5267         fill_on.
5268         (html_printer::do_tempindent): Updated.
5269         (html_printer::do_indentedparagraph): Removed.
5270         (html_printer::do_indent): Simplified.
5271         (html_printer::do_eol): Use `ever_emitted_text'.
5272         (html_printer::do_flush, html_printer::do_links): Don't call
5273         done_table.
5274         (html_printer::do_break): Handle end_tempindent.
5275         (html_printer::troff_tag): Get argument.
5276         Don't handle `.ip'.
5277         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5278         (html_printer::flush_page): Call `lookahead_for_tables'.
5279         Don't call `done_table'.
5280         (html_printer::add_to_sbuf): Always call do_indent.
5282         * src/devices/grohtml/Makefile.sub: Updated.
5284         * tmac/an-old.tmac (TP): Don't handle html device specially.
5285         (an-do-tag-html): New function which will be used instead of
5286         `an-do-tag' if html device is used.
5288         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5290         * tmac/s.tmac (@IP): Don't handle html device specially.
5291         (@IP-html): New function which will be used instead of `@IP' if
5292         html device is used.
5294         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5295         is a hack which will eventually vanish again.
5296         (PIMG): Handle `-C' option correctly if not html.
5297         (HR): Use HTML-NS.
5299 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5301         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5303 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5305         * contrib/pic2graph/pic2graph.*: Use convert(1).
5306         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5308 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5310         * tmac/groff_trace.man: New file.
5311         * tmac/Makefile.sub: Updated.
5312         * NEWS: Updated.
5314 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5316         * src/roff/groff/groff.man: Add some cross references.
5318 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5320         * src/roff/troff/input.cc (substring_request): Add warnings for
5321         string indices out of range.
5323 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5325         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5326         * font/devdvi/*EC: Regenerated.
5328 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5330         * man/groff_char.man: Updated and extended.
5332 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5334         * src/roff/troff/input.cc (length_macro): Renamed to...
5335         (length_request): This.
5336         Move call of `tok.next()' to the very end, otherwise the register
5337         value hasn't been updated yet.
5338         (init_input_requests): Updated.
5340 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5342         * src/roff/troff/input.cc (substring_macro): Renamed to...
5343         (substring_request): This.
5344         (init_input_requests): Updated.
5345         * src/roff/troff/request.h: Updated.
5347 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5349         * src/roff/grog/grog.sh: Fix typo.
5351 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5353         * win32-diffs: Updated.
5355         Handle `papersize' keyword properly in DESC.
5357         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5358         type.
5359         Updated all callers.
5360         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5361         grolj4.
5362         * src/include/paper.h: Updated.
5364         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5365         Other minor C syntax fixes.
5366         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5367         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5368         members.
5369         (lbp_printer::lbp_printer): Pass three arguments.
5370         Set paper dimensions properly.
5371         (make_printer, main): Updated.
5372         (handle_unknown_desc_command): Fix error messages.
5373         (main): Handle papersize keyword in DESC properly.
5375         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5376         `user_paper_size'.
5377         (lbp_printer::lbp_printer): Pass an argument.
5378         Set paper_size properly.
5379         (handle_unknown_desc_command): Removed.
5380         (make_printer, main): Updated.
5381         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5383         * man/groff_font.man, NEWS: Updated.
5385 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5387         Integrated eqn2graph, contributed by Eric S. Raymond.
5389         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5390         files.
5391         * Makefile.in, NEWS: Updated.
5393 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5395         Changing the substring request to make it fit better with other
5396         string manipulation functions in other programming languages:
5397         Index 0 is now the first character in the string, and index -1
5398         indicates the last character.  Since this request didn't work
5399         properly anyway in the last release, it doesn't harm too much to
5400         change the syntax.
5402         * src/roff/troff/input.cc (substring_macro): Use loops to get
5403         the real string length (ignoring COMPATIBLE_SAVE and
5404         COMPATIBLE_RESTORE) and offsets.
5405         Implement change described above.
5407         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5408         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5410         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5412 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5414         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5415         COMPATIBLE_RESTORE are completely ignored.
5417         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5418         functions.
5419         (macro): `length' field renamed to `len'.
5420         Added new field `empty_macro' (1 if macro is empty), to be used
5421         instead of checking `len'.
5422         Updated all callers.
5423         (macro::empty): Updated.
5424         (macro::length, macro::set, macro::get): New functions.
5425         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5426         Set `empty_macro'.
5427         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5428         COMPATIBLE_RESTORE pairs.
5429         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5430         * src/roff/troff/request.h: Updated.
5432         * doc/groff.texinfo: Document .chop's behaviour better.
5434 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5436         * doc/pic.ms: Fix documentation for the addition of positions.
5438         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5440 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5442         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5444         * src/roff/troff/input.cc (have_string_arg): New global variable.
5445         (read_mode): New enumeration.
5446         (read_escape_name): Use it.  Update all calls.
5447         (read_long_escape_name): Use it.  Update all calls.
5448         Set have_string_arg if appropriate.
5449         (get_char_for_escape_name): Add parameter for handling space
5450         character.
5451         (interpolate_string_with_args, decode_string_args): New functions.
5452         (get_copy, token::next): Call it if necessary.
5453         (interpolate_string): Fix error message.
5455         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5456         Document it.
5458 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5460         * man/groff_tmac.man: Updated and extended.
5462 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5464         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5466 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5468         * doc/pic.ms: Improve documentation of composite block objects.
5470 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5472         * src/roff/troff/input.cc (init_registers): Add three registers
5473         `seconds', `minutes', and `hours' to hold the current time.
5475         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5476         Updated.
5478 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5480         Make \X accept both `\ ' and `\~', converting them to single space
5481         characters.
5483         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5484         (token::unstretchable_space): New inline function.
5485         * src/roff/troff/input.cc (token::next, token::delimiter,
5486         token::description, token::add_to_node_list, token::process): Handle
5487         TOKEN_UNSTRETCHABLE_NODE.
5488         (encode_char): Handle tok.stretchable_space and
5489         tok.unstretchable_space.
5491         * NEWS, doc/groff.texinfo: Document it..
5493 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5495         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5497         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5498         keyword to enable/disable SGR output.
5499         (tty_printer::change_fill_color): New function.
5500         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5502         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5503         call.
5505 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5507         Add a `color' request and a `.color' register to control usage of
5508         colours.
5510         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5511         (color_flag): This (which is the inverse).
5512         (activate_color): New function.
5513         (main, init_input_requests): Updated.
5514         * src/roff/troff/troff.h, src/roff/troff/node.cc
5515         (troff_output_file::fill_color, troff_output_file::glyph_color):
5516         Updated.
5518         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5519         Document the changes.
5521 2002-06-17  Colin Watson  <cjwatson@debian.org>
5523         Circumvent bug in autoconf 2.53 regarding top_builddir.
5525         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5526         * Makefile.in, doc/Makefile.in:
5527         s/@top_builddir@/@groff_top_builddir@/.
5528         * configure: Regenerated (with autoconf 2.53).
5530 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5532         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5533         `paperwidth' and `paperlength' for the `papersize' keyword.
5535 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5537         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5539 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5541         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5542         html_printer::do_linelength, html_printer::do_pageoffset,
5543         html_printer::do_indentation, html_printer::do_tempindent,
5544         html_printer::do_break, html_printer::begin_page): Clear indented
5545         text.
5546         * tmac/html.tmac: Disable hyphenation.
5548 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5550         Don't produce HTML files if utility programs are missing.
5552         * Makefile.in (make_html, make_install_html): New variables.
5553         (MDEFINES): Updated.
5555         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5556         utility programs.
5557         * configure.ac: Use it.
5558         * configure: Regenerated.
5560         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5561         (HTMLEXAMPLESFILES): This new variable.
5562         (EXAMPLESIMAGEFILES): Renamed to...
5563         (HTMLEXAMPLEIMAGEFILES): This.
5564         (CLEANADD): Add HTMLEXAMPLEFILES.
5565         (all): Use `make_html'.
5566         (html): New target.
5567         (install_data): Use `make_install_html'.
5568         Move html stuff to...
5569         (install_html): This new target.
5570         (uninstall_sub): Updated.
5572 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5574         * src/roff/grog/Makefile.sub (grog): Renamed to...
5575         (grog.old): This.
5576         (grog): New rule to always install grog.sh as grog.
5578 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5580         * src/roff/grog/grog.pl: Fix typo.
5582 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5584         * doc/groff.texinfo: Add more info on .tr arguments.
5586 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5588         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5590         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5591         * configure: Regenerated.
5593 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5595         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5597         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5599 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5601         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5602         is not initialized at the time we need it in case `--prefix' hasn't
5603         been set.  Check for `ac_default_prefix' also.
5604         Test for `papersize' keyword also and generalize allowed whitespace.
5605         * configure: Regenerated.
5607         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5608         `paperlength'.
5610         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5611         with...
5612         (src_version, src_revision): New variables to avoid overwriting
5613         from parent make process.
5614         (version.cc): Updated.
5616         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5617         (linebuf, linebufsize): New global variables.
5618         (sys_fatal): Use `fatal' to abort properly.
5619         (get_line): New function.
5620         (get_resolution): Use it.
5621         Improve error messages.
5622         (get_papersize): Check `papersize' also.
5623         Use `get_line'.
5624         Improve error messages.
5626 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5628         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5629         should be removed only if builddir is not srcdir.
5630         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5631         (clean): Depend on `mostlyclean'.
5632         (distclean): Depend on `clean'.
5633         (realclean, extraclean): Depend on `distclean'.
5634         (.y.cc, .y.o): Simplified.  The output files are no longer written
5635         to srcdir but to builddir.
5636         * Makefile.in (MDEFINES): Add `version' and `revision'.
5637         (uninstall_dirs): Fix order of directories.
5638         * doc/Makefile.sub (version, revision): Removed.
5639         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5640         Added `HTMLDOCFILES'.
5641         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5642         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5643         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5644         as prefix.
5646         * doc/texinfo.tex (\authortt): New macro.
5647         (\shortcontt): Define.
5648         (\titlepage): Set \tt to \authortt while defining \authorfont.
5649         (\appendixbox): New macro.
5650         (\chapmacro, \appendixentry): Use \appendixbox to get even
5651         indentation for letters.
5652         (\summarycontents): Set \tt.
5653         (\internalpagesize): Add two arguments for real paper width and
5654         height as needed by pdfTeX.
5655         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5656         Updated.
5657         (\tempdima, \tempdimb): New temporary dimensions.
5658         (\pagesizesyyy): Updated.
5660 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5662         Adding a new keyword `papersize' to the DESC file format (similar
5663         but not completely identical to grolbp's extension).  grops now has
5664         a -p command line option to override `papersize'.  Finally, grolbp
5665         has been adapted to the new syntax.
5667         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5668         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5669         elements.
5670         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5671         (CCSRCS): Add `paper.cc'.
5673         * src/include/font.h (font): Add `papersize' element.
5674         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5675         (font::scan_papersize): New function.
5676         (font::load_desc): Use it for handling `papersize' keyword.
5677         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5679         * src/devices/grops/ps.cc: Include paper.h.
5680         (user_paper_length): New global variable.
5681         (ps_printer): Use paper length as initializer.
5682         (make_printer): Updated.
5683         (main): Handle new `-p' option.
5684         * src/devices/grops/grops.man: Updated.
5686         * src/devices/grolbp/lbp.cc: Include paper.h.
5687         s/papersizes/lbp_papersizes/.
5688         (set_papersize): Use new `papersizes' array.
5689         (handle_unknown_desc_command): Don't handle `papersize'.
5690         (main): Use `font::scan_papersize' for handling `-p' option.
5691         * src/devices/grolbp/grolbp.man: Updated.
5693         * man/groff_font.man: Document `papersize'.
5694         * NEWS: Updated.
5696 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5698         * src/devices/grops/TODO: Updated.
5699         * src/devices/grops/grops.man: More info on paper formats.
5700         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5702 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5704         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5705         to list only if srcdir != currdir.
5706         (distfiles): New target.
5708         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5709         (NOMAKEDIRS): New variable.
5710         (DISTDIRS): Use it.
5712 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5714         Add .output request, similar to \! at top-level.
5716         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5717         (output_request): New function.
5718         (init_input_requests): Add it.
5719         Sorted.
5720         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5721         Document it.
5723         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5724         (prepare_examples): Fix typo.
5725         * doc/groff.texinfo (@direntry): Fix it.
5727 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5729         Including the doc subdir into groff's Makefile system.
5731         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5732         * configure.ac: Use it.
5733         Generate `doc/Makefile'.
5734         * configure: Regenerated.
5736         * Makefile.in (infodir, INSTALL_INFO): New variables.
5737         (MDEFINES, uninstall_dirs): Updated.
5738         (OTHERDIRS): Add `doc'.
5739         * Makefile.comm (CLEANDIRADD): New variable.
5740         (mostlyclean): Use it.
5742         * doc/Makefile.sub, doc/Makefile.in: New files.
5743         * doc/Makefile: Removed.
5745         * NEWS, INSTALL: Updated.
5747 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5749         * doc/homepage.ms: Renamed to ...
5750         * doc/webpage.ms: This.
5751         Use `.NHR'.
5753 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5755         Integrating the `mom' macro package, contributed by Peter Schaffter
5756         <df191@ncf.ca>.
5758         * contrib/mom/*: New subdirectory tree.
5759         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5760         be used for documentation files.
5761         (MDEFINES, uninstall_dirs): Use them.
5762         (OTHERDIRS): Add contrib/mom.
5763         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5764         @HTMLDOCDIR@.
5765         * MANIFEST, NEWS: Updated.
5767 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5769         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5770         if at outer level; at start-up we are at outer level.
5772         * src/roff/troff/input.cc (do_suppress): Implement it.
5773         Simplify \O[3].
5775         Add option -p to show progress information.
5776         pre-grohtml will now render only one page at a time, reducing the
5777         size of needed disk resources enormously.
5779         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5780         (imagePageName): New global variable.
5781         (psPageName, show_progress, currentPageNo): New global variables.
5782         (html_system): Close saved stderr and stdout handles.
5783         (write_end_image): Accept a parameter to control \O escape.
5784         (write_start_image): Adapted to new \O meaning.
5785         (char_buffer::write_upto_newline): Updated.
5786         (createAllPages): Replaced with...
5787         (createPage): This new function to create a single page for images.
5788         It uses `psselect' from the psutils package.
5789         (removeAllPages): Removed.
5790         (createImage): Updated.
5791         Handle progress display.
5792         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5793         (scanArguments): Add option -p.
5794         (makeTempFiles): Updated to create temp files for psPageName and
5795         imagePageName.
5796         (removeTempFiles): Removed.
5797         (main): Updated.
5799         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5800         html_printer::write_header): Append `\0' to `buffer'.
5801         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5802         (main): Handle -p.
5803         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5804         Handle `text_emitted'.
5805         (html_text::table_is_void): Slightly rewritten.
5806         (stop): New external symbol.
5807         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5808         (html_text::shutdown): Call `dump_stack'.
5809         (html_text::do_space): Rewritten.
5810         * src/devices/grohtml/grohtml.man: Document -p and the need of
5811         `psselect'.
5813         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5814         new \O syntax.
5815         Call \O[0] if `ps4html' is active.
5816         * tmac/s.tmac (@EQ, @EN): Handle html better.
5817         (@TS, TE): Ditto.
5818         * tmac/html.tmac: Don't use black for background colour.
5820         * src/roff/troff/node.cc: Include `div.h'.
5821         (troff_output_file::really_print_line): Don't use `is_on'. 
5822         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5823         troff_output_file::check_charinfo,
5824         troff_output_file::put_char_width, troff_output_file::put_char,
5825         troff_output_file::determine_line_limits, troff_output_file::draw,
5826         real_output_file::begin_page, glyph_color_node::tprintf,
5827         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5828         Use `is_on'.
5829         (troff_output_file::really_on): Call `do_motion'.
5830         (suppress_node::tprint): Use `get_page_number' instead of `%'
5831         register.
5832         Call `reset_output_registers' conditionally on `is_on'.
5834         * doc/groff.texinfo: Document new syntax of \O.
5835         * NEWS, man/groff_diff.man: Updated.
5837 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5839         * MORE.STUFF: Add info about David Frey's deroff implementation.
5840         Mention troff.org.
5842 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5844         Pic's `with' attribute now accepts positions.
5846         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5847         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5848         conflicts.
5849         (object_spec): Add rule for `WITH' and `position'.
5850         (relative_path): Give `corner' the precedence of `CHOP'.
5851         * src/preproc/pic/object.h (path): New members `pos' and
5852         `is_position'.
5853         * src/preproc/pic/object.cc: Updated initializers of `path'.
5854         (path::follow): Handle `is_position'.
5856         * doc/pic.ms: Completely updated grammar description.
5857         Many typographical improvements.
5859 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5861         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5862         code of x in range 0-127) also.
5863         * doc/groff.texinfo, man/groff_diff.man: Updated.
5865         Added keywords `north', `south', `east', and `west' for corners
5866         in pic.
5868         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5869         and WEST.
5870         (yylex): Handle them.
5871         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5872         (corner): Handle them.
5874 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5876         * src/devices/grops/grops.man: Clarify handling of `download' file.
5878 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5880         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5881         Jeffrey Friedl <jfriedl@yahoo.com>.
5883         * src/roff/troff/input.cc (spread_limit, warn_scale,
5884         warn_scaling_indicator): New global variables.
5885         (warnscale_request, spreadwarn_requests): New functions.
5886         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5887         (init_input_requests): Updated.
5888         (error_type): Add `OUTPUT_WARNING'.
5889         (do_error): Handle it.
5890         (output_warning): New warning function which shows output location.
5891         * src/roff/troff/env.h (spread_limit): New external variable.
5892         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5893         `output_warning'.
5894         (distribute_space): Emit warning if added space is larger than
5895         `spread_limit'.
5896         (environment::possibly_break_line): Emit warning if a line can't
5897         be adjusted on both sides.
5899         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5901 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5903         * src/roff/troff/node.cc (special_node::special_node): Use
5904         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5905         \X''\% crashes, for example.
5907         * doc/groff.texinfo: Document \! and \? used at top-level.
5909 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5911         * src/preproc/pic/pic.man: Fix some keyword syntax.
5912         Other minor typographical fixes.
5914         * src/roff/groff/groff.man: Fix typos.
5916 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5918         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5919         (ShortOpt[]): This to avoid problems with refer.
5921         * doc/pic.ms: Fix typo.
5922         Fix pic grammar description.
5924         * tmac/an-old.tmac (ne): Use de1, not de.
5926 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5928         * doc/groff.texinfo: Finished separation of glyphs and characters.
5929         Don't use the string `Appendix' for appendix headers (both in
5930         the text and the table of contents).
5931         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5932         directories.
5934         Use registers LL and LT (similar to -ms) for controlling the
5935         length of title and line, respectively, in the -man and -mdoc
5936         macro packages.
5938         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5939         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5940         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5941         (TH): Use \n[LL].
5942         (an-header, an-p-footer): Use \n[LT].
5943         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5944         doc/groff.texinfo: Document it.
5946 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5948         * doc/fdl.texi: New file.
5949         * doc/groff.texinfo: Include it.
5950         Define and use @copying.
5951         Starting with separating glyph, symbol, and character.
5953 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5955         * Makefile.in (EXEEXT): Set it.
5956         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5957         programs.
5959         * src/include/nonposix.h: Define GS_NAME.
5960         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5962         Some preliminary changes for EMX support under OS/2.
5964         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5965         __EMX__ similar to __MSDOS__.
5966         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5968 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5970         * doc/groff.texinfo: Integrated groff_out.man.
5971         Some macro fixes.
5973 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5975         * man/groff_out.man: Minor fixes.
5977 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5979         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5980         correct page references.
5981         Fixed many index entries.
5983 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5985         * man/roff.man: Enlarged.
5987 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5989         * doc/groff.texinfo: More examples, other fixes.
5991 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5993         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5994         will now form a chain, e.g.
5996           .pi foo
5997           .pi bar
5999         is now the same as
6001           .pi foo | bar
6003         This is for compatibility with plan 9's troff.
6005         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6006         with UNIX troff.
6007         * NEWS: Updated.
6009         * doc/groff.texinfo: Add documentation of remaining requests and
6010         registers.
6012 2002-04-19  Werner LEMBERG  <wl@gnu.org>
6014         * doc/groff.texinfo: Add documentation of remaining escapes.
6016         * font/devdvi/generate/tc.map: Remove entry for `sr'.
6017         * font/devdvi/*TC: Regenerated.
6019 2002-04-18  Werner LEMBERG  <wl@gnu.org>
6021         * src/roff/troff/input.cc (token::next): Make \H behave consistently
6022         if not in compatibility mode, i.e., increment relative to the
6023         previous height.
6024         * doc/groff.texinfo: Updated accordingly.
6026 2002-04-17  Werner LEMBERG  <wl@gnu.org>
6028         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6030 2002-04-16  Bernd Warken  <bwarken@mayn.de>
6032         * src/roff/groff/groff.man: Improve documentation of -P option.
6033         Other minor fixes.
6035 2002-04-15  Werner LEMBERG  <wl@gnu.org>
6037         Add new escape \F to switch font family.
6039         * src/roff/troff/input.cc (token::next): Handle \F.
6040         * src/roff/troff/env.cc (environment::set_family): Handle
6041         `interrupted' flag.
6042         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6043         Document it.
6045 2002-04-14  Werner LEMBERG  <wl@gnu.org>
6047         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6048         spaces in tags.
6050 2002-04-13  Werner LEMBERG  <wl@gnu.org>
6052         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
6053         \m[] and \M[], respectively.
6055         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6056         (symbol::symbol): Handle NULL string and empty string differently.
6057         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6058         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6059         Add optional parameter.
6060         Updated calling functions.
6061         (get_copy, do_glyph_color, do_fill_color, token::next): Use
6062         `symbol::is_empty'.
6063         * src/roff/troff/env.cc (environment::set_font): Ditto.
6065         * src/preproc/pic/troff.cc (troff_output::set_fill,
6066         troff_output::reset_color: Updated.
6068         * tmac/www.tmac: Updated.
6070         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6071         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6072         Updated.
6074         * tmac/Xps.tmac: Remove some redundant code.
6076         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6077         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6078         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6079         \f[].
6081 2002-04-13  Bernd Warken  <bwarken@mayn.de>
6083         * src/include/printer.h, src/libs/libdriver/printer.cc
6084         (printer::change_fill_color): New member function.
6085         * src/libs/libdriver/input.cc (parse_D_command): Use it.
6087 2002-04-12  Werner LEMBERG  <wl@gnu.org>
6089         * doc/groff.texinfo: Completed pass on gtroff reference.
6091 2002-04-11  Werner LEMBERG  <wl@gnu.org>
6093         * doc/groff.texinfo: More fixes.
6095 2002-04-11  Bernd Warken  <bwarken@mayn.de>
6097         * src/include/color.h: Decorate with `const'.
6098         Use `size_t'.
6099         Include `stddef.h'.
6100         * src/libs/libgroff.color.cc: Decorate with `const'.
6101         Use `size_t'.
6102         (color::color): Initialize members.
6103         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6104         command according to the documentation.
6106         * man/groff_out.man: Updated.
6107         Minor fixes.
6109 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
6111         * src/preproc/html/pre-html.cc (write_start_image): Remove
6112         redundant output.
6113         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6115         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6116         \C'hy' caused an assertion failure.
6118         * src/roff/troff/env.cc (environment::environment): Initialize
6119         `emitted_node'.
6120         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6122 2002-04-10  Werner LEMBERG  <wl@gnu.org>
6124         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6125         Document pvs request and .pvs register.
6127 2002-04-09  Werner LEMBERG  <wl@gnu.org>
6129         * doc/groff.texinfo: Improve and fix documentation of diversions
6130         and environments.
6132 2002-04-08  Werner LEMBERG  <wl@gnu.org>
6134         * doc/groff.texinfo: Fix documentation of drawing functions.
6135         Other minor fixes.
6137 2002-04-07  Werner LEMBERG  <wl@gnu.org>
6139         * doc/groff.texinfo: Better documentation of double quotes as
6140         arguments.
6141         Other minor fixes.
6143 2002-04-06  Werner LEMBERG  <wl@gnu.org>
6145         * man/groff_font.man: Document names of special characters better.
6146         * doc/groff.texinfo: Minor improvements.
6148         * tmac/lbp.tmac: Load latin1.tmac.
6149         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6151         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6153 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6155         * tmac/tty.tmac: Don't use shc request.
6156         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6157         * NEWS: Updated.
6159         * man/groff_diff.man: Minor fixes.
6161         * font/devlbp/*: Remove all `charXXX' entities.
6163         * src/libs/libgroff/font.cc (font::~font): Deallocate
6164         `special_device_coding'.
6165         (font::load): Use `new' for allocating `special_device_coding'.
6166         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6167         Removed unused member.
6169 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6171         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6172         (resource_manager::do_begin_binary,
6173         resource_manager::do_begin_data): Use it.
6175         * doc/texinfo.tex: Updated to version 4.2.
6177         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6178         (token::zero_width_break): New inline function.
6179         * src/roff/troff/input.cc (token::next): Use it.
6180         (token::description): Updated.
6181         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6182         (token::add_to_node_list, token::process): Use it.
6183         * NEWS, doc/groff.texinfo: Updated.
6185         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6186         * tmac/tty.tmac: Add missing backslash.
6188 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6190         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6191         `.ps' register instead of `.s' to handle fractional point sizes.
6192         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6193         limit_box::output): Ditto.
6194         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6195         size_box::output): Ditto.
6196         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6197         over_box::output): Ditto.
6198         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6199         script_box::output): Ditto.
6200         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6201         sqrt_box::output): Ditto.
6203 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6205         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6206         Fix typo.
6208 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6210         * doc/homepage.ms: Reduce title size.
6211         * doc/groff.texinfo: Fix documentation of .t register.
6212         Fix handling of colon.
6213         Fix `\' vs. `\\'.
6215         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6216         only if page length is positive to avoid a loop.
6218         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6219         tbl.
6221 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6223         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6224         s/__CYGWIN32__/__CYGWIN__/.
6226 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6228         * doc/gnu.xpm: New image contributed by Emily Mulley.
6229         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6230         (homepage.html): Be dependent on gnu.eps.
6231         * doc/homepage.ms: Updated to new image.
6233         * src/devices/grohtml/post-html.cc (html_printer): New member
6234         `sbuf_prev_hpos'.
6235         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6236         (html_printer::sbuf_continuation): Use it.
6238 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6240         * src/libs/libgroff/getopt.c: Updated to latest version.
6242         * tmac/README: More on hyphen.tex license.
6244 2002-03-26  Larry Kollar  <kollar@alltel.net>
6246         * doc/groff.texinfo: Add documentation of most missing requests.
6248 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6250         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6251         of `+-', `mu', and `di', respectively.
6253         * font/devascii/R.proto, font/devutf8/R.proto,
6254         font/devlatin1/R.proto, font/devhtml/R.proto,
6255         font/devcp1047/R.proto, font/devlpb/*: Add them.
6256         * font/devps/generate/textmap: Ditto.
6257         * font/devps/*: Regenerated.
6258         * font/devlj4/generate/text.map: Add them.
6259         * font/devlj4/*: Regenerated.
6260         * font/devdvi/generate/tc.map: Use them.
6261         * font/devdvi/generate/texsy.map: Add them.
6262         * font/devdvi/*: Regenerated.
6263         * font/devX*/*: Regenerated.
6265         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6266         tmac/tty-char.tmac: Updated.
6268         * NEWS, man/groff_char.man: Updated.
6270 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6272         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6273         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6274         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6275         we use `.fchar' in dvi.tmac.
6276         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6277         * tmac/Xps.tmac: Simplify some char definitions.
6278         Add definition for \[f/].
6279         * man/groff_char.man: Updated for new X.tmac.
6281         * tmac/README: New file.
6283 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6285         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6286         internal .y.o rule took precendence over the .y.cc rule, compiling
6287         the yacc files with gcc instead of g++.
6289 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6291         * tmac/dvi.tmac: Add replacement font for `CB'.
6293         * tmac/doc.tmac: s/request/macro/ in messages.
6294         (doc-generic-macro): Improve error message.
6295         * tmac/groff_mdoc.man: Minor improvements.
6297 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6299         * doc/groff.texinfo: Document possible conflict between `tr' and
6300         `char' requests.
6302 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6304         Improve handling of hyphenation patterns.  It is now possible to
6305         use most of TeX's pattern files unmodified.  To make the process
6306         more flexible, a new request `hpfcode' has been added which
6307         provides a character code mapping for the `hpf' request.  See
6308         comment before hpf_getc() for more details.
6310         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6311         functions.
6312         (read_patterns_file): Additional parameter for exception dictionary.
6313         Extended to recognize \pattern, \hyphenation, and \endinput.
6314         (do_hyphenation_patterns_file): Updated.
6315         * src/roff/troff/env.h (hpf_code_table): New extern.
6317         * src/roff/troff/input.cc (hpf_code_table): New array.
6318         (init_hpf_code_table, hyphenation_patterns_file_code): New
6319         functions.
6320         (hyphenation_code): Handle translation from `trin' correctly.
6321         (main, init_input_requests): Updated.
6322         (charinfo::set_translation): Handle hyphenation code also.
6324         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6325         inline function.
6327         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6328         char' is used for offsets in hyphenation exceptions.
6330         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6332         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6334 2002-03-20  Larry Kollar  <kollar@alltel.net>
6336         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6337         requests.
6339 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6341         * tmac/html.tmac: Fix serious typo.
6343 2002-03-17  Larry Kollar  <kollar@alltel.net>
6345         * doc/groff.texinfo: Add documentation for `writec' request.
6347 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6349         Added request `hpfa' to append hyphenation patterns.
6351         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6352         parameter `append'.
6353         (hyphenation_patterns_file): Renamed to...
6354         (do_hyphenation_patterns_file): This.
6355         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6356         functions.
6357         (init_hyphen_requests): Updated.
6358         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6360 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6362         Added request `writec' in analogy to `tmc'.
6364         * src/roff/troff/input.cc (write_request): Renamed to...
6365         (do_write_request): This.
6366         Added one parameter.
6367         (write_request, write_request_continue): New functions.
6368         (init_input_requests): Updated.
6369         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6371         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6372         5-10000pt.
6373         * NEWS: Document it.
6375 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6377         * man/groff.man: Add writem request.
6379         Add request `trin' (translate input) to make `.asciify' work
6380         correctly.  This is necessary since `charXXX' entity names are no
6381         longer hardcoded in font definition files.
6383         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6384         `translate_input' members.
6385         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6386         charinfo::set_translation_input): New methods.
6387         (charinfo::set_translation): Add third argument.
6388         * src/roff/troff/input.cc (charinfo:set_translation): Set
6389         `asciify_code'.
6390         (do_translate): Add second argument.
6391         (translate_input): New function.
6392         (init_input_requests): Updated.
6393         * src/roff/troff/node.cc (glyph_node::asciify,
6394         composite_node::asciify): Use `get_asciify_code'.
6396         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6398         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6400 2002-03-14  Larry Kollar  <kollar@alltel.net>
6402         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6404 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6406         Add a new request `sizes' similar to the `sizes' command in DESC
6407         files.
6409         * src/roff/troff/env.cc (override_sizes): New function.
6410         (init_env_requests): Use it.
6411         * src/roff/troff/token.h: Export `read_string'.
6412         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6414 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6416         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6418 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6420         * tmac/pspic.tmac: Add support for -Tdvi.
6421         * tmac/dvi.tmac: Include pspic.tmac.
6422         * src/devices/grodvi/grodvi.man: Document it.
6423         * NEWS: Updated.
6425         * font/devlj4/generate/Makefile: Fix URL of metric files.
6427 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6429         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6431 2002-03-09  Larry Kollar  <kollar@alltel.net>
6433         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6435 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6437         * doc/groff.texinfo: Fixes for texinfo 4.1.
6439 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6441         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6442         included.
6443         Handle CYGWIN properly.
6445 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6447         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6448         * tmac/lbp.tmac: Add some font translations.
6450 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6452         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6453         font/devhtml/R.proto: Remove `charXXX'  entries.
6454         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6455         where appropriate.
6457         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6458         * font/devlj4/*: Regenerated all font definition files.
6459         * tmac/lj4.tmac: Load latin1.tmac.
6461         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6462         from 2000-06-17: LJ4 metric files are *not* text files.
6464         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6465         register to test for EBCDIC.
6467 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6469         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6470         files (as grops already does).
6471         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6472         files.
6473         * src/devices/grops/grops.man: Document comment lines in encoding
6474         files.
6476         * tmac/cp1047.tmac: New file.
6477         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6478         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6479         * tmac/Makefile.sub (NORMALFILES): Updated.
6481         * tmac/ec.tmac: Don't load latin1.tmac again.
6483         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6484         font/devps/generate/dingbats.map,
6485         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6486         font/devps/generate/Makefile (symbolmap): Add header comment.
6487         * font/devps/generate/textmap: Ditto.
6488         Remove `charXXX' entries.
6489         * font/devps/symbolmap: Regenerated.
6490         * font/devps/*: Regenerated all font definition files.
6492 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6494         Add color support to grodvi (for drawing colors are currently
6495         translated to gray values).
6497         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6498         (dvi_printer): Add `cur_color' member.
6499         (dvi_printer::set_color): New function.
6500         (draw_dvi_printer): Remove `fill'.
6501         (draw_dvi_printer::fill_next): Pass environment as parameter.
6502         Update code for new color support translated to gray.
6503         (dvi_printer::set_char): Updated.
6504         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6505         changes crossing the page border.
6506         (dvi_printer::draw): Updated.
6507         Remove cases `f' and `F'.
6508         * tmac/dvi.tmac: Add color definitions.
6509         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6511         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6512         used incorrectly.
6514         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6515         versions of autoconf.
6516         * configure: Updated.
6518         * doc/homepage.ms: Use `.blm'.
6519         * tmac/www.tmac (www-depth): New auxiliary variable.
6520         (www-pop-level): Don't issue HTML tag.
6521         (ULS, ULE, LI): Use absolute indentation.
6523         * src/devices/grops/ps.cc (ps_printer::begin_page,
6524         ps_printer::end_page): Switch forth and back to default color while
6525         starting a new page.
6527 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6529         Add EC and TC fonts to devdvi.
6531         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6532         * font/devdvi/generate/cork.map: Renamed to...
6533         * font/devdvi/generate/ec.map: This.
6534         Remove entry for `aq'.
6535         * font/devdvi/generate/tc.map: New file.
6536         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6537         EC and TC fonts.
6538         (FONTS): Updated.
6539         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6540         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6541         * tmac/ec.tmac: New file.
6542         * tmac/Makefile.sub (NORMALFILES): Updated.
6543         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6544         * man/groff_char.man: Check `ECFONTS' register.
6546         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6548 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6550         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6551         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6552         * font/devdvi/*: Updated.
6553         * tmac/dvi.tmac: Formatting.
6555         Add font `HBI' for the dvi output.
6556         Add support for font families `T' and `H'.
6558         * font/devdvi/HBI: New file.
6559         * font/devdvi/B: Renamed to ...
6560         * font/devdvi/TB: This.
6561         * font/devdvi/BI: Renamed to ...
6562         * font/devdvi/TBI: This.
6563         * font/devdvi/I: Renamed to ...
6564         * font/devdvi/TI: This.
6565         * font/devdvi/R: Renamed to ...
6566         * font/devdvi/TR: This.
6567         * font/devdvi/H: Renamed to ...
6568         * font/devdvi/HR: This.
6569         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6570         * font/devdvi/generate/Makefile (HBI): New rule.
6571         (FONTS): Updated.
6572         (R, I, B, BI, H): Renamed to ...
6573         (TR, TI, TB, TBI, HR): This, respectively.
6574         (srcdir): Fixed.
6575         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6576         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6577         Add `styles' and `family' keywords.
6578         * tmac/dvi.tmac: Alias `H' to `HR'.
6579         Add some fspecial requests for italic fonts.
6580         Add TR and TI as special.
6581         Add support for `_' with font CWI.
6583         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6584         operator `:'.  Until now, the expression `0:1' would return 2
6585         instead of 1.
6587 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6589         * man/groff_char.man: Added some missing PS glyph names (from the
6590         Adobe Glyph List).
6591         * font/devps/generate/textmap, font/devps/symbolmap: Add
6592         `arrowupdn'.
6594         * doc/groff.texinfo: Minor additions and fixes.
6595         * man/groff_diff.man: Remove documentation of fp request.  This
6596         is already covered in the original troff manual.
6597         Updated to be consistent with other doc files.
6598         * NEWS: Updated.
6600 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6602         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6603         TTYDEVDIRS.
6604         Define new variable OTHERDEVDIRS (containing `font/devlj4
6605         font/devlbp' if not EBCDIC).
6606         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6607         (OTHERDEVDIRS): New variable.
6608         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6609         * configure: Regenerated.
6611         * NEWS, src/devices/grotty/grotty.man: Updated.
6613 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6615         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6616         get_line_arg): Honour input level.
6618         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6620         * font/*/*: Implement it in all font files.
6621         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6622         * font/devps/symbolmap: Updated.
6623         * font/devlj4/generate/text.map: Updated.
6624         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6625         * font/devdvi/generate/texmi.map: Updated.
6627         * font/devutf8/R.proto: Remove all `charXXX' entries.
6628         * font/devutf8/NOTES: Updated.
6630         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6631         version 4.1.0.
6633         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6635         * NEWS, man/groff_char.man: Updated.
6637 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6639         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6641 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6643         * src/roff/grog/grog.pl: Fix computation of $refer.
6645 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6647         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6648         `snprintf' and `vsnprintf'.
6650         * src/include/htmlindicate.h: Renamed to...
6651         * src/include/htmlhint.h: This.
6652         * src/include/Makefile.sub: Updated.
6653         * src/preproc/eqn/main.cc: Updated.
6655 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6657         * man/roff.man, man/groff_out.man, man/groff.man,
6658         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6659         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6661         * win32-diffs: Updated.
6663 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6665         * doc/Makefile (clean): Add *.eps.
6666         (MEMACROS): Removed.
6667         (TFLAG): New variable.
6668         (TROFF): Use it.
6669         Add -ww.
6670         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6671         (.me.dit): Fixed.
6672         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6674         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6675         `.tl'.
6676         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6677         unstripped.
6678         * src/roff/troff/troff.man: Fix order of parameter description.
6680         * NEWS: Updated.
6682 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6684         Simplify image handling for grohtml.
6685         Fix <p> bug.
6687         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6688         comment out.
6689         (html_text::dump_stack): Don't emit newline while debugging.
6690         (html_text::do_push) [DEBUGGING]: Print more info.
6691         (html_text::check_emit_text): Fix handling of <p>.
6692         * src/devices/grohtml/html.h: Updated.
6693         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6694         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6695         send its data to stderr also.
6696         Update all callers.
6697         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6698         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6699         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6701         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6702         Removed.
6703         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6704         is_inline_image): Removed.
6705         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6706         (graphic_start, graphic_end): Removed.
6707         * src/include/htmlindicate.h: Updated.
6708         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6709         (macroset_template): New global variable.
6710         (makeFileName): Use `macroset_template'.
6711         (write_end_image): Don't take a parameter.
6712         Don't emit newline.
6713         (write_start_image: Don't emit newline.
6714         (char_buffer::write_upto_newline): Updated.
6715         (char_buffer::skip_to_newline): Renamed to ...
6716         (char_buffer::skip_until_newline): This.
6717         Fix code.
6718         (char_buffer::write_file_troff, char_buffer::write_file_html):
6719         Simplified.
6720         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6721         (removeAllPages): Remove `DEBUGGING' conditionals.
6722         (addRegDef, dump_args): New functions.
6723         (char_buffer::do_html, char_buffer::do_image): Handle
6724         `www-image-template' command line variable.
6725         Add more debugging code.
6726         (addps4html): Removed.
6727         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6729         * src/preproc/eqn/main.cc: Include `ctype.h'.
6730         (suppress_html): Removed.
6731         (do_file): Updated.
6732         (inline_equation): Use `html_begin_suppress' and
6733         `html_end_suppress'.
6734         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6735         (troff_output::start_picture, troff_output::finish_picture):
6736         Updated.
6737         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6738         (process_input_file): Updated.
6740         * src/roff/troff/div.cc (page_number): Set page number only if the
6741         `ps4html' register isn't defined.
6742         * src/roff/troff/input.cc (image_no): New external variable.
6743         (do_suppress): Use it.
6744         * src/roff/troff/node.h (suppress_node::image_id): New member.
6745         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6746         (suppress_node::suppress_node): Initialize `image_id' member.
6747         (suppress_node::same): Handle `image_id' also.
6748         (suppress_node::copy): Updated.
6749         (last_image_id): New global variable.
6750         (suppress_node::tprint): Use it.
6752         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6753         HTML-IMAGE-END.
6754         * tmac/pspic.mac (PSPIC): Fix html support.
6755         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6756         * tmac/www.tmac (www-image-template): Set up.
6757         (HTMLINDEX): Renamed to...
6758         (HX): This.
6759         (BODYCOLOR): Renamed to...
6760         (BCL): This.
6761         (BACKGROUND): Renamed to...
6762         (BGIMG): This.
6763         (URL): Change order of parameters for consistency.
6764         (MAILTO): Renamed to...
6765         (MTO): This.
6766         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6767         (IMG, PIMG, MPIMG): This.
6768         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6769         (HnS, HnE): This.
6770         (LINKS): Renamed to...
6771         (LK): This.
6772         (LINE): Renamed to...
6773         (HR): This.
6774         (NO-AUTO-RULE): Renamed to...
6775         (NHR): This.
6776         (HTML-TL): Renamed to...
6777         (HTL): This.
6778         (UL-BEGIN, UL-END): Renamed to...
6779         (ULS, ULE): This.
6780         (DROPCAP): Renamed to...
6781         (DC): This.
6782         (TS, TE, EQ, EN): Provide default definitions.
6783         (www-make-unique-name): Updated.
6784         (HTML-IMAGE-INLINE): Fix typo.
6785         * tmac/groff_www.man: Updated.
6787         * doc/Makefile (homepage.html): Add option -r to grohtml.
6788         Use shortened image name.
6789         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6790         * doc/homepage.ms: Updated and extended.
6792 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6794         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6796         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6797         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6798         (tty_printer::put_color): Use it.
6799         (ttr_printer::end_page): Simplify.
6801 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6803         * tmac/groff_tmac.man: Moved to...
6804         * man/groff_tmac.man: This place.
6805         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6807 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6809         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6810         $(COMPILE.c) to not include groff's assert.h.
6812         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6813         variable.
6814         * NEWS, src/drivers/grotty/grotty.man: Document it.
6816 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6818         * src/libs/snprintf/snprintf.c: Updated to latest version
6819         (2002-02-11).
6821         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6822         test whether there is `.]' also.
6823         Don't check for spaces after `.['.
6824         * src/roff/grog/grog.sh: Do the same.
6826 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6828         Illegal -> Invalid.
6830         * src/libs/libgroff/illegal.cc: Renamed to ...
6831         * src/libs/libgroff/invalid.cc: This.
6832         (illegal_char_table): Renamed to ...
6833         (invalid_char_table): This.
6834         * src/libs/libgroff/Makefile.sub: Updated.
6835         * win32-diffs: Updated.
6837         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6838         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6839         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6840         font::load), src/preproc/eqn/main.cc (read_line, main),
6841         src/preproc/eqn/lex.cc (file_input::read_line),
6842         src/preproc/pic/lex.cc (file_input::read_line,
6843         simple_file_input::get, simple_file_input::peek),
6844         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6845         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6846         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6847         do_bib), src/preproc/tbl/main.cc (table_input::get),
6848         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6849         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6850         do_zero_width, read_request, encode_char, ps_get_line,
6851         transparent_file, get_char_for_escape_name, transparent_translate,
6852         asciify, input_char_description, read_string, set_string),
6853         src/roff/troff/env.cc (environment::add_html_tag),
6854         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6856         * src/include/lib.h: Updated.
6858         * src/preproc/eqn/eqn.cc: Removed.
6860         * NEWS: Updated.
6862         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6864 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6866         * doc/gnu.xpm: New image.
6867         * doc/Makefile (DOCS): Add homepage.ps.
6868         Add rules for converting xpm->png and xpm->eps.
6869         Use `gnu.{xpm,eps}' as image names.
6870         * doc/homepage.ms: Updated.
6872 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6874         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6875         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6876         Remove calls to `B1' and `B2'
6877         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6878         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6879         auxiliary variables for MARGIN-PNG-IMAGE.
6880         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6881         auxiliary macros for MARGIN-PNG-IMAGE.
6882         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6883         the margin.
6884         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6885         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6886         (DROPCAP): New macro to produce dropcap characters.
6887         (www-do-image): Renamed back to...
6888         (HTML-DO-IMAGE): This.
6889         Updated all callers.
6891         * doc/Makefile (gnubw.eps): Updated.
6892         * doc/homepage.ms: Updated.
6894 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6896         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6897         Added `linethick' to table in section `Style Variables'.
6899 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6901         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6903 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6905         Adding options -C (compatibility mode) and -c (grotty's old output
6906         scheme) to nroff.
6908         * src/roff/nroff/nroff.sh: Implement it.
6909         Remove `-Wall'.
6910         * NEWS, src/roff/nroff/nroff.man: Updated.
6912         * PROBLEMS: Document bison 1.32 bug.
6914         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6916         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6917         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6918         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6919         * src/roff/troff/env.h: Add prototype for `title'.
6921         Adding EBCDIC support to grotty.
6923         * src/devices/grotty/tty.cc (CSI): New macro.
6924         (SGR_*, tty_printer::put_color): Use it.
6926 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6928         Implementing color support in grotty.  The new switch -c activates
6929         the old drawing scheme, disabling color at the same time.  The new
6930         switch `-i' selects italic instead of underlining (SGR only).
6932         * src/devices/grotty/tty.cc (putstring): New define instead of
6933         `fputs'.  Updated all callers.
6934         (old_drawing_scheme): New global variable.
6935         (COLOR_CHANGE): New enum value.
6936         (SGR_*): New defines containing color handling escape sequences.
6937         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6938         (glyph): New members `back_color_idx' and `fore_color_idx'.
6939         (glyph::order): Add COLOR_CHANGE.
6940         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6941         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6942         New methods `make_underline', `make_bold', `color_to_idx',
6943         `change_color', `put_color'.
6944         (cu_flag): Moved into `tty_printer' class.
6945         (tty_printer::tty_printer): Initialize colors.
6946         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6947         tty_printer::draw, tty_printer::end_page): Handle colors also.
6948         (main): Add options `-c' and `-i'.
6949         (usage): Updated.
6950         * NEWS, src/devices/grotty/grotty.man: Updated.
6952         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6953         * src/libs/libgroff/errarg.c: Implement it.
6955         * src/include/printer.h (printer): Add `change_color' method
6956         (currently used by grotty only).
6957         * src/libs/libdriver/printer.cc: Implement it.
6958         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6959         call to `pr->change_color'.
6961         * src/roff/troff/node.cc (troff_output_file::fill_color,
6962         troff_output_file::glyph_color): Call `do_motion'.
6964         * tmac/tty.tmac: Add color definitions.
6966         * src/roff/groff/groff.man: Minor fixes.
6968 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6970         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6971         it.  This is a preparation for future changes.
6973 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6975         * src/roff/troff/input.cc (process_input_stack): Fix the case
6976         where leading spaces are followed by \f or \s; previously, an
6977         incorrect space width has been used.
6979         * doc/roff.man (quoted_char): Fix argument.
6980         (comment): Define string.
6982 2002-02-04  Larry Kollar  <kollar@alltel.net>
6984         * doc/groff.texinfo: More fixes.
6986 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6988         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6989         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6990         `restore_compatibility' before `output_string' -- the LINE_STRING
6991         register now already contains proper switches from and to
6992         compatibility mode.
6994         * man/groff_char.man: Add Euro symbol.
6995         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6996         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6997         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6998         Other minor fixes.
7000         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7001         texinfo->pdf.
7002         (.texinfo.html): Add support for texinfo->html.
7004 2002-02-03  Werner LEMBERG  <wl@gnu.org>
7006         Added three new requests `ds1', `as1', and `ami'.  The former two
7007         are equivalent to `ds' and `as' with the difference that
7008         compatibility mode is saved on entry, switched off during string
7009         expansion, and restored on exit.  The latter is the pendant to `dei'
7010         for `am'.
7012         (do_define_string): Use `define_mode' and `calling mode'.
7013         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7014         end of string, respectively.
7015         (define_string, append_string): Use `calling_mode'.
7016         (define_nocomp_string, append_nocomp_string,
7017         define_string_indirect): New functions.
7018         (init_input_requests): Updated.
7019         * NEWS, man/groff_diff.man, man/groff.man: Document it.
7021         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7022         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
7023         mm macro package accesses this string register directly.
7024         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7026         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
7027         compatibility mode.
7029 2002-02-02  Larry Kollar  <kollar@alltel.net>
7031         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7033 2002-01-31  Werner LEMBERG  <wl@gnu.org>
7035         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7037 2002-01-31  Bernd Warken  <bwarken@mayn.de>
7039         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7040         * man/groff_out.man: Revised and updated.
7042 2002-01-30  Bernd Warken  <bwarken@mayn.de>
7044         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7045         out the unused `{' and `}' commands.  Undefined by default.
7046         (IntArray): Make `data' private.
7047         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7048         new methods instead.
7049         (skip_line_D, skip_to_end_of_line): New functions.
7050         (get_D_fixed_args): Use `skip_line_D'.
7051         Changed to handle dummy odd arguments by ...
7052         (get_D_fixed_args_odd_dummy): This new function.
7053         (get_D_variable_args): Split some code into ...
7054         (get_possibly_integer_args): This new function.
7055         (send_draw): Use more `const'.
7056         (delete_current_env): New function.
7057         (position_to_end_of_args): Use `size_t'.
7058         Updated.
7059         (send_draw): Updated.
7060         (parse_D_command): Handle `c', `C', and `t' better.
7061         Updated.
7062         (do_file): Updated.
7064 2002-01-29  Werner LEMBERG  <wl@gnu.org>
7066         * NEWS: Revised.
7067         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7068         @Def...ListEnd which replaces @Def...x.  This is necessary to get
7069         proper HTML output -- see the comment in the file for more
7070         information.
7071         Updated all calls.
7073 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
7075         Fixes to make color changes of 2002-01-21 work with grohtml.
7077         * src/devices/grohtml/post-html.cc (style): Updated.
7078         (html_printer): Remove unused methods.
7079         (html_printer::do_font, html_printer::draw, html_printer::set_char,
7080         html_printer::special): Updated.
7081         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7082         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7083         Added some debugging code.
7084         (html_text::start_tag): Updated.
7085         (html_text::do_push): New method.
7086         (html_text::push_para): Call it.
7087         Add method for handling color.
7088         (html_text::do_color): Updated.
7089         (html_text::shutdown): Handle color.
7090         * src/devices/grohtml/html-text.h (tag_definition): New member
7091         `col'.
7092         Updated.
7094 2002-01-28  Werner LEMBERG  <wl@gnu.org>
7096         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7098 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7100         Add two switches -a and -g to control the antialiasing bits for
7101         text and graphics, respectively.
7103         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7104         `-g'.
7105         * src/devices/grohtml/grohtml.man: Document them.
7106         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7107         New macros.
7108         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7109         (setupAntiAlias): New function.
7110         (createAllPages): Updated.
7111         (scanArguments): Handle `-a' and `-g'.
7112         (main): Call `setupAntiAlias'.
7113         * NEWS: Updated.
7115 2002-01-27  Werner LEMBERG  <wl@gnu.org>
7117         * doc/groff.texinfo (Def*): Call index function after deffn.
7119         * tmac/html.tmac: Call `nroff' request.
7121 2002-01-26  Larry Kollar  <kollar@alltel.net>
7123         * tmac/groff_ms.man: Add some omissions.
7125 2002-01-25  Larry Kollar  <kollar@alltel.net>
7127         * tmac/groff_ms.man: Typographical improvements.
7129 2002-01-25  Werner LEMBERG  <wl@gnu.org>
7131         * doc/groff.texinfo: Updated version and copyright.
7132         * src/devices/grops/grops.man: Updated.
7134         * tmac/groff_tmac.man: Fix `ig' macro.
7136         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7137         nroff mode.
7138         Use `.ne' unconditionally everywhere.
7139         (TS): Only insert some vertical space.  Doing a page break is no
7140         longer necessary due to the redefinition of the `ne' request.
7142         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7143         warning for unknown subcommands but parse and pass them to the
7144         device driver.
7146 2002-01-24  Werner LEMBERG  <wl@gnu.org>
7148         * tmac/groff_www.man, NEWS: Fix typos.
7150 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7152         Complete revision of color support:
7154           Adapt programs to the new libdriver/input.cc.
7156           Color spaces are no longer converted to RGB but transferred as-is
7157           in the troff intermediate output format.
7159           Handle default color gracefully.  troff now supports a `default'
7160           color (which can't be changed).
7162           grops will now use the proper color space functions if available.
7164           Update pic.
7166         Note that currently grohtml doesn't handle colors properly.  This
7167         has to be fixed.
7169         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7170         (ui_to_a): New function.
7171         * src/include/lib.h: Updated.
7173         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7174         (color): Simplified; removed all `double' members and methods.
7175         A new array `components' now holds the color parameters.
7176         (color::is_default, color::get_components): New methods.
7177         (color::operator==, color:operator!=): New.
7178         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7179         to make access to the `components' array more comprehensible.
7180         * src/libs/libgroff/color.cc: Implement new color support.
7181         (atoh): Small fixes.
7182         (color::read_encoding): Simplified for new troff intermediate color
7183         output format.
7184         (default_color): New global variable.
7186         * src/roff/troff/input.cc (default_symbol): New global variable.
7187         (lookup_color): Use it.
7188         (default_black): Removed.
7189         (do_glyph_color, do_fill_color): Simplified.
7190         (define_color): Handle default color.
7191         Improve warnings.
7192         (do_if_request): Handle default color.
7193         * src/roff/troff/env.cc (environment::environment): Initialize
7194         colors with `default_color'.
7195         * src/roff/troff/node.cc (troff_output_file::put): Add method
7196         for `unsigned int'.
7197         (troff_output_file::hex): Removed.
7198         (troff_output_file::fill_color, troff_output_file::glyph_color):
7199         Updated to include/color.h and libdriver/input.cc.
7201         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7202         fill color properly (identically to the outline color).  \D'f...'
7203         doesn't work any more.
7204         All function calls to it updated.
7206         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7207         Updated.
7208         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7209         Updated.
7211         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7212         (ps_printer::sbuf_color): Make a real member instead of pointer.
7213         (ps_printer::fill_color, ps_printer::output_color): Removed.
7214         (ps_printer::ps_printer): Updated.
7215         (ps_printer::set_char): Ditto.
7216         (ps_printer::set_color): Use various color schemes.
7217         Use `put_color' method.
7218         (ps_printer::flush_sbuf): Don't set color.
7219         (ps_printer::fill_path): Take `environment' as parameter.
7220         Simplify color handling.
7221         (ps_printer::set_line_thickness): Renamed to ...
7222         (ps_printer::set_line_thickness_and_color): This (and updated).
7223         (ps_printer::set_color): Change second parameter from `complete'
7224         to `fill' which better describes what it does.
7225         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7226         and text in the right order.
7227         Updated.
7228         Remove branches for `f' and `F'; this is handled by
7229         libdriver/input.cc.
7230         * src/devices/grops/ps.h: Updated.
7231         * font/devps/prologue (FL): Redefined.
7232         ({F,C}r,k,g: New color functions (with and without filling).
7234         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7235         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7236         doc/groff.texinfo, NEWS: Updated.
7238 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7240         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7241         in this file for what has been changed.
7243 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7245         * test-groff: Fix GROFF_FONT_PATH.
7246         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7247         is read before .TH or .Dd is parsed.
7249 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7251         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7252         quadrant boundaries.
7254 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7256         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7257         applied last patch.
7259 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7261         * tmac/doc.common: Initialize %I register for the %I macro to
7262         avoid (harmless) warning.
7263         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7264         when in the SYNOPSIS section.
7266 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7268         * src/preproc/pic/lex.cc (get_token): Fix typo.
7270 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7272         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7274 2002-01-17  Larry Kollar  <kollar@alltel.net>
7276         * tmac/groff_ms.man: Completely rewritten.
7278 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7280         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7282 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7284         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7285         fill colors.
7286         (ps_printer::draw): Ditto.
7288 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7290         * tmac/groff_mdoc.man: Minor fixes.
7292 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7294         * man/groff_out.man: Some fixes.
7296 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7298         * doc/pic.ms: Fix typos.
7300 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7302         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7304 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7306         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7307         symbols.
7308         * NEWS: Updated.
7310 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7312         * man/groff_out.man: Revised.
7313         * man/roff.man: Minor fixes.
7314         * src/roff/troff/troff.man: Some reordering.
7316 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7318         * tmac/an-old.tmac: Add dummy macros for equation support.
7320 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7322         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7324         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7325         man pages.
7326         * tmac/groff_man.man: Small improvements.
7328 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7330         * man/groff_diff.man: Revised.
7332 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7334         * tmac/www.tmac: Remove extraneous backslash.
7336 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7338         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7340 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7342         Integrated groffer, contributed by Bernd Warken.
7344         * contrib/groffer/*: New.       
7345         * Makefile.in, NEWS: Updated.
7347 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7349         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7350         registers defined in macro packages.
7351         Revising the ms part.
7353 2002-01-04  Larry Kollar  <kollar@alltel.net>
7355         * doc/groff.texinfo: Add documentation for ms macros.
7357 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7359         First step in adding PS support for the Euro symbol.  `eu' is the
7360         official Euro logo, `Eu' is a font-specific glyph variant.
7362         * font/devps/text.enc: Add `Euro' at position 9.
7363         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7364         * font/devps/symbolmap: Regenerated.
7366         * NEWS: Updated.
7368 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7370         * man/roff.man: Revised.
7372 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7374         * src/roff/groff/groff.man: Completely rewritten.
7376 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7378         * doc/Makefile: Updated.
7380 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7382         * tmac/www.tmac: Make all names of internal macros/registers/strings
7383         lowercase, and prepend `www-'.
7384         Other minor changes.
7385         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7387 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7389         Implement option `-b' in grohtml to set the HTML background colour.
7391         * src/devices/grohtml/post-html.cc (default_background): New global
7392         variable.
7393         (html_printer::html_printer): Initialize `background' to
7394         `default_background'.
7395         (main): Implement option `-b'.
7396         (usage): Updated.
7397         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7398         of `-b' option.
7399         * src/devices/grohtml/grohtml.man: Updated.
7400         * doc/Makefile (.ms.html): Use `-b'.
7401         * tmac/html.tmac: Don't set background color.
7403         Add new grohtml tag `.html-tl'.
7405         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7406         member variable.
7407         (title_desc::title_desc): Updated.
7408         (html_printer::troff_tag): Handle `.html-tl'.
7409         (html_printer::write_title): Use `with_h1'.
7410         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7411         (HTML-TL): New macro.
7413         Add support for unordered lists in HTML.
7415         * tmac/www.tmac (www-level): New auxiliary register.
7416         (www-level1, www-level2, www-level3): New auxiliary strings.
7417         (www-push-level, www-pop-level): New auxiliary macros
7418         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7420         Miscellaneous.
7422         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7423         (DEFAULT_VERTICAL_OFFSET): Removed.
7424         (IMAGE_BOARDER_PIXELS): Set to 0.
7425         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7426         (vertical_offset): Initialize with 0.
7427         (gsPaper): New global variable.
7428         (get_resolution): Scan for and return unsigned int.
7429         (get_papersize): New function to get paper length from devps/DESC.
7430         (determine_vertical_offset): New function.
7431         (createAllPages): Produce gray-level images and use proper page
7432         length.
7433         (createImage): Use `-quiet' option of pnmcrop.
7434         (addZ): Fix passing of `-Z'.
7435         (scanArguments): Fix handling of `-o'.
7436         (main): Call `determine_vertical_offset'.
7437         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7438         code for `l'.
7440         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7441         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7442         glyph descenders properly.
7444         * doc/homepage.ms: Include `gnubw.eps'.
7445         * doc/Makefile (gnubw.eps): New rule.
7446         (homepage.html): Depend on `gnubw.eps'.
7448 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7450         * src/roff/troff/input.cc (default_black): Fix return value.
7452 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7454         * tmac/doc-common (Dt): Change output of architecture strings.
7455         Do some syntax cleanup.
7456         * tmac/groff_mdoc.man: Updated.
7458 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7460         Adding an `itc' request (input line trap accepting \c).
7462         * src/roff/troff/env.h (environment): New member
7463         `continued_input_trap'.
7464         Make `do_input_trap' a friend function instead of `input_trap'.
7465         * src/roff/troff/env.cc (environment::environment,
7466         environment::copy): Updated.
7467         (environment::newline): Implement it.
7468         (do_input_trap): New function.
7469         (input_trap): Call `do_input_trap'.
7470         (input_trap_continued): New function.
7471         (init_env_requests): Updated.
7472         * src/roff/troff/TODO: Updated.
7474         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7475         `.it'.
7477         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7479 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7481         * tmac/doc-common, tmac/doc-syms: Small updates.
7483 2001-12-22  Colin Watson  <cjwatson@debian.org>
7485         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7487 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7489         * MANIFEST: New file.
7491 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7493         * src/preproc/grn/grn.man: Updated.
7495 2001-12-22  Solar Designer  <solar@openwall.com>
7497         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7498         (DBRead): Use it.
7500 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7502         Implement a fallback character request `.fchar'.
7504         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7505         (is_fallback): New inline function.
7506         * src/roff/troff/input.cc (do_define_character): New function.
7507         (define_character): Call `do_define_character'.
7508         (define_fallback_character): New function.
7509         (init_input_requests): Add `fchar'.
7510         (charinfo::charinfo): Updated.
7511         (charinfo::set_macro): New argument to set `fallback' flag.
7512         * src/roff/troff/node.cc (make_glyph_node, make_node,
7513         node::add_char): Check `fallback' flag.
7514         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7516 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7518         * groff.texinfo: Document exact search algorithm for glyphs.
7520 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7522         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7523         the left side of $(MANPAGES) rule to make it always non-empty.
7525 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7527         * src/roff/troff/input.cc (default_black): Define default color
7528         `black' if not yet defined.
7530 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7532         Implement new string-valued register `.fn' to return the current
7533         real (internal) font name.
7535         * env.cc (environment::get_font_name_string): New function.
7536         (init_env_requests): Add `.fn' register.
7537         * env.h (environment): Updated.
7538         * node.cc (font_info): Make `get_font_name' a friend.
7539         (get_font_name): New function.
7540         * node.h: Updated.
7542         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7544 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7546         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7548 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7550         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7552 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7554         * man/groff_diff.man: Adding documentation for \O.
7556 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7558         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7559         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7561 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7563         * man/roff.man: Revised.
7564         * src/roff/groff/groff.man: Replace man page references with a
7565         pointer to roff.man.
7567 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7569         * man/roff.man: Completely rewritten.
7571 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7573         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7575 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7577         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7578         longer used.
7579         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7580         order of initializers.
7581         * NEWS: Updated.
7583 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7585         * doc/groff.texinfo: Fix documentation of \O.
7587         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7588         html_text::do_table, html_text::do_emittext, html_text::do_para):
7589         Use `const' for first argument.
7590         (html_text::do_table): Use cast.
7591         * src/devices/grohtml/html-text.h: Updated.
7592         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7593         method for `const string &s'.
7594         * src/devices/grohtml/html.h: Updated.
7595         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7596         (ANCHOR_TEMPLATE): Modified.
7597         (manufacture_headings): New global variable to handle `-h' option.
7598         (is_subsection): Removed.
7599         (char_buffer::add_string): Add `const' to first argument.
7600         Protect against invalid string argument.
7601         Add method for `const string &s'.
7602         (text_glob): Completely redesigned.
7603         (page): Use `const' for strings and remove string length variable.
7604         (page::add_html): Removed.
7605         (page::add_end_encode): New member function.
7606         (to_unicode): Moved upwards.
7607         (title_desc, header_desc): Updated.
7608         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7609         definition.
7610         (html_printer::is_bold, html_printer::make_bold): New member
7611         functions.
7612         (html_printer::end_of_line): Updated.
7613         (generate_img_src, html_printer::do_auto_image,
7614         html_printer::do_title, html_printer::write_header,
7615         html_printer::determine_header_level, html_printer::do_heading,
7616         html_printer::do_linelength, html_printer::do_pageoffset,
7617         html_printer::do_indentation, html_printer::do_tempindent,
7618         html_printer::do_indentedparagraph, html_printer::do_break,
7619         html_printer::flush_sbuf, get_html_translation,
7620         html_printer::begin_page, html_printer::special): Rewritten to get
7621         rid of static string length limit.
7622         (html_printer::troff_tag): Added `.no-auto-rule'.
7623         (html_printer::flush_globs): Small fix.
7624         (html_printer::determine_space): Don't compute `space_width'.
7625         (html_printer::translate_to_html): Renamed to ...
7626         (html_printer::emit_html): This (with updates).
7627         (html_printer::write_header): Implement `-h' option.
7628         (html_printer::draw): Remove commented-out code.  Handle `F'
7629         command.
7630         (html_printer::add_char_to_sbuf): Removed.
7631         (html_printer::add_to_sbuf): Rewritten.
7632         (html_printer::sbuf_continuation): Fixed.
7633         (html_printer::seen_backwards_escape, reverse,
7634         html_printer::remove_last_char_from_sbuf): Removed.
7635         (char_translate_to_html, str_translate_to_html): Removed.
7636         (html_printer::overstrike): New function member.
7637         (html_printer::set_char): Use it.
7638         (html_printer::do_body): New function member.
7639         (html_printer::~html_printer): Use it.
7640         (main): Handle `-h' option.
7641         (usage): Updated.
7642         * src/devices/grohtml/grohtml.man: Document -h switch.
7644         * src/preproc/html/pre-html.cc: Include searchpath.h
7645         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7646         (get_resolution): New function.
7647         (checkImageDir): Use `0777' permissions in mkdir()
7648         (write_start_image): Rewritten to use `\O[5...]'.
7649         (createImage, generateImages): Updated.
7650         (main): Handle `F' and `h' options.
7651         Use `get_resolution'.
7653         * src/roff/troff/input.cc (begin, end, image): Removed.
7654         (do_suppress): Take parameter.
7655         Handle modified syntax of `\O'.
7656         (token::next): Updated.
7657         (init_markup_requests): Removed.
7658         (main): Updated.
7660         * src/roff/troff/div.h: Add declaration for begin_page().
7662         * tmac/color-html.tmac: Removed.  Contents moved to...
7663         * tmac/html.tmac: Here.  Set background color.
7664         * tmac/color.tmac: Removed.  Contents moved to...
7665         * tmac/ps.tmac: Here.
7666         * tmac/www.tmac: Remove the title command when generating images
7667         for html.
7668         (NO_AUTO_RULE): New macro.
7669         (HTML_DO_IMAGE): Use revised `\O' escapes.
7670         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7672 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7674         * tmac/groff_mdoc.man: Fix typo.
7676 2001-12-01  Colin Watson  <cjwatson@debian.org>
7678         * man/roff.man: Fix typo.
7680 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7682         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7683         stdlib.h.
7685         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7686         more than one argument to \D'f ...'.
7688         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7690 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7692         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7693         loaded only once.
7695         * tmac/groff_man.man: Minor cosmetic fix.
7697 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7699         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7700         tmac/groff_www.man: s/mwww/www/.
7702 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7704         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7705         * configure: Regenerated.
7706         * win32-diffs: Updated.
7708         * tmac/groff_mwww.tmac: Renamed to ...
7709         * tmac/groff_www.tmac: This.
7710         * tmac/mwww.tmac: Removed.
7711         * NEWS, tmac/Makefile.sub: Updated.
7713 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7715         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7716         Fix explanation of `\D' and `rt'.
7718 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7720         * tmac/an-old.tmac (an-header): Set header length equal to page
7721         width.
7722         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7723         minor fixes.
7724         * NEWS: Small fix.
7726 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7728         * NEWS, man/Makefile.sub: Updated.
7730 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7732         * man/ditroff.man: New file.
7734 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7736         * man/groff_differences.man: Renamed to ...
7737         * man/groff_diff.man: This.  Updated.
7738         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7740         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7741         * src/preproc/html/pushback.cc: This.  Updated.
7742         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7743         * src/preproc/html/pushback.h: This.
7744         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7745         Updated.
7747         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7748         * src/libs/libgroff/htmlhint.cc: This.
7749         * src/libs/libgroff/Makefile.sub: Updated.
7751         * tmac/an-old.tmac (an-end): Fix page length.
7753 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7755         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7756         * man/Makefile.sub: Include groff_differences.man.
7757         * VERSION: Set to 1.18.
7758         * REVISION: Set to 0.
7760 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7762         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7763         the second dot (or ending macro name) to end a macro.
7764         * doc/groff.texinfo: Doc fix.
7766 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7768         * tmac/doc-common (doc-header): Handle very long document titles
7769         better.
7771 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7773         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7775 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7777         * src/roff/troff/troff.man: Revised and split into troff.man and...
7778         * man/groff_differences.man: New file.
7779         * NEWS: Updated.
7781 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7783         * tmac/an-old.tmac (TS, TE): New macros for table support.
7785 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7787         * src/include/lib.h: Provide a fix for emx to not include
7788         groff-getopt.h.
7790 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7792         * src/roff/troff/input.cc (substring_macro): Fix computation of
7793         boundary values.
7795 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7797         Undo change from 2001-08-28.
7799         * src/roff/troff/input.cc (have_input): New global variable.
7800         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7801         in compatibility mode.
7802         (process_input_stack): Use it.
7804 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7806         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7807         being handled as end-of-sentence characters,
7809 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7811         * src/roff/troff/input.cc (file_iterator): New members
7812         `suppress_newline_flag' and `seen_escape'.
7813         (file_iterator::next_file): Updated.
7814         (file_iterator::fill): Use it.
7815         (string_iterator): New member `suppress_newline_flag'.
7816         (string_iterator::fill): Set it.
7817         (get_color_element): Use MAX_COLOR_VAL.
7818         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7819         (no_fill): Don't set `env->ignore_next_eol'.
7820         (environment::newline): Handle `eol' tag properly.
7821         Emit `eol.ce'.
7822         (environment::add_html_tag): Set `env->ignore_next_eol'.
7823         Don't handle `.ce'.
7824         * src/roff/troff/env.h (environment): Updated.
7826         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7827         member function.
7828         (html_printer::outstanding_eol): New member function.
7829         (html_printer::do_title): Use new functions.
7830         (html_printer::troff_tag): Test `id_eol_ce'.
7832 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7834         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7835         files work with -C also.
7837 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7839         * doc/pic.ms: Minor fix.
7840         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7841         as a valid command line switch.
7842         * src/devices/grohtml/post-html.cc (main): Ditto.
7843         (usage): Updated.
7844         * src/devices/grohtml/grohtml.man: Updated.
7845         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7847 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7849         Implementing color support in troff, pic, grops, and grohtml.  These
7850         changes are based on a major patch provided by Gaius Mulley
7851         <gaius@glam.ac.uk>.
7853         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7854         definitions with both hex values and fractions.
7856         New escapes: \m and \M for drawing and background color,
7857         respectively.  This corresponds to the troff output commands `m'
7858         and `DF'.
7860         groff and troff accept command line switch `-c' to disable color
7861         output (which is automatically disabled in compatibility mode).
7863         New scaling indicator `f' for fractions (1f = 65536u).
7865         New conditional operator `m' to test for defined colors with `if'
7866         and `ie'.
7868         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7869         (or `outlined'), and `shaded' added to pic.
7871         * src/include/color.h: New file.
7872         * src/include/driver.h: Include it.
7873         * src/include/printer.h: Include color.h.
7874         (environment): New members `col' and `fill'.
7875         (printer): Remove `adjust_arc_center' member function.
7876         * src/include/Makefile.sub: Updated.
7878         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7879         `env.fill'.
7880         Handle `m' and `DF' troff commands.
7881         * src/libs/libgroff/color.cc: New file.
7882         * src/libs/libgroff/Makefile.sub: Updated.
7884         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7885         (stop): Removed.
7886         (createImage): Fix computation of `y2'.
7887         Use `pnmcrop' also.
7888         (buffer::write_file_html): Remove calls to `stop'.
7890         * src/preproc/pic/common.h (common_output): New abstract function
7891         members `set_color', `reset_color', `get_last_filled', and
7892         `get_outline_color'.
7893         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7894         (object_spec): Add members `shaded' and `outlined'.
7895         * src/preproc/pic/output.h (output): `command' is now abstract.
7896         New function members `set_color', `reset_color', `get_last_filled',
7897         and `get_outline_color'.
7898         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7899         `outline[d]', and `shaded'.
7900         * src/preproc/pic/object.cc (output::command): Removed.
7901         (output::set_location): Moved to output.h.
7902         (graphic_object): Add protected members `outline_color' and
7903         `color_fill'.
7904         Add member functions `set_outline_color', `get_outline_color', and
7905         `set_fill_color'.
7906         (closed_object): Add member function `set_fill_color'.
7907         Add member `color_fill'.
7908         (graphic_object::print_text): Use `out->set_color' and
7909         `out->reset_color'.
7910         (box_object::print, ellipse_object::print, circle_object::print,
7911         line_object::print, spline_object::print, arc_object::print): Ditto.
7912         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7913         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7914         `SHADED', making them `%left'.
7915         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7916         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7917         `set_color', `reset_color', `get_last_filled', and
7918         `get_outline_color'.
7919         * src/preproc/pic/troff.cc (simple_output): New abstract function
7920         members `set_color', `reset_color', and `get_last_filled'.
7921         (simple_output::polygon, simple_output::circle,
7922         simple_output::ellipse): Use `get_last_filled'.
7923         (troff_output): New members `last_filled' and `last_outlined'.
7924         New function members `set_color', `reset_color', `get_last_filled',
7925         and `get_outline_color'.
7926         (troff_output::finish_picture): Use `reset_color'.
7927         (troff_output::set_fill): Test `last_filled'.
7928         * src/preproc/pic/pic.man: Updated.
7930         * src/roff/groff/groff.cc (main): Implement `-c' option.
7931         (synopsis, help): Updated.
7932         src/roff/groff/groff.man: Updated.
7934         * src/roff/troff/troff.h: Include color.h.
7935         (warning_type): Add WARN_COLOR.
7936         * src/roff/troff/env.h (environment): New members
7937         `{cur,prev}_{glyph,fill}_color'.
7938         New member functions `get_{prev_,}{glyph,fill}_color'.
7939         * src/roff/troff/env.cc: Initialize and implement them.
7940         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7941         Replace `NULL' with `0' everywhere for consistency.
7942         (lookup_color, default_black, do_glyph_color, do_fill_color,
7943         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7944         define_color): New functions.
7945         (token::next): Implement \M and \m escapes.
7946         (do_if_request): Implement `m' operator.
7947         (usage): Updated.
7948         (main): Implement `-c' option.
7949         (init_markup_requests): Add `defcolor' request.
7950         (warning_table): Add `color' warning.
7951         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7952         classes.
7953         * src/roff/troff/node.cc (troff_output_file): New members
7954         `current_{page,glyph}color'.  New member functions `put_hex',
7955         `glyph_color', and `fill_color'.
7956         (glyph_color_node::*, fill_color_node::*): Implement it.
7957         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7958         (parse_term): Add support for `f'.
7959         * src/roff/troff/troff.man: Updated.
7961         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7962         entry for `F'.
7963         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7964         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7966         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7967         (tag_definition): Use `void *' for arg1.
7968         (html_text): New member functions `do_color' and `done_color'.
7969         Use `void *' for second parameter of `push_para' member function.
7970         New `push_para' member function with a single parameter.
7971         Use `char *' for parameter of `issue_table_begin' member funtion.
7972         New `issue_color_begin' member function.
7973         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7974         COLOR_TAG.
7975         (html_text::issue_color_begin): New function.
7976         (html_text::issue_table_begin): Use `char *' for parameter.
7977         (html_text::start_tag, html_text::shutdown,
7978         html_text::check_emit_text): Updated.
7979         (html_text::push_para): Use `void *' for second parameter.
7980         Add same function with only one parameter.
7981         (html_text::do_*): Updated.
7982         (html_text::do_color, html_text::done_color): New functions.
7983         * src/devices/grohtml/post-html.cc (style): New member `col'.
7984         Mew member `style' with 6 parameters.
7985         (style::style, style::operator==): Updated.
7986         (html_printer::do_font): Use it.
7987         (html_printer::draw): Add dummy entry for `F'.
7988         (html_printer::set_char): Updated.
7989         * src/devices/grohtml/grohtml.man: Updated.
7991         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7992         trailing zeroes removed.
7993         (ps_printer): New members `sbuf_color', `fill_color', and
7994         `output_color'.
7995         Removed member `fill'.
7996         New member function `set_color'.
7997         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7998         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7999         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8001         * tmac/color-html.tmac, tmac/color.tmac: New files.
8002         * tmac/troffrc: Include them.
8003         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8004         * tmac/Makefile.sub: Updated.
8006         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8007         man/groff.man: Updated.
8008         * font/devps/prologue.ps: Define FC and CO functions.
8010 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
8012         Fix incorrect cropping of images and incorrect handling of special
8013         characters.  Fix handling of file names in \O.
8015         * src/include/geometry.h: New file.
8016         * src/libs/libgroff/geometry.cc: New file.
8017         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8018         to `geometry.cc'.
8019         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8020         initial spaces.
8021         (do_suppress): Updated.
8022         * src/roff/troff/node.cc: Include geometry.h.
8023         (troff_output_file::flush_tbuf): Fixed parameters to
8024         `check_output_limits'.
8025         (troff_output_file::check_charinfo): Ditto.
8026         (troff_output_file::determine_line_limits): Add support for `Da'
8027         and `Dl' commands.
8029         * src/devices/grohtml/post-html.cc (str_translate_to_html):
8030         Add new parameter `is_special' to decode special characters from
8031         escape sequences.
8032         (html_printer::do_title, html_printer::do_heading,
8033         html_printer::do_indentedparagraph,
8034         html_printer::translate_to_html, html_printer::special): Updated.
8036 2001-10-03  Werner LEMBERG  <wl@gnu.org>
8038         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8039         Fix entry for config.h.
8040         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8041         * tmac/troffrc: Translate nonbreakable space character to `\~'.
8042         * src/preproc/eqn/eqn.man: Document -d command line option.
8044 2001-09-27  Werner LEMBERG  <wl@gnu.org>
8046         * man/groff.man: Use
8048           .ev xxx
8049           .na
8050           .nh
8051           <table>
8052           .ev
8054         instead of the old code (`.ad .hy' after the table) to suppress
8055         incorrect hyphenation for grohtml output.
8057 2001-09-22  Werner LEMBERG  <wl@gnu.org>
8059         * man/groff_font.man, man/groff_out.man: Minor fixes.
8061 2001-09-20  Werner LEMBERG  <wl@gnu.org>
8063         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
8064         Arnold Robbins <arnold@skeeve.com>).
8066 2001-09-09  Werner LEMBERG  <wl@gnu.org>
8068         * configure: Regenerated with autoconf 2.52.
8070         * doc/groff.texinfo: Complete revision of indices.
8072 2001-09-07  Werner LEMBERG  <wl@gnu.org>
8074         * doc/Makefile (clean): Updated to delete all indices.
8076 2001-09-05  Werner LEMBERG  <wl@gnu.org>
8078         * src/roff/troff/troff.man: Remove superfluous line.
8080         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8081         given on the command line (or rather, if only the default warnings
8082         are set).
8084 2001-09-03  Werner LEMBERG  <wl@gnu.org>
8086         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8087         use .ne for TTY devices.
8089 2001-08-31  Werner LEMBERG  <wl@gnu.org>
8091         * src/roff/troff/token.h, src/roff/troff/input.cc:
8092         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8094 2001-08-28  Werner LEMBERG  <wl@gnu.org>
8096         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8097         * src/roff/troff/input.cc (token::next): Return
8098         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8099         compatibility mode.
8100         (token::description): Updated.
8101         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8102         (token::add_to_node_list, token::process): Ignore
8103         TOKEN_TRANSPARENT_ESCAPE.
8105 2001-08-27  Werner LEMBERG  <wl@gnu.org>
8107         * tmac/an-old.tmac: Fix `S' string.
8109 2001-08-26  Werner LEMBERG  <wl@gnu.org>
8111         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8113 2001-08-25  Werner LEMBERG  <wl@gnu.org>
8115         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8116         backslashes).
8117         Many other minor fixes.
8119         * configure.ac: Add message at end to inform how to compile
8120         xditview.
8121         * configure: Regenerated.
8123 2001-08-24  Werner LEMBERG  <wl@gnu.org>
8125         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8126         Updated to latest version of libc.
8128 2001-08-23  Werner LEMBERG  <wl@gnu.org>
8130         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8131         Autoconf 2.50 and newer can handle this.
8132         * configure: Regenerated.
8134 2001-08-21  Werner LEMBERG  <wl@gnu.org>
8136         * doc/pic.ms: Fix typo.
8137         * src/preproc/tbl/tbl.man: Document case of global options.
8139 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
8141         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8142         handling of `CR' font.
8144 2001-08-20  Werner LEMBERG  <wl@gnu.org>
8146         Use a config.h file.
8148         * src/include/lib.h: Include config.h.
8149         * All C files: Ditto (if necessary).
8150         * All C++ source and header files: Include lib.h first (if
8151         necessary).
8153         * src/include/config.hin: New file (autogenerated by autoheader).
8154         * stamp-h.in: New file.
8155         * configure.ac: Updated.
8156         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8157         (GROFF_ARRAY_DELETE): Simplified.
8158         * Makefile.sub (DISTCLEANFILES): Updated.
8159         Added targets for remaking config.status, config.hin, config.h,
8160         stamp-h.in, and stamp-h.
8161         * configure: Regenerated.
8163 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8165         * NEWS: Updated.
8167 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8169         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8170         (do_sprintf): Use snprintf().
8172 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8174         * src/libs/snprintf/*: Added an snprintf module written by Mark
8175         Martinec.
8176         * src/libs/libgroff/Makefile.sub: Updated.
8177         * configure.ac: Add test for snprintf().
8178         * Makefile.in: Updated.
8179         * configure: Regenerated.
8181         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8182         uses snprintf().
8184 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8186         * tmac/doc.tmac (Ex): New implementation.
8187         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8189 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8191         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8192         argument.
8193         * tmac/groff_tmac.man: Updated.
8195 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8197         * src/preproc/tbl/tbl.man: Minor documentation update.
8199 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8201         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8202         * configure.ac: Add declaration test for gettimeofday().
8203         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8204         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8205         * configure: Regenerated.
8207 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8209         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8210         * configure.ac: Add declaration test for strcasecmp().
8211         * Makefile.in: Updated.
8212         * configure: Regenerated.
8213         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8214         this is necessary because groff's mkstemp.cc is C++.
8215         Add declaration conditionally for strcasecmp().
8217 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8219         Integrated pic2graph, contributed by Eric S. Raymond.
8221         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8222         files.
8223         * Makefile.in, NEWS: Updated.
8225         * src/preproc/tbl/tbl.man: Revised.
8227 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8229         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8231 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8233         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8234         requests.
8236 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8238         * Makefile.sub (configure): Depend on configure.ac, not
8239         configure.in.
8240         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8242 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8244         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8245         fixes.
8247 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8249         * src/roff/troff/troff.man: Improve documentation of -E option.
8251 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8253         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8254         Simplified.
8256 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8258         * src/preproc/refer/refer.cc: Undo last change.
8259         * src/devices/grohtml/post-html.cc: Ditto.
8261 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8263         * src/preproc/refer/refer.cc: Include `lib.h'.
8264         * src/devices/grohtml/post-html.cc: Ditto.
8266 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8268         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8269         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8270         * Makefile.in: Comment updated.
8271         * configure: Regenerated.
8273 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8275         * src/preproc/pic/pic.cc: Removed.
8276         * src/preproc/pic/pic_tab.h: Removed.
8277         * src/preproc/refer/label.cc: Removed.
8279         * doc/Makefile (.ms.html): Don't use a file name extension in
8280         argument to grohtml's -I option.
8281         * Makefile.in (dist): Remove CVS directories.
8282         Call `distfiles' target.
8284         * src/devices/grohtml/grohtml.man: Add information about valid
8285         versions of pnmtopng.
8286         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8287         name instead of number.
8289 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8291         * doc/groff.texinfo: Minor fixes.
8293 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8295         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8296         (clean): Updated.
8298 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8300         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8301         * src/libs/libgroff/mkstemp.cc: New file.
8302         * src/libs/libgroff/mksdir.cc: New file.
8303         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8304         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8305         * src/libs/libgroff/Makefile.sub: Updated.
8306         * src/include/lib.h: Add mksdir() prototype.
8307         * src/include/posix.h: Define S_IXUSR if not yet defined.
8309         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8310         (createAllPages): Use mksdir() instead of current code.
8311         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8312         (main): [!HAVE_MKSTEMP]: Removed.
8314         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8315         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8316         macros.
8317         * configure.ac: Add tests for stdint.h, sys/time.h, and
8318         gettimeofday().
8319         Call new GROFF_xxx macros.
8320         * configure: Regenerated.
8321         * Makefile.in: Comments updated.
8323 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8325         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8326         instead of current code.
8327         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8328         * src/roff/groff/groff.cc (possible_command::insert_args): New
8329         function.
8330         (main): Use it for predriver handling instead of insert_arg().
8332 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8334         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8335         groff also.
8337         * src/include/posix.h: Define S_IWUSR if not yet defined.
8339 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8341         * NEWS: Updated.
8343 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8345         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8346         Some other minor fixes.
8347         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8349 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8351         Replace call to `troff' with `groff -Z' to make it aware of
8352         GROFF_BIN_PATH.
8354         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8355         (troff_command, command_prefix): Removed.
8356         (alterDeviceTo): Use groff.
8357         (addZ): New function.
8358         (char_buffer::do_html): Use it.
8359         (scanArguments): Use TROFF_COMMAND.
8360         (findPrefix): Removed.
8361         (main): Updated.
8362         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8364 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8366         * doc/pic.ms: Documentation fixes.
8368 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8370         Replace atexit() with global destructor.
8372         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8373         (xtmpfile_list_init): New global structure to deallocate
8374         xtmpfile_list on exit.  Its destructor inherits most code from
8375         remove_tmp_files().
8376         (remove_tmp_files): Deleted.
8377         (add_tmp_file): Simplified.
8379 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8381         Replace strdup() with strsave().
8383         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8384         (set_papersize): Use strsave() and a_delete.
8385         (main): Use strsave().
8386         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8387         removeAllPages): Use strsave() and a_delete.
8389         * configure.ac: Remove test for strdup.
8390         * Makefile.in: Comment updated.
8391         * configure: Regenerated.
8393 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8395         * win32-diffs: Updated.
8397 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8399         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8400         removing the old one.
8401         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8403 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8405         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8407 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8409         Merge -xwidth into -width.  Add -xwidth functionality to -column
8410         also.
8412         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8413         avoid warning.
8414         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8415         string immediately following a leading dot starts with a valid mdoc
8416         argument.
8417         Add similar code to the -column branch.
8418         (doc-Bl-usage): Updated.
8419         * groff_mdoc.man: s/-xwidth/-width/.
8421 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8423         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8424         running into centered or non-formatted text.
8426 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8428         Introduce short and long prefixes to have the selection at run-time
8429         whether there is a 8+3 limit for names of temporary files.
8431         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8432         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8433         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8434         variables.
8435         (temp_init): New global structure to initialize above three
8436         variables.
8437         (xtmptemplate): Use two parameters for long and short prefix.
8438         Simplify code use above three variables.
8439         (xtmpfile): Use long and short prefixes as parameters.
8440         * src/include/lib.h: Updated.
8442         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8443         with ...
8444         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8445         (createAllPages, makeTempFiles): Updated.
8447 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8449         * REVISION: Increased to 3.
8451 Version 1.17.2 released
8452 =======================
8454 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8456         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8457         to size_t.
8459 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8461         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8462         Fix synopsis.
8463         * tmac/groff_mdoc.man: Fix synopsis.
8465 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8467         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8468         Restore `doc-Pa-font'.
8470 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8472         * src/utils/indxbib/dirnamemax.c: Moved to ...
8473         * src/libs/libgroff/maxfilename.cc: Here.
8474         s/dir_name_max/file_name_max/.
8475         Add copyright.
8476         * src/include/lib.h: Add file_name_max.
8477         * src/utils/indxbib/indxbib.cc: Updated.
8478         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8479         Updated.
8481         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8482         as empty.
8483         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8485         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8486         REGION_TEMPLATE): New macros.
8487         (createAllPages, makeTempFiles): Use them.
8488         Include `nonposix.h'.
8489         (html_system): New function.
8490         (createAllPages, createImage): Use it.
8491         Use EXE_EXT.
8493         * tmac/www.tmac: Fix typos.
8495 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8497         * tmac/www.tmac: Disable hyphenation in normal text only if output
8498         device is html.
8499         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8500         * tmac/groff_mwww.man, NEWS: Updated.
8502 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8504         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8505         image location.
8507 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8509         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8510         doc-display-ps-stack): Implement font and font size stack for
8511         displays.
8513 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8515         * REVISION: Increased to 2.
8516         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8518         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8519         beginning of a line.
8520         * src/groff/grog/grog.sh: Ditto.
8522 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8524         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8525         make it portable.
8527 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8529         Fix problems with preprocessor string for `man' program.
8531         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8532         Updated/added copyright.
8533         Moved Emacs's local variable to identify nroff mode to the end of
8534         the file; add local variable if missing.
8536 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8538         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8539         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8540         * configure: Regenerated.
8542 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8544         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8545         * configure: Regenerated.
8547 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8549         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8550         but www.tmac.
8551         * doc/pic.ms: Fix typos.
8553 Version 1.17.1 released
8554 =======================
8556 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8558         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8559         * configure: Updated.
8561 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8563         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8564         image names.
8565         * src/roff/troff/dic.cc (blank_line): Add html tag.
8567 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8569         * src/roff/troff/input.cc (do_suppress): Fix typo.
8571 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8573         Added two new options (-D and -I) to specify image names and a
8574         subdirectory to place the images in.
8576         Change syntax from \\Ox to \\O[x].
8578         * src/devices/grohtml/post-html.cc (main): Add options.
8579         (usage): Updated.
8580         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8581         Use `NULL' instead of `0' for null string pointers.
8582         (MAX_RETRIES): New macro.
8583         (lengthOfintToStr, intToStr, make_message): New functions.
8584         (makeFileName): Make function static.
8585         Implement -D and -I options.
8586         (checkImageDir): New function.
8587         (write_end_image, write_start_image): Use new syntax of \O.
8588         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8589         make_message().
8590         (createImage): Use make_message().
8591         (addps4html): Add guard for malloc().
8592         (usage, scanArguments): Updated.
8593         (makeTempFiles): Use mkstemp().
8594         (removeTempFiles): Use unlink().
8595         (findPrefix): Add guard for malloc().
8596         (main): Updated.
8597         * src/roff/troff/input.cc (get_delim_file_name): New function to
8598         parse \O.
8599         (do_suppress): Updated to parse new syntax.
8600         * src/devices/grohtml/grohtml.man: Updated.
8601         * tmac/www.tmac: Updated to new syntax.
8603         * NEWS: Updated.
8605 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8607         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8609         * src/devices/grohtml/grohtml.man: Minor improvements.
8611 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8613         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8615 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8617         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8618         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8619         the former.
8620         * src/preproc/grn/grn.man: Add proper '\" string.
8622 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8624         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8626 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8628         Updated to autoconf 2.50.
8630         * configure.in: Renamed to...
8631         * configure.ac: This.
8632         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8633         (GROFF_OS390): Updated.
8634         * configure: Regenerated.
8636 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8638         * src/roff/troff/env.c, src/roff/troff/env.h,
8639         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8640         from 2000-12-21.
8642 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8644         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8646 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8648         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8649         less than or equal zero; set it to 1 then.
8650         * src/roff/troff/node.h (node::node): Initialize `last'.
8652 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8654         * tmac/an-old.tmac: Make predefined strings work in compatibility
8655         mode.
8656         Add troff version guard.
8657         * tmac/doc.tmac: Simplify version guard.
8659 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8661         The .ns and .rs requests are now honoured not only in the top-level
8662         but in all diversions (similar to UNIX troff).
8664         This change is based on a patch from Tadziu Hoffmann
8665         <hoffmann@usm.uni-muenchen.de>.
8667         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8668         (top_level_diversion): Remove `no_space_mode' member.
8669         * src/roff/troff/div.cc (diversion::diversion,
8670         top_level_diversion::top_level_diversion): Updated.
8671         (macro_diversion::output): Reset `no_space_mode'.
8672         (no_space, restore_spacing): Use `curdiv' unconditionally.
8673         (space_request, blank_line): Check `curdiv->no_space_mode'.
8674         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8675         `curdiv' unconditionally.
8676         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8677         Updated.
8679 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8681         Added two new requests `de1' and `am1' which are similar to `de' and
8682         `am' with the difference that compatibility mode is saved on entry,
8683         switched off during macro execution, and restored on exit.
8685         * src/roff/troff/input.h: Added two new special characters
8686         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8687         * src/roff/troff/input.cc (input_iterator): Added two member
8688         functions `save_compatible_flag' and `get_compatible_flag'.
8689         (input_stack): Ditto.
8690         (string_iterator): Ditto.  Also add private member
8691         `saved_compatible_flag'.
8692         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8693         (calling_mode): New enumeration.
8694         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8695         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8696         (define_macro, define_indirect_macro, append_macro, ignore): Use
8697         `calling_mode'.
8698         (define_nocomp_macro, append_nocomp_macro): New functions.
8699         (init_input_requests): Updated.
8700         (do_request): Rename local variable `saved_compatible_flag' to
8701         `old_compatible_flag'.
8702         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8704         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8705         public and trap-invoked macros.  As a consequence, the man macros
8706         work in compatibility mode also.
8708 2001-05-06  Solar Designer  <solar@openwall.com>
8710         * Makefile.in: Use $(mandir).
8712 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8714         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8716 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8718         Added `.ns' number register: Returns 1 in no-space mode (if in
8719         top-level diversion), 0 otherwise.
8721         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8722         (init_div_requests): Updated.
8723         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8724         Document it.
8726 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8728         * src/roff/nroff/nroff.man: Improved documentation (especially
8729         locales).
8731 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8733         Added `brp' request: This is \p as a request.
8735         * src/roff/troff/env.cc (environment::do_break): Add parameter
8736         `spread'.
8737         (do_break_request): New function (was `break_request').
8738         (break_request): Calls `do_break_request'.
8739         (break_spread_request): New; calls `do_break_request'.
8740         (init_env_requests): Updated.
8741         * src/roff/troff/env.h: Updated.
8742         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8744         * REVISION: Increased to 1.
8745         * win32-diffs: Updated.
8747 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8749         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8750         * tmac/troffrc-end: Make it really work in compatibility mode.
8752 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8754         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8755         stdlib.h.
8757 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8759         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8760         latest versions from glibc CVS archive.
8762         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8763         <c.zeelenberg@hccnet.nl>.
8765 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8767         * configure.in: Move check for mkstemp() to...
8768         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8769         * configure: Regenerated.
8771         * src/include/groff-getopt.h: Don't use variable names in
8772         declarations.
8774         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8775         * src/devices/grohtml/Makefile.sub,
8776         src/devices/grohtml/post-html.cc: Updated.
8778 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8780         * configure.in: Add special check for mkstemp().
8781         * src/libs/libgroff/tmpfile.cc: Use it.
8782         * src/utils/indxbib/indxbib.cc: Ditto.
8783         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8784         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8785         `const'.
8787 2001-04-20  Bruce Lilly  <blilly@erols.com>
8789         `Version_string' as C++ object was not visible to linker from C
8790         object files.
8791         Add `const' to `Version_string'.
8793         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8794         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8795         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8796         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8797         (scanArguments), src/preproc/refer/refer.cc (main),
8798         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8799         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8800         (main), src/devices/grohtml/post-html.cc (main),
8801         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8802         (main), src/utils/hpftodit/hpftodit.cc (main),
8803         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8804         (main), src/utils/lkbib/lkbib.cc (main),
8805         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8807         * src/roff/groff/pipeline.c: Add _UWIN.
8808         * src/include/nonposix.h: Ditto.
8810 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8812         * src/include/lib.h: Use HAVE_STRERROR.
8813         * src/roff/groff/pipeline.c: Ditto.
8814         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8815         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8816         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8817         * win32-diffs: Updated.
8818         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8820 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8822         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8823         instead of hardwired `"troff"'.
8824         (char_buffer::read_file): Remove unused variables.
8825         (char_buffer::write_file_troff): Ditto.
8826         (char_buffer::write_file_html): Ditto.
8827         (generateImages): Ditto.
8828         (abs): Removed.
8829         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8831         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8833         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8834         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8835         index_search_item::search1): Ditto.
8836         * src/roff/troff/node.h (width_list): Reorder members.
8837         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8838         (lookup_warning): Ditto.
8839         (prepend_string): Commented out.
8840         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8841         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8842         * src/preproc/tbl/main.cc (process_format): Ditto.
8843         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8844         compiler warnings.
8845         * src/preproc/pic/pic.cc: Updated.
8846         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8847         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8848         * src/preproc/refer/command.cc (execute_command): Ditto.
8849         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8850         * src/preproc/refer/token.cc (lookup_token): Ditto.
8851         * src/preproc/soelim/soelim.cc: Ditto.
8852         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8853         (isHexDigit): Commented out.
8854         (pushBackBuffer::isString): Remove unused variable.
8855         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8856         warning.
8857         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8858         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8859         Ditto.
8860         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8861         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8862         lookup_paper_size): Ditto.
8863         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8864         (text_glob, element_list): Reorder members.
8865         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8866         compiler warning.
8867         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8868         return value to `void'.
8869         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8870         of initializers.
8871         * src/devices/grohtml/html.h (simple_output::check_newline,
8872         simple_output::space_or_newline, simple_output::enable_newlines):
8873         Add return value.
8874         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8875         compiler warnings.
8876         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8877         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8878         output_ligatures, output_charset, read_map): Ditto.
8879         * src/utils/lookbib/lookbib.cc (main): Ditto.
8880         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8881         (do_file): Fix typo (`=' -> `==').
8882         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8883         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8885 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8887         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8888         Fix usage of GROFF_BIN_PATH.
8889         * src/roff/nroff/nroff.man: Updated.
8891 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8893         * NEWS: Fixing typos.
8894         Updated.
8896 Version 1.17 released
8897 =====================
8899 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8901         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8902         directory, not in $(srcdir).
8904 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8906         * doc/groff.texinfo: More info on conditionals.
8908 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8910         * doc/groff.texinfo: Added some info about groff internals.
8912         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8913         about missing special character only if the name is non-null.
8915 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8917         Removing the grohtml-old device driver which is now obsolete.
8919         * src/devices/grohtml-old/*: Removed.
8920         * font/devhtml-old/*: Removed.
8921         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8922         Remove comments.
8923         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8924         * test-groff (PATH): Updated.
8925         * tmac/Makefile.sub (NORMALFILES): Updated.
8926         * tmac/an-old.tmac: Remove special code for html-old device.
8927         Replace `html-or-html-old' register with `an-html'.
8928         * tmac/eqnrc: Updated.
8929         * tmac/html-old.tmac: Removed.
8930         * tmac/troffrc, tmac/troffrc-end: Updated.
8931         * tmac/www.tmac: Remove special code for html-old device.
8932         Replace `html-or-html-old' register with `www-html'.
8934         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8935         src/libs/libgroff/htmlindicate.cc (graphic_end),
8936         include/htmlindicate.h, src/preproc/grn/*.cc,
8937         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8938         single argument for consistency with rest of source code.
8940         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8942 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8944         * src/roff/troff/troff.man: Fixing typos.
8946 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8948         * doc/pic.ms: Fixing many font switches.
8949         * doc/groff.texinfo: Fixes, additions.
8950         * MORE.STUFF: Updated.
8952 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8954         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8955         simple anchor.
8956         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8957         cropping of images.
8958         (removeTempFiles): New function to tidy up temporary files.
8959         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8960         Many fixes to do with the new inline suppress node and image regions
8961         are much tighter.
8962         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8963         (generate_img_src): New function.
8964         (html_printer::do_auto_image): Utilizes it.
8965         (do_heading, do_title): Include inline images within their contents.
8966         (html_printer::begin_page): Tidied up comments that are issued to
8967         the html output file.
8968         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8969         than courier.
8970         (text_glob::is_br): New method used by do_heading.
8971         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8972         equivalent diversion.
8973         * src/include/html-strings.h: Altered image tags to reflect the
8974         inline image node.
8975         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8976         parameter.
8977         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8978         it is already inside a pic image.  Only emit tags if the argument
8979         `-Tps:html' is present.
8980         * src/preproc/tbl/main.cc: Changes to reflect additional
8981         `html_end_suppress' parameter.
8982         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8983         emitted since the last eol tag was written.
8984         * src/roff/troff/env.h: New boolean `emitted_node'.
8985         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8986         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8987         * src/roff/troff/node.cc (check_charinfo): New method. 
8988         (troff_output_file::determine_line_limits): Alterations to limit
8989         checking.
8990         * tmac/www.tmac: Changes to reflect new suppress nodes.
8991           
8992 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8994         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8995         Escape the html_glyph in the buffer.
8996         (str_translate_to_html): Output the unescaped escaped_char.
8997         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8998         `frame=void', not `frame=none'.  Add `border=0'.
9000 2001-04-12  Werner LEMBERG  <wl@gnu.org>
9002         * PROBLEMS: Add some words on how to avoid wrapper macros.
9004 2001-04-11  Blake McBride  <blake@florida-software.com>
9006         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9008 2001-04-11  Werner LEMBERG  <wl@gnu.org>
9010         * font/devlbp/Makefile.sub (CLEANADD): Set it.
9011         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9012         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9013         * Makefile.sub (DISTCLEANFILES): Here.
9015         * libs/libgroff/new.cc: Include `nonposix.h'.
9016         * win32-diffs: Updated.
9018 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
9020         Added skeleton macro for defunct macros.
9022         Updated documentation.
9024         When inside displays, an empty input line warning should be
9025         suppressed.  If another macro call is put inside a display,
9026         all subsequent empty lines found in that display caused a
9027         warning to be emitted.
9029         * tmac/doc.tmac (doc-defunct-macro): New macro.
9030         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9031         (doc-restore-global-vars): Fixed typo.
9032         (doc-empty-line): Check the `doc-display-depth' register to
9033         determine whether we are inside display or not.
9035         * tmac/doc-common: Removed `Or' and `Sf' registers.
9036         Moved obsolete `Ds' macro to doc.tmac.
9038         * tmac/groff_mdoc.man: Bump document date.
9039         Document `.Vt' under ``Variable Types''.
9040         Removed documentation for obsolete `.Or' macro.
9042 2001-04-10  Werner LEMBERG  <wl@gnu.org>
9044         * NEWS: Updated.
9045         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9047 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
9049         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9050         (usage): Add stream argument. Don't exit.
9051         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9052         Write --version output to stdout, not stderr.
9053         (usage): Add stream argument. Don't exit.
9054         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9055         (usage): Add stream argument. Don't exit.
9056         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9057         constants.
9058         (usage): Add stream argument. Don't exit.
9059         (main): Write --help output to stdout, not stderr.
9060         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9061         (usage): Add stream argument. Don't exit.
9062         * src/devices/grops/ps.cc (main): Accept --help and --version.
9063         (usage): Add stream argument. Don't exit.
9064         * src/devices/grotty/tty.cc (main): Accept --help and --version.
9065         (usage): Add stream argument. Don't exit.
9066         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9067         (main): Accept --help and --version.
9068         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9069         (main): Accept --help and --version.
9070         * src/preproc/html/pre-html.cc (usage): Add stream argument.
9071         (scanArguments): Accept --help and --version.
9072         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9073         (main): Accept --help and --version.
9074         * src/preproc/refer/refer.cc (main): Accept --help and --version.
9075         (usage): Add stream argument. Don't exit.
9076         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9077         exit.
9078         (main): Accept --help and --version.
9079         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9080         (main): Accept --help and --version.
9081         * src/roff/groff/groff.cc (main): Accept --help and --version.
9082         (synopsis): Add stream argument.
9083         (help): Write --help output to stdout, not stderr.
9084         (usage): Add stream argument. Don't exit.
9085         * src/roff/grog/grog.pl: Accept --help and --version.
9086         (help): New sub.
9087         * src/roff/grog/grog.sh: Accept --help and --version.
9088         * src/roff/nroff/nroff.sh: Accept --help and --version.
9089         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9090         (usage): Add stream argument. Don't exit.
9091         (main): Accept --help and --version.
9092         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9093         (usage): New function with stream argument, doesn't exit.
9094         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9095         (usage): New function with stream argument, doesn't exit.
9096         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9097         (usage): Add stream argument. Don't exit.
9098         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9099         (main): Accept --help and --version.
9100         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9101         exit.
9102         (main): Accept --help and --version.
9103         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9104         (main): Accept --help and --version.
9105         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9106         (usage): Add stream argument. Don't exit.
9108 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
9110         Fix indentation in SYNOPSIS.
9112         Updated to include changes of latest BSD mdoc version (basically,
9113         the only change is that `.Fn' and `.Fc' put a final semicolon after
9114         a function declaration in the SYNOPSIS section).
9116         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9117         (doc-in-synopsis-section): New variable.  Updated all related
9118         functions.
9119         (doc-indent-synopsis-active): New register.
9120         (Nd, Fn, Fo): Use it.
9121         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9122         `.Cd' with long argument line produces indented wrapped lines. 
9123         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9124         undesirable line break to be output.
9125         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9126         `.rs'.
9127         (Fn, Fc): Add final `;' to output.
9128         (doc-save-global-vars, doc-restore-global-vars): Updated.
9129         * tmac/doc-common: Remove `Ex' register.
9130         Updated.
9131         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9132         copyright.
9134 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9136         * tmac/doc.tmac (Cd): Simplify code.
9137         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9139 2001-04-06  Werner LEMBERG  <wl@gnu.org>
9141         Implement continuous underlining for nroff mode.  To do that, a new
9142         request in the ditroff language has been added: `x u N' (N is 0
9143         or 1).
9145         \X and \Y are now transparent to end-of-sentence recognition.
9147         * src/include/printer.h (printer): Add `type' parameter to `special'
9148         method.
9149         * src/libs/libdriver/printer.cc (printer::special): Updated.
9150         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9152         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9153         specials of type `p'.
9154         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9155         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9156         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9157         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9158         (glyph::order): New method.
9159         (tty_printer::add_char): Use it.
9160         (tty_printer::special): New method.
9161         (tty_printer::end_page): Implement it.
9163         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9164         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9165         to set `no_init_string'.
9166         (special_node::tprint_start): Use it.
9167         (special_node::same, special_node::copy): Updated.
9168         (special_node::ends_sentence): New method.
9169         (troff_output_file::start_special): Add parameter to include
9170         inititialization of special conditionally.
9172         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9173         * src/roff/troff/env.cc (do_underline_special): New function.
9174         (environment::set_font): Use it.
9175         (do_underline): Use it.  This was `underline()'.
9176         (underline): Call `do_underline()'.
9177         (continuous_underline): New function which calls `do_underline()'.
9178         (environment::newline): Use `do_underline_special()'.
9179         (init_env_requests): Updated.
9181         * NEWS, man/troff_out.man: Updated.
9183 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9185         * font/devutf8/R.proto: Fix code of 'shc'.
9187 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9189         Many fixes.  Diag lists can now be nested also; additionally,
9190         `-compact' and `-offset' are supported.
9192         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9193         (doc-list-have-indent-stackXXX): A new register stack.
9194         (doc-have-diag-list): Removed.
9195         (Bl): Use `doc-list-have-indent-stackXXX'.
9196         (El): Updated.
9197         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9198         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9199         (doc-set-vertical-and-indent): Ditto.
9200         (doc-next-list-depth): Removed.
9201         (doc-increment-list-stack): Updated.
9202         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9203         `doc-next-list-depth'.
9204         (doc-end-list, doc-end-column-list): Don't use
9205         `doc-increment-list-stack'.
9206         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9207         (doc-save-global-vars, doc-restore-global-vars): Updated.
9208         * tmac/doc-common: Updated.
9209         * tmac/groff_mdoc.man: Updated.
9210         * NEWS: Fix typo.
9212 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9214         * src/devices/grotty/grotty.man: Fix grammatical error.
9216 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9218         Remove .Ld from mdoc package; replace it with special handling of
9219         `...'.
9221         * tmac/doc-common: Remove `Ld' register.
9222         Uncomment `doc-volume-ds-*' strings.
9223         Remove `doc-operating-system-default'.
9224         (Os): Updated.
9225         * tmac/doc-syms (Ld): Removed.
9226         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9227         `...' specially.
9228         * NEWS: Updated.
9230         * tmac/groff_mdoc.man: Many fixes and updates.
9232 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9234         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9235         Bond <tkb@tkb.mpl.com>.
9236         * tmac/www.tmac: Save compatibility mode.
9238 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9240         * tmac/groff_mdoc.man: Many fixes.
9242 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9244         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9245         isn't recognized.
9247 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9249         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9250         diversion.  This fixes overlong tags.
9252 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9254         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9255         * tmac/doc-syms: Fix error messages.
9256         * tmac/an-old.tmac: Remove incorrect double backslashes.
9258 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9260         * tmac/Makefile.sub: Strip mdoc.local also
9261         * tmac/strip.sed: Fixed.
9263 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9265         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9266         selecting the font size.
9267         * tmac/groff_mdoc.man, NEWS: Document it.
9269 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9271         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9272         to `sv' request.
9273         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9274         argument to restore previous font family.
9275         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9277         * doc/groff.texinfo: More fixes and additions (mainly for font
9278         manipulating commands).
9280         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9281         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9282         * tmac/Makefile.sub, NEWS: Updated.
9284 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9286         Replaced mdoc implementation.  The new version is `state of the
9287         art', using almost all new features of groff 1.17 -- it won't run
9288         with older versions.
9290         * tmac/doc.tmac: Completely rewritten.
9291         * tmac/doc-common: Ditto.
9292         * tmac/doc-nroff: Ditto.
9293         * tmac/doc-ditroff: Ditto.
9294         * tmac/doc-syms: Ditto.
9295         * tmac/mdoc.local: New file.
9296         * tmac/groff_mdoc.samples.man: Replaced with ...
9297         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9298         * tmac/strip.sed: Updated.
9299         * tmac/Makefile.sub: Updated.
9300         * INSTALL: Updated.
9302         * tmac/groff_man.man: Add `man.local' to the FILES section.
9304 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9306         * doc/groff.texinfo: Added many @noindent.
9307         Replaced @end_Example -> @endExample.
9308         Added info whether registers are r/o.
9309         Many other additions and fixes.
9311 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9313         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9314         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9315         Improved @Def* macros: Now the exact syntax of request, register,
9316         and escapes is shown.
9317         Added macros for parentheses and brackets to be used in @Def*.
9318         Many fixes and improvements of the documentation.
9320 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9322         * doc/groff.texinfo: Added new index: `st' (for strings).
9323         Added macros @Defstr(x).
9324         Added macro @Example (adding @group).
9325         Other minor improvements.
9327 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9329         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9330         `rq' for requests.  `fn' is no longer used.
9331         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9332         Removed @Deffn(x).
9334         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9335         number with name of man page.
9337 2001-03-19  Larry Kollar  <kollar@alltel.net>
9339         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9340         consistency.
9342 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9344         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9345         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9346         * src/devices/grohtml/grohtml.man: Fixing typos.
9348 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9350         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9351         * tmac/groff_mwww.man: Remove .LINE macro
9352         * tmac/www.tmac (LINE): Add `.ti'.
9354         * src/devices/grohtml/post-html.cc (html_printer): New member
9355         `indent'.
9356         (html_printer::emit_raw): Use it.
9357         (html_printer::do_linelength): Ditto.
9358         (html_printer::do_pageoffset): Ditto.
9359         (html_printer::do_indentation): Ditto.
9360         (html_printer::do_tempindent): Ditto.
9361         (html_printer::do_break): Ditto.
9362         (html_printer::begin_page): Ditto.
9363         (html_printer::do_indentedparagraph): New function.
9364         (html_printer::troff_tag): Handle `.ip'.
9365         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9366         Add `<td width=...>' handling.
9367         (html_text::do_table): Add parameter.
9368         (html_text::do_indent): Updated.
9369         * src/devices/groohtml/html-text.h: Updated.
9371 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9373         Introduced simple html tables to implement indentation.
9375         * src/devices/grohtml/html.h (word, word_list): New structures.
9376         (simple_output): Use it.
9377         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9378         (html_printer): Improve indentation handling.
9379         (html_printer::emit_raw): Set `in_table' element.  Handle
9380         indentation if set.
9381         (html_printer::write_header): Move conditional downwards.
9382         Don't allow whitespace in tags.
9383         (html_printer::do_linelength): Handle line length and indentation
9384         conditionally.
9385         (html_printer::do_pageoffset): Handle indentation conditionally.
9386         (html_printer::do_indentation): Ditto.
9387         (html_printer::do_tempindent): New function member.
9388         (html_printer::do_fill): Take care of indentation.
9389         (html_printer::do_flush): Finish table.
9390         (html_printer::do_links): Ditto.
9391         (html_printer::do_break): New function for handling `.br' and `.ti'.
9392         (html_printer::troff_tag): Use it.
9393         Handle `.ti'.
9394         (html_printer::flush_globs): Fix.
9395         (html_printer::flush_page): Finish table.
9396         (html_printer::html_printer): Fix error message.  Set up
9397         `linelength'.
9398         (html_printer::add_to_sbuf): Remove special handling of character
9399         code 255.
9400         (to_unicode): Remove `stop()'.
9401         (html_printer::write_title): Cleanup.
9402         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9403         (html_printer::~html_printer): Flush text and end the line.
9404         Use `put_string()'.
9405         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9406         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9407         emission of tags.
9408         (html_text::start_tag): Disable newlines.
9409         (html_text::table_is_void): New function.
9410         (html_text::issue_table_begin): Ditto.
9411         (html_text::issue_table_end): Ditto.
9412         (html_text::push_para): Better table handling.
9413         (html_text::do_indent): New function.
9414         (html_text::do_table): Ditto.
9415         (html_text::done_table): Ditto.
9416         (html_text::do_tt): Handle PRE_TAG.
9417         (html_text::is_in_table): New function.
9418         (html_text::check_emit_text): Handle tables.
9419         (html_text::do_emittext): Use `nl()'.
9420         (html_text::do_para): Handle table.
9421         (html_text::remove_def): New function.
9422         * src/devices/grohtml/output.cc (word, word_list): Implement
9423         methods.
9424         (simple_output::end_line): Flush last word.
9425         (simple_output::simple_comment): Ditto.
9426         (simple_output::begin_comment): Recoded.
9427         (simple_output::end_comment): Ditto.
9428         (simple_output::comment_arg): Removed.
9429         (simple_output::check_newline): Improve test and flush last word.
9430         (simple_output::space_or_newline): Improved.
9431         (simple_output::write_newline): Replaced with...
9432         (simple_output::nl): This.
9433         (simple_output::put_raw_char): Flush last word.
9434         (simple_output::check_space): Removed.
9435         (simple_output::put_translated_string): Ditto.
9436         (simple_output::put_string): Simplified.
9437         (simple_output::put_number): Updated.
9438         (simple_output::put_float): Ditto.
9439         (simple_output::put_symbol): Removed.
9440         (simple_output::enable_newlines): Add `check_newline()'.
9441         (simple_output::flush_last_word): New function.
9443         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9444         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9446         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9447         * tmac/an-old.tmac (TP): Ditto.
9449 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9451         * mdate.sh: Make it POSIX compliant.
9453 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9455         Added the `return' request to end a macro immediately.  It simply
9456         pops iterators from the input stack until a macro iterator is found.
9458         * src/roff/troff/input.cc (input_iterator::is_macro,
9459         macro_iterator::is_macro): New member.
9460         (input_return_boundary): New class to signal an immediate return
9461         to while_request().
9462         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9463         New functions.
9464         (input_stack::clear): Use it.
9465         (input_stack::pop_macro): New function.
9466         (while_request): Use `is_return_boundary()'.
9467         (return_macro_request): New function.
9468         (init_input_requests): Use it.
9470         * src/roff/troff/TODO: Updated.
9471         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9473 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9475         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9476         cleanup.
9478 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9480         Make `\B' more rigid.
9482         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9483         parameter.
9484         (get_number_rigidly): New function.
9485         * src/roff/troff/input.cc (do_expr_test): Use it.
9486         * src/roff/troff/token.h: Updated.
9488         * src/roff/troff/request.h: Fix typo (init_html_request ->
9489         init_markup_request).
9491 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9493         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9494         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9495         are now `.begin', `.end', `.image'.
9497         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9498         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9499         Use add_char_to_sbuf().
9500         (to_unicode): New function.
9501         (char_translate_to_html): Changing type of `ch' parameter.
9502         Use `to_unicode()'.
9503         (html_printer::~html_printer): Comment out doctype string.
9504         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9505         instead of `.html-end'.
9506         (write_start_image): Use `.begin' and `.image' instead of
9507         `.html-begin' and `.html-image'.
9508         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9509         (html_begin): Renamed to ...
9510         (begin): This.
9511         (html_end): Renamed to ...
9512         (end): This.
9513         (html_image): Renamed to ...
9514         (image): This.
9515         (init_html_requests): Renamed to ...
9516         (init_markup_requests): This.
9517         * tmac/www.tmac: Updated.
9519 2001-02-28  Bram  <bram@avontuur.org>
9521         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9522         constructor.
9524 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9526         * doc/meref.me: Fixing some typos.
9528 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9530         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9531         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9532         * src/roff/troff/node.h: Updated.
9534 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9536         * tmac/groff_tmac.man: Fix typo.
9538 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9540         Fixing a bug which prevented proper end-of-sentence recognition
9541         between an `unformatted' box and the following text.  As a
9542         consequence, vertical line distances are no longer preserved in
9543         boxes after a call to `.unformat' -- because boxes aren't
9544         line-oriented (contrary to diversions), this doesn't make sense
9545         anyway.
9547         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9548         value.
9549         (vertical_size_node::set_unformat_flag): New method.
9550         * src/roff/troff/node.hh: Updated.
9551         * src/roff/troff/input.cc (word_space_node::reread,
9552         hmotion_node::reread): Reset `unformat' flag after usage.
9553         (unformat_macro): Append only if `set_unformat_flag()' returns
9554         non-zero.
9555         * src/roff/troff/troff.man: Updated.
9557 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9559         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9560         documentation of `asciify' and `unformat' requests.
9562 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9564         Redesigned the `unformat' request.  It is no longer connected with
9565         `asciify' but rather uses new `reread()' methods if the `unformat'
9566         flag is set.  Additionally, the handling of space characters after
9567         unformatting has been fixed so that they retain their width.
9569         * src/roff/troff/node.h (width_list): New structure to store
9570         original widths of spaces.
9571         (node): Added `unformat' member.
9572         Replaced `num_spaces' variable with `orig_width' list.
9573         * src/roff/troff/node.cc (*node::asciify,
9574         asciify_reverse_node_list): Removed `unformat_only' flag and related
9575         code.
9576         (word_space_node::asciify, word_space_node::word_space_node): Use
9577         `orig_width'.
9578         (word_space_node::~word_space_node): New destructor.
9579         (word_space_node::copy): Updated to handle `orig_width'.
9580         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9581         (*node::merge_space): Update `orig_width' list if necessary.
9582         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9583         * src/roff/troff/enc.cc (environment::space_newline): Use
9584         `width_list'.
9585         (environment::space): Added method to handle space width and
9586         sentence space width as parameters.  Use `width_list'.
9587         (environment::make_tab_node): Updated.
9588         * src/roff/troff/env.h: Updated.
9589         * src/roff/troff/input.cc (word_space_node::reread,
9590         unbreakable_space_node::reread, hmotion_node::reread): New methods
9591         to handle nodes specially if `unformat' flag is set.
9592         (do_asciify_macro): Renamed back to ...
9593         (asciify_macro): This.
9594         (unformat_macro): New implementation to simply set the `unformat'
9595         flag.
9597         * MORE.STUFF: Added more info about deroff.
9599 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9601         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9602         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9603         and `add_self()' methods to avoid hyphenation.  For example, the
9604         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9605         soft hyphen after `foo'.  Now the hyphen list is correctly
9606         `foo<ignore><ignore>bar'.
9608 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9610         * tmac/groff_tmac.man: Fix `BIR' macro.
9612 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9614         A new escape sequence `\:', inserting a zero-width break point.
9616         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9617         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9618         Implement it.
9619         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9620         method.
9621         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9622         and `asciify()' methods.
9623         * src/roff/troff/node.cc (space_node::space_node): Updated.
9624         (space_node::asciify): Handle `was_escape_colon'.
9625         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9627         Handle `\~' similar to other comparable requests.
9629         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9630         label.
9631         (token::next): Move creation of an unbreakable_space_node to...
9632         (token::add_to_node_list): Here.
9634         Fix a bug which sometimes prevented hyphenation of words connected
9635         with `\~' or `\ ' (and other escape sequences handled as
9636         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9637         (after a call to the `unformat' request).
9639         * src/roff/troff/env.h (environment::possibly_break_line,
9640         environment::hyphenate_line): Introducing `start_here' parameter.
9641         * src/roff/troff/env.cc (environment::space_newline,
9642         environment::space): Use it.
9643         (environment::possibly_break_line, environment::hyphenate_line):
9644         Implement it.
9645         * src/roff/troff/input.cc (process_input_stack): Use it.
9646         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9647         space_char_hmotion_node, overstrike_node): Add
9648         `get_hyphenation_type()' method.
9649         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9650         if `unformat_only' is active.
9652 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9654         Implemented new read-only number register `.linetabs' which
9655         returns 1 if in line-tabs mode, 0 otherwise.
9657         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9658         * src/roff/troff/env.cc (get_line_tabs): New function.
9659         (init_env_requests): Use it.
9660         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9662         * VERSION, REVISION: Changing to 1.17.0.
9664 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9666         Fixed a bug which prevented hyphenation of words which are finished
9667         with `\)'.
9669         * src/roff/troff/token.h (token): Add enum type
9670         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9671         * src/roff/troff/input.cc (token::next, token::description,
9672         get_line_arg, token::add_to_node_list, token::process): Use it.
9674 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9676         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9677         * src/roff/troff/div.cc (do_divert): Use it.
9679         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9681 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9683         Adding the `linetabs' request.  If set, tab distances are not
9684         computed relative to the input line but relative to the output line.
9686         * src/roff/troff/env.h (environment): New member `line_tabs'.
9687         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9688         (environment::environment, environment::copy): Updated.
9689         (environment::distance_to_next_tab): Use `line_tabs'.
9690         (init_env_requests): Register request.
9691         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9692         fixes.
9694 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9696         Introducing a new read-only register `.int' which is set to a
9697         positive value if the last output line is interrupted (i.e., if it
9698         contains `\c').
9700         * src/roff/troff/env.cc (init_env_requests): Add it.
9701         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9703 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9705         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9706         * src/preproc/html/pre-html.cc (findPrefix): New function which
9707         generates the troff executable name via the system prefix.
9708         * src/preproc/eqn/main.cc: Modified warning message.
9710 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9712         troff's `box' and `boxa' requests didn't preserve temporary
9713         indentation.
9715         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9716         `saved_target_text_length' members.
9717         * src/roff/troff/div.cc (do_divert): Use them.
9719         Tabs (but not yet leaders and fields) are now handled correctly by
9720         `asciify' request.
9722         * node.h (hmotion_node): Add field `was_tab'.
9723         * env.cc (environment::make_tab_node): Set it.
9724         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9726         Added new request `unformat' which will, contrary to `asciify',
9727         preserve font information after unformatting (i.e., only nodes
9728         dealing with horizontal space are converted back to input
9729         characters).
9731         * input.cc (asciify_macro): Renamed to ...
9732         (do_asciify_macro): this, having a new parameter `unformat_only'.
9733         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9734         (init_input_requests): Added `unformat'.
9735         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9736         parameter to control asciification process.
9737         * node.h (*_node::asciify): Ditto.
9738         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9740 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9742         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9744 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9746         * tmac/ps.tmac: Remove call of psold.tmac.
9747         * tmac/psold.tmac: Comment updated.
9748         * tmac/psnew.tmac: Removed since no longer needed.
9749         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9751         * font/devutf8/R.proto: Adding `shc' glyph.
9752         * font/devutf8/NOTES: Updated.
9754         * test-groff: Updated.
9756 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9758         First cut of the new html device driver.  Changes to pre-html and
9759         the new grohtml are too numerous to be documented here.
9761         Stuff related to `html' has been renamed to `html-old' and `html2'
9762         stuff has been renamed to `html' (including directories).  The new
9763         html device driver is therefore invoked as `-Thtml'.
9765         Added new `\O' escape to suppress output (needed by html driver).
9767         Added functions and code to pass info about input-level commands
9768         (`.in', `.fl', etc.) to html driver.
9770         Three new functions (.html-begin, .html-end, and .html-image) for
9771         better html handling: `html-begin' will execute the remaining line
9772         if at the outermost nesting level, increasing an internal counter.
9773         `html-end' does the same but decreases the internal counter.
9774         `html_image' puts its arguments into a special node (suppress_node)
9775         to define an image region.
9777         The `output' request has been removed.
9779         * tmac/html-tags.tmac: Removed.
9780         * tmac/arkup.tmac: Updated and renamed to ...
9781         * tmac/www.tmac: New file.
9782         * tmac/markup.tmac Updated and renamed to ...
9783         * tmac/mwww.tmac: New file.
9784         * tmac/Makefile.sub: Updated.
9785         * tmac/an-old.tmac: Updated.
9786         * tmac/eqnrc: Updated.
9787         * tmac/groff_man.man
9788         * tmac/groff_markup.man: Updated and renamed to ...
9789         * tmac/groff_mwww.man: New file.
9790         * tmac/groff_tmac.man: Updated.
9791         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9792         * tmac/html.tmac: Updated and renamed from html2.tmac.
9793         * tmac/pspic.tmac: Updated html support.
9794         * tmac/s.tmac: Added html output support.
9795         * tmac/troffrc, tmac/troffrc-end: Updated.
9797         * Makefile.in, doc/Makefile: Updated.
9798         * doc/groff.texinfo: Added info about new `\O' escape.
9799         * doc/homepage.ms: Use `MAILTO' macro.
9801         * font/devhtml/DESC.proto: Add `C' font.
9802         * font/devhtml/Makefile.sub: Updated.
9803         * font/devhtml/R.proto: Minor fixes.
9804         * font/devhtml-old/Makefile.sub: Updated.
9806         * src/devices/grohtml-old/Makefile.sub: Updated.
9808         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9809         method.
9810         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9811         graphic_start): Add `inline' parameter.  Update.
9812         (html_end_suppress, graphic_end): Update.
9814         * src/include/html-strings.h: New file.
9815         * src/include/htmlindicate.h: Comments updated.
9816         * src/include/printer.h: Updated.
9818         * src/preproc/eqn/main.cc (do_file, main): Updated.
9819         * src/preproc/pic/troff.cc (troff_output::start_picture,
9820         troff_output::finish_picture): Updated.
9821         * src/preproc/tbl/main.cc (process_input_file): Updated.
9823         * src/roff/groff/groff.cc (main): Updated.
9824         Pass device arguments to predrivers also.
9825         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9826         * src/roff/troff/env.h (environment): Updated.
9827         New elements `need_eol' and `ignore_next_eol' (for html output).
9828         * src/roff/troff/env.cc (environment::environment): Add initializers
9829         for `need_eol' and `ignore_next_eol'.
9830         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9831         functions.
9832         (point_size, fill, no_fill, center, right_justify, line_length,
9833         indent, temporary_indent, break_request, handle_tab): Use
9834         `add_html_tag()'.
9835         (set_tabs): Use `add_html_tag_tabs()'.
9836         (environment::add_html_tag): Updated.
9837         (environment::do_break): Updated.
9838         * src/roff/troff/div.cc (space_request, flush_output): Use
9839         `environment::add_html_tag()'.
9840         * src/roff/troff/input.cc: Updated.
9841         New variable `html_level' to indicate nested `html-begin' requests.
9842         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9843         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9844         `force_tprint()' method.
9845         (token::next): Handle `\O'.
9846         (do_suppress): Implement it.
9847         (html_begin, html_end, html_image): New functions.
9848         (init_output_requests): Renamed to ...
9849         (init_html_requests): this.
9850         (main): Use it.
9851         (macro::append_str, macro::append_unsigned, macro::append_int): New
9852         methods.
9853         New variable `output_low_mark_miny' to limit minimal value of y.
9854         (reset_output_registers): Use it.
9855         (output_request): Removed.
9856         (get_output_registers): New function.
9857         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9858         (*_node): Added `force_tprint()' if necessary.
9859         (special_node): New elements `tf' and `get_tfont()'.
9860         (suppress_node): New class.
9861         * src/roff/troff/node.cc:
9862         New global variables `image_no' and `suppress_start_page'.
9863         (real_output_file): New method `is_on()'.
9864         (troff_output_file): New method `start_special(tfont)'.
9865         (troff_output_file::really_print_line): Use `tprint' conditionally.
9866         (real_output_file::print_line): Updated.
9867         (real_output_file::on): Updated.
9868         (*_node): Added `force_tprint()'.
9869         (special_node::special_node): Initializer updated.
9870         (special_node::same, special_node::copy, special_node::tprint_start):
9871         Updated.
9872         (get_reg_int, get_reg_str): New functions.
9873         (suppress_node::*): New methods.
9874         New global variables last_position, last_image_filename;
9875         (min): New inline function.
9876         * src/roff/troff/reg.h, src/roff/troff/request.h,
9877         src/roff/troff/troff.h: Updated.
9879 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9881         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9882         documentation of `asciify' request.
9884 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9886         * src/roff/troff/input.cc: Move definition of special characters
9887         like `ESCAPE_TILDE' to ...
9888         * src/roff/troff/input.h: New file.
9889         * src/roff/troff/Makefile.sub (HDRS): Add it.
9891         Extending the .asciify request to `unformat' space characters also.
9893         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9894         to count input space characters.
9895         Update constructors to take care of it.
9896         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9897         `ESCAPE_SPACE' instead of normal space.
9898         (word_space_node::asciify): New method.
9899         (unbreakable_space_node::asciify): New method.
9900         (word_space_node::merge_space): New method.
9901         * src/roff/troff/env.cc (environment::space_newline,
9902         environment::space): Add code to initialize `num_spaces' (using the
9903         constructor of `word_space_node').
9904         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9905         Document it.
9907 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9909         * man/groff_char.man: Use table header traps only conditionally.
9911 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9913         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9915 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9917         Introducing the `box' and `boxa' requests which are similar to
9918         `di' resp. `da' but omitting a partially filled line (which is
9919         restored after ending the diversion).
9921         * src/roff/troff/div.h (diversion): Add elements to save partially
9922         filled line.
9923         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9924         partially filled line.
9925         (divert, divert_append): Updated.
9926         (box, box_append): New functions.
9927         (init_div_requests): Use them.
9928         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9929         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9931         * doc/groff.texinfo: Fix documentation of `lf' request.
9933 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9935         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9937 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9939         Ignore `ss' request if in compatibility mode.
9941         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9942         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9943         * src/roff/troff/env.cc (space_size): Use it.
9945         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9946         `ss' request in nroff mode.
9948         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9949         changes.
9951 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9953         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9955 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9957         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9958         * src/preproc/eqn/neqn.man: Small fixes and additions.
9960 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9962         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9963         Fixing typo.
9965         * src/preproc/eqn/neqn.man: New file.
9967         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9968         negative' warning.
9970         * tmac/e.tmac: Add `T&' macro.
9971         Fix `indent cannot be negative' warning.
9972         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9974 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9976         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9978 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9980         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9981         `alloca' symbol .
9983         * MORE.STUFF: Added info about deroff for djgpp.
9985         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9986         documentation of -rcR switch.
9988 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9990         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9991         if -rcR=1 (which is now the default in nroff mode), a single, very
9992         long page is created instead of multiple pages: All `ne' and `wh'
9993         requests are put into conditionals; a new macro `an-end' is added to
9994         be called with `em'.
9996         Some other minor cleanups.
9998         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10000 2000-12-02  Werner LEMBERG  <wl@gnu.org>
10002         Fixing a bug which prevented hyphenation in words followed
10003         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10005         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10006         Adding possibly_break_line().
10007         * src/roff/troff/env.h (environment): Make possibly_break_line()
10008         public.
10010         Make `\~' usable in .tr request.
10012         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10013         (token): Add stretchable_space().
10014         * src/roff/troff/input.cc (token::next, token::delimiter,
10015         token::description, process_input_stack, do_translate,
10016         add_to_node_list, token::process): Use it.
10017         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10018         for adjusting the space.
10019         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
10020         for stretchable space.
10021         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10022         (make_node): Add code for stretchable space.
10023         * src/roff/troff/env.cc (environment::add_char): Use it.
10024         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10025         (get_copy, token::next, transparent_translate, asciify): Use it.
10027         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10028         doc/groff.texinfo: Updated.
10029         * man/groff.man: Small reorderings.
10031 2000-11-23  Werner LEMBERG  <wl@gnu.org>
10033         * NEWS: Fixes.
10034         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10035         option.
10036         * src/roff/troff/input.cc (main): Add `config_macro_path' and
10037         `safer_macro_path' to -M option.
10038         * src/roff/troff/troff.man: Fixes.
10040 2000-11-22  Werner LEMBERG  <wl@gnu.org>
10042         Use safer path (except for config files) if -U isn't specified.  Add
10043         a special macro path (without home and current directory) for config
10044         files.  Add home directory to unsafe path for consistency.  Don't
10045         include the home directory in the font path.
10047         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10048         `macro_path'.
10049         * src/include/macropath.h: Add `config_macrp_path'.
10050         * src/libs/libgroff/fontfile.cc: Fix font path.
10051         * src/roff/troff/input.cc (process_startup_file): Use
10052         `config_macro_path'.
10053         (main): Select unsafe path if -U is given.
10055         * src/preproc/eqn/main.cc (main): Fixing search path for
10056         configuration file.
10057         * src/preproc/eqn/eqn.man: Updated.
10059         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10060         Updated.
10062         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10063         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10064         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10065         src/devices/grotty/grotty.man: Updated.
10067         * Makefile.in: Fix comments.
10069 2000-11-17  Werner LEMBERG  <wl@gnu.org>
10071         * tmac/safer.tmac: Empty file added (again) for compatibility
10072         reasons.
10073         * tmac/Makefile.sub: Updated.
10075 2000-11-16  Werner LEMBERG  <wl@gnu.org>
10077         * src/devices/grodvi/dvi.cc (main),
10078         src/devices/grohtml2/post-html.cc (main),
10079         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10080         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10081         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10082         (main), src/preproc/html2/pre-html.cc (main),
10083         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10084         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10085         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10086         (main), src/utils/hpftodit/hpftodit.cc (main),
10087         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10088         (main), src/utils/lookbib/lookbib.cc (main),
10089         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10090         (main): Use stdout for -v.
10091         * src/roff/groff/groff.cc (run_commands),
10092         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10093         to make direct printing to stdout possible.
10094         * src/roff/groff/pipeline.h: Updated.
10096         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10097         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10098         * src/utils/afmtodit/afmtodit.man: Updated.
10100         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10101         (version): New function.
10102         (usage): Updated.
10103         * src/utils/addftinfo/addftinfo.man: Updated.
10105         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10106         Fixing copyright dates.
10108         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10109         replacing it.
10111         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10112         version_string.
10114         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10116 2000-11-15  Werner LEMBERG  <wl@gnu.org>
10118         In all programs, make -v return immediately with exit status 0 to
10119         be compliant with the GNU standard.
10121         * src/devices/grodvi/dvi.cc (main),
10122         src/devices/grohtml2/post-html.cc (main),
10123         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10124         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10125         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10126         (main), src/preproc/html2/pre-html.cc (main),
10127         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10128         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10129         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10130         (main): Implement it.
10131         * NEWS: Updated.
10133         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
10134         and postprocessors to the -v option.
10136         * src/roff/grog/grog.pl: Implement -v.
10137         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10138         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10140         * src/roff/nroff/nroff.sh: Implement -v.
10141         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10142         * src/roff/nroff/nroff.man: Updated.
10143         
10144         * src/preproc/eqn/main.cc (main): Fix comment typo.
10146         * MORE.STUFF: Added info about djgpp port of grap.
10148 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10150         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10151         mode (or rather, implemented non-compatibility mode).
10152         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10154         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10155         replacing it -- we don't find gxditview otherwise.
10156         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10158         * src/preproc/pic/depend: Removed.  Unnecessary.
10160         Implemented dummy keyword `solid' in pic for compatibility with
10161         AT&T pic.
10163         * lex.cc (lookup_keyword): Added `solid'.
10164         * pic.y: Added SOLID with dummy rule.
10165         * pic.cc, pic_tab.h: Regenerated.
10166         * doc/pic.ms: Updated.
10168 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10170         For security reasons, don't use the current directory but the home
10171         directory while searching and scanning troffrc and troffrc-end.
10172         Similarly, replace the current directory with the home directory
10173         in the font path.
10175         * Makefile.in (fontpath, tmacpath): Remove current directory.
10177         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10178         two parameters `add_home' and `add_current'.
10179         (search_path::~search_path, search_path::command_line_dir,
10180         search_path::open_file): Remove tests for `dirs' being zero.
10181         * src/include/searchpath.h: Adjust.
10182         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10183         `safer_macro_path'.
10184         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10186         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10187         * src/roff/troff/input.cc: Use `mac_path', initialized with
10188         `macro_path'.
10189         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10190         * src/roff/troff/env.cc: Use `mac_path'.
10192         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10194         * NEWS, man/roff.man, src/roff/troff/troff.man,
10195         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10196         Updated.
10198 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10200         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10202         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10203         * configure.in: Fix typo in comment.
10204         * configure: Regenerated.
10206         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10207         copyright dates.
10209 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10211         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10213         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10214         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10215         $(systemtmacdir).
10216         Use @libdir@.
10217         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10218         * tmac/Makefile.sub (install_data): Create
10219         $(systemtmacdir) and $(localtmacdir).
10220         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10221         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10222         NEWS, doc/groff.texinfo: Updated and minor fixes.
10224         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10225         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10226         $(systemtmacdir) since the wrapper files are platform-dependent.
10228 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10230         * doc/groff.texinfo: Fix typo.
10232 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10234         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10235           tmac.doc.old -> doc-old.tmac
10236           tmac.an.old  -> an-old.tmac
10238         * tmac/tmac.*: Moved to ...
10239         * tmac/*.tmac: this.
10240         * tmac/man.local: Fix comment.
10241         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10242         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10243         Added some `FILES' sections.  More use of @...@ directives.  Other
10244         minor updates.
10245         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10246         * doc/homepage.ms, doc/groff.texinfo: Updated.
10247         * man/groff.man, man/roff.man: Updated.
10248         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10249         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10250         src/devices/grotty/grotty.man: Updated.
10251         * src/preproc/pic/pic.man: Updated.
10252         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10253         instead of -mdoc.old.
10254         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10255         * src/roff/nroff/nroff.man: Updated.
10256         * NEWS: Updated.
10258         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10260         * tmac/mm.diff: Removed -- it has no use now since the mm package
10261         is part of groff.
10263         * tmac/*: Removed trailing spaces.
10265         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10266         the tmac subdirectory also).
10268         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10269         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10270         stuff since it is no longer needed.
10272         * README, PROBLEMS: Updated.
10274 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10276         Invert current behaviour: Search first FOOBAR.tmac, then
10277         tmac.FOOBAR.
10279         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10280         (open_mac_file, macro_source): Implement it.
10281         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10282         doc/groff.texinfo, NEWS: Document it.
10284         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10285         Small documentation improvements.
10287         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10288         subdirectory also).
10290         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10292 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10294         Add local tmac directory (groff/site-tmac).
10296         * Makefile.in: Add $(localtmacdir).
10297         (uninstall_dirs): Add $(localtmacdir).
10298         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10299         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10300         in $(localtmacdir).  Create $(localtmacdir).
10301         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10302         Updated and minor fixes.
10304         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10306         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10308 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10310         Move hyphen.us to tmac directory.
10312         * src/roff/troff/hyphen.us: Removed.
10313         * src/tmac/hyphen.us: Added.
10314         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10316         Change installation structure for data files from .../groff/... to
10317         .../groff/<version><revision>/... to be conform with other GNU
10318         programs.
10320         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10321         doc/Makefile: Implement it.
10322         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10323         * configure: Updated.
10324         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10325         * NEWS: Document it.
10326         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10327         @MACRODIR@ instead of hard-coded directories.
10329 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10331         Implement $GROFF_BIN_PATH environment variable (which defaults to
10332         $bindir) used for child programs of groff and similar wrappers.
10334         * gendefs.sh: Improve documentation.
10335         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10336         src/preproc/eqn/Makefile.sub (neqn),
10337         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10338         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10339         $GROFF_BIN_PATH.
10340         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10341         $GROFF_PATH__ (the latter for communication with troff).
10342         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10343         set.
10344         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10345         doc/groff.texinfo: Document it.
10347         * doc/groff.texinfo: Improve documentation of troff's -a option.
10349 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10351         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10352         non-intrusive eol marker.
10353         (troff_output_file::determine_line_limits): New function.
10354         (troff_output_file::draw): Use it.
10355         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10356         output_pending_lines() instead of output_line().
10357         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10358         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10359         createImage): Small fixes.
10360         
10361 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10363         Replace tmac.safer with a real secure solution.
10365         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10366         system_request, pipe_output): Disable requests if in safer mode.
10367         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10368         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10369         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10370         doc/groff.texinfo, src/roff/groff/groff.man,
10371         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10373         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10374         (resource_manager::output_prolog): Replace setenv() with putenv().
10376 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10378         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10379         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10380         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10381         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10382         compilation errors with some compilers.  It seems that this code
10383         is no longer necessary -- if yes, it is easy to add some #ifdef's
10384         for that particular old-fashioned compiler.
10386         * MORE.STUFF: Added info about Meta-tbl.
10388         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10390 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10392         Adding a new escape sequence \B'...': If the string between
10393         the delimiters is a valid numeric expression, return the character
10394         `1', and `0' otherwise.  This is an analogon to \A.
10396         * src/roff/troff/input.cc (do_expr_test): Implement it.
10397         (token::next): Use it.
10398         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10400         * tmac/tmac.trace: Made independent from escape character.
10402 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10404         Adding a new request .dei: define indirect.  The first and second
10405         parameter of .dei are taken from string registers instead directly;
10406         this very special request is needed to make tmac.trace independent
10407         from the escape character (which might even be disabled).
10409         * src/roff/troff/input.cc (do_define_macro): Implement it.
10410         (define_macro_indirect): New function.
10411         (init_input_requests): Use it.
10413         Adding two requests .ecs and .ecr: Save and restore the escape
10414         character.  These two requests are needed to make tmac.trace
10415         independent from the escape character (which might even be
10416         disabled).
10418         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10419         Implement it.
10420         (init_input_requests): Use it.
10422         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10424 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10426         Adding a new option -P and new environment variable GROPS_PROLOGUE
10427         to grops, selecting a different prologue file (minor modifications
10428         by WL).
10430         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10431         src/devices/grops/ps.cc (main): Implement it.
10432         * src/devices/grops/grops.man, NEWS: Document it.
10434 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10436         * INSTALL: Add info about selecting paper format.
10438 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10440         * src/roff/troff/input.cc (main): Fixing compiler warning.
10441         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10442         strings.h from the former to the latter.
10443         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10444         stuff from the former to the latter.
10446 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10448         Implementing two new requests .tm1 and .tmc: The former is similar
10449         to .tm but can output leading spaces; its syntax is similar to
10450         defining a string, i.e., a `"' can be used to mark the beginning of
10451         the string to be written to stderr: `.tm1 " test'.  The latter is
10452         similar to .tm1 but doesn't write out a final newline character.
10454         * src/roff/troff/input.cc (terminal1, terminal_continue,
10455         do_terminal): New functions.
10456         (init_input_requests): Use them.
10457         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10459 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10461         * tmac/groff_mdoc.samples.man: Small fixes.
10463 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10465         * tmac/groff_mdoc.man: Fixing typo.
10467 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10469         Implementing a .nop request which does nothing.
10471         * src/roff/troff/input.cc (nop_request): New function.
10472         (init_input_requests): Use it.
10473         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10475 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10477         * doc/groff.texinfo: Added some comments.
10479 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10481         * src/roff/troff/TODO: Updated.
10483 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10485         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10487 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10489         * font/devps/generate/Makefile (SHELL): Define explicitly to
10490         "/bin/sh", for non-Unix platforms.
10491         (extraclean): Use a more portable "" quoting instead of a
10492         backslash (which doesn't work on DOS/Windows).
10493         
10494         * font/devlj4/generate/Makefile (extraclean): Ditto.
10496         * font/devdvi/generate/Makefile (extraclean): Ditto.
10498 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10500         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10501         src/roff/troff/troff.man: Document Eli's latest changes.
10503 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10505         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10506         macro file names of the form NAME.tmac as well as tmac.NAME.
10508 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10510         * src/include/posix.h: Remove definition of FILENAME_MAX.
10512         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10513         `sys_fatal' and `stop' function().
10515         * test-groff: Updated.
10517 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10519         Added the new troff command .output <arg> to suppress output (while
10520         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10521         registers (for passing the output dimensions to the output device).
10523         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10524         parameter.
10525         * src/roff/troff/node.h, src/roff/troff/node.cc
10526         (troff_output_file::really_print_line,
10527         ascii_output_file::really_print_line,
10528         supress_output_file::really_print_line): Use `width' parameter.
10529         (troff_output_file::really_on, troff_output_file::really_off,
10530         output_file::on, output_file::off, real_output_file::on,
10531         real_output_file::off, real_output_file::really_on,
10532         real_output_file::really_off): New functions.
10533         (real_output_file:public output_file): New variable `output_on'.
10534         (real_output_file::begin_page, real_output_file::copy_file,
10535         real_output_file::transparent_char, real_output_file::print_line):
10536         Use it.
10537         (real_output_file::print_line): Use check_output_limits.
10538         * src/roff/troff/reg.h, src/roff/troff/request.h,
10539         src/roff/troff/input.cc (assign_registers): New function to remove
10540         two `goto's.
10541         (do_ps_file): Use it.
10542         (check_output_limits, reset_output_registers, output_request,
10543         init_output_requests): New functions.
10544         (init_input_requests): Updated.
10546         Added new grohtml2 device and html2 preprocessor (coding
10547         not yet finished) which will eventually replace grohtml.
10549         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10550         Updated.
10551         * src/include/htmlindicate.h, src/include/htmlindicate
10552         (html_begin_suppress, html_end_suppress): New functions.
10553         * src/preproc/tbl/main.cc: Use it.
10554         * src/roff/groff/groff.cc: Add support for html2 device (which will
10555         automatically invoke the html2 preprocessor).
10556         * src/roff/troff/input.cc (is_html2): New variable.
10557         * src/roff/troff/troff.h, src/roff/troff/env.h,
10558         src/roff/troff/env.cc (environment::add_html_tag): New function
10559         (uses `is_html2').
10560         (environment::do_break): Use it.
10561         * font/devhtml2/*: New files.
10562         * src/devices/grohtml2: New device.
10563         * src/preproc/html2: New preprocessor.
10564         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10566 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10568         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10570 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10572         * src/include/lib.h: Provide a fix for IRIX to not include
10573         groff-getopt.h.
10575 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10577         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10578         since some non-GNU sed programs can't handle null regexps.
10579         * configure, src/preproc/eqn/Makefile.sub,
10580         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10582         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10583         bug (string.h and strings.h are both needed according to latest
10584         POSIX standard).
10586         * MORE.STUFF: Added info about unroff and troffcvt.
10588 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10590         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10591         used before -ms.
10593         * tmac/tmac.man.old: Remove unused number register.
10595         * tmac.doc: Minor documentation fix.
10597 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10599         * src/roff/groff/pipeline.c (is_system_shell):
10600         Fix typo: "monocased_shell" no longer exists.
10602 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10604         Remove FILENAME_MAX limits.
10606         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10607         that the argument length is less than FILENAME_MAX.
10608         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10609         Use struct hack to allocate and free file name.
10610         (struct xtmpfile_list): fname is now part of the structure,
10611         not a pointer to another string.
10613 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10615         * src/include/posix.h: Add a default value for FILENAME_MAX.
10617 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10619         Add support for new BSD-style man pages (with ".Dd" instead of
10620         ".TH"), so that "groff -man" understands both styles, even
10621         when running "groff -man" on a host whose system man page
10622         macros don't support ".Dd".
10624         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10625         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10626         in case the system man macros don't define Dd or TH.
10628         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10629         * tmac/tmac.an: New one-line file.
10630         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10632 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10634         * src/roff/troff/troff.man: Fixing typos.
10636 Version 1.16.1 released
10637 =======================
10639 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10641         Preparing release 1.16.1.
10643         * REVISION: Revision number set to 1.
10644         * MORE.STUFF: Added info about port to DOS.
10645         * NEWS, win32-diffs: Updated.
10647         * src/include/nonposix.h: Remove first line -- this file is used
10648         in C also.
10650         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10651         link to it.
10653 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10655         * doc/texinfo.tex: Update to latest version.
10657 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10659         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10660         commands that fail.  Don't assume that "export a=b" is valid shell
10661         syntax.  This is needed for Solaris 2.5.1.
10663         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10664         comment about missing Solaris headers.
10666         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10668 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10670         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10671         SET_BINARY().
10673         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10675         * win32-diffs: Updated.
10676         * README.WIN32: Added CRs to make all Windows editors happy.
10678         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10679         src/roff/groff/pipeline.c).
10681 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10683         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10684         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10686 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10688         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10689         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10690         are binary files.
10691         (main): Support non-Posix systems with several different styles of
10692         slash characters in file names.
10694         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10695         (main) [SET_BINARY]: Switch stdin into binary mode.
10697         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10698         (main): Support file names with several possible slash-type
10699         characters, as given by DIR_SEPS[] in nonposix.h.
10700         (main) [__MSDOS__]: If renaming the temporary index file fails
10701         because it has more than one dot in its trunk, replace the dot
10702         with an underscore and try again.
10703         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10704         Newline.
10705         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10707         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10708         (File::File): Open the input file in binary mode.  Strip CR
10709         characters from each CR-LF pair.
10710         (xbasename): Support file names with several possible slash-type
10711         characters, as given by DIR_SEPS[] in nonposix.h.
10713         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10715         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10716         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10717         [!_POSIX_VERSION]: Define for traditional Unix systems.
10718         (real_output_file::real_output_file): Remove the MSVC-specific
10719         call to popen, use instead POPEN_WT, appropriately defined on
10720         nonposix.h.  #include nonposix.h.
10721         (real_output_file::~real_output_file): Remove the MSVC-specific
10722         call to pclose, a suitable macro is now defined on nonposix.h.
10723         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10724         and WEXITSTATUS instead of assuming traditional Unix
10725         interpretation of the status returned by pclose.
10727         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10728         call to popen, use POPEN_RT instead (appropriately defined on
10729         nonposix.h).  #include nonposix.h.
10730         (ps_bbox_request): Open the PostScript file in binary mode.
10731         Close the file after processing it.
10732         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10733         nonposix.h.
10735         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10736         A version of run_pipeline that doesn't use `fork'.
10737         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10738         (system_shell_name, system_shell_dash_c)
10739         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10740         the ugliness of testing DOS/Windows file names for equality, and
10741         support both stock shells and ports of Unix shells.
10743         * src/roff/groff/groff.cc: #include nonposix.h.
10744         (BSHELL): Definition moved to nonposix.h.
10745         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10746         instead of a literal "-c".
10747         (xbasename): Support file names with several possible slash-type
10748         characters, as given by DIR_SEPS[] in nonposix.h.
10749         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10750         of literal strings.
10752         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10753         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10755         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10756         pic_tab.h.
10758         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10760         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10761         eqn_tab.h.
10763         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10765         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10766         P_tmpdir is defined, use it instead of the literal "/tmp".
10767         (remove_tmp_files, add_tmp_file): New functions.
10768         (xtmpfile): Record temporary files and register an atexit function
10769         to delete them explicitly, instead of relying on the OS to do
10770         that, which doesn't work on non-Unix systems.
10772         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10773         (search_path::search_path): Use PATH_SEP instead of a literal
10774         colon.
10775         (search_path::command_line_dir): Ditto.
10776         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10777         to support non-Posix systems.
10779         * src/libs/libbib/search.cc: #include nonposix.h.
10780         (search_list::add_file): Open the file in binary mode.
10782         * src/libs/libbib/linear.cc: #include nonposix.h.
10783         (file_buffer::load): Remove \r characters preceding \n from the
10784         loaded buffer.
10786         * src/libs/libbib/index.cc: #include nonposix.h.
10787         (make_index_search_item): Open index_filename in O_BINARY mode.
10788         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10789         characters before \n characters.
10790         (index_search_item::check_files): Open files in binary mode.
10791         (index_search_item::munge_filename): Support DOS-style file names
10792         with backslashes and drive letters, use IS_ABSOLUTE.
10794         * src/devices/grops/ps.cc: #include nonposix.h.
10795         (main) [SET_BINARY]: Switch stdout to binary mode.
10797         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10798         (main) [SET_BINARY]: Switch stdout to binary mode.
10800         * src/devices/grolbp/lbp.cc: #include nonposix.h
10801         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10803         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10804         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10805         nonposix.h).
10806         (main) [SET_BINARY]: Switch stdout to binary mode.
10807         [_MSC_VER]: Remove an explicit call to _setmode.
10809         * src/include/nonposix.h: New file.
10811         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10812         operation when building with DJGPP.
10813         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10814         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10815         ENVSETUP.
10817         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10818         MS-DOS.
10819         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10820         etc. can include a semi-colon on DOS/Windows.
10821         (depend.temp): Use depend1.temp instead of depend.temp1, to
10822         prevent files from overerwiting each other on 8+3 filesystems.
10824         * gendef.sh (t): Change definition to work with DOS/Windows.
10826         doc/groff.texinfo: Apart of some typo corrections, I also changed
10827         some index entris, to make them more non-ambiguous, and also put
10828         @ignore around some parts that are not yet written, to allow the
10829         Info output be readable.
10831 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10833         Replaced specific checks for function declarations with a generic
10834         routine taken from GNU bfd.
10836         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10837         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10838         * configure.in: Use it.
10839         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10840         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10841         src/roff/groff/groff.cc: Use it.
10842         * Makefile.in, configure: Updated.
10844 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10846         * src/devides/grolbp/lbp.h: Removed unused variables.
10848 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10850         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10851         strncasecmp().
10853 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10855         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10856         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10857         * configure.in: Use it.
10858         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10859         * configure, Makefile.in: Updated.
10861         * configure.in: Add test for strncasecmp().
10862         * src/include/lib.h: Use it.
10864 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10866         * src/preproc/grn/Makefile.sub: Add MLIB.
10868 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10870         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10872 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10874         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10876         * PROBLEMS: Small update.
10878         * src/devices/grolbp/lbp.cc: Various small fixes.
10880 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10882         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10884         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10886 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10888         * man/roff.man: Removed unused macro.
10890 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10892         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10893         This is needed e.g. if you do
10894         `make distclean; ./configure; make dist'.
10896 Version 1.16 released
10897 =====================
10899 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10901         Adding font CWI (constant width italic) to devdvi.
10903         * font/devdvi/CWI: New file.
10904         * font/devdvi/generate/Makefile: Add generating rule.
10905         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10906         tmac/tmac.dvi: Use it.
10907         * NEWS: Announce it.
10909         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10910         * font/devlj4/generate/Makefile: Cosmetic changes only.
10912         * man/groff.man: Removed most of the redundant description of
10913         special characters (which is in groff_char.man).  Added font
10914         translation CB->CR for devdvi.  Other minor fixes.
10916         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10917         (registered) symbols.
10919 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10921         * doc/Makefile: Added rule for creating info files.
10923         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10924         AMS font metrics.
10925         * font/devdvi/generate/Makefile: Fixed dependencies.
10927         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10928         NewCentury Schoolbook!
10929         * font/devps/generate/afmname: Will now run with GNU awk.
10930         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10931         * font/devps/generate/Makefile: Cosmetic changes only.
10933 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10935         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10936         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10937         `.SS' now produces a heading with a smaller size than `.SH'. 
10938         Completely formatted.
10939         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10941         * man/groff.man: Improved table appearance.  Use of `eo' request
10942         to reduce number of doubled backslashes in macro definitions.
10943         Replacing `\e' with `\(rs'.  Other minor fixes.
10945         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10946         to have correct line number.
10948         * INSTALL: Small improvement.
10950 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10952         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10953         WL).
10955 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10957         * man/groff.man: Complete update (with a lot of corrections by WL).
10959 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10961         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10963         * font/*/*: Implement it.
10964         * man/groff_char.man, NEWS: Document it.
10966         * src/include/unix.h: Removed.  It isn't used.
10968         * doc/groff.texinfo: Slight improvements.
10970 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10972         * README, win32-diffs: Small fixes and improvements.
10974 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10976         * FDL: New file (the Free Documentation License version 1.1).
10978         * doc/groff.texinfo: Added many start-up values for gtroff.
10979         Some structural improvements of the source code.
10981 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10983         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10984         * src/roff/troff/troff.man: Added info about troffrc-end.
10986 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10988         * Makefile.in (EXTRADIRS): Fix typos.
10989         (dist): Handle deletion of old .tar.gz file correctly.
10990         (DISTDIRS): Include all tty output devices.
10992         * doc/groff.texinfo: Adding more cross references; countless other
10993         fixes.
10995 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10997         * MORE.STUFF: Added Robert Marks's utilities.
10999 2000-05-12  Werner LEMBERG  <wl@gnu.org>
11001         Added win32 port contributed by Blake McBride
11002         <blake@florida-software.com>.
11004         * README.WIN32, win32-diffs: New files.
11005         * NEWS: Updated.
11007         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11008         (tmove, tmove2): Added parentheses to avoid compiler warnings.
11009         (change): Removed unused variables.
11011         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11012         (savebounds): Changed return value from `int' to `void'.
11013         * src/preproc/grn/hdb.cc: Ditto.
11015         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11016         final backslash in comment to avoid compiler warning.
11018         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11020         * doc/groff.texinfo: More fixes.
11022 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
11024         * tmac/tmac.doc: Documentation fix.
11026 2000-05-11  Werner LEMBERG  <wl@gnu.org>
11028         * doc/groff.texinfo: Reading the source code shows up a lot of
11029         omissions and incorrect data...  More conversion to @Deffn macros.
11031 2000-05-10  Werner LEMBERG  <wl@gnu.org>
11033         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11034         dependency.
11036         * src/roff/troff/request.h: Removing unused `no_break_flag'.
11038 2000-05-09  Werner LEMBERG  <wl@gnu.org>
11040         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11041         improvements.
11043         * doc/groff.texinfo: Extended history section.  More conversion to
11044         @Deffn macros.  More .tr documentation.
11046 2000-05-07  Werner LEMBERG  <wl@gnu.org>
11048         * doc/groff.texinfo: Completed tab section.  Added info about
11049         fields.
11051 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
11053         * PROBLEMS: Describe configure script fix for OS/390 Unix.
11055 2000-05-05  Werner LEMBERG  <wl@gnu.org>
11057         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11058         LaTeX 2e).
11059         * NEWS: Document it.
11061         * man/troff.man: Minor optical improvements.
11063 2000-05-03  Werner LEMBERG  <wl@gnu.org>
11065         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11067         * font/*/*: Implement it.
11068         * man/groff_char.man, NEWS: Document it.
11070 2000-05-02  Werner LEMBERG  <wl@gnu.org>
11072         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11073         expansion.
11074         * NEWS: Document the three new man pages.
11076         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11077         * configure: Updated.
11079         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11081 2000-05-01  Werner LEMBERG  <wl@gnu.org>
11083         Added grap support to grog.
11085         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11086         * src/roff/grog/grog.man: Document it.
11088         * doc/groff.texinfo, NEWS: Add info about grap support.
11090         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11091         (with slight fixes by me).
11093         * tmac/groff_tmac.man: New file documenting tmac mechanism.
11094         * tmac/Makefile.sub: Add groff_tmac.man.
11095         * man/roff.man: New file giving overview of roff system.
11096         * man/troff.man: A short reference of troff.
11097         * man/Makefile.sub: Add roff.man and troff.man.
11099 2000-04-30  Werner LEMBERG  <wl@gnu.org>
11101         Added grap support to groff.
11103         * src/roff/groff/groff.cc: Implement it.
11104         * src/roff/groff/groff.man: Document it.
11106         * src/devices/grotty/grotty.man: Add cp1047 device.
11107         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11108         Ditto.
11109         * src/roff/groff/groff.man: Ditto.
11110         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11111         * doc/groff.texinfo: Ditto.
11113         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11114         for cp1047.
11116 2000-04-29  Werner LEMBERG  <wl@gnu.org>
11118         * man/groff_char.man: Add `pc' glyph.
11119         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11120         * tmac/tmac.tty: Add `pc' glyph.
11121         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
11122         we use cp1047 output device.
11124         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11125         there are still hardcoded latin1->unicode values in utf8's font
11126         definition files.
11127         * configure: Updated.
11128         * NEWS: Minor clarification.  Updated.
11130         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
11131         Unix.
11133 2000-04-28  Werner LEMBERG  <wl@gnu.org>
11135         Adding EBCDIC code page 1047.
11137         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11138         font/devcp1047/DESC.proto: New files.
11140         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11141         either ascii/latin1 or cp1047.
11142         * Makefile.in: Use it.
11143         * configure: Updated.
11145         Replacing and/or adding `md' (mathdot) glyph with `pc'
11146         (periodcentered) in all text fonts.
11148         * font/*/*: Change it.
11150 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11152         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11154         * configure.in: Add check for strings.h.
11155         * src/include/driver.h: Use HAVE_STRINGS_H.
11156         * src/devices/grolbp/lpb.cc: Remove string.h.
11158         * src/include/groff-getopt.h: New file.  It will be used instead of
11159         getopt.h (to be included in lib.h) to avoid endless problems with
11160         picky C++ compilers.
11161         * src/include/lib.h: Use groff-getopt.h.
11162         * src/include/Makefile.sub: Updated.
11164         * configure: Updated.
11165         * Makefile.in: Updated.
11167         * NEWS: Mention EBCDIC support.
11169 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11171         * TODO: Some additions.
11173 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11175         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11176         of mso request.
11178 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11180         * src/roff/troff/troff.man: Minor fixes.
11182 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11184         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11185         `.T' string register and the incompatible definition of the `.T'
11186         number register (compared to Unix troff).
11188         * man/groff_char.man: Add some missing characters.
11189         * font/devutf8/NOTES: Update.
11191 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11193         * src/include/htmlindicate.h, src/include/lib.h,
11194         src/include/posix.h: Fix copyright.
11196         * src/include/Makefile.sub: Update.
11198 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11200         * src/roff/troff/input.cc (input_char_description): Removing
11201         superfluous space char.
11203         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11205         * doc/groff.texinfo: Document EBCDIC.
11207 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11209         Introducing `shc' as the glyph name for the soft hyphen character.
11211         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11212         font/devlatin1/R.proto: Use it.
11214         * NEWS: Updated.
11216 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11218         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11219         dependency on ASCII order.
11221 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11223         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11224         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11226         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11227         to increase portability.
11229 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11231         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11232         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11233         the generic `\n' if under OS/390 Unix.
11235         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11237         * configure: Regenerated.
11239 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11241         * doc/groff.texinfo: More conversions to @Deffn.
11243 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11245         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11246         with `:'.
11248         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11250 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11252         * doc/groff.texinfo: More conversions to @Deffn.
11254 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11256         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11257         Updated to latest version (glibc 2.1.3).
11259 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11261         * doc/Makefile (clean): Include more index files.
11262         Add rule texinfo->dvi.
11264 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11266         * doc/groff.texinfo: Added new index `op' for operators.  More
11267         info on end of sentence characters.  More use of @Deffn.
11269 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11271         * */*.man: Adding a note that a whitespace can be inserted between
11272         a command line option and its parameter -- we are using GNU getopt.
11274         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11276 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11278         Correct anachronism of calling the man macro file with `-man'
11279         instead of `-m man' etc.
11281         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11282         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11283         load tmac.<package>.
11285         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11287         * NEWS: Updated.
11289         * doc/groff.texinfo: Updated.
11291         * tmac/groff_man.man: Copyright added.
11293 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11295         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11296         typeset the request resp. escape name with a tt font -- due to a
11297         bug in texinfo.tex it is necessary to use the `-e' switch with
11298         texi2dvi.
11300         Improving info about usage of groff units.
11302         Other minor fixes.
11304 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11306         * doc/groff.texinfo: Added section about man macro package
11307         (I've basically taken groff_man.man).  Introducing new indices `ma'
11308         for macros/strings and `gl' for glyph names.  Other minor fixes.
11310         * tmac/groff_man.man: Fixed some typos.
11312 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11314         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11315         Other minor fixes.
11317         * doc/texinfo.tex: New file.
11319 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11321         * doc/groff.texinfo: Improved section on number registers.  Other
11322         minor updates.
11324 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11326         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11327         synopsis.
11329         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11330         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11331         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11332         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11334         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11336         * src/roff/grog/grog.man: Updated copyright date.
11338 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11340         * configure.in: Added test for strdup.
11342         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11343         is available.
11345         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11347         Other minor fixes.
11349 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11351         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11353 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11355         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11356         compilers silent.
11357         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11358         * src/include/lib.h: Remove some spaces.
11360 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11362         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11363         initializers from arguments (some compilers don't like this).
11365 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11367         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11368         used by pic and eqn to tell grohtml where the graphic regions start
11369         and end.
11370         * src/libs/libgroff/Makefile.sub: Use it.
11371         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11372         graphic_start() and graphic_end() from htmlindicate.cc.
11374 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11376         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11377         * tmac/groff_man.man: More fixes.
11379 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11381         * doc/Makefile: Added texput.log to the `clean' target.
11382         * doc/groff.texinfo: Added info about delimiters for escapes.
11384 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11386         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11387         other graphic formats.
11389 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11391         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11392         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11393         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11394         files.
11396 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11398         * doc/groff.texinfo: Spelling fixes.
11400 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11402         * tmac/groff_man.man: Completely revised to cover everything in
11403         tmac.an.
11405         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11406         Other minor fixings.
11407         * src/roff/troff/env.cc (environment_copy): Improve error message and
11408         fix itoa->i_to_a.
11409         * src/roff/troff/TODO: Updated.
11411         * doc/Makefile: Bug fixes -- this is still provisional, though...
11413         * tmac/eqnrc: Small fixes.
11415 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11417         Adding a request `evc' to copy environments.
11419         * src/roff/troff/env.cc (environment::copy, environment_copy):
11420         Implement it.
11421         * src/roff/troff/env.h: Add prototype.
11423 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11425         Adding strsep() -- Solaris 8 doesn't have it.
11427         * configure.in: Test it.
11428         * src/devices/grolbp/lbp.cc: Add code.
11430 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11432         * src/roff/troff/div.cc (macro_diversion::output,
11433         top_level_diversion::output): Fixing an incompatibility with
11434         original troff: \x'0' updates the .a register also.  Thanks to
11435         <Andries.Brouwer@cwi.nl> for pointing this out.
11436         * doc/groff.texinfo: Document it.
11438         * Makefile.in: Create Makefile.dep if necessary before calling the
11439         submake process to avoid warning about nonexistent file.
11441         * NEWS, PROJECTS: Updated.
11443 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11445         * tmac/troffrc: Add tmac.lbp.
11447 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11449         * tmac/tmac.lbp: New file.
11450         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11451         command.
11453 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11455         * Makefile.in: Fixing $(subdir).
11457         * README, NEWS: Small fixes.
11459         * test-groff: Adding path to grolbp.
11461         * configure.in: The (new) file src/xditview/Imakefile.in will be
11462         also configured -- it is now possible to build gxditview in a
11463         directory different from $srcdir.
11465 2000-03-02  Blake McBride  <blake@florida-software.com>
11467         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11469         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11471 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11473         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11474         files.
11476 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11478         Adding GNU getopt to the groff distribution.
11480         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11481         New files.
11482         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11483         * aclocal.a4: Remove GROFF_GETOPT function.
11484         * configure.in, Makefile.in, PROBLEMS: Update.
11485         * src/include/lib.h: Replace getopt tests with getopt.h.
11486         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11488         * doc/groff.texinfo: Further checking/updating.  Adding more index
11489         entries.
11491         * man/groff_out.man: Fix nroff mode activation (for emacs).
11492         * man/groff_font.man: Add missing ligature.
11494 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11496         * doc/groff.texinfo: Further checking/updating.  Adding more index
11497         entries.
11499         * src/devices/grolbp/grolbp.man: Added a comment line at the
11500         beginning of the file (similar to shell scripts) which indicates
11501         that `tbl' should be used as a preprocessor.
11503 2000-02-27  Blake McBride  <blake@florida-software.com>
11505         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11506         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11508         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11509         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11510         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11511         src/include/lib.h, src/libs/libgroff/errarg.cc,
11512         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11513         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11514         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11515         src/roff/troff/div.cc, src/roff/troff/env.cc,
11516         src/roff/troff/input.cc, src/roff/troff/node.cc,
11517         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11518         if_to_a() to avoid name clashes.
11519         * src/include/posix.h: Don't use unistd.h.
11520         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11521         clause for integrating non-Unix xtmpfile() code.
11522         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11523         structure; use "rt" for popen() in pipe_source(); add getpid()
11524         dummy function.
11525         * src/roff/troff/node.cc: Use special versions of popen() in
11526         real_output_file() and pclose() in ~real_output_file().
11528 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11530         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11531         LBP-8 series laser printers).  This code has been contributed by
11532         Francisco Andrés Verdú <pandres@dragonet.es>.
11534         * src/devices/grolbp/*: The grolbp output device.
11535         * font/devlpb/*: The font description files.
11536         * Makefile.in: Add grolpb and devlbp subdirectories.
11538         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11539         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11540         typographic fixes.
11542         * doc/groff.texinfo: Further checking/updating.  Adding more index
11543         entries.
11545         * NEWS: Updated.
11547         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11549         * man/groff_font.man: Adding info about obsolete DESC keywords.
11550         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11551         keywords.
11553 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11555         * src/preproc/grn/grn.man: Added info about the gremlin file format
11556         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11558 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11560         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11561         friends to be non-integer.
11563         * src/preproc/grn/grn.man: Document it.
11565         * doc/groff.texinfo: Further checking/updating.  Adding more index
11566         entries.
11568 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11570         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11571         line thicknesses to be integer multiples of this value.
11573         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11574         corresponding code doesn't work (yet).
11576         * doc/groff.texinfo: Further checking/updating.  Adding more index
11577         entries.
11579 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11581         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11582         specify line thickness instead of base units.  The new default
11583         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11584         thick lines respectively.
11586         Removed unused variable `prevval'.
11588         * src/preproc/grn/grn.man: Updated.
11590 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11592         * src/preproc/grn/main.cc: Slight formatting.
11594         * src/roff/groff/groff.man: Formatting fix.
11595         * src/preproc/grn/grn.man: Ditto.
11597         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11599         * doc/groff.texinfo: Further checking/updating.
11601 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11603         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11605         * test-groff: Added grn subdir to path.
11607         * doc/groff.texinfo: Some restructing and other small improvements.
11609         * src/roff/groff/groff.cc (help): Fixed info string.
11611 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11613         * doc/meref.me: Fix description of .GS request.
11615         * src/roff/troff/troff.man: Fixing typo.
11617         Adding the `grn' preprocessor for gremlin graphic files.
11619         * src/preproc/grn/*: This is the Berkeley distribution written by
11620         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11621         Senderowicz and Werner Lemberg.
11623         * doc/grnexampl.{me,g}: A sample for grn.
11625         * Makefile.in: Added subdirectory entry for grn.
11627         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11628         called with the switch `-g'.
11630         * src/roff/groff/groff.man: Updated.
11632         * src/roff/grog/grog.{man,pl,sh}: Updated.
11634         * NEWS: Updated.
11636 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11638         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11639         parametrically polymorphic.
11641         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11642         and the alterations to xtmpfile.
11643         xtmpfile can be requested to return the filename created
11644         and asked not to unlink the temp file.  The default behaviour
11645         if parameters are absent is exactly the same as before.
11647 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11649         A new request `length' is available which returns the length of a
11650         string in a number register:
11652         * src/roff/troff/input.cc (length_macro): Implement it.
11653         * src/roff/troff/input.cc (init_input_requests): Register it.
11655 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11657         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11658         of the `substring' request.
11660         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11661         request.
11663         * src/roff/troff/TODO, NEWS: Updated.
11665 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11667         * src/roff/groff/groff.man: Added an example.
11669 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11671         I've considerably modified the directory structure of the
11672         distribution to get a more vertical layout.  For example, the number
11673         of top level directories has been reduced from 42 to 6.
11675         As a consequence, many changes, especially to the makefiles, were
11676         necessary:
11678         * The makefile variables `top_builddir' and `top_srcdir' have been
11679         introduced.  Virtually all relative paths have been replaced with
11680         absolute ones using these two variables.
11682         * Dependencies (in the files `Makefile.dep') are no longer part of
11683         the distribution.  Instead, they are created during a `make install'
11684         in the build directory.
11686         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11687         make `top_srcdir' and `top_builddir' absolute.
11689         Some other changes:
11691         * Man pages now depend on the files `VERSION' and `REVISION'.
11693         * The added shell script `mkinstalldirs' will replace `mkdir' in
11694         almost all cases.
11696         * VERSION: Version number increased to 1.16.
11698 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11700         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11702         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11703         (after an update of the mm stuff).
11705         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11707 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11709         The .psbb request will now also accept Mac PS images (i.e. using LF
11710         as the EOL character).
11712         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11713         (with slight modifications).
11714         * troff/input.cc (do_ps_file): Use it.
11716         * test-groff: Add grohtml and grolj4 output devices to PATH.
11718 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11720         * NEWS, MORE.STUFF: Updated.
11722 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11724         Add the `srand' command to pic.
11726         * pic/lex.cc, pic/pic.y: Implement it.
11727         * pic/pic.man: Document it.
11728         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11730 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11732         Add a new request `.psbb'.  This does exactly what the external
11733         program psbb did.  It scans a PostScript image file for a
11734         %%BoundingBox comment and extracts the bounding box values (in
11735         PostScript units) which are then stored in the four new (read-only)
11736         number registers `llx', `lly', `urx', and `ury'.
11738         This will allow the usage of the .PSPIC macro without worrying
11739         about unsafe behaviour of groff, i.e., it will work without the
11740         `-U' switch of groff.
11742         * troff/input.cc: Implement it.
11743         * tmac/tmac.pspic: Use it.
11744         * troff/troff.man, grops/grops.man, NEWS: Document it.
11745         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11747         This is bloody C code simply adapted from psbb.c!  Any improvements
11748         welcome.
11750 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11752         * man/groff_font.man: Minor clarifications.
11754         * NEWS: Updated.
11756 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11758         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11760 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11762         * man/groff_font.man: Brought up to date regarding tcommand
11763         extensions.
11764         * libgroff/font.cc: Handle everything after `--' as a comment
11765         in the font files.
11766         * devps/*: Added comment delimiter inside devps font files.
11768 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11770         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11771         \fC...\fP (which now works as expected).
11773         * troff/troff.man: Fix typo.
11775 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11777         Completed the pass_filenames implementation in troff.
11779         * libdriver/input.cc: Will read the new `F' tcommand.
11780         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11781         * troff/input.cc: Use it.
11783 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11785         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11786         font will now be updated even if an invalid font is selected.
11788 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11790         * doc/homepage.ms: Updated for new tmac.arkup.
11792         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11794         * tmac/tmac.arkup: Cleanup.
11796         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11798         Removed obsolete .LINK macro completely.
11800         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11801         will be immediately appended to the second argument (to be used with
11802         punctuation, for example).
11804         Disabled .CDFTP macro temporarily for security reasons.
11806         * tmac/groff_markup.man: Complete revision for latest changes in
11807         tmac.arkup -- note that it does not yet format correctly with
11808         grohtml :-(
11810 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11812         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11813         * devutf8/R.proto: Add mappings for wp, lh, rh.
11814         * devutf8/NOTES: Updated.
11816 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11818         * doc/groff.texinfo: Updated version/copyright info.
11820 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11822         Added support for two new directives in device descriptions:
11823         `pass_filenames' (to pass the input file name to the output device)
11824         and `use_charnames_in_special' (to support e.g. accented characters
11825         in the `X' request).
11827         * include/font.h, troff/charinfo.h: Declare it.
11829         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11831         * devhtml/DESC: Use it.
11833         * troff/input.cc: New function encoded_char.
11835         * troff/token.h: Add test for `specialness'.
11837 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11839         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11840         mistake from the list of files to be installed.
11842 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11844         * README: Added info how to apply patches.
11846 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11848         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11850 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11852         * troff/input.cc: Add support for troffrc-end.
11854         * tbl/main.cc: Altered to issue table-start and table-end special
11855         characters if using the html device.
11857         * devhtml/*: Modified font files to incorporate html encoding of
11858         characters.
11860         * tmac/groff_markup.man: New file documenting tmac.arkup.
11862         * tmac/troffrc-end: New file.  This is invoked after all user
11863         specified macros.  Currently used by the html device to include
11864         tmac.html.  Thus no need for users to specify -mhtml anymore.
11866         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11867         (MAN7): Add groff_markup.man.
11869         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11871         * tmac/troffrc: tmac.arkup will now be called for the html device.
11873         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11874         extra device specific information about fonts.
11876         * doc/homepage.ms: New file.  It is an example how an HTML home page
11877         could look like with grohtml.
11879         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11881 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11883         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11884         of Im, Re.
11886         * devutf8/NOTES: Updated.
11888 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11890         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11891         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11892         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11893         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11894         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11895         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11896         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11897         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11898         warnings.
11900         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11902 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11904         grolj4: Paper size will be searched case-insensitively.
11906         * include/lib.h: Add check for strcasecmp().
11907         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11908         * configure.in: Check for strcasecmp().
11910 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11912         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11913         `REVISION'.
11915 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11917         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11918         revision scheme.
11920         Add a new read-only register, `.Y', which contains the groff
11921         revision.
11923         * troff/input.cc (init_input_requests): Define it.
11924         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11925         * doc/groff.texinfo, troff/troff.man: Document it.
11927         * libgroff/Makefile.sub (version.cc): Add definition of
11928         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11929         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11930         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11931         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11932         troff/input.cc, pfbtops/pfbtops.c: Use it.
11934 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11936         Add a revision scheme to the groff package.
11938         * REVISION: New file.
11939         * libgroff/Makefile.sub (version.cc): Use it to define
11940         `revision_string[]'.
11941         * grops/psrm.cc: Use revision_string (converted to an unsigned
11942         integer) in constructor of resource_manager.
11944 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11946         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11947         files.
11948         * Makefile.in (DEVDIRS): Add devutf8.
11949         * grotty/tty.cc: Include device.h.
11950         (glyph): Change type of `code' to `unsigned int'.
11951         (tty_printer): New field is_utf8.  Constructor takes device argument.
11952         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11953         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11954         (tty_printer::put_char): New function.
11955         (tty_printer::end_page): Use put_char() instead of ::putchar().
11956         (make_printer): Pass device to tty_printer constructor.
11957         * nroff.sh: Determine default device by calling 'locale'.  As a
11958         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11959         Recognize UTF-8 locales.
11960         * tmac/eqnrc: Recognize utf8 like latin1.
11961         * tmac/troffrc: Device utf8 needs tmac.tty.
11963 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11965         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11967 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11969         Add a new predefined writeable number register, `year',
11970         which contains the current year.
11972         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11973         * tmac/tmac.s: Use it.
11974         * troff/input.cc (init_registers): Initialize it.
11976 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11978         * PROBLEMS: Fixed typo.
11980 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11982         * PROBLEMS: Add Y2k advice for the yr number register.
11984 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11986         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11988 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11990         * tmac/tmac.arkup: Slight modification of macros to provide better
11991         appearance for non-HTML formats.
11993 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11995         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11996         does not automatically translate to malloc(n) on all OSes
11997         (e.g., SunOS) so do it explicitly.  Also, check the returned
11998         value.
12000 2000-01-01  Werner LEMBERG  <wl@gnu.org>
12002         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
12004         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12005         expects this variable
12007 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
12009         * doc/Makefile: Added instructions to create HTML and text
12010         versions of some files.
12012 1999-12-31  Werner LEMBERG  <wl@gnu.org>
12014         * Updated INSTALL.gen.
12016         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12017         better resp. correctly with non-HTML devices.
12019 Version 1.15 released
12020 =====================
12022 1999-12-28  Werner LEMBERG  <wl@gnu.org>
12024         * NEWS, VERSION: Changed to 1.15
12026 1999-12-27  Paul Eggert  <eggert@twinsun.com>
12028         * nroff/nroff.man: -S is safer, not safe.
12030         * groff/groff.cc (main): Use `safer', not `safe', in variable
12031         names.  This does not change the behavior.
12033         * troff/input.cc (main): Likewise.
12035         * nroff/nroff.sh: Likewise.
12037         * troff/input.cc (prepend_string): New function.
12038         (main): Prepend -msafer, so that we check macro libraries for
12039         safety.
12041         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12043 Version 1.14 released
12044 =====================
12046 1999-12-26  Werner LEMBERG  <wl@gnu.org>
12048         * NEWS, VERSION: Changed to 1.14.
12050 1999-12-24  Werner LEMBERG  <wl@gnu.org>
12052         * refer/refer.cc: Fixing the last fix.
12054 Version 1.13 released
12055 =====================
12057 1999-12-23  Werner LEMBERG  <wl@gnu.org>
12059         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12060         number disappear.
12062         * NEWS: Updated.
12064         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12066         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12067         document conventions, the version number must be a real.
12069 Version 1.12.1 released
12070 =======================
12072 1999-12-22  Werner LEMBERG  <wl@gnu.org>
12074         * VERSION: Changed to 1.12.1.
12076 1999-12-22  Alan Rooks  <arooks@istar.ca>
12078         * refer/refer.cc (do_file): Slight modification to satisfy the
12079         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12080         UnixWare 7.1.
12082 1999-12-20  Werner LEMBERG  <wl@gnu.org>
12084         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12085         notices.
12087         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12088         list of unsafe requests.
12090         * pic/pic.man: Fixed a typo.
12092         * man/groff_out.man: Fixed a typo.
12094 1999-12-18  Werner LEMBERG  <wl@gnu.org>
12096         * Makefile.in: Doc fixes.
12098 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
12100         * groff/groff.cc: Missing `U' option added to getopt().
12102         * troff/troff.man: Missing `U' option added to synopsis.
12104 Version 1.12 released
12105 =====================
12107 1999-12-14  Werner LEMBERG  <wl@gnu.org>
12109         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12110         to the synopsis.
12112         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12113         with the more appropriate terms `safer' and `unsafe'.
12115         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12116         sys_nerr and sys_errlist[].
12118         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12120         * pic/pic.y, pic/pic.cc: Added check for fmod().
12122 1999-12-13  Werner LEMBERG  <wl@gnu.org>
12124         * VERSION: Changed to 1.12.
12126         Here some patches from various sources; most of them taken from
12127         the Debian distribution.
12129         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12130         tmac/Makefile.sub: New files copied directly from the NetBSD
12131         distribution.  Probably, some additional adaptation later on is
12132         necessary...
12134         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12135         of unsafe requests.
12137         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12138         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12139         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
12140         (`-S') is now the default.
12142         * README, NEWS: Updated.
12144 1999-12-09  Werner LEMBERG  <wl@gnu.org>
12146         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12148         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12150 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12152         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12153         grief than relief today.  Additionally, it is against the GNU
12154         coding standards.
12156         * configure: Recreated.
12158 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12160         * configure.in: Added GROFF_LIBM.
12162         * configure: Recreated.
12164         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12165         necessary.
12167         * Makefile.in: Added definition of $(LIBM).
12169         * Makefile.comm (LIBM): Removed.
12171         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12173 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12175         * doc/Makefile: Added rule for generation pic.html.
12177         (clean): Files produced by grohtml will be removed also.
12179         * doc/pic.ms: Small fix.
12181         * tmac/tmac.html: Fixed suppression of headers.
12183 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12185         * tmac/tmac.html: Fixing horizontal arrows.
12187         Turning off hyphenation.
12189         * tmac/tmac.an: Improved support for grohtml; better indentation,
12190         no footers/headers.
12192 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12194         * tmac/tmac.arkup: Added CDFTP macro
12196         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12197         macros.
12199         * tmac/troffrc: Some additions for HTML stuff.
12201 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12203         * tmac/tmac.html: Small changes.
12205 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12207         * doc/groff.texinfo: Minor fixes.
12209 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12211         * devhtml/TR: Changed spacewidth to 3.
12213         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12215         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12217         * tmac/tmac.arkup: New file.
12219         * grohtml/ChangeLog: New file.
12221 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12223         * doc/groff.texinfo (Common Features): Added Copying chapter.
12224         Changed format to @smallbook.
12226 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12228         * NEWS: Added info about groff.texinfo.
12230         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12231         warning messages.
12233 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12235         * groff/groff.man: More updates.
12237 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12239         * doc/groff.texinfo: New file.  This manual is still very
12240         rudimentary.  It has been originally contributed by Trent
12241         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12242         additions by me.
12244         * INSTALL: Added information about the `doc' subdir
12246         * troff/troff.man: Minor fixes.
12248         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12249         reordered options.
12251         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12253         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12254         also, otherwise it is included itself in another call of `make
12255         dist'.
12257         * groff/groff.cc (synopsis): Removed superfluous space.
12259         * PROJECTS, PROBLEMS, NEWS: Updated.
12261         * VERSION: Updated to 1.12beta.
12263         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12265         * README: Updated: Included documentation about CVS repository,
12266         mailing lists, and daily snapshots.
12268         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12270 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12272         * tmac/tmac.an: If the tag didn't fit into the space that the
12273         macro `TP' specifies, the rest of the tag went into the space for
12274         the next line.
12276 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12278         * grolj4/lj4.cc: Added duplex printing (option `-d').
12280         * grolj4/grolj4.man: Document duplex printing.
12282 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12284         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12285         non-GNUish sed programs.
12287         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12288         definition.
12290         * configure.in (LIBS): Added `-lc'
12292         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12294         * pic/tex.cc (solid_arc): Casting M_PI to double.
12296         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12298         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12299         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12300         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12302         * groff/groff_man.man: New file.  This manual page was originally
12303         written for the Debian GNU/Linux system by Susan G. Kleinmann
12304         <sgk@debian.org>.
12306         * eqn/list.cc (list_box::compute_metrics,
12307         list_box::compute_sublist_width): Removed variable declaration to
12308         avoid shadowing warnings.
12310         * grops/psrm.cc (resource_manager::process_file): Ditto.
12312         * tfmtodit/tfmtodit.cc (main): Ditto.
12314         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12315         to avoid shadowing warnings.
12317         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12318         shadowing loop variable.
12320         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12322 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12324         New grohtml frontend to convert groff input to html.
12326         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12328         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12330         * tmac/eqnrc: Added html device.
12332         * tmac/tmac.html: New file.
12334         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12335         (troff_output::start_picture, troff_output::finish_picture),
12336         tbl/main.cc (process_input_file):
12337         Surrounded output with `graphics_start' and `graphics_end' so that
12338         the html driver can identify non-text portions.
12340         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12341         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12342         grotty/tty.ps (tty_printer::set_char): Additional parameter
12343         `name'.
12345         * include/printer.h: Class printer: New function
12346         set_char_and_width; new variables (is_char_named, is_named_set,
12347         named_command, named_char_s, named_char_n) to hold information
12348         about named characters -- needed by the html driver.
12350         * libdriver/printer.cc (printer::set_ascii_char,
12351         printer::set_special_char): Use set_char_and_width.
12353         * devhtml/*: New device files for html driver.
12355         * grohtml/*: New driver grohtml.
12357 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12359         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12360         default strings.
12362 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12364         * libgroff/string.cc (search): Small fix to test against NULL
12365         pointer.
12367 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12369         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12370         \b'abc') were stacked in reverse order when processed in a
12371         diversion.
12373         * troff/node.h: Added `*last' to struct `node' to make the above
12374         fix work.
12376         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12377         The default scale for the 'f' and 't' graphics functions were 'm'
12378         rather than 'u' (i.e., no scaling).
12380 1999-09-11  Peter Miller  <peterm@jna.com.au>
12382         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12383         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12384         defining include paths.
12386         * soelim/soelim.cc (include_path_append): New function.
12388 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12390         * tbl/main.cc (process_options): Unix (at least Documenter's
12391         Workbench) tbl allows arbitrary non-alpha characters between
12392         options.
12394 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12396         Y2k fixes.  Don't assume that the current year precedes 2000.
12398         * doc/meref.me: Add \n(y2, \n(y4.
12400         * tmac/doc-common (Yr): New number register.
12401         (Dd): Don't assume current year precedes 2000.
12403         * tmac/tmac.e (td): Likewise.
12404         (y2, y4): New number registers.
12406         * pic/pic.man: Update reference for pic paper to May, 1991
12407         version.
12409 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12411         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12412         Removed quotation marks which prevented correct expansion of
12413         $(tmac_wrap).
12415         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12417 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12419         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12420         `config.cache'.
12422         * Removed configure.old.
12424 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12426         * VERSION: Updated to 1.11.1
12428 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12430         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12432         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12433         added quotations around $(tmac_wrap) to avoid syntax error if
12434         variable is empty.
12436         * configure: Newly generated using autoconf 2.13.
12438         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12440 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12442         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12443         doc/Makefile. doc/pic.ms, groff/groff.man:
12444         Prepare for 1.11 release.  No code changes.
12445         Documentation for pic added (doc/pic.ms).
12447 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12449         * Version 1.10 released.
12451 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12453         * afmtodit/afmtodit.pl: Avoid comment on first line.
12455 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12457         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12458         * configure.in: Call it.
12460         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12461         (distfiles): Doesn't depend on config.log or config.cache.
12463 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12465         * grog/grog.sh: Use print "" rather than print in END rule.
12467 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12469         * tbl/main.cc (process_data): Don't give error for excess data
12470         entries that are comments.
12472 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12474         * tbl/main.cc (process_data): Fix case where new for-scope rules
12475         silently change meaning of code.
12477 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12479         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12480         of non-zero hyphenation codes.
12482 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12484         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12486 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12488         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12490 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12492         * tmac/tmac.andoc: Make it work in compatibility mode.
12494         * refer/token.h (token_info::is_range_sep): New function.
12495         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12496         * refer/ref.cc (reference::output): More sophisticated check for
12497         multiple pages.
12499         * devps/prologue.ps (MANUAL): New procedure.
12500         * grops/ps.cc (main): New -m option.
12501         (usage): Include -m.
12502         (ps_printer::~ps_printer): Implement -m.
12504         * aclocal.m4 (GROFF_G): New macro.
12505         * configure.in: Call it.
12506         * Makefile.in (g): Provided by configure.
12508         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12510         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12511         translations.
12513         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12514         (tmac_m, tmac_s): Deleted.
12515         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12516         tmac_s_prefix): New variables.
12517         (MDEFINES): Change accordingly.
12518         * Makefile.comm (.man.n): Use new TMAC_* variables.
12519         * configure.in (GROFF_TMAC): Call.
12520         * aclocal.m4 (GROFF_TMAC): Define.
12521         * tmac/Makefile.sub (stamp_wrap): New target.
12522         (install_data, uninstall_sub): Handle macro wrapping.
12524 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12526         * tbl/main.cc (main): Ignore -T option.
12528 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12530         * devlj4/generate/special.map: Add definition of \(nb.
12532         * tmac/tmac.dvi: Add definition of \(nb.
12534         * troff/dictionary.c (dictionary::dictionary): association::v gets
12535         initialized by association::association.
12537         * tmac/Makefile.sub: Avoid using temporary files when installing.
12539         * troff/env.cc (environment::set_font): Make bad font number a
12540         warning.
12542         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12544         * Makefile.in (datadir): Use share rather than lib.
12546         * groff/groff.cc (basename): Rename to xbasename.
12548 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12550         * Makefile (CCLIBS): Don't use.
12551         * Makefile.ccpg: Likewise.
12553         * acgroff.m4: Rename to...
12554         * aclocal.m4: Modify extensively for autoconf 2.
12555         * configure.in: Likewise.
12556         * Makefile.in: Likewise.
12558         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12559         defined.
12560         (xstrsignal): Check for definition of NSIG. Conditionalize
12561         on SYS_SIGLIST_DECLARED.  Make return type const.
12563 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12565         * troff/input.cc (interpolate_macro): Rephrase missing space
12566         warning.
12568 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12570         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12571         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12572         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12573         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12574         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12575         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12576         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12577         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12578         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12579         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12580         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12581         Fix 'for' scoping.
12583 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12585         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12586         string_iterator.
12587         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12588         file.
12589         (macro_iterator::macro_iterator): Add additional argument.
12591 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12593         * troff/div.cc (vertical_size::vertical_size): In place of integer
12594         specifying line spacing use cunits specifying post vertical
12595         space.
12596         (macro_diversion::output, top_level_diversion::output): Likewise.
12597         * troff/div.h: Change declarations accordingly.
12598         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12599         field.
12600         (pending_output_line::pending_output_line,
12601         pending_output_line::output, environment::output,
12602         environment::output_line, environment::output_title,
12603         environment::hyphenate_line):  In place of
12604         integer specifying line spacing use cunits specifying post vertical
12605         space.
12606         (environment::environment): Add post_vertical_spacing and
12607         prev_post_vertical_spacing arguments.
12608         (environment::get_post_vertical_spacing): New function.
12609         (environment::total_post_vertical_spacing): New function.
12610         (environment::post_vertical_spacing): New function.
12611         (init_env_requests): Initialize pvs request and .pvs register.
12612         * troff/env.h: Change declarations.
12614 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12616         * tmac/tmac.pspic: Immediately remove the temporary file.
12618 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12620         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12621         height is specified.
12623 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12625         * tbl/table.c (struct vertical rule, class table_entry): Use int
12626         not short for start_row and end_row.
12628 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12630         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12631         functions.
12632         (diverted_space_node::reread, process_input_stack): Call
12633         trapping_blank_line() rather than blank_line().
12634         (init_input_requests): Bind "blm" to blank_line_macro().
12636         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12638 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12640         * troff/env.cc (environment::possibly_break_line): Require that
12641         width total excluding width of final space node be greater than
12642         the target text length.
12644 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12646         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12648 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12650         * troff/node.cc (charinfo_node): New class.
12651         (glyph_node, composite_node): Derive from charinfo_node.  Change
12652         member functions accordingly.
12654 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12656         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12658 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12660         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12662         * devps/generate/textmap (notsubset): Add.
12664         * tmac/tmac.a4: New file.
12666 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12668         * pic/main.cc (had_parse_error): New variable.
12669         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12670         returns non-zero.
12671         (main): Return 1 if had_parse_error is true.
12673 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12675         * grolj4/lj4.cc (main): Avoid use of strtoul.
12677 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12679         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12680         iso_8859_1 or $LESSCHARSET is latin1.
12682 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12684         * hpftodit: New directory.
12685         * Makefile.in (CCPROGDIRS): Add hpftodit.
12686         * devlj4/generate: New directory.
12688 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12690         * configure.in: Don't use AC_VFORK.
12691         * groff/pipeline.c (run_pipeline): Use fork() always.
12693 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12695         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12697         * Makefile.in (CCPROGDIRS): Add grolj4.
12698         (DEVDIRS): Add devlj4.
12699         * grolj4, devlj4: New directories.
12700         * tmac/troffrc: Handle lj4.
12701         * tmac/tmac.lj4: New file.
12703 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12705         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12707 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12709         * troff/input.cc (do_if_request): At end of second string, switch
12710         environments before getting next token.
12712 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12714         * devps/psstrip.sed: Split rule that strips whitespace on either
12715         side of delimiters.
12717 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12719         * troff/node.h (font_family::make_definition): Add return value to
12720         declaration.  * troff/symbol.h (symbol::operator==,
12721         symbol::operator!=): Likewise.
12723 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12725         * groff/groff.cc (main, help, synopsis): Handle -S.
12726         (possible_command::insert_arg): New function.
12728         * tmac/tmac.safer: New file.
12729         * tmac/msafer.man: New file.
12730         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12732 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12734         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12735         * pic/pic.y (placeless_element): Avoid unsafe operations if
12736         `safer_flag' is set.
12737         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12739 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12741         * eqn/lex.cc (get_token): Put call to add_context() in block to
12742         work around Sun C++ 4.0 bug.
12744         * include/stringclass.h (operator +): Use ?: instead of `if' to
12745         work around Sun C++ 4.0 bug.
12747 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12749         * tbl/main.cc (process_format): Accept - as a synonym for the _
12750         key letter.
12752         * libbib/index.cc (minus_one): Don't declare as const.
12754 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12756         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12758 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12760         * troff/input.cc (write_macro_request): New function.
12761         (init_input_requests): Bind write_macro_request to writem.
12763 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12765         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12766         equation.
12768         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12770         * tmac/tmac.s (@TS): Renamed from TS.
12771         (TS): Call LP then TS again.
12772         (cov*ab-init): Alias @TS to TS.
12774         * tmac/tmac.s: Allow QP or RS to initialize.
12776         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12777         Move initializations of PS and LL here.
12778         (par@init): Don't initialize HY.  Avoid changing environment 0.
12779         (par*env-init): Don't all par@reset.
12781 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12783         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12785 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12787         * Makefile.in (MDEFINES): Add LDFLAGS.
12788         (LDFLAGS): Add definition line.
12790 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12792         * troff/input.cc (get_optional_char): Split off error check into...
12793         (check_missing_character): New function.
12794         * troff/token.h: Declare it.
12795         * troff/env.cc (margin_character): Don't call get_optional_char.
12796         Only call tok.next() after making the node.
12798         * include/lib.h (getopt): Make 2nd argument char *const *.
12800 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12802         * nroff/conftest.sh: Deleted.
12804 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12806         * pic/make-dos-dist: Deleted.
12808 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12810         * devps/psstrip.sed: Strip comments before stripping trailing
12811         white space.
12813 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12815         * Version 1.09 released.
12817 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12819         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12821 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12823         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12825 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12827         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12828         about returning without a value.
12830         * troff/charinfo.h (charinfo::get_special_translation): Cast
12831         TRANSLATE_NONE to int.
12833         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12834         test.  Fix test so that it works with n unsigned.
12836         * pic/pic.y (defaults_table): Fully bracket initializer.
12837         * pic/lex.cc (lookup_keyword): Likewise.
12838         * eqn/lex.cc (token_table, def_table): Likewise.
12839         * eqn/box.cc (param_table): Likewise.
12840         * troff/input.cc (warning_table): Likewise.
12841         * libgroff/font.cc (table): Likewise.
12842         * grops/ps.cc (ps_printer::special): Likewise.
12843         * grops/psrm.cc (resource_manager::process_file): Likewise.
12844         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12845         * refer/command.cc (command_table): Likewise.
12846         * addftinfo/addftinfo.cc (param_table): Likewise.
12848         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12849         about temp's being unused.
12850         (unused): New function.
12852         * groff/pipeline.cc: Declare c_fatal.
12854         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12855         uchar.
12857         * libbib/index.cc (index_search_item::load): Prevent compiler
12858         warnings about fd_closer's being unused.
12859         (unused): New function.
12861 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12863         * troff/input.cc (copy_mode_error): Make `prefix' static.
12864         Fix typo.
12866         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12867         defined.
12868         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12869         HAVE_CC_OSFCN_H and modify accordingly.
12871         * troff/input.cc (init_charset_table): radicalex overlaps
12872         horizontally.
12874         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12875         udodo!hans@relay.NL.net).
12876         * groff/configure.in: Call it.
12878         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12879         * groff/configure.in: Call it.
12880         * include/lib.h: Conditionalize declaration of pclose.
12882         * troff/div.cc (last_page_number): New global variable.
12883         (top_level_diversion::begin_page): Exit if we just printed the
12884         last page.
12885         * troff/div.h (last_page_number): Declare it.
12886         * troff/input.cc (parse_output_page_list): Set last_page_number.
12888         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12889         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12890         tmac/tmac.X: Likewise.
12891         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12892         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12894 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12896         * tmac/doc-ditroff (hK): Remove groff specific code which
12897         prevented page-breaks between separate manual entries.  If this is
12898         the first page, don't set the page number to 1.
12900         * acgroff.m4 (GROFF_POSIX): New macro.
12901         * configure.in: Use it.
12903         * troff/node.cc (class real_output_file,
12904         real_output_file::real_output_file,
12905         real_output_file::~real_output_file): Conditionalize use of
12906         popen/pclose on POPEN_MISSING.
12907         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12908         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12909         (pipe_source): Similarily.
12911         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12913         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12914         presence of declarations by trying to compile example with
12915         conflicting declarations.  (gcc only gives a warning for missing
12916         declarations.)
12918 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12920         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12921         (from Ulrich Lauther).
12923 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12925         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12927 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12929         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12930         pointers and ints have different sizes.
12932 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12934         * tmac/tmac.s (par*env-init): Call par@reset.
12936 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12938         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12939         tag.
12940         (par*push-tag-env, par*pop-tag-env): New macros.
12942 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12944         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12945         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12947         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12948         comment.  Include <time.h>.
12950 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12952         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12953         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12954         lines.
12956 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12958         * troff/input.cc (read_request): Only print a prompt if reading
12959         from the terminal.  Also clearerr on EOF if reading from the
12960         terminal.  Declare isatty.
12962 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12964         * refer/label.y: Rename map_t to map_func and extractor_t to
12965         extractor_func.
12967 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12969         * include/assert.h: Don't use volatile.
12970         * libgroff/assert.cc: Likewise.
12972 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12974         * troff/input.cc (abort_request): Look at character in tok before
12975         calling get_copy().
12977 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12979         * troff/troff.h (NO_RETURN): Deleted.
12980         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12981         * troff/input.cc (exit_troff): Likewise
12983         * Makefile.in: Remove `Making ...' messages since GNU make now
12984         gives these. 
12986         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12988 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12990         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12991         to constant 1 inch.
12993 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12995         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12997 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12999         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13000         MARK_REG if there was no left delimiter.
13002 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
13004         * pic/troff.cc (troff_output::text): Set line thickness to
13005         relative before outputting text.
13007         * tmac/tmac.e (@k): Don't zero ?T.
13008         ((z): Likewise.
13010 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
13012         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13014 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
13016         * troff/input.cc (decode_args): Warn about unquoted tabs (from
13017         Paul Eggert).
13019 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
13021         * troff/input.cc (ignoring): New variable.
13022         (ignore): Set ignoring during call to do_define_macro.
13023         (do_define_macro): Clear ignoring before interpolating terminating
13024         macro.
13025         (copy_mode_error): New function.
13026         (get_char_for_escape_name, read_long_escape_name,
13027         interpolate_arg): Use copy_mode_error.
13028         (warning_table): Add WARN_IG.
13029         * troff/troff.h (WARN_IG): Declare.
13030         (WARN_TOTAL): Change accordingly.
13032         * groff/pipeline.c (strsignal): Rename to xstrsignal.
13033         * groff/groff.cc (strsignal): Delete declaration.
13035 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
13037         * troff/div.cc (page_offset): Use 'm' as default scaling.
13039 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
13041         * nroff/nroff.sh: Ignore -u.
13043 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
13045         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13047 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
13049         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13050         drawing box.
13051         (B2): With -Tascii, leave additional vertical space before
13052         and after. Ensure that the left and right indent is restored to
13053         what it was even if the point size changes.  Don't call
13054         par@finish. Change the indent, line length and title length
13055         directly.  With -Tascii, make the width of the box 1n less.
13056         (B1): Remember 1n at the current point size.  Don't call
13057         par@reset.  Change the indent, line length and title length
13058         directly.  Ensure that the temporary indent is preserved.
13059         (par*box-mark-top): Turn off no spacing mode.
13061 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
13063         * Makefile.in (dist): Use .gz suffix.
13065 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
13067         * troff/input.cc (main): Add return 0.
13068         * pic/main.cc (main): Use return instead of exit.
13069         * tbl/main.cc (main): Likewise.
13070         * eqn/main.cc (main): Likewise.
13071         * grops/ps.cc (main): Likewise.
13072         * grotty/tty.cc (main): Likewise.
13073         * groff/groff.cc (main): Likewise.
13074         * grodvi/dvi.cc (main): Likewise.
13075         * refer/refer.cc (main): Likewise.
13076         * indxbib/indxbib.cc (main): Likewise.
13077         * lkbib/lkbib.cc (main): Likewise.
13078         * soelim/soelim.cc (main): Likewise.
13079         * addftinfo/addftinfo.cc (main): Likewise.
13080         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13081         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13083         * troff/token.h (process_input_stack): Don't declare as static.
13084         * troff/input.cc: Likewise.
13086         * troff/node.c (invalidate_fontno): Make it a static member of
13087         class font_family.  Change callers.
13088         * troff/node.c: Change declaration.
13090         * tbl/main.cc (struct input_entry_format): Add explicit public
13091         specifier.
13092         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13093         struct double_hline_stuff): Likewise.
13094         * tbl/table.h (struct entry_format): Likewise.
13095         * pic/object.h (struct saved_state): Likewise.
13097         * include/stringclass.h: Add forward declarations of friend
13098         functions that are later declared as inline.  Don't include inline
13099         specifier in friend declaration.
13101         * libgroff/lib.h: Declare popen and pclose.
13102         * acgroff.m4 (GROFF_POPEN): New macro.
13103         * configure.in: Call it.
13105         * include/lib.h (PI): New constant. Undef first if necessary.
13106         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13107         * grops/ps.cc (degrees, radians): Likewise.
13108         * libgroff/font.cc (font::get_skew): Likewise.
13110         * grops/ps.cc (is_ascii): New function.
13111         (ps_output::put_string): Use is_ascii.  Use csprint rather than
13112         isprint.
13113         (ps_printer::define_encoding): Use csspace.
13114         * libgroff/strtol.c (ISASCII): New macro.
13115         (strtol): Cast arguments to is*() and tolower() to unsigned char.
13116         Use ISASCII rather than isascii.
13117         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13118         * libgroff/cset.cc: Likewise.
13119         * libdriver/input.cc: Include cset.h.
13120         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13121         than isdigit().
13123         * refer/refer.cc (main): Use %ld rather than %d for longs.
13125         * libbib/index.cc (index_search_item_iterator::get_tag): Use
13126         S_ISREG macro.
13128         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13130 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
13132         * troff/input.cc (hyphenation_code): Skip white space between
13133         char/code pairs.
13135 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
13137         * tbl/table.h (table::entry_list_tailp): New member.
13138         (table::table): Initialize it.
13139         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13140         behaviour.
13142 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
13144         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13145         with negative horizontal positions. Remove casts of glyph::hpos to
13146         int.
13147         (USHRT_MAX): Delete definition.
13148         (SHRT_MAX, SHRT_MIN): New definitions.
13149         (glyph::hpos): Change type to short.
13150         (tty_printer::end_page): Output multiple backspaces if necessary.
13151          Remove casts of glyph::hpos to int.
13152         
13153 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13155         * tmac/tmac.s (@RT): New definition.
13157 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13159         * refer/refer.cc (do_file): Make sure current_filename is set when
13160         filename is "-".
13162         * pic/common.cc (common_output::dot_line): Handle zero length
13163         lines.
13165 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13167         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13168         (par@init): Initialize \n[HY].
13170 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13172         * troff/dictionary.cc (dictionary::remove): Continue when
13173         r < j < i.
13175 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13177         * Makefile.com (.y.cc): Avoid ending up with two versions of
13178         $(YTABH).
13180 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13182         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13183         (\(,C): Likewise.  Also fix typo.
13185 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13187         * lib.h: Delete extraneous semi-colon.
13189         * Add pso request: `so' from a pipe.
13190         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13191         (file_iterator::close): New function.
13192         (file_iterator::~file_iterator, file_iterator::next_file): Use
13193         file_iterator::close.
13194         (file_iterator::backtrace): Say `process' rather than `file' when
13195         the stream is popened.
13196         (pipe_source): New function.
13197         (init_input_requests): Bind ".pso" to pipe_source.
13199 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13201         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13203         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13204         digits in lower case.
13206 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13208         * Version 1.08 released.
13210         * Makefile.in (dist): Insert || true after ln -s commands that
13211         might fail.
13213         * mm: Update to mm 1.16.
13215         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13216         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13217         SH_SCRIPT_SED_CMD.
13218         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13219         MDEFINES.
13220         * nroff/Makefile.sub (nroff): New target.
13221         (install_data): Install nroff.
13222         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13223         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13225 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13227         * eqn/Makefile.sub (neqn): Add chmod +x.
13229         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13231 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13233         * troff/input.cc (string_iterator::string_iterator()): Initialize
13234         lineno and count.
13236 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13238         * troff/div.cc (macro_diversion::space,
13239         top_level_diversion::space): Don't set high_water_mark.
13240         (macro_diversion::output, top_level_diversion::output): Don't
13241         include post line space in high water mark.
13243 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13245         * eqn/eqn.y: Don't define YYDEBUG.
13246         * pic/pic.y: Likewise.
13248 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13250         * tmac/tmac.e ([3): Add space after comma following editors.
13251         Change double spaces to single spaces.
13252         ([4): Change double spaces to single spaces.
13254         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13255         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13256         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13257         after %!PS-Adobe- (for Newsprint).
13259         * troff/div.cc (top_level_diversion::begin_page): When
13260         before_first_page is 1, set page_number to 1.
13262 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13264         * eqn/box.cc (box::top_level): Protect equation with \&.
13266 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13268         * groff/groff.cc (possible_command::set_name): Delete old name.
13270         * groff/groff.cc (possible_command::~possible_command): Use
13271         a_delete.
13273         * troff/node.cc (troff_output_file::begun_page): New member.
13274         (troff_output_file::troff_output_file): Initialize it.
13275         (troff_output_file::really_begin_page): Only output V command if a
13276         page has been begun.
13278         * pic/pic.y (placeless_element): Delete argument to PRINT after
13279         use.
13281 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13283         * Make wrapman work.
13284         * troff/div.h (class top_level_diversion): Replace
13285         first_page_begun by before_first_page (with opposite sense).
13286         * Change first_page_begun to before_first_page inverting sense.
13287         * troff/div.cc (class nl_reg): New class.
13288         (init_div_requests): Use class nl_reg for \n(nl.
13289         (top_level_diversion::begin_page): Don't call
13290         output_file::begin_page if before_first_page is 2;
13291         reset before_first_page afterwards.  If have_next_page_number is
13292         false, then always increment page_number.
13293         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13294         Restore compatibility mode after loading, and then disable
13295         compatibility mode in TH.
13297 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13299         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13300         past last line.
13301         * troff/node.h (output_file::trailer): Declare.
13302         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13303         * troff/node.cc (output_file::trailer): New function.
13304         (troff_output_file::~troff_output_file): Move most code into...
13305         (troff_output_file::trailer): New function.
13306         (class troff_output_file): Delete page_length member. Declare
13307         trailer().
13308         (troff_output_file::really_begin_page): Use current page length
13309         for final V command.
13311         * tbl/main.cc (struct options): New decimal_point_char member.
13312         (options::options): Initialize this.
13313         (process_options): Implement decimalpoint option.
13314         (process_data): Pass decimal_point_char option to table::table.
13315         * tbl/table.h (class table): New decimal_point_char member.
13316         (table::table): Add additional argument.
13317         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13318         second argument specifying decimal point character.  Use this
13319         instead of '.'.
13320         (table::table): Initialize decimal_point_char.
13321         (table::add_entry): Change call to find_dot.
13323         * troff/input.cc (get_copy, token::next): Implement \V.
13324         (interpolate_environment_variable): New function.
13326 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13328         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13329         * pic/pic.y: Likewise.
13331         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13332         Add casts to int.
13333         * refer/ref.cc (reference::insert_field, reference::delete_field):
13334         Likewise.
13335         * troff/number.cc (parse_term): Likewise.
13337         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13338         * configure.in: Use GROFF_PROG_YACC.
13340         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13341         and g++.
13342         * Makefile.in (OPTIMIZE): New define.
13343         (DEBUG): Empty by default.
13344         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13346         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13347         (GROFF_ARRAY_DELETE): Likewise.
13348         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13350         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13352         * devps/psstrip.sed: Use different delimiter on last line (so that
13353         it works with BSD 4.4 sed.)
13355 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13357         * devps/psstrip.sed: Delete comments.
13359         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13360         optind, opterr, optarg.
13361         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13362         opterr, optarg.
13364 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13366         * Makefile.in (check): Dummy target.
13368 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13370         * Version 1.07 released.
13372         * Integrate mm 1.11.
13374         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13375         where start_col was meant.
13377 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13379         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13381 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13383         * troff/input.cc (token::next): Make \z\o'...' and similar things
13384         work.
13386         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13387         constants.
13388         (environment): Add margin_character_flags member.
13389         * env.cc (environment::environment(symbol),
13390         environment::environment(const environment *): Initialize
13391         margin_character_flags.
13392         (margin_character): Rewrite.
13393         (environment::output_line): Add a margin character if
13394         margin_character_flags is non-zero.  Turn off the
13395         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13396         zero, use margin_character_node without copying and then set
13397         margin_character_node to 0.
13399         * devps/DESC.in: Change minimum size to 1000.
13401 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13403         * troff/symbol.h (symbol::hash): Change return type to unsigned
13404         long.
13405         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13406         Add casts to int.
13408         * test-groff: Use -r rather than -x.
13410         * grops/psfig.diff: Include in distribution again.
13412 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13414         * Makefile.in (dist): Use gzip.
13416 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13418         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13419         unistd.h as well as in stdlib.h.
13420         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13421         defined; otherwise include <sys/types.h> and <unistd.h> if
13422         UNISTD_H_DECLARES_GETOPT is defined.
13424         * configure.in: use builtin(include, ... rather than include(...
13425         * configure: Regenerate with autoconf 1.3.
13427         * libdriver/print.cc (printer::adjust_arc_center): Use new
13428         algorithm suggested by Andy Fyfe.
13430         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13431         * include/printer.h: Declare this.
13432         * grops/ps.cc (ps_printer::draw): Use it.
13433         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13435 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13437         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13439 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13441         * eqn/main.cc (main): Handle "eqn -".
13443 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13445         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13447         * mm: Integrate version 1.08.
13449         * pic/troff.cc (troff_output::finish_picture): Set
13450         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13451         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13452         if it's not defined. Check whether the register is non-zero rather
13453         than whether it's not defined.
13454         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13456         * indxbib/indxbib.cc: Move all signal handling into...
13457         * indxbib/signal.c: New file.
13458         * configure.in: Call AC_RETSIGTYPE.
13460         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13461         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13462         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13464         * troff/input.cc (token::token, token::operator=): Work round SGI
13465         C++ bug.
13466         * pic/object.cc (position::position): Likewise.
13468 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13470         * pic/pic.h: Move declaration of hypot().
13472 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13474         * pic/pic.h: Declare hypot().
13476         * pic/pic.h: Define M_PI if necessary.
13478 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13480         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13481         `.ta T' feature.
13483         * devps/prologue.ps (RE): Handle the possibility that the old font
13484         doesn't have a FontName entry.
13486 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13488         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13489         (@C): Use @fam not fam.
13491 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13493         * lookbib/lookbib.cc (main): Change type of start to const char *.
13494         * lkbib/lkbib.cc (main): Likewise.
13496         * eqn/lex.cc (definition::definition): Don't use member
13497         initializer syntax for members of anonymous unions.
13499         * troff/input.cc (input_stack::backtrace): Change type of to const
13500         char *.
13502 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13504         * include/stringclass.h (class string): Declare inline friend
13505         functions as inline in class declaration.
13506         * troff/hvunits.h (class hunits, class vunits): Likewise.
13507         * include/refid.h (class reference_id): Likewise
13508         * troff/troff.h (points_to_units(units), scale(units, double)):
13509         Delete declarations.
13510         * libdriver/input.cc (get_char): Delete declaration.
13511         * include/lib.h: Change 2nd argument of getopt from const char **
13512         to char **.
13513         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13514         char **' before assigning to a `const char **'.
13515         * tbl/table.cc: Delete extra declarations of prints().
13517 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13519         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13520         char **' before assigning to a `const char **'.
13522         * libgroff/errarg.cc (errarg::errarg): Don't use member
13523         initializer syntax for members of anonymous unions.
13525 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13527         * mm: Integrate version 1.07.
13529 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13531         * troff/input.c (translate2): Rename to
13532         (translate_no_transparent).
13533         (init_input_requests): Rename tr2 to trnt.
13535 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13537         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13538         (charinfo::set_translation, charinfo::set_special_translation):
13539         Add second argument that specifies value for
13540         transparent_translate.
13541         (charinfo::get_translation, charinfo::get_special_translation):
13542         Add optional second argument that specifies whether translation is
13543         being used for transparent throughput.
13544         * troff/input.cc (charinfo::set_translation,
13545         charinfo::set_special_translation): Handle second argument.
13546         (charinfo::charinfo): Initialize transparent_translate.
13547         (translate): Split main part off into
13548         (do_translate): New function.  Pass argument saying whether
13549         translation applies to transparent throughput.
13550         (translate2): New request.
13551         (init_input_requests): Bind translate2 to `tr2'.
13553 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13555         * tbl/table.h (class table): Add `nokeep' flag.
13556         * tbl/main.cc (process_options): Handle `nokeep' option.
13557         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13558         table::do_bottom): Don't output keep/release macro definitions or
13559         calls when `nokeep' option has been specified.
13561 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13563         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13565 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13567         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13568         block_entry::divert, alphabetic_block_entry::divert): Add extra
13569         argument giving column separation.
13570         (table::compute_widths): Pass column separation to
13571         table_entry::divert().
13572         (block_entry::do_divert): If an entry spans multiple columns and a
13573         minimumum width has been specified for each column, then set the
13574         line length to the sum of the widths (plus possibly the column
13575         separations).
13577         * troff/input.cc (set_escape_char): Don't set the escape_char
13578         until after calling has_arg().
13580 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13582         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13583         case.
13585         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13586         in case where r > nrows - 1.
13588         * tbl/table.cc (BODY_HEIGHT): Deleted.
13589         (LINE_SEP): New definition.
13590         (table::print_single_hline, table::print_double_hline,
13591         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13592         table::do_row, table::do_top): Use LINE_SEP space before a line
13593         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13595         * tbl/table.cc (text_entry::print_contents): New function.
13596         (text_string_name, right_text_string_name): Deleted.
13597         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13598         (simple_text_entry::do_width, numeric_text_entry::do_width,
13599         alphabetic_text_entry::do_width): Don't store the contents of the
13600         entry in a string.
13601         (left_text_entry::simple_print, right_text_entry::simple_print,
13602         center_text_entry::simple_print,
13603         alphabetic_text_entry::simple_print,
13604         numeric_text_entry::simple_print): Print the entry directly
13605         instead of using the stored string.
13607 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13609         * devps/Makefile: Strip PostScript files.
13610         * devps/prologue: Rename to...
13611         * devps/prologue.ps.
13612         * devps/psstrip.sed: New file.
13613         * devps/download: Use .pfa rather than .ps for installed versions
13614         of fonts.
13616 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13618         * troff/env.cc (input_trap): Give a warning if the argument is out
13619         of range.
13621         * troff/env.cc (adjust): Treat negative argument as missing. Round
13622         argument > 5 down to 5.
13624         * troff/env.cc (center, right_justify): Make negative argument zero.
13626         * troff/div.cc (page_offset, vertical_position_traps): Treat
13627         invalid argument as missing.
13628         * troff/env.cc (line_spacing, line_length, title_length, indent,
13629         underline, hyphen_line_max_request, control_char,
13630         no_break_control_char, widow_control_request, adjust, input_trap,
13631         point_size): Likewise.
13632         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13633         constant_space): Likewise.
13634         * troff/input.cc (compatible, shift, warn_request,
13635         set_escape_char): Likewise.
13637         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13638         * tbl/table.cc (table::table): Likewise.
13640         * Makefile.dev (install_dev): depends on $(DEVFILES).
13642 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13644         * devX75, devX75-12, devX100, devX100-12: New directories.
13645         * Makefile.in: Add these to DEVDIRS.
13647         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13648         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13649         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13650         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13651         targets.
13652         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13653         (uninstall): New target.
13654         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13655         uninstall_prog, uninstall_dev): New targets.
13657         * troff/div.cc (return_request): Treat an invalid argument as
13658         missing.
13660 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13662         * tmac/tmac.e ((f): Set up the environment even when there's a
13663         current diversion.  Transperently throughput a call to @N.
13664         (@N): New macro.
13666 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13668         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13669         up to vertical resolution.
13671         * tbl/table.cc (table::do_row): Change row number after printing
13672         stuff list.
13674         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13676 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13678         * Rename CHANGES to NEWS.
13680 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13682         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13684 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13686         * man.ultrix: Removed.
13688 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13690         * Makefile.comm (extraclean): Delete files whose names begin with
13691         `='.
13693         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13694         aligned text.
13696 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13698         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13699         * troff/div.cc (page_length, need_space, space_request): Treat
13700         invalid optional argument as missing.
13701         * troff/env.cc (number_lines): If the first argument is present
13702         but not a number, turn on line numbering, don't change the next
13703         line number and parse the remaining arguments.
13705         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13707 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13709         * eqn/box.h: Change declaration accordingly.
13710         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13711         the specified size was bad but don't give an error.  Check for
13712         overflow.
13713         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13714         * eqn/lex (do_size): Likewise.
13716 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13718         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13719         compatible headers.
13721 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13723         * tbl/table.cc (table::init_output): Improve error message when
13724         table won't fit on one page.
13726 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13728         * pic/troff.cc (troff_output::start_picture): Generate line
13729         containing a horizontal motion equal to the width of the picture.
13731         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13732         using GROFF_COMMAND_PREFIX environment variable.
13734 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13736         * mdate.sh: Use $NF rather than $(NF).
13738 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13740         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13742         * eqn/main.cc (main): Output code to check that geqn was given the
13743         correct -T option.
13745 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13747         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13748         `ln -s ../Makefile .; make; rm -f Makefile'.
13750         * troff/hyphen: Rename to...
13751         * troff/hyphen.us:
13752         * troff/input.cc (main): Delete -H option. Don't call
13753         read_hyphen_file().
13754         * troff/env.cc: Include searchpath.h and macropath.h.
13755         (exception_dictionary): Deleted.
13756         (ht): Deleted.
13757         (read_hyphen_file): Deleted.
13758         (hyphenation_language): New struct.
13759         (class trie, class hyphen_trie): Move declarations up.
13760         (trie_node::~trie_node): Deleted.
13761         (trie::delete_trie_node): New function.
13762         (trie::do_delete): New pure virtual function.
13763         (hyphen_trie::do_delete): New function.
13764         (trie::~trie): New function.
13765         (hyphen_trie::~hyphen_trie): New function.
13766         (trie::clear): No need to chcek that tp is not 0.
13767         (current_language, language_dictionary): New variables.
13768         (hyphen_word): Give an error if no current language.  Use
13769         exceptions dictionary in current language.
13770         (hyphen_trie::read_patterns_file): Find file using macro_path.
13771         Allow comments (starting with %) in patterns file.  Don't make it
13772         a fatal error if the file can't be found.
13773         (hyphenate): Return if no current language.  Get the exceptions
13774         dictionary and the hyphenation patterns from the current language.
13775         (set_hyphenation_language): New variable.
13776         (hyphenation_patterns_file): New function.
13777         (hyphenation_language_reg): New class.
13778         (hyphenation_language_reg::get_string): New function.
13779         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13780         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13781         register.
13782         * groff/groff.cc (main, help, synopsis): Delete -H option.
13783         * include/Makefile.sub: Don't define HYPHENFILE.
13784         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13785         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13786         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13787         hyphenation patterns.
13789 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13791         * eqn/neqn.sh: New file.
13792         * eqn/Makefile.sub: Handle neqn.sh.
13794         * eqn/eqn.h: Declare `nroff' variable.
13795         * eqn/box.cc (param_table): Add `nroff' param.
13796         (nroff): Define it.
13797         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13798         variable.
13799         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13801         * troff/troff.h (WARN_FONT): New warning.
13802         (WARN_TOTAL): Change accordingly.
13803         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13804         (warning_table): Add WARN_FONT.
13805         * troff/node.cc (mount_font_no_translate): Pass argument to
13806         font::load_font.  If this is non-zero, give a warning.
13807         Don't give an error message when accessing a font that has already
13808         been found to be invalid.
13809         * include/font.h (font::load, font::load_font): Add additional
13810         optional argument which suppresses error message if the font is
13811         not found.
13812         * libgroff/font.cc (font::load_font): Handle additional argument.
13813         (font::load): Add additional argument. If this is non-null, set it
13814         to 1 and don't give error message.
13816         * include/printer.h (printer::end_page): Add argument giving
13817         length of page.
13818         * libdriver/input.cc (do_file): Pass this.
13819         * grops/ps.cc (ps_printer::end_page): Add argument.
13820         * grodvi/dvi.cc (dvi_printer::end_page,
13821         draw_dvi_printer::end_page): Add argument.
13822         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13823         columns_per_page members. New member nlines.
13824         (DEFAULT_LINES_PER_PAGE): Deleted.
13825         (tty_printer::tty_printer): Don't compute lines_per_page from
13826         font::paperlength. Don't compute columns_per_page from
13827         font::paperwidth.
13828         (tty_printer::add_char): Don't check horizontal position against
13829         columns_per_page. Grow glyphs vector if neccessary.
13830         (tty_printer::end_page): Add argument giving page_length in units.
13831         Discard lines past end of page.
13833 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13835         * tmac/tmac.tty-char: Fix definition of \(/l.
13837         * tmac/tmac.X: Define \(en.
13839 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13841         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13842         lpq, then use lp rather than lpr.
13844         * tmac/tmac.s (par@reset): Don't call `ad'.
13845         (par*env-init): Call `ad'.
13847 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13849         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13850         date.
13852         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13853         * indxbib/indxbib.cc: Likewise.
13855 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13857         * libgroff/putenv.c: New file.
13858         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13859         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13860         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13861         stdlib.h with AC_HAVE_HEADERS.
13863 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13865         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13866         does not exist.
13868 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13870         * eqn/box.cc (gsize): Make it an int.
13871         (set_gsize): Parse argument handling increment or decrement.
13872         (box::top_level): Convert gsize to a string.
13874         * troff/input.cc (exit_troff): Make buf unsigned char [].
13875         Call to make_temp_iterator casts buf to char*.
13877         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13879         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13880         * Makefile.cpg (depend.temp): Likewise.
13882         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13884         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13886 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13888         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13890 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13892         * Version 1.06 released.
13894         * Integrate mm 1.04.
13896 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13898         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13900 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13902         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13903         ligatures command.
13904         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13905         afmtodit. Regenerate.
13907         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13908         @f back past the current position.
13910         * tmac/tmac.e: Change calls to @R so that comments are not part of
13911         arguments.
13913 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13915         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13917         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13918         check that we can link a call to a function declared in <stdio.h>.
13919         (GROFF_UNISTD_H): New macro.
13920         * configure.in: Call it.
13921         * Makefile.in: Document it.
13922         * include/posix.h: New file.
13923         * troff/troff.h: Don't include <osfcn.h>
13924         * troff/input.cc: Include posix.h.
13925         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13926         osfcn.h.
13927         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13928         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13929         <fcntl.h>.
13930         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13931         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13932         * libbib/search.cc (O_RDONLY): Delete definition.
13933         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13934         Don't include <osfcn.h>.
13936         * acgroff.m4 (GROFF_TIME_T): New macro.
13937         * configure.in: Call it.
13938         * Makefile.in: Document it.
13940         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13941         * configure.in: Call it.
13942         * Makefile.in: Document -DTRADITIONAL_CPP.
13943         * include/ptable.h: Don't include generic.h.
13944         (name2): Define it.
13946         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13947         Afterwards remove [T1 and [T2.
13948         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13949         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13950         (ref*add-T2): Renamed from ref*add-T.
13951         (ref*add-T1): New macro.
13953 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13955         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13957         * libbib/index.cc: Include <fcntl.h>.
13958         (O_RDONLY): Define if necessary.
13959         (make_index_search_item, index_search_item_iterator::get_tag,
13960         index_search_item::check_files): Use O_RDONLY.
13961         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13962         (O_RDONLY): Define if necessary.
13963         (search_list::add_file): Use O_RDONLY.
13964         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13965         <sys/stat.h>.
13966         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13967         (main): Use these.
13969         * libbib/index.cc (S_ISREG): Define it if necessary.
13970         (index_search_item::load): Use S_ISREG.
13972         * include/driver.h: Include <errno.h>.
13974 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13976         * eqn/box.cc (body_height): Increase default value to 85.
13977         (body_depth): Increase default value to 35.
13979 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13981         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13982         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13983         protected from expansion with \E.
13985         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13987         * Makefile (Makefile): New target.
13989         * Makefile.sub (configure, distfiles): New targets.
13991         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13992         construct.
13994 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13996         * eqn/box.cc (param_table): Add body_height and body_depth.
13998         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14000 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
14002         * psbb/Makefile.sub: Don't link with libgroff.a.
14004         * acgroff.m4 (GROFF_PUTENV): New macro.
14005         * configure.in: Call GROFF_PUTENV.
14006         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14007         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14008         is defined.
14010         * troff/env.cc (distribute_space): Rename force_forward argument
14011         to force_reverse.  Reverse the list if force_reverse is true.
14013 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
14015         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14017         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14018         height or depth to be negative.  Guard against SUP_RAISE quantity
14019         being negative.
14021 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
14023         * devps/generate/textmap: Add `an' (arrowhorizex).
14024         * tmac/tmac.ps: \(an overlaps horizontally.
14025         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14027         * devps/symbolchars: Add arrowverttp, arrowvertbt.
14028         * devps/textmap: Add arrowvertex.
14029         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14030         updownarrow delimiters.
14031         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14033         * tbl/table.cc (simple_entry::position_vertically,
14034         block_entry::position_vertically):  For a centered entry, perform
14035         the motion in two stages.
14037         * refer/refer.cc (split_punct): Don't call lookup_token if there
14038         is no token.
14040 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
14042         * troff/input.cc (token::next): Delete token_node after copying
14043         token.
14045         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14046         cur_point_size.
14048         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14050         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14052 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
14054         * grops/ps.cc (usage): -b option takes an argument.
14056         * devps/prologue (PLG): New procedure.
14057         * grops/ps.cc (main, usage): New -g option.
14058         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
14059         length using PLG.
14061 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
14063         * include/cset.h: Include <limits.h> if we have it.
14065         * libgroff/illegal.cc: New file.
14066         * include/lib.h (illegal_input_char): Use table.
14067         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14068         * pic/lex.cc (ARG1): Renumber to 14.
14069         * eqn/lex.cc (ARG1): Likewise.
14071         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14072         (eg 1.05.90) correctly.
14074 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
14076         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14077         Rename $r and $R registers to $v and $V.
14078         ($r, $R): Initialize to 0.
14079         (@v, @V): New macros.
14080         (sz): Call @v.
14081         (@M): Call @V.
14083         * troff/input.cc (main, usage): Add -R option that says not to
14084         load troffrc.
14085         * eqn/main.cc (main, usage): Rename -n to -R.
14087 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
14089         * devps/DESC.in: Leave font positions 5-9 blank.
14090         * devdvi/DESC.in: Likewise.
14092         * grog/grog.pl: Handle `.PS <file' correctly.
14094         * troff/input.cc (input_stack::push): Improve error message when
14095         input stack limit exceeded.
14097 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
14099         * refer/refer.cc (main): Fix typo in handling of `a' option.
14101         * refer/refer.cc (do_bib): In state START after a newline remain
14102         in state START.
14104         * groff/groff.sh: Deleted.
14105         * groff/Makefile.sub: Delete handling of groff.sh.
14107         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14108         to determine whether to use \X'ps:...'.
14109         * tmac/troffrc: Set 0p register to 0.
14110         * tmac/tmac.ps: Set 0p register to 1.
14112         * groff/groff.cc: Support -X option. Give warning for -TXps and
14113         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14114         * tmac/troffrc: Support -r.X=1.
14116         * pic/troff.cc (troff_output::dot): Don't test
14117         zero_length_line_flag.
14119 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
14121         * include/lib.h: Declare getopt() and friends unless
14122         STDLIB_H_DECLARES_GETOPT is defined.
14124         * doc/chars.tr: Delete.
14125         * man/groff_char.man: New file.
14127 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
14129         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14130         user has changed register format.
14132 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
14134         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
14135         `postpro' command in DESC file.  Get spooler command from `print'
14136         command in DESC file.  Execute spooler command with /bin/sh.
14138         * groff/groff.cc: Split Unix-specific parts into...
14139         * groff/pipeline.c: New file.
14141         * LICENSE: Delete.
14142         * COPYING: New file.
14143         * all files: Update copyright notices.
14145         * Rearrange files.  Redo Makefiles.  Use autoconf.
14147 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
14149         * troff/input.c (charinfo_to_node_list): Interpret character
14150         definition with escape_char of `\'.
14152 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14154         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14155         Define INT_DIGITS as big enough for 64-bit integer.
14156         * lib/strtol.c: Don't include lib.h.
14157         * lib/lib.h: Delete ifdef __cplusplus stuff.
14159 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14161         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14162         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14163         get DESC from current directory.
14165 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14167         * tbl/main.c (main): Always reset the line number when reading
14168         from stdin.
14170         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14171         table::define_bottom_macro, table::do_row, table::do_top): Round
14172         vertical spacing up to vertical resolution.
14174 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14176         * ps/ps.h (enum resource_type): Avoid comma at end of
14177         enumerator-list.
14178         * dvi/dvi.c (class dvi_printer): Likewise.
14179         * dvi/tfmtodit.c (gf::load): Likewise.
14180         * refer/label.y (struct expression): Likewise.
14181         * refer/refer.c (class label_processing_state): Likewise.
14182         * refer/indxbib.c (do_file): Likewise.
14183         * troff/troff.c (enum warning_type): Likewise.
14184         * tbl/main.c (process_data): Likewise.
14185         * troff/charinfo.h (class charinfo):
14187 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14189         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14191 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14193         * groff.c: Move to new groff subdirectory.
14194         * groff/Makefile: New file.
14195         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14197         * man/mdate.sh: Use ls -L if supported.
14199         * Consolidate all header files produced by gendef into lib/defs.h.
14200         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14201         Don't include path.h.
14202         * lib/Makefile (path.h): Don't generate.
14203         * troff/input.c: Include defs.h. Don't include config.h.
14204         * troff/Makefile (config.h): Don't generate.
14205         * refer/index.h: Don't include suffix.h.
14206         * refer/index.c: Include defs.h.
14207         * refer/indxbib.c: Include defs.h.
14208         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14209         defs.h.
14210         * refer/Makefile (suffix.h, path.h): Don't generate.
14211         * groff.c: Don't include config.h. Include defs.h.
14212         * Makefile (config.h): Don't generate.
14213         (lib/defs.h): Generate.
14214         (topclean): Remove lib/defs.h.
14216 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14218         * lib/malloc.c, lib/getpagesize.h: Deleted.
14219         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14220         related stuff.
14221         * lib/Makefile: Delete malloc-related stuff.
14222         * lib/new.c: Workaround COOKIE_BUG if necessary.
14224         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14225         needed header files directly.
14226         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14227         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14229 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14231         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14232         argument.
14233         * lib/font (font::load_desc, font::load): Don't split argument of
14234         unknown command.
14235         (font::handle_unknown_font_command): Change type.
14236         * ps/ps.c (ps_font::handle_unknown_font_command,
14237         handle_unknown_desc_command): Change type.
14238         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14240 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14242         * lib/font.h (font::handle_unknown_font_command): Add file and
14243         line arguments.
14244         * lib/font.c (font::handle_unknown_font_command):
14245         * ps/ps.c (ps_font::handle_unknown_font_command):
14246         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14247         lineno arguments.  Use _with_file_and_line functions for error
14248         reporting.
14250         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14251         data member.
14252         * lib/font.c (font::set_unknown_desc_command_handler): New
14253         function.
14254         (font::load_desc): For unknown commands, call
14255         unknown_desc_command_handler if not null.
14256         * lib/font.h (class font): Declare them.
14257         (FONT_COMMAND_HANDLER): New typedef.
14258         * ps/ps.c (handle_unknown_desc_command): New function.
14259         (main): Set bflag if we had a -b option. Call
14260         font::set_unknown_desc_command_handler.
14261         (broken.h): Don't include.
14262         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14263         submake 
14264         * ps/devps/Makefile: Add `broken' command to DESC file using
14265         BROKEN_SPOOLER_FLAGS.
14267         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14269         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14271         * macros/tmac.e (@R, @S): New macros.
14272         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14273         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14274         Declare $H, $[0-9], .. macros with @S.
14275         Declare |0, |1, |2, |3 strings with @S.
14277         * macros/tmac.e (@S): Rename to @U.
14279         * macros/tmac.e (@z): Define @b and bp as empty instead of
14280         deleting them,
14282         * macros/tmac.e (@m): Deleted.
14283         (@h): Don't call @m.
14284         (@z): Don't set @m trap.
14286         * macros/tmac.e ($h, $f): Define |z as empty string.
14288         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14289         (@q): Likewise.
14291         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14292         removing them.
14293         ()f): Likewise for * register.
14295         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14296         argument is missing, don't change $R.  Call sr with three
14297         arguments when initializing.
14299 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14301         * macros/tmac.e (sr): New macro.
14302         Initialize $r and $R using sr.
14304         * macros/tmac.e (,): Delete \*(#[.
14306         * troff/env.c (set_tabs): Read the tab type even if the position
14307         is bad.  Allow the position of the first tab stop to be negative.
14309 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14311         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14312         _POSIX_VERSION.
14313         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14314         rather than -DPATHCONF_MISSING.
14315         * Makefile: Get rid of PATHCONF_MISSING.
14317         * refer/map.c: New file.
14318         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14319         to map_len.
14320         * refer/Makefile: Handle map.c.
14321         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14323 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14325         * Makefile: RANLIB should be `true' if there is no ranlib.
14326         * lib/Makefile (libgroff.a): Simplify.
14327         * driver/Makefile (libdriver.a): Simplify.
14329         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14330         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14331         defined.
14333 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14335         * troff/env.c (compare_ranges): Declare as extern "C".
14337         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14339         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14341 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14343         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14344         but conditionalize use of \X based on \*(.T.
14345         (grops_output::*): Deleted.
14346         * pic/output.h: Delete declaration of make_grops_output.
14347         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14348         by default. -n sets it to 0.
14349         (usage): Corresponding changes.
14350         * groff.c (main): Don't pass -x or -p to pic.
14351         * groff.sh: Likewise.
14353         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14354         to be non-zero.
14356         * ps/devps/afmtodit: Change calculation of asc_boundary and
14357         desc_boundary.  Make these bounds inclusive.
14358         * ps/devps: Regenerate font files.
14360 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14362         * macros/tmac.latin1: New file.
14363         * macros/tmac.tty-char: Use tmac.latin1.
14364         (tmac.tty-tr): Deleted.
14365         * macros/Makefile: Install tmac.latin1.
14366         * macros/tmac.dvi: Use tmac.latin1.
14367         * macros/troffrc: Translate \[char160] onto no-break space here.
14368         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14370 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14372         * macros/tmac.Xps: Use `do' request.
14374         * macros/tmac.ps: Use `do' request.
14376         * macros/tmac.e (@C): Use `do' request.
14378         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14379         * macros/Makefile: Install tmac.X*.
14381         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14382         * tty/Makefile: Don't install tmac.tty*.
14383         * macros/Makefile: Install tmac.tty*.
14385         * dvi/tmac.dvi: Move to macros.
14386         * dvi/Makefile: Don't install tmac.dvi.
14387         * macros/Makefile: Install tmac.dvi.
14389         * ps/tmac.ps*: Move to macros.
14390         * ps/Makefile: Don't install tmac.ps*.
14391         * macros/Makefile: Install tmac.ps*.
14393         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14394         option.
14395         * macros/eqnrc: Set draw_lines parameter based on device.
14396         * groff.c: Don't pass -D flag to eqn.
14397         * groff.sh: Likewise.
14398         * eqn/main.c: Warn about use of -D.
14400         * troff/input.c (process_startup_file): New function.
14401         (main): Call process_startup_file().
14402         * macros/troffrc: New file.
14403         * macros/Makefile: Install troffrc.
14404         * groff.c (main): Don't pass extra -m option to troff. For a 
14405         pseudo device pass the name of the pseudo device to troff using
14406         -d.
14407         * groff.sh: Likewise.
14408         * groff.c (possible_command::prepend_arg): Deleted.
14410         * troff/input.c (do_request): New function.
14411         (init_input_requests): Bind "do" to do_request.
14413         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14414         load eqnrc from macro directory.
14415         * macros/eqnrc: New file.
14416         * macros/Makefile: Install eqnrc.
14417         * ps/devps/eqnchar: Deleted.
14418         * ps/devps/Makefile: Don't install eqnchar.
14419         * dvi/devdvi/eqnchar: Deleted.
14420         * dvi/devdvi/Makefile: Don't install eqnchar.
14421         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14422         variable optM.
14424         * lib/device.[ch]: New files.
14425         * lib/font.h (font::set_device_name, font::get_device_name):
14426         Deleted.
14427         * lib/fontfile.c: Use device.h.
14428         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14429         * troff/input.c: Delete definition of `device'.
14430         (main): Don't initialize device.
14431         * troff/troff.h: Include device.h rather than declaring device.
14432         * troff/Makefile: No need to handle DEVICE.
14433         * driver/input.c: Include device.h. Don't use
14434         font::{set,get}_device_name.
14435         * groff.c, Makefile: Rename device.h to config.h.
14436         * groff.c: Use library device variable.
14437         * eqn/main.c: Use library device variable.
14438         * eqn/Makefile: No need to handle DEVICE.
14440         * lib/searchpath.[ch]: New files.
14441         * lib/Makefile: Handle searchpath.[ch].
14442         * troff/input.c (open_file, init_dirs): Deleted.
14443         (macro_dirs): Deleted.
14444         (open_mac_file, macro_source): Use class search_path.
14445         (add_string, struct string_list): Move definition.
14446         (main): Change -M option to use macro_path. Delete call to
14447         init_dirs().
14448         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14449         Rewrite to use class search_path.
14450         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14451         * lib/Makefile: fontfile.c depends on searchpath.h.
14452         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14453         MACROPATH.
14454         * lib/macropath.[ch]: New files.
14455         * troff/Makefile: No need to handle MACROPATH.
14457         * troff/input.c: Delete DUMP code.
14458         * lib/fontfile.c, lib/font.h: Delete
14459         font::forget_command_line_font_dirs.
14461         * troff/input.c (push_token): New function.
14462         (handle_first_page_transition): Use push_token().
14463         (process_input_stack): Change handling of a space at the beginning
14464         of the line.
14466 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14468         * troff/input.c (font_dirs): Delete unused variable.
14470         * eqn/lex.c (do_set): Correct error messages.
14472 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14474         * troff/input.c (do_define_string): Allow the string name to be
14475         followed immediately by a tab.
14476         (define_character): Likewise.
14478 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14480         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14481         be negative.
14483         * troff/input.c (input_iterator::is_file): New virtual function.
14484         (file_iterator::is_file): New function.
14485         (input_stack::end_file): New function.
14486         (input_stack::next_file): Handle the situation where there is no
14487         file on the input stack correctly.  Avoid making two passes over
14488         the input stack.
14489         (next_file): Make the filename optional; in this case call
14490         input_stack::end_file().
14492 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14494         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14495         produce a real _ charater when the current font is CW and _
14496         otherwise.
14498         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14499         expression to work around gcc 2.2 bug.
14501 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14503         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14505         * troff/env.c (environment::add_padding): New function.
14506         (environment::add_char): Use add_padding().
14507         (environment::space): Likewise.
14508         (environment::wrap_up_field): Add some padding if there is none
14509         and there's no current tab.
14510         * troff/env.h: Declare environment::add_padding.
14512 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14514         * pic/pic.y: undef fmod and rand before declaring them.
14516 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14518         * troff/input.c (main): If the DESC file specifies a font name of
14519         0, then leave the corresponding font position empty.
14521         * nroff.sh: New file.
14522         * Makefile (install.nobin): Install nroff.sh.
14524         * tty/devlatin1/R.proto: Add ao as synonym for de.
14525         * tty/tmac.tty-char: Define ao as o.
14527         * tty/dev{ascii,latin1}/R.proto: Add aq.
14528         * tty/tmac.tty-char: Delete definition of aq.
14530 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14532         * troff/input.c (init_charset_table): Don't translate 0240.
14533         * ps/tmac.ps: Translate char160 to space.
14534         * dvi/tmac.dvi: Likewise.
14535         * tty/tmac.tty: Likewise.
14537 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14539         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14541         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14542         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14543         \(oe, \(r?, \(r!.
14545         * tty/tmac.tty-char: Add \(ah.
14547         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14548         No need to define \(FM and \(!/. Conditionalize all character
14549         definitions.
14551         * ps/devps/lgreekmap: Add +h, +f, +p.
14553         * ps/tmac.psnew: New file.
14554         * ps/Makefile: Install tmac.psnew.
14556         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14557         character definitions in compatible mode.
14559         * troff/input.c (remove_character): New function.
14560         (init_input_requests): Bind remove_character to "rchar".
14562         * ps/tmac.psold: New file.
14563         * ps/Makefile: Install tmac.psold.
14564         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14565         characters into tmac.psold.  Make these definitions unconditional.
14567         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14569         * ps/tmac.ps: Don't define \('c and \('C.
14571         * ps/devps/textmap: Move Greek characters to...
14572         * ps/devps/symbolchars:
14574 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14576         * ps/devps/text.enc: Add quotesingle.
14577         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14578         * tty/tmac.tty-char: Likewise.
14579         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14580         * dvi/devdvi/texi.map: Add Fn.
14581         * dvi/devdvi/msam.map: Add lz.
14582         * dvi/tmac.dvi: Handle Bq, bq, aq.
14584         * pic/lex.c (get_token): Recognize 'th.
14585         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14587 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14589         * ps/devps/textmap: Move di, mu, +- to...
14590         * ps/devps/symbolchars:
14592         * macros/tmac.s (@XS): Don't call par@reset or fi.
14593         (XA): Call LP. Turn off adjustment. Reduce line length.
14595         * macros/tmac.s: Initially alias XS to LP.
14596         (XS): Rename to @XS.
14597         (cov*ab-init): Alias XS to @XS.
14599 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14601         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14602         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14603         (token::is_size, token::changes_env): Deleted.
14604         * troff/number.c (parse_term): No need to process \s explicitly.
14605         Call tok.next() only after scale indicator has been processed.
14606         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14607         \f etc explicitly.
14608         (token::next): Handle \s, \f, \S, \H immediately rather than
14609         returning them as tokens.
14610         (token::operator==, token::description, token::add_to_node_list,
14611         token::process): Remove handling of deleted tokens.
14613         * troff/env.c (environment::add_char): When adding padding
14614         indicator character, call start_line() if necessary.
14616 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14618         * ps/devps/afmtodit: Don't output 0 kerns.
14620         * ps/devps/afmtodit: Remove directory from name of encoding in
14621         font description file.
14623         * ps/devps/afmtodit: Improve error messages.
14625         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14627         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14628         * ps/devps/FontMakefile: Deleted.
14629         * ps/devps/afmname: New file.
14631         * ps/devps/symbol.sed: New file.
14632         * ps/devps/symbol.diff: Deleted.
14633         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14634         Generate zapfdr.afm from zapfd.afm.
14636         * tty/tmac.tty (tty-char): Prefix definition with ".
14638         * macros/tmac.an (TP): Don't start a diversion if one has already
14639         been started.
14641         * tty/tmac.tty-char: Add Latin-1 characters.
14643         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14645 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14647         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14648         Move declaration of struct horizontal_span.
14650         * tbl/table.c (table::table): Initialize span_list.
14651         (table::~table): Delete span_list.
14653         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14655         * ps/devps/Makefile: Avoid dependency on GNU make.
14657         * ps/tmac.ps: Check that character does not already exist before
14658         defining it.
14660         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14661         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14662         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14663         files.
14665         * tty/tmac.tty-char: New file.
14666         * tty/Makefile: Install tmac.tty-char.
14667         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14668         tmac.tty-char.
14670         * tty/tmac.tty: Fix definition of \(34.
14672         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14673         bracket-drawing characters onto |. Add *o.
14675         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14676         only if current_field.
14678         * troff/dictionary.c (dictionary::lookup): Free old_table after
14679         rehashing. 
14681 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14683         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14684         whose glyphs are identical to glyphs of some Roman character.
14686         * tty/devlatin1/R.proto (bu): Deleted.
14687         * tty/devascii/R.proto (bu): Deleted.
14688         * tty/tmac.tty: Add definition of \(bu.
14690         * eqn/main.c (do_file): Pass FILE as argument.
14691         (main): Automatically load eqnchar.  New options -F and -n.
14692         Pass do_file an opened FILE.
14693         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14694         No need to include font.h.
14695         * groff.sh: Likewise.  Don't need to use - for standard input.
14696         Prefix files with -- if first file starts with -.
14698         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14700         * troff/env.c (environment::possibly_break_line): Don't set line
14701         to 0 across call to output_line().  Don't call output_line() until
14702         after discarding nodes after break.
14704 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14706         * request.h (macro::empty): Declare it.
14707         * input.c (macro::empty): New method.
14708         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14709         macro is empty.
14711 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14713         * troff/env.c (environment::start_field): Decrement space_total
14714         when a space is frozen.
14716 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14718         * macros/tmac.an (R): Delete macro.
14720         * troff/input.c (get_copy, token::next): Support \# (like \" but
14721         newline is ignored).
14723         * troff/input.c (token::next): Fix error message in 'Y' case.
14725 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14727         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14728         a delimiter name.
14730 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14732         * c++test.c: Include <osfcn.h>.
14734         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14735         <errno.h> doesn't.
14737 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14739         * tbl/table.c (table::divide_span): Don't count column separation
14740         if expand was specified.
14742         * tbl/main.c (process_format): Don't ignore width specs in
14743         continued format.  Give warning for changing equal widths or
14744         column separation in continued format.
14745         (process_data): Set column separation, minimum width, equal
14746         columns at end of table.
14748 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14750         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14751         node::add_discretionary_hyphen): Use soft_hyphen_char.
14752         (set_soft_hyphen_char): New function.
14753         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14755         * Makefile (c++tested): Give more helpful message if test fails.
14757 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14759         * troff/input.c (init_charset_table): Translate 0240 to
14760         an unbreakable space.
14762         * troff/token.h (token::hyphen_indicator): New function.
14763         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14764         translation.
14765         * troff/input.c (translate): Allow translation to \%.
14766         * troff/node.c (node::add_char): Handle
14767         TRANSLATE_HYPHEN_INDICATOR.     
14768         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14770         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14771         for \(hy.
14773         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14775 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14777         * groff.c (run_commands): If the last command gets a SIGPIPE send
14778         a SIGPIPE to all children than haven't yet terminated.  When
14779         command terminates, set pid field to -1.
14781 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14783         * groff.c (main): Pass an appropriate -filename option to gxditview.
14785 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14787         * Makefile.bd (install): Remove existing program before copying.
14789         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14790         programs which have Unix counterparts to be installed with
14791         user-specified prefix.
14793         * troff/input.c (exit_troff): Don't check if exit_started.
14794         (exit_request): Don't call exit_troff if exit_started.
14796         * Makefile.bd (install.mm): Rename to install.dwbmm.
14798 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14800         * driver/input.c (do_file): Add missing break for '#' case.
14802 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14804         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14805         then add the boundaries back.
14807         * troff/input.c (exit_troff): Return immediately if already
14808         exiting.
14810         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14811         end macro.
14812         (pg*end-page): If the text has ended and there are no more
14813         footnotes or keeps, exit.
14815         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14817         * troff/input.c (init_charset_table): Make \(rq transparent by
14818         default.
14820         * macros/tmac.an: Define lq and rq strings.
14822         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14824 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14826         * troff/env.c (environment::final_break): New function.
14827         (environment::newline): Set prev_line_interrupted to 2 if
14828         exit_started.
14829         * troff/env.h: Declare environment::final_break.
14830         * troff/input.c (exit_troff): Call environment::final_break()
14831         instead of environment::do_break().
14833         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14834         doesn't already exist.
14835         * macros/man.local: New file.
14836         * macros/tmac.an: Load man.local.
14837         * macros/man.ultrix: New file.
14839 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14841         * troff/input.c (exit_groff): Rename to...
14842         (exit_troff): New function.
14844         * troff/div.c (exit_started, done_end_macro,
14845         seen_last_page_ejector): New global variables.
14846         (began_page_in_end_macro): New static variable.
14847         (exit_flag): Deleted.
14848         (top_level_diversion::top_level_diversion): Initialize
14849         last_page_count.
14850         (top_level_diversion): More elaborate test for whether
14851         cleanup_and_exit() should be called.
14852         Set began_page_in_end_macro if the end macro isn't yet finished.
14853         * troff/div.h (top_level_diversion::last_page_count): New data
14854         member.
14855         (top_level_diversion::set_last_page): New function.
14856         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14857         * troff/env.c (do_break): Zero prev_line_interrupted.
14858         * troff/input.c (exit_flag): Delete declaration.
14859         (LAST_PAGE_EJECTOR): New magic cookie.
14860         (token::next): Handle LAST_PAGE_EJECTOR.
14861         (exit_groff): Set exit_started and done_end_macro instead of
14862         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14863         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14864         another ejection after setting seen_last_page_ejector.
14866 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14868         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14870         * macros/tmac.e (TH): Make sure there's room for the initial
14871         header.
14873         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14874         Set FVS in points rather than units.
14876 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14878         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14879         position of empty slots.
14881 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14883         * ps/devps/S: Fix height and depth of parenrightex.
14884         * ps/devps/symbol.diff: Regenerate.
14886 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14888         * tmac.e (u): Do underlining as in -mgs.
14890 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14892         * tty/tty.c (tty_printer::end_page): If overstriking is
14893         suppressed, still turn overstruck horizontal and vertical lines
14894         into +.
14896         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14897         2.1.
14899         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14901 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14903         * Version 1.05 released.
14905 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14907         * tty/tty.c: Instead of keeping an array of glyphs and then
14908         sorting it, keep a ordered linked list of glyphs for each line.
14910         * driver/driver.h: Include stddef.h.
14912         * tty/tty.c (compare_glyph):
14913         * refer/refer.c (rcompare):
14914         * troff/env.c (compare_ranges): Arguments of qsort comparison
14915         function should be const void *.
14917         * troff/number.c (parse_term):
14918         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14919         switch statement.
14921         * refer/label.y (consider_authors): Don't access variables
14922         constructed under a condition outside that condition: put braces
14923         round for statement containing declaration; redeclare use of same
14924         variable later.
14926         * pic/pic.y (text_expr): Delete production that allows
14927         parenthesised text_expr.
14928         (expr): Allow a conditional_expr to appear in parentheses.
14929         (conditional_expr): Rename to any_expr.
14931         * mm: Install new version 1.01 from jh.
14933         * lib/font.c (font::get_width): Cache scaled widths.
14934         (font::font): Initialize widths_cache.
14935         (font::~font): Destroy widths_cache.
14936         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14938 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14940         * c++test.c, c++test.ref: New files.
14941         * Makefile: Check that the C++ compiler works.
14943         * ps/tmac.pspic (PSPIC): Do a break.
14945         * ps/tmac.ps: Move definition of PSPIC into...
14946         * ps/tmac.pspic: New file.
14947         (PSPIC): Draw box around picture, but make it invisible to grops.
14948         * ps/tmac.ps: Load tmac.pspic.
14949         * ps/Makefile: Install tmac.pspic.
14951 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14953         * lib/font.c (scale_round): If n is negative,
14954         subtract .5 before truncating floating point result.
14956         * lib/fontfile.c: Include <errno.h>.
14958 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14960         * driver/input.c (get_char): Inline. Don't update current_lineno.
14961         Change callers to up date current_lineno if necessary.
14962         Use get_char() instead of getc(current_file).
14964 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14966         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14968 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14970         * tty/tty.c (tmac.tty): Define \(rg as (R).
14972 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14974         * lib/lib.h: New define a_delete.
14975         * Use a_delete instead of delete when deleting an array of objects
14976         without destructors.
14978         * lib/lib.h: Rename adelete to ad_delete.
14979         * Change uses of adelete.
14981 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14983         * eqn/eqn.y: Include lib.h.
14985         * troff/node.c (grow_font_table): Delete old_font_table.
14987         * mm: Install new version from jh.
14989 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14991         * tbl/table.h (format_type): Make global instead of local to class
14992         entry_format.  Prefix enumerators with FORMAT_.
14993         * tbl/table.c, tbl/main.c: Corresponding changes.
14994         * refer/token.h (token_type): Make global.  Prefix enumerators
14995         with TOKEN_.
14996         * refer/token.[ch]: Corresponding changes.
14997         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14999         * troff/div.c (node::set_vertical_size): Don't name argument.
15001 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
15003         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15004         * lib/lib.h: Define adelete accordingly.
15005         * pic/object.c (graphic_object::graphic_object):
15006         * tbl/main.c (format::~format):
15007         * tbl/table.c (table::~table):
15008         * refer/ref.c (reference::~reference, reference::merge,
15009         reference::insert_field, reference::delete_field): Use adelete.
15011         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15012         * refer/token.h:
15013         * tbl/table.h: Corresponding changes.
15015         * common.c (common_output::dashed_arc, common_output::dotted_arc):
15016         Ensure total_angle is positive.
15018 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
15020         * refer/ref.c (reference::merge, reference::insert_field,
15021         reference::delete_field): Avoid delete[0].
15023         * refer/token.c (init_special_chars): Move calls to cmupper
15024         outside calls to init_two_char_letter to work around bug in gcc
15025         2.0.
15027 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
15029         * lib/new.c (operator new): Use __builtin_new for g++.
15031         * pic/object.c (graphic_object::~graphic_object):  Don't use
15032         delete [] on 0.
15034         * pic/object.c (output::compute_scale): Initialize max_width and
15035         max_height.
15037 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
15039         * troff/input.c (write_request): Call fflush.
15041         * troff/node.h (class composite_node): Move declaration to node.c
15042         * troff/input.c (charinfo_to_node): Rename to ...
15043         (charinfo_to_node_list): Return node list rather than composite
15044         node.
15045         * troff/node.c (make_composite_node): New function.
15046         (make_node, add_char): Call make_composite_node instead of
15047         charinfo_to_node.
15048         (class composite_node): Add a tfont * member.  Delete font_size
15049         member.
15050         (composite_node::composite_node, composite_node::copy,
15051         composite_node::size): Corresponding changes.
15052         (composite_node::tprint): Provide constant spacing, emboldening
15053         and track kerning as specified in tfont.
15054         (composite_node::width): Change width calculation accordingly.
15055         * troff/env.h (environment::composite): New member.
15056         (environment::is_composite, environment::set_composite): New
15057         functions.
15058         * troff/env.c (environment::environment): Initialize composite.
15059         * troff/input.c (charinfo_to_node): Call
15060         environment::set_composite.
15061         * troff/node.c (make_composite_node, make_glyph_node): Use the
15062         plain version of the tfont if the environment is composite.
15064         * troff/node.c (font_info::get_space_width): Additional argument
15065         giving space_size.  Handle constant space correctly. Scale by
15066         space_size unless constant spaced.
15067         (env_sentence_space_width): New function.
15068         * troff/node.h: Declare it.
15069         * troff/env.h (environment::get_space_size,
15070         environment::get_sentence_space_size,
15071         environment::get_narrow_space_width,
15072         environment::get_half_narrow_space_width): Make inline.
15073         (environment::get_space_width): Make inline.  Just call
15074         env_space_width.
15075         * troff/env.c: Delete definitions for funtions made inline.
15076         (environment::space_newline, environment::space): Use
15077         env_sentence_space_width(). Don't scale by space_size.
15078         * troff/node.h: Move declarations of env*space_width() functions
15079         into env.h.
15081 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
15083         * macros/tmac.s (PS): Don't try to set negative indent.
15085 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
15087         * pic/pic.y: Fix min function.
15089 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
15091         * man/mdate.sh: Clear LANGUAGE.
15093 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
15095         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15096         * pic/lex.c: New COMMAND keyword.
15097         * pic/pic.y (print_args, print_arg): New rules.
15098         (placeless_element): Use print_args for PRINT.
15099         New COMMAND element.
15101 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
15103         * troff/input.c (terminal): Handle missing argument correctly.
15105         * pic/pic.y (text_expr): New rule.
15107         * pic/pic.y: Implement := operator.
15109 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
15111         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15112         mdoc.
15114 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
15116         * ps/devps/dingbatsrmap: Include this in the distribution.
15118         * macros/tmac.doc: Replace with new version from 2nd Networking
15119         Release. Fix loading of doc-* files.
15120         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15121         * macros/tmac.doc.old: New file.  Apply fixes that had been
15122         applied to old tmac.doc.
15123         * macros/tmac.andoc: Check that we're running under groff.
15124         * macros/Makefile: Rework.
15126 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
15128         * tbl/table.h (format_type): 
15129         * refer/token.h (token_type): If NESTED_TYPES is defined, use
15130         typedef to make these types visible at file scope.
15131         * Makefile: Add NESTED_TYPES configuration option.
15133         * troff/div.c (mark): At the top level use the value of
15134         nl_reg_contents rather than the current vertical position.
15136 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
15138         * tty/tty.c: Implement \D for horizontal or vertical lines.
15139         (tty_printer::set_char): Use vec_used+2 as serial number.
15140         Don't allow size of vector to exceed USHRT_MAX-2.
15141         Split off part into...
15142         (tty_printer::add_char): New function.
15143         (tty_printer::draw): New function.
15144         (compare_glyph): Handle equal serial numbers.
15145         (tty_printer::end_page): Handle overstruck characters from \D.
15146         (main, usage): Implement -d option.
15148 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15150         * tbl/main.c (process_format):
15151         * eqn/text.c (split_text):
15152         * troff/input.c (token::next): Use inner block for declarations
15153         with initializers in switch statement.
15155 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15157         * pic/common.c (common_output::dash_line): Cope with zero-length
15158         lines.
15160 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15162         * Version 1.04 released.
15164 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15166         * macros/tmac.an (TH): Define a macro an-init to define variables
15167         based on command line arguments.
15168         (an-header): Call it.
15170 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15172         * Makefile (install.mm): Rename to install.dwbmm.
15174         * Makefile: Integrate mm.
15175         * mm: New directory.
15177 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15179         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15180         <sys/types.h>.
15182         * pic/troff.c (troff_output::simple_spline,
15183         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15184         shadowing parameter.
15186         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15188         * lib/ptable.h: Add explicit casts when converting from unsigned
15189         long to unsigned.
15191         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15192         * dvi/devdvi/Makefile: Install SA, SB.
15194         * refer/indxbib.c: Add declaration of mktemp.
15196         * refer/lookbib.c: Add declaration of isatty.
15198 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15200         * pic/lex.c (interpolate_macro_with_args):  While collecting
15201         arguments, keep track of whether we're in a string.
15203 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15205         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15206         down with \v, so as to avoid problems with top of page trap
15207         setting no space mode.
15209 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15211         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15213 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15215         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15216         Improve error message.
15218 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15220         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15221         printf("%03o");
15223 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15225         * groff.c (possible_command::execp): Always use _exit() after a
15226         failed exec.
15228         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15229         NO_SYS_WAIT_H   configuration options.
15230         * groff.c: Use these options.  Use POSIX-style macros to extract
15231         fields from the status returned by wait().
15233 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15235         * tbl/table.c (table::compute_separation_factor): Allow the
15236         separation factor to drop to 0.
15238 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15240         * refer/search.c: Include <errno.h>.
15242 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15244         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15246         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15247         C++. 
15249         * pic/lex.c (input_stack::bol): Move definition out of class body.
15251         * pic/main.c: On MSDOS munge argv[0].
15253         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15255         * lib/ptable.c (hash_string): Use unsigned long rather than
15256         unsigned.
15257         (next_ptable_size): Use unsigned rather than int.  Give an error
15258         message if we've hit the largest table size.
15259         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15260         table size.
15262         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15263         flags as const unisgned long rather than as enums.
15265         * pic/output.c: Deleted.
15267         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15269         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15270         Add additional argument.
15271         (line_entry::note_double_vrule_on_{left,right}): Set value of
15272         douvle_vrule_on_{right,left} flag according to argument.
15273         (simple_line_entry::simple_print,
15274         simple_line_entry::double_line_print): If adjacent to double vrule
15275         on a corner extend rather than shorten the rule by half the double
15276         vrule sep.
15278         * troff/number.c (parse_term): In checking for overflow, handle the
15279         case where the current horizontal position is negative.
15281 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15283         * pic/object.c (draw_arrow): Check for object having zero length.
15285 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15287         * eqn/main.c (do_file): Split off inline equation handling into...
15288         (inline_equation): New function.  Search for starting delimiter
15289         using...
15290         (delim_search): New function. Don't recognize a delimiter that
15291         occurs in the name of an escape sequence, number register, string
15292         etc.
15294 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15296         * eqn/delim.c (delim_box::compute_metrics): Don't call
15297         define_extensible_string if left is 0.
15298         (delim_box::output):  Don't print the left delimiter if left is 0.
15299         (delim_box::debug_print): Check for left == 0 before calling printf.
15301 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15303         * troff/Makefile (majorminor.c): Include only digits in
15304         minor_version.
15306 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15308         * refer/dirnamemax.c: new file.
15309         * refer/genlimits.c: Deleted.
15310         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15311         Don't check path length.
15312         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15313         * Makefile: Add PATHCONF_MISSING option.
15315         * refer/indxbib.c (get_cwd): New function.
15316         (main): Use get_cwd().
15317         * lib/getcwd.c: New file.
15318         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15319         GETCWD in SUBFLAGS.
15320         * lib/Makefile: Compile getcwd.o.
15322         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15323         userdict.
15325         * refer/indxbib.c (main): Check success of mktemp.
15327         * lib/tmpfile.c: New file.
15328         * lib/Makefile: Add tmpfile.c.
15329         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15330         * ps/ps.h: Delete declaration of mktemp().
15331         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15332         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15333         * driver/driver.h: No need now to include errno.h.
15335         * everywhere: Set errno to 0 before calling fopen().
15337         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15338         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15339         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15341 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15343         * troff/env.h (translate_space_to_dummy): Declare it.
15344         * troff/env.c (environment::space_newline, environment::space):
15345         If translate_space_to_dummy is set then make the width of spaces 0.
15346         * troff/input.c (translate): If the second character of a
15347         translation is a space, translate to unbreakable space.  If the
15348         first character is a space, set or clear translate_space_to_dummy
15349         according to whether the second character is \&.  Weird!
15351 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15353         * groff.c (run_commands): Don't use non-zero exit code because a
15354         command gets SIGPIPE.
15356         * groff.c, groff.sh: Use -mXps with -TXps.
15358         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15359         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15360         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15361         (ps_printer::special): New specials invis and endinvis.
15362         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15363         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15364         (ps_printer::end_page): Check that invis_count == 0.
15365         (ps_printer::invis_count): New member.
15366         (ps_printer::ps_printer): Initialize invis_count to 0.
15368         * troff/env.c (environment::hyphenate_line): Hyphenation
15369         indicator at beginning of word inhibits splitting after -, \(em
15370         etc.
15372         * pic/pic.y (element): Allow another element to follow } without
15373         any intervening separator.
15375 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15377         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15379 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15381         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15382         declaration of wait() in header files.
15383         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15385         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15387         * lib/lib.h: Declare return type of strerror as char *.
15389         * man/Makefile: Add g flag to sed substitutions.
15390         * Makefile (shgroff, bindist): Likewise.
15392 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15394         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15395         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15396         userdict.
15398 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15400         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15401         userdict.
15403 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15405         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15406         group.
15408 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15410         * troff/input.c (define_number_reg):  If currently undefined,
15411         don't define it if the argument is an invalid expression.
15413         * Makefile: Ignore return value of `if' commands without `else'
15414         parts.
15416         * Makefile: Split up CPPDEFINES into a series of separate
15417         configuration options.
15419         * troff/input.c (init_registers): Use time_t instead of long
15420         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15421         than passing pointer.
15422         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15424         * lib/Makefile (fontpath.h): Use gendef.
15426 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15428         * troff/input.c (input_iterator::shift): Delete argument name.
15429         * troff/node.c (suppress_output_file::really_begin_page,
15430         suppress_output_file::really_transparent_char, node::ascii_print,
15431         node::tprint): Delete names of unused arguments.
15433 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15435         * refer/label.y (string):  Pass $4 to command_error.
15437 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15439         * Version 1.03 released.
15441 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15443         * Makefile: Pass definition of SHELL in SUBFLAGS.
15445         * gendef: New file.
15446         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15447         ps/Makefile: Use gendef to construct header files that are
15448         constructed from the Makefile.
15450         * macros/Makefile: make all should build stripped version of tmac.e.
15452         * refer/Makefile (clean): Remove y.output.
15454 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15456         * ps/pfbtops.c (main): Add -v option which prints out a version
15457         number.
15458         * ps/Makefile (pfbtops): Link with libgroff.a.
15460 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15462         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15463         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15465         * refer/lkbib.c (main): Always terminate reference with blank
15466         line.
15467         * refer/lookbib.c (main): Likewise.
15469         * refer/linear.c (file_buffer::load): Check that the file is not a
15470         binary file.
15472         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15473         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15474         Delete second inclusion of <sys/param.h>.
15476 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15478         * troff/token.h (token::special): Deleted.
15480         * tbl/main.c (process_format): Rework so that opt->tab_char is
15481         recognized only when appropriate.
15483         * ps/Makefile (clean): Remove pfbtops.
15485 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15487         * lib/font.c (text_file::next): Don't return if we have got a
15488         blank line.
15490 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15492         * refer/refer.c (store_reference): Get hash code from old_table[i]
15493         when rehashing the table.
15495 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15497         * eqn/box.c (box::top_level): Save size and prev size using \R and
15498         restore it afterwards. Set the size to the size at the beginning
15499         of the line.
15500         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15501         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15503         * refer/Makefile (limits.h): Use ./genlimits.
15505 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15507         * refer/index.c: Delete declarations of stat() and fstat().
15509 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15511         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15513 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15515         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15517 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15519         * troff/input.c (token::get_char): Handle \e.
15521         * refer/linear.c: Delete declarations of fstat() and stat().
15523 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15525         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15526         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15528 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15530         * troff/input.c (do_define_macro): Improve error handling for end
15531         of file while defining macro.
15533 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15535         * eqn/box.h: Fix declaration of set_gsize.
15536         * eqn/box.c (set_gsize): Make argument const char *.
15537         (gsize): Declare as char *.
15538         * eqn/main.c (main): Don't convert gsize to int.
15539         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15541         * Version 1.02 released.
15543 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15545         * macros/tmac.andoc: New file.
15546         * macros/Makefile: Install tmac.andoc.
15548         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15549         operator new and delete on OP_DELETE_BROKEN not being defined.
15550         * Makefile: Mention OP_DELETE_BROKEN.
15552 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15554         * Makefile (bindist): Pass SUBFLAGS.
15556 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15558         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15560         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15561         parameter.
15563         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15565         * ps/ps.h, ps/psrm.c: Make comment_table and
15566         header_comment_table local to resource_manager::process_file.
15568         * groff.sh: With -TXps pass -printCommand option to gxditview.
15570         * groff.c (possible_command::print): Implement using
15571         append_arg_to_string.
15573         * xditview: Merge in new implementation with own ChangeLog.
15575 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15577         * groff.c (main): Implement PRINT_OPTION.
15578         (append_arg_to_string): New command.
15579         (device_table): Set PRINT_OPTION flag for Xps.
15581 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15583         * troff/groff.h: Rename to troff.h.
15585         * pic/lex.c (lookup_keyword, docmp): New functions.
15586         (get_token): Use new lookup_keyword.
15587         Don't include key.h.
15588         * pic/key.[ch], pic/pic.gperf: Deleted.
15589         * pic/Makefile: Remove gperf stuff.
15591         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15592         into output.h.
15593         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15595         * troff/Makefile, troff/node.c: Move definition of
15596         STORE_WIDTH into node.c.
15598         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15600 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15602         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15603         dvi/devdvi/texb.map: Add lq and rq.
15604         dvi/devdvi: Regenerate fonts.
15605         * ps/devps/textmap: Add lq and rq.
15606         * ps/devps: Regenerate fonts.
15607         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15608         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15610         * pic/object.c (position_rectangle): When checking radius
15611         cope with possiblity that width or height is negative.
15612         (box_object::box_object): Have separate xrad and yrad with
15613         signs matching signs of dim components.
15614         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15615         (box_object::print): With rounded boxes use absolute values
15616         for dim and rad arguments.
15618         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15619         in fontpath.h.
15621         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15623         * various files: Add explicit destructors to keep Saber CC +d
15624         happy.
15626 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15628         * eqn/box.c (box::top_level): Restore fonts correctly after
15629         font changes in line containing inline equation.  Also
15630         restore previous font as well as current font.
15631         * eqn/pbox.h: Define necessary string and register names.
15633         * troff/input.c (token::next): Case 'R' calls do_register.
15634         (do_register): New function.
15636 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15638         * groff.c, groff.sh: Support Xps device.  Allow each device
15639         to have a pseudo_name and a real_name.
15641         * groff.c (run_commands): Don't print `Broken pipe' messages.
15643         * ps/pfbtops.c: New file.
15644         * ps/Makefile: Add pfbtops.
15646         * troff/number.c (parse_term): Improved error message.
15648 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15650         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15652         * Makefile: Integrate refer.
15653         * refer: New directory.
15654         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15655         man/lkbib.man: New files.
15656         * man/Makefile: Support refer man pages.
15658         * lib/lib.h: Declare is_prime.
15659         * lib/prime.c: New file.
15661         * troff/input.c (macro_source): New function.
15662         (init_input_requests): Bind "mso" to macro_source.
15664         * troff/env.c (environment::possibly_break_line): Maintain
15665         pointer to pointer to node to be split in ndp so as to avoid
15666         using address of freed node.
15668         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15669         pointer to first node to be hyphenated in startp so as to
15670         avoid using address of freed node.
15672         * troff/env.c (class trie, class hyphen_trie): Make the
15673         elements of the trie be of type char not unsigned char.
15674         Declare arguments to be const char* instead of unsigned char *.
15675         
15676         * troff/env.c (hyphenate): Initialize hbuf[0].
15678         * troff/input.c (set_string): Declare p to be char * and cast
15679         *p to unsigned char when necessary.
15681         * troff/input.c (do_define_macro): Declare s to be const
15682         char*. Cast element to unisgned char when necessary, Declare
15683         d to be an int.  Handle EOF better.
15685         * troff/Makefile, troff/input.c: Different scheme for passing
15686         definitions of MACROPATH, HYPHENFILE and DEVICE.
15688 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15690         * tty/devascii/R.proto: Delete entry for em.
15691         * tty/devlatin1/R.proto: Likewise.
15693 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15695         * troff/input.c (translate): Stop when we get a space. Treat eof
15696         like newline.
15698         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15700 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15702         * tbl/main.c (process_format): A font name following a `f'
15703         modifier that starts with a digit can be only one character long.
15704         Also deal with EOF on the second character of the font name.
15706 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15708         * troff/input.c (token::next): Turn \~ into an
15709         unbreakable_space_node.
15710         * troff/node.c (unbreakable_space_node): New class.
15711         * troff/node.h: Declare it.
15713 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15715         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15716         it's >= 0, before outputting it as a single byte.
15718 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15720         * lib/font.c: Make font_char_metric::code an int.
15721         (font::get_code): Change return type to int.
15722         (font::load): Allow code to be arbitrary integer.
15723         * lib/font.h (font::get_code): Change return type to int.
15724         (font::number_to_index): Change argument type to int.
15725         * troff/input.c (token::next):  In case 'N', allow any value.
15726         Store value in token::val.
15727         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15728         (token::get_char, token::add_to_node_list, token::process): Get
15729         number from val.
15730         (charinfo::set_number): Change argument to int.
15731         (charinfo::get_number):  Require that NUMBERED flag be set.
15732         (get_charinfo_by_number): Store numbered characters not between 0
15733         and 255 in a dictionary.
15734         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15735         to int.
15736         (charinfo::number): Change type to int.
15737         (charinfo::set_number): Change type of set_number to int.
15738         * troff/node.c (troff_output_file::put_char_width,
15739         troff_output_file::put_char): Test whether character is numbered
15740         using charinfo::numbered().
15741         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15742         values of num.
15743         * lib/nametoindex.c: New implementation to cope with arbitrary
15744         number characters.
15746         * troff/input.c (token::operator==): Test val for
15747         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15748         TOKEN_SIZE.
15750         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15751         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15753 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15755         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15756         variable.
15758         * all Makefiles: rm targets of cp and >.
15760         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15761         it.
15763         * eqn/lex.c (def_table): Add dollar.
15765 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15767         * troff/input.c (do_width): Push back newline before closing delim
15768         like do_bracket.
15770 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15772         * groff.c (possible_command::prepend_arg): New function.
15773         (main): Prepend device -m option.
15774         * groff.sh: Put device -m options before command-line options.
15776 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15778         * macros/tmac.an (IP): Quote argument to TP.
15780         * ps/ps.c (main): New option -b, which sets...
15781         (broken_flags): New variable.
15782         (ps_printer::~ps_printer): Incorporate the setup section in the
15783         prolog if (broken_flags & NO_SETUP_SECTION).
15784         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15785         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15786         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15787         ps_printer::print_needed_font_comment,
15788         ps_printer::print_supplied_font_comment,
15789         ps_printer::print_include_font_comments,
15790         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15791         ps_printer::read_download_file, read_document_fonts, add_font,
15792         skip_line, parse_fonts_arg, document_font::document_font,
15793         document_font::~document_font, document_font::download,
15794         ps_output::include_file):  Deleted.
15795         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15796         rather than %!PS-Adobe-2.0.  Make calls to
15797         resource_manager::need_font for each font that we used. Replace
15798         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15799         print_supplied_font_comment, print_needed_font_comment by call to
15800         resource_manager::print_header_comments. Output %%Orientation
15801         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15802         Don't output the prolog directly.  Instead call
15803         resource_manager::output_prolog.  Only define #copies when ncopies
15804         > 1.  Delete calls to print_include_font_comments  and
15805         download_fonts.  Add call to resource_manager::document_setup.
15806         (ps_printer::do_file): Call resource_manager::import_file instead
15807         of including it ourselves.
15808         (ps_printer::do_import): Likewise.  Also don't call
15809         merge_import_fonts. Push userdict on the dictionary stack before
15810         and pop it afterwards.
15811         Move declaration of ps_output into ps.h.
15812         * ps/psrm.c: New file implementing resource_manager class.
15813         * ps/ps.h: New file declaring ps_output and resource_manager
15814         classes.
15815         * ps/devps/zapfdr.ps:
15816         * ps/devps/symbolsl.ps:
15817         * ps/devps/prologue:  Use 3.0 conventions.
15818         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15819         Add default definition of BROKEN_SPOOLER_FLAGS.
15820         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15821         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15823 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15825         * etc/grog.pl: New file.
15826         * Makefile (GROG): New variable.
15827         Add GROG to SUBFLAGS.
15828         * etc/Makefile (GROG): New variable.
15829         (install.nobin): Install $(GROG) rather than grog.sh.
15831 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15833         * eqn/special.c (special_box::compute_metrics): Make the input and
15834         output strings the same.  Get the new height and depth from the
15835         predefined height and depth registers.  Also make subscript kern
15836         and skew available.
15837         (special_box::compute_subscript_kern, special_box::compute_skew):
15838         New functions.
15840         * eqn/box.c (pointer_box::compute_skew,
15841         simple_box::compute_metrics, box::top_level)
15842         * eqn/text.c (prime_box::compute_metrics,
15843         prime_box::comput_subscript_kern)
15844         * eqn/limit.c (limit_box::compute_metrics):
15845         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15846         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15847         negative numbers in `nr' requests with a leading 0.
15849 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15851         * eqn/special.c: New file.
15852         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15853         Add new rule for simple.
15854         * eqn/lex.c (token_table): Add SPECIAL.
15855         * eqn/box.h: Declare make_special_box.
15856         * eqn/Makefile: Add special.[co].
15858 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15860         * ps/devps/prologue: Possibly set packing to true while defining.
15861         Create grops dictionary here.  Initialize local variables before
15862         defining procedures.
15863         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15864         the dictionary stack. Set strokeadjust and overprint to false if
15865         the relevant operators are defined.
15866         (PEND): New procedure.
15867         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15868         prologue.  Do everything else in the setup section.
15869         (ps_printer::do_import): Just call PBEGIN and PEND around the
15870         picture. Also push userdict before, and pop it afterwards.
15872 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15874         * troff/node.c (bracket_node::tprint): Brackets were being printed
15875         1m too low.
15877         * macros/tmac.an (SH, SS): Set fill mode.
15879 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15881         * troff/div.c (top_level_diversion::begin_page): Set
15882         high_water_mark to 0.
15884 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15886         * man/mdate.sh: New file.
15887         * man/mdate.c: Deleted.
15888         * man/Makefile: Use mdate.sh instead of mdate.
15889         (mdate): Deleted.
15891         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15893 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15895         * man/mdate.c: New file.
15896         * man/*.man: Replace modification date by @MDATE@.
15897         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15898         (mdate): New target.
15900         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15901         Remove illegal input characters.
15903 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15905         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15907 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15909         * troff/div.c (begin_page): Change behaviour when
15910         !first_page_begun and !break_flag.
15912         * troff/input.c (do_name_test): Return 0 if argument is empty.
15914         * troff/input.c (read_long_escape_name): Require closing ] to be
15915         at same input level as opening [.
15917         * troff/input.c (read_increment_and_escape_name): New function.
15918         (get_copy, process_input_stack): Use this for \n.
15920 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15922         * troff/div.c (top_level_diversion::begin_page): Ignore the
15923         current value of page_number if !first_page_begun.
15925         * groff.c (main): Fix declaration of buf.
15927         * troff/input.c (do_name_test): New function.
15928         (token::next): Implement \A.
15929         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15930         (token::description, token::add_to_node_list, token::process):
15931         Handle TOKEN_ESCAPE.
15932         * troff/token.h: New token TOKEN_ESCAPE.
15934 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15936         * pic/main.c (do_picture): Allow space before and after filename
15937         following `<'.  Check that the filename is not empty.
15939 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15941         * Version 1.01 released. 
15943         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15945         * dvi/tmac.dvi: ftr HR to H.
15947         * macros/tmac.e: Round up computation of $r.
15949         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15950         Use \n(.s instead of \n[.s].
15952         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15953         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15954         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15955         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15956         short names in the char definitions.
15958         * ps/tmac.ps: Don't give up completely in compatibility mode.
15959         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15960         quote in front of \n(.s. Add u to factors inside \s[...].
15962 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15964         * tty/tmac.tty: Call the nroff request.
15966         * macros/tmac.e ((x, )x):  Better definitions that work properly
15967         in a diversion.
15968         (@0, @1): Helper macros for (x.
15970         * macros/tmac.e ($s, hl): Use \l rather than \D.
15972         * tty/tmac.tty: Make it work better in compatibility mode.
15973         (pchar): Rename to tty-char.
15975         * macros/tmac.e (@E): New macro.
15976         (r, i, b, rb, bi): Use @E.
15978         * macros/tmac.e (@F): Don't use (;...) syntax.
15980         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15981         it was modified for groff.
15983         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15985         * macros/tmac.e (<., .>): Removed.
15986         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15988         * macros/tmac.e: Remove check that groff is being used.
15990         * macros/tmac.e (@C): Change families only if using groff; turn
15991         compatibility mode off while changing familes. Save compatibility
15992         mode before changing families and restore it afterwards.
15994         * macros/tmac.e (@h): Remove test for offset + line length.
15996         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15997         (lo, th, ac): Define to call @S instead of using als.
15999         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16000         the ratio of the vertical spacing to the point size in units
16001         expressed as a percentage.  Use these instead of $10r and $10R,
16002         Delete $10r and $10R.
16004         * lib/font.c (font::load): In default computation of space_width,
16005         divide by sizescale.  Use scale_round.
16007         * macros/tmac.an (TP): Don't call `nf'.
16008         (an-do-tag): Don't call `fi'.
16010 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
16012         * troff/input.c (process_input_stack): Handle the case where
16013         spaces at the beginning of an input line are followed by a
16014         newline.
16016 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
16018         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16019         * groff.sh: Use pic -x with the dvi device.
16021         * dvi/devdvi/FontMakefile (H): Don't use -s.
16023         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16024         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16025         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16026         in FONTS.
16028 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
16030         * ps/psfig.diff: New file.
16031         * ps/tmac.psfig: New file.
16033 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
16035         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16036         (]-): Don't call ref*do-tl.
16038         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16040         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16041         (fn@do-FS): Rename to fn*do-FS.
16043         * troff/input.c (transparent_translate): New function.
16044         (process_input_stack): Apply transparent_translate before calling
16045         diversion::transparent_output(unsigned char).
16047 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
16049         * troff/input.c (do_define_macro): Define the macro before calling
16050         skip_line.
16052         * xditview/Makefile: Add DEVICES variable.  Change install target
16053         to use this.
16055 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
16057         * groff.c (run_commands): Handle the possibility that there are
16058         child processes other than those forked by us.
16060 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
16062         * lib/string.c (string::append): New function.
16063         * lib/stringclass.h: Declare it.
16065 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
16067         * eqn/main.c (main): New option -N which sets
16068         no_newline_in_delim_flag. 
16069         (do_file): If no_newline_in_delim_flag is set don't allow newlines
16070         in delimiters.
16071         * groff.c (main): Pass -N on to eqn.
16072         (help, synopsis): Mention -N.
16073         * groff.sh: Implement -N.
16075 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
16077         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16078         (]-): Call ref*do-tl if ref*need-tl is non-zero.
16079         (XP): Allow as initializer.
16081 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
16083         * troff/env.c (environment::wrap_up_field): If field_spaces are
16084         non-zero and we have a current_tab, subtract padding from
16085         tab_distance.  If this makes tab_distance <= 0, use the next tab
16086         stop instead.  If there isn't any next tab or it's a left tab,
16087         wrap up the current tab.
16088         (environment::start_field): Initialize tab_precedes_field.
16089         (environment::wrap_up_tab): If there's a current field, update
16090         pre_field_width, field_distance and tab_precedes_field.
16091         * troff/env.h (environment::tab_precedes_field): New member.
16093 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
16095         * ps/ps.c (ps_printer::do_file): New function.
16096         (ps_printer::special): Bind to `file' special.
16097         (ps_printer::do_exec): Set ndefined_styles to 0.
16099 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
16101         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16102         Avoid stripping first character from the start of unrecognized
16103         escapes.  Use lex_error instead of error to report errors.
16104         * eqn/lex.c (get_token): Rework handling of escapes.
16105         (lex_error): Move declaration into...
16106         * eqn/eqn.h.
16108         * xditview/xditview.c (main): Make -page option work.
16110         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16112 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
16114         * macros/tmac.s (B2): Correct size of box.
16116 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
16118         * macros/tmac.s (B2): Postpone drawing the box until in the
16119         top-level diversion.
16121         * tty/tmac.tty: Add font translations for C, CR, CW.
16123         * groff.c (synopsis, help): Document -i.
16124         * groff.sh: Implement -i.
16126         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16127         Simplify the construction of SN.
16129         * troff/number.c (parse_term): Give `|' a higher precedence.
16130         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16131         accordingly.
16133         * macros/tmac.s (B2): Use par@finish instead of par@reset.
16135 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
16137         * lib/string.c (string::move): New function.
16138         * lib/stringclass.h: Declare it.
16140 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
16142         * troff/env.c (distribute_space): Add optional argument
16143         `force_forward'.
16144         (environment::wrap_up_field): Call distribute_space with
16145         `force_forward' argument of 1.
16147 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
16149         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16150         Inline it.  Move reallocation into...
16151         (string::grow1): New function.
16152         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16153         dependencies to include library header files.
16154         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16156 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16158         * macros/tmac.s (@NH): Use the same number registers than -ms does
16159         for the heading level counters.  Use the same string that -ms does
16160         for the number for this heading.
16162 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16164         * lib/new.c (operator new): Cast result of malloc to char *.
16166         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16167         is not null.
16169 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16171         * groff.c (main): Support -i.
16173 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16175         * pic/pic.h: Include <osfcn.h>.
16177         * ps/ps.c: Add declaration of mktemp.
16179         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16180         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16181         argument as union wait *.
16182         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16183         argument to union wait *.
16185 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16187         * tty/tmac.tty: Add definition of \(co.
16189         * pic/object.c (make_arc): Only increase radius when radius
16190         strictly less than d.
16191         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16192         more than once.
16194         * troff/env.c (environment::environment(symbol),
16195         environment::environment(const environment *)):  Initialize
16196         input_trap_count.
16198 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16200         * tbl/main.c (main): Add exit(0).
16202         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16204         * pic/main.c (main):
16205         * eqn/main.c (main):
16206         * tbl/main.c (main):
16207         * etc/soelim.c (main):
16208         * driver/printer.c (printer::~printer):
16209         * troff/node.c (real_output_file::~real_output_file,
16210         real_output_file::flush):  Check for errors on stdout.
16212         * most files: Add 1991 to copyright notice.
16214         * macros/tmac.s: Don't test \n(.x and \n(.y.
16216         * troff/input.c (token::next): Rename `escape_char' label to
16217         `handle_escape_char' and `normal_char' label to
16218         `handle_normal_char'.
16220 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16222         * groff.c (main, synopsis, help): Support -a option.
16223         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16224         to trflags while parsing options.
16226 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16228         * troff/number.c (parse_term): With `m', `M' and `n' scale
16229         indicators, convert scale factor to hunits before scaling.
16231 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16233         * lib/font.c (scale_round): Better test for overflow when n is
16234         negative.
16236 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16238         * tbl/main.c (process_format): Add second argument of type
16239         options*. Change callers.  Allow opt->tab_char as well as '\t'
16240         between format items.
16242 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16244         * macros/tmac.an (PD): With no arguments, make sure register PD is
16245         at least \n[.V].
16246         (TH): Call PD with no argument, instead of setting register PD
16247         directly.
16249 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16251         * Version 1.00 released.
16253 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16255         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16257         * dvi/devdvi/DESC: Mount CW instead of CR.
16259         * dvi/tmac.dvi: Add definition of \(tm.
16261         * dvi/devdvi/texsy.map: Add lh, and rh.
16262         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16263         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16265         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16266         * dvi/devdvi/Makefile: Install H.
16267         * dvi/devdvi/H: New file.
16269 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16271         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16272         be 0.
16274 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16276         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16278         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16280         * macros/tmac.s (@EN): Handle the case where the equation is empty
16281         but the label is not.
16283 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16285         * troff/groff.h: New warning category WARN_SPACE.
16286         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16287         WARN_SPACE to warning_table.
16288         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16289         is longer than two characters and is not defined, but the first
16290         two characters do make a defined name.
16292         * PROBLEMS: New file.
16294         * CHANGES: New file.
16295         * README-0.6, README-1.00: Deleted.
16297         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16298         * xditview/devX75/Makefile: Make devX75-12.
16299         * xditview/devX100/Makefile: Make devX100-12.
16301         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16302         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16304 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16306         * README-0.7: Rename to README-1.00.
16308         * macros/tmac.pic: New file.
16309         * macros/Makefile (install.nobin): Install tmac.pic.
16311 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16313         * troff/env.c (hyphen_word): Correct the test for whether the
16314         token is a hyphen.  Reset npos to 0.
16316         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16318 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16320         * macros/tmac.s (ds*common-end): Call par*reset.
16321         (PE): Likewise.
16322         (par@reset-indent): Deleted.
16324         * macros/tmac.s (@IP): Divert the label.
16326 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16328         * xditview/draw.c (setGC): Use a line width of .1m rather than
16329         .04m by default; round rather than truncate value.
16331         * tbl/table.c (class empty_entry): New class.
16332         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16333         (table::add_entry): Represent empty entries by objects of type
16334         empty_entry.
16335         (table_entry::line_type): Return -1.
16336         (table::determine_row_type): Ignore entries with line_type 0.
16337         Treat type -1 as non-lines.
16339 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16341         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16342         macros/tmac.s: Rename \(-d to \(Sd.
16344 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16346         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16347         * xditview/libXdvi/DviChar.c: Likewise.
16348         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16350 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16352         * troff/div.c (top_level_diversion::begin_page): Call
16353         init_output() if the_output is 0.
16355 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16357         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16358         ESCAPE_c.
16359         (get_copy): Turn \E into ESCAPE_E.
16360         (token::process, asciify): Handle ESCAPE_E.
16362         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16363         (RD): New macro.
16364         (DS): Implement `.DS R'.
16366 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16368         * macros/tmac.s (FS): New macro.
16370         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16372         * macros/tmac.s (cov*tl-init): Remove after first execution
16373         instead of aliasing to @nop.  Call top of page macro explicitly
16374         instead of setting trap; call @init first.  Set pg@top as top of
16375         page macro.
16376         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16377         cov*auto-init as top of page trap. 
16378         (TL, LP): Do a break instead of calling cov*tl-init.
16379         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16380         @FE; in this case also give a warning and always start another
16381         page. No need to set pg@top here.
16382         (cov*tl-init): Rename to cov*first-page-init.
16384         * macros/tmac.s (RP): Do `.pn 0'.
16385         (cov*tl-init): With RP format don't do `.pn 0'.
16387         * macros/tmac.s (pg@cs-top): Set no space mode.
16389         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16390         (cov*ab-init): Alias TL, AU and AI to these.
16392 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16394         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16395         (@EN): Do nothing unless \n[dl] is > 0.
16397 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16399         * pic/object.c (ellipse_object::radius): New function.
16401         * VERSION: Change version to 0.7.
16403         * tbl/table.c (block_entry::do_divert): Declare return type as
16404         void.
16405         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16407 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16409         * troff/column.c: New file.
16410         * troff/Makefile: Corresponding changes.
16412         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16413         Friend of vunits.
16415         * troff/div.c (top_level_diversion::space): If the space causes
16416         the first-page transition and springs a trap, truncate the space
16417         to 0.
16419 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16421         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16422         the document.
16424         * pic/troff.c (troff_output::line_thickness,
16425         troff_output::set_fill): Do a horizontal motion to compensate for
16426         the width of the \D escape sequence.
16428 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16430         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16431         (not X75).
16433         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16434         to printf.
16436         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16437         Supply empty definition.
16438         (text_entry::simple_print, simple_text_entry::simple_print):
16439         Delete declarations.
16440         (table::add_entry): Represent empty entries by objects of type
16441         `simple_entry'.
16443 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16445         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16447         * tbl/table.c (left_text_entry::add_tab): New function.
16449         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16450         initialize like LP.
16452 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16454         * troff/env.c (environment::start_field): Give an error message if
16455         there is no next tab.
16457 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16459         * troff/env.c (hyphenate): Skip initial elements with zero
16460         hyphenation code.
16462         * macros/tmac.s (par@init): Keep VS in points rather than units.
16464 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16466         * pic/main.c (main): Implement `-c' option.
16467         * pic/output.h: Declare make_tpic_output().
16468         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16469         protected.
16470         (tpic_output): New class.
16471         (tpic_output::tpic_output, tpic_output::set_pen_size,
16472         tpic_output::command, make_tpic_output): New functions.
16474 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16476         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16477         if they're not already defined.
16478         * tbl/table.c (init_output): Don't test \n(.g.
16480         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16481         `d', `r' and `c' conditions even in compatibility mode.
16483 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16485         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16486         box.
16488 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16490         * troff/env.h (environment::prev_line_interrupted): New member.
16491         (environment::get_prev_line_interrupted): New function.
16492         * troff/env.c (environment::newline): Set prev_line_interrupted.
16493         (environment::environment(const environment *),
16494         environment::environment(symbol)): Initialize
16495         prev_line_interrupted.
16496         * troff/input.c (process_input_stack): Don't give special
16497         treatment to space and newline at the beginning of the line if the
16498         previous line was interrupted.
16500 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16502         * eqn/eqn.y: Disallow PRIME by itself.
16503         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16504         PRIME.
16505         (def_table): Remove definition of '.  Define prime to be `.
16507         * eqn/eqn.y: Split off part of rule `script' into a new rule
16508         `nonsup'.
16510 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16512         * macros/tmac.s ({, }): New string aliases.
16514 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16516         * README-0.7: New file.
16518 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16520         * macros/tmac.s: New file.
16521         * man/groff_ms.man: New file.
16522         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16523         * Makefile.bd: Similarily.
16524         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16525         definition of TMAC_S.
16526         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16527         * macros/TODO: New file.
16529 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16531         * troff/env.c (right_justify): New function.
16532         (init_env_requests): Bind this to request "rj".
16533         (center_lines): Set right_justify_lines to 0. If we get a bad
16534         integer, center 1 line.
16535         (environment::environment(symbol), environment::environment(const
16536         environment *)): Initialize right_justify_lines.
16537         (environment::get_right_justify_lines): New function.
16538         (init_env_requests): Bind this to number_register ".rj".
16540         * troff/env.c (environment::choose_breakpoint): Implement
16541         hyphenation_margin and hyphenation_space.
16542         (environment::get_hyphenation_space,
16543         environment::get_hyphenation_margin): New functions.
16544         (init_env_requests): Bind these to .hys and .hym.
16545         (hyphenation_space_request, hyphenation_margin_request): New
16546         functions
16547         (init_env_requests): Bind these to hys and hym.
16548         (environment::environment(symbol), environment::environment(const
16549         environment *)): Initialize hyphenation_margin and
16550         hyphenation_space.
16551         * troff/env.h: Corresponding changes to class environment.
16553 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16555         * troff/div.c (blank_line): Always do a break.
16557         * eqn/box.c (do_text): Turn off escapes while appending text to
16558         string.
16560 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16562         * troff/input.c (while_break_request, while_continue_request): New
16563         functions.
16564         (init_input_requests): Bind these to "break" and "continue".
16565         (while_depth, while_break_flag): New variables.
16566         (while_request): Update while_depth.  Break out of loop if
16567         while_break_flag is set.
16569 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16571         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16572         rather than 0.
16574 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16576         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16578         * stringify: New file.
16579         * Makefile (groff.o): Use stringify.
16581         * xditview/tmac.X: Remove definition of \(rn.
16582         * xditview/libXdvi/DviChar.c: Remove radicalex from
16583         Adobe_symbol_map.
16585 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16587         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16588         (alphabetic_block_entry::alphabetic_block_entry,
16589         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16590         New functions.
16591         (block_entry::divert): Split off body into ...
16592         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16593         from the line length; also update the span width to dl+2n, and the
16594         alphabetic span width to dl.
16596         * driver/input.c (do_file):  While reading argument to D command,
16597         when expanding buffer, multiply szp by sizeof(int) rather than 2
16598         in the argument to memcpy.
16600         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16601         width of alphabetic columns.
16603 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16605         * troff/node.c (lookup_family): Supply second argument to lookup.
16607         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16608         search, return immediately if v is 0.
16610         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16611         (troff_output::start_picture): Set this reg.
16612         (troff_output::end_picture): Remove this reg
16613         * eqn/box.c (box::extra_space): Don't produce `\x's if
16614         EQN_NO_EXTRA_SPACE_REG is defined.
16616         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16617         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16618         character.
16620 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16622         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16623         requests.
16625         * troff/div.c (top_level_diversion::top_level_diversion):
16626         Initialize page_number to 0.
16628 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16630         * groff/troff (environment::environment(const environment *)):
16631         Initialize name to e->name, rather than "anonymous".
16633 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16635         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16636         requested_page.  Split middle part into ...
16637         (FindPage): New function.
16638         (SetValues): If we don't yet know the last page, and the requested
16639         page is greater than the current page, call FindPage.
16640         Update the font_map_string before doing this.
16642         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16643         Translate \(lh and \(rh into left and right double arrows.
16645         * troff/node.c (class hyphen_inhibitor_node): New class.
16646         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16647         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16648         hyphen_inhibitor_node::type,
16649         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16650         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16651         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16652         word.
16654 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16656         * troff/node.h (dummy_node::get_hyphenation_type,
16657         transparent_dummy_node::get_hyphenation_type):  Declare them.
16658         * troff/node.c: (dummy_node::get_hyphenation_type,
16659         transparent_dummy_node::get_hyphenation_type): New functions.
16661 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16663         * xditview/libXdvi/draw.c: If M_PI not defined after including
16664         math.h, then define it.
16666         * xditview/Makefile: Add definition of AR. Pass it to the submake
16667         in libXdvi.
16668         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16670 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16672         * troff/dictionary.h (object_dictionary::alias): Declare return
16673         value as int.
16674         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16675         if the old name was defined.
16676         * troff/input.c (alias_macro): Give a warning if the old name was
16677         not defined.
16678         * troff/reg.c (alias_reg): Likewise.
16680 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16682         * troff/input.c (token::next): Delete implementation of \R.
16684         * macros/Makefile: Strip comments from tmac.e while installing it.
16686         * troff/input.c: New variable `nroff_mode'.
16687         (troff_request, nroff_request): New functions.
16688         (init_input_requests): Bind `troff' and `nroff' to troff_request
16689         and nroff_request.
16690         (do_if_request): Compute results of t and n conditions from
16691         nroff_mode.
16693         * text/text.c (split_text): Fix typo in >=.
16695         * eqn/lex.c: Add definition of `==' to def_table.
16697 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16699         * pic/tex.c (tex_output::start_picture): Change the definitions of
16700         \graph and \graphtemp so that they work properly with Plain TeX.
16702         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16703         argument to `ar' is not less than the first.
16705         * pic/pic.y: Allow a comma between elements of the variable list
16706         in the argument to `reset'.
16708         * pic/object.c (arc_object::arc_object): Fix computation of
16709         radius.
16711         * eqn/main.c (main): Add exit(0).
16713 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16715         * troff/div.c (begin_page): Test no_space_mode after doing the
16716         break, but still push the page ejector cookie before doing the
16717         break.  Also set the next page number after doing the break.
16718         
16719         * xditview/xditview.c (NewFile): Don't set the title and icon name
16720         if this is the first file and its name is `-'.
16721         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16722         the X75 and X100 devices.
16723         (main): If a device has the XT_OPTION flag set and there's exactly
16724         one file argument, pass the driver -xrm and -title options to set
16725         the icon name and window title to the name of the file.
16727         * troff/env.c (environment_switch): If there was an argument but
16728         it wasn't a valid number or name, then pop an environment but
16729         don't give an error message on underflow.
16731         * troff/number.c (start_number): Correct spelling in error message.
16733         * troff/input.c (token::delimiter): Don't print an error message
16734         if err is false.
16736         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16737         ParseDrawFunction if dw->display_enable is true.
16739 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16741         * pic/pic.y: Parse text positioning like normal attributes, so as
16742         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16743         positioning attribute.
16745 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16747         * tbl/main.c (process_data): When in state START while reading a
16748         text block, don't change to state MIDDLE if c is a newline.
16750 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16752         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16753         so as to avoid shadowing parameter.
16755 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16757         * tbl/table.c (trim_space): Deleted.
16758         (table::add_entry): Don't call trim_space.
16760 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16762         * VERSION: Change version to 0.6.
16764         * troff/number.c (parse_expr): Make == work.
16766 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16768         * man/grog.man: New file.
16769         * man/Makefile: Add grog.n to MAN1PAGES.
16770         * etc/grog.sh: New file.
16771         * etc/Makefile: Install grog.sh as grog.
16773 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16775         * troff/input.c (token::next): Implement \E.
16777 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16779         * xditview/tmac.X: Change font translations to match tmac.ps.
16781         * troff/input.c (non_empty_name_warning): Don't give a warning if
16782         `\{' terminates the name.
16784 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16786         * ps/devps/symbol.diff: New file.
16787         * ps/devps/FontMakefile: Mention symbol.diff.
16789 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16791         * troff/node.c (font_position): Use get_long_name to read the
16792         external_name.
16794         * troff/env.c (environment_switch): If we get a number that's < 0
16795         or >= NENVIRONMENTS, treat it like a name.
16796         Change NENVIRONMENTS to 10.
16798         * troff/groff.h: Remove definition of FONTS_MAX.
16799         * troff/node.h (class font_family): Make map a pointer instead of
16800         an array. Add a map_size member. Make it a class. Make nm const
16801         and public. Make invalidate_fontno a friend.
16802         * troff/node.c: Define font_table_size. Make font_info a pointer
16803         rather than an array.
16804         (class troff_output_file): Allocate font_position dynamically. Add
16805         nfont_positions member.
16806         (troff_output_file::set_font): Grow font_position if necessary.
16807         (troff_output_file::~troff_output_file): Delete font_position.
16808         (troff_output_file::troff_output_file): Allocate font_position.
16809         (grow_font_table): New function.
16810         (troff_output_file::really_begin_page,
16811         troff_output_file:really_copy_page): Use nfont_positions rather
16812         than FONTS_MAX.
16813         (mount_font_no_translate, mount_style): Call grow_font_table if
16814         necessary.
16815         (font_family::font_family): Allocate map.
16816         (font_family::make_definite): Grow map if necessary. Use
16817         font_table_size instead of FONTS_MAX.
16818         (font_family::~font_family): New function.
16819         (invalidate_fontno): Use font_family::map_size.
16820         (get_fontno, env_space_width, env_half_narrow_space_width,
16821         env_narrow_space_width, symbol_fotno, is_good_fontno,
16822         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16823         FONTS_MAX.
16824         (next_available_font_position): Never return 0.
16826 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16828         * ps/tmac.ps: Add font translations for compatibility with dpost.
16830 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16832         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16833         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16834         Move definitions baseline_sep, shift_down, column_sep,
16835         matrix_side_sep into...
16836         * eqn/box.c: Add them to param_table.
16837         * eqn/pbox.h: Add declarations to pbox.h.
16839         * troff/input.c (set_string): Cast value to unsigned char *.
16841         * troff/token.h (process_input_stack): Declare it static before
16842         declaring it a friend.
16844 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16846         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16847         and bottom.
16848         * dvi/devdvi/EX: Regenerate.
16850         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16851         transparent.
16853 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16855         * eqn/lex.c: In defaults_table, make definition of `dot' call
16856         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16857         accents.
16859         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16860         argument.
16861         (for_input::get, for_input::peek): Use this.
16862         (do_for): Add by_is_multiplicative argument.
16863         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16864         Change semantic value of optional_by to be a double plus a flag
16865         saying whethet the by clause is multiplicative.
16867         * eqn/lex.c (get_delimited_text): Remember location of start of
16868         definition.  Improve error handling when EOF is encountered.
16870         * lib/font.h: Rename handle_x_command to
16871         handle_unknown_font_command.
16872         * lib/font.c (font::load): Call handle_unknown_font_command for
16873         any unknown command in the font description file.  Don't call
16874         handle_x_command. Include the name of the command in the argv.
16875         Improve message for unknown command after kernpairs or charset
16876         command.
16877         * ps/ps.c (ps_font::handle_x_command): Rename to
16878         handle_unknown_font_command.  Remove message about `x download'
16879         command.  Give error message for wrong number of arguments.
16880         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16881         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16882         handle_unknown_font_command. Give an error message for wrong
16883         number of arguments.  Rename design_size to designsize.
16884         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16885         checksum', `designsize' instead of `design_size'.
16887 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16889         * eqn/*.[chy]: Change underaccent to uaccent.
16891         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16892         give it the same precedence as ACCENT.
16893         * eqn/other.c (make_underaccent_box): New function.
16894         * eqn/box.h: Declare it.
16895         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16896         def_table.
16898 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16900         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16901         (parse_init): Call reset_all.
16902         (define_variable): When defining scale reset only those
16903         pre-defined variables that are scaled.
16904         (defaults_table): Add `scale' as non-scaled value.
16906         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16907         together with the text; allow any number of positioning words;
16908         allow center as a positioning word.
16910         * pic/object.c (output::compute_scale): Get picture maximum height
16911         and width from variables called maxpswid and maxpsht.
16912         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16914 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16916         * pic/object.c (object_spec::make_text): Multiply textht by number
16917         of text items.
16919         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16920         occur.
16921         (do_sprintf): New function.
16922         (pic.gperf): Add sprintf token.
16923         (text, sprintf): New rules.
16925         * pic/pic.y: `rand()' with no arguments returns a random number
16926         in the range [0,1).
16928         * pic/pic.y: Allow a bare expression to be an attribute: change
16929         precedences to support this.  Change optional_ordinal rule to
16930         optional_ordinal_last to avoid reduce/reduce conflict.
16931         * pic/object.c (object_spec::object_spec): Initialize direction.
16933         * pic/pic.y: Implement ^ operator meaning exponentiation.
16935         * troff/node.h: Add default argument to mount_font.
16936         * troff/node.c (font_position): Read an optional third argument
16937         giving the external_name.
16938         (mount_font): Add optional argument giving the external_name.
16939         (mount_font_not_translate): Have additional argument giving
16940         external name.  Use this name to load the font.  Pass both names
16941         to font_info::font_info.
16942         (font_info::font_info): Have additional argument giving
16943         external_name.
16944         (class tfont): New member external_name.
16945         (font_info::get_tfont): Use external name to construct tfont_spec.
16947 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16949         * eqn/lex.c (init_table): Add argument giving device.  Define
16950         name of device to be "1".
16951         (do_ifdef): Counts as true if the argument has been defined with
16952         `define'.
16953         * eqn/main.c (main): Call init_table with device argument. Make
16954         device local to main.
16955         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16956         of device.
16958         * pic/lex.c (get_delimited): Allow text to be delimited by
16959         matching {}s.  Don't recognize ending delimiter within a string.
16961         * troff/input.c (get_delim_name): New function.
16962         (token::next): Implement \C.
16964         * lib/font.c (font::load): Grok ---.  Add an alias for each
16965         character based on its code.
16966         (font::get_code_width): Deleted.
16967         * lib/font.h (class font): Declare font::number_to_index().
16968         Remove declaration of font::get_code_width.
16969         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16970         to indices of named characters.
16971         (font::number_to_index): New function.
16972         * troff/input.c (font::number_to_index): New function.
16973         (get_charinfo_by_number, charinfo::get_number,
16974         charinfo::set_number): New functions.
16975         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16976         (token::process, token::description, token::get_char,
16977         token::add_to_node_list, token::operator==): Handle
16978         TOKEN_NUMBERED_CHAR.
16979         * troff/charinfo.h: Declare get_charinfo_by_number,
16980         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16981         charinfo class.
16982         (charinfo::numbered): New function.
16983         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16984         * troff/env.h (class environment): Remove declaration of ...
16985         * troff/env.c (environment::make_numbered_char_node): Deleted.
16986         * troff/node.c (make_numbered_node): Deleted.
16987         (class numbered_glyph_node): Remove.
16988         (troff_output_file::put_char_width, troff_output_file::put_char):
16989         Handle numbered chars.
16990         (troff_output_file::numbered_char): Removed.
16991         (tfont::get_code_width): Removed.
16992         (make_glyph_node): Don't search special fonts for numbered
16993         characters.
16994         * troff/node.h: Remove declaration of make_numbered_node.
16995         * driver/input.c (do_file): Handle N command.
16996         * driver/printer.h: Add declaration of ...
16997         * driver/printer.c (printer::set_numbered_char): New function.
16998         * dvi/tfmtodit.c (main): Generate unnamed entries.
16999         * ps/devps/afmtodit: Likewise.
17000         * xditview/xtotroff.c (MapFont): Likewise.
17001         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17003         * tbl/main.c (process_format): If multiple widths are specified
17004         for a column but all the widths are the same, don't give an error
17005         message.
17007         * tbl/table.c (table::do_row): If the current row is all lines and
17008         the stuff doesn't contains a line, mark the top of the row after
17009         printing stuff before the row.  If the current row is not all
17010         lines and the stuff doesn't contain a line, don't unnecessarily
17011         mark the top of the row before printing the stuff.
17012         
17013 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
17015         * troff/groff.h: Remove MAX_PATH.
17016         * troff/input.c (open_file): Dynamically allocate space for the
17017         path.
17018         (open_mac_file, process_macro_file): Corresponding changes.
17020 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
17022         * troff/node.h (class output_file): Make copy_file pure.  Add
17023         vspace method ifdef COLUMN. Add is_printing method.
17024         * troff/node.c: Add class printing_reg. Add class
17025         real_output_file. Derive other output_file classes from
17026         real_output_file; in these classes rename begin_page to
17027         really_begin_page, print_line to really_print_line, copy_file to
17028         really_copy_file, transparent_char to really_transparent_char.
17029         Move output_file::flush to real_output_file. Add printing member
17030         to class output_file.
17031         * troff/div.h: Remove printing member from top_level_diversion.
17032         Add vspace member function to class diversion ifdef COLUMN. Add
17033         some declarations ifdef COLUMN.
17034         * troff/div.c (top_level_diversion::copy_file,
17035         top_level_diversion::transparent_output,
17036         top_level_diversion::output): Don't test printing member before
17037         output.
17038         * troff/input.c: Handle initial variable_space_request ifdef
17039         COLUMN.
17040         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17041         but comment it out.
17043 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
17045         * troff/div.c (diversion::need): Make any space forced.  If we
17046         sprung a trap, set truncated_space to minus the distance to the
17047         trap and set needed_space to the amount that was needed.
17048         (top_level_diversion::space): A forced space turns no_space_mode
17049         off.
17050         (class constant_vunits_reg): New class.
17051         (init_div_requests): Implement number registers .trunc and .ne
17052         using constant_vunits_reg.
17053         (class truncated_space_reg): Deleted.   
17055         * troff/div.h: Don't have a no_space_mode member in diversion.
17056         Instead have it in top_level_diversion.
17057         * troff/div.c (diversion::diversion): Don't initialize
17058         no_space_mode.
17059         (top_level_diversion::top_level_diversion): Initialize
17060         no_space_mode.
17061         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17062         (macro_diversion::output): Don't clear no_space_mode.
17064         * troff/input.c (diverted_space_node::reread): Don't call
17065         environment::do_break.  In fill mode, act like a blank line.
17066         (diverted_copy_file_node::reread): Don't call
17067         environment::do_break.
17069         * troff/div.c (blank_line): New function.
17070         * troff/div.h: Declare it.
17071         * troff/input.c (process_input_stack): Call it.
17073         * troff/div.c (truncated_space_reg::get_string): New function.
17074         (init_div_requests): Bind to .trunc.
17075         (space_request, top_level_diversion::space,
17076         top_level_diversion::output, macro_diversion::space,
17077         macro_diversion::output): Update truncated_space.
17078         (macro_diversion::output): Redo calculations when trap sprung.
17079         (macro_diversion::output, macro_diversion::space): No need for
17080         trap_flag.
17082         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17083         after truncating post line spacing.
17085 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
17087         * ps/devps/prologue (MF, SF): Make them work even if setfont is
17088         defined as a procedure rather than as an operator.
17090 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
17092         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17094 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
17096         * troff/div.c (top_level_diversion::output): Merge
17097         output_file::print_line and output_file::end_of_line member
17098         functions.
17099         * troff/div.h (class output_file):
17100         * troff/node.c (troff_output_file::print_line,
17101         troff_output_file::end_of_line, output_file::end_of_line,
17102         ascii_output_file::print_line, suppress_output_file::print_line):
17103         Corresponding changes.  
17105 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
17107         * troff/input.c (token::next): Don't give a warning for `\.'.
17109         * troff/env.c (environment::get_center_lines): New function.
17110         (init_env_requests): Bind number register .ce to it.
17111         * troff/env.h: Declare it.
17112         * tbl/table.c (table::init_output): Define reset macro to restore
17113         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
17114         Then do .ce 0.
17115         (table::print): If center option not given, then imply center
17116         option if SAVED_CENTER_REG > 0.
17118 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
17120         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17121         Troff.ps from DOWNLOAD.
17122         
17123         * troff/Makefile: Change comment in DEFINES to avoid confusing
17124         System V make.
17126         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17127         code.  Don't try to catch errors with stopped.
17128         (check_line_lengths): New function.
17129         * ps/devps/prologue (EXEC): Deleted.
17130         (EBEGIN, EEND): New procedures.
17132 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
17134         * troff/input.c: Include request.h before node.h.
17135         * troff/node.c: Likewise.
17136         * troff/env.c: Likewise.
17137         * troff/div.c: Likewise.
17138         * troff/node.h (class special_node): Store argument as a macro
17139         rather than a char *.
17140         * troff/node.c (special_node::special_node, special_node::copy):
17141         Grok this.
17142         (special_node::~special_node): Deleted.
17143         (special_node::tprint): Deleted.
17144         (special_node::tprint_start, special_node::tprint_end,
17145         special_node::tprint_char): New functions.
17146         (troff_output_file::special): Deleted.
17147         (troff_output_file::start_special, troff_output_file::end_special,
17148         troff_output_file::special_char): New functions.
17149         * troff/input.c (special_node::tprint): New function.
17150         (do_special): Use macro not char *.
17151         (do_transparent_macro): Deleted.
17152         (token::next): Don't call do_transparent_macro.
17154         * troff/input.c (token::next): Add 'Y' case.
17155         (do_transparent_macro): New function.
17156         * troff/node.c (troff_output_file::special): Handle newlines with
17157         argument using new continuation convention.
17158         * driver/input.c (get_string): Cope with continuation convention.
17159         (do_file): Don't call skip_line after calling get_string(1).
17160         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17161         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17162         arg.
17163         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17164         with +.
17166 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17168         * troff/input.c (asciify): By default, illegal input characters
17169         should return empty string.
17171         * troff/input.c (copy_file): Handle first page transition like title.
17172         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17174         * troff/input.c (token::next): Improve error message for EOF after
17175         escape character.
17176         (input_char_description): New function.
17177         (get_char_for_escape_name): Use input_char_description.
17178         (token::next): Warn about unrecognized escape sequences.
17179         (warning_table): Add WARN_ESCAPE.
17180         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17181         accordingly.
17183         * troff/token.h: Remove declaration of process_input_stack.
17185         * troff/input.c: Remove declaration of init_hyphen_requests.
17186         * troff/request.h: Correct spelling in declaration of same.
17188         * troff/input.c (token::next): Check whether escape_char is 0.
17190 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17192         * groff.c (main, usage, help): Implement -P and -L options.
17193         * groff.sh: Likewise.
17195         * troff/input.c (token::next): Use some gotos to avoid code
17196         duplication.
17198         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17199         Avoid calling symbol::symbol if name empty.
17201 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17203         * troff/input.c (init_input_requests): Make \n(.x return the major
17204         version number and \n(.y return the minor version number.
17205         * troff/Makefile: Construct file majorminor.c defining
17206         major_version and minor_version automatically from ../VERSION.
17208         * troff/node.c (class glyph_node): Make operator new and operator
17209         delete public.
17210         (class ligature_node): Similarily.
17212         * troff/input.c (operator==(const macro &, const macro &)): New
17213         function.
17214         (non_interpreted_node::same): Use this.
17215         (string_iterator::string_iterator): Make macro& argument const.
17217         * troff/input.c (input_iterator::get): New function. Don't make
17218         asciify_macro or class non_interpreted_node friends of class
17219         input_iterator.
17220         (non_interpreted_node::interpret): Use input_iterator::get.
17221         (asciify_macro): Likewise.
17223         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17224         ~non_interpreted_node): Deleted.
17225         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17226         Deleted.
17228         * troff/symbol.h: Make all symbol member functions const.
17230         * lib/strtol.c: New file.
17231         * lib/Makefile: Add strtol.c.
17232         * Makefile: Define STRTOL as strtol.o to include strtol in
17233         libgroff.a.
17235 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17237         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17239 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17241         * troff/input.c (do_special): Use input_level.
17243         * troff/token.h (TOKEN_BACKSPACE): New token.
17244         (token::backspace): New function.
17245         * troff/input.c (token::description, token::next, token::process):
17246         Grok TOKEN_BACKSPACE.
17247         (do_special): Turn TOKEN_BACKSPACE back into \b.
17249         * troff/token.h (token::leader): New function.
17250         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17252         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17254         * troff/input.c (do_special): Use token::description in error
17255         message.
17257 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17259         * troff/input.c (decode_args): Combine quoted and
17260         quote_input_level variables. Make it a for (;;) loop.
17262         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17264         * troff/input.c (read_long_escape_name): The test for whether to
17265         expand buffer was off by 1.
17266         (read_string): Similarily.
17268 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17270         * troff/input.c: Use `const int' rather than `static const int'.
17272         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17273         (macro_diversion::copy_file): New function.
17274         * troff/node.h: New class diverted_copy_file_node.
17275         * troff/node.c: Implement it.
17276         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17277         first page transition by pushing a diverted_copy_file_node.
17278         * troff/input.c (token::next, process_input_stack): Don't handle
17279         COPY_FILE_REQUEST.
17281 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17283         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17284         whether space widths need adjusting.
17286         * troff/charinfo.h: Generalize translated_to_space to
17287         special_translation so as to allow translation to \&.
17288         * troff/input.c (translate): Allow translation to \&.
17289         (charinfo::*): Corresponding changes.
17290         * troff/node.c (make_node, node::add_char): Corresponding changes.
17291         * troff/node.h (dummy_node::dummy_node): Allow optional first
17292         argument.
17294         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17295         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17296         TOKEN_REQUEST.
17297         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17298         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17299         (token::process): Grok that.
17300         * troff/input.c (copy_file): Handle first page transition like
17301         title by pushing a COPY_FILE_REQUEST cookie.
17302         (token::next, process_input_stack): Grok that.
17303         * troff/node.h (output_file::copy_file): Add x and y arguments.
17304         Make it non-pure.
17305         * troff/div.c (top_level_diversion::copy_file): Supply them.
17306         * troff/node.c (troff_output_file::copy_file): Add x and y
17307         arguments; moveto specified position.  Invalidate font_position
17308         array after copying file.
17309         (output_file::copy_file): New function.
17310         (suppressed_output_file::copy_file, ascii_output::copy_file):
17311         Removed.
17312         * troff/input.c (transparent_file): New function.
17313         (init_input_requests): Bind to "trf".
17314         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17315         (process_input_stack): Likewise.
17317         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17319         * troff/node.c (init_node_requests): New number registers .kern
17320         pointing to global_kern_mode, and .lg pointing to
17321         global_ligature_mode.
17323         * troff/node.c (ligature): Don't change it if we get a bad
17324         integer.
17326         * troff/input.c (do_define_string): Don't strip tabs.
17328         * troff/input.c (asciify_macro): Make the string_iterator auto.
17330         * troff/node.c (init_font_requests): Rename to...
17331         (init_node_requests):
17332         * troff/node.h: Change declaration.
17333         * troff/input.c (main): Change call.
17335         * troff/input.c (node::reread, diverted_space_node::reread): New
17336         methods.
17337         (process_input_stack): Call reread rather than
17338         get_diverted_space_node.
17339         * troff/node.c (node::get_diverted_space_node,
17340         diverted_space_node::get_diverted_space_node): Removed.
17341         * troff/node.h: Declare reread methods instead of
17342         get_diverted_space_node methods. Make `n' member private.
17343         * troff/input.c: (token::diverted_space): Removed.
17344         * troff/token.h: Removed declaration.
17345         
17347 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17349         * eqn/script.c (script_box::compute_metrics): Don't let
17350         SUP_RAISE_FORMAT become negative.
17352         * tbl/table.c (table::do_row): Entries that don't end in the
17353         this row shouldn't make the row non-blank.
17354         
17355         * tbl/table.c (table::make_columns_equal): Only set the width of
17356         columns which are marked as equal.
17357         
17358         * tbl/main.c (process_data): Before issuing excess data error,
17359         if last character was a newline unget it; then get it again after
17360         the error.  Also include the contents of the entry in the message.
17362         * groff.c: New file.
17363         * Makefile: Build groff from groff.c.  Make it possible to use
17364         either groff.sh or groff.c as groff.
17365         * Makefile.bd: Similarily.
17367 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17369         * groff.sh: Don't delay expansion of $@ in assignment to files.
17370         Remove occurrences of \".
17372 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17374         * all Makefiles: Simplify and rearrange.
17376         * Makefile: Handle fmod like malloc.
17377         * lib/Makefile: Similarily.
17378         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17380         * Makefile: Rename OPTIMISE to OPTIMIZE.
17382         * groff.sh: Remove assignment to PATH.
17383         * Makefile: Remove SHPATH variable.
17384         * Makefile.bd: Similarily.
17386         * groff.sh: Add -V option to print the pipeline instead of
17387         executing it.
17389 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17391         * lib/font.c: Split off file searching into ...
17392         * lib/fontfile.c: New file.
17394         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17396 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17398         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17399         Also change misleading comment.
17400         (table::do_vspan): Change similarily misleading comment.
17401         * tbl/main.c (process_data): A format row with an explicit `s'
17402         uses up a data line, even if all the other columns are `_' or `='.
17404         * troff/input.c (token::description): Fix description of
17405         TOKEN_DUMMY and TOKEN_EMPTY.
17407 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17409         * groff.sh: Fix description of -Z in help message.
17411 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17413         * pic/object.c (object_spec::make_object): Allow negative and zero
17414         line thicknesses.
17415         * pic/pic.y: Give linethick default value of -1.0.
17416         * pic/troff.c (troff_output::troff_output): Initialize
17417         last_line_thickness to BAD_THICKNESS.
17418         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17419         (troff_output::line_thickness): Canonicalize negative thicknesses
17420         to RELATIVE_THICKNESS.
17421         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17422         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17423         to -1.0.
17424         (tex_output::start_picture): Set pen_size to -2.0.
17426         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17427         0, then use 0 linewidth.
17428         (ps_printer::ps_printer): Initialize line_thickness to -1.
17430         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17432         * ps/devps/symbolchars: Remove `or'.
17433         * ps/tmac.ps: Implement \(or with .char.
17435         * ps/devps/symbolchars: Move most characters into textmap.
17436         * ps/devps/textmap: Add names for troff bracket characters. Remove
17437         ul, ru, br, bv.
17439         * ps/devps/TSymbol.ps: Removed.
17440         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17441         * ps/tmac.ps: Do with .char what TSymbol did.
17442         * ps/devps/download: Remove TSymbol.
17444         * ps/devps/T: Removed.
17445         * ps/devps/Troff.ps: Removed.
17446         * ps/devps/Troff.afm: Removed.
17447         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17448         * ps/devps/download: Remove Troff.
17449         * ps/devps/FontMakefile: Remove T target.
17450         * ps/devps/DESC-A4: Remove T from font list.
17451         * ps/devps/DESC-letter: Likewise.
17453         * troff/input.c (macro_to_node): Rename to ...
17454         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17455         character's definition while processing it.
17456         * troff/node.c (node::add_char, make_node): Change calls to
17457         macro_to_node accordingly.
17459         * troff/input.c (token::next): Translate \_ to \(ul.
17461         * tty/devascii/R.proto: Add `|'.
17462         * tty/devlatin1/R.proto: Likewise.
17464 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17466         * man: Put the version number in all the man pages.
17468 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17470         * Makefile.bd: New file.
17471         * README.bd: New file.
17473         * VERSION: New file.
17474         * lib/version.c: Removed.
17475         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17476         in clean target.
17478         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17479         environment variable.
17481         * all Makefiles: Split install target into install.bin for
17482         binaries, and install.nobin for everything else.
17483         * Makefile: Add bindist target.
17485         * man/afmtodit.man: New file.
17486         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17487         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17488         in BINDIR.
17489         * ps/Makefile: Pass BINDIR to make install in devps.
17491         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17492         the space character.
17494         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17496 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17498         * ps/ps.c: Redo font downloading.
17499         * ps/devps/download: New file.
17500         * ps/devps/Makefile: Add download to DEVICEFILES.
17501         * ps/devps/afmtodit: Remove -d option.
17502         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17503         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17504         * ps/devps/zapfdr.ps: Likewise.
17505         * ps/devps/TSymbol.ps: Likewise.
17507 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17509         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17511 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17513         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17514         then strip the first line if it starts with %.
17515         * Makefile: Add a comment about this.
17517         * man/tfmtodit.man: New file.
17518         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17519         * dvi/Makefile: Install tfmtodit in BINDIR.
17521         * dvi/tfmtodit.c (usage): Mention -v option.
17523 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17525         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17526         * troff/node.c (troff_output_file::transparent_char): Don't call
17527         flush_tbuf.
17529         * eqn: Add check_tabs method to most box classes.
17530         * eqn/box.c (box::top_level): Call check_tabs.
17532         * eqn/script.c (script_box::output): Use \Z.
17533         * eqn/limit.c (limit_box::output): Use \Z.
17535         * eqn/box.c (box::top_level): Use itoa.
17537 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17539         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17540         * dvi/devdvi/Makefile: Don't make links to CW.
17542         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17543         HX, HD.
17544         * xditview/tmac.X: Likewise.
17546         * troff/node.c: Add font translation feature.
17547         (get_font_translation): New function.
17548         (symbol_fontno): Translate the font name.
17549         (mount_font_no_translate): Rename to mount_font to this.
17550         (mount_font): New function.
17551         (font_family::make_definite): Call mount_font_no_translate instead
17552         of mount_font.
17553         (mount_style): Translate the font name.
17554         (font_translate): New function.
17555         (init_font_requests): Bind "ftr" to font_translate.
17557         * ps/devps/prologue (SN): New procedure that rounds a position to
17558         the nearest (pixel + (.25,.25)).
17559         (DL): Use SN to round endpoints.
17561         * lib/version.c: Changed version to 0.5.
17563 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17565         * Makefile: Move definition of PAGE to the very beginning, so that
17566         people are less likely to miss it.
17568 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17570         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17572         * troff/env.c (environment::choose_breakpoint): Make `can't find
17573         breakpoint' error a warning of type WARN_BREAK.  Change message to
17574         `can't break line'.
17575         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17576         code 040000.
17577         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17578         WARN_BREAK in DEFAULT_WARNING_MASK.
17580         * tty/tmac.tty: Add definition of \(+-.
17582         * groff.sh: Remove `--' option to set command.
17584         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17586         * ps/devps/eqnchar: Better definition of cdot using md.
17587         * dvi/devdvi/eqnchar:  Likewise.
17588         * xditview/devX100/eqnchar:  Likewise.
17589         * xditview/devX75/eqnchar: Likewise.
17590         * eqn/lex.c: Add definition of cdot.
17592 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17594         * troff/input.c (get_optional_char): New function.
17595         * troff/input.c (set_page_character): Use get_optional_char(),
17596         rather than has_arg() and tok.get_char(1).
17597         * troff/env.c (tab_character, leader_character, hyphen_char,
17598         field_characters): Likewise.
17599         (margin_character): Likewise.  Also always delete the
17600         margin_character_node.
17602         * troff/input.c (token::get_char): Use token::description.
17604         * troff/input.c (has_arg): Don't skip over tab and \}.
17605         * troff/number.c (start_number): Give a warning if the number
17606         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17608 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17610         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17611         functions.
17612         (get_name, get_long_name): Use these.  Rename `warn' argument to
17613         `required'.
17615         * troff/node.c (get_fontno): Test that the symbol is not null.
17617         * troff/input.c (token::description): New function.
17618         * troff/number.c (parse_term): Use token::description in `numeric
17619         expression expected' message.
17620         * troff/groff.h: Add WARN_MISSING.
17621         * troff/number.c (start_number): New function.
17622         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17623         get_incr_number): Use start_number().
17624         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17625         default.
17626         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17627         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17628         token::descripion.
17629         * troff/input.c (token::get_char): Use WARN_MISSING.
17630         * troff/input.c (token::delimiter): Use token::description.
17631         * troff/env.c (environment_switch): Back out Aug 3 change.
17632         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17633         warning.
17634         * troff/token.h (token::tab): New function.
17635         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17636         * troff/reg.c (alter_format): Likewise.
17637         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17639 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17641         * troff (most files): Redo warnings. Divide warnings into various
17642         categories; warning() has an additional first argument indicating
17643         the category it falls into.
17644         * troff/input.c (main): -w now takes an argument. New option -W.
17645         (enable_warning, disable_warning): New functions.
17647         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17648         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17650 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17652         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17653         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17654         * xditview/devX75/eqnchar: Likewise.
17655         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17657         * eqn/other.c: When bar or over applies to a single character
17658         don't produce an overline_box or an underline_box. Instead produce
17659         an accent_box or an underaccent_box, with the accent a line
17660         whose width is accent_width.  New classes underaccent_box,
17661         overline_char_box and underline_char_box.
17662         * eqn/box.h: Move overline_box, underline_box, accent_box class
17663         declarations into eqn/other.c. Add declarations of
17664         make_underline_box, make_overline_box, make_accent_box.
17665         * eqn/eqn.y: Call make_overline_box, make_underline_box
17666         make_accent_box instead of constructors.
17667         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17669         * eqn/other.c: Add accent_box::~accent_box.
17670         * eqn/box.h: Declare it.
17672         * groff.sh: With -Tps, use eqn -D.
17674         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17675         rather than \l.
17676         (underline_box::output): Similarily.
17677         (accent_box::output): Use \Z.
17679         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17680         bit smaller.)
17682 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17684         * troff/div.c (top_level_diversion::transparent_output(unsigned
17685         char)): Use asciify.
17686         * troff/input.c (asciify): Don't make it static.
17687         * troff/token.h (asciify): Declare it.
17688         
17689         * troff/input.c (get_name, get_long_name, token::get_char,
17690         token::delimiter): Add an extra default argument which says
17691         whether a warning should be printed.
17692         * troff: Pass a non-zero argument to one of these rather than
17693         printing a warning directly.
17695 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17697         * troff: Consistently use symbol::is_null.
17699         * troff/dictionary.h: Move some inline functions into
17700         dictionary.c.
17702         * troff/request.h: Move inline functions into input.c.
17703         (request_or_macro::invoke): Make it pure.
17705         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17706         * troff/input.c (init_input_requests): Use class constant_int_reg.
17707         (class compatible_reg): Deleted.
17708         * troff/div.c (init_div_requests): Use class constant_int_reg.
17709         (class last_post_line_extra_space_reg): Deleted.
17711         * troff/env.c (tab_character): Don't change the tab character if
17712         we get an invalid argument.
17713         (hyphen_char): Similarily.
17715         * troff/reg.c (alter_format): Check that nm is not null.
17717         * Makefile, groff.sh: Make it possible to customize the commands
17718         used for printing PostScript and dvi files. Also make it possible
17719         to customize the path used by groff.sh.
17721         * eqn/eqn.y: Make `left' right associative.
17723 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17725         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17726         don't have it.
17728         * pic/pic.h: Removed definition of INT_MAX.
17730         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17731         `return'.
17733         * troff/input.c (token::next):  Handle \R like \n.
17735 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17737         * ps/tmac.pc (PSPIC): Simplify.
17739         * troff/env.c (tab_stops::to_string):
17740         * pic/pic.y (object_type_name):
17741         * pic/troff.c (simple_output::line):
17742         * pic/tex.c (tex_output::spline):
17743         * pic/object.c (object_spec::make_object):
17744         * tbl/main.c (process_data):  Add cases to switch statements to
17745         avoid cfront warnings. (Some of these are spurious, since the
17746         switch already has a default case.)
17748         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17749         `ps-'.  Don't test systat; instead check number of arguments to
17750         ps-bb.
17752 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17754         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17756         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17757         Unlink the file as soon as we have opened it, so that we don't
17758         have to bother with signal handlers.
17759         (handler): Deleted.
17760         (fatal_error_exit): Deleted.
17761         (main): Don't call signal.
17763         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17764         can be ignored.
17765         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17767         * pic/pic.y:  If there is a label, or an nth construction before
17768         the first `.' in the argument to `with', ignore it and generate a
17769         warning.
17770         * pic/lex.c (lex_warning): New function.
17772         * tbl/table.c (table::init_output): In section keep and release
17773         macro, use 0 indent when diverting and the correct indent when
17774         rereading.
17776         * troff/input.c (interpolate_number_format): Do not interpolate
17777         anything if the number register is not defined.
17779         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17781 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17783         * ps/devps/prologue (PICTURE): Set components of graphics state to
17784         their default values.
17786         * ps/devps/text.enc: Add trademark
17787         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17788         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17789         * ps/devps/symbolchars: Add names for summation and product.
17791         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17792         suchthat. Add pp. Add upper-case letters.
17794         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17795         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17796         Upsilon.
17798         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17799         rA (right angle bracket) to ra.  Introduce names for double-headed
17800         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17801         * ps/devps/textmap: Likewise for ps device.
17802         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17803         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17804         * tty/devascii/R.proto: Likewise.
17805         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17806         \(uA, \(dA.
17807         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17809         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17811         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17812         def_table.
17814 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17816         * troff/div.c (when_request): Use symbol::is_null rather than
17817         has_arg to determine whether we have an argument.
17818         (change_trap): Remove the trap if we get an invalid number. Give
17819         an error if we don't get at least the macro name.
17820         (diversion_trap): Remove trap if we get an invalid name or number.
17822         * troff/env.c (environment_switch): Pop if we get an invalid
17823         symbol or numeric expression.
17825         * troff/input.c (do_define_macro):  If EOF is encoutered while
17826         defining the macro, do tok.next() before returning.
17828         * troff/token.h (has_arg): Move definition from here, to ...
17829         * troff/input.c (has_arg): ... here
17831         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17832         * troff/input.c (shift): Likewise.
17834         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17835         for `.c'.
17837         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17838         `..'.
17840         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17841         interpret_lf_args succeeds.
17843         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17844         \\.  This avoids problems with \$N.
17846         * groff.sh: Pass -C to preprocessors.
17848         * lib/lf.c (interpret_lf_args):  Be more flexible.
17850         * tbl/main.c (main): Add -C option.
17851         (table_input::get): Do not recognize TE if followed by character
17852         other than a space or newline unless -C option given.
17853         (process_input_file): Likewise for lf, TS.
17854         (process_data): Likewise for lf in text blocks.
17856         * eqn/main.c (main): Add -C option.
17857         (do_file): Don't recognize EQ, EN or lf if followed by character
17858         other than space or newline unless -C option given.
17859         * eqn/lex.c (file_input::read_line): Similarily.
17860         * eqn/eqn.h: Declare compatible_flag.
17862         * etc/soelim.c (main): Add -C option.
17863         (interpret_lf_args): Use version in libgroff.
17864         (do_file):
17866         * pic/main.c (main): Add -C option, which sets compatible_flag.
17867         (top_input::get), (top_input::peek):  If -C option not given,
17868         do not recognize .PS/.PE/.PF/.lf if followed by a character
17869         other than space or newline.
17870         * pic/lex.c (file_input::read_line): Similarily.
17871         * pic/pic.h: Add declaration of compatible_flag.
17873 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17875         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17877         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17878         derived from node.  New class space_char_hmotion_node.
17879         * troff/input.c (asciify_macro): New function.
17880         * troff/input.c (init_input_requests): New request `asciify' bound
17881         to asciify_macro.
17882         * macros/mm.diff: New file.
17883         * Makefile:  In install.mm target use `patch' to apply
17884         macros/mm.diff.
17886         * troff/input.c (macro::print_size): Just print the size in bytes.
17888         * troff/div.c (return_request): Correct the argument
17889         interpretation.
17891 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17893         * troff/node.h (class composite_node): Add sz member.
17894         * troff/node.c (composite_node::size): Return sz.
17895         * troff/input.c (macro_to_node):  Use the initial size in the
17896         environment as the size of the composite_node.
17898         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17899         default.
17901 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17903         * troff/div.c (change_trap): If we get a bad number expression,
17904         do nothing.
17906 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17908         * lib/matherr.c (matherr): Define this only if math.h defines
17909         TLOSS.
17911 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17913         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17914         no diversion trap return vunits(INT_MAX - vresolution).
17916 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17918         * troff/input.c (do_zero_width): New implementation that doesn't
17919         use a temporary environment. Use instead:
17920         (token::add_to_node_list): New function.
17921         * troff/env.c (environment::get_prev_char_height),
17922         (environment::get_prev_char_height),
17923         (environment::get_prev_char_skew): New functions.
17924         (environment::get_prev_char): New function.
17925         (environment::get_prev_char_width): Change to use get_prev_char.
17926         (init_env_request): Implement new registers .cht, .cdp, .csk.
17927         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17928         \Z being processed in a separate environment.
17930 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17932         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17934         * tbl/table.c (table::init_output): In the section release macro,
17935         give a warning message if the section won't fit on one page.
17937         * tbl/table.c (table::do_top): Emit table keep only if table is
17938         boxed.
17939         (table::do_bottom): Likewise for table release.
17940         (table::table), (table::add_vertical_rule):  Remove reference to
17941         keep member.
17942         * tbl/table.h: Remove keep member.
17944         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17945         SECTION_RELEASE_MACRO, if there's not enough space before the next
17946         trap to output the diversion, call T# ourselves, set
17947         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17948         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17949         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17950         vertical position and return to it before turning traps on again.
17951         
17952 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17954         * troff/node.c, troff/node.h: In classes derived from node,
17955         replace prev_char_width method by last_char_node method.
17956         * troff/env.c (environment::get_prev_char_width): Use
17957         node::last_char_node rather than node::get_prev_char_width.
17959         * Makefile: Added comment about -fno-inline on 68030-based
17960         Apollos.
17962         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17963         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17964         expressions using sizeof to int.
17965         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17967         * macros/tmac.e (TS):  Don't move @f back past the current
17968         position.
17970 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17972         * ps/ps.c (main): Buffer stderr.
17973         * dvi/dvi.c (main): Likewise.
17974         * tty/tty.c (main): Likewise.
17976         * ps/ps.c (ps_printer::do_import): Improve error handling.
17978         * troff/input.c (abort_request): Use asciify.
17980         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17981         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17982         type of first argument int rather than char.  This works around a
17983         bug on the 68030 based Apollo using g++ 1.37.1.
17985         * tbl/table.h (class table): Add `keep' member.
17986         * tbl/table.c (table::table): Initialize `keep'.
17987         (table::add_vertical_rule): Set `keep' to 1.
17988         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17989         (table::do_bottom): Likewise for table release macro.
17990         (table::do_row): Emit section keep macro even if the row is 0.
17992 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17994         * macros/tmac.e (@C): Preserve the font family across the change
17995         in environments.
17997 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17999         * lib/font.c: Initialize font::hor and font::vert to 1.
18000         (font::load_desc): Check the values of font::hor and font::vert.
18002         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18003         be included in a C compilation.
18004         (iftoa): Use INT_DIGITS. Include lib.h.
18005         (itoa): Likewise.
18006         (as_string): Likewise.
18007         * tbl/table.c: Removed definition of INT_DIGITS.
18008         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18009         * troff/input.c (input_input_requests): Likewise.
18010         * ps/ps.c (make_encoding_name): Likewise.
18011         (ps_printer::set_style): Likewise.
18012         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18014         * tty/devascii/R.proto: Map fm onto '.
18015         * tty/devlatin1/R.proto: Likewise.
18017 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
18019         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18020         argument to \w is at a different input level.
18022         * tbl/table.c (table::init_output): Define a new macro
18023         REPEATED_VPT_MACRO, like vpt but if in a diversion also
18024         transparently outputs itself.
18025         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18026         vpt.
18027         (table::do_row): Likewise.
18029         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18030         TRANSPARENT_STRING_NAME.
18032         * tbl/table.c (table::init_output): In the table release macro
18033         print an error message and don't produce any output if after
18034         issuing the need request the table still will not fit.  Also
18035         remove the diversion after bringing it back.
18037         * tbl/table.c (table::init_output): Define a new macro
18038         REPEATED_MARK_MACRO, like mk but if in a diversion also
18039         transparently outputs itself.
18040         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18041         is necessary because .TH might not call .T#.
18042         (table::do_top): Likewise TOP_REG.
18043         (table::define_bottom_macro): If TOP_REG is no longer valid, use
18044         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18045         table header might contain just the two top rules.
18047 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
18049         * troff/div.c: Implement new request `ptr' to print all traps.
18051         * troff/env.c (init_env_requests): Implement `.tabs' reg with
18052         init_string_env_reg.
18053         * troff/env.c (class tab_reg): Deleted.
18055 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
18057         * troff/div.c: New number register .pn returns the number of the
18058         next page as set by the pn request.
18060         * macros/tmac.an: Redid headers and footers.  Number each manual
18061         entry starting from 1 unless \nC is > 0, like Sun.  Added an
18062         optional 5th argument to .TH which specifies the manual name and
18063         appears in the center of the header.  Understand the X, P and D
18064         registers like Sun.
18066 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
18068         * troff/env.c (init_env_requests): New number register `.lt' to
18069         return the title length.
18071         * troff/node.h (class transparent_dummy_node): New class.
18072         * troff/node.c (class transparent_dummy_node): Provide member
18073         functions. 
18074         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18075         than a dummy_node.
18077         * troff/input.c (token::next): New escape sequence \).
18078         * troff/input.c (get_copy): Recognize \) in copy mode.
18080         * troff/input.c (input_stack::clear): New function.
18081         * troff/input.c (exit_request): Use input_stack::clear.
18083         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18084         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18086         * troff/env.c: Move set_page_character to input.c.  Move
18087         page_character to input.c also.
18088         * troff/env.c (title): Split off the reading of the parts of the
18089         title into read_title_parts.
18090         * troff/input.c (read_title_parts): New function.  Check the
18091         input_level when testing whether a token matches the delimiter.
18093         * troff/input.c (exit_request): New function.
18094         * troff/input.c (init_input_requests): Bind ex request to
18095         exit_request rather than exit_groff.
18097         * troff/input.c (exit_groff): Call tok.next() before
18098         process_input_stack().
18100 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
18102         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18103         * troff/env.h: ditto.
18104         * troff/input.c: ditto.
18106         * troff/env.c (environment::is_empty): Test pending_lines.
18108         * troff/env.c (environment::have_pending_lines): Removed.
18110         * troff/input.c: Add request to flush pending lines from the
18111         environment.
18113         * troff/env.c, troff/env.h: Add automatic widow control feature.
18115         * troff/input.c (exit_groff):  Do process_input_stack() after
18116         do_break() but before setting exit_flag to 2.
18118         * troff/input.c: Remove FLUSH_PENDING_LINES and
18119         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18120         environment after END_TRAP token seen, but only if there aren't
18121         any more traps still unfinished.
18122         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18124 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
18126         * troff/env.c: Rename the `retain_size' member of class
18127         pending_output_line to `no_fill'.
18129         * troff/env.c (title): When the line is output, make the
18130         retain_size argument !fill.
18132         * troff/node.h: Add `hyphenated' member to struct breakpoint.
18133         * troff/node.c (space_node::get_breakpoints),
18134         (dbreak_node::get_breakpoints):  Fill this in.
18135         * troff/env.c:  Allow specification of maximum number of
18136         consecutive hyphenated lines.
18138         * troff/env.c (environment::is_empty): Add test for !current_tab.
18140 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
18142         * troff/env.c (environment::hyphenate_line): Don't completely give
18143         up if the word is not to be hyphenated; continue so that breaks
18144         can be made at break_char_node's.
18146         * lib/lib.h: Only define INT_MAX if it's not already defined;
18147         undef INT_MIN if it's already defined.
18149         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18151         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18152         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18153         compiler.
18154         
18155         * macros/tmac.an (an-header): Set no-space mode.
18157         * macros/tmac.an (TH): Start a new page if necessary.
18159         * Started using ChangeLog at version 0.4.
18161 Local Variables:
18162 version-control: never
18163 coding: latin-1
18164 End: