Update afmtodit to better support Unicode (Michail).
[s-roff.git] / ChangeLog
blob88f3c27cf5c3c227805a6dcbcb4a089bfc512490
1 2004-02-13  Michail Vidiassov  <master@iaas.msu.ru>
2             Werner LEMBERG  <wl@gnu.org>
4         Update afmtodit to better support Unicode (Michail).
5         Update afmtodit to use Perl 5 syntax (Werner).
7         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
8         `Getopts::Std'.
9         Decorate variables with `my' where necessary.
10         Use `defined' where necessary to avoid warnings.
11         Don't use `do' for subroutine calls.
12         Other minor syntax updates.
13         Check for both `uXXXX[X[X]]' and `uniXXXX'.
14         Handle glyph variants properly.
15         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
16         strings.
18         * src/utils/afmtodit/afmtodit.man: Updated.
20 2004-02-13  Werner LEMBERG  <wl@gnu.org>
22         Make groff.texinfo work with texinfo 4.8.
24         * doc/groff.texinfo (@Var): Use @r and @slanted.
25         (@defdummy, @Def*): Use @c to avoid empty lines.
26         (\angles): Replaced with...
27         (\Langlemacro, \Ranglemacro): New TeX macros.
28         (@Langlemacro, @Ranglemacro): New variables defined with @set.
29         (@angles): Use @Langlemacro and @Ranglemacro.
30         (\LE): Replaced with...
31         (\LEmacro): New TeX macro.
32         (@LEmacro): New variable defined with @set.
33         (@LE): Use @LEmacro.
34         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
35         variables defined with @set.
36         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
37         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
38         Update all callers.
40         Other minor updates.
42         * doc/texinfo.tex: Update to texinfo version 4.8.
44         * README.CVS: Updated.
46 2004-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
48         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
49         and `FAM' registers.
51 2004-02-05  Werner LEMBERG  <wl@gnu.org>
53         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
54         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
55         Update BSD license.
57 2004-02-01  Werner LEMBERG  <wl@gnu.org>
59         * src/roff/groff/groff.man: Add information about paper size.
61 2005-01-25  Werner LEMBERG  <wl@gnu.org>
63         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
64         NetBSD bin/29114.
66 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
68         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
69         cases.
70         (Re): Emit a warning if called without `.Rs'.
71         (doc-finish-reference): Use parameter for decreasing
72         `doc-reference-count'.
73         (doc-print-reference): Pass specific count parameters to
74         `doc-finish-reference'.
76 2005-01-21  Werner LEMBERG  <wl@gnu.org>
78         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
79         Reset pointers to zero after deallocation.  This fixes a crash
80         if a driver is called with multiple input files.  Reported by
81         Ken Chilton <ken@chiltonfamily.org>.
83         * src/devices/grops/grops.man: Add more info on DSC.
85 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
87         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
88         Remove dead code.
90 2004-01-17  Werner LEMBERG  <wl@gnu.org>
92         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
93         against division by zero.
95 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
97         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
99 2004-12-19  Werner LEMBERG  <wl@gnu.org>
101         * install-sh: New version; taken from texinfo CVS.
103 2004-12-17  Werner LEMBERG  <wl@gnu.org>
105         * tmac/devtag.tmac: Protect against loading twice.
106         Protect agains compatibility mode.
107         * tmac/www.tmac: Protect against loading twice.
108         Load `devtag.tmac' before switching off compatibility mode.
109         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
111 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
113         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
114         * configure: Updated.
116 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
118         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
120 2004-12-15  Werner LEMBERG  <wl@gnu.org>
122         Make `test-groff' work again -- previously, wrong paths have been
123         used.  Additionally, it can now be called from anywhere.
125         * test-groff.in: Don't test for groff binary.  This is no longer
126         necessary since the proper paths are determined by `configure'.
127         (EXEEXT): Removed.  No longer used.
128         (srcdir, builddir): Use values provided by the configure script.
129         (XENVIRONMENT): Updated.
131         * INSTALL: Updated.
133 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
135         Make .tag and .taga work for all devices (but only grohtml actually
136         handles them).
138         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
139         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
140         html_printer::handle_assertion): Don't use hard-coded string
141         lengths.
142         (html_printer::lookahead_for_table): Reset `tbl' properly if
143         necessary.
144         (html_printer::devtag): New function, handling `devtag'.
145         (html_printer::special): Don't handle `html-tag'.
147         * src/include/printer.h, src/libs/libdriver/printer.cpp
148         (printer::devtag): New virtual function.
150         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
151         `devtag'.
153         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
154         src/roff/troff/node.cpp: s/html-tag/devtag/.
156         * src/roff/troff/input.cpp (tag, taga): Always call
157         curenv->add_node.
159         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
160         macros instead of HTML-TAG*.
162         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
164         * tmac/www.tmac: Load devtag.tmac.
165         Replace HTML-TAG* macros with DEVTAG* macros.
166         (HTML, HTML-NS): Changed definitions.
167         (URL): Use HTML-NS.
168         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
170         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
172 2004-12-10  Werner LEMBERG  <wl@gnu.org>
174         Import Mike's `gdiffmk' package.
176         * contrib/gdiffmk/*: New files.
177         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
178         * NEWS: Updated.
180 2004-12-08  Werner LEMBERG  <wl@gnu.org>
182         Import Keith's `pdfmark' package.  Integration is very preliminary.
184         * contrib/pdfmark/*: New files.
185         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
186         * NEWS: Updated.
188 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
190         Fix a bug with title handling in HTML.
192         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
193         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
194         length.
195         (html_printer::handle_tag_within_title): New function.
196         (html_printer::do_title): Use it.
198         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
199         (cov*tl-au-print): Emit `.eo.tl' tag.
201 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
203         * man/groff_char.man: Minor imrovements.
205 2004-12-04  Werner LEMBERG  <wl@gnu.org>
207         * src/preproc/eqn/eqn.man: Revised.
209 2004-11-25  Werner LEMBERG  <wl@gnu.org>
211         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
212         groff source files.
213         Include config.h.
214         Include limits.h.
215         Remove X_NOT_STDC_ENV conditional.
216         (Version_string, program_name): New global variables.
217         (groff_flag): Removed.
218         (MapFont): Updated.
219         (usage): Take a stream as argument.
220         Use `program_name'.
221         Update all callers.
222         (main): Add `long_options' array for `--help' and `--version'.
223         Make `-g' a dummy option.
224         Handle `-v' and unknown options.
225         Remove unused `position' variable.
227         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
228         (XLIBS): Add LIBGROFF.
230         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
231         New files.
233         * src/devices/xditview/Dvi.c (default_font_map): Split into three
234         parts to avoid compiler warning.
235         (resources): Don't initialize with `default_font_map'.
236         (ClassInitialize): Initialize first element of `resources'.
238         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
239         Removed.
241         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
242         src/utils/pfbtops/pfbtops.man: Revised, updated.
244         * configure.ac: Generate src/utils/xtotroff/Makefile.
245         * configure: Regenerated.
247 2004-11-24  Werner LEMBERG  <wl@gnu.org>
249         First fixes to get produce HTML.
251         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
252         attribute.
254         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
255         (HR, LI): Use `HTML</p>', not `HTML'.
257         * doc/webpage.ms: Minor updates.
259 2004-11-23  Larry Kollar  <kollar@alltel.net>
261         Add option -S grohtml to determine the file split level.
263         * src/devices/grohtml/post-html.cpp (split_level): New global
264         variable.
265         (html_header::determine_header_level): Use split_level.
266         (main): Handle `-S' command line option.
267         Sort options.
269         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
271         * src/devices/grohtml/grohtml.man: Document it.
272         Sort options.
274         * NEWS: Document it.
276 2004-11-23  Y T  <doarhop@hotmail.com>
278         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
279         the volume and number refer entries.
281 2004-11-22  Werner LEMBERG  <wl@gnu.org>
283         * src/devices/grohtml/html-table.cpp
284         (html_table::emit_table_header): Don't emit `cols' attribute which
285         doesn't exist in HTML 4.0 and is thus invalid.
287         * NEWS: More minor fixes and updates.
289 2004-11-18  Werner LEMBERG  <wl@gnu.org>
291         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
292         (HTML</p>): Minor clean-up.
294         * tmac/groff_www.man: Updated.
296         * src/devices/grohtml/grohtml.man: Revised and updated.
298         * NEWS: Updated.
300 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
302         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
303         Fix space insertion.
304         (html_printer::do_links): Fix rules generation around automatic
305         heading links.
307         * tmac/www.tmac (LK): Use HTML-TAG-NS.
308         (HR): Simplify.
309         No longer emit empty line for non-HTML devices.
311 2004-11-17  Werner LEMBERG  <wl@gnu.org>
313         * doc/Makefile.in (prepare_examples, webpage.html): Handle
314         `groff.css'.
316         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
317         prepare_examples, webpage.html): Handle `groff.css'.
319 2004-11-15  Werner LEMBERG  <wl@gnu.org>
321         * NEWS, README, doc/webpage.ms: Updated.
323         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
325 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
327         * src/include/printer.h (printer): Remove virtual function
328         `round_width'.
329         Update all source files.
331         * src/devices/grohtml/post-html.cpp (html_printer): New member
332         function `round_width'.
334 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
336         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
337         column key letter suffix.
339 2004-10-14  Werner LEMBERG  <wl@gnu.org>
341         * Makefile.in (check): Depend on `site.exp' and `docheck'.
342         (docheck): Run dejagnu's `runtest' if it exists.
343         (site.exp): Create dejagnu configuration file.
345         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
347 2004-10-13  Werner LEMBERG  <wl@gnu.org>
349         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
350         src/devices/grohtml/post-html.cpp (make_val,
351         html_printer::handle_state_assertion): Fix compiler warnings.
353         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
354         (diversion::diversion): Fix order of initializers.
356         * src/roff/troff/div.h: Don't include `mtsm.h'.
358         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
359         (environment::environment): Fix order of initializers.
360         (environment::make_tag, environment::construct_format_state): Fix
361         compiler warnings.
363         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
364         (input_iterator::input_iterator, macro::macro): Fix order of
365         initializers.
367         * src/roff/troff/mtsm.cpp: Include only necessary header files.
368         (state_set::add, state_set::val): Fix compiler warnings.
370         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
371         (bool_value_state, int_value_state, units_value_state,
372         string_value_state): Remove comma after last element which causes
373         an error with g++ 3.3.3.
375         * src/roff/troff/node.cpp: Include `stringclass.h'.
376         (hline_node::hline_node, vline_node::vline_node,
377         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
378         warnings.
379         (zero_width_node::zero_width_node): Fix order of initializers.
381         * src/roff/troff/node.h: Don't include `mtsm.h'.
382         (hmotion_node): Fix compiler warnings.
384         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
386 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
388         * doc/groff.css: New file.
390         * doc/webpage.ms: Use `groff.css'.
391         Other small fixes.
393         * tmac/an-old.tmac (need_eo_h): New number register.
394         (TH): Emit `.eo.tl' tag after title.
395         (SH): Set `need_eo_h'.
396         (an-trap): Handle `need_eo_h'.
397         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
399         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
400         (TL): Always start diversion.
401         Updated.
402         (@AI): Always call `par@reset'.
403         (@AB): Update code for -Thtml.
404         (cov*tl-au-print): Handle -Thtml.
405         (par@reset): Handle `need_eo_tl', `need_eo_h'.
406         (@IP): Simplified.
407         (@IT-html): Removed.
408         (@SH): Set `need_eo_h' for -Thtml.
409         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
410         Set `need_eo_tl'.
411         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
412         Set `need_eo_h' for -Thtml.
413         (@EQ, @EN): Don't handle -Thtml specially.
414         (par@load-init): Don't handle -Thtml specially.
416         * tmac/www.tmac (www:paraspace): New macro.
417         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
418         (HTML</p>, HTML-TAG-NEXT): New macros.
419         (HnE): Emit tag `.eo.h' instead of break.
420         (HR): s/HTML-NS/HTML/.
421         (www-end-nowhere): End diversion only if `www-html' not set.
422         Emit `.eo.tl' tag.
423         (ULS, ULE): s|HTML|HTML</p>|.
424         (LI): Call `www:paraspace'.
425         (HEAD): New macro.
427 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
429         * src/roff/troff/request.h (macro): Make `p' public.
430         New variable `is_a_diversion'.
431         New member function `is_diversion'.
434         * src/devices/grohtml/html.h (simple_output): New member function
435         `force_nl'.
437         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
438         computation of `total'.
439         (tabs::check_init): New function.
440         (html_table::emit_table_header): Emit style data.
441         (html_table::insert_column): Improved.
443         * src/devices/grohtml/html-table.h: Updated.
445         * src/devices/grohtml/html-text.cpp (html_text::html_text):
446         Initialize `start_space' with TRUE.
447         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
448         cases.
449         (html_text::flush_text): Set `start_space' flag.
450         (html_text::uses_indent, html_text::remove_para_space,
451         html_text::get_alignment): New functions.
452         (html_text::push_para): Updated.
453         (html_text::do_para): Check for empty argument.
454         Don't set `space_emitted'.
455         (html_text::do_space, html_text::emit_space): Updated.
457         * src/devices/grohtml/html-text.h (tag_definition): New variable
458         `really_issued'.
459         (html_text): New member function `uses_indent', `remove_para_space',
460         `get_alignment'.
462         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
463         function.
464         (simple_output:nl): Always emit `\n'.
466         * src/devices/grohtml/post-html.cpp: Include `string.h'.
467         (BASE_POINT_SIZE): Removed.
468         (base_point_size, head_info): New global variables.
469         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
470         `is_eo_h'.
471         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
472         tags, respectively.
473         (page::add_and_encode): Pass additional parameter for tag flag.
474         (assert_pos): New structure.
475         (assert_state): New class.
476         (html_printer): Remove `indentation', `prev_indent'.
477         Add variables `troff_indent', `device_indent', `temp_indent'.
478         Add variables `seen_indent', `next_indent', `seen_pageoffset',
479         `next_pageoffset', `seen_linelenght', `next_linelength',
480         `seen_center', `next_center', `seen_space', `seen_break', `as'.
481         Add member functions `do_check_center', `do_space', `do_head',
482         `get_troff_indent', `restore_troff_indent', `handle_assertion',
483         `handle_state_assertion', `do_end_para', `set_char_and_width'.
484         Change argument to `do_fill' to `char *'.
485         Update constructor.
486         (html_printer::emit_raw): Call `shutdown_table'.
487         Use new functions.
488         (html_printer::do_center): Simplified.
489         (html_printer::do_title): Improved.
490         (html_printer::write_header): Emit one more newline.
491         Use new functions.
492         (html_printer::do_heading, html_printer::do_indent,
493         html_printer::do_eol, html_printer::do_tab_ts,
494         html_printer::do_tab, html_printer::do_tab0,
495         html_printer::calc_po_in, html_printer::next_horiz_pos,
496         html_printer::remove_courier_tabs,
497         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
498         Updated.
499         (html_printer::do_linelength, html_printer::do_pageoffset,
500         html_printer::do_indentation, html_printer::do_tempindent,
501         html_printer::do_tab_te): Simplified.
502         (html_printer::do_pointsize): Check whether point size is really
503         associated a `.tl' tag.
504         (html_printer::do_break): Rewritten.
505         (html_printer::troff_tag): Improved.
506         (html_printer::flush_globs): Updated.
507         (html_printer::lookahead_for_tables): Handle `is_br'.
508         Use new functions.
509         (html_printer::set_char): Check `sbuf_style.f'.
510         (html_printer::write_navigation): Use string comparison.
511         (html_printer::~html_printer): Emit `head_info'.
512         (html_printer::special): Rewritten.
513         (get_str, make_val): New functions.
514         (main): New option `s' to set the base point size.
516         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
518 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
520         * src/roff/troff/node.cpp: New extern `debug_state'.
521         Include `stringclass.h' and `mtsm.h'.
522         Implement new classes and class members from `node.h'.
523         (real_output_file): Make `fp' public.
524         (troff_output_file): New variables `cur_div_level' and `tag_list'.
525         Update constructors.
526         (troff_output_file::really_print_line): Check whether we should push
527         the current troff state and use the state at the start of the
528         invocation of this diversion.
529         (troff_output_file::add_to_tag_list): New member function.
530         (node::add_char): Handle `glyph_comp_np'.
532         * src/roff/troff/node.h: Include `mtsm.h'.
533         (node): New variables `state', `push_state', `div_nest_level',
534         `is_special'.  Update constructors, all descendants.
535         Pass additional argument to `add_char' member function.
536         New virtual member functions `is_tag', `debug_node',
537         `debug_node_list'.  Update all descendants.
538         (tag_node): New class for handling tags.
539         (output_file): Add variable `state'.
541 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
543         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
544         providing a minimal troff state machine to emit meta tags for the
545         post-grohtml device driver.
547         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
548         files.
550 2004-10-09  Werner LEMBERG  <wl@gnu.org>
552         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
554 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
556         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
558         * src/roff/troff/div.h: Include `mtsm.h'.
559         (diversion): New variables `any_chars_added', `needs_push',
560         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
561         `saved_suppress_next_eol', `modified_tag'.
562         New virtual member function `is_diversion'.  Update all descendants.
564         * src/roff/troff/div.cpp (diversion::diversion,
565         macro_diversion::macro_diversion): Updated.
566         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
567         `suppress_next_eol'.
568         (top_level_diversion::space): Handle `curenv->seen_space'.
569         (page_offset): Update tag handling.
570         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
572         * src/roff/troff/env.h (environment): Make `tabs' public.
573         Remove `ignore_next_eol', `emitted_node'.
574         Update `output_line', `output'.
575         New variables `seen_space', `seen_eol', `suppress_next_eol',
576         `seen_break'.
577         New member functions `construct_state', `make_tag',
578         `construct_format_state, `construct_new_line_state,
579         `dump_troff_state'.
580         Remove `add_html_tag', `make_html_tag'.
582         * src/roff/troff/env.cpp: New externs `suppress_push',
583         `get_diversion_state', `global_diverted_space'.
584         (pending_output_line): New variable `was_centered'.
585         Update constructor and all callers.
586         (pending_output_line::output): Call `curenv->construct_format_state'.
587         (environment::environment, environment::copy): Updated.
588         (environment::output): Handle `was_centered'.
589         (environment::add_char): Handle construct and diversion state.
590         (environment::add_node): Handle construct state.
591         (environment::newline): Handle `was_centered'.
592         (environment::output_line): Updated.
593         (environment::possibly_break_line): Updated.
594         Update tag handling.
595         (environment::add_html_tag): Replaced with...
596         (environment::make_tag): New function.
597         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
598         (environment::dump_troff_state): New debugging function.
599         (environment::construct_state, environment::construct_format_state,
600         environment::construct_new_line_state): New functions.
601         (environment::do_break): Updated.
602         Handle `global_diverted_space'.
603         (environment::handle_tag): Update tag handling.
604         (point_size, fill, do_break_request): Don't call `add_html_tag'.
605         (no_fill): Don't call `add_html_tag'.
606         Set `suppress_next_eol'.
607         (center, right_justify, line_length, indent, temporary_indent,
608         set_tabs):
609         Update tag handling.
611         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
612         (input_iterator): New variables `is_diversion', `diversion_state'.
613         Update constructors.
614         (input_stack): New member functions `get_div_level',
615         `get_diversion_state', `check_end_diversion'.
616         New variables `div_level', `diversion_state'.  Initialize them.
617         (suppress_push, global_diverted_space): New global variables.
618         (input_stack::finish_get, input_stack::finish_peek,
619         input_stack::remove_boundary, input_stack::end_file,
620         input_stack::clear, input_stack::pop_macro): Call
621         `check_end_diversion'.
622         (input_stack::push): Handle `div_level' and `diversion_state'.
623         (get_diversion_state): New function.
624         (diverted_space_node::reread): Handle `global_diverted_space'.
625         (macro::macro): Update constructors.
626         (macro::is_diversion): New function.
627         (macro::operator=): Set `is_a_diversion'.
628         (string_iterator): New member function `is_diversion'.
629         (string_iterator::string_iterator): Update constructors.
630         (string_iterator::fill): Set `div_nest_level'.
631         (macro_iterator): New member function `is_diversion'.
632         (do_if_request): Handle `suppress_push'.
633         (tag, taga): New functions.
634         (init_input_requests): Add `tag' and `taga' requests.
636 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
638         * src/include/font.h (font): New member function
639         `get_image_generator'.
640         New variables `unscaled_charwidths' and `image_generator'.
642         * src/libs/libgroff/font.cpp (font::get_width): Always return the
643         character's unscaled width if `font::unscaled_charwidths' is set.
644         (font::get_image_generator): New function.
645         (font::load_desc): Check the `unscaled_charwidths' and
646         `image_generator' keywords.
648         * src/libs/libgroff/fontfile.cpp: Initialize
649         `font::unscaled_charwidths' and `font::image_generator'.
651         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
653         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
655         * man/groff_font.man: Document `unscaled_charwidths' and
656         `image_generator'.
658         * src/preproc/html/pre-html.cpp: Include `device.h'.
659         (image_gen): New global variable.
660         (imageList::createPage): Use `image_gen'.
661         (main): Use `image_generator' keyword.
663 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
665         * tmac/html.tmac: Handle \[sqrtex].
667 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
669         * src/include/printer.h (printer): New virtual method `round_width'.
671         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
672         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
673         src/devices/grotty/tty.cpp (printer::round_width): New function
674         member.
676         * src/devices/grohtml/post-html.cpp (printer::round_width): New
677         function member.
678         (html_printer::set_numbered_char): Use it.
680 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
682         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
684         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
686         * configure: Regenerated.
688         * Makefile.in (GHOSTSCRIPT): New variable.
689         (MDEFINES): Add GHOSTSCRIPT.
691 2004-10-03  Werner LEMBERG  <wl@gnu.org>
693         * INSTALL.gen: Updated (taken from texinfo CVS).
695 2004-09-28  Werner LEMBERG  <wl@gnu.org>
697         * NEWS: Updated.
699 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
701         * tmac/groff_www.man: Revised and updated.
703 2004-09-26  Werner LEMBERG  <wl@gnu.org>
705         Fix \$@ and \$* to handle any number of arguments.
707         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
708         characters.
710         * src/roff/troff/input.cpp (input_iterator::internal_level):
711         Removed.
712         (input_stack): New member functions `increase_level' and
713         `decrease_level'.
714         (input_stack::get_level): Don't use `internal_level'.
715         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
716         (end_quote_iterator): Completely removed.
717         (interpolate_arg): Build string for \$@ and \$* which is then
718         pushed onto the input stack.
720 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
722         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
723         2004-09-19.
725 2004-09-23  Werner LEMBERG  <wl@gnu.org>
727         * tmac/an-old.tmac (ne): Using default scaling operator.
729 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
731         This change implements the following features:
733         PORPHANS
734           New numeric register: Defines number of lines following LP, PP,
735           QP, IP or XP, which must be kept together, before any automatic
736           page break.  If insufficient space remains on the current page, a
737           page break is forced before the new paragraph begins.
739         HORPHANS
740           New numeric register: Sets number of lines of following paragraph
741           which must be kept with a heading, defined by NH or SH, before any
742           automatic page break.  If insufficient space remains on the
743           current page, a page break is forced before the heading.
745         GROWPS
746           (Thanks to Joerg van den Hoff, for this idea).
748           New numeric register: Sets the first level of heading (set with
749           NH), which will keep the same point size as body text; e.g. if
750           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
751           point size specified by \n[PS], but .NH 2 and .NH 1 will have
752           progressively larger point sizes, determined by \n[PSINCR] (see
753           below).
755         PSINCR
756           New numeric register: Sets the point size increment for each level
757           of heading, (set with NH), below the threshold level set by
758           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
759           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
760           and all other levels will remain at 10pt, (because \n[PS] = 10).
762         SH
763           Existing macro now accepts a numeric argument, to make heading
764           size match that of NH with same argument value, when the
765           GROWPS/PSINCR feature is enabled.
767         SN-DOT
768           New string, set by NH macro, replaces the existing (undocumented)
769           use of SN, to represent the assigned section number.
771         SN-NO-DOT
772           New string, set by NH macro, represents the assigned section
773           number, but omits the terminal period (periods at intermediate
774           levels are retained).
776         SN
777           String set by NH macro, originally undocumented, now implemented
778           as an alias for SN-DOT (which reproduces original behaviour).
780         * tmac/s.tmac (PORPHANS): New register.
781         (par*start): Use it.
782         (HORPHANS, GROWPS, PSINCR): New registers.
783         (SH-NO-TAG, @SH): Use them.
784         (@NH): Improved.
786 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
788         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
789         of `Ds' and `De' macros.
791 2004-09-10  Werner LEMBERG  <wl@gnu.org>
793         In tbl, handle \a as an interpreted leader character if in
794         compatibility mode.
796         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
797         LEADER_CHAR): New macros.
798         (compatible_flag): New declaration.
800         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
801         LEADER_3, and LEADER_4 to `state'.
802         (table_input::get): Handle `\a'.
804         * src/preproc/tbl/table.cpp (PREFIX): Removed.
805         (LEADER_REG): New macro.
806         (table::init_output): Define LEADER_REG string register if in
807         compatibility mode.
809         * src/preproc/tbl/tbl.man: Document it.
811 2004-08-18  Werner LEMBERG  <wl@gnu.org>
813         * tmac/doc.tmac (An): Fix error message.
815 2004-08-06  Werner LEMBERG  <wl@gnu.org>
817         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
818         file can't be opened.  UNIX tbl has the same behaviour.
820 2004-08-05  Y T  <doarhop@hotmail.com>
822         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
823         (DBRead): If in compatibility mode, take into account the text
824         when computing figure boundaries.
826 2004-08-05  Werner LEMBERG  <wl@gnu.org>
828         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
829         from Tadziu Hoffmann.
831 2004-08-03  Werner LEMBERG  <wl@gnu.org>
833         * doc/meref.me: Document `_M' register.
835 2004-08-03  Martin Husemann  <martin@duskware.de>
837         Make hpftodit work correctly on big-endian systems.
839         * src/utils/hpftodit/hpftodit.cpp (File): New method
840         `get_uint32(char *)'.
841         (entry): New member `orig_value'.
842         (read_tags): Use new method.
843         (output_font_name, read_and_output_pcltypeface, dump_ascii):
844         Updated.
846 2004-08-01  Werner LEMBERG  <wl@gnu.org>
848         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
849         are already in X11's `macros.t' file.
851 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
853         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
854         Fix casting bug.
855         (read_and_output_pcltypeface): Handle strings with length <= 4.
857 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
859         * tmac/s.tmac (pg@top): Don't save `PO' register.
860         (pg*end-col, pg*end-page): Directly use `PO' register.
862 2004-07-27  Werner LEMBERG  <wl@gnu.org>
864         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
866         * src/preproc/refer/refer.cpp (output_references): Check for
867         empty hash table.
868         * src/preproc/refer/refer.man: Improve documentation of
869         `bibliography' command.
871 2004-07-26  Werner LEMBERG  <wl@gnu.org>
873         Add requests `fcolor' and `gcolor'.
875         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
876         New functions.
877         (init_env_requests): Add `fcolor' and `gcolor'.
879         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
881         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
882         Document new requests.
884 2004-07-24  Werner LEMBERG  <wl@gnu.org>
886         Add support for fractional point sizes in ms macros.  A value for
887         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
888         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
890         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
891         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
893         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
895 2004-07-19  Werner LEMBERG  <wl@gnu.org>
897         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
898         Update constructor.
899         (do_for, for_input::get, for_input::peek): Handle negative `by'.
900         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
902 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
904         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
905         * tmac/groff_mdoc.man: Updated.
907 2004-07-05  Werner LEMBERG  <wl@gnu.org>
909         * doc/groff.texinfo: Further improve documentation of `hcode'.
911 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
913         Improve appearance of arrows in pic.
915         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
916         arrow head thin.
917         Use two line segments for drawing non-filled arrow head.
918         (line_object::print, spline_object::print): Shorten line length to
919         avoid arrow sticking.
920         (arc_object::print): Take arrow direction into account.
922 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
924         * tmac/groff_www.man: Update documentation of .MPIMG.
926 2004-07-03  Werner LEMBERG  <wl@gnu.org>
928         * tmac/an-old.tmac (RI): Always start with font `R'.
929         (RI, IR): Properly end with font `R'.
931 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
933         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
934         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
935         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
936         Don't pass more than six arguments to .R, .I, .B, etc., for
937         compatibility with traditional troff macros.
939 2004-07-02  Werner LEMBERG  <wl@gnu.org>
941         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
942         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
943         Update all users.
944         (PUSH_COMP_MODE): New internal character constant.
945         Update all users.
947         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
948         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
949         (token::next, macro::append): Handle PUSH_COMP_MODE.
950         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
951         POP_GROFFCOMP after each of the decoded arguments to make them
952         independent from the compatibility mode status.
953         (comp_mode): Add `COMP_ENABLE'.
954         (do_define_string, do_define_macro): Handle COMP_ENABLE.
955         (define_string, append_string, define_macro, define_indirect_macro,
956         append_macro, append_indirect_macro): Handle `compatible_flag'.
957         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
959         * man/groff_diff.man, doc/groff.texinfo: Updated.
961 2004-07-01  Werner LEMBERG  <wl@gnu.org>
963         * doc/groff.texinfo: Improve documentation of `hcode'.
964         Use @documentencoding and convert document to latin-1; to do that
965         make latin characters active and assign proper macros (within a
966         @tex...@end tex environment).
967         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
968         * doc/Makefile.sub (groff): Ditto.
970 2004-06-29  Werner LEMBERG  <wl@gnu.org>
972         Implement two new conditional operators `F <name>' and `S <name>'
973         which check whether <name> is a valid font or style, respectively.
975         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
976         (text_file::text_file): Updated.
977         (text_file::error): Don't emit message if `silent' is set.
978         (font::load_font): Add optional third argument (which is directly
979         passed to `load'.
980         (font::load): Add optional second argument to check the header of
981         a font only, without emitting warning or error messages.
982         * src/include/font.h (font): Updated.
984         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
985         conditionals.
986         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
987         fourth argument to check a font without mounting.
988         (check_font, check_style): New functions.
989         * src/roff/troff/node.h: Updated.
991         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
992         Updated.
994 2004-06-27  Werner LEMBERG  <wl@gnu.org>
996         Implement new string-valued register `.sty' to return the current
997         style name.
999         * env.cpp (environment::get_style_name_string): New function.
1000         (init_env_requests): Add `.sty' register.
1001         * env.h (environment): Updated.
1002         * node.cpp (font_info): Make `get_style_name' a friend.
1003         (get_style_name): New function.
1004         * node.h: Updated.
1006         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1007         Updated.
1009 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1011         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1012         `nospaces' option.
1014 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1016         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1017         and \n[mo] to avoid dependency on current date.
1019 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1021         * Makefile.sub (install_data): New target.
1023 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1025         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1027 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1029         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1030         order of libraries.
1031         (install_data): Add $(srcdir).
1033         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1034         libraries.
1036 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1038         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1039         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1040         Add test for Xmu library.
1041         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1042         GROFF_APPRESDIR_DEFAULT): New macros.
1044         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1045         and GROFF_APPRESDIR_DEFAULT.
1047         * configure: Regenerated.
1049         * Makefile.in (appresdir): New variable.
1050         (MDEFINES): Add appresdir.
1052         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1053         -Xt.
1054         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1056         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1057         `$(srcdir)/eign', not `eign'.
1059         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1061         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1062         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1063         Protect (g)xditview with `\%' to avoid hyphenation.
1064         Other minor formatting.
1066 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1068         Integrate gxditview into groff's standard directory hierarchy.
1070         * src/xditview/*: Moved to ...
1071         * src/devices/xditview/*: Here.
1072         Moved DviChar.h and XFontName.h to src/include.
1073         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1074         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1075         Moved xtotroff.c to new directory src/utils/xtotroff.
1076         Provide proper Makefile.sub files (reusing the stuff from
1077         Imakefile.in).
1078         DESC renamed to DESC.in.
1079         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1080         Converted everything from K&R to ANSI C.
1081         Decorated with const where appropriate.
1082         Cast string constants with `String' and `char *' where appropriate.
1083         Made it compile with C++ (used as a C compiler).
1084         Removed other minor compiler warnings.
1086         * src/devices/xditview/device.c: Include config.h, string.h, and
1087         defs.h.
1088         Don't declare `exit', `strtok', `strchr', and `getenv'.
1089         (FONTPATH): Remove.
1091         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1092         `XFormatFontName'.
1094         * src/devices/xditview/xditview.c: Include config.h.
1095         Include stdio.h earlier.
1096         Protect declaration of `popen' and `pclose' with
1097         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1098         Replace `caddr_t' with `XtPointer'.
1099         (MakePromptFunc): New typedef.
1100         (DoPrint): Use RETSIGTYPE.
1101         (promptfunction): Change type to MakePromptFunc.
1102         (MakePrompt): Use MakePromptFunc for third argument.
1103         (xmalloc): Removed.
1105         * src/devices/xditview/ad2c: Add casts to `String'.
1107         * src/include/XFontName.h (XFontNameString): Don't use array
1108         notation.
1109         Add prototypes for `XParseFontName', `XFormatFontName',
1110         `XCompareFontName', and `XCopyFontName'.
1112         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1113         `XFontName.h'.
1115         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1116         Don't declare `XParseFontName' and `XFormatFontName'.
1117         (xmalloc): Removed.
1118         (main): Remove `optind' and `optarg'.
1120         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1121         (to select programs which need X).
1122         Make XDEVIDIRS depend on `FORCE'.
1123         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1124         X support).
1125         (MDEFINES): Updated.
1126         (LIBDIRS): Use XLIBDIRS.
1127         (CPROGDIRS): Use XPROGDIRS.
1128         (DEVDIRS): Remove font directories for gxditview.
1129         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1130         (EXTRADIRS): Remove src/xditview.
1132         * Makefile.sub (DISCLEANFILES): Updated.
1134         * Makefile.comm (LIBXUTIL): New variable.
1135         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1136         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1138         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1140         * aclocal.m4 (GROFF_X11): New function.
1142         * configure.ac: Call GROFF_X11.
1143         Don't create src/xditview/Imakefile.
1144         Don't emit notice how to build gxditview.
1146         * configure: Regenerated.
1148         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1150 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1152         * Makefile.in (CPPFLAGS): Define.
1153         (MDEFINES): Add CPPFLAGS.
1155 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1157         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1159 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1161         Fix problems with `friend name injections'.
1163         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1164         make_script_box), src/roff/troff/div.h (end_diversions),
1165         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1166         change 2004-04-08.
1168 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1170         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1172 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1174         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1175         src/libs/libgroff/color.cpp: Include lib.h.
1177 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1179         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1180         through Forte 6u1, and for how to get GNU make on Solaris.
1182 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1184         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1185         by Paul Eggert.
1187 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1189         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1190         rule.
1192 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1194         * REVISION: Set to 2.
1196         * aclocal.m4 (GROFF_STDINT_H): Removed.
1197         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1199         * configure.ac: Updated.
1200         * configure, src/include/config.hin: Regenerated.
1202         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1203         inttypes.h conditionally.
1205 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1207 Version 1.19.1 released
1208 =======================
1210 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1212         * src/preproc/refer/label.y (same_author_last_name,
1213         same_author_name): Handle empty sort keys.
1215 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1217         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1218         tmac/TODO: Updated.
1220         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1221         doc-str-Lb-librt): Reset font.
1222         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1223         Provide `doc-str-Lb' to reset font.
1224         * tmac/groff_mdoc.man: Updated.
1226 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1228         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1229         snprintf versions which don't conform to ANSI C 99 (this is,
1230         counting the string's trailing null byte in the return value).
1232 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1234         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1235         that all implementations of sprintf handle null pointers correctly.
1237 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1239         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1240         Document `.U' register.
1242         * src/roff/troff/env.cpp (environment::mark_last_line)
1243         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1245 2004-05-04  Larry Kollar  <kollar@alltel.net>
1247         New read-only register `.U'; it returns 1 in safer mode and 0
1248         otherwise.
1250         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1251         register.
1253 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1255         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1257 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1259         * src/include/font.h (font): Use `int' for ch_index.
1260         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1261         font::compact): Updated.
1263         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1264         warnings.
1266         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1267         (hyphen_word): Fix compiler warnings.
1268         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1269         `char'.
1270         Update all callers.
1271         (get_delim_number, get_line_arg): Change second argument type to
1272         `unsigned char'.
1273         (macro_header::copy, token::next, do_define_string,
1274         do_define_character, substring_request, asciify_macro,
1275         unformat_macro, read_size, non_interpreted_node::interpret,
1276         while_request, main: Fix compiler warnings.
1277         (read_color_draw_node): Initialize `col'.
1279         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1280         `start_col' and `end_col' of type `int'.
1281         (vertical_rule): Make `col' of type `int'.
1283         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1284         for EOF.
1286         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1287         New arrays.
1288         (format_serial): Use them to remove dependency on ASCII.
1290         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1291         compiler warning.
1292         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1293         Ditto.
1295         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1296         compiler warnings.
1297         (glyph): Change type of `hpos' to `int'.
1299         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1300         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1302         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1304         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1306 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1308         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1309         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1310         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1311         `double' instead of `float' everywhere.
1312         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1313         everywhere.
1314         (main): Add return value.
1315         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1316         everywhere.
1317         Update all user functions.
1319         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1320         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1321         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1322         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1323         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1324         src/roff/troff/input.cpp, src/roff/troff/request.h,
1325         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1326         declarations.
1328         * src/utils/indxbib/signal.c: Include stdlib.h.
1330 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1332         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1333         before the first page.
1335 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1337         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1338         (doc-operating-system-*): Updated.
1339         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1340         (doc-str-Lb-*): Add more library names.
1342 2004-04-10  Art Haas  <ahaas@airmail.net>
1344         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1345         use anonymous type.
1347 2004-04-09  Art Haas  <ahaas@airmail.net>
1349         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1351 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1353         * arch/misc/shdeps.sh: Generate better comment for sed script.
1355 2004-04-08  Art Haas  <ahaas@airmail.net>
1357         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1358         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1359         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1360         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1361         (polyfill), src/preproc/grn/main.cpp (polyfill),
1362         src/preproc/refer/command.cpp (command_table),
1363         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1364         gcc 3.5 doesn't like).
1366 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1368         Removing many compiler warnings.  groff should now compile with
1369         a C++ compiler used for C files also.  [Simple variable renamings
1370         to avoid shadowing aren't logged in detail.]
1372         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1373         (draw_dvi_printer::draw) ['c']: Enclose in block.
1375         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1376         (page::add_line): Fix typos.
1377         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1379         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1380         Some local variable renamings.
1381         * src/devices/grolbp/lbp.h: Some local variable renamings.
1383         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1384         variable renamings.
1386         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1387         Remove redundant local variable declaration.
1388         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1389         Don't use `caddr_t' but `void *'.
1390         Enclose functions with `extern "C"' for C++.
1392         * src/libs/libdriver/input.cpp (remember_filename,
1393         remember_source_filename): Use cast for string constant.
1395         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1396         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1397         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1398         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1399         style.
1400         Enclose functions with `extern "C"' for C++.
1401         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1402         (needs_quoting): Return `int'.
1403         (quote_arg): Add proper casts to malloc and realloc.
1404         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1405         various MS Windows environments.
1406         (spawnvp_wrapper): Add proper cast to malloc.
1408         * src/preproc/eqn/box.h: Remove redundant declarations of
1409         `make_script_box', `make_mark_box' and `make_lineup_box'.
1410         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1411         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1412         variable renamings.
1414         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1415         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1416         (dx, dy): Renamed functions to...
1417         (deltax, deltay): This.
1418         * src/preproc/grn/main.cpp: Some local variable renamings.
1419         (deffont): Add `const'.
1420         (initpic, conv): Use cast for string constant.
1422         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1423         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1424         (char_buffer::run_output_filter): Second argument is unused.
1425         * src/preproc/html/pushback.cpp: Some local variable renamings.
1427         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1428         * src/preproc/pic/object.cpp: Some local variable renamings.
1430         * src/preproc/refer/label.y (lookup_label): Remove redundant
1431         declaration of local variable.
1433         * src/preproc/soelim.cpp: Remove redundant declaration of
1434         `interpret_lf_args'.
1436         * src/preproc/tbl/main.cpp: Some local variable renamings.
1438         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1439         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1440         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1441         Don't use C++-style comments.
1443         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1444         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1445         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1446         renamings.
1447         * src/roff/troff/div.h: Remove redundant declaration of
1448         `end_diversions'.
1449         * src/roff/troff/troff.h: Remove redundant declaration of
1450         `cleanup_and_exit'
1451         * src/roff/troff/input.cpp: Remove redundant declaration of
1452         `handle_first_page_transition' and `process_input_stack'.
1454         * src/utils/hpftodit.cpp: Some local variable renamings.
1456         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1457         for C++.
1458         Don't define RETSIGTYPE.
1459         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1461         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1462         (error): Use `const' in argument.
1463         (main): Remove redundant declaration of `optind'.
1464         Move declaration of `Version_string' to top-level.
1466         * PROBLEMS: Document difficulties compiling signal.c if a C++
1467         compiler is used for C.
1469 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1471         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1473 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1475         Make scripts like nroff.sh and neqn.sh portable across various
1476         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1477         non-POSIX path separators.  The idea is to extend those scripts to
1478         decide at run-time (of the script) which path separator to use.
1480         * arch/misc/Makefile.sub: New file.
1481         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1482         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1483         a proper definition of the variable `GROFF_RUNTIME'.
1485         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1486         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1487         (PROGDEPDIRS): New variable.
1488         `FORCE' it.
1489         (PROGDIRS): Add PROGDEPDIRS.
1491         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1492         Don't substitute @SEP@ and @BINDIR@.
1493         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1494         (PATH): Use GROFF_RUNTIME.
1496         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1497         Don't substitute @SEP@ and @BINDIR@.
1498         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1499         (PATH): Use GROFF_RUNTIME.
1501 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1503         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1504         Cygwin which doesn't handle stderr correctly.
1506 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1508         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1509         against empty argument.  Problem reported by <cgd@broadcom.com>.
1511 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1513         * Makefile.in (SEP): Replaced with...
1514         (RT_SEP, SH_SEP): Separators for the target platform's native path
1515         separator and the build environment, respectively.
1516         (fontpath, tmacpath): Use RT_SEP.
1517         (MDEFINES): Updated.
1519         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1520         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1521         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1522         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1524 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1526         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1527         reduce alignment problems with newer printers which use built-in
1528         TrueType fonts (instead of the older Intellifonts).  The ideal
1529         solution is to provide a second set of groff metric files, but this
1530         is extremely time-consuming to produce, given that HP's metric
1531         files are very rudimentary.
1533 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1535         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1536         s/operand/argument/ in error message.
1538 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1540         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1541         is in use.
1543 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1545         * tmac/s.tmac (XE): Fix error message.
1547 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1549         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1550         New macros.
1552         * src/roff/groff/pipeline.c: Declare strcasecmp.
1553         (run_pipeline) [_WIN32]: Use function name variants which don't
1554         start with `_'.
1555         Fix stream handling.
1557 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1559         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1560         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1561         for platforms which use the native Win32 runtime libraries.
1562         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1564         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1565         QUOTE_ARG_REALLOC_ERROR): Fix string.
1567         * src/preproc/html/pre-html.cpp: Remove declaration of
1568         `spawnvp_wrapper'.
1569         Don't use __MINGW32__.
1570         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1571         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1572         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1573         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1574         calls to `set_redirection' and `WAIT'.
1575         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1576         Fix calls to `set_redirection' and `save_and_redirect'.
1577         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1578         to `set_redirection' and `save_and_redirect'.
1579         (usage): Fix message.
1580         (makeTempFiles, main): Use `DEBUG_FILE'.
1582 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1584         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1586 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1588         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1589         quoting for MSVC's spawn* and exec* functions.
1590         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1591         spawnvp with proper quoting for MSVC.
1593         * src/libs/libgroff/assert.cpp (program_name),
1594         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1595         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1597         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1599         * src/include/error.h (program_name): Declare as `extern "C"'.
1600         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1602 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1604         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1605         spawnvp_wrapper.
1606         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1608 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1610         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1611         variable.
1612         (sbasename) [__MSDOS__ || ...]: New function.
1613         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1614         generic algorithm.
1615         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1616         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1617         of XXX.
1618         Use STDOUT_FILENO instead of hardcoded file handle.
1619         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1621 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1623         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1624         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1626 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1628         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1629         new font and mapping files.
1631 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1632             Keith Marshall  <keith.d.marshall@ntlworld.com>
1634         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1635         an input pipe.  This is needed for the MSVC compiler to make troff's
1636         `-o' option work.
1638         * src/roff/troff/div.cpp: Include nonposix.h.
1639         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1641 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1643         * font/devlj4/generate/special.awk: New script.
1644         * font/devlj4/generate/Makefile (S): Use special.awk.
1645         * font/devlj4/*: Regenerated, including the following new files:
1646         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1647         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1648         * NEWS: Document new lj4 fonts and revised hpftodit.
1650 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1652         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1654 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1656         * src/libs/libgroff/progname.cpp: Replaced with...
1657         * src/libs/libgroff/progname.c: New file.
1658         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1660 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1662         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1664 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1666         * font/devlj4/generate/wingdings.map,
1667         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1668         Use groff glyph names where possible.
1669         * src/devices/grolj4/lj4_font.man: Minor updates.
1671 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1673         * tmac/www.tmac (DC): Handle TTY devices.
1675         * doc/webpage.ms: Document viewCVS from ffii.org.
1676         * NEWS, README: Updated.
1678         * src/roff/groff/groff.man: Mention lj4_font man page.
1680         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1681         variables.
1682         (FONTS): Add SYMBOL and WINGDINGS.
1683         (SYMBOL, WINGDINGS): New targets.
1685 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1687         * src/devices/grolj4/lj4_font.man: New man page.
1688         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1689         * src/devices/grolj4.man: Mention lj4_font man page.
1691         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1692         * src/utils/hpftodit/hpftodit.man: Document it.
1693         (CW): New macro.
1694         Remove details about fonts (which are now in lj4_font.man).
1696         * font/devlj4/generate/symbol.map,
1697         font/devlj4/generate/wingdings.map: New files.
1699 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1701         * README: Mention ffii's viewcvs access.
1703 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1705         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1707 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1709         Revert most of the change from 2004-01-03 to better control used
1710         symbol sets.
1712         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1713         (text_symbol_sets, special_symbol_sets): New arrays.
1714         (symbol_set_table): New global variable.
1715         (read_symbol_sets): Use search order given in the text_symbol_sets
1716         and special_symbol_sets arrays.  If command line flag -a is not
1717         given, search both arrays.
1718         (output_charset): Require x_height_tag only for command line flag -i.
1720 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1722         Implement string-valued registers \n[.m] and \n[.M] to return the
1723         name of the current drawing and background color, respectively.
1725         * src/roff/troff/symbol.h: Moved to...
1726         * src/include/symbol.h: Here.
1727         Small fixes to make it work outside of the `troff' directory.
1728         * src/roff/troff/symbol.cpp: Moved to...
1729         * src/libs/libgroff/symbol.cpp: Here.
1730         Small fixes to make it work outside of the `troff' directory.
1732         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1733         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1734         Updated.
1736         * src/include/color.h: Include symbol.h.
1737         (color): Add new field `nm'.
1738         * src/libs/libgroff/color.cpp (color::color): Updated.
1740         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1741         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1742         src/roff/troff/reg.cpp: Don't include symbol.h.
1744         * src/roff/troff/env.cpp: Don't include symbol.h.
1745         (environment::get_glyph_color_string,
1746         environment_get_fill_color_string): New member functions.
1747         (init_env_requests): Handle `.m' and `.M' registers.
1748         * src/roff/troff/input.cpp: Don't include symbol.h.
1749         (default_symbol): Moved to symbol.cpp/symbol.h.
1750         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1751         to color constructor.
1752         * src/roff/troff/env.h: Updated.
1754         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1755         Document new registers.
1757 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1759         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1760         space_node::nbreaks): Protect against zero `next' field.
1762 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1764         In hpftodit, use the symbol sets offered in the TFM.
1766         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1767         (symbol_set, text_symbol_sets, special_symbol_sets,
1768         symbol_set_table): Removed.
1769         (get_printcode): Removed.
1770         (read_symbol_sets): Initialize `symbol_set' field with
1771         `NO_SYMBOL_SET'.
1772         Simplify code to just use the `kind' value.
1773         (output_charset): Improve output formatting.
1774         (dump_symbols): Simplified.
1776 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1778         * font/devlj4/generate/text.map: Add more MSL numbers.
1780 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1782         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1783         (text_symbol_sets): Add more symbol sets.
1784         (debug_flag): New static variable (moved from `main').
1785         (get_printcode, show_symset): New functions.
1786         (main): Remove `debug_flag'.
1787         (output_charset): Use `show_symset'.
1788         (dump_symbols):  Use `show_symset'.
1789         Print symsets for all glyphs.
1790         (read_map): Actually call `unicode_to_ucode_make' but this time
1791         correctly.
1793 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1795         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1796         Fix placement of comments.
1798 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1800         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1801         option `-d' is given.
1802         (output_charset): Improve warning messages to give more information.
1803         (dump_symbols): Make information more precise.
1804         (usage): Updated.
1805         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1806         appear as-is and shouldn't be decomposed.
1808 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1810         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1811         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1812         (FONTS): Add TrueType font families Arial and Times New Roman.
1813         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1814         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1815         `fl'.
1817 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1819         * test-groff.in (SEP): Quote value.
1820         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1821         `tem' to `char*' to avoid deallocation of a pointer to a constant
1822         object which some compilers don't like.
1824 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1826         * font/devlj4/generate (text.map, special.map): Rewritten to work
1827         with the new hpftodit version.
1829 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1831         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1832         set and 8bit character code for all glyphs also.
1834 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1836         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1838 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1840         More fixes for MSVC compiler.
1842         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1843         $(SEP).
1845         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1846         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1847         (getpid) [_MSC_VER]: Remove.
1848         Include direct.h and process.h conditionally.
1850         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1851         parentheses for a_delete.
1853         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1855         * test-groff: Replaced with...
1856         * test-groff.in: This new template to handle path separator
1857         properly.
1859         * configure.ac: Check for direct.h and process.h.
1860         Generate test-groff script.
1861         * configure, src/include/config.hin: Regenerated.
1863 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1865         Add integral extension glyph.
1866         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1868         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1870         * font/devps/generate/textmap: Provide entry for `integralex' to
1871         override (old) PUA value of the AGL.
1872         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1873         * font/devps/*: Regenerated.
1875         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1876         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1878 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1880         Add forgotten `coproduct' symbol (already available for DVI).
1882         * font/devhtml/R.proto, font/devps/generate/textmap,
1883         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1884         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1885         U+2210 (\[coproduct]).
1887 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1889         hpftodit has been extended to handle TrueType metric files and
1890         more glyphs.  See hpftodit.man for more details.
1892         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1893         ctype.h, and unicode.h.
1894         s/msl/charcode/ everywhere since we now handle Unicode values also.
1895         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1896         Use it where appropriate.
1897         (MULTIPLIER): Replaced with...
1898         (multiplier): New global static variable.
1899         (scale): Updated.
1900         (tag_type): Add more TFM tags.
1901         (tag_name): New array.
1902         (ENUM_TYPE, FLOAT_TYPE): Removed.
1903         (BYTE_TYPE): New value assigned.
1904         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1905         (text_symbol_sets, special_symbol_sets): Extended to cover more
1906         sets.
1907         (check_type): Add return value.
1908         (check_units): Add parameters to get ppi and upem values.
1909         Handle TrueType TFM data.
1910         (output_font_name): New function.
1911         (output_charset): Add parameter to handle TFM type.
1912         Handle TrueType TFMs also.
1913         (em_fract): New macro.
1914         (dump_tags): Be much more verbose and handle more tags.
1915         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1916         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1917         functions.
1918         (read_map): Add parameter to handle TFM type.
1919         Handle both MSL and Unicode mappings.
1920         (main): Add two new command line options `-a' and `-q'.
1921         Updated to make use of new functions.
1922         (usage): Updated.
1924         * src/utils/hpftodit/hpuni.cpp: New file.
1926         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1927         Updated.
1929 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1931         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1933 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1935         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1936         by Michail Vidiassov <master@iaas.msu.ru>.
1938 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1940         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1941         and u0049_0307.
1942         Add missing latin-2 glyphs.
1943         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1945         * tmac/troffrc: Load `composite.tmac' earlier.
1947         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1948         u00{53,73}_0327, and u0049_0307.
1949         * tmac/X.tmac: Add u00{47,67}_0306.
1950         * tmac/tty-char.tmac: Use composite glyph names for readability.
1952         * NEWS: Updated.
1954         * src/include/unicode.h: Remove `extern' keywords.
1956 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1958         * tmac/latin5.tmac: New file.
1960 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1962         Add some glyphs needed for Turkish.
1964         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1965         and u0049_0307.
1967         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1968         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1969         u00{53,73}_0327, and u0049_0307.
1971 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1973         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1974         from 2001-10-04.
1975         Remove trailing zeros.
1977 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1979         Make \? transparent to end-of-sentence recognition.
1981         * src/roff/troff/input.cc (non_interpreted_node): Add
1982         `ends_sentence' member function.
1984 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1986         * doc/groff.texinfo: Document `dt' request correctly.
1987         Other minor typographical improvements.
1989 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1991         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1993 2003-12-10  Richard Stallman  <rms@gnu.org>
1995         * LICENSE: Better wording.
1997 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1999         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2000         * configure, NEWS: Updated.
2002 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2004         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2006 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2008         * LICENSE: Updated.
2010 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2012         * INSTALL: Improved.
2014 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2016         Use path separator character of target platform for compiled-in
2017         default paths.
2019         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2020         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2021         * configure: Regenerated.
2022         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2024 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2026         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2027         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2029 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2031         * LICENSE: New file.
2033 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2035         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2036         ligatures present in AFM files since groff currently only
2037         understands some standard ligatures and nothing else.
2039 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2041         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2042         option -v is given.
2044         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2045         messages.
2046         Close stdout copy.
2047         Don't use Unix wait flags.
2049 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2051         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2052         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2053         src/roff/troff/uniuni.cpp: Moved to...
2054         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2055         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2056         src/libs/libgroff/uniuni.cpp: Here.
2058         * src/include/Makefile.sub.old (HDRS),
2059         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2060         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2062 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2064         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2065         `DEBUG_FILE'.
2066         Updated all users.
2068 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2070         * groff.texinfo: Document special behaviour of `.vs 0'.
2071         Improve documentation of `cflags' request.
2072         * NEWS: Updated.
2074 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2076         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2077         * font/devlj4/CORONET: Regenerated.
2079 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2081         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2082         if processing hyphenation patterns in traditional mode.
2083         Improve error messages.
2085 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2087         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2088         troff_output_file::put_char): Fix type of local variable `c'.
2090 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2092         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2093         declarations.
2094         (i_to_a): Removed.  libgroff already provides this function.
2095         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2097 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2099         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2100         HAVE_DECL_SYS_LIST.
2102 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2104         * COPYING: Use correct version.
2106 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2108         LynxOS 4.0.0 doesn't declare vfprintf.
2110         * configure.ac: Check for vfprintf.
2111         * configure: Regenerated.
2112         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2113         * src/include/config.hin: Regenerated.
2115 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2117         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2119         * configure.ac: Check for vsnprintf.
2120         * configure: Regenerated.
2121         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2122         `HAVE_VSNPRINTF'.
2123         * src/include/config.hin: Regenerated.
2125 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2127         * aclocal.m4: Updated syntax to autoconf 2.59.
2128         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2129         Don't check for gsos2.
2130         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2131         working abs_top_srcdir and abs_top_builddir.
2133         * configure.ac: Updated syntax to autoconf 2.59.
2134         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2135         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2136         * configure: Regenerated.
2138         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2139         s/@groff_top_builddir@/@abs_top_builddir@/.
2141         * src/roff/groff/pipeline.c (xstrsignal):
2142         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2144 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2146         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2147         make start angle smaller than end angle to circumvent a bug in tpic
2148         handling of some versions of dvipdfm (and dvipdfmx).
2150 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2152         * src/devices/grops/grops.man: Improve section on creating EPS.
2154 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2156         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2157         -P-pletter).
2159 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2161         * doc/groff.texinfo: Fix documentation of `.if'.
2163 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2165         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2166         the form `uniXXXX' also.
2168 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2170         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2171         contrib/pic2graph/pic2graph.sh: Implement secure management of
2172         temporary files.
2173         Pass `-P-pletter' to groff to avoid data outside of the converted
2174         area -- some versions of `convert' (for example 5.3.8) don't check
2175         the bounding box of the image but always use a fixed image size
2176         (letter paper format).
2177         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2178         contrib/pic2graph/pic2graph.man: Updated.
2180         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2182 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2184         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2185         troff_output::simple_ellipse, troff_output::simple_arc,
2186         troff_output::simple_line, troff_output::simple_spline,
2187         troff_output::simple_polygon): Insert a space before arguments.
2188         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2189         latter doesn't produce a node, so the following `.sp -1' would do
2190         the wrong thing.
2191         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2192         (and we don't have to care about compatibility mode).
2193         (troff_output::set_color, troff_output::reset_color): Don't emit
2194         `.sp -1' after \M and \m.
2196         * src/roff/troff/input.cpp (old_have_input): New global variable.
2197         (input_stack::get): Handle `old_have_input'.
2198         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2199         `trapping_blank_line' depending on `old_have_input', not
2200         `have_input'.
2202 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2204         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2205         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2206         default directory names for temporary files.
2207         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2209         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2210         [__MSDOS__] (run_pipeline): Honour environment variables.
2211         Don't use `tmpnam' but `tempnam' to work around messy
2212         implementation.
2214         * README.MinGW: New file.
2216 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2218         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2219         `(*t)->next' without testing validity of `*t'.
2220         (usage): Make it more readable.
2222 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2224         Make html device run under both MS-DOS and Win32.
2226         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2227         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2228         spawn or fork+exec has to be used, and whether parent must sleep
2229         until the child process terminates.  Used in
2230         `char_buffer::run_output_filter'.
2231         (copyofstdoutfd): Removed.
2232         (char_buffer): Replace `write_file_html' and `write_file_troff'
2233         member functions with `emit_troff_output' and `run_output_filter'.
2234         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2235         macros.
2236         (replaceFd): Replaced with...
2237         (set_redirection): New auxiliary function.
2238         (waitForChild): Replaced with...
2239         (save_and_redirect): New auxiliary function for.
2241         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2242         functions.
2244 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2246         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2247         (GROFF_LIBC): New function.
2248         * configure.ac: Call GROFF_LIBC.
2249         Check for `kill'.
2250         * configure: Regenerated.
2252         * src/include/lib.h: Handle __MINGW32__.
2253         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2254         Add macro for `pipe'.
2255         Define P_tmpdir.
2257         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2258         correctly.
2260         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2261         Implement.
2263 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2265         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2266         <chuq@chuq.com>.
2268         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2269         directory.
2271 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2273         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2274         src/roff/troff/input.cc (usage): Updated.
2276         * NEWS, doc/groff.texinfo: Updated.
2278 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2280         * src/libs/libgroff/searchpath.cpp
2281         (search_path::open_file_cautious): New function which also handles
2282         `-' as stdin and stdout depending on the access mode.
2283         * src/include/searchpath.h (search_path): Updated.
2285         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2286         * src/devices/grops/ps.h: Include `searchpath.h'.
2287         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2288         Open resource file with `include_search_path.open_file_cautious'.
2289         * src/devices/grops/grops.man: Document new `-I' switch.
2291         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2292         (main), src/devices/grolj4/lj4.cpp (main),
2293         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2295         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2296         Replaced with...
2297         (include_search_path): New global variable.
2298         (include_path_append): Removed.
2299         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2300         (do_file): Simplify, using new
2301         `include_search_path.open_file_cautious'.
2303         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2304         parameter.
2305         (main): Pass arguments to `-I' to both troff and devices.
2306         Improve handling of `-V'.
2307         * src/roff/groff/groff.man: Document changes to -I and -V.
2309         * src/roff/troff/input.cpp (include_search_path): New global
2310         variable.
2311         (next_file, source, ps_bbox_request, transparent_file,
2312         process_input_file): Use new
2313         `include_search_path.open_file_cautious'.
2314         (main) Handle `-I' switch.
2315         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2316         Use new `include_search_path.open_file_cautious'.
2317         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2318         * src/roff/troff/troff.man: Document new `-I' switch.
2320 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2322         Support multiple calls of .Lb in LIBRARY section.
2324         * tmac/doc-common (doc-in-library-section): New register.
2325         (doc-section-library): New string.
2326         (Sh): Set `doc-in-library-section'.
2327         (Rd): Updated.
2328         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2329         if in LIBRARY section.
2330         * tmac/doc.tmac (doc-save-global-vars): Updated.
2331         * NEWS, tmac/groff_mdoc.man: Updated.
2333 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2335         * tmac/doc-common (doc-default-operating-system): New variable.
2336         (Os): Use it.
2338 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2340         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2342 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2344         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2345         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2346         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2347         $(DEVFILES) are not empty.
2348         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2350 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2352         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2353         with parallel runs of `make'.
2355 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2357         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2358         insert SORT_SEP.  With certain combinations of sort specifications,
2359         refer sorted entries in the wrong order.  In particular, entries
2360         with a missing field should be be sorted before all entries that
2361         have that field, before refer looks to the next field.
2363 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2365         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2366         g++ linker is used.  Reported by Mark J. Reed
2367         <mark.reed@turner.com>.
2369 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2371         Add key character `x' to tbl which makes tbl call a user-defined
2372         macro on a table cell.
2374         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2375         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2376         `set_modifier' after printing the compatibility request.
2377         (set_modifier): Print call to `m->macro' if not empty.
2378         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2379         `macro'.
2380         (process_format): Implement cases `x' and `X'.
2381         * src/preproc/tbl/tbl.man, NEWS: Updated.
2383 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2385         * doc/groff.texinfo: Minor fixes.
2387 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2389         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2391 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2393         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2394         argument list to nothing if there is no file to match.  Use `ls' as
2395         a protection, similar to autoconf.
2397         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2398         empty argument lists.
2400         * doc/groff.texinfo: Improve documentation how vertical spacing
2401         and line breaks interact.
2402         Other minor fixes.
2404         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2406 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2408         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2409         EPS (using eps2eps or similar programs to compute the bounding box).
2411 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2413         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2414         * doc/texinfo.tex: Updated from texinfo 4.6.
2415         * README.CVS: From now on we need texinfo 4.6.
2417 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2419         Add requests `dei1' and `ami1' for completeness.
2421         * src/roff/troff/input.cc (calling_mode): Remove
2422         CALLING_DISABLE_COMP.
2423         (comp_mode): New enumeration.
2424         (do_define_string, define_string, define_nocomp_string,
2425         append_string, append_nocomp_string): Updated.
2426         (do_define_macro): Add third parameter.
2427         (define_macro, define_nocomp_macro, define_indirect_macro,
2428         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2429         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2430         functions.
2431         (ignore): Updated.
2432         (init_input_requests): Add `dei1' and `ami1'.
2434         * tmac/trace.tmac: Handle de1 and am1.
2435         (de): Improve tracing message.
2436         (am): Add missing `do'.
2437         (return): Use de1.
2439         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2440         Document new requests.
2442 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2444         Add option -G to .MPIMG to insert a gap between text and the image.
2446         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2447         www-finish-left-ll): Updated.
2448         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2449         (MPIMG): Make option -L and -R optional.
2450         Implement option -G.
2452 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2454         * src/devices/grohtml/post-html.cpp
2455         (html_printer::do_file_components): Don't use `stdout' as lvalue
2456         since it can be a macro.
2458 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2460         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2461         the corresponding test in aclocal.m4.
2463 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2465         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2466         names but RGB values directly.  Otherwise pnmtopng depends on
2467         an external file `rgb.txt' which maps colour names to values.
2469 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2471         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2472         * configure, src/include/config.hin: Regenerated.
2474         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2476 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2478         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2480 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2482         * *.man: Switch to non-compatibility mode temporarily if GNU
2483         syntax extensions are used in the particular man page.
2485         * PROBLEMS: Add solutions for SGR problems.
2487 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2489         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2490         used to change the drawing scheme.
2492         * src/devives/grotty/tty.cpp (bold_flag_option,
2493         underline_flag_option, italic_flag_option, reverse_flag_option,
2494         bold_underline_mode_option): New global variables.
2495         (update_options): New function.
2496         (tty_printer::special): Call update_options.
2497         (main): Don't set xxx_flag but xxx_flag_option, then call
2498         update_options.
2500 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2502         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2504         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2505         values.
2506         (hline_char, vline_char): New global variables.
2507         (tty_printer::tty_printer): Initialize them.
2508         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2509         horizontal and vertical lines.
2510         (crossings): New global array.
2511         (tty_printer::end_page): Use it to determine the proper crossing
2512         character for -Tutf8.
2514 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2516         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2517         (HTMLDOCFILES): Revert to `pic.html'.
2518         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2520 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2522         * doc/pic.ms: Improve documentation of absolute coordinates.
2523         Document absolute positioning of pictures.
2525         * NEWS: Add new pic capability.
2527 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2529         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2530         Rewritten.
2532 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2534         Implement support for dashed and dotted ellipses in pic.  Based on
2535         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2537         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2538         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2539         functions.  Ellipse arcs are approximated with circle arcs.
2540         * src/preproc/pic/common.h (common_output): Updated.
2541         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2542         functions.
2543         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2545         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2547 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2549         Make grotty work on platforms which have unsigned char as the
2550         default for char.  Based on a patch by Thomas Klausner
2551         <wiz@netbsd.org>.
2553         * src/devices/grotty/tty.cpp (schar): New typedef.
2554         Updated calls to declare_ptable and implement_ptable.
2555         (glyph): Use schar for back_color_idx and fore_color_idx.
2556         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2557         (tty_printer::tty_color, tty_printer::tty_printer,
2558         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2560 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2562         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2563         * src/roff/nroff/nroff.man: Updated.
2565 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2567         * NEWS, tmac/groff_www.man: Updated.
2568         * doc/Makefile.sub: Updated.
2570 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2572         Implement support for multiple HTML output files.
2574         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2575         -j command line option.
2577         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2578         global variables.
2579         (file): New fields `new_output_file', `require_links',
2580         `output_file_name'.
2581         (file::file): Updated.
2582         (files::set_file_name, files::set_links_required,
2583         files::are_links_required, files::is_new_output_file,
2584         files::file_name, files::next_file_name): New functions.
2585         (header_desc): New fields `no_of_level_one_headings',
2586         `header_filename'.
2587         (header_desc::header_desc): Updated.
2588         (header_desc::write_headings): Handle multiple files.
2589         (html_printer::write_header): Save file name in which header occurs.
2590         (html_printer::determine_header_level): Possibly split files on
2591         level one headings.
2592         (html_printer::do_links, html_printer::troff_tag): Updated.
2593         (html_printer::insert_split_file, html_printer::do_job_name,
2594         html_printer::emit_link, html_printer::write_navigation,
2595         html_printer::do_file_components): New functions.
2596         (html_printer::~html_printer): Handle multiple files.
2597         (main): Handle command line option `-j'.
2599         * src/devices/grohtml/grohtml.man: Updated.
2601         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2602         which splits file.
2604         * tmac/www.tmac (JOBNAME): New macro.
2605         * tmac/s.tmac (SH-NO-TAG): New macro.
2606         (@SH): Call SH-NO-TAG.
2607         (@NH): Updated.
2609 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2611         * tmac/groff_mdoc.man: Improve documentation of punctuation
2612         characters.
2614 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2616         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2618 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2620         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2622 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2624         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2625         after `/*' and `*/'.
2626         Fix spacing.
2627         (Fn, Fo): Reduce indentation in synopsis.
2629         * tmac/doc-common (doc-check-depth): New macro.
2630         (doc-end-macro, Sh, Ss): Use it.
2631         (Cd): Fix behaviour in synopsis.
2632         (In): Make it parsed and callable.
2633         If not in the synopsis, represent the C header file enclosed in
2634         angle brackets.
2635         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2636         Use minus, not hyphen.
2638         * tmc/groff_mdoc.man: Updated.
2640 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2642         Integrated grap2graph, contributed by Eric S. Raymond.
2644         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2645         New files.
2646         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2647         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2649 2003-07-01  Colin Watson  <cjwatson@debian.org>
2651         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2652         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2654 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2656         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2658 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2660         * doc/Makefile.sub (CLEANADD): Remove all files created by
2661         running `make groff.{pdf,dvi}'.
2663         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2664         src/xditview also.
2666 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2668         * Makefile.in (SHELL): Define as @SHELL@.
2669         (mkinstalldirs): Use $(SHELL).
2670         (MDEFINES): Add $(SHELL).
2671         * Makefile.comm (SHELL): Removed.
2673 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2675         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2676         The X11 documentation files use them.
2677         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2679 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2681         * tmac/e.tmac (@C): Handle .ad also.
2683 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2685         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2687         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2688         Assign `n' even here.  It is possible to construct a node
2689         immediately following an escape character:
2691           .di xx
2692           \?\\\?a
2693           .br
2694           .di
2695           .xx
2697 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2699         * README.WIN32: Removed.
2700         * MANIFEST: Updated.
2702 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2704         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2706 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2708         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2709         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2711 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2713         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2714         is done by the calling function.
2716 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2718         * tmac/X.tmac: Fix definition of `em'.
2720 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2722         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2723         argument.
2725 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2727         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2728         to make items work which consist only of a tag.
2730 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2732         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2733         aren't stretched in a tag (this can fail with unformatted boxes).
2734         Instead, insert a break and go back one line.
2736 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2738         * src/roff/troff/input.cc (return_macro_request): If called with
2739         argument pop macro twice.  We need this to trace `return'.
2741         * tmac/trace.tmac: Handle `return'.
2742         Fix typos.
2744         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2745         Document.
2747 2003-05-15  Larry Kollar  <kollar@alltel.net>
2749         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2750         registers `FPS', `FVS', and `FPD'.
2752 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2754         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2755         correctly.
2757 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2759         * tmac/groff_mdoc.man: Slight improvements.
2761 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2763         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2764         `doc-header-space' after header line if register `cR' is set.
2766 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2768         * TODO: Updated.
2770 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2772         * tmac/doc-common (Nd): Use \[em].
2774 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2776         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2777         doc-footer-space): Initialize to 0.5i.
2778         (doc-setup-page-layout): Don't set doc-header-space and
2779         doc-footer-space.
2781 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2783         * REVISION: Set to 1.
2785         * doc/pic.ms: Document possible problems with `figname'.
2787 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2789 Version 1.19 released
2790 =====================
2792         * VERSION: Set to 1.19.
2793         * REVISION: Set to 0.
2794         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2796         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2797         Define charset as `US-ASCII' in html output.
2799         * tmac/www.tmac (ULE): Add missing scaling indicator.
2801         * win32-diffs: Removed.
2803 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2805         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2806         `.da' and `.boxa'.
2807         Document how to insert discardable whitespace with `.ss'.
2809 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2811         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2812         work with plain TeX also.
2814         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2816 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2818         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2819         Use a loose DTD.
2821 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2823         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2824         vbox with positive height and zero depth if in TeX mode.
2826         * NEWS: Document glyph name changes for grodvi and grolj4.
2828 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2830         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2831         * doc/pic.ms: Fixed.
2833 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2835         HP-UX 10.20 has `snprintf' but it isn't declared.
2837         * configure.ac: Add declaration test for snprintf.
2838         * configure: Regenerated.
2839         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2840         * src/include/config.hin: Regenerated.
2842 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2844         Add keyword `figname' to pic, specifying the name of the picture
2845         box in TeX mode.  Based on a patch from William J Poser
2846         <wjposer@unagi.cis.upenn.edu>.
2848         * src/preproc/pic/pic.y: New token `FIGNAME'.
2849         (macro_name): New rule of type <str>.
2850         (placeless_element): Handle `FIGNAME'.
2851         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2852         * src/preproc/pic/main.cpp (graphname): New global variable.
2853         (do_picture): Initialize `graphname'.
2854         * src/preproc/pic/pic.h: Updated.
2855         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2856         `graphname'.
2857         Simplify TeX code.
2858         (tex_output::text): Beautify output.
2859         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2860         `shaded' and `outlined' unconditionally.
2861         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2862         Minor improvements.
2864         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2865         greater is necessary.
2867 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2869         Add option -r to soelim to avoid emission of `.lf' lines.
2870         Add option -t to produces TeX comment lines instead of `.lf' lines.
2872         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2873         and `tex_flag'.
2874         (usage): Updated.
2875         (main): Handle `-r' and `-t'.
2876         (set_location): Handle `raw_flag' and `tex_flag'.
2877         * src/preproc/soelim/soelim.man, NEWS: Updated.
2879 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2881         * tmac/hyphenex.sh: Replaced with...
2882         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2883         nightmares.
2885         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2886         if --quiet is used for the configure script.
2887         * configure: Regenerated.
2889 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2891         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2892         Add `const' to second argument.
2893         (html_printer::add_table_end): Add `const' to argument.
2894         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2895         `const' to arguments.
2896         * src/devices/grohtml/html-text.h: Updated.
2898         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2899         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2900         argument.
2902         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2903         cast for integer constant.
2905         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2906         (writeNbytes): Add `const' to first argument.
2907         (writeString): Add `const' to argument.
2908         (char_buffer::can_see): Add `const' to third argument.
2909         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2910         `const' to argument.
2911         * src/preproc/html/pushback.h: Updated.
2913         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2914         (include_path_append): Add `const' to argument.
2915         (do_file): Updated.
2917         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2918         for `value'.
2919         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2920         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2921         for `value'.
2922         (unicode_decompose_init::unicode_decompose_init): Updated.
2923         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2924         for `value'.
2925         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2926         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2927         argument.
2929         * tmac/hyphenex.sh: Make script more portable by using a here
2930         document.
2932 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2934         Renamed all `*.cc' files to `*.cpp'.
2935         Updated all configuration files, makefiles, and documentation.
2937 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2939         * tmac/hyphenex.sh: Slight improvements.
2941 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2943         * font/devascii/R.proto, font/devcp1037/R.proto,
2944         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2945         character slots with unnamed glyphs.
2947         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2948         (an-first): New global variable.
2949         (an-header): Emit vertical space between multiple man pages.
2951 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2953         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2954         values.
2956 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2958         * PROBLEMS: Revised.
2960 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2962         * doc/webpage.ms: Improved.
2964 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2966         Add register \n[.height] which returns the value of \H.
2967         Add register \n[.slant] which returns the value of \S.
2969         * src/roff/troff/env.cc (init_env_requests): Implement.
2970         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2971         Document.
2973 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2975         * tmac/html.tmac: Move some of the data into html-end.tmac.
2976         Remove most of the character translations for eqn since html fonts
2977         now cover those characters.
2978         Load www.tmac.
2979         * tmac/html-end.tmac: New file.
2980         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2981         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2982         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2984 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2986         * man/groff_out.man: Document negative values of `N' if -Thtml is
2987         used.
2989 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2991         * Makefile.comm (depend.temp): Check location of YTABC.
2993 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2995         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2996         binary path.
2997         (groff_bin_path): Rename to GROFF_BIN_PATH.
2998         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2999         * doc/Makefile.in (TROFFBIN): New variable for troff
3000         binary path.
3001         (GROFFBIN): New variable for groff binary path.
3002         (groff_bin_path): Rename to GROFF_BIN_PATH.
3003         (TROFF): Use TROFFBIN.
3004         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3005         * doc/Makefile.sub (GROFFBIN): New variable for groff
3006         binary path.
3007         (groff_bin_path): Rename to GROFF_BIN_PATH.
3008         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3010         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3011         with INSTALL_SCRIPT.
3012         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3013         * Makefile.dev (all): Depend on DEVSCRIPTS.
3014         (install_dev): Likewise.
3015         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3016         scripts.
3017         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3018         (DEVGENSCRIPTS): New variable to hold generated scripts.
3020 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3022         * src/libs/libdriver/input.cc (IntArray::operator[],
3023         IntArray::get_data): Remove meaningless `const' in return value.
3025         * README.CVS: New file.
3027 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3029         Check for stdint.h in C++, not in C.
3031         * aclocal.m4 (GROFF_STDINT_H): New function,
3032         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3033         AC_CHECK_HEADERS.
3034         * configure, src/include/config.hin: Regenerated.
3035         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3038         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3039         with a negative value, representing the width of the unbreakable
3040         space (only for -Thtml).  grohtml then converts this back to
3041         &nbsp; and uses the value of N as its width.
3043         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3044         unbreakable_space_node::tprint): Emit `N-<width>'.
3045         * src/include/printer.h (printer::set_numbered_char): Make it
3046         virtual.
3047         Make members `font_table' and `nfonts' protected instead of private.
3048         * src/devices/grohtml/post-html.cc
3049         (html_printer::set_numbered_char): New member function.
3052         * src/libs/libgroff/maxfilename.cc:
3053         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3055         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3056         emit word marker.
3058 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3060         * man/roff.man: Small fixes.
3062 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3064         Make groff independent from locale's numeric settings.
3066         * configure.ac: Check for `setlocale'.
3067         * configure, src/include/config.hin: Regenerated.
3069         * src/include/lib.h: Handle HAVE_SETLOCALE.
3071         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3072         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3073         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3076         * doc/groff.texinfo: Change dir category to `Typesetting'.
3077         (Man font macros): Mention that there is no space between arguments
3078         of .BI and friends.
3080         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3081         (*printer::change_color, *printer::change_fill_color): Add missing
3082         `const'.
3084 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3086         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3087         html_table::is_gap): Compute table widths after converting border
3088         positions to avoid rounding errors.
3090 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3092         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3093         `space_emitted' properly.
3095 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3097         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3098         (html_table::set_linelength): Don't add 1.
3099         (html_table::add_indent): Don't subtract 1.
3101         * tmac/html.tmac: Set default page offset to zero.
3103 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3105         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3107         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3108         unbreakable_space_node::tprint): New functions.
3109         (troff_output_file): Make space_char_hmotion_mode::tprint and
3110         unbreakable_space_node::tprint to friends.
3111         * src/roff/troff/node.h: Updated.
3113         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3114         in the HTML standard).
3116 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3118         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3119         Otherwise, the following code
3121           .di xxx
3122           .ps 10
3123           a
3124           .br
3125           .di
3126           x\*[xxx]
3128         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3129         font changes in diversions for -Thtml.
3131         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3132         `HTML-TAG'.
3133         (an-do-tag-html): Merge with ...
3134         (an-do-tag): This macro.
3135         Change code slightly to circumvent grohtml bug.
3136         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3138         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3139         html_table::is_gap): Round `width' properly.
3141         * tmac/html.tmac: Provide some default layout parameters for
3142         grohtml.
3144         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3145         command.
3147 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3149         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3151 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3153         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3154         defined.
3156 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3158         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3159         `.vs'.
3160         * doc/groff.texinfo: Updated.
3162 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3164         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3165         TOKEN_END_TRAP>: Reset `have_input'.
3167 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3169         * src/roff/groff/groff.man: Mention groff_trace man page.
3171 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3173         * Makefile.in (LIBEXT): New variable to indicate the file extension
3174         of library files.  Computed heuristically from $(OBJEXT).
3175         (MDEFINES): Add $(LIBEXT).
3176         * Makefile.lib, Makefile.comm: Use it.
3178         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3179         overlong lines into smaller chunks.
3180         (get_binary): New function.
3181         (main): Use them.
3182         * src/utils/pfbtops/pfbtops.man: Updated.
3184 2003-03-15  Colin Watson  <cjwatson@debian.org>
3186         * src/roff/groff/groff.man: Minor syntax fix.
3188 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3190         * src/devices/grops/ps.cc (ps_printer::media_set,
3191         ps_printer::~ps_printer): Handle zero paper width and length.
3193 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3195         Add options -p and -l to grodvi.
3197         * src/devices/grodvi/dvi.cc: Include paper.h.
3198         (landscape_flag, user_paper_length, user_paper_width): New global
3199         variables.
3200         (dvi_printer::begin_page): Emit `papersize' special.
3201         Set color after initialization of `cur_h' and `cur_v'.
3202         (main): Add options `-l' and `-p'.
3203         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3204         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3206         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3208 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3210         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3211         * man/groff_tmac.man: This man page.
3212         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3213         deprecated.
3215         * tmac/X.tmac: Don't load pspic.tmac.
3217 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3219         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3220         by Bernd Warken <bwarken@mayn.de>.
3222         * src/include/driver.h (pr): Removed.
3224         * src/libs/libdriver/input.cc (pr): New global variable.
3225         (do_file): Deallocate `pr'.
3226         * src/libs/libdriver/printer.cc (pr): Removed.
3228         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3229         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3230         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3231         (main): Don't delete `pr'.
3233 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3235         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3236         * tmac/papersize.tmac: New file.
3237         * tmac/troffrc: Include `papersize.tmac'.
3238         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3239         * tmac/an-old.tmac: Set LT to LL by default.
3241         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3242         doc/groff.texinfo: Updated.
3244         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3245         bug which caused all odd iso papers to have wrong dimensions.
3247         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3248         (main) <'p'>: Set `user_paper_width' also.
3249         (ps_printer::media_width, ps_printer::media_height): Use values
3250         given with option `-p'.
3252 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3254         * src/include/nonposix.h: Provide default for SET_BINARY.
3256         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3257         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3258         unconditionally.
3260         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3261         (main): Treat \r\n as \n.
3263 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3265         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3266         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3268 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3270         Added support to access more than 256 glyphs in Type 1 fonts.
3272         * src/devices/grops/ps.cc (subencoding): New structure.
3273         (style): Add `sub' field.
3274         Updated all users.
3275         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3276         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3277         functions.
3278         Updated all users.
3279         (ps_printer::set_char): Use `set_subencoding'.
3280         (make_subencoding_name): New function.
3281         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3282         (ps_printer::~ps_printer): Emit subencoding definitions.
3284         * src/devices/grops/psrm.cc (valid_input_table): New array to
3285         properly support EBCDIC.
3286         (white_space): Add `\f'.
3287         (ps_get_line): Change first argument to be of type `string &'.
3288         Updated all callers.
3289         This allows to get lines of arbitrary length.
3290         Use `valid_input_table'.
3291         Remove warning about non-conforming PS line length.  This seems
3292         not to be of great importance -- for example, dvips don't emit
3293         a warning either.
3294         (PS_LINE_MAX): Removed.
3295         (matches_comment): Change first argument to be of type `string &'.
3297         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3299         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3300         %AGL_to_unicode, %default_ligatures): New hash tables.
3301         Read all map entries.
3302         Add unencoded characters.
3303         Check for default ligatures if there are no `L' entries.
3304         Print all kern entries.
3305         Print all characters in charset.
3306         * src/utils/afmtodit/afmtodit.man: Updated.
3308         * font/devps/*: Regerated all fonts.
3310         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3311         of characters, just use `.trin'.  Otherwise the mapping depends
3312         on the font encoding.
3313         * tmac/ps.tmac: Add `fi' and `fl'.
3314         Improve `Fi' and `Fl'.
3315         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3316         * tmac/Xps.tmac: Fix `em'.
3318         * NEWS: Updated.
3320 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3322         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3323         `have_input'.
3325 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3327         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3329         * font/devps/generate/textmap: Remove entry `similarequal'.
3330         * font/devps/symbolmap: Updated.
3332 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3334         * src/libs/libgroff/font.cc (font::load): Fix error message for
3335         bad character type.
3337         * src/devices/grops/grops.man: Improve documentation of the -b
3338         flag.
3340         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3341         `ascii' and `cp1047'.
3343 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3345         Document composite glyphs and the `composite' request.
3347         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3349 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3351         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3352         * font/devdvi/*EC: Updated.
3354         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3355         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3356         * tmac/troffrc: Load `composite.tmac'.
3357         * tmac/Makefile.sub (NORMALFILES): Updated.
3359         * doc/groff.texinfo (Input Encodings): New section.
3360         * NEWS: Updated.
3362 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3364         * doc/texinfo.tex: New version 2003-02-11.06.
3366         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3367         * tmac/groff_mdoc.man: Fix description of `Dt'.
3369 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3371         * font/devps/prologue.ps: Fix for included Postscript that does
3372         a setpagedevice -- which is now safely ignored.
3374         * NEWS: Updated.
3376         * src/devices/grops/ps.cc: Now sets the page size in the generated
3377         document.  This is done in two ways: Via a %%-comment for gv and
3378         the like, and via a PageSize and setpagedevice for programs that
3379         understands Postscript proper, like ps2pdf.
3381         * src/devices/grops/ps.h: New broken-flag to avoid page size
3382         definition, if required.
3384         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3386         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3387         Not really necessary due to the fix in prologue.ps, but cleaner:
3388         Such information does not belong in an .eps file.
3390         * doc/Makefile.sub: See doc/Makefile.in.
3392 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3394         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3395         instead of P1 since the latter is broken in some versions of netpbm.
3396         * configure: Updated.
3398 2003-02-26  Larry Kollar  <kollar@alltel.net>
3400         Make man pages more customizable.
3402         * tmac/an-old.tmac (FT): New register holding footer distance from
3403         bottom.
3404         (HF): New string holding the default heading font.
3405         (TH): Handle registers `IN' and `SN' set on the command line.
3406         Use `FT'.
3407         (PT, BT): New strings to customize header and footer lines.
3408         (an-header, an-footer): Use them.
3409         (SH, SS): Use `HF'.
3410         * tmac/groff_man.man: Document changes.
3412         * doc/groff.texinfo: Document man changes.
3413         Document Ultrix extensions of man.
3415 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3417         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3418         `have_input' after changing back to old environment.
3420         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3421         function up to be defined before first call.  This is necessary to
3422         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3424         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3425         the default font directory also.  Based on a patch from James
3426         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3427         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3428         * src/utils/afmtodit/afmtodit.man: Document it.
3430         * NEWS: Updated.
3432         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3434 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3436         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3437         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3438         * configure.ac: Use it.
3439         * configure: Regenerated.
3440         * Makefile.in: Updated.
3442         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3443         (CLEANADD): Add www.tmac-sed.
3444         (pnmtops_nosetpage): Define default.
3445         (install_data): Handle www.tmac-sed and substitute
3446         @PNMTOPS_NOSETPAGE@.
3447         (stamp-sed): Add www.tmac.
3448         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3449         It now breaks URLs at suitable places.
3450         (www:substring_ok): New register set by...
3451         (www:@test_substring): New macro.
3452         (www:error): New alias to www-error.
3453         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3454         New macros.
3455         (URL): Use www:url_breaks.
3456         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3457         (CDS, CDE): New macros.
3459 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3461         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3462         buffer overflow.
3464 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3466         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3467         can be negative also.
3469         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3470         `int16'.
3471         (read_char_table): Avoid negative ascenders.
3472         (output_charset): Add cast.
3473         * font/devlj4/*: Regenerated.
3475         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3476         possible.
3478         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3479         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3480         of `<>'.
3481         * font/devdvi/*: Regenerated.
3483         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3484         normal width, while the previously used characters (U+2329 and
3485         U+232A) are classified as wide due to canonical equivalence with the
3486         CJK punctuation characters U+3008 and U+3009.
3488         * font/devutf8/R.proto: Updated.
3489         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3491         * man/groff_char.man: Simplify handling of table traps by
3492         introducing `start block' and `end block' macros.
3493         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3494         (DL): Make it work with Unix troff also.
3495         Fix code values of `la' and `ra'.
3497         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3499 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3501         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3502         New destructor, fixing a major memory leak.
3504 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3506         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3507         to be in conformance with Unicode 3.0 and newer.
3509         * font/devlj4/generate/text.map: Add `Eu'.
3510         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3511         * font/devlj4/S: Regenerated.
3513         * man/groff_char.man: Completely rewritten.
3515         * doc/groff.texinfo: Fix description of request and macro arguments.
3517 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3519         Valgrind fixes.
3521         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3522         Deallocate `columns' list.
3523         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3524         New destructor.
3525         (text_glob::text_glob_html, text_glob::text_glob_special,
3526         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3527         text_glob::text_glob_tag): Avoid memory leaks.
3528         (text_glob::remember_table): Free memory before reassigning.
3530 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3532         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3533         alias `hbar'), the Planck constant over two pi.
3535         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3536         `+e' for position 34.
3537         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3538         `u2662' and `u2661'.
3539         * font/devdvi/{MI,S}: Regenerated.
3540         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3541         * font/devlbp/*: Add `hbar' alias.
3542         * font/devlj4/generate/special.map: Ditto.
3543         * font/devlj4/S: Regenerated.
3544         * font/devps/generate/symbolchars: Add `+e'.
3545         * font/devps/generate/textmap: Fix PS name for `-h'.
3546         Add `hbar' alias.
3547         * font/devps/symbolmap: Regenerated.
3549         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3551         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3552         `-h', `hbar'.
3553         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3554         `-h'.
3556         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3557         `hbar'.
3558         * tmac/tty-char.tmac: Add `+e'.
3560 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3562         Another round trying to really fix problems with `have_input'.
3564         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3565         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3567         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3568         handling if both foreground and background colors are default.
3570         * doc/groff.texinfo (Debugging): Document .lf differences to
3571         AT&T troff.
3573 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3575         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3576         null-bytes in created string.
3578         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3579         alias_macro, lookup_request): Improve warning messages.
3581         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3582         not `strdup'.
3583         Free `last_image_filename'.
3585         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3586         `buffer'.
3587         (imageList::createPage, imageList::createImage): Use `free', not
3588         `a_delete'.
3589         (imageItem::~imageItem): Free `imageName'.
3590         (addRegDef): Use `strsave', not `strdup'.
3591         (get_resolution): Free `pathp'.
3593 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3595         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3596         to `dummy'.
3598 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3600         Add memory management for colors to deallocate unnamed colors
3601         properly.
3603         * src/include/color.h (color): New members `free_list' and `next'.
3604         New member functions `new' and `delete'.
3605         Add destructor.
3606         * src/libs/libgroff/color.cc: Implement it.
3608         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3609         for array size of new operator.
3611         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3612         redundant comparison.
3614         * src/roff/troff/input.cc (word_space_node::reread,
3615         hmotion_node::reread): Avoid warning about unused parameter.
3616         (reset_output_registers): Remove redundant parameter.
3617         (define_color): Undo change 2003-02-12.
3619         * src/roff/troff/reg.h: Updated.
3621         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3622         output_file::put_filename, real_output_file::really_put_filename,
3623         ascii_output_file::really_print_line,
3624         break_char_node::get_hyphen_list): Avoid warning about unused
3625         parameter.
3626         (suppress_node::tprint): Updated.
3628         * configure.ac: Check declaration for rand() and srand().
3629         * configure: Regenerated.
3631         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3632         conditionally.
3633         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3634         and srand().
3636         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3637         to avoid compiler warnings.
3639         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3640         unused.
3642         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3643         is unused.
3644         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3645         (unused) parameter.
3646         Updated all callers.
3648         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3649         is unused.
3650         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3651         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3653         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3654         Parameter is unused.
3655         (html_printer::add_table_end): Define parameter conditionally.
3656         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3657         is unused.
3659         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3660         (lbp_printer::set_char): Last parameter is unused.
3662         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3664 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3666         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3667         Make \D'f ...' move horizontally again for backwards compatibility.
3668         Replace it with \D'Fg ...' where appropriate to avoid dependency
3669         on horizontal resolution.
3671         * src/roff/troff/input.cc (do_get_long_name): New function.
3672         (get_long_name): Call it.
3674         (read_draw_node): Handle `\D'Fx ...' by calling ...
3675         (read_color_draw_node): New function.
3677         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3678         `end'.
3679         Pass it to `do_get_long_name' which is used instead of
3680         `get_long_name'.
3682         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3683         unnecessary value guard.
3684         (parse_D_command) <'f'>: Add horizontal shift.
3686         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3687         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3688         (FILL_MAX): Removed.
3690         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3691         Updated.
3693 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3695         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3696         do_zero_width): Push `\n' if closing delimiter is missing.
3698         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3699         <'F'>: Make \F non-transparent at the beginning of line.
3700         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3701         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3702         `have_input'.
3704         (define_color): Free color in case of reassignment.
3706         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3707         @DefescListEnd): Use @Var, not @var.
3708         Fix all calls.
3710         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3712         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3713         `shaded' and `outlined' arrays.
3714         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3715         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3716         Use strsave.
3717         (closed_object::set_fill_color): Ditto.
3718         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3719         instead of strdup.
3720         (troff_output::reset_color): Use a_delete instead of free.
3721         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3723 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3725         * doc/groff.texinfo: Improve documentation of `ad'.
3726         Document that \D'f...' is dependent on the horizontal resolution.
3727         * man/groff_diff.man: Improve documentation of \D'f...'.
3729         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3730         compensating \h'...' for \D'f ...' since the latter no longer moves
3731         current position.
3732         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3734 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3736         Improve error messages for `x F' (and `F') commands.
3738         * src/include/error.h: Add declaration for
3739         `current_source_filename'.
3740         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3741         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3742         parameter for source file string.
3743         Updated all callers.
3745         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3746         (remember_source_filename): New function.
3747         (parse_x_command <'F'>, do_file <'F'>): Use it.
3749 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3751         Make grotty not emit warnings about unknown colors more than
3752         necessary.
3754         * src/devices/grotty/tty.cc: Include `ptable.h'.
3755         (TTY_MAX_COLORS): Removed.
3756         (DEFAULT_COLOR_IDX): Defined to -1.
3757         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3758         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3759         Change `tty_colors' to be a ptable.
3760         First arg of `put_color' is now `char'.
3761         New functions `make_rgb_string' and `tty_color'.
3762         (tty_printer::tty_printer): Use `tty_color'.
3763         (tty_printer::color_to_idx): Return value is now `char'.
3764         Use `tty_color'.
3766         * src/include/color.h (color): Add `print_color' member function.
3767         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3769 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3771         Valgrind fixes.
3773         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3774         encoding file.
3776         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3777         assume that value has been allocated with `new[]', thus use
3778         `a_delete' for deallocation.
3780         * src/libs/libdriver/input.cc (get_integer_arg,
3781         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3782         where appropriate.
3784         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3785         * src/libs/libgroff/nametoindex.cc
3786         (character_indexer::named_char_index): Use `new <type>[1]'.
3788         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3789         <type>[1]'.
3790         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3791         (split_text): Use `a_delete'.
3793         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3794         <type>[1]'.
3796         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3797         harmless memory leak.
3798         (hyphen_trie::read_patterns_file): Initialize `buf'.
3799         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3800         Initialize `current_fill_color'and `current_glyph_color'.
3801         * src/roff/troff/glyphuni.cc
3802         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3803         * src/roff/troff/uniuni.cc
3804         (unicode_decompose_init::unicode_decompose_init): Ditto.
3805         * src/roff/troff/uniglyph.cc
3806         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3808 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3810         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3811         `access' before calling `unlink'.
3812         (do_file): Handle __EMX__.
3814         * src/include/nonposix.h: Handle __EMX__.
3816         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3817         (fontpath,tmacpath): Use it.
3818         (MDEFINES): Add it.
3819         Sorted alphabetically.
3821         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3822         @SEP@.
3823         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3824         @SEP@.
3826 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3828         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3829         New files, copied from gnulib.
3830         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3831         * configure.ac: Updated.
3832         * configure: Regenerated.
3834         * src/include/config.hin: Regenerated.
3835         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3836         Don't define `strcasecmp' as `strcmp'.
3837         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3838         Dont define `strncasecmp' as `strncmp'.
3840         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3841         Removed.
3843 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3845         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3846         s/unline/unlink/.
3848 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3850         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3852 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3854         Add US-english hyphenation exceptions (converted from Barbara
3855         Beeton's hyphenation exception log reports which appear irregularly
3856         in TUGBoat).
3858         * tmac/hyphen.us: Updated to latest version.
3859         * tmac/README: Updated.
3860         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3861         * tmac/troffrc: Load `hyphenex.us'.
3862         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3863         * doc/groff.texinfo: Updated.
3865 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3867         Improve hyphenation slightly.  This is a first step in redesigning
3868         the hyphenation algorithm to make it more flexible (e.g. allowing
3869         kerns and ligatures between the hyphenation character and the
3870         following character -- while not used normally in English, other
3871         languages like German would benefit).
3873         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3874         assertion instead of if-clause.
3875         Let `get_hyphen_list' return the number of involved characters in
3876         the hyphenation pattern instead of computing it directly (which
3877         often yields too small values).
3878         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3879         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3880         parameter.
3882 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3884         Fixing a bug which caused groff to hang if the hyphenation exception
3885         dictionary tried to grow.
3887         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3888         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3889         pointer to dictionary.
3891 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3893         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3894         negative left italic correction.
3895         * src/utils/afmtodit/afmtodit.man: Document it.
3897         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3898         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3899         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3901         * NEWS: Updated.
3903 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3905         * NEWS: Updated.
3907 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3909         * src/preproc/refer/refer.man: Mention REFER environment variable.
3911 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3913         Similar to \[is], the square root glyph (\[sr]) and the square root
3914         extension glyph (\[radicalex]) are now text symbols.  The new
3915         mathematical versions are called \[sqrt] and \[sqrtex],
3916         respectively.
3918         * font/devX*/S: Regenerated.
3919         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3920         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3921         * font/devdvi/EX, font/devdvi/S: Regenerated.
3922         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3923         * font/devlj4/generate/special.map: Add `sqrt'.
3924         * font/devlj4/S: Regenerated.
3925         * font/devps/generate/textmap: Add `sqrt'.
3926         * font/devps/S, font/devps/symbolmap: Regenerated.
3928         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3929         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3930         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3931         overlap horizontally.
3933         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3934         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3935         Fix `radicalex'.
3937         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3938         and `sqrtex' are overlapping glyphs.
3940 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3942         * font/devdvi/generate/texsy.map: Add `is'.
3943         * font/devps/symbolmap: Regenerated.
3944         * font/devdvi/*TC, MI, S: Regenerated.
3946         * tmac/dvi.tmac: Remove `is'.
3948 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3950         `is' is now a text symbol (only relevant for dvi).  The math variant
3951         can be accessed with `integral'.
3953         * font/devX*/S: Regenerated.
3954         * font/devdvi/generate/texex.map: Remove `is'.
3955         * font/devdvi/EX: Updated.
3956         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3957         * font/devlj4/generate/special.map: Ditto.
3958         * font/devlj4/S: Regenerated.
3959         * font/devps/generate/textmap: Add `integral'.
3960         * font/devps/S: Regenerated.
3962         * tmac/dvi.tmac: Define `is'.
3964         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3966         * src/preproc/tbl/main.cc (process_format): Fix error message.
3968 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3970         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3971         * font/devps/textmap: Fix entries for `ne' and `nc'.
3972         * font/devps/symbolmap: Regenerated.
3974         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3975         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3976         `38', `58', `78', `-+', `|=', `nc', `ne'.
3978         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3979         Use `schar' for `aq'.
3980         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3981         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3982         * tmac/tty.tmac: Add `ne'.
3984         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3985         for fallback glyphs.
3987 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3989         Add glyph `|='.
3991         * font/devX*/*: Regenerated.
3992         * font/devdvi/generate/ec.map: Remove `eq'.
3993         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3994         Assign `|=' to position 39.
3995         * font/devdvi/*EC, S: Regenerated.
3996         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3997         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3998         Assign `|=' to position 549.
3999         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4000         `equalmath'.
4001         Add `uni2243' for `|='.
4003         * tmac/ec.tmac: Add `eq'.
4004         * tmac/dvi.tmac: Add `=~'.
4005         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4006         `|='.
4008 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4010         * font/devdvi/generate/tc.map: Remove `**'.
4011         * font/devdvi/*TC: Regenerated.
4012         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4013         `78', `<<', `>>'.
4014         * font/devutf8/NOTES: Updated.
4016         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4017         Don't give default parameter to `set_macro'.
4018         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4019         instead of `set_macro'.
4020         (charinfo::setx_macro): Implement it.
4021         (charinfo::set_macro): Don't change `mode'.
4023         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4024         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4025         * tmac/dvi.tmac: Define `!=' with `.schar'.
4027 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4029         * font/devX*/S: Regenerated.
4030         * font/devdvi/generate/ec.map: Remove `pl'.
4031         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4032         * font/devdvi/*{TC,EC}: Regenerated.
4033         * font/devhtml/R.proto: Add `-+'.
4034         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4035         * font/devlbp/*: Remove `or'.
4036         * font/devlj4/generate/special.map: Remove `or'.
4037         * font/devlj4/S: Regenerated.
4038         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4039         `seveneighths', `threeeighths'.
4040         Remove `plusmath'.
4041         Replace `minusplus' with `uni2213'.
4042         * font/devps/symbolmap: Regenerated.
4043         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4044         Add `-+'.
4046         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4047         function.
4048         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4049         Call glyph_color and fill_color even if tcommand_flag isn't set.
4050         (make_node, node::add_char): Check not ci->is_fallback but
4051         ci->is_normal.
4053         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4054         * tmac/ec.tmac: Add .rchar entry for `f/'.
4055         Don't remove `12', `14', `34'.
4056         Define `pl' to be always roman.
4057         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4058         Define `18', `38', `58', `78'.
4059         * tmac/tty.tmac: Add `-+'.
4060         * tmac/dvi.tmac: Define `f/'.
4061         (dvi-frac): Use `f/'.
4062         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4063         Define `18', `38', `58', `78'.
4065 2002-12-15  Colin Watson  <cjwatson@debian.org>
4067         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4069 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4071         Add glyph `tno', a textual variant of `no'.
4073         * font/devX*/*: Regenerated.
4074         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4075         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4076         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4077         * font/devdvi/*: Regenerated.
4078         * font/devlbp/*: Add `tno'.
4079         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4080         * font/devlj4/*: Regenerated.
4081         * font/devps/generate/textmap: Replace `no' with `tno'.
4082         * font/devps/generate/symbolchars: Add `no'.
4083         * font/devps/*: Regenerated.
4085         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4087         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4088         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4090         * NEWS: Updated.
4092         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4093         Add definition for `sd'.
4094         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4096         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4098 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4100         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4101         mode to avoid rounding errors.
4102         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4104         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4105         src/roff/troff/troff.man: Improve documentation of -T.
4107 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4109         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4110         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4112 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4114         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4115         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4116         Scaling Euro.sansserif glyphs down to have the same height as
4117         digits.
4118         Removed unnecessary points; added some extrema.
4120         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4121         Regenerated.
4123 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4125         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4126         and `Euro.symbol.bold.slanted'.
4127         Improve some glyph offsets and widths.
4128         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4129         Regenerated.
4130         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4131         typo.
4132         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4133         direcory.
4135         * tmac/europs.tmac: Updated to new glyph indices.
4136         Use Euro.symbol for font familiy `A'.
4138         * doc/groff.texinfo: Minor improvements.
4140 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4142         * font/devdvi/generate.tc.map: s/%O/%0/.
4143         * font/devdvi/*TC: Regenerated.
4145         * src/roff/troff/div.cc (init_div_requests): Sorted.
4147         * tmac/dvi.tmac: Remove `Ye'.
4148         * tmac/ec.tmac: Remove `Ye'.
4149         Add .rchar entry for `de'.
4151         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4152         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4153         * NEWS: Updated.
4155 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4157         Add PS font for various Euro glyphs.
4159         * font/devps/generate/freeeuro.sfd: New master font file for
4160         pfaedit.
4161         * font/devps/generate/sfdtopfa.pe: New conversion script for
4162         pfaedit.
4163         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4164         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4165         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4166         `freeeuro.sfd'.
4167         * font/devps/EURO: Generated from `freeeuro.afm'.
4168         * font/devps/download: Add `freeuro.pfa'.
4169         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4170         `freeeuro.pfa'.
4172         * tmac/europs.tmac: New file.
4173         * tmac/ps.tmac: Include `europs.tmac'.
4174         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4176 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4178         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4179         * font/devdvi/S: Regenerated.
4180         * font/devhtml/R.proto: Fix `CR' and `ci'.
4181         Add `OK'.
4182         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4183         Remove `bs'.
4184         * font/devps/symbolmap: Regenerated.
4185         * font/devutf8/R.proto: Fix `CR' and `ci'.
4186         Add `OK'.
4187         * font/devutf8/NOTES: Updated.
4189         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4190         `ci'.
4191         Add `OK'.
4192         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4194         * tmac/dvi.tmac: Add `lh' and `rh'.
4195         * tmac/Xps.tmac: Fix `lh' and `rh'.
4196         * tmac/X.tmac: Add `OK'.
4197         * tmac/lj4.tmac: Ditto.
4199 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4201         * font/devX*/S: Regenerated.
4202         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4203         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4204         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4205         * font/devdvi/S: Regenerated.
4206         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4207         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4208         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4209         `bracketleftbt', `bracketrighttp', `bracketrightex',
4210         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4211         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4212         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4213         `rb', and `bv'.
4214         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4215         * font/devutf8/NOTES: Updated.
4216         * font/devlj4/generate/special.map: Add glyph `braceex'.
4217         * font/devlj4/S: Regenerated.
4219         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4221 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4223         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4224         and `vA'.
4225         Fix code for `an'.
4226         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4228         * doc/texinfo.tex: New version from texinfo 4.3.
4229         * doc/groff.texinfo: Updated for texinfo 4.3.
4230         Use @tie{} where appropriate.
4231         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4232         * font/devdvi/generate/tc.map: Remove `rn'.
4233         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4234         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4235         Fix code for `an'.
4236         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4237         font/devX75-12/*: Regenerated.
4239         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4240         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4241         Improve definition of `an'.
4242         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4243         `ru'.
4244         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4245         * tmac/X.tmac: Add definition for `or'.
4246         * tmac/Xps.tmac: Undo change 2002-11-05.
4247         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4249 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4251         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4252         call flush_tbuf.
4254 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4256         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4257         defines a glyph which is searched after the check for fonts declared
4258         with `.special' (and before the check for all mounted special
4259         fonts).  `fschar' defines a glyph for a particular font which is
4260         searched after the check for fonts declared with `.fspecial' (and
4261         before the check for fonts declared with `.special').  `rfschar'
4262         removes glyphs defined with `fschar'.
4264         * src/roff/troff/token.h (char_mode): New enum.
4265         Declare do_define_character.
4266         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4267         `mode'.
4268         (charinfo::is_fallback): Updated.
4269         (charinfo::is_special): New method.
4270         * src/roff/troff/input.cc (do_define_character): Add and use
4271         optional second parameter used as a prefix for font-specific glyph
4272         names.
4273         (define_character, define_fallback_character): Updated.
4274         (define_special_character): New function.
4275         (init_input_requests): Add `schar'.
4276         (charinfo::charinfo, charinfo::set_macro): Updated.
4277         * src/roff/troff/node.cc: Include `stringclass.h'.
4278         (make_glyph_node): Handle special glyphs defined with `.schar' and
4279         `.fschar'.
4280         (define_font_special_character, remove_font_special_character): New
4281         functions.
4282         (init_node_requests): Sorted.
4283         Add `fschar' and `rfschar'.
4284         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4285         Document new requests.
4287         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4288         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4290 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4292         Added new font `SC' (cmtex10) to devdvi.
4294         * devdvi/generate/Makefile (FONTS): Add `SC'.
4295         (SC): New rule.
4296         * devdvi/generate/textex.map: New map file for cmtex.
4297         * devdvi/SC: New.
4298         * devdvi/Makefile.sub (DEVFILES): Updated.
4299         * tmac/dvi.tmac: Add fspecial entries for SC.
4300         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4301         found before `S' since the font position of `SC' is lower due to the
4302         gaps in DESC's `font' line.
4303         * tmac/ec.tmac: Add a `special' call.
4304         * NEWS: Updated.
4306         * font/devhtml/R.proto: Remove double entry for `ti'.
4307         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4308         * tmac/tty-char.tmac: Remove entry for `bq'.
4309         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4310         * tmac/ec.tmac: Don't remove `aq' glyph.
4311         * tmac/X.tmac: Fix entry for `em'.
4312         Add entries for `fo' and `fc'.
4313         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4315         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4316         documentation of `special' and `fspecial' requests.
4318 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4320         * font/devascii/R.proto, font/devcp1047/R.proto,
4321         font/devlatin1/R.proto: Remove entry for `.i'.
4322         * font/devdvi/generate/textt.map: Add entry for `ad'.
4323         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4324         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4325         We need this for getting kerning values to compose `/l' and `/L'.
4326         * font/devdvi: Regenerated font definition files for CM fonts.
4327         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4328         * font/devutf8/R.proto: Ditto.
4329         Remove double entry for `ti'.
4331         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4332         for (groff) ligatures, `la', and `ra'.
4333         Add "'C", "'c", `IJ', and `ij'.
4334         Remove double entry for `ti'.
4335         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4336         double entries.
4337         Add "'C", "'c", `IJ', and `ij'.
4338         Fix entries for (groff) ligatures, `la', and `ra'.
4340         * tmac/ps.tmac (ps-achar): New macro.
4341         Define "'c" and "'C".
4342         * tmac/tty.tmac: Add entry for `.i'.
4343         * tmac/X.tmac (X-achar): New macro.
4344         Define "'c", "'C", and `:Y'.
4345         Add entries for `IJ' and `ij'.
4346         * tmac/Xps.tmac (Xps-achar): New macro.
4347         Define "'c" and "'C".
4348         Add entries for `IJ' and `ij'.
4349         * tmac/lbp.tmac (lbp-achar): New macro.
4350         Add fallback characters for all groff ligatures and many other
4351         glyphs.
4352         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4353         Add entries for `/l' and `/L'.
4354         Define "'c" and "'C".
4355         Add entries for `IJ' and `ij'.
4357 2002-11-02  Larry Kollar  <kollar@alltel.net>
4359         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4361 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4363         Adding support for composite glyphs: \[xxx yyy ...] and the
4364         `composite' request.
4366         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4367         to Unicode-based glyph names.
4368         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4369         glyph names to groff glyph names.
4370         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4371         Unicode-based glyph names.
4372         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4373         for handling Unicode glyph names.
4374         * src/roff/troff/input.cc: Include unicode.h.
4375         (composite_glyph_name): New function.
4376         (token::next) <'['>: Handle Unicode glyph names and composite
4377         glyphs.
4378         (composite_dictionary): New dictionary for the `composite' request.
4379         (composite_request): Implement `composite' request.
4380         (init_input_requests): Add `composite'.
4381         Alphabetically sorted.
4382         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4383         commented out).
4384         (init_env_requests): Alphabetically sorted.
4385         Removed `tas' and `tar' (already commented out).
4386         * src/roff/troff/Makefile.sub: Updated.
4388 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4390         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4391         of options.
4393 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4395         Fix computation of .trunc register.  Additionally, its value (and
4396         the value of the .ne register) is now always set before entering the
4397         trap.
4399         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4400         `needed_space' before calling `space'.
4401         (top_level_diversion::space): Remove special code for 'sp before the
4402         first page.
4403         Call `begin_page' with the discarded space as a parameter.
4404         (top_level_diversion::begin_page): Add optional parameter to set
4405         `truncated_space'.
4406         * src/roff/troff/div.h: Updated.
4408         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4409         \n[.ne].
4411         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4412         (LP): Remove superfluous call to `br'.
4413         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4414         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4416 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4418         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4419         (doc-setup-header): Don't set page register `%'.
4420         * tmac/doc-nroff: Remove variable `C'.
4421         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4422         (doc-setup-header): Don't set page register `%'.
4423         Don't call `bp'.
4424         * tmac/doc-common (doc-header): Call `ns'.
4425         (doc-paragraph): Protect .sp with .br so that it survives traps
4426         possibly set by the user.
4427         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4429         * tmac/doc*: Replace ' with . for consistency if no effect.
4431 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4433         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4434         so that it survives traps possibly set by the user.
4436         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4437         (troff_output_file::set_font): Call flush_tbuf if necessary.
4438         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4439         flush_tbuf and do_motion only if necessary.
4440         (troff_output_file::start_special,
4441         troff_output_file::put_char_width, troff_output_file::put_char,
4442         troff_output_file::draw): Updated.
4443         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4444         vmotion_node::tprint): Undo change 2002-10-23.
4446 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4448         * tmac/www.tmac (DC): Fix case of overlapping images.
4450 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4452         * src/roff/troff/node.cc (troff_output_file::fill_color,
4453         troff_output_file::glyph_color): Set current color before testing
4454         color_flag.
4455         (troff_output_file::put_char_width, troff_output_file::put_char,
4456         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4457         before glyph_color.
4458         (troff_output_file::file_color, troff_output_file::glyph_color):
4459         Call do_motion.
4460         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4461         vmotion_node::tprint): Move first, then call fill_color.
4463 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4465         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4466         possible to use multiple main macro packages.
4468 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4470         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4471         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4472         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4473         is set.
4474         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4475         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4477 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4479         * NEWS, doc/webpage.ms: Updated.
4481 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4483         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4484         troff_output_file::put_char, troff_output_file::fill_color,
4485         troff_output_file::glyph_color): Handle case where color pointer
4486         is null.
4488 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4490         Add the new -r option to grotty.  It is similar to the -i option
4491         except it tells grotty(1) to use the "reverse video" attribute to
4492         render italic fonts.
4494         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4495         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4496         (tty_printer::make_underline, tty_printer::put_color,
4497         tty_printer::end_page): Use it.
4498         (main): Add -r switch.
4499         (usage): Updated.
4500         * src/devices/grotty/grotty.man: Document it.
4502 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4504         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4505         cast to `unsigned char' to properly read patterns with 8bit
4506         characters.
4508 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4510         * REVISION: Increased to 2.
4512 Version 1.18.1 released
4513 =======================
4515 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4517         * doc/webpage.ms, NEWS: Updated.
4519 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4521         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4522         suppress additional whitespace after the header.
4524         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4525         with NetBSD.
4527         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4529 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4531         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4532         (Dt): Use it to improve language localization (especially Russian
4533         and French).
4535 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4537         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4538         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4539         drawing commands.
4540         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4541         curve type.
4542         Call `picurve' for BSPLINE.
4543         (HGPrintElt): Handle BSPLINE.
4544         * src/preproc/grn/README: Document it.
4546 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4548         * src/roff/troff/node.cc (break_char_node::col): New variable.
4549         Updated constructor.
4550         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4551         unconditionally.
4552         (space_node::space_node): Remove assertion.
4553         (break_char_node::add_self): Pass color argument to space node.
4554         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4555         Ditto.
4556         * src/roff/troff/env.cc (environment::do_break,
4557         environment::add_padding): Ditto.
4559 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4561         Redesigning color support in troff.  Colors are no longer
4562         represented as separate nodes but are now part of glyph nodes and
4563         friends.  This fixes the current formatting misbehaviour due to the
4564         changes introduced on 2002-09-20.  Some extra code is necessary for
4565         proper grotty support: Without adding color variables to
4566         space-related nodes, the background color would be changed too late.
4568         * src/roff/troff/node.h, src/roff/troff/node.cc:
4569         s/current_pagecolor/current_fill_color/.
4570         s/current_glyphcolor/current_glyph_color/.
4571         (glyph_color_node, fill_color_node): Removed.
4572         (node::get_glyph_color, node::get_fill_color): New virtual member
4573         functions.
4574         (space_node::col): New variable.
4575         Updated constructors of space_node and derived classes accordingly.
4576         (hmotion_node::col): New variable.
4577         Updated constructors of hmotion_node and space_char_hmotion_node
4578         accordingly.
4579         (vmotion_node::col): New variable.
4580         Updated constructor accordingly.
4581         (draw_node::gcol, draw_node::fcol): New variables.
4582         Updated constructor accordingly.
4583         (special_node::gcol, special_node::fcol): New variables.
4584         Updated constructors accordingly.
4585         (troff_output_file::put_char, troff_output_file::put_charwidth,
4586         troff_output_file::draw): Set glyph and fill color.
4587         (troff_output_file::start_special): Set glyph and fill color.
4588         Always set current font.
4589         (troff_output_file::fill_color, troff_output_file::glyph_color):
4590         Don't call `do_motion'.
4591         (glyph_node::gcol, glyph_node::fcol): New variables.
4592         Updated constructors of glyph_node and ligature_node accordingly.
4593         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4594         member functions.
4595         (glyph_node::merge_glyph_node,
4596         kern_pair_node::add_discretionary_hyphen,
4597         node::add_discretionary_hyphen): Updated.
4598         (break_char_node::merge_self): Updated.
4599         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4600         vmotion_node::tprint): Handle color.
4601         (make_glyph_node, make_node, node::add_char): Updated.
4603         * src/roff/troff/env.cc (environment::space_newline,
4604         environment::space, environment::output_line, environment::do_break,
4605         environment::make_tab_node, environment::add_padding, title):
4606         Updated.
4607         (environment_switch, environment_copy): Don't add color nodes.
4609         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4610         nothing.
4611         (token::next): Updated.
4612         \m and \M now are as transparent as \s.
4613         (process_input_stack, token::add_to_node_list, token::process,
4614         read_draw_node): Updated.
4615         (charinfo_to_node_list): Don't add color nodes.
4617         * doc/groff.texinfo: Updated.
4619 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4621         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4622         strings.
4624 2002-09-27  Colin Watson  <cjwatson@debian.org>
4626         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4628 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4630         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4631         appropriate.
4632         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4633         (linewidth_factor): New global variable.
4634         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4635         linewidth_factor.
4636         (long_options): Add -w/--linewidth option.
4637         (usage): Updated.
4638         (main): Handle -w option to set linewidth_factor.
4639         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4640         line_thickness.
4642         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4644 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4646         Fixed a bug in the line thickness setting code.
4648         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4649         variable.
4650         (lbp_printer::set_line_thickness): Pass environment as second
4651         parameter.
4652         Implement it actually.
4653         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4654         and `set_line_thickness, depending on the current font size.
4656 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4658         Some Debian patches.
4660         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4661         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4662         `list->last'.
4664 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4666         * configure: Regenerated with autoconf 2.54.
4668 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4670         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4671         glyph_color.
4672         Rename cur_fill_color to fill_color.
4673         * src/roff/troff/env.cc: Updated.
4675 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4677         * src/roff/troff/env.cc (title): Copy color status after processing
4678         title.
4679         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4680         fill color nodes to reset colors properly.
4682         * tmac/www.tmac (DC): Fix color handling.
4684         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4685         * doc/groff.texinfo: Fixing documentation of `tl' request.
4686         * doc/webpage.ms: Updated.
4688 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4690         * src/roff/troff/env.cc (environent_switch, environment_copy):
4691         Emit glyph and fill color nodes to initialize colors properly.
4693 2002-09-17  Colin Watson  <cjwatson@debian.org>
4695         * src/roff/troff/env.cc (environment::set_glyph_color,
4696         environment::set_fill_color): Fix typo which prevented \m[] work
4697         correctly.
4699 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4701         Add left and right italic correction to non-slanted PS fonts.  This
4702         is an experimental feature to improve image rendering of grohtml.
4704         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4705         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4706         * font/devps/*: All non-slanted fonts regenerated.
4707         * NEWS: Updated.
4709 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4711         Add a site-specific font directory.
4713         * Makefile.in (localfontdir, legacyfontdir): New variables.
4714         (fontpath): Use them.
4715         (MDEFINES, uninstall_dirs): Updated.
4716         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4717         Remove `FONTPATH' and `MACROPATH'.
4719         * src/roff/troff/troff.man, NEWS: Updated.
4720         * doc/groff.texinfo (Font Directories): New section.
4721         Other minor fixes.
4723         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4724         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4725         src/preproc/grn/grn.man: Minor fixes.
4727         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4728         Remove unused variable.
4730 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4732         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4733         * man/groff_out.man: Fix documentation of 'N'.
4735 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4737         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4738         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4739         set.
4740         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4741         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4742         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4743         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4744         PRE_TAG>: Call `begin' with `FALSE'.
4746 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4748         * src/libs/libgroff/string.cc (string::extract): Fix position of
4749         terminating null byte.
4751 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4753         Add global option `nospaces' to tbl so that leading and trailing
4754         spaces in data items are ignored.
4756         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4757         function to remove leading and trailing spaces.
4758         * src/include/stringclass.h: Updated.
4760         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4762         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4763         option.
4764         Fix typo in error messages.
4765         (process_data): Implement `nospaces' option.
4766         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4768 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4770         * src/include/config.hin: Add `HAVE_ISATTY'.
4771         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4772         `fname' member.
4773         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4774         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4775         `operator!=' for `char'.
4776         * doc/groff.texinfo: Replace @ifnottex block for top node with
4777         @ifhtml block.
4779 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4781         * doc/Makefile.in (.texinfo.html): Add -I switch.
4782         * doc/groff.texinfo: Add @ifnottex block for top node to make
4783         translation to HTML work.
4785 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4787         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4788         (get_papersize, determine_vertical_offset): Removed.
4789         (char_buffer::do_image): Always specify letter size.
4790         (main): Updated.
4791         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4792         -sPAPERSIZE.
4794 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4796         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4797         default indentation.
4799 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4801         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4802         -sPAPERSIZE for gs.
4803         (generateImages): Clean up push-back buffer.
4805 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4807         * doc/groff.texinfo: Minor fixes.
4809 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4811         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4812         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4813         (gsPaper): Removed.
4814         (determine_vertical_offset): Use LETTER_LENGTH.
4815         (createPage): Moved to ...
4816         (imageList::createPage): This.
4817         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4818         (imageList::getMaxX): New function.
4819         (createImage): Moved to ...
4820         (imageList::createImage): This.
4821         (imageList::createImages): New function.
4822         (generateImages): Read `maxx' directly.
4823         Updated.
4824         (scanArguments): Don't specify `gsPaper' for `-o'.
4825         (makeTempFiles): Call `xtmpfile' with the last argument set to
4826         `TRUE'.
4828 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4830         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4831         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4832         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4833         * src/preproc/html/pushback.cc: Include nonposix.h.
4834         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4835         conditionally.
4837 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4839         Use $(OBJEXT) for the object file extension.
4841         * Makefile.comm (.SUFFIXES): Add .obj.
4842         (.cc.obj, .c.obj): New implicit rules.
4843         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4844         (MDEFINES): Add EXEEXT and OBJEXT.
4845         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4847 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4849         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4851 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4853         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4854         the file.
4855         (html_printer::update_min_max, html_printer::add_table_end): New
4856         methods.
4857         (html_printer::lookahead_for_tables): Use them.
4858         Reset page offset correctly.
4859         (html_printer::~html_printer): Add creation of creator comment up.
4861 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4863         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4864         * man/groff_tmac.man: Fix typos.
4865         * man/groff_font.man: Minor reordering.
4866         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4868 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4870         Avoid endless loops while scanning for tables.
4872         * src/devices/grohtml/post-html.cc (list::insert): Set
4873         ptr->right->left.
4874         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4875         all callers.
4876         Return immediately if that argument is NULL.
4877         (html_printer::calc_nf): Don't test if `g' is NULL.
4878         (html_printer::lookahead_for_tables): Use
4879         `glyphs.move_right_get_data'.
4880         Don't test if `g' is NULL.
4882 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4884         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4886         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4887         a pointer.
4888         (char_block::char_block): Allocate `buffer'.
4889         (char_buffer::add_string): Use it.
4891 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4893         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4894         src/devices/grodvi/grodvi.man: Document default line thickness.
4896 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4898         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4899         8192.
4901 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4903         * doc/webpage.ms: Updated.
4905 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4907         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4908         unbreakable space.
4910 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4912         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4913         (&& -> &).
4915 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4917         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4918         tok.next().
4919         (read_gray): Ditto.
4920         Don't push back a space but a newline onto the stack.
4922 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4924         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4925         inadvertently.
4927         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4928         html_printer::start_font): Handle them.
4929         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4930         reset bold and tt.
4931         (html_text::do_bold): Don't reset italic and tt.
4932         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4933         * font/devhtml/DESC.proto: Add those fonts.
4934         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4936 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4938         * MORE.STUFF: Added gpresent.
4940         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4941         whitespace before printing the logging message.
4943 2002-07-31  Colin Watson  <cjwatson@debian.org>
4945         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4946         Initialize `n' to zero.  This fixes a segfault on ARM.
4948 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4950         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4952 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4954         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4955         final semicolon.
4957 2002-07-28  Colin Watson  <cjwatson@debian.org>
4959         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4960         `.ps'.
4961         (html_printer::html_printer): Initialize `pointsize'.
4963 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4965         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4966         gnu.png.
4967         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4968         (gnu.eps): Add -rle switch to pnmtops.
4969         (distfiles): Add gnu.eps and gnu.png.
4971 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4973         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4974         Add `operator!='.
4976 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4978         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4979         ' \+' but '  *' for sed.
4980         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4982 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4984         * doc/groff.texinfo: Document `papersize' keyword.
4985         * NEWS, man/groff_font.man: Updated.
4987 2002-07-23  Colin Watson  <cjwatson@debian.org>
4989         Extend papersize keyword to accept more than a single entry.  The
4990         first valid will be used.
4992         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4993         (font::scan_papersize): Really skip final newline.
4994         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4996 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4998         * configure.ac: Test for isatty.
4999         * configure: Regenerated.
5000         * src/include/posix.h: Check HAVE_ISATTY.
5001         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5002         * src/utils/lookbib/lookbib.cc: Include posix.h.
5003         Don't declare isatty.
5005 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5007         * NEWS: Add `output' request.
5009         * REVISION: Increased to 1.
5011 Version 1.18.0 released
5012 =======================
5014 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5016         Allow internal glyph indices > 0xFF in grohtml for input characters.
5018         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5019         as parameter.
5020         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5021         Updated all callers.
5022         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5023         (html_printer): Updated.
5025 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5027         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5028         * font/devutf8/R.proto: Adding some missing glyphs.
5029         * font/devutf8/NOTES: Updated.
5031         * tmac/dvi.tmac: Add more composite glyphs.
5032         * tmac/html.tmac: Updated.
5034         * man/groff_char.man: Add `sum' and `product' entities.
5036         * NEWS: Updated.
5038 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5040         Improved table, tab, and indenting support.
5042         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5043         string_iterator::suppress_newline_flag): Removed.  Updated all
5044         function which have used it.
5046         * src/roff/troff/env.cc: Include `input.h'.
5047         (environment::add_node): Accept 0 as parameter.
5048         (environment::add_html_tag): Add `force' parameter.
5049         Updated all callers.
5050         (environment::add_html_tag_tabs): Ditto.
5051         For the moment, support left-aligned tabs only.
5052         (environment::make_html_tag): New function.
5053         (fill, no_fill): Set .br html tag additionally.
5054         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5055         (environment::add_html_tag_eol): Removed.
5056         (tab_stops::distance_to_next_tab): Add variant for handling 
5057         nextpos'.
5058         (environment::distance_to_next_tab): Ditto.
5059         Updated all callers.
5060         (environment::handle_tab): Handle tabs for html.
5061         
5062         * src/roff/troff/env.h: Updated.
5064         * src/roff/troff/div.cc: Updated all callers of
5065         `environment::add_html_tag'.
5067         * src/devices/grohtml/html-table.cc,
5068         src/devices/grohtml/html-table.h: New files.
5070         * src/devices/grohtml/html-text.cc (html_text): New members
5071         `blank_para' and `start_space'.
5072         (html_text::issue_tag): Don't emit TABLE_TAG.
5073         Handle indentation for PRE_TAG and P_TAG.
5074         (html_text::end_tag): Updated.
5075         (html_text::table_is_void, html_text::issue_table_begin,
5076         html_text::issue_table_end): Removed.
5077         (html_text::do_push): Simplified.
5078         [DEBUGGING]: Small fix.
5079         (html_text::push_para): Add new parameter for indentation; updated
5080         all callers.
5081         Handle PRE_TAG.
5082         (html_text::do_indent, html_text::do_table, html_text::done_table,
5083         html_text::is_in_table): Removed.
5084         (html_text::do_pre): Handle P_TAG also.
5085         (html_text::shutdown): Handle p->indent.
5086         (html_text::check_emit_text): Simplified.
5087         (html_text::do_emittext): Reset `blank_para'.
5088         (html_text::do_para): Add new parameter for indentation; updated
5089         all callers.
5090         (html_text::remove_indent): New function.
5091         (html_text::do_space): Handle verbatim text properly.
5092         (html_text::ever_emitted_text, html_text::starts_with_space,
5093         html_text::remove_para_align): New functions.
5094         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5096         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5097         Updated.
5099         * src/devices/grohtml/post-html.cc: Include html-table.h.
5100         (INDENTATION): Removed.
5101         (text_glob): Added many `is_<foo>' functions.
5102         Added table description `tab'.
5103         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5104         member functions.
5105         (list): Add `insert' and `move_to' member functions.
5106         (page): Add `insert_tag' member function.
5107         (page::dump_page) [DEBUG_TABLES]: Improved.
5108         (html_printer): Add `table' and `max_linelength' elements.
5109         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5110         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5111         `remove_tabs', `remove_courier_tabs'.
5112         (html_printer::emit_raw): Handle indentation.
5113         (html_printer::do_center, html_printer::write_header): Updated.
5114         (html_printer::is_courier_until_eol): Check for tag.
5115         (html_printer::do_linelength): Handle max_linelength.
5116         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5117         fill_on.
5118         (html_printer::do_tempindent): Updated.
5119         (html_printer::do_indentedparagraph): Removed.
5120         (html_printer::do_indent): Simplified.
5121         (html_printer::do_eol): Use `ever_emitted_text'.
5122         (html_printer::do_flush, html_printer::do_links): Don't call
5123         done_table.
5124         (html_printer::do_break): Handle end_tempindent.
5125         (html_printer::troff_tag): Get argument.
5126         Don't handle `.ip'.
5127         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5128         (html_printer::flush_page): Call `lookahead_for_tables'.
5129         Don't call `done_table'.
5130         (html_printer::add_to_sbuf): Always call do_indent.
5132         * src/devices/grohtml/Makefile.sub: Updated.
5134         * tmac/an-old.tmac (TP): Don't handle html device specially.
5135         (an-do-tag-html): New function which will be used instead of
5136         `an-do-tag' if html device is used.
5138         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5140         * tmac/s.tmac (@IP): Don't handle html device specially.
5141         (@IP-html): New function which will be used instead of `@IP' if
5142         html device is used.
5144         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5145         is a hack which will eventually vanish again.
5146         (PIMG): Handle `-C' option correctly if not html.
5147         (HR): Use HTML-NS.
5149 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5151         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5153 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5155         * contrib/pic2graph/pic2graph.*: Use convert(1).
5156         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5158 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5160         * tmac/groff_trace.man: New file.
5161         * tmac/Makefile.sub: Updated.
5162         * NEWS: Updated.
5164 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5166         * src/roff/groff/groff.man: Add some cross references.
5168 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5170         * src/roff/troff/input.cc (substring_request): Add warnings for
5171         string indices out of range.
5173 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5175         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5176         * font/devdvi/*EC: Regenerated.
5178 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5180         * man/groff_char.man: Updated and extended.
5182 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5184         * src/roff/troff/input.cc (length_macro): Renamed to...
5185         (length_request): This.
5186         Move call of `tok.next()' to the very end, otherwise the register
5187         value hasn't been updated yet.
5188         (init_input_requests): Updated.
5190 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5192         * src/roff/troff/input.cc (substring_macro): Renamed to...
5193         (substring_request): This.
5194         (init_input_requests): Updated.
5195         * src/roff/troff/request.h: Updated.
5197 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5199         * src/roff/grog/grog.sh: Fix typo.
5201 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5203         * win32-diffs: Updated.
5205         Handle `papersize' keyword properly in DESC.
5207         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5208         type.
5209         Updated all callers.
5210         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5211         grolj4.
5212         * src/include/paper.h: Updated.
5214         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5215         Other minor C syntax fixes.
5216         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5217         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5218         members.
5219         (lbp_printer::lbp_printer): Pass three arguments.
5220         Set paper dimensions properly.
5221         (make_printer, main): Updated.
5222         (handle_unknown_desc_command): Fix error messages.
5223         (main): Handle papersize keyword in DESC properly.
5225         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5226         `user_paper_size'.
5227         (lbp_printer::lbp_printer): Pass an argument.
5228         Set paper_size properly.
5229         (handle_unknown_desc_command): Removed.
5230         (make_printer, main): Updated.
5231         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5233         * man/groff_font.man, NEWS: Updated.
5235 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5237         Integrated eqn2graph, contributed by Eric S. Raymond.
5239         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5240         files.
5241         * Makefile.in, NEWS: Updated.
5243 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5245         Changing the substring request to make it fit better with other
5246         string manipulation functions in other programming languages:
5247         Index 0 is now the first character in the string, and index -1
5248         indicates the last character.  Since this request didn't work
5249         properly anyway in the last release, it doesn't harm too much to
5250         change the syntax.
5252         * src/roff/troff/input.cc (substring_macro): Use loops to get
5253         the real string length (ignoring COMPATIBLE_SAVE and
5254         COMPATIBLE_RESTORE) and offsets.
5255         Implement change described above.
5257         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5258         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5260         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5262 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5264         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5265         COMPATIBLE_RESTORE are completely ignored.
5267         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5268         functions.
5269         (macro): `length' field renamed to `len'.
5270         Added new field `empty_macro' (1 if macro is empty), to be used
5271         instead of checking `len'.
5272         Updated all callers.
5273         (macro::empty): Updated.
5274         (macro::length, macro::set, macro::get): New functions.
5275         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5276         Set `empty_macro'.
5277         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5278         COMPATIBLE_RESTORE pairs.
5279         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5280         * src/roff/troff/request.h: Updated.
5282         * doc/groff.texinfo: Document .chop's behaviour better.
5284 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5286         * doc/pic.ms: Fix documentation for the addition of positions.
5288         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5290 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5292         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5294         * src/roff/troff/input.cc (have_string_arg): New global variable.
5295         (read_mode): New enumeration.
5296         (read_escape_name): Use it.  Update all calls.
5297         (read_long_escape_name): Use it.  Update all calls.
5298         Set have_string_arg if appropriate.
5299         (get_char_for_escape_name): Add parameter for handling space
5300         character.
5301         (interpolate_string_with_args, decode_string_args): New functions.
5302         (get_copy, token::next): Call it if necessary.
5303         (interpolate_string): Fix error message.
5305         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5306         Document it.
5308 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5310         * man/groff_tmac.man: Updated and extended.
5312 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5314         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5316 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5318         * doc/pic.ms: Improve documentation of composite block objects.
5320 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5322         * src/roff/troff/input.cc (init_registers): Add three registers
5323         `seconds', `minutes', and `hours' to hold the current time.
5325         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5326         Updated.
5328 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5330         Make \X accept both `\ ' and `\~', converting them to single space
5331         characters.
5333         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5334         (token::unstretchable_space): New inline function.
5335         * src/roff/troff/input.cc (token::next, token::delimiter,
5336         token::description, token::add_to_node_list, token::process): Handle
5337         TOKEN_UNSTRETCHABLE_NODE.
5338         (encode_char): Handle tok.stretchable_space and
5339         tok.unstretchable_space.
5341         * NEWS, doc/groff.texinfo: Document it..
5343 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5345         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5347         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5348         keyword to enable/disable SGR output.
5349         (tty_printer::change_fill_color): New function.
5350         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5352         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5353         call.
5355 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5357         Add a `color' request and a `.color' register to control usage of
5358         colours.
5360         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5361         (color_flag): This (which is the inverse).
5362         (activate_color): New function.
5363         (main, init_input_requests): Updated.
5364         * src/roff/troff/troff.h, src/roff/troff/node.cc
5365         (troff_output_file::fill_color, troff_output_file::glyph_color):
5366         Updated.
5368         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5369         Document the changes.
5371 2002-06-17  Colin Watson  <cjwatson@debian.org>
5373         Circumvent bug in autoconf 2.53 regarding top_builddir.
5375         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5376         * Makefile.in, doc/Makefile.in:
5377         s/@top_builddir@/@groff_top_builddir@/.
5378         * configure: Regenerated (with autoconf 2.53).
5380 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5382         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5383         `paperwidth' and `paperlength' for the `papersize' keyword.
5385 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5387         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5389 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5391         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5392         html_printer::do_linelength, html_printer::do_pageoffset,
5393         html_printer::do_indentation, html_printer::do_tempindent,
5394         html_printer::do_break, html_printer::begin_page): Clear indented
5395         text.
5396         * tmac/html.tmac: Disable hyphenation.
5398 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5400         Don't produce HTML files if utility programs are missing.
5402         * Makefile.in (make_html, make_install_html): New variables.
5403         (MDEFINES): Updated.
5405         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5406         utility programs.
5407         * configure.ac: Use it.
5408         * configure: Regenerated.
5410         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5411         (HTMLEXAMPLESFILES): This new variable.
5412         (EXAMPLESIMAGEFILES): Renamed to...
5413         (HTMLEXAMPLEIMAGEFILES): This.
5414         (CLEANADD): Add HTMLEXAMPLEFILES.
5415         (all): Use `make_html'.
5416         (html): New target.
5417         (install_data): Use `make_install_html'.
5418         Move html stuff to...
5419         (install_html): This new target.
5420         (uninstall_sub): Updated.
5422 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5424         * src/roff/grog/Makefile.sub (grog): Renamed to...
5425         (grog.old): This.
5426         (grog): New rule to always install grog.sh as grog.
5428 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5430         * src/roff/grog/grog.pl: Fix typo.
5432 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5434         * doc/groff.texinfo: Add more info on .tr arguments.
5436 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5438         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5440         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5441         * configure: Regenerated.
5443 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5445         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5447         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5449 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5451         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5452         is not initialized at the time we need it in case `--prefix' hasn't
5453         been set.  Check for `ac_default_prefix' also.
5454         Test for `papersize' keyword also and generalize allowed whitespace.
5455         * configure: Regenerated.
5457         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5458         `paperlength'.
5460         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5461         with...
5462         (src_version, src_revision): New variables to avoid overwriting
5463         from parent make process.
5464         (version.cc): Updated.
5466         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5467         (linebuf, linebufsize): New global variables.
5468         (sys_fatal): Use `fatal' to abort properly.
5469         (get_line): New function.
5470         (get_resolution): Use it.
5471         Improve error messages.
5472         (get_papersize): Check `papersize' also.
5473         Use `get_line'.
5474         Improve error messages.
5476 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5478         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5479         should be removed only if builddir is not srcdir.
5480         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5481         (clean): Depend on `mostlyclean'.
5482         (distclean): Depend on `clean'.
5483         (realclean, extraclean): Depend on `distclean'.
5484         (.y.cc, .y.o): Simplified.  The output files are no longer written
5485         to srcdir but to builddir.
5486         * Makefile.in (MDEFINES): Add `version' and `revision'.
5487         (uninstall_dirs): Fix order of directories.
5488         * doc/Makefile.sub (version, revision): Removed.
5489         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5490         Added `HTMLDOCFILES'.
5491         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5492         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5493         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5494         as prefix.
5496         * doc/texinfo.tex (\authortt): New macro.
5497         (\shortcontt): Define.
5498         (\titlepage): Set \tt to \authortt while defining \authorfont.
5499         (\appendixbox): New macro.
5500         (\chapmacro, \appendixentry): Use \appendixbox to get even
5501         indentation for letters.
5502         (\summarycontents): Set \tt.
5503         (\internalpagesize): Add two arguments for real paper width and
5504         height as needed by pdfTeX.
5505         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5506         Updated.
5507         (\tempdima, \tempdimb): New temporary dimensions.
5508         (\pagesizesyyy): Updated.
5510 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5512         Adding a new keyword `papersize' to the DESC file format (similar
5513         but not completely identical to grolbp's extension).  grops now has
5514         a -p command line option to override `papersize'.  Finally, grolbp
5515         has been adapted to the new syntax.
5517         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5518         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5519         elements.
5520         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5521         (CCSRCS): Add `paper.cc'.
5523         * src/include/font.h (font): Add `papersize' element.
5524         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5525         (font::scan_papersize): New function.
5526         (font::load_desc): Use it for handling `papersize' keyword.
5527         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5529         * src/devices/grops/ps.cc: Include paper.h.
5530         (user_paper_length): New global variable.
5531         (ps_printer): Use paper length as initializer.
5532         (make_printer): Updated.
5533         (main): Handle new `-p' option.
5534         * src/devices/grops/grops.man: Updated.
5536         * src/devices/grolbp/lbp.cc: Include paper.h.
5537         s/papersizes/lbp_papersizes/.
5538         (set_papersize): Use new `papersizes' array.
5539         (handle_unknown_desc_command): Don't handle `papersize'.
5540         (main): Use `font::scan_papersize' for handling `-p' option.
5541         * src/devices/grolbp/grolbp.man: Updated.
5543         * man/groff_font.man: Document `papersize'.
5544         * NEWS: Updated.
5546 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5548         * src/devices/grops/TODO: Updated.
5549         * src/devices/grops/grops.man: More info on paper formats.
5550         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5552 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5554         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5555         to list only if srcdir != currdir.
5556         (distfiles): New target.
5558         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5559         (NOMAKEDIRS): New variable.
5560         (DISTDIRS): Use it.
5562 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5564         Add .output request, similar to \! at top-level.
5566         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5567         (output_request): New function.
5568         (init_input_requests): Add it.
5569         Sorted.
5570         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5571         Document it.
5573         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5574         (prepare_examples): Fix typo.
5575         * doc/groff.texinfo (@direntry): Fix it.
5577 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5579         Including the doc subdir into groff's Makefile system.
5581         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5582         * configure.ac: Use it.
5583         Generate `doc/Makefile'.
5584         * configure: Regenerated.
5586         * Makefile.in (infodir, INSTALL_INFO): New variables.
5587         (MDEFINES, uninstall_dirs): Updated.
5588         (OTHERDIRS): Add `doc'.
5589         * Makefile.comm (CLEANDIRADD): New variable.
5590         (mostlyclean): Use it.
5592         * doc/Makefile.sub, doc/Makefile.in: New files.
5593         * doc/Makefile: Removed.
5595         * NEWS, INSTALL: Updated.
5597 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5599         * doc/homepage.ms: Renamed to ...
5600         * doc/webpage.ms: This.
5601         Use `.NHR'.
5603 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5605         Integrating the `mom' macro package, contributed by Peter Schaffter
5606         <df191@ncf.ca>.
5608         * contrib/mom/*: New subdirectory tree.
5609         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5610         be used for documentation files.
5611         (MDEFINES, uninstall_dirs): Use them.
5612         (OTHERDIRS): Add contrib/mom.
5613         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5614         @HTMLDOCDIR@.
5615         * MANIFEST, NEWS: Updated.
5617 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5619         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5620         if at outer level; at start-up we are at outer level.
5622         * src/roff/troff/input.cc (do_suppress): Implement it.
5623         Simplify \O[3].
5625         Add option -p to show progress information.
5626         pre-grohtml will now render only one page at a time, reducing the
5627         size of needed disk resources enormously.
5629         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5630         (imagePageName): New global variable.
5631         (psPageName, show_progress, currentPageNo): New global variables.
5632         (html_system): Close saved stderr and stdout handles.
5633         (write_end_image): Accept a parameter to control \O escape.
5634         (write_start_image): Adapted to new \O meaning.
5635         (char_buffer::write_upto_newline): Updated.
5636         (createAllPages): Replaced with...
5637         (createPage): This new function to create a single page for images.
5638         It uses `psselect' from the psutils package.
5639         (removeAllPages): Removed.
5640         (createImage): Updated.
5641         Handle progress display.
5642         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5643         (scanArguments): Add option -p.
5644         (makeTempFiles): Updated to create temp files for psPageName and
5645         imagePageName.
5646         (removeTempFiles): Removed.
5647         (main): Updated.
5649         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5650         html_printer::write_header): Append `\0' to `buffer'.
5651         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5652         (main): Handle -p.
5653         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5654         Handle `text_emitted'.
5655         (html_text::table_is_void): Slightly rewritten.
5656         (stop): New external symbol.
5657         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5658         (html_text::shutdown): Call `dump_stack'.
5659         (html_text::do_space): Rewritten.
5660         * src/devices/grohtml/grohtml.man: Document -p and the need of
5661         `psselect'.
5663         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5664         new \O syntax.
5665         Call \O[0] if `ps4html' is active.
5666         * tmac/s.tmac (@EQ, @EN): Handle html better.
5667         (@TS, TE): Ditto.
5668         * tmac/html.tmac: Don't use black for background colour.
5670         * src/roff/troff/node.cc: Include `div.h'.
5671         (troff_output_file::really_print_line): Don't use `is_on'. 
5672         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5673         troff_output_file::check_charinfo,
5674         troff_output_file::put_char_width, troff_output_file::put_char,
5675         troff_output_file::determine_line_limits, troff_output_file::draw,
5676         real_output_file::begin_page, glyph_color_node::tprintf,
5677         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5678         Use `is_on'.
5679         (troff_output_file::really_on): Call `do_motion'.
5680         (suppress_node::tprint): Use `get_page_number' instead of `%'
5681         register.
5682         Call `reset_output_registers' conditionally on `is_on'.
5684         * doc/groff.texinfo: Document new syntax of \O.
5685         * NEWS, man/groff_diff.man: Updated.
5687 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5689         * MORE.STUFF: Add info about David Frey's deroff implementation.
5690         Mention troff.org.
5692 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5694         Pic's `with' attribute now accepts positions.
5696         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5697         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5698         conflicts.
5699         (object_spec): Add rule for `WITH' and `position'.
5700         (relative_path): Give `corner' the precedence of `CHOP'.
5701         * src/preproc/pic/object.h (path): New members `pos' and
5702         `is_position'.
5703         * src/preproc/pic/object.cc: Updated initializers of `path'.
5704         (path::follow): Handle `is_position'.
5706         * doc/pic.ms: Completely updated grammar description.
5707         Many typographical improvements.
5709 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5711         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5712         code of x in range 0-127) also.
5713         * doc/groff.texinfo, man/groff_diff.man: Updated.
5715         Added keywords `north', `south', `east', and `west' for corners
5716         in pic.
5718         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5719         and WEST.
5720         (yylex): Handle them.
5721         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5722         (corner): Handle them.
5724 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5726         * src/devices/grops/grops.man: Clarify handling of `download' file.
5728 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5730         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5731         Jeffrey Friedl <jfriedl@yahoo.com>.
5733         * src/roff/troff/input.cc (spread_limit, warn_scale,
5734         warn_scaling_indicator): New global variables.
5735         (warnscale_request, spreadwarn_requests): New functions.
5736         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5737         (init_input_requests): Updated.
5738         (error_type): Add `OUTPUT_WARNING'.
5739         (do_error): Handle it.
5740         (output_warning): New warning function which shows output location.
5741         * src/roff/troff/env.h (spread_limit): New external variable.
5742         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5743         `output_warning'.
5744         (distribute_space): Emit warning if added space is larger than
5745         `spread_limit'.
5746         (environment::possibly_break_line): Emit warning if a line can't
5747         be adjusted on both sides.
5749         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5751 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5753         * src/roff/troff/node.cc (special_node::special_node): Use
5754         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5755         \X''\% crashes, for example.
5757         * doc/groff.texinfo: Document \! and \? used at top-level.
5759 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5761         * src/preproc/pic/pic.man: Fix some keyword syntax.
5762         Other minor typographical fixes.
5764         * src/roff/groff/groff.man: Fix typos.
5766 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5768         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5769         (ShortOpt[]): This to avoid problems with refer.
5771         * doc/pic.ms: Fix typo.
5772         Fix pic grammar description.
5774         * tmac/an-old.tmac (ne): Use de1, not de.
5776 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5778         * doc/groff.texinfo: Finished separation of glyphs and characters.
5779         Don't use the string `Appendix' for appendix headers (both in
5780         the text and the table of contents).
5781         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5782         directories.
5784         Use registers LL and LT (similar to -ms) for controlling the
5785         length of title and line, respectively, in the -man and -mdoc
5786         macro packages.
5788         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5789         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5790         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5791         (TH): Use \n[LL].
5792         (an-header, an-p-footer): Use \n[LT].
5793         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5794         doc/groff.texinfo: Document it.
5796 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5798         * doc/fdl.texi: New file.
5799         * doc/groff.texinfo: Include it.
5800         Define and use @copying.
5801         Starting with separating glyph, symbol, and character.
5803 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5805         * Makefile.in (EXEEXT): Set it.
5806         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5807         programs.
5809         * src/include/nonposix.h: Define GS_NAME.
5810         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5812         Some preliminary changes for EMX support under OS/2.
5814         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5815         __EMX__ similar to __MSDOS__.
5816         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5818 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5820         * doc/groff.texinfo: Integrated groff_out.man.
5821         Some macro fixes.
5823 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5825         * man/groff_out.man: Minor fixes.
5827 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5829         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5830         correct page references.
5831         Fixed many index entries.
5833 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5835         * man/roff.man: Enlarged.
5837 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5839         * doc/groff.texinfo: More examples, other fixes.
5841 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5843         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5844         will now form a chain, e.g.
5846           .pi foo
5847           .pi bar
5849         is now the same as
5851           .pi foo | bar
5853         This is for compatibility with plan 9's troff.
5855         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5856         with UNIX troff.
5857         * NEWS: Updated.
5859         * doc/groff.texinfo: Add documentation of remaining requests and
5860         registers.
5862 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5864         * doc/groff.texinfo: Add documentation of remaining escapes.
5866         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5867         * font/devdvi/*TC: Regenerated.
5869 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5871         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5872         if not in compatibility mode, i.e., increment relative to the
5873         previous height.
5874         * doc/groff.texinfo: Updated accordingly.
5876 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5878         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5880 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5882         * src/roff/groff/groff.man: Improve documentation of -P option.
5883         Other minor fixes.
5885 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5887         Add new escape \F to switch font family.
5889         * src/roff/troff/input.cc (token::next): Handle \F.
5890         * src/roff/troff/env.cc (environment::set_family): Handle
5891         `interrupted' flag.
5892         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5893         Document it.
5895 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5897         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5898         spaces in tags.
5900 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5902         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5903         \m[] and \M[], respectively.
5905         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5906         (symbol::symbol): Handle NULL string and empty string differently.
5907         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5908         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5909         Add optional parameter.
5910         Updated calling functions.
5911         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5912         `symbol::is_empty'.
5913         * src/roff/troff/env.cc (environment::set_font): Ditto.
5915         * src/preproc/pic/troff.cc (troff_output::set_fill,
5916         troff_output::reset_color: Updated.
5918         * tmac/www.tmac: Updated.
5920         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5921         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5922         Updated.
5924         * tmac/Xps.tmac: Remove some redundant code.
5926         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5927         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5928         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5929         \f[].
5931 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5933         * src/include/printer.h, src/libs/libdriver/printer.cc
5934         (printer::change_fill_color): New member function.
5935         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5937 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5939         * doc/groff.texinfo: Completed pass on gtroff reference.
5941 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5943         * doc/groff.texinfo: More fixes.
5945 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5947         * src/include/color.h: Decorate with `const'.
5948         Use `size_t'.
5949         Include `stddef.h'.
5950         * src/libs/libgroff.color.cc: Decorate with `const'.
5951         Use `size_t'.
5952         (color::color): Initialize members.
5953         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5954         command according to the documentation.
5956         * man/groff_out.man: Updated.
5957         Minor fixes.
5959 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5961         * src/preproc/html/pre-html.cc (write_start_image): Remove
5962         redundant output.
5963         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5965         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5966         \C'hy' caused an assertion failure.
5968         * src/roff/troff/env.cc (environment::environment): Initialize
5969         `emitted_node'.
5970         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5972 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5974         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5975         Document pvs request and .pvs register.
5977 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5979         * doc/groff.texinfo: Improve and fix documentation of diversions
5980         and environments.
5982 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5984         * doc/groff.texinfo: Fix documentation of drawing functions.
5985         Other minor fixes.
5987 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5989         * doc/groff.texinfo: Better documentation of double quotes as
5990         arguments.
5991         Other minor fixes.
5993 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5995         * man/groff_font.man: Document names of special characters better.
5996         * doc/groff.texinfo: Minor improvements.
5998         * tmac/lbp.tmac: Load latin1.tmac.
5999         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6001         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6003 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6005         * tmac/tty.tmac: Don't use shc request.
6006         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6007         * NEWS: Updated.
6009         * man/groff_diff.man: Minor fixes.
6011         * font/devlbp/*: Remove all `charXXX' entities.
6013         * src/libs/libgroff/font.cc (font::~font): Deallocate
6014         `special_device_coding'.
6015         (font::load): Use `new' for allocating `special_device_coding'.
6016         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6017         Removed unused member.
6019 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6021         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6022         (resource_manager::do_begin_binary,
6023         resource_manager::do_begin_data): Use it.
6025         * doc/texinfo.tex: Updated to version 4.2.
6027         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6028         (token::zero_width_break): New inline function.
6029         * src/roff/troff/input.cc (token::next): Use it.
6030         (token::description): Updated.
6031         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6032         (token::add_to_node_list, token::process): Use it.
6033         * NEWS, doc/groff.texinfo: Updated.
6035         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6036         * tmac/tty.tmac: Add missing backslash.
6038 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6040         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6041         `.ps' register instead of `.s' to handle fractional point sizes.
6042         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6043         limit_box::output): Ditto.
6044         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6045         size_box::output): Ditto.
6046         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6047         over_box::output): Ditto.
6048         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6049         script_box::output): Ditto.
6050         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6051         sqrt_box::output): Ditto.
6053 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6055         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6056         Fix typo.
6058 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6060         * doc/homepage.ms: Reduce title size.
6061         * doc/groff.texinfo: Fix documentation of .t register.
6062         Fix handling of colon.
6063         Fix `\' vs. `\\'.
6065         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6066         only if page length is positive to avoid a loop.
6068         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6069         tbl.
6071 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6073         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6074         s/__CYGWIN32__/__CYGWIN__/.
6076 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6078         * doc/gnu.xpm: New image contributed by Emily Mulley.
6079         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6080         (homepage.html): Be dependent on gnu.eps.
6081         * doc/homepage.ms: Updated to new image.
6083         * src/devices/grohtml/post-html.cc (html_printer): New member
6084         `sbuf_prev_hpos'.
6085         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6086         (html_printer::sbuf_continuation): Use it.
6088 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6090         * src/libs/libgroff/getopt.c: Updated to latest version.
6092         * tmac/README: More on hyphen.tex license.
6094 2002-03-26  Larry Kollar  <kollar@alltel.net>
6096         * doc/groff.texinfo: Add documentation of most missing requests.
6098 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6100         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6101         of `+-', `mu', and `di', respectively.
6103         * font/devascii/R.proto, font/devutf8/R.proto,
6104         font/devlatin1/R.proto, font/devhtml/R.proto,
6105         font/devcp1047/R.proto, font/devlpb/*: Add them.
6106         * font/devps/generate/textmap: Ditto.
6107         * font/devps/*: Regenerated.
6108         * font/devlj4/generate/text.map: Add them.
6109         * font/devlj4/*: Regenerated.
6110         * font/devdvi/generate/tc.map: Use them.
6111         * font/devdvi/generate/texsy.map: Add them.
6112         * font/devdvi/*: Regenerated.
6113         * font/devX*/*: Regenerated.
6115         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6116         tmac/tty-char.tmac: Updated.
6118         * NEWS, man/groff_char.man: Updated.
6120 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6122         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6123         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6124         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6125         we use `.fchar' in dvi.tmac.
6126         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6127         * tmac/Xps.tmac: Simplify some char definitions.
6128         Add definition for \[f/].
6129         * man/groff_char.man: Updated for new X.tmac.
6131         * tmac/README: New file.
6133 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6135         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6136         internal .y.o rule took precendence over the .y.cc rule, compiling
6137         the yacc files with gcc instead of g++.
6139 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6141         * tmac/dvi.tmac: Add replacement font for `CB'.
6143         * tmac/doc.tmac: s/request/macro/ in messages.
6144         (doc-generic-macro): Improve error message.
6145         * tmac/groff_mdoc.man: Minor improvements.
6147 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6149         * doc/groff.texinfo: Document possible conflict between `tr' and
6150         `char' requests.
6152 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6154         Improve handling of hyphenation patterns.  It is now possible to
6155         use most of TeX's pattern files unmodified.  To make the process
6156         more flexible, a new request `hpfcode' has been added which
6157         provides a character code mapping for the `hpf' request.  See
6158         comment before hpf_getc() for more details.
6160         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6161         functions.
6162         (read_patterns_file): Additional parameter for exception dictionary.
6163         Extended to recognize \pattern, \hyphenation, and \endinput.
6164         (do_hyphenation_patterns_file): Updated.
6165         * src/roff/troff/env.h (hpf_code_table): New extern.
6167         * src/roff/troff/input.cc (hpf_code_table): New array.
6168         (init_hpf_code_table, hyphenation_patterns_file_code): New
6169         functions.
6170         (hyphenation_code): Handle translation from `trin' correctly.
6171         (main, init_input_requests): Updated.
6172         (charinfo::set_translation): Handle hyphenation code also.
6174         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6175         inline function.
6177         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6178         char' is used for offsets in hyphenation exceptions.
6180         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6182         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6184 2002-03-20  Larry Kollar  <kollar@alltel.net>
6186         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6187         requests.
6189 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6191         * tmac/html.tmac: Fix serious typo.
6193 2002-03-17  Larry Kollar  <kollar@alltel.net>
6195         * doc/groff.texinfo: Add documentation for `writec' request.
6197 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6199         Added request `hpfa' to append hyphenation patterns.
6201         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6202         parameter `append'.
6203         (hyphenation_patterns_file): Renamed to...
6204         (do_hyphenation_patterns_file): This.
6205         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6206         functions.
6207         (init_hyphen_requests): Updated.
6208         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6210 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6212         Added request `writec' in analogy to `tmc'.
6214         * src/roff/troff/input.cc (write_request): Renamed to...
6215         (do_write_request): This.
6216         Added one parameter.
6217         (write_request, write_request_continue): New functions.
6218         (init_input_requests): Updated.
6219         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6221         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6222         5-10000pt.
6223         * NEWS: Document it.
6225 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6227         * man/groff.man: Add writem request.
6229         Add request `trin' (translate input) to make `.asciify' work
6230         correctly.  This is necessary since `charXXX' entity names are no
6231         longer hardcoded in font definition files.
6233         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6234         `translate_input' members.
6235         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6236         charinfo::set_translation_input): New methods.
6237         (charinfo::set_translation): Add third argument.
6238         * src/roff/troff/input.cc (charinfo:set_translation): Set
6239         `asciify_code'.
6240         (do_translate): Add second argument.
6241         (translate_input): New function.
6242         (init_input_requests): Updated.
6243         * src/roff/troff/node.cc (glyph_node::asciify,
6244         composite_node::asciify): Use `get_asciify_code'.
6246         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6248         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6250 2002-03-14  Larry Kollar  <kollar@alltel.net>
6252         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6254 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6256         Add a new request `sizes' similar to the `sizes' command in DESC
6257         files.
6259         * src/roff/troff/env.cc (override_sizes): New function.
6260         (init_env_requests): Use it.
6261         * src/roff/troff/token.h: Export `read_string'.
6262         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6264 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6266         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6268 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6270         * tmac/pspic.tmac: Add support for -Tdvi.
6271         * tmac/dvi.tmac: Include pspic.tmac.
6272         * src/devices/grodvi/grodvi.man: Document it.
6273         * NEWS: Updated.
6275         * font/devlj4/generate/Makefile: Fix URL of metric files.
6277 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6279         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6281 2002-03-09  Larry Kollar  <kollar@alltel.net>
6283         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6285 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6287         * doc/groff.texinfo: Fixes for texinfo 4.1.
6289 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6291         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6292         included.
6293         Handle CYGWIN properly.
6295 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6297         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6298         * tmac/lbp.tmac: Add some font translations.
6300 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6302         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6303         font/devhtml/R.proto: Remove `charXXX'  entries.
6304         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6305         where appropriate.
6307         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6308         * font/devlj4/*: Regenerated all font definition files.
6309         * tmac/lj4.tmac: Load latin1.tmac.
6311         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6312         from 2000-06-17: LJ4 metric files are *not* text files.
6314         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6315         register to test for EBCDIC.
6317 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6319         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6320         files (as grops already does).
6321         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6322         files.
6323         * src/devices/grops/grops.man: Document comment lines in encoding
6324         files.
6326         * tmac/cp1047.tmac: New file.
6327         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6328         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6329         * tmac/Makefile.sub (NORMALFILES): Updated.
6331         * tmac/ec.tmac: Don't load latin1.tmac again.
6333         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6334         font/devps/generate/dingbats.map,
6335         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6336         font/devps/generate/Makefile (symbolmap): Add header comment.
6337         * font/devps/generate/textmap: Ditto.
6338         Remove `charXXX' entries.
6339         * font/devps/symbolmap: Regenerated.
6340         * font/devps/*: Regenerated all font definition files.
6342 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6344         Add color support to grodvi (for drawing colors are currently
6345         translated to gray values).
6347         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6348         (dvi_printer): Add `cur_color' member.
6349         (dvi_printer::set_color): New function.
6350         (draw_dvi_printer): Remove `fill'.
6351         (draw_dvi_printer::fill_next): Pass environment as parameter.
6352         Update code for new color support translated to gray.
6353         (dvi_printer::set_char): Updated.
6354         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6355         changes crossing the page border.
6356         (dvi_printer::draw): Updated.
6357         Remove cases `f' and `F'.
6358         * tmac/dvi.tmac: Add color definitions.
6359         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6361         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6362         used incorrectly.
6364         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6365         versions of autoconf.
6366         * configure: Updated.
6368         * doc/homepage.ms: Use `.blm'.
6369         * tmac/www.tmac (www-depth): New auxiliary variable.
6370         (www-pop-level): Don't issue HTML tag.
6371         (ULS, ULE, LI): Use absolute indentation.
6373         * src/devices/grops/ps.cc (ps_printer::begin_page,
6374         ps_printer::end_page): Switch forth and back to default color while
6375         starting a new page.
6377 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6379         Add EC and TC fonts to devdvi.
6381         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6382         * font/devdvi/generate/cork.map: Renamed to...
6383         * font/devdvi/generate/ec.map: This.
6384         Remove entry for `aq'.
6385         * font/devdvi/generate/tc.map: New file.
6386         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6387         EC and TC fonts.
6388         (FONTS): Updated.
6389         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6390         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6391         * tmac/ec.tmac: New file.
6392         * tmac/Makefile.sub (NORMALFILES): Updated.
6393         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6394         * man/groff_char.man: Check `ECFONTS' register.
6396         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6398 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6400         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6401         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6402         * font/devdvi/*: Updated.
6403         * tmac/dvi.tmac: Formatting.
6405         Add font `HBI' for the dvi output.
6406         Add support for font families `T' and `H'.
6408         * font/devdvi/HBI: New file.
6409         * font/devdvi/B: Renamed to ...
6410         * font/devdvi/TB: This.
6411         * font/devdvi/BI: Renamed to ...
6412         * font/devdvi/TBI: This.
6413         * font/devdvi/I: Renamed to ...
6414         * font/devdvi/TI: This.
6415         * font/devdvi/R: Renamed to ...
6416         * font/devdvi/TR: This.
6417         * font/devdvi/H: Renamed to ...
6418         * font/devdvi/HR: This.
6419         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6420         * font/devdvi/generate/Makefile (HBI): New rule.
6421         (FONTS): Updated.
6422         (R, I, B, BI, H): Renamed to ...
6423         (TR, TI, TB, TBI, HR): This, respectively.
6424         (srcdir): Fixed.
6425         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6426         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6427         Add `styles' and `family' keywords.
6428         * tmac/dvi.tmac: Alias `H' to `HR'.
6429         Add some fspecial requests for italic fonts.
6430         Add TR and TI as special.
6431         Add support for `_' with font CWI.
6433         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6434         operator `:'.  Until now, the expression `0:1' would return 2
6435         instead of 1.
6437 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6439         * man/groff_char.man: Added some missing PS glyph names (from the
6440         Adobe Glyph List).
6441         * font/devps/generate/textmap, font/devps/symbolmap: Add
6442         `arrowupdn'.
6444         * doc/groff.texinfo: Minor additions and fixes.
6445         * man/groff_diff.man: Remove documentation of fp request.  This
6446         is already covered in the original troff manual.
6447         Updated to be consistent with other doc files.
6448         * NEWS: Updated.
6450 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6452         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6453         TTYDEVDIRS.
6454         Define new variable OTHERDEVDIRS (containing `font/devlj4
6455         font/devlbp' if not EBCDIC).
6456         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6457         (OTHERDEVDIRS): New variable.
6458         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6459         * configure: Regenerated.
6461         * NEWS, src/devices/grotty/grotty.man: Updated.
6463 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6465         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6466         get_line_arg): Honour input level.
6468         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6470         * font/*/*: Implement it in all font files.
6471         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6472         * font/devps/symbolmap: Updated.
6473         * font/devlj4/generate/text.map: Updated.
6474         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6475         * font/devdvi/generate/texmi.map: Updated.
6477         * font/devutf8/R.proto: Remove all `charXXX' entries.
6478         * font/devutf8/NOTES: Updated.
6480         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6481         version 4.1.0.
6483         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6485         * NEWS, man/groff_char.man: Updated.
6487 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6489         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6491 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6493         * src/roff/grog/grog.pl: Fix computation of $refer.
6495 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6497         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6498         `snprintf' and `vsnprintf'.
6500         * src/include/htmlindicate.h: Renamed to...
6501         * src/include/htmlhint.h: This.
6502         * src/include/Makefile.sub: Updated.
6503         * src/preproc/eqn/main.cc: Updated.
6505 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6507         * man/roff.man, man/groff_out.man, man/groff.man,
6508         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6509         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6511         * win32-diffs: Updated.
6513 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6515         * doc/Makefile (clean): Add *.eps.
6516         (MEMACROS): Removed.
6517         (TFLAG): New variable.
6518         (TROFF): Use it.
6519         Add -ww.
6520         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6521         (.me.dit): Fixed.
6522         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6524         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6525         `.tl'.
6526         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6527         unstripped.
6528         * src/roff/troff/troff.man: Fix order of parameter description.
6530         * NEWS: Updated.
6532 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6534         Simplify image handling for grohtml.
6535         Fix <p> bug.
6537         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6538         comment out.
6539         (html_text::dump_stack): Don't emit newline while debugging.
6540         (html_text::do_push) [DEBUGGING]: Print more info.
6541         (html_text::check_emit_text): Fix handling of <p>.
6542         * src/devices/grohtml/html.h: Updated.
6543         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6544         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6545         send its data to stderr also.
6546         Update all callers.
6547         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6548         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6549         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6551         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6552         Removed.
6553         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6554         is_inline_image): Removed.
6555         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6556         (graphic_start, graphic_end): Removed.
6557         * src/include/htmlindicate.h: Updated.
6558         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6559         (macroset_template): New global variable.
6560         (makeFileName): Use `macroset_template'.
6561         (write_end_image): Don't take a parameter.
6562         Don't emit newline.
6563         (write_start_image: Don't emit newline.
6564         (char_buffer::write_upto_newline): Updated.
6565         (char_buffer::skip_to_newline): Renamed to ...
6566         (char_buffer::skip_until_newline): This.
6567         Fix code.
6568         (char_buffer::write_file_troff, char_buffer::write_file_html):
6569         Simplified.
6570         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6571         (removeAllPages): Remove `DEBUGGING' conditionals.
6572         (addRegDef, dump_args): New functions.
6573         (char_buffer::do_html, char_buffer::do_image): Handle
6574         `www-image-template' command line variable.
6575         Add more debugging code.
6576         (addps4html): Removed.
6577         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6579         * src/preproc/eqn/main.cc: Include `ctype.h'.
6580         (suppress_html): Removed.
6581         (do_file): Updated.
6582         (inline_equation): Use `html_begin_suppress' and
6583         `html_end_suppress'.
6584         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6585         (troff_output::start_picture, troff_output::finish_picture):
6586         Updated.
6587         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6588         (process_input_file): Updated.
6590         * src/roff/troff/div.cc (page_number): Set page number only if the
6591         `ps4html' register isn't defined.
6592         * src/roff/troff/input.cc (image_no): New external variable.
6593         (do_suppress): Use it.
6594         * src/roff/troff/node.h (suppress_node::image_id): New member.
6595         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6596         (suppress_node::suppress_node): Initialize `image_id' member.
6597         (suppress_node::same): Handle `image_id' also.
6598         (suppress_node::copy): Updated.
6599         (last_image_id): New global variable.
6600         (suppress_node::tprint): Use it.
6602         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6603         HTML-IMAGE-END.
6604         * tmac/pspic.mac (PSPIC): Fix html support.
6605         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6606         * tmac/www.tmac (www-image-template): Set up.
6607         (HTMLINDEX): Renamed to...
6608         (HX): This.
6609         (BODYCOLOR): Renamed to...
6610         (BCL): This.
6611         (BACKGROUND): Renamed to...
6612         (BGIMG): This.
6613         (URL): Change order of parameters for consistency.
6614         (MAILTO): Renamed to...
6615         (MTO): This.
6616         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6617         (IMG, PIMG, MPIMG): This.
6618         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6619         (HnS, HnE): This.
6620         (LINKS): Renamed to...
6621         (LK): This.
6622         (LINE): Renamed to...
6623         (HR): This.
6624         (NO-AUTO-RULE): Renamed to...
6625         (NHR): This.
6626         (HTML-TL): Renamed to...
6627         (HTL): This.
6628         (UL-BEGIN, UL-END): Renamed to...
6629         (ULS, ULE): This.
6630         (DROPCAP): Renamed to...
6631         (DC): This.
6632         (TS, TE, EQ, EN): Provide default definitions.
6633         (www-make-unique-name): Updated.
6634         (HTML-IMAGE-INLINE): Fix typo.
6635         * tmac/groff_www.man: Updated.
6637         * doc/Makefile (homepage.html): Add option -r to grohtml.
6638         Use shortened image name.
6639         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6640         * doc/homepage.ms: Updated and extended.
6642 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6644         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6646         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6647         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6648         (tty_printer::put_color): Use it.
6649         (ttr_printer::end_page): Simplify.
6651 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6653         * tmac/groff_tmac.man: Moved to...
6654         * man/groff_tmac.man: This place.
6655         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6657 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6659         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6660         $(COMPILE.c) to not include groff's assert.h.
6662         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6663         variable.
6664         * NEWS, src/drivers/grotty/grotty.man: Document it.
6666 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6668         * src/libs/snprintf/snprintf.c: Updated to latest version
6669         (2002-02-11).
6671         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6672         test whether there is `.]' also.
6673         Don't check for spaces after `.['.
6674         * src/roff/grog/grog.sh: Do the same.
6676 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6678         Illegal -> Invalid.
6680         * src/libs/libgroff/illegal.cc: Renamed to ...
6681         * src/libs/libgroff/invalid.cc: This.
6682         (illegal_char_table): Renamed to ...
6683         (invalid_char_table): This.
6684         * src/libs/libgroff/Makefile.sub: Updated.
6685         * win32-diffs: Updated.
6687         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6688         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6689         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6690         font::load), src/preproc/eqn/main.cc (read_line, main),
6691         src/preproc/eqn/lex.cc (file_input::read_line),
6692         src/preproc/pic/lex.cc (file_input::read_line,
6693         simple_file_input::get, simple_file_input::peek),
6694         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6695         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6696         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6697         do_bib), src/preproc/tbl/main.cc (table_input::get),
6698         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6699         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6700         do_zero_width, read_request, encode_char, ps_get_line,
6701         transparent_file, get_char_for_escape_name, transparent_translate,
6702         asciify, input_char_description, read_string, set_string),
6703         src/roff/troff/env.cc (environment::add_html_tag),
6704         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6706         * src/include/lib.h: Updated.
6708         * src/preproc/eqn/eqn.cc: Removed.
6710         * NEWS: Updated.
6712         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6714 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6716         * doc/gnu.xpm: New image.
6717         * doc/Makefile (DOCS): Add homepage.ps.
6718         Add rules for converting xpm->png and xpm->eps.
6719         Use `gnu.{xpm,eps}' as image names.
6720         * doc/homepage.ms: Updated.
6722 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6724         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6725         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6726         Remove calls to `B1' and `B2'
6727         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6728         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6729         auxiliary variables for MARGIN-PNG-IMAGE.
6730         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6731         auxiliary macros for MARGIN-PNG-IMAGE.
6732         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6733         the margin.
6734         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6735         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6736         (DROPCAP): New macro to produce dropcap characters.
6737         (www-do-image): Renamed back to...
6738         (HTML-DO-IMAGE): This.
6739         Updated all callers.
6741         * doc/Makefile (gnubw.eps): Updated.
6742         * doc/homepage.ms: Updated.
6744 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6746         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6747         Added `linethick' to table in section `Style Variables'.
6749 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6751         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6753 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6755         Adding options -C (compatibility mode) and -c (grotty's old output
6756         scheme) to nroff.
6758         * src/roff/nroff/nroff.sh: Implement it.
6759         Remove `-Wall'.
6760         * NEWS, src/roff/nroff/nroff.man: Updated.
6762         * PROBLEMS: Document bison 1.32 bug.
6764         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6766         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6767         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6768         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6769         * src/roff/troff/env.h: Add prototype for `title'.
6771         Adding EBCDIC support to grotty.
6773         * src/devices/grotty/tty.cc (CSI): New macro.
6774         (SGR_*, tty_printer::put_color): Use it.
6776 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6778         Implementing color support in grotty.  The new switch -c activates
6779         the old drawing scheme, disabling color at the same time.  The new
6780         switch `-i' selects italic instead of underlining (SGR only).
6782         * src/devices/grotty/tty.cc (putstring): New define instead of
6783         `fputs'.  Updated all callers.
6784         (old_drawing_scheme): New global variable.
6785         (COLOR_CHANGE): New enum value.
6786         (SGR_*): New defines containing color handling escape sequences.
6787         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6788         (glyph): New members `back_color_idx' and `fore_color_idx'.
6789         (glyph::order): Add COLOR_CHANGE.
6790         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6791         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6792         New methods `make_underline', `make_bold', `color_to_idx',
6793         `change_color', `put_color'.
6794         (cu_flag): Moved into `tty_printer' class.
6795         (tty_printer::tty_printer): Initialize colors.
6796         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6797         tty_printer::draw, tty_printer::end_page): Handle colors also.
6798         (main): Add options `-c' and `-i'.
6799         (usage): Updated.
6800         * NEWS, src/devices/grotty/grotty.man: Updated.
6802         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6803         * src/libs/libgroff/errarg.c: Implement it.
6805         * src/include/printer.h (printer): Add `change_color' method
6806         (currently used by grotty only).
6807         * src/libs/libdriver/printer.cc: Implement it.
6808         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6809         call to `pr->change_color'.
6811         * src/roff/troff/node.cc (troff_output_file::fill_color,
6812         troff_output_file::glyph_color): Call `do_motion'.
6814         * tmac/tty.tmac: Add color definitions.
6816         * src/roff/groff/groff.man: Minor fixes.
6818 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6820         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6821         it.  This is a preparation for future changes.
6823 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6825         * src/roff/troff/input.cc (process_input_stack): Fix the case
6826         where leading spaces are followed by \f or \s; previously, an
6827         incorrect space width has been used.
6829         * doc/roff.man (quoted_char): Fix argument.
6830         (comment): Define string.
6832 2002-02-04  Larry Kollar  <kollar@alltel.net>
6834         * doc/groff.texinfo: More fixes.
6836 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6838         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6839         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6840         `restore_compatibility' before `output_string' -- the LINE_STRING
6841         register now already contains proper switches from and to
6842         compatibility mode.
6844         * man/groff_char.man: Add Euro symbol.
6845         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6846         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6847         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6848         Other minor fixes.
6850         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6851         texinfo->pdf.
6852         (.texinfo.html): Add support for texinfo->html.
6854 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6856         Added three new requests `ds1', `as1', and `ami'.  The former two
6857         are equivalent to `ds' and `as' with the difference that
6858         compatibility mode is saved on entry, switched off during string
6859         expansion, and restored on exit.  The latter is the pendant to `dei'
6860         for `am'.
6862         (do_define_string): Use `define_mode' and `calling mode'.
6863         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6864         end of string, respectively.
6865         (define_string, append_string): Use `calling_mode'.
6866         (define_nocomp_string, append_nocomp_string,
6867         define_string_indirect): New functions.
6868         (init_input_requests): Updated.
6869         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6871         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6872         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6873         mm macro package accesses this string register directly.
6874         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6876         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6877         compatibility mode.
6879 2002-02-02  Larry Kollar  <kollar@alltel.net>
6881         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6883 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6885         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6887 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6889         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6890         * man/groff_out.man: Revised and updated.
6892 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6894         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6895         out the unused `{' and `}' commands.  Undefined by default.
6896         (IntArray): Make `data' private.
6897         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6898         new methods instead.
6899         (skip_line_D, skip_to_end_of_line): New functions.
6900         (get_D_fixed_args): Use `skip_line_D'.
6901         Changed to handle dummy odd arguments by ...
6902         (get_D_fixed_args_odd_dummy): This new function.
6903         (get_D_variable_args): Split some code into ...
6904         (get_possibly_integer_args): This new function.
6905         (send_draw): Use more `const'.
6906         (delete_current_env): New function.
6907         (position_to_end_of_args): Use `size_t'.
6908         Updated.
6909         (send_draw): Updated.
6910         (parse_D_command): Handle `c', `C', and `t' better.
6911         Updated.
6912         (do_file): Updated.
6914 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6916         * NEWS: Revised.
6917         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6918         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6919         proper HTML output -- see the comment in the file for more
6920         information.
6921         Updated all calls.
6923 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6925         Fixes to make color changes of 2002-01-21 work with grohtml.
6927         * src/devices/grohtml/post-html.cc (style): Updated.
6928         (html_printer): Remove unused methods.
6929         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6930         html_printer::special): Updated.
6931         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6932         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6933         Added some debugging code.
6934         (html_text::start_tag): Updated.
6935         (html_text::do_push): New method.
6936         (html_text::push_para): Call it.
6937         Add method for handling color.
6938         (html_text::do_color): Updated.
6939         (html_text::shutdown): Handle color.
6940         * src/devices/grohtml/html-text.h (tag_definition): New member
6941         `col'.
6942         Updated.
6944 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6946         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6948 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6950         Add two switches -a and -g to control the antialiasing bits for
6951         text and graphics, respectively.
6953         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6954         `-g'.
6955         * src/devices/grohtml/grohtml.man: Document them.
6956         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6957         New macros.
6958         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6959         (setupAntiAlias): New function.
6960         (createAllPages): Updated.
6961         (scanArguments): Handle `-a' and `-g'.
6962         (main): Call `setupAntiAlias'.
6963         * NEWS: Updated.
6965 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6967         * doc/groff.texinfo (Def*): Call index function after deffn.
6969         * tmac/html.tmac: Call `nroff' request.
6971 2002-01-26  Larry Kollar  <kollar@alltel.net>
6973         * tmac/groff_ms.man: Add some omissions.
6975 2002-01-25  Larry Kollar  <kollar@alltel.net>
6977         * tmac/groff_ms.man: Typographical improvements.
6979 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6981         * doc/groff.texinfo: Updated version and copyright.
6982         * src/devices/grops/grops.man: Updated.
6984         * tmac/groff_tmac.man: Fix `ig' macro.
6986         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6987         nroff mode.
6988         Use `.ne' unconditionally everywhere.
6989         (TS): Only insert some vertical space.  Doing a page break is no
6990         longer necessary due to the redefinition of the `ne' request.
6992         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6993         warning for unknown subcommands but parse and pass them to the
6994         device driver.
6996 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6998         * tmac/groff_www.man, NEWS: Fix typos.
7000 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7002         Complete revision of color support:
7004           Adapt programs to the new libdriver/input.cc.
7006           Color spaces are no longer converted to RGB but transferred as-is
7007           in the troff intermediate output format.
7009           Handle default color gracefully.  troff now supports a `default'
7010           color (which can't be changed).
7012           grops will now use the proper color space functions if available.
7014           Update pic.
7016         Note that currently grohtml doesn't handle colors properly.  This
7017         has to be fixed.
7019         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7020         (ui_to_a): New function.
7021         * src/include/lib.h: Updated.
7023         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7024         (color): Simplified; removed all `double' members and methods.
7025         A new array `components' now holds the color parameters.
7026         (color::is_default, color::get_components): New methods.
7027         (color::operator==, color:operator!=): New.
7028         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7029         to make access to the `components' array more comprehensible.
7030         * src/libs/libgroff/color.cc: Implement new color support.
7031         (atoh): Small fixes.
7032         (color::read_encoding): Simplified for new troff intermediate color
7033         output format.
7034         (default_color): New global variable.
7036         * src/roff/troff/input.cc (default_symbol): New global variable.
7037         (lookup_color): Use it.
7038         (default_black): Removed.
7039         (do_glyph_color, do_fill_color): Simplified.
7040         (define_color): Handle default color.
7041         Improve warnings.
7042         (do_if_request): Handle default color.
7043         * src/roff/troff/env.cc (environment::environment): Initialize
7044         colors with `default_color'.
7045         * src/roff/troff/node.cc (troff_output_file::put): Add method
7046         for `unsigned int'.
7047         (troff_output_file::hex): Removed.
7048         (troff_output_file::fill_color, troff_output_file::glyph_color):
7049         Updated to include/color.h and libdriver/input.cc.
7051         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7052         fill color properly (identically to the outline color).  \D'f...'
7053         doesn't work any more.
7054         All function calls to it updated.
7056         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7057         Updated.
7058         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7059         Updated.
7061         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7062         (ps_printer::sbuf_color): Make a real member instead of pointer.
7063         (ps_printer::fill_color, ps_printer::output_color): Removed.
7064         (ps_printer::ps_printer): Updated.
7065         (ps_printer::set_char): Ditto.
7066         (ps_printer::set_color): Use various color schemes.
7067         Use `put_color' method.
7068         (ps_printer::flush_sbuf): Don't set color.
7069         (ps_printer::fill_path): Take `environment' as parameter.
7070         Simplify color handling.
7071         (ps_printer::set_line_thickness): Renamed to ...
7072         (ps_printer::set_line_thickness_and_color): This (and updated).
7073         (ps_printer::set_color): Change second parameter from `complete'
7074         to `fill' which better describes what it does.
7075         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7076         and text in the right order.
7077         Updated.
7078         Remove branches for `f' and `F'; this is handled by
7079         libdriver/input.cc.
7080         * src/devices/grops/ps.h: Updated.
7081         * font/devps/prologue (FL): Redefined.
7082         ({F,C}r,k,g: New color functions (with and without filling).
7084         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7085         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7086         doc/groff.texinfo, NEWS: Updated.
7088 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7090         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7091         in this file for what has been changed.
7093 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7095         * test-groff: Fix GROFF_FONT_PATH.
7096         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7097         is read before .TH or .Dd is parsed.
7099 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7101         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7102         quadrant boundaries.
7104 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7106         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7107         applied last patch.
7109 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7111         * tmac/doc.common: Initialize %I register for the %I macro to
7112         avoid (harmless) warning.
7113         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7114         when in the SYNOPSIS section.
7116 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7118         * src/preproc/pic/lex.cc (get_token): Fix typo.
7120 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7122         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7124 2002-01-17  Larry Kollar  <kollar@alltel.net>
7126         * tmac/groff_ms.man: Completely rewritten.
7128 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7130         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7132 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7134         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7135         fill colors.
7136         (ps_printer::draw): Ditto.
7138 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7140         * tmac/groff_mdoc.man: Minor fixes.
7142 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7144         * man/groff_out.man: Some fixes.
7146 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7148         * doc/pic.ms: Fix typos.
7150 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7152         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7154 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7156         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7157         symbols.
7158         * NEWS: Updated.
7160 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7162         * man/groff_out.man: Revised.
7163         * man/roff.man: Minor fixes.
7164         * src/roff/troff/troff.man: Some reordering.
7166 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7168         * tmac/an-old.tmac: Add dummy macros for equation support.
7170 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7172         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7174         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7175         man pages.
7176         * tmac/groff_man.man: Small improvements.
7178 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7180         * man/groff_diff.man: Revised.
7182 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7184         * tmac/www.tmac: Remove extraneous backslash.
7186 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7188         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7190 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7192         Integrated groffer, contributed by Bernd Warken.
7194         * contrib/groffer/*: New.       
7195         * Makefile.in, NEWS: Updated.
7197 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7199         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7200         registers defined in macro packages.
7201         Revising the ms part.
7203 2002-01-04  Larry Kollar  <kollar@alltel.net>
7205         * doc/groff.texinfo: Add documentation for ms macros.
7207 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7209         First step in adding PS support for the Euro symbol.  `eu' is the
7210         official Euro logo, `Eu' is a font-specific glyph variant.
7212         * font/devps/text.enc: Add `Euro' at position 9.
7213         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7214         * font/devps/symbolmap: Regenerated.
7216         * NEWS: Updated.
7218 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7220         * man/roff.man: Revised.
7222 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7224         * src/roff/groff/groff.man: Completely rewritten.
7226 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7228         * doc/Makefile: Updated.
7230 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7232         * tmac/www.tmac: Make all names of internal macros/registers/strings
7233         lowercase, and prepend `www-'.
7234         Other minor changes.
7235         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7237 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7239         Implement option `-b' in grohtml to set the HTML background colour.
7241         * src/devices/grohtml/post-html.cc (default_background): New global
7242         variable.
7243         (html_printer::html_printer): Initialize `background' to
7244         `default_background'.
7245         (main): Implement option `-b'.
7246         (usage): Updated.
7247         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7248         of `-b' option.
7249         * src/devices/grohtml/grohtml.man: Updated.
7250         * doc/Makefile (.ms.html): Use `-b'.
7251         * tmac/html.tmac: Don't set background color.
7253         Add new grohtml tag `.html-tl'.
7255         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7256         member variable.
7257         (title_desc::title_desc): Updated.
7258         (html_printer::troff_tag): Handle `.html-tl'.
7259         (html_printer::write_title): Use `with_h1'.
7260         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7261         (HTML-TL): New macro.
7263         Add support for unordered lists in HTML.
7265         * tmac/www.tmac (www-level): New auxiliary register.
7266         (www-level1, www-level2, www-level3): New auxiliary strings.
7267         (www-push-level, www-pop-level): New auxiliary macros
7268         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7270         Miscellaneous.
7272         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7273         (DEFAULT_VERTICAL_OFFSET): Removed.
7274         (IMAGE_BOARDER_PIXELS): Set to 0.
7275         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7276         (vertical_offset): Initialize with 0.
7277         (gsPaper): New global variable.
7278         (get_resolution): Scan for and return unsigned int.
7279         (get_papersize): New function to get paper length from devps/DESC.
7280         (determine_vertical_offset): New function.
7281         (createAllPages): Produce gray-level images and use proper page
7282         length.
7283         (createImage): Use `-quiet' option of pnmcrop.
7284         (addZ): Fix passing of `-Z'.
7285         (scanArguments): Fix handling of `-o'.
7286         (main): Call `determine_vertical_offset'.
7287         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7288         code for `l'.
7290         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7291         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7292         glyph descenders properly.
7294         * doc/homepage.ms: Include `gnubw.eps'.
7295         * doc/Makefile (gnubw.eps): New rule.
7296         (homepage.html): Depend on `gnubw.eps'.
7298 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7300         * src/roff/troff/input.cc (default_black): Fix return value.
7302 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7304         * tmac/doc-common (Dt): Change output of architecture strings.
7305         Do some syntax cleanup.
7306         * tmac/groff_mdoc.man: Updated.
7308 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7310         Adding an `itc' request (input line trap accepting \c).
7312         * src/roff/troff/env.h (environment): New member
7313         `continued_input_trap'.
7314         Make `do_input_trap' a friend function instead of `input_trap'.
7315         * src/roff/troff/env.cc (environment::environment,
7316         environment::copy): Updated.
7317         (environment::newline): Implement it.
7318         (do_input_trap): New function.
7319         (input_trap): Call `do_input_trap'.
7320         (input_trap_continued): New function.
7321         (init_env_requests): Updated.
7322         * src/roff/troff/TODO: Updated.
7324         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7325         `.it'.
7327         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7329 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7331         * tmac/doc-common, tmac/doc-syms: Small updates.
7333 2001-12-22  Colin Watson  <cjwatson@debian.org>
7335         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7337 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7339         * MANIFEST: New file.
7341 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7343         * src/preproc/grn/grn.man: Updated.
7345 2001-12-22  Solar Designer  <solar@openwall.com>
7347         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7348         (DBRead): Use it.
7350 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7352         Implement a fallback character request `.fchar'.
7354         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7355         (is_fallback): New inline function.
7356         * src/roff/troff/input.cc (do_define_character): New function.
7357         (define_character): Call `do_define_character'.
7358         (define_fallback_character): New function.
7359         (init_input_requests): Add `fchar'.
7360         (charinfo::charinfo): Updated.
7361         (charinfo::set_macro): New argument to set `fallback' flag.
7362         * src/roff/troff/node.cc (make_glyph_node, make_node,
7363         node::add_char): Check `fallback' flag.
7364         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7366 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7368         * groff.texinfo: Document exact search algorithm for glyphs.
7370 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7372         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7373         the left side of $(MANPAGES) rule to make it always non-empty.
7375 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7377         * src/roff/troff/input.cc (default_black): Define default color
7378         `black' if not yet defined.
7380 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7382         Implement new string-valued register `.fn' to return the current
7383         real (internal) font name.
7385         * env.cc (environment::get_font_name_string): New function.
7386         (init_env_requests): Add `.fn' register.
7387         * env.h (environment): Updated.
7388         * node.cc (font_info): Make `get_font_name' a friend.
7389         (get_font_name): New function.
7390         * node.h: Updated.
7392         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7394 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7396         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7398 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7400         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7402 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7404         * man/groff_diff.man: Adding documentation for \O.
7406 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7408         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7409         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7411 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7413         * man/roff.man: Revised.
7414         * src/roff/groff/groff.man: Replace man page references with a
7415         pointer to roff.man.
7417 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7419         * man/roff.man: Completely rewritten.
7421 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7423         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7425 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7427         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7428         longer used.
7429         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7430         order of initializers.
7431         * NEWS: Updated.
7433 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7435         * doc/groff.texinfo: Fix documentation of \O.
7437         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7438         html_text::do_table, html_text::do_emittext, html_text::do_para):
7439         Use `const' for first argument.
7440         (html_text::do_table): Use cast.
7441         * src/devices/grohtml/html-text.h: Updated.
7442         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7443         method for `const string &s'.
7444         * src/devices/grohtml/html.h: Updated.
7445         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7446         (ANCHOR_TEMPLATE): Modified.
7447         (manufacture_headings): New global variable to handle `-h' option.
7448         (is_subsection): Removed.
7449         (char_buffer::add_string): Add `const' to first argument.
7450         Protect against invalid string argument.
7451         Add method for `const string &s'.
7452         (text_glob): Completely redesigned.
7453         (page): Use `const' for strings and remove string length variable.
7454         (page::add_html): Removed.
7455         (page::add_end_encode): New member function.
7456         (to_unicode): Moved upwards.
7457         (title_desc, header_desc): Updated.
7458         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7459         definition.
7460         (html_printer::is_bold, html_printer::make_bold): New member
7461         functions.
7462         (html_printer::end_of_line): Updated.
7463         (generate_img_src, html_printer::do_auto_image,
7464         html_printer::do_title, html_printer::write_header,
7465         html_printer::determine_header_level, html_printer::do_heading,
7466         html_printer::do_linelength, html_printer::do_pageoffset,
7467         html_printer::do_indentation, html_printer::do_tempindent,
7468         html_printer::do_indentedparagraph, html_printer::do_break,
7469         html_printer::flush_sbuf, get_html_translation,
7470         html_printer::begin_page, html_printer::special): Rewritten to get
7471         rid of static string length limit.
7472         (html_printer::troff_tag): Added `.no-auto-rule'.
7473         (html_printer::flush_globs): Small fix.
7474         (html_printer::determine_space): Don't compute `space_width'.
7475         (html_printer::translate_to_html): Renamed to ...
7476         (html_printer::emit_html): This (with updates).
7477         (html_printer::write_header): Implement `-h' option.
7478         (html_printer::draw): Remove commented-out code.  Handle `F'
7479         command.
7480         (html_printer::add_char_to_sbuf): Removed.
7481         (html_printer::add_to_sbuf): Rewritten.
7482         (html_printer::sbuf_continuation): Fixed.
7483         (html_printer::seen_backwards_escape, reverse,
7484         html_printer::remove_last_char_from_sbuf): Removed.
7485         (char_translate_to_html, str_translate_to_html): Removed.
7486         (html_printer::overstrike): New function member.
7487         (html_printer::set_char): Use it.
7488         (html_printer::do_body): New function member.
7489         (html_printer::~html_printer): Use it.
7490         (main): Handle `-h' option.
7491         (usage): Updated.
7492         * src/devices/grohtml/grohtml.man: Document -h switch.
7494         * src/preproc/html/pre-html.cc: Include searchpath.h
7495         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7496         (get_resolution): New function.
7497         (checkImageDir): Use `0777' permissions in mkdir()
7498         (write_start_image): Rewritten to use `\O[5...]'.
7499         (createImage, generateImages): Updated.
7500         (main): Handle `F' and `h' options.
7501         Use `get_resolution'.
7503         * src/roff/troff/input.cc (begin, end, image): Removed.
7504         (do_suppress): Take parameter.
7505         Handle modified syntax of `\O'.
7506         (token::next): Updated.
7507         (init_markup_requests): Removed.
7508         (main): Updated.
7510         * src/roff/troff/div.h: Add declaration for begin_page().
7512         * tmac/color-html.tmac: Removed.  Contents moved to...
7513         * tmac/html.tmac: Here.  Set background color.
7514         * tmac/color.tmac: Removed.  Contents moved to...
7515         * tmac/ps.tmac: Here.
7516         * tmac/www.tmac: Remove the title command when generating images
7517         for html.
7518         (NO_AUTO_RULE): New macro.
7519         (HTML_DO_IMAGE): Use revised `\O' escapes.
7520         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7522 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7524         * tmac/groff_mdoc.man: Fix typo.
7526 2001-12-01  Colin Watson  <cjwatson@debian.org>
7528         * man/roff.man: Fix typo.
7530 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7532         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7533         stdlib.h.
7535         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7536         more than one argument to \D'f ...'.
7538         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7540 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7542         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7543         loaded only once.
7545         * tmac/groff_man.man: Minor cosmetic fix.
7547 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7549         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7550         tmac/groff_www.man: s/mwww/www/.
7552 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7554         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7555         * configure: Regenerated.
7556         * win32-diffs: Updated.
7558         * tmac/groff_mwww.tmac: Renamed to ...
7559         * tmac/groff_www.tmac: This.
7560         * tmac/mwww.tmac: Removed.
7561         * NEWS, tmac/Makefile.sub: Updated.
7563 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7565         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7566         Fix explanation of `\D' and `rt'.
7568 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7570         * tmac/an-old.tmac (an-header): Set header length equal to page
7571         width.
7572         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7573         minor fixes.
7574         * NEWS: Small fix.
7576 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7578         * NEWS, man/Makefile.sub: Updated.
7580 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7582         * man/ditroff.man: New file.
7584 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7586         * man/groff_differences.man: Renamed to ...
7587         * man/groff_diff.man: This.  Updated.
7588         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7590         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7591         * src/preproc/html/pushback.cc: This.  Updated.
7592         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7593         * src/preproc/html/pushback.h: This.
7594         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7595         Updated.
7597         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7598         * src/libs/libgroff/htmlhint.cc: This.
7599         * src/libs/libgroff/Makefile.sub: Updated.
7601         * tmac/an-old.tmac (an-end): Fix page length.
7603 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7605         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7606         * man/Makefile.sub: Include groff_differences.man.
7607         * VERSION: Set to 1.18.
7608         * REVISION: Set to 0.
7610 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7612         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7613         the second dot (or ending macro name) to end a macro.
7614         * doc/groff.texinfo: Doc fix.
7616 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7618         * tmac/doc-common (doc-header): Handle very long document titles
7619         better.
7621 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7623         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7625 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7627         * src/roff/troff/troff.man: Revised and split into troff.man and...
7628         * man/groff_differences.man: New file.
7629         * NEWS: Updated.
7631 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7633         * tmac/an-old.tmac (TS, TE): New macros for table support.
7635 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7637         * src/include/lib.h: Provide a fix for emx to not include
7638         groff-getopt.h.
7640 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7642         * src/roff/troff/input.cc (substring_macro): Fix computation of
7643         boundary values.
7645 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7647         Undo change from 2001-08-28.
7649         * src/roff/troff/input.cc (have_input): New global variable.
7650         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7651         in compatibility mode.
7652         (process_input_stack): Use it.
7654 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7656         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7657         being handled as end-of-sentence characters,
7659 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7661         * src/roff/troff/input.cc (file_iterator): New members
7662         `suppress_newline_flag' and `seen_escape'.
7663         (file_iterator::next_file): Updated.
7664         (file_iterator::fill): Use it.
7665         (string_iterator): New member `suppress_newline_flag'.
7666         (string_iterator::fill): Set it.
7667         (get_color_element): Use MAX_COLOR_VAL.
7668         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7669         (no_fill): Don't set `env->ignore_next_eol'.
7670         (environment::newline): Handle `eol' tag properly.
7671         Emit `eol.ce'.
7672         (environment::add_html_tag): Set `env->ignore_next_eol'.
7673         Don't handle `.ce'.
7674         * src/roff/troff/env.h (environment): Updated.
7676         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7677         member function.
7678         (html_printer::outstanding_eol): New member function.
7679         (html_printer::do_title): Use new functions.
7680         (html_printer::troff_tag): Test `id_eol_ce'.
7682 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7684         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7685         files work with -C also.
7687 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7689         * doc/pic.ms: Minor fix.
7690         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7691         as a valid command line switch.
7692         * src/devices/grohtml/post-html.cc (main): Ditto.
7693         (usage): Updated.
7694         * src/devices/grohtml/grohtml.man: Updated.
7695         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7697 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7699         Implementing color support in troff, pic, grops, and grohtml.  These
7700         changes are based on a major patch provided by Gaius Mulley
7701         <gaius@glam.ac.uk>.
7703         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7704         definitions with both hex values and fractions.
7706         New escapes: \m and \M for drawing and background color,
7707         respectively.  This corresponds to the troff output commands `m'
7708         and `DF'.
7710         groff and troff accept command line switch `-c' to disable color
7711         output (which is automatically disabled in compatibility mode).
7713         New scaling indicator `f' for fractions (1f = 65536u).
7715         New conditional operator `m' to test for defined colors with `if'
7716         and `ie'.
7718         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7719         (or `outlined'), and `shaded' added to pic.
7721         * src/include/color.h: New file.
7722         * src/include/driver.h: Include it.
7723         * src/include/printer.h: Include color.h.
7724         (environment): New members `col' and `fill'.
7725         (printer): Remove `adjust_arc_center' member function.
7726         * src/include/Makefile.sub: Updated.
7728         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7729         `env.fill'.
7730         Handle `m' and `DF' troff commands.
7731         * src/libs/libgroff/color.cc: New file.
7732         * src/libs/libgroff/Makefile.sub: Updated.
7734         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7735         (stop): Removed.
7736         (createImage): Fix computation of `y2'.
7737         Use `pnmcrop' also.
7738         (buffer::write_file_html): Remove calls to `stop'.
7740         * src/preproc/pic/common.h (common_output): New abstract function
7741         members `set_color', `reset_color', `get_last_filled', and
7742         `get_outline_color'.
7743         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7744         (object_spec): Add members `shaded' and `outlined'.
7745         * src/preproc/pic/output.h (output): `command' is now abstract.
7746         New function members `set_color', `reset_color', `get_last_filled',
7747         and `get_outline_color'.
7748         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7749         `outline[d]', and `shaded'.
7750         * src/preproc/pic/object.cc (output::command): Removed.
7751         (output::set_location): Moved to output.h.
7752         (graphic_object): Add protected members `outline_color' and
7753         `color_fill'.
7754         Add member functions `set_outline_color', `get_outline_color', and
7755         `set_fill_color'.
7756         (closed_object): Add member function `set_fill_color'.
7757         Add member `color_fill'.
7758         (graphic_object::print_text): Use `out->set_color' and
7759         `out->reset_color'.
7760         (box_object::print, ellipse_object::print, circle_object::print,
7761         line_object::print, spline_object::print, arc_object::print): Ditto.
7762         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7763         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7764         `SHADED', making them `%left'.
7765         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7766         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7767         `set_color', `reset_color', `get_last_filled', and
7768         `get_outline_color'.
7769         * src/preproc/pic/troff.cc (simple_output): New abstract function
7770         members `set_color', `reset_color', and `get_last_filled'.
7771         (simple_output::polygon, simple_output::circle,
7772         simple_output::ellipse): Use `get_last_filled'.
7773         (troff_output): New members `last_filled' and `last_outlined'.
7774         New function members `set_color', `reset_color', `get_last_filled',
7775         and `get_outline_color'.
7776         (troff_output::finish_picture): Use `reset_color'.
7777         (troff_output::set_fill): Test `last_filled'.
7778         * src/preproc/pic/pic.man: Updated.
7780         * src/roff/groff/groff.cc (main): Implement `-c' option.
7781         (synopsis, help): Updated.
7782         src/roff/groff/groff.man: Updated.
7784         * src/roff/troff/troff.h: Include color.h.
7785         (warning_type): Add WARN_COLOR.
7786         * src/roff/troff/env.h (environment): New members
7787         `{cur,prev}_{glyph,fill}_color'.
7788         New member functions `get_{prev_,}{glyph,fill}_color'.
7789         * src/roff/troff/env.cc: Initialize and implement them.
7790         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7791         Replace `NULL' with `0' everywhere for consistency.
7792         (lookup_color, default_black, do_glyph_color, do_fill_color,
7793         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7794         define_color): New functions.
7795         (token::next): Implement \M and \m escapes.
7796         (do_if_request): Implement `m' operator.
7797         (usage): Updated.
7798         (main): Implement `-c' option.
7799         (init_markup_requests): Add `defcolor' request.
7800         (warning_table): Add `color' warning.
7801         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7802         classes.
7803         * src/roff/troff/node.cc (troff_output_file): New members
7804         `current_{page,glyph}color'.  New member functions `put_hex',
7805         `glyph_color', and `fill_color'.
7806         (glyph_color_node::*, fill_color_node::*): Implement it.
7807         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7808         (parse_term): Add support for `f'.
7809         * src/roff/troff/troff.man: Updated.
7811         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7812         entry for `F'.
7813         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7814         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7816         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7817         (tag_definition): Use `void *' for arg1.
7818         (html_text): New member functions `do_color' and `done_color'.
7819         Use `void *' for second parameter of `push_para' member function.
7820         New `push_para' member function with a single parameter.
7821         Use `char *' for parameter of `issue_table_begin' member funtion.
7822         New `issue_color_begin' member function.
7823         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7824         COLOR_TAG.
7825         (html_text::issue_color_begin): New function.
7826         (html_text::issue_table_begin): Use `char *' for parameter.
7827         (html_text::start_tag, html_text::shutdown,
7828         html_text::check_emit_text): Updated.
7829         (html_text::push_para): Use `void *' for second parameter.
7830         Add same function with only one parameter.
7831         (html_text::do_*): Updated.
7832         (html_text::do_color, html_text::done_color): New functions.
7833         * src/devices/grohtml/post-html.cc (style): New member `col'.
7834         Mew member `style' with 6 parameters.
7835         (style::style, style::operator==): Updated.
7836         (html_printer::do_font): Use it.
7837         (html_printer::draw): Add dummy entry for `F'.
7838         (html_printer::set_char): Updated.
7839         * src/devices/grohtml/grohtml.man: Updated.
7841         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7842         trailing zeroes removed.
7843         (ps_printer): New members `sbuf_color', `fill_color', and
7844         `output_color'.
7845         Removed member `fill'.
7846         New member function `set_color'.
7847         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7848         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7849         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7851         * tmac/color-html.tmac, tmac/color.tmac: New files.
7852         * tmac/troffrc: Include them.
7853         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7854         * tmac/Makefile.sub: Updated.
7856         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7857         man/groff.man: Updated.
7858         * font/devps/prologue.ps: Define FC and CO functions.
7860 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7862         Fix incorrect cropping of images and incorrect handling of special
7863         characters.  Fix handling of file names in \O.
7865         * src/include/geometry.h: New file.
7866         * src/libs/libgroff/geometry.cc: New file.
7867         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7868         to `geometry.cc'.
7869         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7870         initial spaces.
7871         (do_suppress): Updated.
7872         * src/roff/troff/node.cc: Include geometry.h.
7873         (troff_output_file::flush_tbuf): Fixed parameters to
7874         `check_output_limits'.
7875         (troff_output_file::check_charinfo): Ditto.
7876         (troff_output_file::determine_line_limits): Add support for `Da'
7877         and `Dl' commands.
7879         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7880         Add new parameter `is_special' to decode special characters from
7881         escape sequences.
7882         (html_printer::do_title, html_printer::do_heading,
7883         html_printer::do_indentedparagraph,
7884         html_printer::translate_to_html, html_printer::special): Updated.
7886 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7888         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7889         Fix entry for config.h.
7890         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7891         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7892         * src/preproc/eqn/eqn.man: Document -d command line option.
7894 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7896         * man/groff.man: Use
7898           .ev xxx
7899           .na
7900           .nh
7901           <table>
7902           .ev
7904         instead of the old code (`.ad .hy' after the table) to suppress
7905         incorrect hyphenation for grohtml output.
7907 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7909         * man/groff_font.man, man/groff_out.man: Minor fixes.
7911 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7913         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7914         Arnold Robbins <arnold@skeeve.com>).
7916 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7918         * configure: Regenerated with autoconf 2.52.
7920         * doc/groff.texinfo: Complete revision of indices.
7922 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7924         * doc/Makefile (clean): Updated to delete all indices.
7926 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7928         * src/roff/troff/troff.man: Remove superfluous line.
7930         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7931         given on the command line (or rather, if only the default warnings
7932         are set).
7934 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7936         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7937         use .ne for TTY devices.
7939 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7941         * src/roff/troff/token.h, src/roff/troff/input.cc:
7942         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7944 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7946         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7947         * src/roff/troff/input.cc (token::next): Return
7948         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7949         compatibility mode.
7950         (token::description): Updated.
7951         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7952         (token::add_to_node_list, token::process): Ignore
7953         TOKEN_TRANSPARENT_ESCAPE.
7955 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7957         * tmac/an-old.tmac: Fix `S' string.
7959 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7961         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7963 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7965         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7966         backslashes).
7967         Many other minor fixes.
7969         * configure.ac: Add message at end to inform how to compile
7970         xditview.
7971         * configure: Regenerated.
7973 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7975         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7976         Updated to latest version of libc.
7978 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7980         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7981         Autoconf 2.50 and newer can handle this.
7982         * configure: Regenerated.
7984 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7986         * doc/pic.ms: Fix typo.
7987         * src/preproc/tbl/tbl.man: Document case of global options.
7989 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7991         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7992         handling of `CR' font.
7994 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7996         Use a config.h file.
7998         * src/include/lib.h: Include config.h.
7999         * All C files: Ditto (if necessary).
8000         * All C++ source and header files: Include lib.h first (if
8001         necessary).
8003         * src/include/config.hin: New file (autogenerated by autoheader).
8004         * stamp-h.in: New file.
8005         * configure.ac: Updated.
8006         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8007         (GROFF_ARRAY_DELETE): Simplified.
8008         * Makefile.sub (DISTCLEANFILES): Updated.
8009         Added targets for remaking config.status, config.hin, config.h,
8010         stamp-h.in, and stamp-h.
8011         * configure: Regenerated.
8013 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8015         * NEWS: Updated.
8017 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8019         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8020         (do_sprintf): Use snprintf().
8022 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8024         * src/libs/snprintf/*: Added an snprintf module written by Mark
8025         Martinec.
8026         * src/libs/libgroff/Makefile.sub: Updated.
8027         * configure.ac: Add test for snprintf().
8028         * Makefile.in: Updated.
8029         * configure: Regenerated.
8031         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8032         uses snprintf().
8034 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8036         * tmac/doc.tmac (Ex): New implementation.
8037         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8039 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8041         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8042         argument.
8043         * tmac/groff_tmac.man: Updated.
8045 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8047         * src/preproc/tbl/tbl.man: Minor documentation update.
8049 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8051         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8052         * configure.ac: Add declaration test for gettimeofday().
8053         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8054         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8055         * configure: Regenerated.
8057 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8059         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8060         * configure.ac: Add declaration test for strcasecmp().
8061         * Makefile.in: Updated.
8062         * configure: Regenerated.
8063         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8064         this is necessary because groff's mkstemp.cc is C++.
8065         Add declaration conditionally for strcasecmp().
8067 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8069         Integrated pic2graph, contributed by Eric S. Raymond.
8071         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8072         files.
8073         * Makefile.in, NEWS: Updated.
8075         * src/preproc/tbl/tbl.man: Revised.
8077 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8079         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8081 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8083         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8084         requests.
8086 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8088         * Makefile.sub (configure): Depend on configure.ac, not
8089         configure.in.
8090         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8092 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8094         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8095         fixes.
8097 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8099         * src/roff/troff/troff.man: Improve documentation of -E option.
8101 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8103         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8104         Simplified.
8106 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8108         * src/preproc/refer/refer.cc: Undo last change.
8109         * src/devices/grohtml/post-html.cc: Ditto.
8111 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8113         * src/preproc/refer/refer.cc: Include `lib.h'.
8114         * src/devices/grohtml/post-html.cc: Ditto.
8116 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8118         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8119         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8120         * Makefile.in: Comment updated.
8121         * configure: Regenerated.
8123 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8125         * src/preproc/pic/pic.cc: Removed.
8126         * src/preproc/pic/pic_tab.h: Removed.
8127         * src/preproc/refer/label.cc: Removed.
8129         * doc/Makefile (.ms.html): Don't use a file name extension in
8130         argument to grohtml's -I option.
8131         * Makefile.in (dist): Remove CVS directories.
8132         Call `distfiles' target.
8134         * src/devices/grohtml/grohtml.man: Add information about valid
8135         versions of pnmtopng.
8136         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8137         name instead of number.
8139 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8141         * doc/groff.texinfo: Minor fixes.
8143 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8145         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8146         (clean): Updated.
8148 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8150         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8151         * src/libs/libgroff/mkstemp.cc: New file.
8152         * src/libs/libgroff/mksdir.cc: New file.
8153         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8154         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8155         * src/libs/libgroff/Makefile.sub: Updated.
8156         * src/include/lib.h: Add mksdir() prototype.
8157         * src/include/posix.h: Define S_IXUSR if not yet defined.
8159         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8160         (createAllPages): Use mksdir() instead of current code.
8161         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8162         (main): [!HAVE_MKSTEMP]: Removed.
8164         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8165         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8166         macros.
8167         * configure.ac: Add tests for stdint.h, sys/time.h, and
8168         gettimeofday().
8169         Call new GROFF_xxx macros.
8170         * configure: Regenerated.
8171         * Makefile.in: Comments updated.
8173 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8175         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8176         instead of current code.
8177         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8178         * src/roff/groff/groff.cc (possible_command::insert_args): New
8179         function.
8180         (main): Use it for predriver handling instead of insert_arg().
8182 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8184         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8185         groff also.
8187         * src/include/posix.h: Define S_IWUSR if not yet defined.
8189 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8191         * NEWS: Updated.
8193 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8195         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8196         Some other minor fixes.
8197         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8199 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8201         Replace call to `troff' with `groff -Z' to make it aware of
8202         GROFF_BIN_PATH.
8204         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8205         (troff_command, command_prefix): Removed.
8206         (alterDeviceTo): Use groff.
8207         (addZ): New function.
8208         (char_buffer::do_html): Use it.
8209         (scanArguments): Use TROFF_COMMAND.
8210         (findPrefix): Removed.
8211         (main): Updated.
8212         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8214 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8216         * doc/pic.ms: Documentation fixes.
8218 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8220         Replace atexit() with global destructor.
8222         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8223         (xtmpfile_list_init): New global structure to deallocate
8224         xtmpfile_list on exit.  Its destructor inherits most code from
8225         remove_tmp_files().
8226         (remove_tmp_files): Deleted.
8227         (add_tmp_file): Simplified.
8229 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8231         Replace strdup() with strsave().
8233         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8234         (set_papersize): Use strsave() and a_delete.
8235         (main): Use strsave().
8236         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8237         removeAllPages): Use strsave() and a_delete.
8239         * configure.ac: Remove test for strdup.
8240         * Makefile.in: Comment updated.
8241         * configure: Regenerated.
8243 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8245         * win32-diffs: Updated.
8247 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8249         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8250         removing the old one.
8251         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8253 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8255         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8257 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8259         Merge -xwidth into -width.  Add -xwidth functionality to -column
8260         also.
8262         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8263         avoid warning.
8264         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8265         string immediately following a leading dot starts with a valid mdoc
8266         argument.
8267         Add similar code to the -column branch.
8268         (doc-Bl-usage): Updated.
8269         * groff_mdoc.man: s/-xwidth/-width/.
8271 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8273         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8274         running into centered or non-formatted text.
8276 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8278         Introduce short and long prefixes to have the selection at run-time
8279         whether there is a 8+3 limit for names of temporary files.
8281         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8282         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8283         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8284         variables.
8285         (temp_init): New global structure to initialize above three
8286         variables.
8287         (xtmptemplate): Use two parameters for long and short prefix.
8288         Simplify code use above three variables.
8289         (xtmpfile): Use long and short prefixes as parameters.
8290         * src/include/lib.h: Updated.
8292         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8293         with ...
8294         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8295         (createAllPages, makeTempFiles): Updated.
8297 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8299         * REVISION: Increased to 3.
8301 Version 1.17.2 released
8302 =======================
8304 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8306         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8307         to size_t.
8309 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8311         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8312         Fix synopsis.
8313         * tmac/groff_mdoc.man: Fix synopsis.
8315 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8317         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8318         Restore `doc-Pa-font'.
8320 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8322         * src/utils/indxbib/dirnamemax.c: Moved to ...
8323         * src/libs/libgroff/maxfilename.cc: Here.
8324         s/dir_name_max/file_name_max/.
8325         Add copyright.
8326         * src/include/lib.h: Add file_name_max.
8327         * src/utils/indxbib/indxbib.cc: Updated.
8328         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8329         Updated.
8331         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8332         as empty.
8333         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8335         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8336         REGION_TEMPLATE): New macros.
8337         (createAllPages, makeTempFiles): Use them.
8338         Include `nonposix.h'.
8339         (html_system): New function.
8340         (createAllPages, createImage): Use it.
8341         Use EXE_EXT.
8343         * tmac/www.tmac: Fix typos.
8345 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8347         * tmac/www.tmac: Disable hyphenation in normal text only if output
8348         device is html.
8349         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8350         * tmac/groff_mwww.man, NEWS: Updated.
8352 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8354         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8355         image location.
8357 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8359         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8360         doc-display-ps-stack): Implement font and font size stack for
8361         displays.
8363 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8365         * REVISION: Increased to 2.
8366         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8368         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8369         beginning of a line.
8370         * src/groff/grog/grog.sh: Ditto.
8372 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8374         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8375         make it portable.
8377 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8379         Fix problems with preprocessor string for `man' program.
8381         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8382         Updated/added copyright.
8383         Moved Emacs's local variable to identify nroff mode to the end of
8384         the file; add local variable if missing.
8386 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8388         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8389         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8390         * configure: Regenerated.
8392 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8394         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8395         * configure: Regenerated.
8397 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8399         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8400         but www.tmac.
8401         * doc/pic.ms: Fix typos.
8403 Version 1.17.1 released
8404 =======================
8406 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8408         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8409         * configure: Updated.
8411 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8413         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8414         image names.
8415         * src/roff/troff/dic.cc (blank_line): Add html tag.
8417 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8419         * src/roff/troff/input.cc (do_suppress): Fix typo.
8421 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8423         Added two new options (-D and -I) to specify image names and a
8424         subdirectory to place the images in.
8426         Change syntax from \\Ox to \\O[x].
8428         * src/devices/grohtml/post-html.cc (main): Add options.
8429         (usage): Updated.
8430         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8431         Use `NULL' instead of `0' for null string pointers.
8432         (MAX_RETRIES): New macro.
8433         (lengthOfintToStr, intToStr, make_message): New functions.
8434         (makeFileName): Make function static.
8435         Implement -D and -I options.
8436         (checkImageDir): New function.
8437         (write_end_image, write_start_image): Use new syntax of \O.
8438         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8439         make_message().
8440         (createImage): Use make_message().
8441         (addps4html): Add guard for malloc().
8442         (usage, scanArguments): Updated.
8443         (makeTempFiles): Use mkstemp().
8444         (removeTempFiles): Use unlink().
8445         (findPrefix): Add guard for malloc().
8446         (main): Updated.
8447         * src/roff/troff/input.cc (get_delim_file_name): New function to
8448         parse \O.
8449         (do_suppress): Updated to parse new syntax.
8450         * src/devices/grohtml/grohtml.man: Updated.
8451         * tmac/www.tmac: Updated to new syntax.
8453         * NEWS: Updated.
8455 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8457         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8459         * src/devices/grohtml/grohtml.man: Minor improvements.
8461 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8463         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8465 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8467         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8468         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8469         the former.
8470         * src/preproc/grn/grn.man: Add proper '\" string.
8472 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8474         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8476 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8478         Updated to autoconf 2.50.
8480         * configure.in: Renamed to...
8481         * configure.ac: This.
8482         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8483         (GROFF_OS390): Updated.
8484         * configure: Regenerated.
8486 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8488         * src/roff/troff/env.c, src/roff/troff/env.h,
8489         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8490         from 2000-12-21.
8492 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8494         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8496 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8498         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8499         less than or equal zero; set it to 1 then.
8500         * src/roff/troff/node.h (node::node): Initialize `last'.
8502 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8504         * tmac/an-old.tmac: Make predefined strings work in compatibility
8505         mode.
8506         Add troff version guard.
8507         * tmac/doc.tmac: Simplify version guard.
8509 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8511         The .ns and .rs requests are now honoured not only in the top-level
8512         but in all diversions (similar to UNIX troff).
8514         This change is based on a patch from Tadziu Hoffmann
8515         <hoffmann@usm.uni-muenchen.de>.
8517         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8518         (top_level_diversion): Remove `no_space_mode' member.
8519         * src/roff/troff/div.cc (diversion::diversion,
8520         top_level_diversion::top_level_diversion): Updated.
8521         (macro_diversion::output): Reset `no_space_mode'.
8522         (no_space, restore_spacing): Use `curdiv' unconditionally.
8523         (space_request, blank_line): Check `curdiv->no_space_mode'.
8524         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8525         `curdiv' unconditionally.
8526         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8527         Updated.
8529 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8531         Added two new requests `de1' and `am1' which are similar to `de' and
8532         `am' with the difference that compatibility mode is saved on entry,
8533         switched off during macro execution, and restored on exit.
8535         * src/roff/troff/input.h: Added two new special characters
8536         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8537         * src/roff/troff/input.cc (input_iterator): Added two member
8538         functions `save_compatible_flag' and `get_compatible_flag'.
8539         (input_stack): Ditto.
8540         (string_iterator): Ditto.  Also add private member
8541         `saved_compatible_flag'.
8542         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8543         (calling_mode): New enumeration.
8544         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8545         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8546         (define_macro, define_indirect_macro, append_macro, ignore): Use
8547         `calling_mode'.
8548         (define_nocomp_macro, append_nocomp_macro): New functions.
8549         (init_input_requests): Updated.
8550         (do_request): Rename local variable `saved_compatible_flag' to
8551         `old_compatible_flag'.
8552         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8554         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8555         public and trap-invoked macros.  As a consequence, the man macros
8556         work in compatibility mode also.
8558 2001-05-06  Solar Designer  <solar@openwall.com>
8560         * Makefile.in: Use $(mandir).
8562 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8564         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8566 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8568         Added `.ns' number register: Returns 1 in no-space mode (if in
8569         top-level diversion), 0 otherwise.
8571         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8572         (init_div_requests): Updated.
8573         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8574         Document it.
8576 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8578         * src/roff/nroff/nroff.man: Improved documentation (especially
8579         locales).
8581 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8583         Added `brp' request: This is \p as a request.
8585         * src/roff/troff/env.cc (environment::do_break): Add parameter
8586         `spread'.
8587         (do_break_request): New function (was `break_request').
8588         (break_request): Calls `do_break_request'.
8589         (break_spread_request): New; calls `do_break_request'.
8590         (init_env_requests): Updated.
8591         * src/roff/troff/env.h: Updated.
8592         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8594         * REVISION: Increased to 1.
8595         * win32-diffs: Updated.
8597 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8599         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8600         * tmac/troffrc-end: Make it really work in compatibility mode.
8602 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8604         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8605         stdlib.h.
8607 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8609         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8610         latest versions from glibc CVS archive.
8612         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8613         <c.zeelenberg@hccnet.nl>.
8615 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8617         * configure.in: Move check for mkstemp() to...
8618         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8619         * configure: Regenerated.
8621         * src/include/groff-getopt.h: Don't use variable names in
8622         declarations.
8624         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8625         * src/devices/grohtml/Makefile.sub,
8626         src/devices/grohtml/post-html.cc: Updated.
8628 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8630         * configure.in: Add special check for mkstemp().
8631         * src/libs/libgroff/tmpfile.cc: Use it.
8632         * src/utils/indxbib/indxbib.cc: Ditto.
8633         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8634         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8635         `const'.
8637 2001-04-20  Bruce Lilly  <blilly@erols.com>
8639         `Version_string' as C++ object was not visible to linker from C
8640         object files.
8641         Add `const' to `Version_string'.
8643         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8644         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8645         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8646         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8647         (scanArguments), src/preproc/refer/refer.cc (main),
8648         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8649         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8650         (main), src/devices/grohtml/post-html.cc (main),
8651         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8652         (main), src/utils/hpftodit/hpftodit.cc (main),
8653         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8654         (main), src/utils/lkbib/lkbib.cc (main),
8655         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8657         * src/roff/groff/pipeline.c: Add _UWIN.
8658         * src/include/nonposix.h: Ditto.
8660 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8662         * src/include/lib.h: Use HAVE_STRERROR.
8663         * src/roff/groff/pipeline.c: Ditto.
8664         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8665         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8666         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8667         * win32-diffs: Updated.
8668         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8670 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8672         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8673         instead of hardwired `"troff"'.
8674         (char_buffer::read_file): Remove unused variables.
8675         (char_buffer::write_file_troff): Ditto.
8676         (char_buffer::write_file_html): Ditto.
8677         (generateImages): Ditto.
8678         (abs): Removed.
8679         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8681         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8683         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8684         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8685         index_search_item::search1): Ditto.
8686         * src/roff/troff/node.h (width_list): Reorder members.
8687         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8688         (lookup_warning): Ditto.
8689         (prepend_string): Commented out.
8690         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8691         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8692         * src/preproc/tbl/main.cc (process_format): Ditto.
8693         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8694         compiler warnings.
8695         * src/preproc/pic/pic.cc: Updated.
8696         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8697         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8698         * src/preproc/refer/command.cc (execute_command): Ditto.
8699         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8700         * src/preproc/refer/token.cc (lookup_token): Ditto.
8701         * src/preproc/soelim/soelim.cc: Ditto.
8702         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8703         (isHexDigit): Commented out.
8704         (pushBackBuffer::isString): Remove unused variable.
8705         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8706         warning.
8707         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8708         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8709         Ditto.
8710         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8711         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8712         lookup_paper_size): Ditto.
8713         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8714         (text_glob, element_list): Reorder members.
8715         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8716         compiler warning.
8717         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8718         return value to `void'.
8719         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8720         of initializers.
8721         * src/devices/grohtml/html.h (simple_output::check_newline,
8722         simple_output::space_or_newline, simple_output::enable_newlines):
8723         Add return value.
8724         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8725         compiler warnings.
8726         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8727         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8728         output_ligatures, output_charset, read_map): Ditto.
8729         * src/utils/lookbib/lookbib.cc (main): Ditto.
8730         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8731         (do_file): Fix typo (`=' -> `==').
8732         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8733         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8735 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8737         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8738         Fix usage of GROFF_BIN_PATH.
8739         * src/roff/nroff/nroff.man: Updated.
8741 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8743         * NEWS: Fixing typos.
8744         Updated.
8746 Version 1.17 released
8747 =====================
8749 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8751         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8752         directory, not in $(srcdir).
8754 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8756         * doc/groff.texinfo: More info on conditionals.
8758 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8760         * doc/groff.texinfo: Added some info about groff internals.
8762         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8763         about missing special character only if the name is non-null.
8765 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8767         Removing the grohtml-old device driver which is now obsolete.
8769         * src/devices/grohtml-old/*: Removed.
8770         * font/devhtml-old/*: Removed.
8771         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8772         Remove comments.
8773         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8774         * test-groff (PATH): Updated.
8775         * tmac/Makefile.sub (NORMALFILES): Updated.
8776         * tmac/an-old.tmac: Remove special code for html-old device.
8777         Replace `html-or-html-old' register with `an-html'.
8778         * tmac/eqnrc: Updated.
8779         * tmac/html-old.tmac: Removed.
8780         * tmac/troffrc, tmac/troffrc-end: Updated.
8781         * tmac/www.tmac: Remove special code for html-old device.
8782         Replace `html-or-html-old' register with `www-html'.
8784         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8785         src/libs/libgroff/htmlindicate.cc (graphic_end),
8786         include/htmlindicate.h, src/preproc/grn/*.cc,
8787         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8788         single argument for consistency with rest of source code.
8790         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8792 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8794         * src/roff/troff/troff.man: Fixing typos.
8796 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8798         * doc/pic.ms: Fixing many font switches.
8799         * doc/groff.texinfo: Fixes, additions.
8800         * MORE.STUFF: Updated.
8802 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8804         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8805         simple anchor.
8806         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8807         cropping of images.
8808         (removeTempFiles): New function to tidy up temporary files.
8809         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8810         Many fixes to do with the new inline suppress node and image regions
8811         are much tighter.
8812         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8813         (generate_img_src): New function.
8814         (html_printer::do_auto_image): Utilizes it.
8815         (do_heading, do_title): Include inline images within their contents.
8816         (html_printer::begin_page): Tidied up comments that are issued to
8817         the html output file.
8818         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8819         than courier.
8820         (text_glob::is_br): New method used by do_heading.
8821         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8822         equivalent diversion.
8823         * src/include/html-strings.h: Altered image tags to reflect the
8824         inline image node.
8825         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8826         parameter.
8827         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8828         it is already inside a pic image.  Only emit tags if the argument
8829         `-Tps:html' is present.
8830         * src/preproc/tbl/main.cc: Changes to reflect additional
8831         `html_end_suppress' parameter.
8832         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8833         emitted since the last eol tag was written.
8834         * src/roff/troff/env.h: New boolean `emitted_node'.
8835         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8836         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8837         * src/roff/troff/node.cc (check_charinfo): New method. 
8838         (troff_output_file::determine_line_limits): Alterations to limit
8839         checking.
8840         * tmac/www.tmac: Changes to reflect new suppress nodes.
8841           
8842 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8844         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8845         Escape the html_glyph in the buffer.
8846         (str_translate_to_html): Output the unescaped escaped_char.
8847         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8848         `frame=void', not `frame=none'.  Add `border=0'.
8850 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8852         * PROBLEMS: Add some words on how to avoid wrapper macros.
8854 2001-04-11  Blake McBride  <blake@florida-software.com>
8856         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8858 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8860         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8861         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8862         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8863         * Makefile.sub (DISTCLEANFILES): Here.
8865         * libs/libgroff/new.cc: Include `nonposix.h'.
8866         * win32-diffs: Updated.
8868 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8870         Added skeleton macro for defunct macros.
8872         Updated documentation.
8874         When inside displays, an empty input line warning should be
8875         suppressed.  If another macro call is put inside a display,
8876         all subsequent empty lines found in that display caused a
8877         warning to be emitted.
8879         * tmac/doc.tmac (doc-defunct-macro): New macro.
8880         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8881         (doc-restore-global-vars): Fixed typo.
8882         (doc-empty-line): Check the `doc-display-depth' register to
8883         determine whether we are inside display or not.
8885         * tmac/doc-common: Removed `Or' and `Sf' registers.
8886         Moved obsolete `Ds' macro to doc.tmac.
8888         * tmac/groff_mdoc.man: Bump document date.
8889         Document `.Vt' under ``Variable Types''.
8890         Removed documentation for obsolete `.Or' macro.
8892 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8894         * NEWS: Updated.
8895         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8897 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8899         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8900         (usage): Add stream argument. Don't exit.
8901         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8902         Write --version output to stdout, not stderr.
8903         (usage): Add stream argument. Don't exit.
8904         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8905         (usage): Add stream argument. Don't exit.
8906         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8907         constants.
8908         (usage): Add stream argument. Don't exit.
8909         (main): Write --help output to stdout, not stderr.
8910         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8911         (usage): Add stream argument. Don't exit.
8912         * src/devices/grops/ps.cc (main): Accept --help and --version.
8913         (usage): Add stream argument. Don't exit.
8914         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8915         (usage): Add stream argument. Don't exit.
8916         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8917         (main): Accept --help and --version.
8918         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8919         (main): Accept --help and --version.
8920         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8921         (scanArguments): Accept --help and --version.
8922         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8923         (main): Accept --help and --version.
8924         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8925         (usage): Add stream argument. Don't exit.
8926         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8927         exit.
8928         (main): Accept --help and --version.
8929         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8930         (main): Accept --help and --version.
8931         * src/roff/groff/groff.cc (main): Accept --help and --version.
8932         (synopsis): Add stream argument.
8933         (help): Write --help output to stdout, not stderr.
8934         (usage): Add stream argument. Don't exit.
8935         * src/roff/grog/grog.pl: Accept --help and --version.
8936         (help): New sub.
8937         * src/roff/grog/grog.sh: Accept --help and --version.
8938         * src/roff/nroff/nroff.sh: Accept --help and --version.
8939         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8940         (usage): Add stream argument. Don't exit.
8941         (main): Accept --help and --version.
8942         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8943         (usage): New function with stream argument, doesn't exit.
8944         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8945         (usage): New function with stream argument, doesn't exit.
8946         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8947         (usage): Add stream argument. Don't exit.
8948         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8949         (main): Accept --help and --version.
8950         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8951         exit.
8952         (main): Accept --help and --version.
8953         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8954         (main): Accept --help and --version.
8955         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8956         (usage): Add stream argument. Don't exit.
8958 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8960         Fix indentation in SYNOPSIS.
8962         Updated to include changes of latest BSD mdoc version (basically,
8963         the only change is that `.Fn' and `.Fc' put a final semicolon after
8964         a function declaration in the SYNOPSIS section).
8966         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8967         (doc-in-synopsis-section): New variable.  Updated all related
8968         functions.
8969         (doc-indent-synopsis-active): New register.
8970         (Nd, Fn, Fo): Use it.
8971         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8972         `.Cd' with long argument line produces indented wrapped lines. 
8973         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8974         undesirable line break to be output.
8975         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8976         `.rs'.
8977         (Fn, Fc): Add final `;' to output.
8978         (doc-save-global-vars, doc-restore-global-vars): Updated.
8979         * tmac/doc-common: Remove `Ex' register.
8980         Updated.
8981         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8982         copyright.
8984 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8986         * tmac/doc.tmac (Cd): Simplify code.
8987         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8989 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8991         Implement continuous underlining for nroff mode.  To do that, a new
8992         request in the ditroff language has been added: `x u N' (N is 0
8993         or 1).
8995         \X and \Y are now transparent to end-of-sentence recognition.
8997         * src/include/printer.h (printer): Add `type' parameter to `special'
8998         method.
8999         * src/libs/libdriver/printer.cc (printer::special): Updated.
9000         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9002         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9003         specials of type `p'.
9004         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9005         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9006         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9007         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9008         (glyph::order): New method.
9009         (tty_printer::add_char): Use it.
9010         (tty_printer::special): New method.
9011         (tty_printer::end_page): Implement it.
9013         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9014         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9015         to set `no_init_string'.
9016         (special_node::tprint_start): Use it.
9017         (special_node::same, special_node::copy): Updated.
9018         (special_node::ends_sentence): New method.
9019         (troff_output_file::start_special): Add parameter to include
9020         inititialization of special conditionally.
9022         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9023         * src/roff/troff/env.cc (do_underline_special): New function.
9024         (environment::set_font): Use it.
9025         (do_underline): Use it.  This was `underline()'.
9026         (underline): Call `do_underline()'.
9027         (continuous_underline): New function which calls `do_underline()'.
9028         (environment::newline): Use `do_underline_special()'.
9029         (init_env_requests): Updated.
9031         * NEWS, man/troff_out.man: Updated.
9033 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9035         * font/devutf8/R.proto: Fix code of 'shc'.
9037 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9039         Many fixes.  Diag lists can now be nested also; additionally,
9040         `-compact' and `-offset' are supported.
9042         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9043         (doc-list-have-indent-stackXXX): A new register stack.
9044         (doc-have-diag-list): Removed.
9045         (Bl): Use `doc-list-have-indent-stackXXX'.
9046         (El): Updated.
9047         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9048         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9049         (doc-set-vertical-and-indent): Ditto.
9050         (doc-next-list-depth): Removed.
9051         (doc-increment-list-stack): Updated.
9052         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9053         `doc-next-list-depth'.
9054         (doc-end-list, doc-end-column-list): Don't use
9055         `doc-increment-list-stack'.
9056         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9057         (doc-save-global-vars, doc-restore-global-vars): Updated.
9058         * tmac/doc-common: Updated.
9059         * tmac/groff_mdoc.man: Updated.
9060         * NEWS: Fix typo.
9062 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9064         * src/devices/grotty/grotty.man: Fix grammatical error.
9066 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9068         Remove .Ld from mdoc package; replace it with special handling of
9069         `...'.
9071         * tmac/doc-common: Remove `Ld' register.
9072         Uncomment `doc-volume-ds-*' strings.
9073         Remove `doc-operating-system-default'.
9074         (Os): Updated.
9075         * tmac/doc-syms (Ld): Removed.
9076         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9077         `...' specially.
9078         * NEWS: Updated.
9080         * tmac/groff_mdoc.man: Many fixes and updates.
9082 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9084         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9085         Bond <tkb@tkb.mpl.com>.
9086         * tmac/www.tmac: Save compatibility mode.
9088 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9090         * tmac/groff_mdoc.man: Many fixes.
9092 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9094         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9095         isn't recognized.
9097 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9099         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9100         diversion.  This fixes overlong tags.
9102 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9104         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9105         * tmac/doc-syms: Fix error messages.
9106         * tmac/an-old.tmac: Remove incorrect double backslashes.
9108 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9110         * tmac/Makefile.sub: Strip mdoc.local also
9111         * tmac/strip.sed: Fixed.
9113 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9115         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9116         selecting the font size.
9117         * tmac/groff_mdoc.man, NEWS: Document it.
9119 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9121         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9122         to `sv' request.
9123         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9124         argument to restore previous font family.
9125         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9127         * doc/groff.texinfo: More fixes and additions (mainly for font
9128         manipulating commands).
9130         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9131         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9132         * tmac/Makefile.sub, NEWS: Updated.
9134 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9136         Replaced mdoc implementation.  The new version is `state of the
9137         art', using almost all new features of groff 1.17 -- it won't run
9138         with older versions.
9140         * tmac/doc.tmac: Completely rewritten.
9141         * tmac/doc-common: Ditto.
9142         * tmac/doc-nroff: Ditto.
9143         * tmac/doc-ditroff: Ditto.
9144         * tmac/doc-syms: Ditto.
9145         * tmac/mdoc.local: New file.
9146         * tmac/groff_mdoc.samples.man: Replaced with ...
9147         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9148         * tmac/strip.sed: Updated.
9149         * tmac/Makefile.sub: Updated.
9150         * INSTALL: Updated.
9152         * tmac/groff_man.man: Add `man.local' to the FILES section.
9154 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9156         * doc/groff.texinfo: Added many @noindent.
9157         Replaced @end_Example -> @endExample.
9158         Added info whether registers are r/o.
9159         Many other additions and fixes.
9161 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9163         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9164         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9165         Improved @Def* macros: Now the exact syntax of request, register,
9166         and escapes is shown.
9167         Added macros for parentheses and brackets to be used in @Def*.
9168         Many fixes and improvements of the documentation.
9170 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9172         * doc/groff.texinfo: Added new index: `st' (for strings).
9173         Added macros @Defstr(x).
9174         Added macro @Example (adding @group).
9175         Other minor improvements.
9177 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9179         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9180         `rq' for requests.  `fn' is no longer used.
9181         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9182         Removed @Deffn(x).
9184         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9185         number with name of man page.
9187 2001-03-19  Larry Kollar  <kollar@alltel.net>
9189         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9190         consistency.
9192 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9194         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9195         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9196         * src/devices/grohtml/grohtml.man: Fixing typos.
9198 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9200         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9201         * tmac/groff_mwww.man: Remove .LINE macro
9202         * tmac/www.tmac (LINE): Add `.ti'.
9204         * src/devices/grohtml/post-html.cc (html_printer): New member
9205         `indent'.
9206         (html_printer::emit_raw): Use it.
9207         (html_printer::do_linelength): Ditto.
9208         (html_printer::do_pageoffset): Ditto.
9209         (html_printer::do_indentation): Ditto.
9210         (html_printer::do_tempindent): Ditto.
9211         (html_printer::do_break): Ditto.
9212         (html_printer::begin_page): Ditto.
9213         (html_printer::do_indentedparagraph): New function.
9214         (html_printer::troff_tag): Handle `.ip'.
9215         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9216         Add `<td width=...>' handling.
9217         (html_text::do_table): Add parameter.
9218         (html_text::do_indent): Updated.
9219         * src/devices/groohtml/html-text.h: Updated.
9221 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9223         Introduced simple html tables to implement indentation.
9225         * src/devices/grohtml/html.h (word, word_list): New structures.
9226         (simple_output): Use it.
9227         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9228         (html_printer): Improve indentation handling.
9229         (html_printer::emit_raw): Set `in_table' element.  Handle
9230         indentation if set.
9231         (html_printer::write_header): Move conditional downwards.
9232         Don't allow whitespace in tags.
9233         (html_printer::do_linelength): Handle line length and indentation
9234         conditionally.
9235         (html_printer::do_pageoffset): Handle indentation conditionally.
9236         (html_printer::do_indentation): Ditto.
9237         (html_printer::do_tempindent): New function member.
9238         (html_printer::do_fill): Take care of indentation.
9239         (html_printer::do_flush): Finish table.
9240         (html_printer::do_links): Ditto.
9241         (html_printer::do_break): New function for handling `.br' and `.ti'.
9242         (html_printer::troff_tag): Use it.
9243         Handle `.ti'.
9244         (html_printer::flush_globs): Fix.
9245         (html_printer::flush_page): Finish table.
9246         (html_printer::html_printer): Fix error message.  Set up
9247         `linelength'.
9248         (html_printer::add_to_sbuf): Remove special handling of character
9249         code 255.
9250         (to_unicode): Remove `stop()'.
9251         (html_printer::write_title): Cleanup.
9252         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9253         (html_printer::~html_printer): Flush text and end the line.
9254         Use `put_string()'.
9255         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9256         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9257         emission of tags.
9258         (html_text::start_tag): Disable newlines.
9259         (html_text::table_is_void): New function.
9260         (html_text::issue_table_begin): Ditto.
9261         (html_text::issue_table_end): Ditto.
9262         (html_text::push_para): Better table handling.
9263         (html_text::do_indent): New function.
9264         (html_text::do_table): Ditto.
9265         (html_text::done_table): Ditto.
9266         (html_text::do_tt): Handle PRE_TAG.
9267         (html_text::is_in_table): New function.
9268         (html_text::check_emit_text): Handle tables.
9269         (html_text::do_emittext): Use `nl()'.
9270         (html_text::do_para): Handle table.
9271         (html_text::remove_def): New function.
9272         * src/devices/grohtml/output.cc (word, word_list): Implement
9273         methods.
9274         (simple_output::end_line): Flush last word.
9275         (simple_output::simple_comment): Ditto.
9276         (simple_output::begin_comment): Recoded.
9277         (simple_output::end_comment): Ditto.
9278         (simple_output::comment_arg): Removed.
9279         (simple_output::check_newline): Improve test and flush last word.
9280         (simple_output::space_or_newline): Improved.
9281         (simple_output::write_newline): Replaced with...
9282         (simple_output::nl): This.
9283         (simple_output::put_raw_char): Flush last word.
9284         (simple_output::check_space): Removed.
9285         (simple_output::put_translated_string): Ditto.
9286         (simple_output::put_string): Simplified.
9287         (simple_output::put_number): Updated.
9288         (simple_output::put_float): Ditto.
9289         (simple_output::put_symbol): Removed.
9290         (simple_output::enable_newlines): Add `check_newline()'.
9291         (simple_output::flush_last_word): New function.
9293         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9294         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9296         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9297         * tmac/an-old.tmac (TP): Ditto.
9299 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9301         * mdate.sh: Make it POSIX compliant.
9303 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9305         Added the `return' request to end a macro immediately.  It simply
9306         pops iterators from the input stack until a macro iterator is found.
9308         * src/roff/troff/input.cc (input_iterator::is_macro,
9309         macro_iterator::is_macro): New member.
9310         (input_return_boundary): New class to signal an immediate return
9311         to while_request().
9312         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9313         New functions.
9314         (input_stack::clear): Use it.
9315         (input_stack::pop_macro): New function.
9316         (while_request): Use `is_return_boundary()'.
9317         (return_macro_request): New function.
9318         (init_input_requests): Use it.
9320         * src/roff/troff/TODO: Updated.
9321         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9323 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9325         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9326         cleanup.
9328 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9330         Make `\B' more rigid.
9332         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9333         parameter.
9334         (get_number_rigidly): New function.
9335         * src/roff/troff/input.cc (do_expr_test): Use it.
9336         * src/roff/troff/token.h: Updated.
9338         * src/roff/troff/request.h: Fix typo (init_html_request ->
9339         init_markup_request).
9341 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9343         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9344         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9345         are now `.begin', `.end', `.image'.
9347         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9348         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9349         Use add_char_to_sbuf().
9350         (to_unicode): New function.
9351         (char_translate_to_html): Changing type of `ch' parameter.
9352         Use `to_unicode()'.
9353         (html_printer::~html_printer): Comment out doctype string.
9354         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9355         instead of `.html-end'.
9356         (write_start_image): Use `.begin' and `.image' instead of
9357         `.html-begin' and `.html-image'.
9358         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9359         (html_begin): Renamed to ...
9360         (begin): This.
9361         (html_end): Renamed to ...
9362         (end): This.
9363         (html_image): Renamed to ...
9364         (image): This.
9365         (init_html_requests): Renamed to ...
9366         (init_markup_requests): This.
9367         * tmac/www.tmac: Updated.
9369 2001-02-28  Bram  <bram@avontuur.org>
9371         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9372         constructor.
9374 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9376         * doc/meref.me: Fixing some typos.
9378 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9380         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9381         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9382         * src/roff/troff/node.h: Updated.
9384 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9386         * tmac/groff_tmac.man: Fix typo.
9388 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9390         Fixing a bug which prevented proper end-of-sentence recognition
9391         between an `unformatted' box and the following text.  As a
9392         consequence, vertical line distances are no longer preserved in
9393         boxes after a call to `.unformat' -- because boxes aren't
9394         line-oriented (contrary to diversions), this doesn't make sense
9395         anyway.
9397         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9398         value.
9399         (vertical_size_node::set_unformat_flag): New method.
9400         * src/roff/troff/node.hh: Updated.
9401         * src/roff/troff/input.cc (word_space_node::reread,
9402         hmotion_node::reread): Reset `unformat' flag after usage.
9403         (unformat_macro): Append only if `set_unformat_flag()' returns
9404         non-zero.
9405         * src/roff/troff/troff.man: Updated.
9407 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9409         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9410         documentation of `asciify' and `unformat' requests.
9412 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9414         Redesigned the `unformat' request.  It is no longer connected with
9415         `asciify' but rather uses new `reread()' methods if the `unformat'
9416         flag is set.  Additionally, the handling of space characters after
9417         unformatting has been fixed so that they retain their width.
9419         * src/roff/troff/node.h (width_list): New structure to store
9420         original widths of spaces.
9421         (node): Added `unformat' member.
9422         Replaced `num_spaces' variable with `orig_width' list.
9423         * src/roff/troff/node.cc (*node::asciify,
9424         asciify_reverse_node_list): Removed `unformat_only' flag and related
9425         code.
9426         (word_space_node::asciify, word_space_node::word_space_node): Use
9427         `orig_width'.
9428         (word_space_node::~word_space_node): New destructor.
9429         (word_space_node::copy): Updated to handle `orig_width'.
9430         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9431         (*node::merge_space): Update `orig_width' list if necessary.
9432         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9433         * src/roff/troff/enc.cc (environment::space_newline): Use
9434         `width_list'.
9435         (environment::space): Added method to handle space width and
9436         sentence space width as parameters.  Use `width_list'.
9437         (environment::make_tab_node): Updated.
9438         * src/roff/troff/env.h: Updated.
9439         * src/roff/troff/input.cc (word_space_node::reread,
9440         unbreakable_space_node::reread, hmotion_node::reread): New methods
9441         to handle nodes specially if `unformat' flag is set.
9442         (do_asciify_macro): Renamed back to ...
9443         (asciify_macro): This.
9444         (unformat_macro): New implementation to simply set the `unformat'
9445         flag.
9447         * MORE.STUFF: Added more info about deroff.
9449 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9451         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9452         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9453         and `add_self()' methods to avoid hyphenation.  For example, the
9454         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9455         soft hyphen after `foo'.  Now the hyphen list is correctly
9456         `foo<ignore><ignore>bar'.
9458 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9460         * tmac/groff_tmac.man: Fix `BIR' macro.
9462 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9464         A new escape sequence `\:', inserting a zero-width break point.
9466         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9467         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9468         Implement it.
9469         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9470         method.
9471         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9472         and `asciify()' methods.
9473         * src/roff/troff/node.cc (space_node::space_node): Updated.
9474         (space_node::asciify): Handle `was_escape_colon'.
9475         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9477         Handle `\~' similar to other comparable requests.
9479         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9480         label.
9481         (token::next): Move creation of an unbreakable_space_node to...
9482         (token::add_to_node_list): Here.
9484         Fix a bug which sometimes prevented hyphenation of words connected
9485         with `\~' or `\ ' (and other escape sequences handled as
9486         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9487         (after a call to the `unformat' request).
9489         * src/roff/troff/env.h (environment::possibly_break_line,
9490         environment::hyphenate_line): Introducing `start_here' parameter.
9491         * src/roff/troff/env.cc (environment::space_newline,
9492         environment::space): Use it.
9493         (environment::possibly_break_line, environment::hyphenate_line):
9494         Implement it.
9495         * src/roff/troff/input.cc (process_input_stack): Use it.
9496         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9497         space_char_hmotion_node, overstrike_node): Add
9498         `get_hyphenation_type()' method.
9499         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9500         if `unformat_only' is active.
9502 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9504         Implemented new read-only number register `.linetabs' which
9505         returns 1 if in line-tabs mode, 0 otherwise.
9507         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9508         * src/roff/troff/env.cc (get_line_tabs): New function.
9509         (init_env_requests): Use it.
9510         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9512         * VERSION, REVISION: Changing to 1.17.0.
9514 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9516         Fixed a bug which prevented hyphenation of words which are finished
9517         with `\)'.
9519         * src/roff/troff/token.h (token): Add enum type
9520         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9521         * src/roff/troff/input.cc (token::next, token::description,
9522         get_line_arg, token::add_to_node_list, token::process): Use it.
9524 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9526         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9527         * src/roff/troff/div.cc (do_divert): Use it.
9529         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9531 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9533         Adding the `linetabs' request.  If set, tab distances are not
9534         computed relative to the input line but relative to the output line.
9536         * src/roff/troff/env.h (environment): New member `line_tabs'.
9537         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9538         (environment::environment, environment::copy): Updated.
9539         (environment::distance_to_next_tab): Use `line_tabs'.
9540         (init_env_requests): Register request.
9541         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9542         fixes.
9544 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9546         Introducing a new read-only register `.int' which is set to a
9547         positive value if the last output line is interrupted (i.e., if it
9548         contains `\c').
9550         * src/roff/troff/env.cc (init_env_requests): Add it.
9551         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9553 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9555         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9556         * src/preproc/html/pre-html.cc (findPrefix): New function which
9557         generates the troff executable name via the system prefix.
9558         * src/preproc/eqn/main.cc: Modified warning message.
9560 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9562         troff's `box' and `boxa' requests didn't preserve temporary
9563         indentation.
9565         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9566         `saved_target_text_length' members.
9567         * src/roff/troff/div.cc (do_divert): Use them.
9569         Tabs (but not yet leaders and fields) are now handled correctly by
9570         `asciify' request.
9572         * node.h (hmotion_node): Add field `was_tab'.
9573         * env.cc (environment::make_tab_node): Set it.
9574         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9576         Added new request `unformat' which will, contrary to `asciify',
9577         preserve font information after unformatting (i.e., only nodes
9578         dealing with horizontal space are converted back to input
9579         characters).
9581         * input.cc (asciify_macro): Renamed to ...
9582         (do_asciify_macro): this, having a new parameter `unformat_only'.
9583         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9584         (init_input_requests): Added `unformat'.
9585         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9586         parameter to control asciification process.
9587         * node.h (*_node::asciify): Ditto.
9588         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9590 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9592         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9594 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9596         * tmac/ps.tmac: Remove call of psold.tmac.
9597         * tmac/psold.tmac: Comment updated.
9598         * tmac/psnew.tmac: Removed since no longer needed.
9599         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9601         * font/devutf8/R.proto: Adding `shc' glyph.
9602         * font/devutf8/NOTES: Updated.
9604         * test-groff: Updated.
9606 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9608         First cut of the new html device driver.  Changes to pre-html and
9609         the new grohtml are too numerous to be documented here.
9611         Stuff related to `html' has been renamed to `html-old' and `html2'
9612         stuff has been renamed to `html' (including directories).  The new
9613         html device driver is therefore invoked as `-Thtml'.
9615         Added new `\O' escape to suppress output (needed by html driver).
9617         Added functions and code to pass info about input-level commands
9618         (`.in', `.fl', etc.) to html driver.
9620         Three new functions (.html-begin, .html-end, and .html-image) for
9621         better html handling: `html-begin' will execute the remaining line
9622         if at the outermost nesting level, increasing an internal counter.
9623         `html-end' does the same but decreases the internal counter.
9624         `html_image' puts its arguments into a special node (suppress_node)
9625         to define an image region.
9627         The `output' request has been removed.
9629         * tmac/html-tags.tmac: Removed.
9630         * tmac/arkup.tmac: Updated and renamed to ...
9631         * tmac/www.tmac: New file.
9632         * tmac/markup.tmac Updated and renamed to ...
9633         * tmac/mwww.tmac: New file.
9634         * tmac/Makefile.sub: Updated.
9635         * tmac/an-old.tmac: Updated.
9636         * tmac/eqnrc: Updated.
9637         * tmac/groff_man.man
9638         * tmac/groff_markup.man: Updated and renamed to ...
9639         * tmac/groff_mwww.man: New file.
9640         * tmac/groff_tmac.man: Updated.
9641         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9642         * tmac/html.tmac: Updated and renamed from html2.tmac.
9643         * tmac/pspic.tmac: Updated html support.
9644         * tmac/s.tmac: Added html output support.
9645         * tmac/troffrc, tmac/troffrc-end: Updated.
9647         * Makefile.in, doc/Makefile: Updated.
9648         * doc/groff.texinfo: Added info about new `\O' escape.
9649         * doc/homepage.ms: Use `MAILTO' macro.
9651         * font/devhtml/DESC.proto: Add `C' font.
9652         * font/devhtml/Makefile.sub: Updated.
9653         * font/devhtml/R.proto: Minor fixes.
9654         * font/devhtml-old/Makefile.sub: Updated.
9656         * src/devices/grohtml-old/Makefile.sub: Updated.
9658         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9659         method.
9660         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9661         graphic_start): Add `inline' parameter.  Update.
9662         (html_end_suppress, graphic_end): Update.
9664         * src/include/html-strings.h: New file.
9665         * src/include/htmlindicate.h: Comments updated.
9666         * src/include/printer.h: Updated.
9668         * src/preproc/eqn/main.cc (do_file, main): Updated.
9669         * src/preproc/pic/troff.cc (troff_output::start_picture,
9670         troff_output::finish_picture): Updated.
9671         * src/preproc/tbl/main.cc (process_input_file): Updated.
9673         * src/roff/groff/groff.cc (main): Updated.
9674         Pass device arguments to predrivers also.
9675         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9676         * src/roff/troff/env.h (environment): Updated.
9677         New elements `need_eol' and `ignore_next_eol' (for html output).
9678         * src/roff/troff/env.cc (environment::environment): Add initializers
9679         for `need_eol' and `ignore_next_eol'.
9680         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9681         functions.
9682         (point_size, fill, no_fill, center, right_justify, line_length,
9683         indent, temporary_indent, break_request, handle_tab): Use
9684         `add_html_tag()'.
9685         (set_tabs): Use `add_html_tag_tabs()'.
9686         (environment::add_html_tag): Updated.
9687         (environment::do_break): Updated.
9688         * src/roff/troff/div.cc (space_request, flush_output): Use
9689         `environment::add_html_tag()'.
9690         * src/roff/troff/input.cc: Updated.
9691         New variable `html_level' to indicate nested `html-begin' requests.
9692         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9693         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9694         `force_tprint()' method.
9695         (token::next): Handle `\O'.
9696         (do_suppress): Implement it.
9697         (html_begin, html_end, html_image): New functions.
9698         (init_output_requests): Renamed to ...
9699         (init_html_requests): this.
9700         (main): Use it.
9701         (macro::append_str, macro::append_unsigned, macro::append_int): New
9702         methods.
9703         New variable `output_low_mark_miny' to limit minimal value of y.
9704         (reset_output_registers): Use it.
9705         (output_request): Removed.
9706         (get_output_registers): New function.
9707         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9708         (*_node): Added `force_tprint()' if necessary.
9709         (special_node): New elements `tf' and `get_tfont()'.
9710         (suppress_node): New class.
9711         * src/roff/troff/node.cc:
9712         New global variables `image_no' and `suppress_start_page'.
9713         (real_output_file): New method `is_on()'.
9714         (troff_output_file): New method `start_special(tfont)'.
9715         (troff_output_file::really_print_line): Use `tprint' conditionally.
9716         (real_output_file::print_line): Updated.
9717         (real_output_file::on): Updated.
9718         (*_node): Added `force_tprint()'.
9719         (special_node::special_node): Initializer updated.
9720         (special_node::same, special_node::copy, special_node::tprint_start):
9721         Updated.
9722         (get_reg_int, get_reg_str): New functions.
9723         (suppress_node::*): New methods.
9724         New global variables last_position, last_image_filename;
9725         (min): New inline function.
9726         * src/roff/troff/reg.h, src/roff/troff/request.h,
9727         src/roff/troff/troff.h: Updated.
9729 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9731         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9732         documentation of `asciify' request.
9734 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9736         * src/roff/troff/input.cc: Move definition of special characters
9737         like `ESCAPE_TILDE' to ...
9738         * src/roff/troff/input.h: New file.
9739         * src/roff/troff/Makefile.sub (HDRS): Add it.
9741         Extending the .asciify request to `unformat' space characters also.
9743         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9744         to count input space characters.
9745         Update constructors to take care of it.
9746         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9747         `ESCAPE_SPACE' instead of normal space.
9748         (word_space_node::asciify): New method.
9749         (unbreakable_space_node::asciify): New method.
9750         (word_space_node::merge_space): New method.
9751         * src/roff/troff/env.cc (environment::space_newline,
9752         environment::space): Add code to initialize `num_spaces' (using the
9753         constructor of `word_space_node').
9754         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9755         Document it.
9757 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9759         * man/groff_char.man: Use table header traps only conditionally.
9761 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9763         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9765 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9767         Introducing the `box' and `boxa' requests which are similar to
9768         `di' resp. `da' but omitting a partially filled line (which is
9769         restored after ending the diversion).
9771         * src/roff/troff/div.h (diversion): Add elements to save partially
9772         filled line.
9773         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9774         partially filled line.
9775         (divert, divert_append): Updated.
9776         (box, box_append): New functions.
9777         (init_div_requests): Use them.
9778         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9779         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9781         * doc/groff.texinfo: Fix documentation of `lf' request.
9783 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9785         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9787 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9789         Ignore `ss' request if in compatibility mode.
9791         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9792         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9793         * src/roff/troff/env.cc (space_size): Use it.
9795         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9796         `ss' request in nroff mode.
9798         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9799         changes.
9801 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9803         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9805 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9807         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9808         * src/preproc/eqn/neqn.man: Small fixes and additions.
9810 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9812         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9813         Fixing typo.
9815         * src/preproc/eqn/neqn.man: New file.
9817         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9818         negative' warning.
9820         * tmac/e.tmac: Add `T&' macro.
9821         Fix `indent cannot be negative' warning.
9822         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9824 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9826         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9828 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9830         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9831         `alloca' symbol .
9833         * MORE.STUFF: Added info about deroff for djgpp.
9835         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9836         documentation of -rcR switch.
9838 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9840         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9841         if -rcR=1 (which is now the default in nroff mode), a single, very
9842         long page is created instead of multiple pages: All `ne' and `wh'
9843         requests are put into conditionals; a new macro `an-end' is added to
9844         be called with `em'.
9846         Some other minor cleanups.
9848         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9850 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9852         Fixing a bug which prevented hyphenation in words followed
9853         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9855         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9856         Adding possibly_break_line().
9857         * src/roff/troff/env.h (environment): Make possibly_break_line()
9858         public.
9860         Make `\~' usable in .tr request.
9862         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9863         (token): Add stretchable_space().
9864         * src/roff/troff/input.cc (token::next, token::delimiter,
9865         token::description, process_input_stack, do_translate,
9866         add_to_node_list, token::process): Use it.
9867         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9868         for adjusting the space.
9869         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9870         for stretchable space.
9871         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9872         (make_node): Add code for stretchable space.
9873         * src/roff/troff/env.cc (environment::add_char): Use it.
9874         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9875         (get_copy, token::next, transparent_translate, asciify): Use it.
9877         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9878         doc/groff.texinfo: Updated.
9879         * man/groff.man: Small reorderings.
9881 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9883         * NEWS: Fixes.
9884         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9885         option.
9886         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9887         `safer_macro_path' to -M option.
9888         * src/roff/troff/troff.man: Fixes.
9890 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9892         Use safer path (except for config files) if -U isn't specified.  Add
9893         a special macro path (without home and current directory) for config
9894         files.  Add home directory to unsafe path for consistency.  Don't
9895         include the home directory in the font path.
9897         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9898         `macro_path'.
9899         * src/include/macropath.h: Add `config_macrp_path'.
9900         * src/libs/libgroff/fontfile.cc: Fix font path.
9901         * src/roff/troff/input.cc (process_startup_file): Use
9902         `config_macro_path'.
9903         (main): Select unsafe path if -U is given.
9905         * src/preproc/eqn/main.cc (main): Fixing search path for
9906         configuration file.
9907         * src/preproc/eqn/eqn.man: Updated.
9909         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9910         Updated.
9912         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9913         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9914         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9915         src/devices/grotty/grotty.man: Updated.
9917         * Makefile.in: Fix comments.
9919 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9921         * tmac/safer.tmac: Empty file added (again) for compatibility
9922         reasons.
9923         * tmac/Makefile.sub: Updated.
9925 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9927         * src/devices/grodvi/dvi.cc (main),
9928         src/devices/grohtml2/post-html.cc (main),
9929         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9930         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9931         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9932         (main), src/preproc/html2/pre-html.cc (main),
9933         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9934         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9935         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9936         (main), src/utils/hpftodit/hpftodit.cc (main),
9937         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9938         (main), src/utils/lookbib/lookbib.cc (main),
9939         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9940         (main): Use stdout for -v.
9941         * src/roff/groff/groff.cc (run_commands),
9942         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9943         to make direct printing to stdout possible.
9944         * src/roff/groff/pipeline.h: Updated.
9946         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9947         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9948         * src/utils/afmtodit/afmtodit.man: Updated.
9950         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9951         (version): New function.
9952         (usage): Updated.
9953         * src/utils/addftinfo/addftinfo.man: Updated.
9955         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9956         Fixing copyright dates.
9958         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9959         replacing it.
9961         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9962         version_string.
9964         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9966 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9968         In all programs, make -v return immediately with exit status 0 to
9969         be compliant with the GNU standard.
9971         * src/devices/grodvi/dvi.cc (main),
9972         src/devices/grohtml2/post-html.cc (main),
9973         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9974         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9975         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9976         (main), src/preproc/html2/pre-html.cc (main),
9977         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9978         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9979         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9980         (main): Implement it.
9981         * NEWS: Updated.
9983         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9984         and postprocessors to the -v option.
9986         * src/roff/grog/grog.pl: Implement -v.
9987         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9988         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9990         * src/roff/nroff/nroff.sh: Implement -v.
9991         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9992         * src/roff/nroff/nroff.man: Updated.
9993         
9994         * src/preproc/eqn/main.cc (main): Fix comment typo.
9996         * MORE.STUFF: Added info about djgpp port of grap.
9998 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10000         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10001         mode (or rather, implemented non-compatibility mode).
10002         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10004         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10005         replacing it -- we don't find gxditview otherwise.
10006         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10008         * src/preproc/pic/depend: Removed.  Unnecessary.
10010         Implemented dummy keyword `solid' in pic for compatibility with
10011         AT&T pic.
10013         * lex.cc (lookup_keyword): Added `solid'.
10014         * pic.y: Added SOLID with dummy rule.
10015         * pic.cc, pic_tab.h: Regenerated.
10016         * doc/pic.ms: Updated.
10018 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10020         For security reasons, don't use the current directory but the home
10021         directory while searching and scanning troffrc and troffrc-end.
10022         Similarly, replace the current directory with the home directory
10023         in the font path.
10025         * Makefile.in (fontpath, tmacpath): Remove current directory.
10027         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10028         two parameters `add_home' and `add_current'.
10029         (search_path::~search_path, search_path::command_line_dir,
10030         search_path::open_file): Remove tests for `dirs' being zero.
10031         * src/include/searchpath.h: Adjust.
10032         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10033         `safer_macro_path'.
10034         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10036         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10037         * src/roff/troff/input.cc: Use `mac_path', initialized with
10038         `macro_path'.
10039         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10040         * src/roff/troff/env.cc: Use `mac_path'.
10042         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10044         * NEWS, man/roff.man, src/roff/troff/troff.man,
10045         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10046         Updated.
10048 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10050         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10052         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10053         * configure.in: Fix typo in comment.
10054         * configure: Regenerated.
10056         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10057         copyright dates.
10059 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10061         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10063         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10064         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10065         $(systemtmacdir).
10066         Use @libdir@.
10067         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10068         * tmac/Makefile.sub (install_data): Create
10069         $(systemtmacdir) and $(localtmacdir).
10070         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10071         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10072         NEWS, doc/groff.texinfo: Updated and minor fixes.
10074         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10075         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10076         $(systemtmacdir) since the wrapper files are platform-dependent.
10078 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10080         * doc/groff.texinfo: Fix typo.
10082 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10084         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10085           tmac.doc.old -> doc-old.tmac
10086           tmac.an.old  -> an-old.tmac
10088         * tmac/tmac.*: Moved to ...
10089         * tmac/*.tmac: this.
10090         * tmac/man.local: Fix comment.
10091         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10092         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10093         Added some `FILES' sections.  More use of @...@ directives.  Other
10094         minor updates.
10095         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10096         * doc/homepage.ms, doc/groff.texinfo: Updated.
10097         * man/groff.man, man/roff.man: Updated.
10098         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10099         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10100         src/devices/grotty/grotty.man: Updated.
10101         * src/preproc/pic/pic.man: Updated.
10102         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10103         instead of -mdoc.old.
10104         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10105         * src/roff/nroff/nroff.man: Updated.
10106         * NEWS: Updated.
10108         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10110         * tmac/mm.diff: Removed -- it has no use now since the mm package
10111         is part of groff.
10113         * tmac/*: Removed trailing spaces.
10115         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10116         the tmac subdirectory also).
10118         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10119         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10120         stuff since it is no longer needed.
10122         * README, PROBLEMS: Updated.
10124 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10126         Invert current behaviour: Search first FOOBAR.tmac, then
10127         tmac.FOOBAR.
10129         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10130         (open_mac_file, macro_source): Implement it.
10131         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10132         doc/groff.texinfo, NEWS: Document it.
10134         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10135         Small documentation improvements.
10137         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10138         subdirectory also).
10140         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10142 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10144         Add local tmac directory (groff/site-tmac).
10146         * Makefile.in: Add $(localtmacdir).
10147         (uninstall_dirs): Add $(localtmacdir).
10148         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10149         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10150         in $(localtmacdir).  Create $(localtmacdir).
10151         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10152         Updated and minor fixes.
10154         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10156         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10158 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10160         Move hyphen.us to tmac directory.
10162         * src/roff/troff/hyphen.us: Removed.
10163         * src/tmac/hyphen.us: Added.
10164         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10166         Change installation structure for data files from .../groff/... to
10167         .../groff/<version><revision>/... to be conform with other GNU
10168         programs.
10170         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10171         doc/Makefile: Implement it.
10172         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10173         * configure: Updated.
10174         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10175         * NEWS: Document it.
10176         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10177         @MACRODIR@ instead of hard-coded directories.
10179 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10181         Implement $GROFF_BIN_PATH environment variable (which defaults to
10182         $bindir) used for child programs of groff and similar wrappers.
10184         * gendefs.sh: Improve documentation.
10185         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10186         src/preproc/eqn/Makefile.sub (neqn),
10187         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10188         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10189         $GROFF_BIN_PATH.
10190         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10191         $GROFF_PATH__ (the latter for communication with troff).
10192         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10193         set.
10194         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10195         doc/groff.texinfo: Document it.
10197         * doc/groff.texinfo: Improve documentation of troff's -a option.
10199 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10201         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10202         non-intrusive eol marker.
10203         (troff_output_file::determine_line_limits): New function.
10204         (troff_output_file::draw): Use it.
10205         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10206         output_pending_lines() instead of output_line().
10207         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10208         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10209         createImage): Small fixes.
10210         
10211 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10213         Replace tmac.safer with a real secure solution.
10215         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10216         system_request, pipe_output): Disable requests if in safer mode.
10217         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10218         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10219         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10220         doc/groff.texinfo, src/roff/groff/groff.man,
10221         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10223         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10224         (resource_manager::output_prolog): Replace setenv() with putenv().
10226 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10228         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10229         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10230         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10231         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10232         compilation errors with some compilers.  It seems that this code
10233         is no longer necessary -- if yes, it is easy to add some #ifdef's
10234         for that particular old-fashioned compiler.
10236         * MORE.STUFF: Added info about Meta-tbl.
10238         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10240 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10242         Adding a new escape sequence \B'...': If the string between
10243         the delimiters is a valid numeric expression, return the character
10244         `1', and `0' otherwise.  This is an analogon to \A.
10246         * src/roff/troff/input.cc (do_expr_test): Implement it.
10247         (token::next): Use it.
10248         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10250         * tmac/tmac.trace: Made independent from escape character.
10252 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10254         Adding a new request .dei: define indirect.  The first and second
10255         parameter of .dei are taken from string registers instead directly;
10256         this very special request is needed to make tmac.trace independent
10257         from the escape character (which might even be disabled).
10259         * src/roff/troff/input.cc (do_define_macro): Implement it.
10260         (define_macro_indirect): New function.
10261         (init_input_requests): Use it.
10263         Adding two requests .ecs and .ecr: Save and restore the escape
10264         character.  These two requests are needed to make tmac.trace
10265         independent from the escape character (which might even be
10266         disabled).
10268         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10269         Implement it.
10270         (init_input_requests): Use it.
10272         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10274 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10276         Adding a new option -P and new environment variable GROPS_PROLOGUE
10277         to grops, selecting a different prologue file (minor modifications
10278         by WL).
10280         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10281         src/devices/grops/ps.cc (main): Implement it.
10282         * src/devices/grops/grops.man, NEWS: Document it.
10284 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10286         * INSTALL: Add info about selecting paper format.
10288 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10290         * src/roff/troff/input.cc (main): Fixing compiler warning.
10291         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10292         strings.h from the former to the latter.
10293         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10294         stuff from the former to the latter.
10296 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10298         Implementing two new requests .tm1 and .tmc: The former is similar
10299         to .tm but can output leading spaces; its syntax is similar to
10300         defining a string, i.e., a `"' can be used to mark the beginning of
10301         the string to be written to stderr: `.tm1 " test'.  The latter is
10302         similar to .tm1 but doesn't write out a final newline character.
10304         * src/roff/troff/input.cc (terminal1, terminal_continue,
10305         do_terminal): New functions.
10306         (init_input_requests): Use them.
10307         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10309 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10311         * tmac/groff_mdoc.samples.man: Small fixes.
10313 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10315         * tmac/groff_mdoc.man: Fixing typo.
10317 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10319         Implementing a .nop request which does nothing.
10321         * src/roff/troff/input.cc (nop_request): New function.
10322         (init_input_requests): Use it.
10323         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10325 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10327         * doc/groff.texinfo: Added some comments.
10329 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10331         * src/roff/troff/TODO: Updated.
10333 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10335         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10337 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10339         * font/devps/generate/Makefile (SHELL): Define explicitly to
10340         "/bin/sh", for non-Unix platforms.
10341         (extraclean): Use a more portable "" quoting instead of a
10342         backslash (which doesn't work on DOS/Windows).
10343         
10344         * font/devlj4/generate/Makefile (extraclean): Ditto.
10346         * font/devdvi/generate/Makefile (extraclean): Ditto.
10348 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10350         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10351         src/roff/troff/troff.man: Document Eli's latest changes.
10353 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10355         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10356         macro file names of the form NAME.tmac as well as tmac.NAME.
10358 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10360         * src/include/posix.h: Remove definition of FILENAME_MAX.
10362         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10363         `sys_fatal' and `stop' function().
10365         * test-groff: Updated.
10367 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10369         Added the new troff command .output <arg> to suppress output (while
10370         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10371         registers (for passing the output dimensions to the output device).
10373         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10374         parameter.
10375         * src/roff/troff/node.h, src/roff/troff/node.cc
10376         (troff_output_file::really_print_line,
10377         ascii_output_file::really_print_line,
10378         supress_output_file::really_print_line): Use `width' parameter.
10379         (troff_output_file::really_on, troff_output_file::really_off,
10380         output_file::on, output_file::off, real_output_file::on,
10381         real_output_file::off, real_output_file::really_on,
10382         real_output_file::really_off): New functions.
10383         (real_output_file:public output_file): New variable `output_on'.
10384         (real_output_file::begin_page, real_output_file::copy_file,
10385         real_output_file::transparent_char, real_output_file::print_line):
10386         Use it.
10387         (real_output_file::print_line): Use check_output_limits.
10388         * src/roff/troff/reg.h, src/roff/troff/request.h,
10389         src/roff/troff/input.cc (assign_registers): New function to remove
10390         two `goto's.
10391         (do_ps_file): Use it.
10392         (check_output_limits, reset_output_registers, output_request,
10393         init_output_requests): New functions.
10394         (init_input_requests): Updated.
10396         Added new grohtml2 device and html2 preprocessor (coding
10397         not yet finished) which will eventually replace grohtml.
10399         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10400         Updated.
10401         * src/include/htmlindicate.h, src/include/htmlindicate
10402         (html_begin_suppress, html_end_suppress): New functions.
10403         * src/preproc/tbl/main.cc: Use it.
10404         * src/roff/groff/groff.cc: Add support for html2 device (which will
10405         automatically invoke the html2 preprocessor).
10406         * src/roff/troff/input.cc (is_html2): New variable.
10407         * src/roff/troff/troff.h, src/roff/troff/env.h,
10408         src/roff/troff/env.cc (environment::add_html_tag): New function
10409         (uses `is_html2').
10410         (environment::do_break): Use it.
10411         * font/devhtml2/*: New files.
10412         * src/devices/grohtml2: New device.
10413         * src/preproc/html2: New preprocessor.
10414         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10416 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10418         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10420 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10422         * src/include/lib.h: Provide a fix for IRIX to not include
10423         groff-getopt.h.
10425 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10427         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10428         since some non-GNU sed programs can't handle null regexps.
10429         * configure, src/preproc/eqn/Makefile.sub,
10430         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10432         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10433         bug (string.h and strings.h are both needed according to latest
10434         POSIX standard).
10436         * MORE.STUFF: Added info about unroff and troffcvt.
10438 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10440         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10441         used before -ms.
10443         * tmac/tmac.man.old: Remove unused number register.
10445         * tmac.doc: Minor documentation fix.
10447 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10449         * src/roff/groff/pipeline.c (is_system_shell):
10450         Fix typo: "monocased_shell" no longer exists.
10452 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10454         Remove FILENAME_MAX limits.
10456         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10457         that the argument length is less than FILENAME_MAX.
10458         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10459         Use struct hack to allocate and free file name.
10460         (struct xtmpfile_list): fname is now part of the structure,
10461         not a pointer to another string.
10463 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10465         * src/include/posix.h: Add a default value for FILENAME_MAX.
10467 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10469         Add support for new BSD-style man pages (with ".Dd" instead of
10470         ".TH"), so that "groff -man" understands both styles, even
10471         when running "groff -man" on a host whose system man page
10472         macros don't support ".Dd".
10474         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10475         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10476         in case the system man macros don't define Dd or TH.
10478         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10479         * tmac/tmac.an: New one-line file.
10480         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10482 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10484         * src/roff/troff/troff.man: Fixing typos.
10486 Version 1.16.1 released
10487 =======================
10489 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10491         Preparing release 1.16.1.
10493         * REVISION: Revision number set to 1.
10494         * MORE.STUFF: Added info about port to DOS.
10495         * NEWS, win32-diffs: Updated.
10497         * src/include/nonposix.h: Remove first line -- this file is used
10498         in C also.
10500         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10501         link to it.
10503 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10505         * doc/texinfo.tex: Update to latest version.
10507 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10509         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10510         commands that fail.  Don't assume that "export a=b" is valid shell
10511         syntax.  This is needed for Solaris 2.5.1.
10513         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10514         comment about missing Solaris headers.
10516         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10518 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10520         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10521         SET_BINARY().
10523         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10525         * win32-diffs: Updated.
10526         * README.WIN32: Added CRs to make all Windows editors happy.
10528         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10529         src/roff/groff/pipeline.c).
10531 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10533         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10534         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10536 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10538         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10539         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10540         are binary files.
10541         (main): Support non-Posix systems with several different styles of
10542         slash characters in file names.
10544         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10545         (main) [SET_BINARY]: Switch stdin into binary mode.
10547         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10548         (main): Support file names with several possible slash-type
10549         characters, as given by DIR_SEPS[] in nonposix.h.
10550         (main) [__MSDOS__]: If renaming the temporary index file fails
10551         because it has more than one dot in its trunk, replace the dot
10552         with an underscore and try again.
10553         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10554         Newline.
10555         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10557         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10558         (File::File): Open the input file in binary mode.  Strip CR
10559         characters from each CR-LF pair.
10560         (xbasename): Support file names with several possible slash-type
10561         characters, as given by DIR_SEPS[] in nonposix.h.
10563         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10565         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10566         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10567         [!_POSIX_VERSION]: Define for traditional Unix systems.
10568         (real_output_file::real_output_file): Remove the MSVC-specific
10569         call to popen, use instead POPEN_WT, appropriately defined on
10570         nonposix.h.  #include nonposix.h.
10571         (real_output_file::~real_output_file): Remove the MSVC-specific
10572         call to pclose, a suitable macro is now defined on nonposix.h.
10573         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10574         and WEXITSTATUS instead of assuming traditional Unix
10575         interpretation of the status returned by pclose.
10577         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10578         call to popen, use POPEN_RT instead (appropriately defined on
10579         nonposix.h).  #include nonposix.h.
10580         (ps_bbox_request): Open the PostScript file in binary mode.
10581         Close the file after processing it.
10582         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10583         nonposix.h.
10585         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10586         A version of run_pipeline that doesn't use `fork'.
10587         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10588         (system_shell_name, system_shell_dash_c)
10589         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10590         the ugliness of testing DOS/Windows file names for equality, and
10591         support both stock shells and ports of Unix shells.
10593         * src/roff/groff/groff.cc: #include nonposix.h.
10594         (BSHELL): Definition moved to nonposix.h.
10595         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10596         instead of a literal "-c".
10597         (xbasename): Support file names with several possible slash-type
10598         characters, as given by DIR_SEPS[] in nonposix.h.
10599         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10600         of literal strings.
10602         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10603         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10605         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10606         pic_tab.h.
10608         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10610         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10611         eqn_tab.h.
10613         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10615         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10616         P_tmpdir is defined, use it instead of the literal "/tmp".
10617         (remove_tmp_files, add_tmp_file): New functions.
10618         (xtmpfile): Record temporary files and register an atexit function
10619         to delete them explicitly, instead of relying on the OS to do
10620         that, which doesn't work on non-Unix systems.
10622         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10623         (search_path::search_path): Use PATH_SEP instead of a literal
10624         colon.
10625         (search_path::command_line_dir): Ditto.
10626         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10627         to support non-Posix systems.
10629         * src/libs/libbib/search.cc: #include nonposix.h.
10630         (search_list::add_file): Open the file in binary mode.
10632         * src/libs/libbib/linear.cc: #include nonposix.h.
10633         (file_buffer::load): Remove \r characters preceding \n from the
10634         loaded buffer.
10636         * src/libs/libbib/index.cc: #include nonposix.h.
10637         (make_index_search_item): Open index_filename in O_BINARY mode.
10638         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10639         characters before \n characters.
10640         (index_search_item::check_files): Open files in binary mode.
10641         (index_search_item::munge_filename): Support DOS-style file names
10642         with backslashes and drive letters, use IS_ABSOLUTE.
10644         * src/devices/grops/ps.cc: #include nonposix.h.
10645         (main) [SET_BINARY]: Switch stdout to binary mode.
10647         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10648         (main) [SET_BINARY]: Switch stdout to binary mode.
10650         * src/devices/grolbp/lbp.cc: #include nonposix.h
10651         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10653         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10654         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10655         nonposix.h).
10656         (main) [SET_BINARY]: Switch stdout to binary mode.
10657         [_MSC_VER]: Remove an explicit call to _setmode.
10659         * src/include/nonposix.h: New file.
10661         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10662         operation when building with DJGPP.
10663         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10664         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10665         ENVSETUP.
10667         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10668         MS-DOS.
10669         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10670         etc. can include a semi-colon on DOS/Windows.
10671         (depend.temp): Use depend1.temp instead of depend.temp1, to
10672         prevent files from overerwiting each other on 8+3 filesystems.
10674         * gendef.sh (t): Change definition to work with DOS/Windows.
10676         doc/groff.texinfo: Apart of some typo corrections, I also changed
10677         some index entris, to make them more non-ambiguous, and also put
10678         @ignore around some parts that are not yet written, to allow the
10679         Info output be readable.
10681 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10683         Replaced specific checks for function declarations with a generic
10684         routine taken from GNU bfd.
10686         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10687         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10688         * configure.in: Use it.
10689         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10690         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10691         src/roff/groff/groff.cc: Use it.
10692         * Makefile.in, configure: Updated.
10694 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10696         * src/devides/grolbp/lbp.h: Removed unused variables.
10698 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10700         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10701         strncasecmp().
10703 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10705         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10706         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10707         * configure.in: Use it.
10708         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10709         * configure, Makefile.in: Updated.
10711         * configure.in: Add test for strncasecmp().
10712         * src/include/lib.h: Use it.
10714 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10716         * src/preproc/grn/Makefile.sub: Add MLIB.
10718 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10720         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10722 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10724         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10726         * PROBLEMS: Small update.
10728         * src/devices/grolbp/lbp.cc: Various small fixes.
10730 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10732         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10734         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10736 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10738         * man/roff.man: Removed unused macro.
10740 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10742         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10743         This is needed e.g. if you do
10744         `make distclean; ./configure; make dist'.
10746 Version 1.16 released
10747 =====================
10749 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10751         Adding font CWI (constant width italic) to devdvi.
10753         * font/devdvi/CWI: New file.
10754         * font/devdvi/generate/Makefile: Add generating rule.
10755         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10756         tmac/tmac.dvi: Use it.
10757         * NEWS: Announce it.
10759         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10760         * font/devlj4/generate/Makefile: Cosmetic changes only.
10762         * man/groff.man: Removed most of the redundant description of
10763         special characters (which is in groff_char.man).  Added font
10764         translation CB->CR for devdvi.  Other minor fixes.
10766         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10767         (registered) symbols.
10769 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10771         * doc/Makefile: Added rule for creating info files.
10773         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10774         AMS font metrics.
10775         * font/devdvi/generate/Makefile: Fixed dependencies.
10777         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10778         NewCentury Schoolbook!
10779         * font/devps/generate/afmname: Will now run with GNU awk.
10780         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10781         * font/devps/generate/Makefile: Cosmetic changes only.
10783 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10785         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10786         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10787         `.SS' now produces a heading with a smaller size than `.SH'. 
10788         Completely formatted.
10789         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10791         * man/groff.man: Improved table appearance.  Use of `eo' request
10792         to reduce number of doubled backslashes in macro definitions.
10793         Replacing `\e' with `\(rs'.  Other minor fixes.
10795         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10796         to have correct line number.
10798         * INSTALL: Small improvement.
10800 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10802         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10803         WL).
10805 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10807         * man/groff.man: Complete update (with a lot of corrections by WL).
10809 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10811         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10813         * font/*/*: Implement it.
10814         * man/groff_char.man, NEWS: Document it.
10816         * src/include/unix.h: Removed.  It isn't used.
10818         * doc/groff.texinfo: Slight improvements.
10820 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10822         * README, win32-diffs: Small fixes and improvements.
10824 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10826         * FDL: New file (the Free Documentation License version 1.1).
10828         * doc/groff.texinfo: Added many start-up values for gtroff.
10829         Some structural improvements of the source code.
10831 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10833         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10834         * src/roff/troff/troff.man: Added info about troffrc-end.
10836 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10838         * Makefile.in (EXTRADIRS): Fix typos.
10839         (dist): Handle deletion of old .tar.gz file correctly.
10840         (DISTDIRS): Include all tty output devices.
10842         * doc/groff.texinfo: Adding more cross references; countless other
10843         fixes.
10845 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10847         * MORE.STUFF: Added Robert Marks's utilities.
10849 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10851         Added win32 port contributed by Blake McBride
10852         <blake@florida-software.com>.
10854         * README.WIN32, win32-diffs: New files.
10855         * NEWS: Updated.
10857         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10858         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10859         (change): Removed unused variables.
10861         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10862         (savebounds): Changed return value from `int' to `void'.
10863         * src/preproc/grn/hdb.cc: Ditto.
10865         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10866         final backslash in comment to avoid compiler warning.
10868         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10870         * doc/groff.texinfo: More fixes.
10872 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10874         * tmac/tmac.doc: Documentation fix.
10876 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10878         * doc/groff.texinfo: Reading the source code shows up a lot of
10879         omissions and incorrect data...  More conversion to @Deffn macros.
10881 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10883         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10884         dependency.
10886         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10888 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10890         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10891         improvements.
10893         * doc/groff.texinfo: Extended history section.  More conversion to
10894         @Deffn macros.  More .tr documentation.
10896 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10898         * doc/groff.texinfo: Completed tab section.  Added info about
10899         fields.
10901 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10903         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10905 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10907         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10908         LaTeX 2e).
10909         * NEWS: Document it.
10911         * man/troff.man: Minor optical improvements.
10913 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10915         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10917         * font/*/*: Implement it.
10918         * man/groff_char.man, NEWS: Document it.
10920 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10922         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10923         expansion.
10924         * NEWS: Document the three new man pages.
10926         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10927         * configure: Updated.
10929         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10931 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10933         Added grap support to grog.
10935         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10936         * src/roff/grog/grog.man: Document it.
10938         * doc/groff.texinfo, NEWS: Add info about grap support.
10940         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10941         (with slight fixes by me).
10943         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10944         * tmac/Makefile.sub: Add groff_tmac.man.
10945         * man/roff.man: New file giving overview of roff system.
10946         * man/troff.man: A short reference of troff.
10947         * man/Makefile.sub: Add roff.man and troff.man.
10949 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10951         Added grap support to groff.
10953         * src/roff/groff/groff.cc: Implement it.
10954         * src/roff/groff/groff.man: Document it.
10956         * src/devices/grotty/grotty.man: Add cp1047 device.
10957         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10958         Ditto.
10959         * src/roff/groff/groff.man: Ditto.
10960         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10961         * doc/groff.texinfo: Ditto.
10963         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10964         for cp1047.
10966 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10968         * man/groff_char.man: Add `pc' glyph.
10969         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10970         * tmac/tmac.tty: Add `pc' glyph.
10971         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10972         we use cp1047 output device.
10974         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10975         there are still hardcoded latin1->unicode values in utf8's font
10976         definition files.
10977         * configure: Updated.
10978         * NEWS: Minor clarification.  Updated.
10980         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10981         Unix.
10983 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10985         Adding EBCDIC code page 1047.
10987         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10988         font/devcp1047/DESC.proto: New files.
10990         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10991         either ascii/latin1 or cp1047.
10992         * Makefile.in: Use it.
10993         * configure: Updated.
10995         Replacing and/or adding `md' (mathdot) glyph with `pc'
10996         (periodcentered) in all text fonts.
10998         * font/*/*: Change it.
11000 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11002         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11004         * configure.in: Add check for strings.h.
11005         * src/include/driver.h: Use HAVE_STRINGS_H.
11006         * src/devices/grolbp/lpb.cc: Remove string.h.
11008         * src/include/groff-getopt.h: New file.  It will be used instead of
11009         getopt.h (to be included in lib.h) to avoid endless problems with
11010         picky C++ compilers.
11011         * src/include/lib.h: Use groff-getopt.h.
11012         * src/include/Makefile.sub: Updated.
11014         * configure: Updated.
11015         * Makefile.in: Updated.
11017         * NEWS: Mention EBCDIC support.
11019 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11021         * TODO: Some additions.
11023 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11025         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11026         of mso request.
11028 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11030         * src/roff/troff/troff.man: Minor fixes.
11032 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11034         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11035         `.T' string register and the incompatible definition of the `.T'
11036         number register (compared to Unix troff).
11038         * man/groff_char.man: Add some missing characters.
11039         * font/devutf8/NOTES: Update.
11041 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11043         * src/include/htmlindicate.h, src/include/lib.h,
11044         src/include/posix.h: Fix copyright.
11046         * src/include/Makefile.sub: Update.
11048 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11050         * src/roff/troff/input.cc (input_char_description): Removing
11051         superfluous space char.
11053         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11055         * doc/groff.texinfo: Document EBCDIC.
11057 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11059         Introducing `shc' as the glyph name for the soft hyphen character.
11061         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11062         font/devlatin1/R.proto: Use it.
11064         * NEWS: Updated.
11066 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11068         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11069         dependency on ASCII order.
11071 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11073         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11074         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11076         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11077         to increase portability.
11079 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11081         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11082         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11083         the generic `\n' if under OS/390 Unix.
11085         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11087         * configure: Regenerated.
11089 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11091         * doc/groff.texinfo: More conversions to @Deffn.
11093 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11095         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11096         with `:'.
11098         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11100 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11102         * doc/groff.texinfo: More conversions to @Deffn.
11104 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11106         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11107         Updated to latest version (glibc 2.1.3).
11109 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11111         * doc/Makefile (clean): Include more index files.
11112         Add rule texinfo->dvi.
11114 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11116         * doc/groff.texinfo: Added new index `op' for operators.  More
11117         info on end of sentence characters.  More use of @Deffn.
11119 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11121         * */*.man: Adding a note that a whitespace can be inserted between
11122         a command line option and its parameter -- we are using GNU getopt.
11124         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11126 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11128         Correct anachronism of calling the man macro file with `-man'
11129         instead of `-m man' etc.
11131         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11132         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11133         load tmac.<package>.
11135         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11137         * NEWS: Updated.
11139         * doc/groff.texinfo: Updated.
11141         * tmac/groff_man.man: Copyright added.
11143 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11145         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11146         typeset the request resp. escape name with a tt font -- due to a
11147         bug in texinfo.tex it is necessary to use the `-e' switch with
11148         texi2dvi.
11150         Improving info about usage of groff units.
11152         Other minor fixes.
11154 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11156         * doc/groff.texinfo: Added section about man macro package
11157         (I've basically taken groff_man.man).  Introducing new indices `ma'
11158         for macros/strings and `gl' for glyph names.  Other minor fixes.
11160         * tmac/groff_man.man: Fixed some typos.
11162 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11164         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11165         Other minor fixes.
11167         * doc/texinfo.tex: New file.
11169 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11171         * doc/groff.texinfo: Improved section on number registers.  Other
11172         minor updates.
11174 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11176         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11177         synopsis.
11179         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11180         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11181         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11182         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11184         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11186         * src/roff/grog/grog.man: Updated copyright date.
11188 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11190         * configure.in: Added test for strdup.
11192         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11193         is available.
11195         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11197         Other minor fixes.
11199 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11201         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11203 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11205         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11206         compilers silent.
11207         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11208         * src/include/lib.h: Remove some spaces.
11210 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11212         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11213         initializers from arguments (some compilers don't like this).
11215 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11217         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11218         used by pic and eqn to tell grohtml where the graphic regions start
11219         and end.
11220         * src/libs/libgroff/Makefile.sub: Use it.
11221         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11222         graphic_start() and graphic_end() from htmlindicate.cc.
11224 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11226         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11227         * tmac/groff_man.man: More fixes.
11229 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11231         * doc/Makefile: Added texput.log to the `clean' target.
11232         * doc/groff.texinfo: Added info about delimiters for escapes.
11234 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11236         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11237         other graphic formats.
11239 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11241         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11242         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11243         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11244         files.
11246 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11248         * doc/groff.texinfo: Spelling fixes.
11250 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11252         * tmac/groff_man.man: Completely revised to cover everything in
11253         tmac.an.
11255         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11256         Other minor fixings.
11257         * src/roff/troff/env.cc (environment_copy): Improve error message and
11258         fix itoa->i_to_a.
11259         * src/roff/troff/TODO: Updated.
11261         * doc/Makefile: Bug fixes -- this is still provisional, though...
11263         * tmac/eqnrc: Small fixes.
11265 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11267         Adding a request `evc' to copy environments.
11269         * src/roff/troff/env.cc (environment::copy, environment_copy):
11270         Implement it.
11271         * src/roff/troff/env.h: Add prototype.
11273 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11275         Adding strsep() -- Solaris 8 doesn't have it.
11277         * configure.in: Test it.
11278         * src/devices/grolbp/lbp.cc: Add code.
11280 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11282         * src/roff/troff/div.cc (macro_diversion::output,
11283         top_level_diversion::output): Fixing an incompatibility with
11284         original troff: \x'0' updates the .a register also.  Thanks to
11285         <Andries.Brouwer@cwi.nl> for pointing this out.
11286         * doc/groff.texinfo: Document it.
11288         * Makefile.in: Create Makefile.dep if necessary before calling the
11289         submake process to avoid warning about nonexistent file.
11291         * NEWS, PROJECTS: Updated.
11293 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11295         * tmac/troffrc: Add tmac.lbp.
11297 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11299         * tmac/tmac.lbp: New file.
11300         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11301         command.
11303 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11305         * Makefile.in: Fixing $(subdir).
11307         * README, NEWS: Small fixes.
11309         * test-groff: Adding path to grolbp.
11311         * configure.in: The (new) file src/xditview/Imakefile.in will be
11312         also configured -- it is now possible to build gxditview in a
11313         directory different from $srcdir.
11315 2000-03-02  Blake McBride  <blake@florida-software.com>
11317         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11319         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11321 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11323         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11324         files.
11326 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11328         Adding GNU getopt to the groff distribution.
11330         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11331         New files.
11332         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11333         * aclocal.a4: Remove GROFF_GETOPT function.
11334         * configure.in, Makefile.in, PROBLEMS: Update.
11335         * src/include/lib.h: Replace getopt tests with getopt.h.
11336         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11338         * doc/groff.texinfo: Further checking/updating.  Adding more index
11339         entries.
11341         * man/groff_out.man: Fix nroff mode activation (for emacs).
11342         * man/groff_font.man: Add missing ligature.
11344 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11346         * doc/groff.texinfo: Further checking/updating.  Adding more index
11347         entries.
11349         * src/devices/grolbp/grolbp.man: Added a comment line at the
11350         beginning of the file (similar to shell scripts) which indicates
11351         that `tbl' should be used as a preprocessor.
11353 2000-02-27  Blake McBride  <blake@florida-software.com>
11355         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11356         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11358         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11359         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11360         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11361         src/include/lib.h, src/libs/libgroff/errarg.cc,
11362         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11363         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11364         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11365         src/roff/troff/div.cc, src/roff/troff/env.cc,
11366         src/roff/troff/input.cc, src/roff/troff/node.cc,
11367         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11368         if_to_a() to avoid name clashes.
11369         * src/include/posix.h: Don't use unistd.h.
11370         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11371         clause for integrating non-Unix xtmpfile() code.
11372         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11373         structure; use "rt" for popen() in pipe_source(); add getpid()
11374         dummy function.
11375         * src/roff/troff/node.cc: Use special versions of popen() in
11376         real_output_file() and pclose() in ~real_output_file().
11378 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11380         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11381         LBP-8 series laser printers).  This code has been contributed by
11382         Francisco Andrés Verdú <pandres@dragonet.es>.
11384         * src/devices/grolbp/*: The grolbp output device.
11385         * font/devlpb/*: The font description files.
11386         * Makefile.in: Add grolpb and devlbp subdirectories.
11388         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11389         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11390         typographic fixes.
11392         * doc/groff.texinfo: Further checking/updating.  Adding more index
11393         entries.
11395         * NEWS: Updated.
11397         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11399         * man/groff_font.man: Adding info about obsolete DESC keywords.
11400         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11401         keywords.
11403 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11405         * src/preproc/grn/grn.man: Added info about the gremlin file format
11406         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11408 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11410         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11411         friends to be non-integer.
11413         * src/preproc/grn/grn.man: Document it.
11415         * doc/groff.texinfo: Further checking/updating.  Adding more index
11416         entries.
11418 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11420         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11421         line thicknesses to be integer multiples of this value.
11423         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11424         corresponding code doesn't work (yet).
11426         * doc/groff.texinfo: Further checking/updating.  Adding more index
11427         entries.
11429 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11431         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11432         specify line thickness instead of base units.  The new default
11433         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11434         thick lines respectively.
11436         Removed unused variable `prevval'.
11438         * src/preproc/grn/grn.man: Updated.
11440 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11442         * src/preproc/grn/main.cc: Slight formatting.
11444         * src/roff/groff/groff.man: Formatting fix.
11445         * src/preproc/grn/grn.man: Ditto.
11447         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11449         * doc/groff.texinfo: Further checking/updating.
11451 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11453         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11455         * test-groff: Added grn subdir to path.
11457         * doc/groff.texinfo: Some restructing and other small improvements.
11459         * src/roff/groff/groff.cc (help): Fixed info string.
11461 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11463         * doc/meref.me: Fix description of .GS request.
11465         * src/roff/troff/troff.man: Fixing typo.
11467         Adding the `grn' preprocessor for gremlin graphic files.
11469         * src/preproc/grn/*: This is the Berkeley distribution written by
11470         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11471         Senderowicz and Werner Lemberg.
11473         * doc/grnexampl.{me,g}: A sample for grn.
11475         * Makefile.in: Added subdirectory entry for grn.
11477         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11478         called with the switch `-g'.
11480         * src/roff/groff/groff.man: Updated.
11482         * src/roff/grog/grog.{man,pl,sh}: Updated.
11484         * NEWS: Updated.
11486 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11488         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11489         parametrically polymorphic.
11491         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11492         and the alterations to xtmpfile.
11493         xtmpfile can be requested to return the filename created
11494         and asked not to unlink the temp file.  The default behaviour
11495         if parameters are absent is exactly the same as before.
11497 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11499         A new request `length' is available which returns the length of a
11500         string in a number register:
11502         * src/roff/troff/input.cc (length_macro): Implement it.
11503         * src/roff/troff/input.cc (init_input_requests): Register it.
11505 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11507         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11508         of the `substring' request.
11510         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11511         request.
11513         * src/roff/troff/TODO, NEWS: Updated.
11515 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11517         * src/roff/groff/groff.man: Added an example.
11519 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11521         I've considerably modified the directory structure of the
11522         distribution to get a more vertical layout.  For example, the number
11523         of top level directories has been reduced from 42 to 6.
11525         As a consequence, many changes, especially to the makefiles, were
11526         necessary:
11528         * The makefile variables `top_builddir' and `top_srcdir' have been
11529         introduced.  Virtually all relative paths have been replaced with
11530         absolute ones using these two variables.
11532         * Dependencies (in the files `Makefile.dep') are no longer part of
11533         the distribution.  Instead, they are created during a `make install'
11534         in the build directory.
11536         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11537         make `top_srcdir' and `top_builddir' absolute.
11539         Some other changes:
11541         * Man pages now depend on the files `VERSION' and `REVISION'.
11543         * The added shell script `mkinstalldirs' will replace `mkdir' in
11544         almost all cases.
11546         * VERSION: Version number increased to 1.16.
11548 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11550         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11552         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11553         (after an update of the mm stuff).
11555         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11557 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11559         The .psbb request will now also accept Mac PS images (i.e. using LF
11560         as the EOL character).
11562         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11563         (with slight modifications).
11564         * troff/input.cc (do_ps_file): Use it.
11566         * test-groff: Add grohtml and grolj4 output devices to PATH.
11568 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11570         * NEWS, MORE.STUFF: Updated.
11572 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11574         Add the `srand' command to pic.
11576         * pic/lex.cc, pic/pic.y: Implement it.
11577         * pic/pic.man: Document it.
11578         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11580 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11582         Add a new request `.psbb'.  This does exactly what the external
11583         program psbb did.  It scans a PostScript image file for a
11584         %%BoundingBox comment and extracts the bounding box values (in
11585         PostScript units) which are then stored in the four new (read-only)
11586         number registers `llx', `lly', `urx', and `ury'.
11588         This will allow the usage of the .PSPIC macro without worrying
11589         about unsafe behaviour of groff, i.e., it will work without the
11590         `-U' switch of groff.
11592         * troff/input.cc: Implement it.
11593         * tmac/tmac.pspic: Use it.
11594         * troff/troff.man, grops/grops.man, NEWS: Document it.
11595         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11597         This is bloody C code simply adapted from psbb.c!  Any improvements
11598         welcome.
11600 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11602         * man/groff_font.man: Minor clarifications.
11604         * NEWS: Updated.
11606 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11608         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11610 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11612         * man/groff_font.man: Brought up to date regarding tcommand
11613         extensions.
11614         * libgroff/font.cc: Handle everything after `--' as a comment
11615         in the font files.
11616         * devps/*: Added comment delimiter inside devps font files.
11618 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11620         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11621         \fC...\fP (which now works as expected).
11623         * troff/troff.man: Fix typo.
11625 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11627         Completed the pass_filenames implementation in troff.
11629         * libdriver/input.cc: Will read the new `F' tcommand.
11630         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11631         * troff/input.cc: Use it.
11633 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11635         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11636         font will now be updated even if an invalid font is selected.
11638 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11640         * doc/homepage.ms: Updated for new tmac.arkup.
11642         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11644         * tmac/tmac.arkup: Cleanup.
11646         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11648         Removed obsolete .LINK macro completely.
11650         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11651         will be immediately appended to the second argument (to be used with
11652         punctuation, for example).
11654         Disabled .CDFTP macro temporarily for security reasons.
11656         * tmac/groff_markup.man: Complete revision for latest changes in
11657         tmac.arkup -- note that it does not yet format correctly with
11658         grohtml :-(
11660 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11662         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11663         * devutf8/R.proto: Add mappings for wp, lh, rh.
11664         * devutf8/NOTES: Updated.
11666 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11668         * doc/groff.texinfo: Updated version/copyright info.
11670 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11672         Added support for two new directives in device descriptions:
11673         `pass_filenames' (to pass the input file name to the output device)
11674         and `use_charnames_in_special' (to support e.g. accented characters
11675         in the `X' request).
11677         * include/font.h, troff/charinfo.h: Declare it.
11679         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11681         * devhtml/DESC: Use it.
11683         * troff/input.cc: New function encoded_char.
11685         * troff/token.h: Add test for `specialness'.
11687 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11689         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11690         mistake from the list of files to be installed.
11692 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11694         * README: Added info how to apply patches.
11696 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11698         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11700 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11702         * troff/input.cc: Add support for troffrc-end.
11704         * tbl/main.cc: Altered to issue table-start and table-end special
11705         characters if using the html device.
11707         * devhtml/*: Modified font files to incorporate html encoding of
11708         characters.
11710         * tmac/groff_markup.man: New file documenting tmac.arkup.
11712         * tmac/troffrc-end: New file.  This is invoked after all user
11713         specified macros.  Currently used by the html device to include
11714         tmac.html.  Thus no need for users to specify -mhtml anymore.
11716         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11717         (MAN7): Add groff_markup.man.
11719         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11721         * tmac/troffrc: tmac.arkup will now be called for the html device.
11723         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11724         extra device specific information about fonts.
11726         * doc/homepage.ms: New file.  It is an example how an HTML home page
11727         could look like with grohtml.
11729         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11731 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11733         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11734         of Im, Re.
11736         * devutf8/NOTES: Updated.
11738 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11740         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11741         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11742         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11743         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11744         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11745         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11746         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11747         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11748         warnings.
11750         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11752 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11754         grolj4: Paper size will be searched case-insensitively.
11756         * include/lib.h: Add check for strcasecmp().
11757         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11758         * configure.in: Check for strcasecmp().
11760 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11762         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11763         `REVISION'.
11765 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11767         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11768         revision scheme.
11770         Add a new read-only register, `.Y', which contains the groff
11771         revision.
11773         * troff/input.cc (init_input_requests): Define it.
11774         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11775         * doc/groff.texinfo, troff/troff.man: Document it.
11777         * libgroff/Makefile.sub (version.cc): Add definition of
11778         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11779         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11780         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11781         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11782         troff/input.cc, pfbtops/pfbtops.c: Use it.
11784 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11786         Add a revision scheme to the groff package.
11788         * REVISION: New file.
11789         * libgroff/Makefile.sub (version.cc): Use it to define
11790         `revision_string[]'.
11791         * grops/psrm.cc: Use revision_string (converted to an unsigned
11792         integer) in constructor of resource_manager.
11794 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11796         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11797         files.
11798         * Makefile.in (DEVDIRS): Add devutf8.
11799         * grotty/tty.cc: Include device.h.
11800         (glyph): Change type of `code' to `unsigned int'.
11801         (tty_printer): New field is_utf8.  Constructor takes device argument.
11802         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11803         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11804         (tty_printer::put_char): New function.
11805         (tty_printer::end_page): Use put_char() instead of ::putchar().
11806         (make_printer): Pass device to tty_printer constructor.
11807         * nroff.sh: Determine default device by calling 'locale'.  As a
11808         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11809         Recognize UTF-8 locales.
11810         * tmac/eqnrc: Recognize utf8 like latin1.
11811         * tmac/troffrc: Device utf8 needs tmac.tty.
11813 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11815         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11817 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11819         Add a new predefined writeable number register, `year',
11820         which contains the current year.
11822         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11823         * tmac/tmac.s: Use it.
11824         * troff/input.cc (init_registers): Initialize it.
11826 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11828         * PROBLEMS: Fixed typo.
11830 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11832         * PROBLEMS: Add Y2k advice for the yr number register.
11834 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11836         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11838 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11840         * tmac/tmac.arkup: Slight modification of macros to provide better
11841         appearance for non-HTML formats.
11843 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11845         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11846         does not automatically translate to malloc(n) on all OSes
11847         (e.g., SunOS) so do it explicitly.  Also, check the returned
11848         value.
11850 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11852         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11854         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11855         expects this variable
11857 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11859         * doc/Makefile: Added instructions to create HTML and text
11860         versions of some files.
11862 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11864         * Updated INSTALL.gen.
11866         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11867         better resp. correctly with non-HTML devices.
11869 Version 1.15 released
11870 =====================
11872 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11874         * NEWS, VERSION: Changed to 1.15
11876 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11878         * nroff/nroff.man: -S is safer, not safe.
11880         * groff/groff.cc (main): Use `safer', not `safe', in variable
11881         names.  This does not change the behavior.
11883         * troff/input.cc (main): Likewise.
11885         * nroff/nroff.sh: Likewise.
11887         * troff/input.cc (prepend_string): New function.
11888         (main): Prepend -msafer, so that we check macro libraries for
11889         safety.
11891         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11893 Version 1.14 released
11894 =====================
11896 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11898         * NEWS, VERSION: Changed to 1.14.
11900 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11902         * refer/refer.cc: Fixing the last fix.
11904 Version 1.13 released
11905 =====================
11907 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11909         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11910         number disappear.
11912         * NEWS: Updated.
11914         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11916         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11917         document conventions, the version number must be a real.
11919 Version 1.12.1 released
11920 =======================
11922 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11924         * VERSION: Changed to 1.12.1.
11926 1999-12-22  Alan Rooks  <arooks@istar.ca>
11928         * refer/refer.cc (do_file): Slight modification to satisfy the
11929         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11930         UnixWare 7.1.
11932 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11934         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11935         notices.
11937         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11938         list of unsafe requests.
11940         * pic/pic.man: Fixed a typo.
11942         * man/groff_out.man: Fixed a typo.
11944 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11946         * Makefile.in: Doc fixes.
11948 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11950         * groff/groff.cc: Missing `U' option added to getopt().
11952         * troff/troff.man: Missing `U' option added to synopsis.
11954 Version 1.12 released
11955 =====================
11957 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11959         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11960         to the synopsis.
11962         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11963         with the more appropriate terms `safer' and `unsafe'.
11965         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11966         sys_nerr and sys_errlist[].
11968         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11970         * pic/pic.y, pic/pic.cc: Added check for fmod().
11972 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11974         * VERSION: Changed to 1.12.
11976         Here some patches from various sources; most of them taken from
11977         the Debian distribution.
11979         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11980         tmac/Makefile.sub: New files copied directly from the NetBSD
11981         distribution.  Probably, some additional adaptation later on is
11982         necessary...
11984         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11985         of unsafe requests.
11987         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11988         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11989         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11990         (`-S') is now the default.
11992         * README, NEWS: Updated.
11994 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11996         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11998         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12000 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12002         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12003         grief than relief today.  Additionally, it is against the GNU
12004         coding standards.
12006         * configure: Recreated.
12008 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12010         * configure.in: Added GROFF_LIBM.
12012         * configure: Recreated.
12014         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12015         necessary.
12017         * Makefile.in: Added definition of $(LIBM).
12019         * Makefile.comm (LIBM): Removed.
12021         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12023 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12025         * doc/Makefile: Added rule for generation pic.html.
12027         (clean): Files produced by grohtml will be removed also.
12029         * doc/pic.ms: Small fix.
12031         * tmac/tmac.html: Fixed suppression of headers.
12033 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12035         * tmac/tmac.html: Fixing horizontal arrows.
12037         Turning off hyphenation.
12039         * tmac/tmac.an: Improved support for grohtml; better indentation,
12040         no footers/headers.
12042 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12044         * tmac/tmac.arkup: Added CDFTP macro
12046         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12047         macros.
12049         * tmac/troffrc: Some additions for HTML stuff.
12051 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12053         * tmac/tmac.html: Small changes.
12055 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12057         * doc/groff.texinfo: Minor fixes.
12059 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12061         * devhtml/TR: Changed spacewidth to 3.
12063         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12065         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12067         * tmac/tmac.arkup: New file.
12069         * grohtml/ChangeLog: New file.
12071 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12073         * doc/groff.texinfo (Common Features): Added Copying chapter.
12074         Changed format to @smallbook.
12076 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12078         * NEWS: Added info about groff.texinfo.
12080         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12081         warning messages.
12083 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12085         * groff/groff.man: More updates.
12087 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12089         * doc/groff.texinfo: New file.  This manual is still very
12090         rudimentary.  It has been originally contributed by Trent
12091         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12092         additions by me.
12094         * INSTALL: Added information about the `doc' subdir
12096         * troff/troff.man: Minor fixes.
12098         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12099         reordered options.
12101         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12103         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12104         also, otherwise it is included itself in another call of `make
12105         dist'.
12107         * groff/groff.cc (synopsis): Removed superfluous space.
12109         * PROJECTS, PROBLEMS, NEWS: Updated.
12111         * VERSION: Updated to 1.12beta.
12113         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12115         * README: Updated: Included documentation about CVS repository,
12116         mailing lists, and daily snapshots.
12118         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12120 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12122         * tmac/tmac.an: If the tag didn't fit into the space that the
12123         macro `TP' specifies, the rest of the tag went into the space for
12124         the next line.
12126 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12128         * grolj4/lj4.cc: Added duplex printing (option `-d').
12130         * grolj4/grolj4.man: Document duplex printing.
12132 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12134         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12135         non-GNUish sed programs.
12137         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12138         definition.
12140         * configure.in (LIBS): Added `-lc'
12142         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12144         * pic/tex.cc (solid_arc): Casting M_PI to double.
12146         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12148         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12149         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12150         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12152         * groff/groff_man.man: New file.  This manual page was originally
12153         written for the Debian GNU/Linux system by Susan G. Kleinmann
12154         <sgk@debian.org>.
12156         * eqn/list.cc (list_box::compute_metrics,
12157         list_box::compute_sublist_width): Removed variable declaration to
12158         avoid shadowing warnings.
12160         * grops/psrm.cc (resource_manager::process_file): Ditto.
12162         * tfmtodit/tfmtodit.cc (main): Ditto.
12164         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12165         to avoid shadowing warnings.
12167         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12168         shadowing loop variable.
12170         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12172 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12174         New grohtml frontend to convert groff input to html.
12176         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12178         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12180         * tmac/eqnrc: Added html device.
12182         * tmac/tmac.html: New file.
12184         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12185         (troff_output::start_picture, troff_output::finish_picture),
12186         tbl/main.cc (process_input_file):
12187         Surrounded output with `graphics_start' and `graphics_end' so that
12188         the html driver can identify non-text portions.
12190         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12191         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12192         grotty/tty.ps (tty_printer::set_char): Additional parameter
12193         `name'.
12195         * include/printer.h: Class printer: New function
12196         set_char_and_width; new variables (is_char_named, is_named_set,
12197         named_command, named_char_s, named_char_n) to hold information
12198         about named characters -- needed by the html driver.
12200         * libdriver/printer.cc (printer::set_ascii_char,
12201         printer::set_special_char): Use set_char_and_width.
12203         * devhtml/*: New device files for html driver.
12205         * grohtml/*: New driver grohtml.
12207 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12209         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12210         default strings.
12212 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12214         * libgroff/string.cc (search): Small fix to test against NULL
12215         pointer.
12217 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12219         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12220         \b'abc') were stacked in reverse order when processed in a
12221         diversion.
12223         * troff/node.h: Added `*last' to struct `node' to make the above
12224         fix work.
12226         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12227         The default scale for the 'f' and 't' graphics functions were 'm'
12228         rather than 'u' (i.e., no scaling).
12230 1999-09-11  Peter Miller  <peterm@jna.com.au>
12232         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12233         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12234         defining include paths.
12236         * soelim/soelim.cc (include_path_append): New function.
12238 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12240         * tbl/main.cc (process_options): Unix (at least Documenter's
12241         Workbench) tbl allows arbitrary non-alpha characters between
12242         options.
12244 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12246         Y2k fixes.  Don't assume that the current year precedes 2000.
12248         * doc/meref.me: Add \n(y2, \n(y4.
12250         * tmac/doc-common (Yr): New number register.
12251         (Dd): Don't assume current year precedes 2000.
12253         * tmac/tmac.e (td): Likewise.
12254         (y2, y4): New number registers.
12256         * pic/pic.man: Update reference for pic paper to May, 1991
12257         version.
12259 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12261         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12262         Removed quotation marks which prevented correct expansion of
12263         $(tmac_wrap).
12265         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12267 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12269         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12270         `config.cache'.
12272         * Removed configure.old.
12274 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12276         * VERSION: Updated to 1.11.1
12278 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12280         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12282         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12283         added quotations around $(tmac_wrap) to avoid syntax error if
12284         variable is empty.
12286         * configure: Newly generated using autoconf 2.13.
12288         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12290 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12292         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12293         doc/Makefile. doc/pic.ms, groff/groff.man:
12294         Prepare for 1.11 release.  No code changes.
12295         Documentation for pic added (doc/pic.ms).
12297 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12299         * Version 1.10 released.
12301 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12303         * afmtodit/afmtodit.pl: Avoid comment on first line.
12305 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12307         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12308         * configure.in: Call it.
12310         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12311         (distfiles): Doesn't depend on config.log or config.cache.
12313 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12315         * grog/grog.sh: Use print "" rather than print in END rule.
12317 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12319         * tbl/main.cc (process_data): Don't give error for excess data
12320         entries that are comments.
12322 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12324         * tbl/main.cc (process_data): Fix case where new for-scope rules
12325         silently change meaning of code.
12327 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12329         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12330         of non-zero hyphenation codes.
12332 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12334         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12336 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12338         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12340 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12342         * tmac/tmac.andoc: Make it work in compatibility mode.
12344         * refer/token.h (token_info::is_range_sep): New function.
12345         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12346         * refer/ref.cc (reference::output): More sophisticated check for
12347         multiple pages.
12349         * devps/prologue.ps (MANUAL): New procedure.
12350         * grops/ps.cc (main): New -m option.
12351         (usage): Include -m.
12352         (ps_printer::~ps_printer): Implement -m.
12354         * aclocal.m4 (GROFF_G): New macro.
12355         * configure.in: Call it.
12356         * Makefile.in (g): Provided by configure.
12358         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12360         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12361         translations.
12363         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12364         (tmac_m, tmac_s): Deleted.
12365         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12366         tmac_s_prefix): New variables.
12367         (MDEFINES): Change accordingly.
12368         * Makefile.comm (.man.n): Use new TMAC_* variables.
12369         * configure.in (GROFF_TMAC): Call.
12370         * aclocal.m4 (GROFF_TMAC): Define.
12371         * tmac/Makefile.sub (stamp_wrap): New target.
12372         (install_data, uninstall_sub): Handle macro wrapping.
12374 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12376         * tbl/main.cc (main): Ignore -T option.
12378 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12380         * devlj4/generate/special.map: Add definition of \(nb.
12382         * tmac/tmac.dvi: Add definition of \(nb.
12384         * troff/dictionary.c (dictionary::dictionary): association::v gets
12385         initialized by association::association.
12387         * tmac/Makefile.sub: Avoid using temporary files when installing.
12389         * troff/env.cc (environment::set_font): Make bad font number a
12390         warning.
12392         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12394         * Makefile.in (datadir): Use share rather than lib.
12396         * groff/groff.cc (basename): Rename to xbasename.
12398 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12400         * Makefile (CCLIBS): Don't use.
12401         * Makefile.ccpg: Likewise.
12403         * acgroff.m4: Rename to...
12404         * aclocal.m4: Modify extensively for autoconf 2.
12405         * configure.in: Likewise.
12406         * Makefile.in: Likewise.
12408         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12409         defined.
12410         (xstrsignal): Check for definition of NSIG. Conditionalize
12411         on SYS_SIGLIST_DECLARED.  Make return type const.
12413 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12415         * troff/input.cc (interpolate_macro): Rephrase missing space
12416         warning.
12418 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12420         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12421         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12422         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12423         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12424         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12425         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12426         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12427         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12428         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12429         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12430         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12431         Fix 'for' scoping.
12433 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12435         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12436         string_iterator.
12437         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12438         file.
12439         (macro_iterator::macro_iterator): Add additional argument.
12441 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12443         * troff/div.cc (vertical_size::vertical_size): In place of integer
12444         specifying line spacing use cunits specifying post vertical
12445         space.
12446         (macro_diversion::output, top_level_diversion::output): Likewise.
12447         * troff/div.h: Change declarations accordingly.
12448         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12449         field.
12450         (pending_output_line::pending_output_line,
12451         pending_output_line::output, environment::output,
12452         environment::output_line, environment::output_title,
12453         environment::hyphenate_line):  In place of
12454         integer specifying line spacing use cunits specifying post vertical
12455         space.
12456         (environment::environment): Add post_vertical_spacing and
12457         prev_post_vertical_spacing arguments.
12458         (environment::get_post_vertical_spacing): New function.
12459         (environment::total_post_vertical_spacing): New function.
12460         (environment::post_vertical_spacing): New function.
12461         (init_env_requests): Initialize pvs request and .pvs register.
12462         * troff/env.h: Change declarations.
12464 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12466         * tmac/tmac.pspic: Immediately remove the temporary file.
12468 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12470         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12471         height is specified.
12473 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12475         * tbl/table.c (struct vertical rule, class table_entry): Use int
12476         not short for start_row and end_row.
12478 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12480         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12481         functions.
12482         (diverted_space_node::reread, process_input_stack): Call
12483         trapping_blank_line() rather than blank_line().
12484         (init_input_requests): Bind "blm" to blank_line_macro().
12486         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12488 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12490         * troff/env.cc (environment::possibly_break_line): Require that
12491         width total excluding width of final space node be greater than
12492         the target text length.
12494 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12496         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12498 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12500         * troff/node.cc (charinfo_node): New class.
12501         (glyph_node, composite_node): Derive from charinfo_node.  Change
12502         member functions accordingly.
12504 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12506         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12508 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12510         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12512         * devps/generate/textmap (notsubset): Add.
12514         * tmac/tmac.a4: New file.
12516 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12518         * pic/main.cc (had_parse_error): New variable.
12519         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12520         returns non-zero.
12521         (main): Return 1 if had_parse_error is true.
12523 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12525         * grolj4/lj4.cc (main): Avoid use of strtoul.
12527 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12529         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12530         iso_8859_1 or $LESSCHARSET is latin1.
12532 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12534         * hpftodit: New directory.
12535         * Makefile.in (CCPROGDIRS): Add hpftodit.
12536         * devlj4/generate: New directory.
12538 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12540         * configure.in: Don't use AC_VFORK.
12541         * groff/pipeline.c (run_pipeline): Use fork() always.
12543 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12545         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12547         * Makefile.in (CCPROGDIRS): Add grolj4.
12548         (DEVDIRS): Add devlj4.
12549         * grolj4, devlj4: New directories.
12550         * tmac/troffrc: Handle lj4.
12551         * tmac/tmac.lj4: New file.
12553 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12555         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12557 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12559         * troff/input.cc (do_if_request): At end of second string, switch
12560         environments before getting next token.
12562 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12564         * devps/psstrip.sed: Split rule that strips whitespace on either
12565         side of delimiters.
12567 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12569         * troff/node.h (font_family::make_definition): Add return value to
12570         declaration.  * troff/symbol.h (symbol::operator==,
12571         symbol::operator!=): Likewise.
12573 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12575         * groff/groff.cc (main, help, synopsis): Handle -S.
12576         (possible_command::insert_arg): New function.
12578         * tmac/tmac.safer: New file.
12579         * tmac/msafer.man: New file.
12580         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12582 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12584         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12585         * pic/pic.y (placeless_element): Avoid unsafe operations if
12586         `safer_flag' is set.
12587         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12589 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12591         * eqn/lex.cc (get_token): Put call to add_context() in block to
12592         work around Sun C++ 4.0 bug.
12594         * include/stringclass.h (operator +): Use ?: instead of `if' to
12595         work around Sun C++ 4.0 bug.
12597 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12599         * tbl/main.cc (process_format): Accept - as a synonym for the _
12600         key letter.
12602         * libbib/index.cc (minus_one): Don't declare as const.
12604 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12606         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12608 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12610         * troff/input.cc (write_macro_request): New function.
12611         (init_input_requests): Bind write_macro_request to writem.
12613 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12615         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12616         equation.
12618         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12620         * tmac/tmac.s (@TS): Renamed from TS.
12621         (TS): Call LP then TS again.
12622         (cov*ab-init): Alias @TS to TS.
12624         * tmac/tmac.s: Allow QP or RS to initialize.
12626         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12627         Move initializations of PS and LL here.
12628         (par@init): Don't initialize HY.  Avoid changing environment 0.
12629         (par*env-init): Don't all par@reset.
12631 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12633         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12635 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12637         * Makefile.in (MDEFINES): Add LDFLAGS.
12638         (LDFLAGS): Add definition line.
12640 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12642         * troff/input.cc (get_optional_char): Split off error check into...
12643         (check_missing_character): New function.
12644         * troff/token.h: Declare it.
12645         * troff/env.cc (margin_character): Don't call get_optional_char.
12646         Only call tok.next() after making the node.
12648         * include/lib.h (getopt): Make 2nd argument char *const *.
12650 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12652         * nroff/conftest.sh: Deleted.
12654 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12656         * pic/make-dos-dist: Deleted.
12658 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12660         * devps/psstrip.sed: Strip comments before stripping trailing
12661         white space.
12663 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12665         * Version 1.09 released.
12667 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12669         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12671 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12673         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12675 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12677         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12678         about returning without a value.
12680         * troff/charinfo.h (charinfo::get_special_translation): Cast
12681         TRANSLATE_NONE to int.
12683         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12684         test.  Fix test so that it works with n unsigned.
12686         * pic/pic.y (defaults_table): Fully bracket initializer.
12687         * pic/lex.cc (lookup_keyword): Likewise.
12688         * eqn/lex.cc (token_table, def_table): Likewise.
12689         * eqn/box.cc (param_table): Likewise.
12690         * troff/input.cc (warning_table): Likewise.
12691         * libgroff/font.cc (table): Likewise.
12692         * grops/ps.cc (ps_printer::special): Likewise.
12693         * grops/psrm.cc (resource_manager::process_file): Likewise.
12694         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12695         * refer/command.cc (command_table): Likewise.
12696         * addftinfo/addftinfo.cc (param_table): Likewise.
12698         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12699         about temp's being unused.
12700         (unused): New function.
12702         * groff/pipeline.cc: Declare c_fatal.
12704         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12705         uchar.
12707         * libbib/index.cc (index_search_item::load): Prevent compiler
12708         warnings about fd_closer's being unused.
12709         (unused): New function.
12711 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12713         * troff/input.cc (copy_mode_error): Make `prefix' static.
12714         Fix typo.
12716         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12717         defined.
12718         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12719         HAVE_CC_OSFCN_H and modify accordingly.
12721         * troff/input.cc (init_charset_table): radicalex overlaps
12722         horizontally.
12724         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12725         udodo!hans@relay.NL.net).
12726         * groff/configure.in: Call it.
12728         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12729         * groff/configure.in: Call it.
12730         * include/lib.h: Conditionalize declaration of pclose.
12732         * troff/div.cc (last_page_number): New global variable.
12733         (top_level_diversion::begin_page): Exit if we just printed the
12734         last page.
12735         * troff/div.h (last_page_number): Declare it.
12736         * troff/input.cc (parse_output_page_list): Set last_page_number.
12738         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12739         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12740         tmac/tmac.X: Likewise.
12741         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12742         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12744 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12746         * tmac/doc-ditroff (hK): Remove groff specific code which
12747         prevented page-breaks between separate manual entries.  If this is
12748         the first page, don't set the page number to 1.
12750         * acgroff.m4 (GROFF_POSIX): New macro.
12751         * configure.in: Use it.
12753         * troff/node.cc (class real_output_file,
12754         real_output_file::real_output_file,
12755         real_output_file::~real_output_file): Conditionalize use of
12756         popen/pclose on POPEN_MISSING.
12757         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12758         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12759         (pipe_source): Similarily.
12761         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12763         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12764         presence of declarations by trying to compile example with
12765         conflicting declarations.  (gcc only gives a warning for missing
12766         declarations.)
12768 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12770         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12771         (from Ulrich Lauther).
12773 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12775         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12777 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12779         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12780         pointers and ints have different sizes.
12782 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12784         * tmac/tmac.s (par*env-init): Call par@reset.
12786 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12788         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12789         tag.
12790         (par*push-tag-env, par*pop-tag-env): New macros.
12792 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12794         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12795         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12797         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12798         comment.  Include <time.h>.
12800 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12802         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12803         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12804         lines.
12806 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12808         * troff/input.cc (read_request): Only print a prompt if reading
12809         from the terminal.  Also clearerr on EOF if reading from the
12810         terminal.  Declare isatty.
12812 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12814         * refer/label.y: Rename map_t to map_func and extractor_t to
12815         extractor_func.
12817 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12819         * include/assert.h: Don't use volatile.
12820         * libgroff/assert.cc: Likewise.
12822 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12824         * troff/input.cc (abort_request): Look at character in tok before
12825         calling get_copy().
12827 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12829         * troff/troff.h (NO_RETURN): Deleted.
12830         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12831         * troff/input.cc (exit_troff): Likewise
12833         * Makefile.in: Remove `Making ...' messages since GNU make now
12834         gives these. 
12836         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12838 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12840         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12841         to constant 1 inch.
12843 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12845         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12847 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12849         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12850         MARK_REG if there was no left delimiter.
12852 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12854         * pic/troff.cc (troff_output::text): Set line thickness to
12855         relative before outputting text.
12857         * tmac/tmac.e (@k): Don't zero ?T.
12858         ((z): Likewise.
12860 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12862         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12864 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12866         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12867         Paul Eggert).
12869 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12871         * troff/input.cc (ignoring): New variable.
12872         (ignore): Set ignoring during call to do_define_macro.
12873         (do_define_macro): Clear ignoring before interpolating terminating
12874         macro.
12875         (copy_mode_error): New function.
12876         (get_char_for_escape_name, read_long_escape_name,
12877         interpolate_arg): Use copy_mode_error.
12878         (warning_table): Add WARN_IG.
12879         * troff/troff.h (WARN_IG): Declare.
12880         (WARN_TOTAL): Change accordingly.
12882         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12883         * groff/groff.cc (strsignal): Delete declaration.
12885 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12887         * troff/div.cc (page_offset): Use 'm' as default scaling.
12889 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12891         * nroff/nroff.sh: Ignore -u.
12893 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12895         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12897 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12899         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12900         drawing box.
12901         (B2): With -Tascii, leave additional vertical space before
12902         and after. Ensure that the left and right indent is restored to
12903         what it was even if the point size changes.  Don't call
12904         par@finish. Change the indent, line length and title length
12905         directly.  With -Tascii, make the width of the box 1n less.
12906         (B1): Remember 1n at the current point size.  Don't call
12907         par@reset.  Change the indent, line length and title length
12908         directly.  Ensure that the temporary indent is preserved.
12909         (par*box-mark-top): Turn off no spacing mode.
12911 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12913         * Makefile.in (dist): Use .gz suffix.
12915 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12917         * troff/input.cc (main): Add return 0.
12918         * pic/main.cc (main): Use return instead of exit.
12919         * tbl/main.cc (main): Likewise.
12920         * eqn/main.cc (main): Likewise.
12921         * grops/ps.cc (main): Likewise.
12922         * grotty/tty.cc (main): Likewise.
12923         * groff/groff.cc (main): Likewise.
12924         * grodvi/dvi.cc (main): Likewise.
12925         * refer/refer.cc (main): Likewise.
12926         * indxbib/indxbib.cc (main): Likewise.
12927         * lkbib/lkbib.cc (main): Likewise.
12928         * soelim/soelim.cc (main): Likewise.
12929         * addftinfo/addftinfo.cc (main): Likewise.
12930         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12931         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12933         * troff/token.h (process_input_stack): Don't declare as static.
12934         * troff/input.cc: Likewise.
12936         * troff/node.c (invalidate_fontno): Make it a static member of
12937         class font_family.  Change callers.
12938         * troff/node.c: Change declaration.
12940         * tbl/main.cc (struct input_entry_format): Add explicit public
12941         specifier.
12942         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12943         struct double_hline_stuff): Likewise.
12944         * tbl/table.h (struct entry_format): Likewise.
12945         * pic/object.h (struct saved_state): Likewise.
12947         * include/stringclass.h: Add forward declarations of friend
12948         functions that are later declared as inline.  Don't include inline
12949         specifier in friend declaration.
12951         * libgroff/lib.h: Declare popen and pclose.
12952         * acgroff.m4 (GROFF_POPEN): New macro.
12953         * configure.in: Call it.
12955         * include/lib.h (PI): New constant. Undef first if necessary.
12956         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12957         * grops/ps.cc (degrees, radians): Likewise.
12958         * libgroff/font.cc (font::get_skew): Likewise.
12960         * grops/ps.cc (is_ascii): New function.
12961         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12962         isprint.
12963         (ps_printer::define_encoding): Use csspace.
12964         * libgroff/strtol.c (ISASCII): New macro.
12965         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12966         Use ISASCII rather than isascii.
12967         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12968         * libgroff/cset.cc: Likewise.
12969         * libdriver/input.cc: Include cset.h.
12970         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12971         than isdigit().
12973         * refer/refer.cc (main): Use %ld rather than %d for longs.
12975         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12976         S_ISREG macro.
12978         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12980 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12982         * troff/input.cc (hyphenation_code): Skip white space between
12983         char/code pairs.
12985 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12987         * tbl/table.h (table::entry_list_tailp): New member.
12988         (table::table): Initialize it.
12989         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12990         behaviour.
12992 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12994         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12995         with negative horizontal positions. Remove casts of glyph::hpos to
12996         int.
12997         (USHRT_MAX): Delete definition.
12998         (SHRT_MAX, SHRT_MIN): New definitions.
12999         (glyph::hpos): Change type to short.
13000         (tty_printer::end_page): Output multiple backspaces if necessary.
13001          Remove casts of glyph::hpos to int.
13002         
13003 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13005         * tmac/tmac.s (@RT): New definition.
13007 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13009         * refer/refer.cc (do_file): Make sure current_filename is set when
13010         filename is "-".
13012         * pic/common.cc (common_output::dot_line): Handle zero length
13013         lines.
13015 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13017         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13018         (par@init): Initialize \n[HY].
13020 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13022         * troff/dictionary.cc (dictionary::remove): Continue when
13023         r < j < i.
13025 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13027         * Makefile.com (.y.cc): Avoid ending up with two versions of
13028         $(YTABH).
13030 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13032         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13033         (\(,C): Likewise.  Also fix typo.
13035 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13037         * lib.h: Delete extraneous semi-colon.
13039         * Add pso request: `so' from a pipe.
13040         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13041         (file_iterator::close): New function.
13042         (file_iterator::~file_iterator, file_iterator::next_file): Use
13043         file_iterator::close.
13044         (file_iterator::backtrace): Say `process' rather than `file' when
13045         the stream is popened.
13046         (pipe_source): New function.
13047         (init_input_requests): Bind ".pso" to pipe_source.
13049 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13051         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13053         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13054         digits in lower case.
13056 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13058         * Version 1.08 released.
13060         * Makefile.in (dist): Insert || true after ln -s commands that
13061         might fail.
13063         * mm: Update to mm 1.16.
13065         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13066         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13067         SH_SCRIPT_SED_CMD.
13068         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13069         MDEFINES.
13070         * nroff/Makefile.sub (nroff): New target.
13071         (install_data): Install nroff.
13072         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13073         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13075 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13077         * eqn/Makefile.sub (neqn): Add chmod +x.
13079         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13081 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13083         * troff/input.cc (string_iterator::string_iterator()): Initialize
13084         lineno and count.
13086 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13088         * troff/div.cc (macro_diversion::space,
13089         top_level_diversion::space): Don't set high_water_mark.
13090         (macro_diversion::output, top_level_diversion::output): Don't
13091         include post line space in high water mark.
13093 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13095         * eqn/eqn.y: Don't define YYDEBUG.
13096         * pic/pic.y: Likewise.
13098 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13100         * tmac/tmac.e ([3): Add space after comma following editors.
13101         Change double spaces to single spaces.
13102         ([4): Change double spaces to single spaces.
13104         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13105         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13106         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13107         after %!PS-Adobe- (for Newsprint).
13109         * troff/div.cc (top_level_diversion::begin_page): When
13110         before_first_page is 1, set page_number to 1.
13112 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13114         * eqn/box.cc (box::top_level): Protect equation with \&.
13116 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13118         * groff/groff.cc (possible_command::set_name): Delete old name.
13120         * groff/groff.cc (possible_command::~possible_command): Use
13121         a_delete.
13123         * troff/node.cc (troff_output_file::begun_page): New member.
13124         (troff_output_file::troff_output_file): Initialize it.
13125         (troff_output_file::really_begin_page): Only output V command if a
13126         page has been begun.
13128         * pic/pic.y (placeless_element): Delete argument to PRINT after
13129         use.
13131 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13133         * Make wrapman work.
13134         * troff/div.h (class top_level_diversion): Replace
13135         first_page_begun by before_first_page (with opposite sense).
13136         * Change first_page_begun to before_first_page inverting sense.
13137         * troff/div.cc (class nl_reg): New class.
13138         (init_div_requests): Use class nl_reg for \n(nl.
13139         (top_level_diversion::begin_page): Don't call
13140         output_file::begin_page if before_first_page is 2;
13141         reset before_first_page afterwards.  If have_next_page_number is
13142         false, then always increment page_number.
13143         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13144         Restore compatibility mode after loading, and then disable
13145         compatibility mode in TH.
13147 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13149         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13150         past last line.
13151         * troff/node.h (output_file::trailer): Declare.
13152         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13153         * troff/node.cc (output_file::trailer): New function.
13154         (troff_output_file::~troff_output_file): Move most code into...
13155         (troff_output_file::trailer): New function.
13156         (class troff_output_file): Delete page_length member. Declare
13157         trailer().
13158         (troff_output_file::really_begin_page): Use current page length
13159         for final V command.
13161         * tbl/main.cc (struct options): New decimal_point_char member.
13162         (options::options): Initialize this.
13163         (process_options): Implement decimalpoint option.
13164         (process_data): Pass decimal_point_char option to table::table.
13165         * tbl/table.h (class table): New decimal_point_char member.
13166         (table::table): Add additional argument.
13167         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13168         second argument specifying decimal point character.  Use this
13169         instead of '.'.
13170         (table::table): Initialize decimal_point_char.
13171         (table::add_entry): Change call to find_dot.
13173         * troff/input.cc (get_copy, token::next): Implement \V.
13174         (interpolate_environment_variable): New function.
13176 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13178         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13179         * pic/pic.y: Likewise.
13181         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13182         Add casts to int.
13183         * refer/ref.cc (reference::insert_field, reference::delete_field):
13184         Likewise.
13185         * troff/number.cc (parse_term): Likewise.
13187         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13188         * configure.in: Use GROFF_PROG_YACC.
13190         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13191         and g++.
13192         * Makefile.in (OPTIMIZE): New define.
13193         (DEBUG): Empty by default.
13194         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13196         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13197         (GROFF_ARRAY_DELETE): Likewise.
13198         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13200         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13202         * devps/psstrip.sed: Use different delimiter on last line (so that
13203         it works with BSD 4.4 sed.)
13205 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13207         * devps/psstrip.sed: Delete comments.
13209         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13210         optind, opterr, optarg.
13211         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13212         opterr, optarg.
13214 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13216         * Makefile.in (check): Dummy target.
13218 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13220         * Version 1.07 released.
13222         * Integrate mm 1.11.
13224         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13225         where start_col was meant.
13227 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13229         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13231 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13233         * troff/input.cc (token::next): Make \z\o'...' and similar things
13234         work.
13236         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13237         constants.
13238         (environment): Add margin_character_flags member.
13239         * env.cc (environment::environment(symbol),
13240         environment::environment(const environment *): Initialize
13241         margin_character_flags.
13242         (margin_character): Rewrite.
13243         (environment::output_line): Add a margin character if
13244         margin_character_flags is non-zero.  Turn off the
13245         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13246         zero, use margin_character_node without copying and then set
13247         margin_character_node to 0.
13249         * devps/DESC.in: Change minimum size to 1000.
13251 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13253         * troff/symbol.h (symbol::hash): Change return type to unsigned
13254         long.
13255         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13256         Add casts to int.
13258         * test-groff: Use -r rather than -x.
13260         * grops/psfig.diff: Include in distribution again.
13262 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13264         * Makefile.in (dist): Use gzip.
13266 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13268         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13269         unistd.h as well as in stdlib.h.
13270         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13271         defined; otherwise include <sys/types.h> and <unistd.h> if
13272         UNISTD_H_DECLARES_GETOPT is defined.
13274         * configure.in: use builtin(include, ... rather than include(...
13275         * configure: Regenerate with autoconf 1.3.
13277         * libdriver/print.cc (printer::adjust_arc_center): Use new
13278         algorithm suggested by Andy Fyfe.
13280         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13281         * include/printer.h: Declare this.
13282         * grops/ps.cc (ps_printer::draw): Use it.
13283         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13285 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13287         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13289 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13291         * eqn/main.cc (main): Handle "eqn -".
13293 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13295         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13297         * mm: Integrate version 1.08.
13299         * pic/troff.cc (troff_output::finish_picture): Set
13300         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13301         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13302         if it's not defined. Check whether the register is non-zero rather
13303         than whether it's not defined.
13304         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13306         * indxbib/indxbib.cc: Move all signal handling into...
13307         * indxbib/signal.c: New file.
13308         * configure.in: Call AC_RETSIGTYPE.
13310         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13311         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13312         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13314         * troff/input.cc (token::token, token::operator=): Work round SGI
13315         C++ bug.
13316         * pic/object.cc (position::position): Likewise.
13318 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13320         * pic/pic.h: Move declaration of hypot().
13322 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13324         * pic/pic.h: Declare hypot().
13326         * pic/pic.h: Define M_PI if necessary.
13328 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13330         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13331         `.ta T' feature.
13333         * devps/prologue.ps (RE): Handle the possibility that the old font
13334         doesn't have a FontName entry.
13336 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13338         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13339         (@C): Use @fam not fam.
13341 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13343         * lookbib/lookbib.cc (main): Change type of start to const char *.
13344         * lkbib/lkbib.cc (main): Likewise.
13346         * eqn/lex.cc (definition::definition): Don't use member
13347         initializer syntax for members of anonymous unions.
13349         * troff/input.cc (input_stack::backtrace): Change type of to const
13350         char *.
13352 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13354         * include/stringclass.h (class string): Declare inline friend
13355         functions as inline in class declaration.
13356         * troff/hvunits.h (class hunits, class vunits): Likewise.
13357         * include/refid.h (class reference_id): Likewise
13358         * troff/troff.h (points_to_units(units), scale(units, double)):
13359         Delete declarations.
13360         * libdriver/input.cc (get_char): Delete declaration.
13361         * include/lib.h: Change 2nd argument of getopt from const char **
13362         to char **.
13363         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13364         char **' before assigning to a `const char **'.
13365         * tbl/table.cc: Delete extra declarations of prints().
13367 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13369         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13370         char **' before assigning to a `const char **'.
13372         * libgroff/errarg.cc (errarg::errarg): Don't use member
13373         initializer syntax for members of anonymous unions.
13375 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13377         * mm: Integrate version 1.07.
13379 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13381         * troff/input.c (translate2): Rename to
13382         (translate_no_transparent).
13383         (init_input_requests): Rename tr2 to trnt.
13385 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13387         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13388         (charinfo::set_translation, charinfo::set_special_translation):
13389         Add second argument that specifies value for
13390         transparent_translate.
13391         (charinfo::get_translation, charinfo::get_special_translation):
13392         Add optional second argument that specifies whether translation is
13393         being used for transparent throughput.
13394         * troff/input.cc (charinfo::set_translation,
13395         charinfo::set_special_translation): Handle second argument.
13396         (charinfo::charinfo): Initialize transparent_translate.
13397         (translate): Split main part off into
13398         (do_translate): New function.  Pass argument saying whether
13399         translation applies to transparent throughput.
13400         (translate2): New request.
13401         (init_input_requests): Bind translate2 to `tr2'.
13403 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13405         * tbl/table.h (class table): Add `nokeep' flag.
13406         * tbl/main.cc (process_options): Handle `nokeep' option.
13407         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13408         table::do_bottom): Don't output keep/release macro definitions or
13409         calls when `nokeep' option has been specified.
13411 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13413         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13415 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13417         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13418         block_entry::divert, alphabetic_block_entry::divert): Add extra
13419         argument giving column separation.
13420         (table::compute_widths): Pass column separation to
13421         table_entry::divert().
13422         (block_entry::do_divert): If an entry spans multiple columns and a
13423         minimumum width has been specified for each column, then set the
13424         line length to the sum of the widths (plus possibly the column
13425         separations).
13427         * troff/input.cc (set_escape_char): Don't set the escape_char
13428         until after calling has_arg().
13430 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13432         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13433         case.
13435         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13436         in case where r > nrows - 1.
13438         * tbl/table.cc (BODY_HEIGHT): Deleted.
13439         (LINE_SEP): New definition.
13440         (table::print_single_hline, table::print_double_hline,
13441         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13442         table::do_row, table::do_top): Use LINE_SEP space before a line
13443         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13445         * tbl/table.cc (text_entry::print_contents): New function.
13446         (text_string_name, right_text_string_name): Deleted.
13447         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13448         (simple_text_entry::do_width, numeric_text_entry::do_width,
13449         alphabetic_text_entry::do_width): Don't store the contents of the
13450         entry in a string.
13451         (left_text_entry::simple_print, right_text_entry::simple_print,
13452         center_text_entry::simple_print,
13453         alphabetic_text_entry::simple_print,
13454         numeric_text_entry::simple_print): Print the entry directly
13455         instead of using the stored string.
13457 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13459         * devps/Makefile: Strip PostScript files.
13460         * devps/prologue: Rename to...
13461         * devps/prologue.ps.
13462         * devps/psstrip.sed: New file.
13463         * devps/download: Use .pfa rather than .ps for installed versions
13464         of fonts.
13466 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13468         * troff/env.cc (input_trap): Give a warning if the argument is out
13469         of range.
13471         * troff/env.cc (adjust): Treat negative argument as missing. Round
13472         argument > 5 down to 5.
13474         * troff/env.cc (center, right_justify): Make negative argument zero.
13476         * troff/div.cc (page_offset, vertical_position_traps): Treat
13477         invalid argument as missing.
13478         * troff/env.cc (line_spacing, line_length, title_length, indent,
13479         underline, hyphen_line_max_request, control_char,
13480         no_break_control_char, widow_control_request, adjust, input_trap,
13481         point_size): Likewise.
13482         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13483         constant_space): Likewise.
13484         * troff/input.cc (compatible, shift, warn_request,
13485         set_escape_char): Likewise.
13487         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13488         * tbl/table.cc (table::table): Likewise.
13490         * Makefile.dev (install_dev): depends on $(DEVFILES).
13492 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13494         * devX75, devX75-12, devX100, devX100-12: New directories.
13495         * Makefile.in: Add these to DEVDIRS.
13497         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13498         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13499         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13500         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13501         targets.
13502         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13503         (uninstall): New target.
13504         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13505         uninstall_prog, uninstall_dev): New targets.
13507         * troff/div.cc (return_request): Treat an invalid argument as
13508         missing.
13510 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13512         * tmac/tmac.e ((f): Set up the environment even when there's a
13513         current diversion.  Transperently throughput a call to @N.
13514         (@N): New macro.
13516 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13518         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13519         up to vertical resolution.
13521         * tbl/table.cc (table::do_row): Change row number after printing
13522         stuff list.
13524         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13526 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13528         * Rename CHANGES to NEWS.
13530 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13532         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13534 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13536         * man.ultrix: Removed.
13538 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13540         * Makefile.comm (extraclean): Delete files whose names begin with
13541         `='.
13543         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13544         aligned text.
13546 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13548         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13549         * troff/div.cc (page_length, need_space, space_request): Treat
13550         invalid optional argument as missing.
13551         * troff/env.cc (number_lines): If the first argument is present
13552         but not a number, turn on line numbering, don't change the next
13553         line number and parse the remaining arguments.
13555         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13557 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13559         * eqn/box.h: Change declaration accordingly.
13560         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13561         the specified size was bad but don't give an error.  Check for
13562         overflow.
13563         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13564         * eqn/lex (do_size): Likewise.
13566 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13568         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13569         compatible headers.
13571 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13573         * tbl/table.cc (table::init_output): Improve error message when
13574         table won't fit on one page.
13576 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13578         * pic/troff.cc (troff_output::start_picture): Generate line
13579         containing a horizontal motion equal to the width of the picture.
13581         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13582         using GROFF_COMMAND_PREFIX environment variable.
13584 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13586         * mdate.sh: Use $NF rather than $(NF).
13588 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13590         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13592         * eqn/main.cc (main): Output code to check that geqn was given the
13593         correct -T option.
13595 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13597         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13598         `ln -s ../Makefile .; make; rm -f Makefile'.
13600         * troff/hyphen: Rename to...
13601         * troff/hyphen.us:
13602         * troff/input.cc (main): Delete -H option. Don't call
13603         read_hyphen_file().
13604         * troff/env.cc: Include searchpath.h and macropath.h.
13605         (exception_dictionary): Deleted.
13606         (ht): Deleted.
13607         (read_hyphen_file): Deleted.
13608         (hyphenation_language): New struct.
13609         (class trie, class hyphen_trie): Move declarations up.
13610         (trie_node::~trie_node): Deleted.
13611         (trie::delete_trie_node): New function.
13612         (trie::do_delete): New pure virtual function.
13613         (hyphen_trie::do_delete): New function.
13614         (trie::~trie): New function.
13615         (hyphen_trie::~hyphen_trie): New function.
13616         (trie::clear): No need to chcek that tp is not 0.
13617         (current_language, language_dictionary): New variables.
13618         (hyphen_word): Give an error if no current language.  Use
13619         exceptions dictionary in current language.
13620         (hyphen_trie::read_patterns_file): Find file using macro_path.
13621         Allow comments (starting with %) in patterns file.  Don't make it
13622         a fatal error if the file can't be found.
13623         (hyphenate): Return if no current language.  Get the exceptions
13624         dictionary and the hyphenation patterns from the current language.
13625         (set_hyphenation_language): New variable.
13626         (hyphenation_patterns_file): New function.
13627         (hyphenation_language_reg): New class.
13628         (hyphenation_language_reg::get_string): New function.
13629         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13630         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13631         register.
13632         * groff/groff.cc (main, help, synopsis): Delete -H option.
13633         * include/Makefile.sub: Don't define HYPHENFILE.
13634         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13635         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13636         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13637         hyphenation patterns.
13639 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13641         * eqn/neqn.sh: New file.
13642         * eqn/Makefile.sub: Handle neqn.sh.
13644         * eqn/eqn.h: Declare `nroff' variable.
13645         * eqn/box.cc (param_table): Add `nroff' param.
13646         (nroff): Define it.
13647         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13648         variable.
13649         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13651         * troff/troff.h (WARN_FONT): New warning.
13652         (WARN_TOTAL): Change accordingly.
13653         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13654         (warning_table): Add WARN_FONT.
13655         * troff/node.cc (mount_font_no_translate): Pass argument to
13656         font::load_font.  If this is non-zero, give a warning.
13657         Don't give an error message when accessing a font that has already
13658         been found to be invalid.
13659         * include/font.h (font::load, font::load_font): Add additional
13660         optional argument which suppresses error message if the font is
13661         not found.
13662         * libgroff/font.cc (font::load_font): Handle additional argument.
13663         (font::load): Add additional argument. If this is non-null, set it
13664         to 1 and don't give error message.
13666         * include/printer.h (printer::end_page): Add argument giving
13667         length of page.
13668         * libdriver/input.cc (do_file): Pass this.
13669         * grops/ps.cc (ps_printer::end_page): Add argument.
13670         * grodvi/dvi.cc (dvi_printer::end_page,
13671         draw_dvi_printer::end_page): Add argument.
13672         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13673         columns_per_page members. New member nlines.
13674         (DEFAULT_LINES_PER_PAGE): Deleted.
13675         (tty_printer::tty_printer): Don't compute lines_per_page from
13676         font::paperlength. Don't compute columns_per_page from
13677         font::paperwidth.
13678         (tty_printer::add_char): Don't check horizontal position against
13679         columns_per_page. Grow glyphs vector if neccessary.
13680         (tty_printer::end_page): Add argument giving page_length in units.
13681         Discard lines past end of page.
13683 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13685         * tmac/tmac.tty-char: Fix definition of \(/l.
13687         * tmac/tmac.X: Define \(en.
13689 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13691         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13692         lpq, then use lp rather than lpr.
13694         * tmac/tmac.s (par@reset): Don't call `ad'.
13695         (par*env-init): Call `ad'.
13697 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13699         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13700         date.
13702         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13703         * indxbib/indxbib.cc: Likewise.
13705 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13707         * libgroff/putenv.c: New file.
13708         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13709         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13710         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13711         stdlib.h with AC_HAVE_HEADERS.
13713 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13715         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13716         does not exist.
13718 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13720         * eqn/box.cc (gsize): Make it an int.
13721         (set_gsize): Parse argument handling increment or decrement.
13722         (box::top_level): Convert gsize to a string.
13724         * troff/input.cc (exit_troff): Make buf unsigned char [].
13725         Call to make_temp_iterator casts buf to char*.
13727         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13729         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13730         * Makefile.cpg (depend.temp): Likewise.
13732         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13734         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13736 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13738         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13740 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13742         * Version 1.06 released.
13744         * Integrate mm 1.04.
13746 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13748         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13750 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13752         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13753         ligatures command.
13754         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13755         afmtodit. Regenerate.
13757         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13758         @f back past the current position.
13760         * tmac/tmac.e: Change calls to @R so that comments are not part of
13761         arguments.
13763 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13765         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13767         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13768         check that we can link a call to a function declared in <stdio.h>.
13769         (GROFF_UNISTD_H): New macro.
13770         * configure.in: Call it.
13771         * Makefile.in: Document it.
13772         * include/posix.h: New file.
13773         * troff/troff.h: Don't include <osfcn.h>
13774         * troff/input.cc: Include posix.h.
13775         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13776         osfcn.h.
13777         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13778         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13779         <fcntl.h>.
13780         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13781         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13782         * libbib/search.cc (O_RDONLY): Delete definition.
13783         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13784         Don't include <osfcn.h>.
13786         * acgroff.m4 (GROFF_TIME_T): New macro.
13787         * configure.in: Call it.
13788         * Makefile.in: Document it.
13790         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13791         * configure.in: Call it.
13792         * Makefile.in: Document -DTRADITIONAL_CPP.
13793         * include/ptable.h: Don't include generic.h.
13794         (name2): Define it.
13796         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13797         Afterwards remove [T1 and [T2.
13798         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13799         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13800         (ref*add-T2): Renamed from ref*add-T.
13801         (ref*add-T1): New macro.
13803 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13805         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13807         * libbib/index.cc: Include <fcntl.h>.
13808         (O_RDONLY): Define if necessary.
13809         (make_index_search_item, index_search_item_iterator::get_tag,
13810         index_search_item::check_files): Use O_RDONLY.
13811         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13812         (O_RDONLY): Define if necessary.
13813         (search_list::add_file): Use O_RDONLY.
13814         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13815         <sys/stat.h>.
13816         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13817         (main): Use these.
13819         * libbib/index.cc (S_ISREG): Define it if necessary.
13820         (index_search_item::load): Use S_ISREG.
13822         * include/driver.h: Include <errno.h>.
13824 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13826         * eqn/box.cc (body_height): Increase default value to 85.
13827         (body_depth): Increase default value to 35.
13829 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13831         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13832         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13833         protected from expansion with \E.
13835         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13837         * Makefile (Makefile): New target.
13839         * Makefile.sub (configure, distfiles): New targets.
13841         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13842         construct.
13844 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13846         * eqn/box.cc (param_table): Add body_height and body_depth.
13848         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13850 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13852         * psbb/Makefile.sub: Don't link with libgroff.a.
13854         * acgroff.m4 (GROFF_PUTENV): New macro.
13855         * configure.in: Call GROFF_PUTENV.
13856         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13857         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13858         is defined.
13860         * troff/env.cc (distribute_space): Rename force_forward argument
13861         to force_reverse.  Reverse the list if force_reverse is true.
13863 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13865         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13867         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13868         height or depth to be negative.  Guard against SUP_RAISE quantity
13869         being negative.
13871 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13873         * devps/generate/textmap: Add `an' (arrowhorizex).
13874         * tmac/tmac.ps: \(an overlaps horizontally.
13875         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13877         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13878         * devps/textmap: Add arrowvertex.
13879         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13880         updownarrow delimiters.
13881         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13883         * tbl/table.cc (simple_entry::position_vertically,
13884         block_entry::position_vertically):  For a centered entry, perform
13885         the motion in two stages.
13887         * refer/refer.cc (split_punct): Don't call lookup_token if there
13888         is no token.
13890 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13892         * troff/input.cc (token::next): Delete token_node after copying
13893         token.
13895         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13896         cur_point_size.
13898         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13900         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13902 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13904         * grops/ps.cc (usage): -b option takes an argument.
13906         * devps/prologue (PLG): New procedure.
13907         * grops/ps.cc (main, usage): New -g option.
13908         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13909         length using PLG.
13911 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13913         * include/cset.h: Include <limits.h> if we have it.
13915         * libgroff/illegal.cc: New file.
13916         * include/lib.h (illegal_input_char): Use table.
13917         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13918         * pic/lex.cc (ARG1): Renumber to 14.
13919         * eqn/lex.cc (ARG1): Likewise.
13921         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13922         (eg 1.05.90) correctly.
13924 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13926         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13927         Rename $r and $R registers to $v and $V.
13928         ($r, $R): Initialize to 0.
13929         (@v, @V): New macros.
13930         (sz): Call @v.
13931         (@M): Call @V.
13933         * troff/input.cc (main, usage): Add -R option that says not to
13934         load troffrc.
13935         * eqn/main.cc (main, usage): Rename -n to -R.
13937 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13939         * devps/DESC.in: Leave font positions 5-9 blank.
13940         * devdvi/DESC.in: Likewise.
13942         * grog/grog.pl: Handle `.PS <file' correctly.
13944         * troff/input.cc (input_stack::push): Improve error message when
13945         input stack limit exceeded.
13947 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13949         * refer/refer.cc (main): Fix typo in handling of `a' option.
13951         * refer/refer.cc (do_bib): In state START after a newline remain
13952         in state START.
13954         * groff/groff.sh: Deleted.
13955         * groff/Makefile.sub: Delete handling of groff.sh.
13957         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13958         to determine whether to use \X'ps:...'.
13959         * tmac/troffrc: Set 0p register to 0.
13960         * tmac/tmac.ps: Set 0p register to 1.
13962         * groff/groff.cc: Support -X option. Give warning for -TXps and
13963         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13964         * tmac/troffrc: Support -r.X=1.
13966         * pic/troff.cc (troff_output::dot): Don't test
13967         zero_length_line_flag.
13969 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13971         * include/lib.h: Declare getopt() and friends unless
13972         STDLIB_H_DECLARES_GETOPT is defined.
13974         * doc/chars.tr: Delete.
13975         * man/groff_char.man: New file.
13977 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13979         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13980         user has changed register format.
13982 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13984         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13985         `postpro' command in DESC file.  Get spooler command from `print'
13986         command in DESC file.  Execute spooler command with /bin/sh.
13988         * groff/groff.cc: Split Unix-specific parts into...
13989         * groff/pipeline.c: New file.
13991         * LICENSE: Delete.
13992         * COPYING: New file.
13993         * all files: Update copyright notices.
13995         * Rearrange files.  Redo Makefiles.  Use autoconf.
13997 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13999         * troff/input.c (charinfo_to_node_list): Interpret character
14000         definition with escape_char of `\'.
14002 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14004         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14005         Define INT_DIGITS as big enough for 64-bit integer.
14006         * lib/strtol.c: Don't include lib.h.
14007         * lib/lib.h: Delete ifdef __cplusplus stuff.
14009 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14011         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14012         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14013         get DESC from current directory.
14015 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14017         * tbl/main.c (main): Always reset the line number when reading
14018         from stdin.
14020         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14021         table::define_bottom_macro, table::do_row, table::do_top): Round
14022         vertical spacing up to vertical resolution.
14024 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14026         * ps/ps.h (enum resource_type): Avoid comma at end of
14027         enumerator-list.
14028         * dvi/dvi.c (class dvi_printer): Likewise.
14029         * dvi/tfmtodit.c (gf::load): Likewise.
14030         * refer/label.y (struct expression): Likewise.
14031         * refer/refer.c (class label_processing_state): Likewise.
14032         * refer/indxbib.c (do_file): Likewise.
14033         * troff/troff.c (enum warning_type): Likewise.
14034         * tbl/main.c (process_data): Likewise.
14035         * troff/charinfo.h (class charinfo):
14037 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14039         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14041 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14043         * groff.c: Move to new groff subdirectory.
14044         * groff/Makefile: New file.
14045         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14047         * man/mdate.sh: Use ls -L if supported.
14049         * Consolidate all header files produced by gendef into lib/defs.h.
14050         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14051         Don't include path.h.
14052         * lib/Makefile (path.h): Don't generate.
14053         * troff/input.c: Include defs.h. Don't include config.h.
14054         * troff/Makefile (config.h): Don't generate.
14055         * refer/index.h: Don't include suffix.h.
14056         * refer/index.c: Include defs.h.
14057         * refer/indxbib.c: Include defs.h.
14058         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14059         defs.h.
14060         * refer/Makefile (suffix.h, path.h): Don't generate.
14061         * groff.c: Don't include config.h. Include defs.h.
14062         * Makefile (config.h): Don't generate.
14063         (lib/defs.h): Generate.
14064         (topclean): Remove lib/defs.h.
14066 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14068         * lib/malloc.c, lib/getpagesize.h: Deleted.
14069         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14070         related stuff.
14071         * lib/Makefile: Delete malloc-related stuff.
14072         * lib/new.c: Workaround COOKIE_BUG if necessary.
14074         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14075         needed header files directly.
14076         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14077         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14079 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14081         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14082         argument.
14083         * lib/font (font::load_desc, font::load): Don't split argument of
14084         unknown command.
14085         (font::handle_unknown_font_command): Change type.
14086         * ps/ps.c (ps_font::handle_unknown_font_command,
14087         handle_unknown_desc_command): Change type.
14088         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14090 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14092         * lib/font.h (font::handle_unknown_font_command): Add file and
14093         line arguments.
14094         * lib/font.c (font::handle_unknown_font_command):
14095         * ps/ps.c (ps_font::handle_unknown_font_command):
14096         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14097         lineno arguments.  Use _with_file_and_line functions for error
14098         reporting.
14100         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14101         data member.
14102         * lib/font.c (font::set_unknown_desc_command_handler): New
14103         function.
14104         (font::load_desc): For unknown commands, call
14105         unknown_desc_command_handler if not null.
14106         * lib/font.h (class font): Declare them.
14107         (FONT_COMMAND_HANDLER): New typedef.
14108         * ps/ps.c (handle_unknown_desc_command): New function.
14109         (main): Set bflag if we had a -b option. Call
14110         font::set_unknown_desc_command_handler.
14111         (broken.h): Don't include.
14112         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14113         submake 
14114         * ps/devps/Makefile: Add `broken' command to DESC file using
14115         BROKEN_SPOOLER_FLAGS.
14117         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14119         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14121         * macros/tmac.e (@R, @S): New macros.
14122         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14123         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14124         Declare $H, $[0-9], .. macros with @S.
14125         Declare |0, |1, |2, |3 strings with @S.
14127         * macros/tmac.e (@S): Rename to @U.
14129         * macros/tmac.e (@z): Define @b and bp as empty instead of
14130         deleting them,
14132         * macros/tmac.e (@m): Deleted.
14133         (@h): Don't call @m.
14134         (@z): Don't set @m trap.
14136         * macros/tmac.e ($h, $f): Define |z as empty string.
14138         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14139         (@q): Likewise.
14141         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14142         removing them.
14143         ()f): Likewise for * register.
14145         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14146         argument is missing, don't change $R.  Call sr with three
14147         arguments when initializing.
14149 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14151         * macros/tmac.e (sr): New macro.
14152         Initialize $r and $R using sr.
14154         * macros/tmac.e (,): Delete \*(#[.
14156         * troff/env.c (set_tabs): Read the tab type even if the position
14157         is bad.  Allow the position of the first tab stop to be negative.
14159 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14161         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14162         _POSIX_VERSION.
14163         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14164         rather than -DPATHCONF_MISSING.
14165         * Makefile: Get rid of PATHCONF_MISSING.
14167         * refer/map.c: New file.
14168         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14169         to map_len.
14170         * refer/Makefile: Handle map.c.
14171         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14173 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14175         * Makefile: RANLIB should be `true' if there is no ranlib.
14176         * lib/Makefile (libgroff.a): Simplify.
14177         * driver/Makefile (libdriver.a): Simplify.
14179         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14180         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14181         defined.
14183 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14185         * troff/env.c (compare_ranges): Declare as extern "C".
14187         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14189         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14191 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14193         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14194         but conditionalize use of \X based on \*(.T.
14195         (grops_output::*): Deleted.
14196         * pic/output.h: Delete declaration of make_grops_output.
14197         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14198         by default. -n sets it to 0.
14199         (usage): Corresponding changes.
14200         * groff.c (main): Don't pass -x or -p to pic.
14201         * groff.sh: Likewise.
14203         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14204         to be non-zero.
14206         * ps/devps/afmtodit: Change calculation of asc_boundary and
14207         desc_boundary.  Make these bounds inclusive.
14208         * ps/devps: Regenerate font files.
14210 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14212         * macros/tmac.latin1: New file.
14213         * macros/tmac.tty-char: Use tmac.latin1.
14214         (tmac.tty-tr): Deleted.
14215         * macros/Makefile: Install tmac.latin1.
14216         * macros/tmac.dvi: Use tmac.latin1.
14217         * macros/troffrc: Translate \[char160] onto no-break space here.
14218         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14220 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14222         * macros/tmac.Xps: Use `do' request.
14224         * macros/tmac.ps: Use `do' request.
14226         * macros/tmac.e (@C): Use `do' request.
14228         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14229         * macros/Makefile: Install tmac.X*.
14231         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14232         * tty/Makefile: Don't install tmac.tty*.
14233         * macros/Makefile: Install tmac.tty*.
14235         * dvi/tmac.dvi: Move to macros.
14236         * dvi/Makefile: Don't install tmac.dvi.
14237         * macros/Makefile: Install tmac.dvi.
14239         * ps/tmac.ps*: Move to macros.
14240         * ps/Makefile: Don't install tmac.ps*.
14241         * macros/Makefile: Install tmac.ps*.
14243         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14244         option.
14245         * macros/eqnrc: Set draw_lines parameter based on device.
14246         * groff.c: Don't pass -D flag to eqn.
14247         * groff.sh: Likewise.
14248         * eqn/main.c: Warn about use of -D.
14250         * troff/input.c (process_startup_file): New function.
14251         (main): Call process_startup_file().
14252         * macros/troffrc: New file.
14253         * macros/Makefile: Install troffrc.
14254         * groff.c (main): Don't pass extra -m option to troff. For a 
14255         pseudo device pass the name of the pseudo device to troff using
14256         -d.
14257         * groff.sh: Likewise.
14258         * groff.c (possible_command::prepend_arg): Deleted.
14260         * troff/input.c (do_request): New function.
14261         (init_input_requests): Bind "do" to do_request.
14263         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14264         load eqnrc from macro directory.
14265         * macros/eqnrc: New file.
14266         * macros/Makefile: Install eqnrc.
14267         * ps/devps/eqnchar: Deleted.
14268         * ps/devps/Makefile: Don't install eqnchar.
14269         * dvi/devdvi/eqnchar: Deleted.
14270         * dvi/devdvi/Makefile: Don't install eqnchar.
14271         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14272         variable optM.
14274         * lib/device.[ch]: New files.
14275         * lib/font.h (font::set_device_name, font::get_device_name):
14276         Deleted.
14277         * lib/fontfile.c: Use device.h.
14278         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14279         * troff/input.c: Delete definition of `device'.
14280         (main): Don't initialize device.
14281         * troff/troff.h: Include device.h rather than declaring device.
14282         * troff/Makefile: No need to handle DEVICE.
14283         * driver/input.c: Include device.h. Don't use
14284         font::{set,get}_device_name.
14285         * groff.c, Makefile: Rename device.h to config.h.
14286         * groff.c: Use library device variable.
14287         * eqn/main.c: Use library device variable.
14288         * eqn/Makefile: No need to handle DEVICE.
14290         * lib/searchpath.[ch]: New files.
14291         * lib/Makefile: Handle searchpath.[ch].
14292         * troff/input.c (open_file, init_dirs): Deleted.
14293         (macro_dirs): Deleted.
14294         (open_mac_file, macro_source): Use class search_path.
14295         (add_string, struct string_list): Move definition.
14296         (main): Change -M option to use macro_path. Delete call to
14297         init_dirs().
14298         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14299         Rewrite to use class search_path.
14300         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14301         * lib/Makefile: fontfile.c depends on searchpath.h.
14302         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14303         MACROPATH.
14304         * lib/macropath.[ch]: New files.
14305         * troff/Makefile: No need to handle MACROPATH.
14307         * troff/input.c: Delete DUMP code.
14308         * lib/fontfile.c, lib/font.h: Delete
14309         font::forget_command_line_font_dirs.
14311         * troff/input.c (push_token): New function.
14312         (handle_first_page_transition): Use push_token().
14313         (process_input_stack): Change handling of a space at the beginning
14314         of the line.
14316 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14318         * troff/input.c (font_dirs): Delete unused variable.
14320         * eqn/lex.c (do_set): Correct error messages.
14322 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14324         * troff/input.c (do_define_string): Allow the string name to be
14325         followed immediately by a tab.
14326         (define_character): Likewise.
14328 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14330         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14331         be negative.
14333         * troff/input.c (input_iterator::is_file): New virtual function.
14334         (file_iterator::is_file): New function.
14335         (input_stack::end_file): New function.
14336         (input_stack::next_file): Handle the situation where there is no
14337         file on the input stack correctly.  Avoid making two passes over
14338         the input stack.
14339         (next_file): Make the filename optional; in this case call
14340         input_stack::end_file().
14342 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14344         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14345         produce a real _ charater when the current font is CW and _
14346         otherwise.
14348         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14349         expression to work around gcc 2.2 bug.
14351 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14353         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14355         * troff/env.c (environment::add_padding): New function.
14356         (environment::add_char): Use add_padding().
14357         (environment::space): Likewise.
14358         (environment::wrap_up_field): Add some padding if there is none
14359         and there's no current tab.
14360         * troff/env.h: Declare environment::add_padding.
14362 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14364         * pic/pic.y: undef fmod and rand before declaring them.
14366 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14368         * troff/input.c (main): If the DESC file specifies a font name of
14369         0, then leave the corresponding font position empty.
14371         * nroff.sh: New file.
14372         * Makefile (install.nobin): Install nroff.sh.
14374         * tty/devlatin1/R.proto: Add ao as synonym for de.
14375         * tty/tmac.tty-char: Define ao as o.
14377         * tty/dev{ascii,latin1}/R.proto: Add aq.
14378         * tty/tmac.tty-char: Delete definition of aq.
14380 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14382         * troff/input.c (init_charset_table): Don't translate 0240.
14383         * ps/tmac.ps: Translate char160 to space.
14384         * dvi/tmac.dvi: Likewise.
14385         * tty/tmac.tty: Likewise.
14387 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14389         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14391         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14392         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14393         \(oe, \(r?, \(r!.
14395         * tty/tmac.tty-char: Add \(ah.
14397         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14398         No need to define \(FM and \(!/. Conditionalize all character
14399         definitions.
14401         * ps/devps/lgreekmap: Add +h, +f, +p.
14403         * ps/tmac.psnew: New file.
14404         * ps/Makefile: Install tmac.psnew.
14406         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14407         character definitions in compatible mode.
14409         * troff/input.c (remove_character): New function.
14410         (init_input_requests): Bind remove_character to "rchar".
14412         * ps/tmac.psold: New file.
14413         * ps/Makefile: Install tmac.psold.
14414         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14415         characters into tmac.psold.  Make these definitions unconditional.
14417         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14419         * ps/tmac.ps: Don't define \('c and \('C.
14421         * ps/devps/textmap: Move Greek characters to...
14422         * ps/devps/symbolchars:
14424 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14426         * ps/devps/text.enc: Add quotesingle.
14427         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14428         * tty/tmac.tty-char: Likewise.
14429         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14430         * dvi/devdvi/texi.map: Add Fn.
14431         * dvi/devdvi/msam.map: Add lz.
14432         * dvi/tmac.dvi: Handle Bq, bq, aq.
14434         * pic/lex.c (get_token): Recognize 'th.
14435         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14437 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14439         * ps/devps/textmap: Move di, mu, +- to...
14440         * ps/devps/symbolchars:
14442         * macros/tmac.s (@XS): Don't call par@reset or fi.
14443         (XA): Call LP. Turn off adjustment. Reduce line length.
14445         * macros/tmac.s: Initially alias XS to LP.
14446         (XS): Rename to @XS.
14447         (cov*ab-init): Alias XS to @XS.
14449 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14451         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14452         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14453         (token::is_size, token::changes_env): Deleted.
14454         * troff/number.c (parse_term): No need to process \s explicitly.
14455         Call tok.next() only after scale indicator has been processed.
14456         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14457         \f etc explicitly.
14458         (token::next): Handle \s, \f, \S, \H immediately rather than
14459         returning them as tokens.
14460         (token::operator==, token::description, token::add_to_node_list,
14461         token::process): Remove handling of deleted tokens.
14463         * troff/env.c (environment::add_char): When adding padding
14464         indicator character, call start_line() if necessary.
14466 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14468         * ps/devps/afmtodit: Don't output 0 kerns.
14470         * ps/devps/afmtodit: Remove directory from name of encoding in
14471         font description file.
14473         * ps/devps/afmtodit: Improve error messages.
14475         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14477         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14478         * ps/devps/FontMakefile: Deleted.
14479         * ps/devps/afmname: New file.
14481         * ps/devps/symbol.sed: New file.
14482         * ps/devps/symbol.diff: Deleted.
14483         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14484         Generate zapfdr.afm from zapfd.afm.
14486         * tty/tmac.tty (tty-char): Prefix definition with ".
14488         * macros/tmac.an (TP): Don't start a diversion if one has already
14489         been started.
14491         * tty/tmac.tty-char: Add Latin-1 characters.
14493         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14495 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14497         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14498         Move declaration of struct horizontal_span.
14500         * tbl/table.c (table::table): Initialize span_list.
14501         (table::~table): Delete span_list.
14503         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14505         * ps/devps/Makefile: Avoid dependency on GNU make.
14507         * ps/tmac.ps: Check that character does not already exist before
14508         defining it.
14510         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14511         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14512         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14513         files.
14515         * tty/tmac.tty-char: New file.
14516         * tty/Makefile: Install tmac.tty-char.
14517         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14518         tmac.tty-char.
14520         * tty/tmac.tty: Fix definition of \(34.
14522         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14523         bracket-drawing characters onto |. Add *o.
14525         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14526         only if current_field.
14528         * troff/dictionary.c (dictionary::lookup): Free old_table after
14529         rehashing. 
14531 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14533         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14534         whose glyphs are identical to glyphs of some Roman character.
14536         * tty/devlatin1/R.proto (bu): Deleted.
14537         * tty/devascii/R.proto (bu): Deleted.
14538         * tty/tmac.tty: Add definition of \(bu.
14540         * eqn/main.c (do_file): Pass FILE as argument.
14541         (main): Automatically load eqnchar.  New options -F and -n.
14542         Pass do_file an opened FILE.
14543         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14544         No need to include font.h.
14545         * groff.sh: Likewise.  Don't need to use - for standard input.
14546         Prefix files with -- if first file starts with -.
14548         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14550         * troff/env.c (environment::possibly_break_line): Don't set line
14551         to 0 across call to output_line().  Don't call output_line() until
14552         after discarding nodes after break.
14554 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14556         * request.h (macro::empty): Declare it.
14557         * input.c (macro::empty): New method.
14558         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14559         macro is empty.
14561 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14563         * troff/env.c (environment::start_field): Decrement space_total
14564         when a space is frozen.
14566 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14568         * macros/tmac.an (R): Delete macro.
14570         * troff/input.c (get_copy, token::next): Support \# (like \" but
14571         newline is ignored).
14573         * troff/input.c (token::next): Fix error message in 'Y' case.
14575 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14577         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14578         a delimiter name.
14580 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14582         * c++test.c: Include <osfcn.h>.
14584         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14585         <errno.h> doesn't.
14587 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14589         * tbl/table.c (table::divide_span): Don't count column separation
14590         if expand was specified.
14592         * tbl/main.c (process_format): Don't ignore width specs in
14593         continued format.  Give warning for changing equal widths or
14594         column separation in continued format.
14595         (process_data): Set column separation, minimum width, equal
14596         columns at end of table.
14598 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14600         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14601         node::add_discretionary_hyphen): Use soft_hyphen_char.
14602         (set_soft_hyphen_char): New function.
14603         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14605         * Makefile (c++tested): Give more helpful message if test fails.
14607 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14609         * troff/input.c (init_charset_table): Translate 0240 to
14610         an unbreakable space.
14612         * troff/token.h (token::hyphen_indicator): New function.
14613         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14614         translation.
14615         * troff/input.c (translate): Allow translation to \%.
14616         * troff/node.c (node::add_char): Handle
14617         TRANSLATE_HYPHEN_INDICATOR.     
14618         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14620         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14621         for \(hy.
14623         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14625 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14627         * groff.c (run_commands): If the last command gets a SIGPIPE send
14628         a SIGPIPE to all children than haven't yet terminated.  When
14629         command terminates, set pid field to -1.
14631 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14633         * groff.c (main): Pass an appropriate -filename option to gxditview.
14635 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14637         * Makefile.bd (install): Remove existing program before copying.
14639         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14640         programs which have Unix counterparts to be installed with
14641         user-specified prefix.
14643         * troff/input.c (exit_troff): Don't check if exit_started.
14644         (exit_request): Don't call exit_troff if exit_started.
14646         * Makefile.bd (install.mm): Rename to install.dwbmm.
14648 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14650         * driver/input.c (do_file): Add missing break for '#' case.
14652 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14654         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14655         then add the boundaries back.
14657         * troff/input.c (exit_troff): Return immediately if already
14658         exiting.
14660         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14661         end macro.
14662         (pg*end-page): If the text has ended and there are no more
14663         footnotes or keeps, exit.
14665         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14667         * troff/input.c (init_charset_table): Make \(rq transparent by
14668         default.
14670         * macros/tmac.an: Define lq and rq strings.
14672         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14674 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14676         * troff/env.c (environment::final_break): New function.
14677         (environment::newline): Set prev_line_interrupted to 2 if
14678         exit_started.
14679         * troff/env.h: Declare environment::final_break.
14680         * troff/input.c (exit_troff): Call environment::final_break()
14681         instead of environment::do_break().
14683         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14684         doesn't already exist.
14685         * macros/man.local: New file.
14686         * macros/tmac.an: Load man.local.
14687         * macros/man.ultrix: New file.
14689 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14691         * troff/input.c (exit_groff): Rename to...
14692         (exit_troff): New function.
14694         * troff/div.c (exit_started, done_end_macro,
14695         seen_last_page_ejector): New global variables.
14696         (began_page_in_end_macro): New static variable.
14697         (exit_flag): Deleted.
14698         (top_level_diversion::top_level_diversion): Initialize
14699         last_page_count.
14700         (top_level_diversion): More elaborate test for whether
14701         cleanup_and_exit() should be called.
14702         Set began_page_in_end_macro if the end macro isn't yet finished.
14703         * troff/div.h (top_level_diversion::last_page_count): New data
14704         member.
14705         (top_level_diversion::set_last_page): New function.
14706         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14707         * troff/env.c (do_break): Zero prev_line_interrupted.
14708         * troff/input.c (exit_flag): Delete declaration.
14709         (LAST_PAGE_EJECTOR): New magic cookie.
14710         (token::next): Handle LAST_PAGE_EJECTOR.
14711         (exit_groff): Set exit_started and done_end_macro instead of
14712         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14713         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14714         another ejection after setting seen_last_page_ejector.
14716 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14718         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14720         * macros/tmac.e (TH): Make sure there's room for the initial
14721         header.
14723         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14724         Set FVS in points rather than units.
14726 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14728         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14729         position of empty slots.
14731 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14733         * ps/devps/S: Fix height and depth of parenrightex.
14734         * ps/devps/symbol.diff: Regenerate.
14736 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14738         * tmac.e (u): Do underlining as in -mgs.
14740 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14742         * tty/tty.c (tty_printer::end_page): If overstriking is
14743         suppressed, still turn overstruck horizontal and vertical lines
14744         into +.
14746         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14747         2.1.
14749         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14751 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14753         * Version 1.05 released.
14755 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14757         * tty/tty.c: Instead of keeping an array of glyphs and then
14758         sorting it, keep a ordered linked list of glyphs for each line.
14760         * driver/driver.h: Include stddef.h.
14762         * tty/tty.c (compare_glyph):
14763         * refer/refer.c (rcompare):
14764         * troff/env.c (compare_ranges): Arguments of qsort comparison
14765         function should be const void *.
14767         * troff/number.c (parse_term):
14768         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14769         switch statement.
14771         * refer/label.y (consider_authors): Don't access variables
14772         constructed under a condition outside that condition: put braces
14773         round for statement containing declaration; redeclare use of same
14774         variable later.
14776         * pic/pic.y (text_expr): Delete production that allows
14777         parenthesised text_expr.
14778         (expr): Allow a conditional_expr to appear in parentheses.
14779         (conditional_expr): Rename to any_expr.
14781         * mm: Install new version 1.01 from jh.
14783         * lib/font.c (font::get_width): Cache scaled widths.
14784         (font::font): Initialize widths_cache.
14785         (font::~font): Destroy widths_cache.
14786         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14788 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14790         * c++test.c, c++test.ref: New files.
14791         * Makefile: Check that the C++ compiler works.
14793         * ps/tmac.pspic (PSPIC): Do a break.
14795         * ps/tmac.ps: Move definition of PSPIC into...
14796         * ps/tmac.pspic: New file.
14797         (PSPIC): Draw box around picture, but make it invisible to grops.
14798         * ps/tmac.ps: Load tmac.pspic.
14799         * ps/Makefile: Install tmac.pspic.
14801 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14803         * lib/font.c (scale_round): If n is negative,
14804         subtract .5 before truncating floating point result.
14806         * lib/fontfile.c: Include <errno.h>.
14808 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14810         * driver/input.c (get_char): Inline. Don't update current_lineno.
14811         Change callers to up date current_lineno if necessary.
14812         Use get_char() instead of getc(current_file).
14814 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14816         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14818 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14820         * tty/tty.c (tmac.tty): Define \(rg as (R).
14822 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14824         * lib/lib.h: New define a_delete.
14825         * Use a_delete instead of delete when deleting an array of objects
14826         without destructors.
14828         * lib/lib.h: Rename adelete to ad_delete.
14829         * Change uses of adelete.
14831 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14833         * eqn/eqn.y: Include lib.h.
14835         * troff/node.c (grow_font_table): Delete old_font_table.
14837         * mm: Install new version from jh.
14839 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14841         * tbl/table.h (format_type): Make global instead of local to class
14842         entry_format.  Prefix enumerators with FORMAT_.
14843         * tbl/table.c, tbl/main.c: Corresponding changes.
14844         * refer/token.h (token_type): Make global.  Prefix enumerators
14845         with TOKEN_.
14846         * refer/token.[ch]: Corresponding changes.
14847         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14849         * troff/div.c (node::set_vertical_size): Don't name argument.
14851 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14853         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14854         * lib/lib.h: Define adelete accordingly.
14855         * pic/object.c (graphic_object::graphic_object):
14856         * tbl/main.c (format::~format):
14857         * tbl/table.c (table::~table):
14858         * refer/ref.c (reference::~reference, reference::merge,
14859         reference::insert_field, reference::delete_field): Use adelete.
14861         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14862         * refer/token.h:
14863         * tbl/table.h: Corresponding changes.
14865         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14866         Ensure total_angle is positive.
14868 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14870         * refer/ref.c (reference::merge, reference::insert_field,
14871         reference::delete_field): Avoid delete[0].
14873         * refer/token.c (init_special_chars): Move calls to cmupper
14874         outside calls to init_two_char_letter to work around bug in gcc
14875         2.0.
14877 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14879         * lib/new.c (operator new): Use __builtin_new for g++.
14881         * pic/object.c (graphic_object::~graphic_object):  Don't use
14882         delete [] on 0.
14884         * pic/object.c (output::compute_scale): Initialize max_width and
14885         max_height.
14887 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14889         * troff/input.c (write_request): Call fflush.
14891         * troff/node.h (class composite_node): Move declaration to node.c
14892         * troff/input.c (charinfo_to_node): Rename to ...
14893         (charinfo_to_node_list): Return node list rather than composite
14894         node.
14895         * troff/node.c (make_composite_node): New function.
14896         (make_node, add_char): Call make_composite_node instead of
14897         charinfo_to_node.
14898         (class composite_node): Add a tfont * member.  Delete font_size
14899         member.
14900         (composite_node::composite_node, composite_node::copy,
14901         composite_node::size): Corresponding changes.
14902         (composite_node::tprint): Provide constant spacing, emboldening
14903         and track kerning as specified in tfont.
14904         (composite_node::width): Change width calculation accordingly.
14905         * troff/env.h (environment::composite): New member.
14906         (environment::is_composite, environment::set_composite): New
14907         functions.
14908         * troff/env.c (environment::environment): Initialize composite.
14909         * troff/input.c (charinfo_to_node): Call
14910         environment::set_composite.
14911         * troff/node.c (make_composite_node, make_glyph_node): Use the
14912         plain version of the tfont if the environment is composite.
14914         * troff/node.c (font_info::get_space_width): Additional argument
14915         giving space_size.  Handle constant space correctly. Scale by
14916         space_size unless constant spaced.
14917         (env_sentence_space_width): New function.
14918         * troff/node.h: Declare it.
14919         * troff/env.h (environment::get_space_size,
14920         environment::get_sentence_space_size,
14921         environment::get_narrow_space_width,
14922         environment::get_half_narrow_space_width): Make inline.
14923         (environment::get_space_width): Make inline.  Just call
14924         env_space_width.
14925         * troff/env.c: Delete definitions for funtions made inline.
14926         (environment::space_newline, environment::space): Use
14927         env_sentence_space_width(). Don't scale by space_size.
14928         * troff/node.h: Move declarations of env*space_width() functions
14929         into env.h.
14931 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14933         * macros/tmac.s (PS): Don't try to set negative indent.
14935 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14937         * pic/pic.y: Fix min function.
14939 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14941         * man/mdate.sh: Clear LANGUAGE.
14943 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14945         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14946         * pic/lex.c: New COMMAND keyword.
14947         * pic/pic.y (print_args, print_arg): New rules.
14948         (placeless_element): Use print_args for PRINT.
14949         New COMMAND element.
14951 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14953         * troff/input.c (terminal): Handle missing argument correctly.
14955         * pic/pic.y (text_expr): New rule.
14957         * pic/pic.y: Implement := operator.
14959 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14961         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14962         mdoc.
14964 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14966         * ps/devps/dingbatsrmap: Include this in the distribution.
14968         * macros/tmac.doc: Replace with new version from 2nd Networking
14969         Release. Fix loading of doc-* files.
14970         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14971         * macros/tmac.doc.old: New file.  Apply fixes that had been
14972         applied to old tmac.doc.
14973         * macros/tmac.andoc: Check that we're running under groff.
14974         * macros/Makefile: Rework.
14976 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14978         * tbl/table.h (format_type): 
14979         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14980         typedef to make these types visible at file scope.
14981         * Makefile: Add NESTED_TYPES configuration option.
14983         * troff/div.c (mark): At the top level use the value of
14984         nl_reg_contents rather than the current vertical position.
14986 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14988         * tty/tty.c: Implement \D for horizontal or vertical lines.
14989         (tty_printer::set_char): Use vec_used+2 as serial number.
14990         Don't allow size of vector to exceed USHRT_MAX-2.
14991         Split off part into...
14992         (tty_printer::add_char): New function.
14993         (tty_printer::draw): New function.
14994         (compare_glyph): Handle equal serial numbers.
14995         (tty_printer::end_page): Handle overstruck characters from \D.
14996         (main, usage): Implement -d option.
14998 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15000         * tbl/main.c (process_format):
15001         * eqn/text.c (split_text):
15002         * troff/input.c (token::next): Use inner block for declarations
15003         with initializers in switch statement.
15005 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15007         * pic/common.c (common_output::dash_line): Cope with zero-length
15008         lines.
15010 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15012         * Version 1.04 released.
15014 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15016         * macros/tmac.an (TH): Define a macro an-init to define variables
15017         based on command line arguments.
15018         (an-header): Call it.
15020 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15022         * Makefile (install.mm): Rename to install.dwbmm.
15024         * Makefile: Integrate mm.
15025         * mm: New directory.
15027 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15029         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15030         <sys/types.h>.
15032         * pic/troff.c (troff_output::simple_spline,
15033         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15034         shadowing parameter.
15036         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15038         * lib/ptable.h: Add explicit casts when converting from unsigned
15039         long to unsigned.
15041         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15042         * dvi/devdvi/Makefile: Install SA, SB.
15044         * refer/indxbib.c: Add declaration of mktemp.
15046         * refer/lookbib.c: Add declaration of isatty.
15048 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15050         * pic/lex.c (interpolate_macro_with_args):  While collecting
15051         arguments, keep track of whether we're in a string.
15053 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15055         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15056         down with \v, so as to avoid problems with top of page trap
15057         setting no space mode.
15059 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15061         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15063 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15065         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15066         Improve error message.
15068 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15070         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15071         printf("%03o");
15073 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15075         * groff.c (possible_command::execp): Always use _exit() after a
15076         failed exec.
15078         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15079         NO_SYS_WAIT_H   configuration options.
15080         * groff.c: Use these options.  Use POSIX-style macros to extract
15081         fields from the status returned by wait().
15083 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15085         * tbl/table.c (table::compute_separation_factor): Allow the
15086         separation factor to drop to 0.
15088 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15090         * refer/search.c: Include <errno.h>.
15092 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15094         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15096         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15097         C++. 
15099         * pic/lex.c (input_stack::bol): Move definition out of class body.
15101         * pic/main.c: On MSDOS munge argv[0].
15103         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15105         * lib/ptable.c (hash_string): Use unsigned long rather than
15106         unsigned.
15107         (next_ptable_size): Use unsigned rather than int.  Give an error
15108         message if we've hit the largest table size.
15109         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15110         table size.
15112         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15113         flags as const unisgned long rather than as enums.
15115         * pic/output.c: Deleted.
15117         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15119         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15120         Add additional argument.
15121         (line_entry::note_double_vrule_on_{left,right}): Set value of
15122         douvle_vrule_on_{right,left} flag according to argument.
15123         (simple_line_entry::simple_print,
15124         simple_line_entry::double_line_print): If adjacent to double vrule
15125         on a corner extend rather than shorten the rule by half the double
15126         vrule sep.
15128         * troff/number.c (parse_term): In checking for overflow, handle the
15129         case where the current horizontal position is negative.
15131 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15133         * pic/object.c (draw_arrow): Check for object having zero length.
15135 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15137         * eqn/main.c (do_file): Split off inline equation handling into...
15138         (inline_equation): New function.  Search for starting delimiter
15139         using...
15140         (delim_search): New function. Don't recognize a delimiter that
15141         occurs in the name of an escape sequence, number register, string
15142         etc.
15144 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15146         * eqn/delim.c (delim_box::compute_metrics): Don't call
15147         define_extensible_string if left is 0.
15148         (delim_box::output):  Don't print the left delimiter if left is 0.
15149         (delim_box::debug_print): Check for left == 0 before calling printf.
15151 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15153         * troff/Makefile (majorminor.c): Include only digits in
15154         minor_version.
15156 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15158         * refer/dirnamemax.c: new file.
15159         * refer/genlimits.c: Deleted.
15160         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15161         Don't check path length.
15162         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15163         * Makefile: Add PATHCONF_MISSING option.
15165         * refer/indxbib.c (get_cwd): New function.
15166         (main): Use get_cwd().
15167         * lib/getcwd.c: New file.
15168         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15169         GETCWD in SUBFLAGS.
15170         * lib/Makefile: Compile getcwd.o.
15172         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15173         userdict.
15175         * refer/indxbib.c (main): Check success of mktemp.
15177         * lib/tmpfile.c: New file.
15178         * lib/Makefile: Add tmpfile.c.
15179         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15180         * ps/ps.h: Delete declaration of mktemp().
15181         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15182         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15183         * driver/driver.h: No need now to include errno.h.
15185         * everywhere: Set errno to 0 before calling fopen().
15187         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15188         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15189         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15191 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15193         * troff/env.h (translate_space_to_dummy): Declare it.
15194         * troff/env.c (environment::space_newline, environment::space):
15195         If translate_space_to_dummy is set then make the width of spaces 0.
15196         * troff/input.c (translate): If the second character of a
15197         translation is a space, translate to unbreakable space.  If the
15198         first character is a space, set or clear translate_space_to_dummy
15199         according to whether the second character is \&.  Weird!
15201 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15203         * groff.c (run_commands): Don't use non-zero exit code because a
15204         command gets SIGPIPE.
15206         * groff.c, groff.sh: Use -mXps with -TXps.
15208         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15209         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15210         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15211         (ps_printer::special): New specials invis and endinvis.
15212         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15213         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15214         (ps_printer::end_page): Check that invis_count == 0.
15215         (ps_printer::invis_count): New member.
15216         (ps_printer::ps_printer): Initialize invis_count to 0.
15218         * troff/env.c (environment::hyphenate_line): Hyphenation
15219         indicator at beginning of word inhibits splitting after -, \(em
15220         etc.
15222         * pic/pic.y (element): Allow another element to follow } without
15223         any intervening separator.
15225 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15227         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15229 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15231         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15232         declaration of wait() in header files.
15233         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15235         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15237         * lib/lib.h: Declare return type of strerror as char *.
15239         * man/Makefile: Add g flag to sed substitutions.
15240         * Makefile (shgroff, bindist): Likewise.
15242 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15244         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15245         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15246         userdict.
15248 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15250         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15251         userdict.
15253 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15255         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15256         group.
15258 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15260         * troff/input.c (define_number_reg):  If currently undefined,
15261         don't define it if the argument is an invalid expression.
15263         * Makefile: Ignore return value of `if' commands without `else'
15264         parts.
15266         * Makefile: Split up CPPDEFINES into a series of separate
15267         configuration options.
15269         * troff/input.c (init_registers): Use time_t instead of long
15270         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15271         than passing pointer.
15272         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15274         * lib/Makefile (fontpath.h): Use gendef.
15276 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15278         * troff/input.c (input_iterator::shift): Delete argument name.
15279         * troff/node.c (suppress_output_file::really_begin_page,
15280         suppress_output_file::really_transparent_char, node::ascii_print,
15281         node::tprint): Delete names of unused arguments.
15283 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15285         * refer/label.y (string):  Pass $4 to command_error.
15287 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15289         * Version 1.03 released.
15291 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15293         * Makefile: Pass definition of SHELL in SUBFLAGS.
15295         * gendef: New file.
15296         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15297         ps/Makefile: Use gendef to construct header files that are
15298         constructed from the Makefile.
15300         * macros/Makefile: make all should build stripped version of tmac.e.
15302         * refer/Makefile (clean): Remove y.output.
15304 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15306         * ps/pfbtops.c (main): Add -v option which prints out a version
15307         number.
15308         * ps/Makefile (pfbtops): Link with libgroff.a.
15310 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15312         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15313         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15315         * refer/lkbib.c (main): Always terminate reference with blank
15316         line.
15317         * refer/lookbib.c (main): Likewise.
15319         * refer/linear.c (file_buffer::load): Check that the file is not a
15320         binary file.
15322         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15323         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15324         Delete second inclusion of <sys/param.h>.
15326 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15328         * troff/token.h (token::special): Deleted.
15330         * tbl/main.c (process_format): Rework so that opt->tab_char is
15331         recognized only when appropriate.
15333         * ps/Makefile (clean): Remove pfbtops.
15335 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15337         * lib/font.c (text_file::next): Don't return if we have got a
15338         blank line.
15340 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15342         * refer/refer.c (store_reference): Get hash code from old_table[i]
15343         when rehashing the table.
15345 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15347         * eqn/box.c (box::top_level): Save size and prev size using \R and
15348         restore it afterwards. Set the size to the size at the beginning
15349         of the line.
15350         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15351         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15353         * refer/Makefile (limits.h): Use ./genlimits.
15355 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15357         * refer/index.c: Delete declarations of stat() and fstat().
15359 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15361         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15363 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15365         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15367 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15369         * troff/input.c (token::get_char): Handle \e.
15371         * refer/linear.c: Delete declarations of fstat() and stat().
15373 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15375         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15376         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15378 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15380         * troff/input.c (do_define_macro): Improve error handling for end
15381         of file while defining macro.
15383 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15385         * eqn/box.h: Fix declaration of set_gsize.
15386         * eqn/box.c (set_gsize): Make argument const char *.
15387         (gsize): Declare as char *.
15388         * eqn/main.c (main): Don't convert gsize to int.
15389         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15391         * Version 1.02 released.
15393 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15395         * macros/tmac.andoc: New file.
15396         * macros/Makefile: Install tmac.andoc.
15398         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15399         operator new and delete on OP_DELETE_BROKEN not being defined.
15400         * Makefile: Mention OP_DELETE_BROKEN.
15402 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15404         * Makefile (bindist): Pass SUBFLAGS.
15406 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15408         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15410         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15411         parameter.
15413         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15415         * ps/ps.h, ps/psrm.c: Make comment_table and
15416         header_comment_table local to resource_manager::process_file.
15418         * groff.sh: With -TXps pass -printCommand option to gxditview.
15420         * groff.c (possible_command::print): Implement using
15421         append_arg_to_string.
15423         * xditview: Merge in new implementation with own ChangeLog.
15425 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15427         * groff.c (main): Implement PRINT_OPTION.
15428         (append_arg_to_string): New command.
15429         (device_table): Set PRINT_OPTION flag for Xps.
15431 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15433         * troff/groff.h: Rename to troff.h.
15435         * pic/lex.c (lookup_keyword, docmp): New functions.
15436         (get_token): Use new lookup_keyword.
15437         Don't include key.h.
15438         * pic/key.[ch], pic/pic.gperf: Deleted.
15439         * pic/Makefile: Remove gperf stuff.
15441         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15442         into output.h.
15443         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15445         * troff/Makefile, troff/node.c: Move definition of
15446         STORE_WIDTH into node.c.
15448         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15450 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15452         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15453         dvi/devdvi/texb.map: Add lq and rq.
15454         dvi/devdvi: Regenerate fonts.
15455         * ps/devps/textmap: Add lq and rq.
15456         * ps/devps: Regenerate fonts.
15457         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15458         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15460         * pic/object.c (position_rectangle): When checking radius
15461         cope with possiblity that width or height is negative.
15462         (box_object::box_object): Have separate xrad and yrad with
15463         signs matching signs of dim components.
15464         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15465         (box_object::print): With rounded boxes use absolute values
15466         for dim and rad arguments.
15468         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15469         in fontpath.h.
15471         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15473         * various files: Add explicit destructors to keep Saber CC +d
15474         happy.
15476 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15478         * eqn/box.c (box::top_level): Restore fonts correctly after
15479         font changes in line containing inline equation.  Also
15480         restore previous font as well as current font.
15481         * eqn/pbox.h: Define necessary string and register names.
15483         * troff/input.c (token::next): Case 'R' calls do_register.
15484         (do_register): New function.
15486 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15488         * groff.c, groff.sh: Support Xps device.  Allow each device
15489         to have a pseudo_name and a real_name.
15491         * groff.c (run_commands): Don't print `Broken pipe' messages.
15493         * ps/pfbtops.c: New file.
15494         * ps/Makefile: Add pfbtops.
15496         * troff/number.c (parse_term): Improved error message.
15498 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15500         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15502         * Makefile: Integrate refer.
15503         * refer: New directory.
15504         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15505         man/lkbib.man: New files.
15506         * man/Makefile: Support refer man pages.
15508         * lib/lib.h: Declare is_prime.
15509         * lib/prime.c: New file.
15511         * troff/input.c (macro_source): New function.
15512         (init_input_requests): Bind "mso" to macro_source.
15514         * troff/env.c (environment::possibly_break_line): Maintain
15515         pointer to pointer to node to be split in ndp so as to avoid
15516         using address of freed node.
15518         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15519         pointer to first node to be hyphenated in startp so as to
15520         avoid using address of freed node.
15522         * troff/env.c (class trie, class hyphen_trie): Make the
15523         elements of the trie be of type char not unsigned char.
15524         Declare arguments to be const char* instead of unsigned char *.
15525         
15526         * troff/env.c (hyphenate): Initialize hbuf[0].
15528         * troff/input.c (set_string): Declare p to be char * and cast
15529         *p to unsigned char when necessary.
15531         * troff/input.c (do_define_macro): Declare s to be const
15532         char*. Cast element to unisgned char when necessary, Declare
15533         d to be an int.  Handle EOF better.
15535         * troff/Makefile, troff/input.c: Different scheme for passing
15536         definitions of MACROPATH, HYPHENFILE and DEVICE.
15538 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15540         * tty/devascii/R.proto: Delete entry for em.
15541         * tty/devlatin1/R.proto: Likewise.
15543 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15545         * troff/input.c (translate): Stop when we get a space. Treat eof
15546         like newline.
15548         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15550 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15552         * tbl/main.c (process_format): A font name following a `f'
15553         modifier that starts with a digit can be only one character long.
15554         Also deal with EOF on the second character of the font name.
15556 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15558         * troff/input.c (token::next): Turn \~ into an
15559         unbreakable_space_node.
15560         * troff/node.c (unbreakable_space_node): New class.
15561         * troff/node.h: Declare it.
15563 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15565         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15566         it's >= 0, before outputting it as a single byte.
15568 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15570         * lib/font.c: Make font_char_metric::code an int.
15571         (font::get_code): Change return type to int.
15572         (font::load): Allow code to be arbitrary integer.
15573         * lib/font.h (font::get_code): Change return type to int.
15574         (font::number_to_index): Change argument type to int.
15575         * troff/input.c (token::next):  In case 'N', allow any value.
15576         Store value in token::val.
15577         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15578         (token::get_char, token::add_to_node_list, token::process): Get
15579         number from val.
15580         (charinfo::set_number): Change argument to int.
15581         (charinfo::get_number):  Require that NUMBERED flag be set.
15582         (get_charinfo_by_number): Store numbered characters not between 0
15583         and 255 in a dictionary.
15584         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15585         to int.
15586         (charinfo::number): Change type to int.
15587         (charinfo::set_number): Change type of set_number to int.
15588         * troff/node.c (troff_output_file::put_char_width,
15589         troff_output_file::put_char): Test whether character is numbered
15590         using charinfo::numbered().
15591         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15592         values of num.
15593         * lib/nametoindex.c: New implementation to cope with arbitrary
15594         number characters.
15596         * troff/input.c (token::operator==): Test val for
15597         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15598         TOKEN_SIZE.
15600         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15601         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15603 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15605         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15606         variable.
15608         * all Makefiles: rm targets of cp and >.
15610         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15611         it.
15613         * eqn/lex.c (def_table): Add dollar.
15615 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15617         * troff/input.c (do_width): Push back newline before closing delim
15618         like do_bracket.
15620 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15622         * groff.c (possible_command::prepend_arg): New function.
15623         (main): Prepend device -m option.
15624         * groff.sh: Put device -m options before command-line options.
15626 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15628         * macros/tmac.an (IP): Quote argument to TP.
15630         * ps/ps.c (main): New option -b, which sets...
15631         (broken_flags): New variable.
15632         (ps_printer::~ps_printer): Incorporate the setup section in the
15633         prolog if (broken_flags & NO_SETUP_SECTION).
15634         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15635         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15636         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15637         ps_printer::print_needed_font_comment,
15638         ps_printer::print_supplied_font_comment,
15639         ps_printer::print_include_font_comments,
15640         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15641         ps_printer::read_download_file, read_document_fonts, add_font,
15642         skip_line, parse_fonts_arg, document_font::document_font,
15643         document_font::~document_font, document_font::download,
15644         ps_output::include_file):  Deleted.
15645         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15646         rather than %!PS-Adobe-2.0.  Make calls to
15647         resource_manager::need_font for each font that we used. Replace
15648         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15649         print_supplied_font_comment, print_needed_font_comment by call to
15650         resource_manager::print_header_comments. Output %%Orientation
15651         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15652         Don't output the prolog directly.  Instead call
15653         resource_manager::output_prolog.  Only define #copies when ncopies
15654         > 1.  Delete calls to print_include_font_comments  and
15655         download_fonts.  Add call to resource_manager::document_setup.
15656         (ps_printer::do_file): Call resource_manager::import_file instead
15657         of including it ourselves.
15658         (ps_printer::do_import): Likewise.  Also don't call
15659         merge_import_fonts. Push userdict on the dictionary stack before
15660         and pop it afterwards.
15661         Move declaration of ps_output into ps.h.
15662         * ps/psrm.c: New file implementing resource_manager class.
15663         * ps/ps.h: New file declaring ps_output and resource_manager
15664         classes.
15665         * ps/devps/zapfdr.ps:
15666         * ps/devps/symbolsl.ps:
15667         * ps/devps/prologue:  Use 3.0 conventions.
15668         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15669         Add default definition of BROKEN_SPOOLER_FLAGS.
15670         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15671         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15673 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15675         * etc/grog.pl: New file.
15676         * Makefile (GROG): New variable.
15677         Add GROG to SUBFLAGS.
15678         * etc/Makefile (GROG): New variable.
15679         (install.nobin): Install $(GROG) rather than grog.sh.
15681 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15683         * eqn/special.c (special_box::compute_metrics): Make the input and
15684         output strings the same.  Get the new height and depth from the
15685         predefined height and depth registers.  Also make subscript kern
15686         and skew available.
15687         (special_box::compute_subscript_kern, special_box::compute_skew):
15688         New functions.
15690         * eqn/box.c (pointer_box::compute_skew,
15691         simple_box::compute_metrics, box::top_level)
15692         * eqn/text.c (prime_box::compute_metrics,
15693         prime_box::comput_subscript_kern)
15694         * eqn/limit.c (limit_box::compute_metrics):
15695         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15696         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15697         negative numbers in `nr' requests with a leading 0.
15699 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15701         * eqn/special.c: New file.
15702         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15703         Add new rule for simple.
15704         * eqn/lex.c (token_table): Add SPECIAL.
15705         * eqn/box.h: Declare make_special_box.
15706         * eqn/Makefile: Add special.[co].
15708 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15710         * ps/devps/prologue: Possibly set packing to true while defining.
15711         Create grops dictionary here.  Initialize local variables before
15712         defining procedures.
15713         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15714         the dictionary stack. Set strokeadjust and overprint to false if
15715         the relevant operators are defined.
15716         (PEND): New procedure.
15717         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15718         prologue.  Do everything else in the setup section.
15719         (ps_printer::do_import): Just call PBEGIN and PEND around the
15720         picture. Also push userdict before, and pop it afterwards.
15722 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15724         * troff/node.c (bracket_node::tprint): Brackets were being printed
15725         1m too low.
15727         * macros/tmac.an (SH, SS): Set fill mode.
15729 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15731         * troff/div.c (top_level_diversion::begin_page): Set
15732         high_water_mark to 0.
15734 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15736         * man/mdate.sh: New file.
15737         * man/mdate.c: Deleted.
15738         * man/Makefile: Use mdate.sh instead of mdate.
15739         (mdate): Deleted.
15741         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15743 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15745         * man/mdate.c: New file.
15746         * man/*.man: Replace modification date by @MDATE@.
15747         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15748         (mdate): New target.
15750         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15751         Remove illegal input characters.
15753 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15755         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15757 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15759         * troff/div.c (begin_page): Change behaviour when
15760         !first_page_begun and !break_flag.
15762         * troff/input.c (do_name_test): Return 0 if argument is empty.
15764         * troff/input.c (read_long_escape_name): Require closing ] to be
15765         at same input level as opening [.
15767         * troff/input.c (read_increment_and_escape_name): New function.
15768         (get_copy, process_input_stack): Use this for \n.
15770 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15772         * troff/div.c (top_level_diversion::begin_page): Ignore the
15773         current value of page_number if !first_page_begun.
15775         * groff.c (main): Fix declaration of buf.
15777         * troff/input.c (do_name_test): New function.
15778         (token::next): Implement \A.
15779         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15780         (token::description, token::add_to_node_list, token::process):
15781         Handle TOKEN_ESCAPE.
15782         * troff/token.h: New token TOKEN_ESCAPE.
15784 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15786         * pic/main.c (do_picture): Allow space before and after filename
15787         following `<'.  Check that the filename is not empty.
15789 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15791         * Version 1.01 released. 
15793         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15795         * dvi/tmac.dvi: ftr HR to H.
15797         * macros/tmac.e: Round up computation of $r.
15799         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15800         Use \n(.s instead of \n[.s].
15802         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15803         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15804         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15805         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15806         short names in the char definitions.
15808         * ps/tmac.ps: Don't give up completely in compatibility mode.
15809         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15810         quote in front of \n(.s. Add u to factors inside \s[...].
15812 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15814         * tty/tmac.tty: Call the nroff request.
15816         * macros/tmac.e ((x, )x):  Better definitions that work properly
15817         in a diversion.
15818         (@0, @1): Helper macros for (x.
15820         * macros/tmac.e ($s, hl): Use \l rather than \D.
15822         * tty/tmac.tty: Make it work better in compatibility mode.
15823         (pchar): Rename to tty-char.
15825         * macros/tmac.e (@E): New macro.
15826         (r, i, b, rb, bi): Use @E.
15828         * macros/tmac.e (@F): Don't use (;...) syntax.
15830         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15831         it was modified for groff.
15833         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15835         * macros/tmac.e (<., .>): Removed.
15836         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15838         * macros/tmac.e: Remove check that groff is being used.
15840         * macros/tmac.e (@C): Change families only if using groff; turn
15841         compatibility mode off while changing familes. Save compatibility
15842         mode before changing families and restore it afterwards.
15844         * macros/tmac.e (@h): Remove test for offset + line length.
15846         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15847         (lo, th, ac): Define to call @S instead of using als.
15849         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15850         the ratio of the vertical spacing to the point size in units
15851         expressed as a percentage.  Use these instead of $10r and $10R,
15852         Delete $10r and $10R.
15854         * lib/font.c (font::load): In default computation of space_width,
15855         divide by sizescale.  Use scale_round.
15857         * macros/tmac.an (TP): Don't call `nf'.
15858         (an-do-tag): Don't call `fi'.
15860 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15862         * troff/input.c (process_input_stack): Handle the case where
15863         spaces at the beginning of an input line are followed by a
15864         newline.
15866 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15868         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15869         * groff.sh: Use pic -x with the dvi device.
15871         * dvi/devdvi/FontMakefile (H): Don't use -s.
15873         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15874         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15875         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15876         in FONTS.
15878 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15880         * ps/psfig.diff: New file.
15881         * ps/tmac.psfig: New file.
15883 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15885         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15886         (]-): Don't call ref*do-tl.
15888         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15890         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15891         (fn@do-FS): Rename to fn*do-FS.
15893         * troff/input.c (transparent_translate): New function.
15894         (process_input_stack): Apply transparent_translate before calling
15895         diversion::transparent_output(unsigned char).
15897 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15899         * troff/input.c (do_define_macro): Define the macro before calling
15900         skip_line.
15902         * xditview/Makefile: Add DEVICES variable.  Change install target
15903         to use this.
15905 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15907         * groff.c (run_commands): Handle the possibility that there are
15908         child processes other than those forked by us.
15910 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15912         * lib/string.c (string::append): New function.
15913         * lib/stringclass.h: Declare it.
15915 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15917         * eqn/main.c (main): New option -N which sets
15918         no_newline_in_delim_flag. 
15919         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15920         in delimiters.
15921         * groff.c (main): Pass -N on to eqn.
15922         (help, synopsis): Mention -N.
15923         * groff.sh: Implement -N.
15925 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15927         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15928         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15929         (XP): Allow as initializer.
15931 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15933         * troff/env.c (environment::wrap_up_field): If field_spaces are
15934         non-zero and we have a current_tab, subtract padding from
15935         tab_distance.  If this makes tab_distance <= 0, use the next tab
15936         stop instead.  If there isn't any next tab or it's a left tab,
15937         wrap up the current tab.
15938         (environment::start_field): Initialize tab_precedes_field.
15939         (environment::wrap_up_tab): If there's a current field, update
15940         pre_field_width, field_distance and tab_precedes_field.
15941         * troff/env.h (environment::tab_precedes_field): New member.
15943 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15945         * ps/ps.c (ps_printer::do_file): New function.
15946         (ps_printer::special): Bind to `file' special.
15947         (ps_printer::do_exec): Set ndefined_styles to 0.
15949 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15951         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15952         Avoid stripping first character from the start of unrecognized
15953         escapes.  Use lex_error instead of error to report errors.
15954         * eqn/lex.c (get_token): Rework handling of escapes.
15955         (lex_error): Move declaration into...
15956         * eqn/eqn.h.
15958         * xditview/xditview.c (main): Make -page option work.
15960         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15962 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15964         * macros/tmac.s (B2): Correct size of box.
15966 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15968         * macros/tmac.s (B2): Postpone drawing the box until in the
15969         top-level diversion.
15971         * tty/tmac.tty: Add font translations for C, CR, CW.
15973         * groff.c (synopsis, help): Document -i.
15974         * groff.sh: Implement -i.
15976         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15977         Simplify the construction of SN.
15979         * troff/number.c (parse_term): Give `|' a higher precedence.
15980         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15981         accordingly.
15983         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15985 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15987         * lib/string.c (string::move): New function.
15988         * lib/stringclass.h: Declare it.
15990 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15992         * troff/env.c (distribute_space): Add optional argument
15993         `force_forward'.
15994         (environment::wrap_up_field): Call distribute_space with
15995         `force_forward' argument of 1.
15997 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15999         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16000         Inline it.  Move reallocation into...
16001         (string::grow1): New function.
16002         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16003         dependencies to include library header files.
16004         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16006 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16008         * macros/tmac.s (@NH): Use the same number registers than -ms does
16009         for the heading level counters.  Use the same string that -ms does
16010         for the number for this heading.
16012 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16014         * lib/new.c (operator new): Cast result of malloc to char *.
16016         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16017         is not null.
16019 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16021         * groff.c (main): Support -i.
16023 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16025         * pic/pic.h: Include <osfcn.h>.
16027         * ps/ps.c: Add declaration of mktemp.
16029         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16030         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16031         argument as union wait *.
16032         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16033         argument to union wait *.
16035 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16037         * tty/tmac.tty: Add definition of \(co.
16039         * pic/object.c (make_arc): Only increase radius when radius
16040         strictly less than d.
16041         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16042         more than once.
16044         * troff/env.c (environment::environment(symbol),
16045         environment::environment(const environment *)):  Initialize
16046         input_trap_count.
16048 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16050         * tbl/main.c (main): Add exit(0).
16052         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16054         * pic/main.c (main):
16055         * eqn/main.c (main):
16056         * tbl/main.c (main):
16057         * etc/soelim.c (main):
16058         * driver/printer.c (printer::~printer):
16059         * troff/node.c (real_output_file::~real_output_file,
16060         real_output_file::flush):  Check for errors on stdout.
16062         * most files: Add 1991 to copyright notice.
16064         * macros/tmac.s: Don't test \n(.x and \n(.y.
16066         * troff/input.c (token::next): Rename `escape_char' label to
16067         `handle_escape_char' and `normal_char' label to
16068         `handle_normal_char'.
16070 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16072         * groff.c (main, synopsis, help): Support -a option.
16073         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16074         to trflags while parsing options.
16076 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16078         * troff/number.c (parse_term): With `m', `M' and `n' scale
16079         indicators, convert scale factor to hunits before scaling.
16081 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16083         * lib/font.c (scale_round): Better test for overflow when n is
16084         negative.
16086 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16088         * tbl/main.c (process_format): Add second argument of type
16089         options*. Change callers.  Allow opt->tab_char as well as '\t'
16090         between format items.
16092 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16094         * macros/tmac.an (PD): With no arguments, make sure register PD is
16095         at least \n[.V].
16096         (TH): Call PD with no argument, instead of setting register PD
16097         directly.
16099 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16101         * Version 1.00 released.
16103 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16105         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16107         * dvi/devdvi/DESC: Mount CW instead of CR.
16109         * dvi/tmac.dvi: Add definition of \(tm.
16111         * dvi/devdvi/texsy.map: Add lh, and rh.
16112         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16113         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16115         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16116         * dvi/devdvi/Makefile: Install H.
16117         * dvi/devdvi/H: New file.
16119 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16121         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16122         be 0.
16124 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16126         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16128         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16130         * macros/tmac.s (@EN): Handle the case where the equation is empty
16131         but the label is not.
16133 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16135         * troff/groff.h: New warning category WARN_SPACE.
16136         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16137         WARN_SPACE to warning_table.
16138         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16139         is longer than two characters and is not defined, but the first
16140         two characters do make a defined name.
16142         * PROBLEMS: New file.
16144         * CHANGES: New file.
16145         * README-0.6, README-1.00: Deleted.
16147         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16148         * xditview/devX75/Makefile: Make devX75-12.
16149         * xditview/devX100/Makefile: Make devX100-12.
16151         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16152         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16154 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16156         * README-0.7: Rename to README-1.00.
16158         * macros/tmac.pic: New file.
16159         * macros/Makefile (install.nobin): Install tmac.pic.
16161 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16163         * troff/env.c (hyphen_word): Correct the test for whether the
16164         token is a hyphen.  Reset npos to 0.
16166         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16168 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16170         * macros/tmac.s (ds*common-end): Call par*reset.
16171         (PE): Likewise.
16172         (par@reset-indent): Deleted.
16174         * macros/tmac.s (@IP): Divert the label.
16176 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16178         * xditview/draw.c (setGC): Use a line width of .1m rather than
16179         .04m by default; round rather than truncate value.
16181         * tbl/table.c (class empty_entry): New class.
16182         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16183         (table::add_entry): Represent empty entries by objects of type
16184         empty_entry.
16185         (table_entry::line_type): Return -1.
16186         (table::determine_row_type): Ignore entries with line_type 0.
16187         Treat type -1 as non-lines.
16189 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16191         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16192         macros/tmac.s: Rename \(-d to \(Sd.
16194 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16196         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16197         * xditview/libXdvi/DviChar.c: Likewise.
16198         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16200 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16202         * troff/div.c (top_level_diversion::begin_page): Call
16203         init_output() if the_output is 0.
16205 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16207         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16208         ESCAPE_c.
16209         (get_copy): Turn \E into ESCAPE_E.
16210         (token::process, asciify): Handle ESCAPE_E.
16212         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16213         (RD): New macro.
16214         (DS): Implement `.DS R'.
16216 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16218         * macros/tmac.s (FS): New macro.
16220         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16222         * macros/tmac.s (cov*tl-init): Remove after first execution
16223         instead of aliasing to @nop.  Call top of page macro explicitly
16224         instead of setting trap; call @init first.  Set pg@top as top of
16225         page macro.
16226         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16227         cov*auto-init as top of page trap. 
16228         (TL, LP): Do a break instead of calling cov*tl-init.
16229         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16230         @FE; in this case also give a warning and always start another
16231         page. No need to set pg@top here.
16232         (cov*tl-init): Rename to cov*first-page-init.
16234         * macros/tmac.s (RP): Do `.pn 0'.
16235         (cov*tl-init): With RP format don't do `.pn 0'.
16237         * macros/tmac.s (pg@cs-top): Set no space mode.
16239         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16240         (cov*ab-init): Alias TL, AU and AI to these.
16242 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16244         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16245         (@EN): Do nothing unless \n[dl] is > 0.
16247 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16249         * pic/object.c (ellipse_object::radius): New function.
16251         * VERSION: Change version to 0.7.
16253         * tbl/table.c (block_entry::do_divert): Declare return type as
16254         void.
16255         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16257 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16259         * troff/column.c: New file.
16260         * troff/Makefile: Corresponding changes.
16262         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16263         Friend of vunits.
16265         * troff/div.c (top_level_diversion::space): If the space causes
16266         the first-page transition and springs a trap, truncate the space
16267         to 0.
16269 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16271         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16272         the document.
16274         * pic/troff.c (troff_output::line_thickness,
16275         troff_output::set_fill): Do a horizontal motion to compensate for
16276         the width of the \D escape sequence.
16278 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16280         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16281         (not X75).
16283         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16284         to printf.
16286         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16287         Supply empty definition.
16288         (text_entry::simple_print, simple_text_entry::simple_print):
16289         Delete declarations.
16290         (table::add_entry): Represent empty entries by objects of type
16291         `simple_entry'.
16293 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16295         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16297         * tbl/table.c (left_text_entry::add_tab): New function.
16299         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16300         initialize like LP.
16302 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16304         * troff/env.c (environment::start_field): Give an error message if
16305         there is no next tab.
16307 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16309         * troff/env.c (hyphenate): Skip initial elements with zero
16310         hyphenation code.
16312         * macros/tmac.s (par@init): Keep VS in points rather than units.
16314 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16316         * pic/main.c (main): Implement `-c' option.
16317         * pic/output.h: Declare make_tpic_output().
16318         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16319         protected.
16320         (tpic_output): New class.
16321         (tpic_output::tpic_output, tpic_output::set_pen_size,
16322         tpic_output::command, make_tpic_output): New functions.
16324 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16326         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16327         if they're not already defined.
16328         * tbl/table.c (init_output): Don't test \n(.g.
16330         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16331         `d', `r' and `c' conditions even in compatibility mode.
16333 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16335         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16336         box.
16338 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16340         * troff/env.h (environment::prev_line_interrupted): New member.
16341         (environment::get_prev_line_interrupted): New function.
16342         * troff/env.c (environment::newline): Set prev_line_interrupted.
16343         (environment::environment(const environment *),
16344         environment::environment(symbol)): Initialize
16345         prev_line_interrupted.
16346         * troff/input.c (process_input_stack): Don't give special
16347         treatment to space and newline at the beginning of the line if the
16348         previous line was interrupted.
16350 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16352         * eqn/eqn.y: Disallow PRIME by itself.
16353         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16354         PRIME.
16355         (def_table): Remove definition of '.  Define prime to be `.
16357         * eqn/eqn.y: Split off part of rule `script' into a new rule
16358         `nonsup'.
16360 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16362         * macros/tmac.s ({, }): New string aliases.
16364 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16366         * README-0.7: New file.
16368 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16370         * macros/tmac.s: New file.
16371         * man/groff_ms.man: New file.
16372         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16373         * Makefile.bd: Similarily.
16374         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16375         definition of TMAC_S.
16376         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16377         * macros/TODO: New file.
16379 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16381         * troff/env.c (right_justify): New function.
16382         (init_env_requests): Bind this to request "rj".
16383         (center_lines): Set right_justify_lines to 0. If we get a bad
16384         integer, center 1 line.
16385         (environment::environment(symbol), environment::environment(const
16386         environment *)): Initialize right_justify_lines.
16387         (environment::get_right_justify_lines): New function.
16388         (init_env_requests): Bind this to number_register ".rj".
16390         * troff/env.c (environment::choose_breakpoint): Implement
16391         hyphenation_margin and hyphenation_space.
16392         (environment::get_hyphenation_space,
16393         environment::get_hyphenation_margin): New functions.
16394         (init_env_requests): Bind these to .hys and .hym.
16395         (hyphenation_space_request, hyphenation_margin_request): New
16396         functions
16397         (init_env_requests): Bind these to hys and hym.
16398         (environment::environment(symbol), environment::environment(const
16399         environment *)): Initialize hyphenation_margin and
16400         hyphenation_space.
16401         * troff/env.h: Corresponding changes to class environment.
16403 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16405         * troff/div.c (blank_line): Always do a break.
16407         * eqn/box.c (do_text): Turn off escapes while appending text to
16408         string.
16410 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16412         * troff/input.c (while_break_request, while_continue_request): New
16413         functions.
16414         (init_input_requests): Bind these to "break" and "continue".
16415         (while_depth, while_break_flag): New variables.
16416         (while_request): Update while_depth.  Break out of loop if
16417         while_break_flag is set.
16419 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16421         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16422         rather than 0.
16424 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16426         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16428         * stringify: New file.
16429         * Makefile (groff.o): Use stringify.
16431         * xditview/tmac.X: Remove definition of \(rn.
16432         * xditview/libXdvi/DviChar.c: Remove radicalex from
16433         Adobe_symbol_map.
16435 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16437         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16438         (alphabetic_block_entry::alphabetic_block_entry,
16439         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16440         New functions.
16441         (block_entry::divert): Split off body into ...
16442         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16443         from the line length; also update the span width to dl+2n, and the
16444         alphabetic span width to dl.
16446         * driver/input.c (do_file):  While reading argument to D command,
16447         when expanding buffer, multiply szp by sizeof(int) rather than 2
16448         in the argument to memcpy.
16450         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16451         width of alphabetic columns.
16453 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16455         * troff/node.c (lookup_family): Supply second argument to lookup.
16457         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16458         search, return immediately if v is 0.
16460         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16461         (troff_output::start_picture): Set this reg.
16462         (troff_output::end_picture): Remove this reg
16463         * eqn/box.c (box::extra_space): Don't produce `\x's if
16464         EQN_NO_EXTRA_SPACE_REG is defined.
16466         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16467         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16468         character.
16470 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16472         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16473         requests.
16475         * troff/div.c (top_level_diversion::top_level_diversion):
16476         Initialize page_number to 0.
16478 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16480         * groff/troff (environment::environment(const environment *)):
16481         Initialize name to e->name, rather than "anonymous".
16483 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16485         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16486         requested_page.  Split middle part into ...
16487         (FindPage): New function.
16488         (SetValues): If we don't yet know the last page, and the requested
16489         page is greater than the current page, call FindPage.
16490         Update the font_map_string before doing this.
16492         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16493         Translate \(lh and \(rh into left and right double arrows.
16495         * troff/node.c (class hyphen_inhibitor_node): New class.
16496         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16497         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16498         hyphen_inhibitor_node::type,
16499         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16500         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16501         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16502         word.
16504 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16506         * troff/node.h (dummy_node::get_hyphenation_type,
16507         transparent_dummy_node::get_hyphenation_type):  Declare them.
16508         * troff/node.c: (dummy_node::get_hyphenation_type,
16509         transparent_dummy_node::get_hyphenation_type): New functions.
16511 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16513         * xditview/libXdvi/draw.c: If M_PI not defined after including
16514         math.h, then define it.
16516         * xditview/Makefile: Add definition of AR. Pass it to the submake
16517         in libXdvi.
16518         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16520 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16522         * troff/dictionary.h (object_dictionary::alias): Declare return
16523         value as int.
16524         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16525         if the old name was defined.
16526         * troff/input.c (alias_macro): Give a warning if the old name was
16527         not defined.
16528         * troff/reg.c (alias_reg): Likewise.
16530 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16532         * troff/input.c (token::next): Delete implementation of \R.
16534         * macros/Makefile: Strip comments from tmac.e while installing it.
16536         * troff/input.c: New variable `nroff_mode'.
16537         (troff_request, nroff_request): New functions.
16538         (init_input_requests): Bind `troff' and `nroff' to troff_request
16539         and nroff_request.
16540         (do_if_request): Compute results of t and n conditions from
16541         nroff_mode.
16543         * text/text.c (split_text): Fix typo in >=.
16545         * eqn/lex.c: Add definition of `==' to def_table.
16547 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16549         * pic/tex.c (tex_output::start_picture): Change the definitions of
16550         \graph and \graphtemp so that they work properly with Plain TeX.
16552         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16553         argument to `ar' is not less than the first.
16555         * pic/pic.y: Allow a comma between elements of the variable list
16556         in the argument to `reset'.
16558         * pic/object.c (arc_object::arc_object): Fix computation of
16559         radius.
16561         * eqn/main.c (main): Add exit(0).
16563 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16565         * troff/div.c (begin_page): Test no_space_mode after doing the
16566         break, but still push the page ejector cookie before doing the
16567         break.  Also set the next page number after doing the break.
16568         
16569         * xditview/xditview.c (NewFile): Don't set the title and icon name
16570         if this is the first file and its name is `-'.
16571         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16572         the X75 and X100 devices.
16573         (main): If a device has the XT_OPTION flag set and there's exactly
16574         one file argument, pass the driver -xrm and -title options to set
16575         the icon name and window title to the name of the file.
16577         * troff/env.c (environment_switch): If there was an argument but
16578         it wasn't a valid number or name, then pop an environment but
16579         don't give an error message on underflow.
16581         * troff/number.c (start_number): Correct spelling in error message.
16583         * troff/input.c (token::delimiter): Don't print an error message
16584         if err is false.
16586         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16587         ParseDrawFunction if dw->display_enable is true.
16589 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16591         * pic/pic.y: Parse text positioning like normal attributes, so as
16592         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16593         positioning attribute.
16595 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16597         * tbl/main.c (process_data): When in state START while reading a
16598         text block, don't change to state MIDDLE if c is a newline.
16600 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16602         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16603         so as to avoid shadowing parameter.
16605 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16607         * tbl/table.c (trim_space): Deleted.
16608         (table::add_entry): Don't call trim_space.
16610 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16612         * VERSION: Change version to 0.6.
16614         * troff/number.c (parse_expr): Make == work.
16616 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16618         * man/grog.man: New file.
16619         * man/Makefile: Add grog.n to MAN1PAGES.
16620         * etc/grog.sh: New file.
16621         * etc/Makefile: Install grog.sh as grog.
16623 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16625         * troff/input.c (token::next): Implement \E.
16627 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16629         * xditview/tmac.X: Change font translations to match tmac.ps.
16631         * troff/input.c (non_empty_name_warning): Don't give a warning if
16632         `\{' terminates the name.
16634 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16636         * ps/devps/symbol.diff: New file.
16637         * ps/devps/FontMakefile: Mention symbol.diff.
16639 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16641         * troff/node.c (font_position): Use get_long_name to read the
16642         external_name.
16644         * troff/env.c (environment_switch): If we get a number that's < 0
16645         or >= NENVIRONMENTS, treat it like a name.
16646         Change NENVIRONMENTS to 10.
16648         * troff/groff.h: Remove definition of FONTS_MAX.
16649         * troff/node.h (class font_family): Make map a pointer instead of
16650         an array. Add a map_size member. Make it a class. Make nm const
16651         and public. Make invalidate_fontno a friend.
16652         * troff/node.c: Define font_table_size. Make font_info a pointer
16653         rather than an array.
16654         (class troff_output_file): Allocate font_position dynamically. Add
16655         nfont_positions member.
16656         (troff_output_file::set_font): Grow font_position if necessary.
16657         (troff_output_file::~troff_output_file): Delete font_position.
16658         (troff_output_file::troff_output_file): Allocate font_position.
16659         (grow_font_table): New function.
16660         (troff_output_file::really_begin_page,
16661         troff_output_file:really_copy_page): Use nfont_positions rather
16662         than FONTS_MAX.
16663         (mount_font_no_translate, mount_style): Call grow_font_table if
16664         necessary.
16665         (font_family::font_family): Allocate map.
16666         (font_family::make_definite): Grow map if necessary. Use
16667         font_table_size instead of FONTS_MAX.
16668         (font_family::~font_family): New function.
16669         (invalidate_fontno): Use font_family::map_size.
16670         (get_fontno, env_space_width, env_half_narrow_space_width,
16671         env_narrow_space_width, symbol_fotno, is_good_fontno,
16672         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16673         FONTS_MAX.
16674         (next_available_font_position): Never return 0.
16676 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16678         * ps/tmac.ps: Add font translations for compatibility with dpost.
16680 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16682         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16683         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16684         Move definitions baseline_sep, shift_down, column_sep,
16685         matrix_side_sep into...
16686         * eqn/box.c: Add them to param_table.
16687         * eqn/pbox.h: Add declarations to pbox.h.
16689         * troff/input.c (set_string): Cast value to unsigned char *.
16691         * troff/token.h (process_input_stack): Declare it static before
16692         declaring it a friend.
16694 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16696         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16697         and bottom.
16698         * dvi/devdvi/EX: Regenerate.
16700         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16701         transparent.
16703 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16705         * eqn/lex.c: In defaults_table, make definition of `dot' call
16706         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16707         accents.
16709         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16710         argument.
16711         (for_input::get, for_input::peek): Use this.
16712         (do_for): Add by_is_multiplicative argument.
16713         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16714         Change semantic value of optional_by to be a double plus a flag
16715         saying whethet the by clause is multiplicative.
16717         * eqn/lex.c (get_delimited_text): Remember location of start of
16718         definition.  Improve error handling when EOF is encountered.
16720         * lib/font.h: Rename handle_x_command to
16721         handle_unknown_font_command.
16722         * lib/font.c (font::load): Call handle_unknown_font_command for
16723         any unknown command in the font description file.  Don't call
16724         handle_x_command. Include the name of the command in the argv.
16725         Improve message for unknown command after kernpairs or charset
16726         command.
16727         * ps/ps.c (ps_font::handle_x_command): Rename to
16728         handle_unknown_font_command.  Remove message about `x download'
16729         command.  Give error message for wrong number of arguments.
16730         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16731         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16732         handle_unknown_font_command. Give an error message for wrong
16733         number of arguments.  Rename design_size to designsize.
16734         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16735         checksum', `designsize' instead of `design_size'.
16737 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16739         * eqn/*.[chy]: Change underaccent to uaccent.
16741         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16742         give it the same precedence as ACCENT.
16743         * eqn/other.c (make_underaccent_box): New function.
16744         * eqn/box.h: Declare it.
16745         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16746         def_table.
16748 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16750         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16751         (parse_init): Call reset_all.
16752         (define_variable): When defining scale reset only those
16753         pre-defined variables that are scaled.
16754         (defaults_table): Add `scale' as non-scaled value.
16756         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16757         together with the text; allow any number of positioning words;
16758         allow center as a positioning word.
16760         * pic/object.c (output::compute_scale): Get picture maximum height
16761         and width from variables called maxpswid and maxpsht.
16762         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16764 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16766         * pic/object.c (object_spec::make_text): Multiply textht by number
16767         of text items.
16769         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16770         occur.
16771         (do_sprintf): New function.
16772         (pic.gperf): Add sprintf token.
16773         (text, sprintf): New rules.
16775         * pic/pic.y: `rand()' with no arguments returns a random number
16776         in the range [0,1).
16778         * pic/pic.y: Allow a bare expression to be an attribute: change
16779         precedences to support this.  Change optional_ordinal rule to
16780         optional_ordinal_last to avoid reduce/reduce conflict.
16781         * pic/object.c (object_spec::object_spec): Initialize direction.
16783         * pic/pic.y: Implement ^ operator meaning exponentiation.
16785         * troff/node.h: Add default argument to mount_font.
16786         * troff/node.c (font_position): Read an optional third argument
16787         giving the external_name.
16788         (mount_font): Add optional argument giving the external_name.
16789         (mount_font_not_translate): Have additional argument giving
16790         external name.  Use this name to load the font.  Pass both names
16791         to font_info::font_info.
16792         (font_info::font_info): Have additional argument giving
16793         external_name.
16794         (class tfont): New member external_name.
16795         (font_info::get_tfont): Use external name to construct tfont_spec.
16797 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16799         * eqn/lex.c (init_table): Add argument giving device.  Define
16800         name of device to be "1".
16801         (do_ifdef): Counts as true if the argument has been defined with
16802         `define'.
16803         * eqn/main.c (main): Call init_table with device argument. Make
16804         device local to main.
16805         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16806         of device.
16808         * pic/lex.c (get_delimited): Allow text to be delimited by
16809         matching {}s.  Don't recognize ending delimiter within a string.
16811         * troff/input.c (get_delim_name): New function.
16812         (token::next): Implement \C.
16814         * lib/font.c (font::load): Grok ---.  Add an alias for each
16815         character based on its code.
16816         (font::get_code_width): Deleted.
16817         * lib/font.h (class font): Declare font::number_to_index().
16818         Remove declaration of font::get_code_width.
16819         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16820         to indices of named characters.
16821         (font::number_to_index): New function.
16822         * troff/input.c (font::number_to_index): New function.
16823         (get_charinfo_by_number, charinfo::get_number,
16824         charinfo::set_number): New functions.
16825         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16826         (token::process, token::description, token::get_char,
16827         token::add_to_node_list, token::operator==): Handle
16828         TOKEN_NUMBERED_CHAR.
16829         * troff/charinfo.h: Declare get_charinfo_by_number,
16830         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16831         charinfo class.
16832         (charinfo::numbered): New function.
16833         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16834         * troff/env.h (class environment): Remove declaration of ...
16835         * troff/env.c (environment::make_numbered_char_node): Deleted.
16836         * troff/node.c (make_numbered_node): Deleted.
16837         (class numbered_glyph_node): Remove.
16838         (troff_output_file::put_char_width, troff_output_file::put_char):
16839         Handle numbered chars.
16840         (troff_output_file::numbered_char): Removed.
16841         (tfont::get_code_width): Removed.
16842         (make_glyph_node): Don't search special fonts for numbered
16843         characters.
16844         * troff/node.h: Remove declaration of make_numbered_node.
16845         * driver/input.c (do_file): Handle N command.
16846         * driver/printer.h: Add declaration of ...
16847         * driver/printer.c (printer::set_numbered_char): New function.
16848         * dvi/tfmtodit.c (main): Generate unnamed entries.
16849         * ps/devps/afmtodit: Likewise.
16850         * xditview/xtotroff.c (MapFont): Likewise.
16851         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16853         * tbl/main.c (process_format): If multiple widths are specified
16854         for a column but all the widths are the same, don't give an error
16855         message.
16857         * tbl/table.c (table::do_row): If the current row is all lines and
16858         the stuff doesn't contains a line, mark the top of the row after
16859         printing stuff before the row.  If the current row is not all
16860         lines and the stuff doesn't contain a line, don't unnecessarily
16861         mark the top of the row before printing the stuff.
16862         
16863 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16865         * troff/groff.h: Remove MAX_PATH.
16866         * troff/input.c (open_file): Dynamically allocate space for the
16867         path.
16868         (open_mac_file, process_macro_file): Corresponding changes.
16870 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16872         * troff/node.h (class output_file): Make copy_file pure.  Add
16873         vspace method ifdef COLUMN. Add is_printing method.
16874         * troff/node.c: Add class printing_reg. Add class
16875         real_output_file. Derive other output_file classes from
16876         real_output_file; in these classes rename begin_page to
16877         really_begin_page, print_line to really_print_line, copy_file to
16878         really_copy_file, transparent_char to really_transparent_char.
16879         Move output_file::flush to real_output_file. Add printing member
16880         to class output_file.
16881         * troff/div.h: Remove printing member from top_level_diversion.
16882         Add vspace member function to class diversion ifdef COLUMN. Add
16883         some declarations ifdef COLUMN.
16884         * troff/div.c (top_level_diversion::copy_file,
16885         top_level_diversion::transparent_output,
16886         top_level_diversion::output): Don't test printing member before
16887         output.
16888         * troff/input.c: Handle initial variable_space_request ifdef
16889         COLUMN.
16890         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16891         but comment it out.
16893 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16895         * troff/div.c (diversion::need): Make any space forced.  If we
16896         sprung a trap, set truncated_space to minus the distance to the
16897         trap and set needed_space to the amount that was needed.
16898         (top_level_diversion::space): A forced space turns no_space_mode
16899         off.
16900         (class constant_vunits_reg): New class.
16901         (init_div_requests): Implement number registers .trunc and .ne
16902         using constant_vunits_reg.
16903         (class truncated_space_reg): Deleted.   
16905         * troff/div.h: Don't have a no_space_mode member in diversion.
16906         Instead have it in top_level_diversion.
16907         * troff/div.c (diversion::diversion): Don't initialize
16908         no_space_mode.
16909         (top_level_diversion::top_level_diversion): Initialize
16910         no_space_mode.
16911         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16912         (macro_diversion::output): Don't clear no_space_mode.
16914         * troff/input.c (diverted_space_node::reread): Don't call
16915         environment::do_break.  In fill mode, act like a blank line.
16916         (diverted_copy_file_node::reread): Don't call
16917         environment::do_break.
16919         * troff/div.c (blank_line): New function.
16920         * troff/div.h: Declare it.
16921         * troff/input.c (process_input_stack): Call it.
16923         * troff/div.c (truncated_space_reg::get_string): New function.
16924         (init_div_requests): Bind to .trunc.
16925         (space_request, top_level_diversion::space,
16926         top_level_diversion::output, macro_diversion::space,
16927         macro_diversion::output): Update truncated_space.
16928         (macro_diversion::output): Redo calculations when trap sprung.
16929         (macro_diversion::output, macro_diversion::space): No need for
16930         trap_flag.
16932         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16933         after truncating post line spacing.
16935 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16937         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16938         defined as a procedure rather than as an operator.
16940 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16942         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16944 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16946         * troff/div.c (top_level_diversion::output): Merge
16947         output_file::print_line and output_file::end_of_line member
16948         functions.
16949         * troff/div.h (class output_file):
16950         * troff/node.c (troff_output_file::print_line,
16951         troff_output_file::end_of_line, output_file::end_of_line,
16952         ascii_output_file::print_line, suppress_output_file::print_line):
16953         Corresponding changes.  
16955 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16957         * troff/input.c (token::next): Don't give a warning for `\.'.
16959         * troff/env.c (environment::get_center_lines): New function.
16960         (init_env_requests): Bind number register .ce to it.
16961         * troff/env.h: Declare it.
16962         * tbl/table.c (table::init_output): Define reset macro to restore
16963         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16964         Then do .ce 0.
16965         (table::print): If center option not given, then imply center
16966         option if SAVED_CENTER_REG > 0.
16968 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16970         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16971         Troff.ps from DOWNLOAD.
16972         
16973         * troff/Makefile: Change comment in DEFINES to avoid confusing
16974         System V make.
16976         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16977         code.  Don't try to catch errors with stopped.
16978         (check_line_lengths): New function.
16979         * ps/devps/prologue (EXEC): Deleted.
16980         (EBEGIN, EEND): New procedures.
16982 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16984         * troff/input.c: Include request.h before node.h.
16985         * troff/node.c: Likewise.
16986         * troff/env.c: Likewise.
16987         * troff/div.c: Likewise.
16988         * troff/node.h (class special_node): Store argument as a macro
16989         rather than a char *.
16990         * troff/node.c (special_node::special_node, special_node::copy):
16991         Grok this.
16992         (special_node::~special_node): Deleted.
16993         (special_node::tprint): Deleted.
16994         (special_node::tprint_start, special_node::tprint_end,
16995         special_node::tprint_char): New functions.
16996         (troff_output_file::special): Deleted.
16997         (troff_output_file::start_special, troff_output_file::end_special,
16998         troff_output_file::special_char): New functions.
16999         * troff/input.c (special_node::tprint): New function.
17000         (do_special): Use macro not char *.
17001         (do_transparent_macro): Deleted.
17002         (token::next): Don't call do_transparent_macro.
17004         * troff/input.c (token::next): Add 'Y' case.
17005         (do_transparent_macro): New function.
17006         * troff/node.c (troff_output_file::special): Handle newlines with
17007         argument using new continuation convention.
17008         * driver/input.c (get_string): Cope with continuation convention.
17009         (do_file): Don't call skip_line after calling get_string(1).
17010         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17011         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17012         arg.
17013         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17014         with +.
17016 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17018         * troff/input.c (asciify): By default, illegal input characters
17019         should return empty string.
17021         * troff/input.c (copy_file): Handle first page transition like title.
17022         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17024         * troff/input.c (token::next): Improve error message for EOF after
17025         escape character.
17026         (input_char_description): New function.
17027         (get_char_for_escape_name): Use input_char_description.
17028         (token::next): Warn about unrecognized escape sequences.
17029         (warning_table): Add WARN_ESCAPE.
17030         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17031         accordingly.
17033         * troff/token.h: Remove declaration of process_input_stack.
17035         * troff/input.c: Remove declaration of init_hyphen_requests.
17036         * troff/request.h: Correct spelling in declaration of same.
17038         * troff/input.c (token::next): Check whether escape_char is 0.
17040 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17042         * groff.c (main, usage, help): Implement -P and -L options.
17043         * groff.sh: Likewise.
17045         * troff/input.c (token::next): Use some gotos to avoid code
17046         duplication.
17048         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17049         Avoid calling symbol::symbol if name empty.
17051 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17053         * troff/input.c (init_input_requests): Make \n(.x return the major
17054         version number and \n(.y return the minor version number.
17055         * troff/Makefile: Construct file majorminor.c defining
17056         major_version and minor_version automatically from ../VERSION.
17058         * troff/node.c (class glyph_node): Make operator new and operator
17059         delete public.
17060         (class ligature_node): Similarily.
17062         * troff/input.c (operator==(const macro &, const macro &)): New
17063         function.
17064         (non_interpreted_node::same): Use this.
17065         (string_iterator::string_iterator): Make macro& argument const.
17067         * troff/input.c (input_iterator::get): New function. Don't make
17068         asciify_macro or class non_interpreted_node friends of class
17069         input_iterator.
17070         (non_interpreted_node::interpret): Use input_iterator::get.
17071         (asciify_macro): Likewise.
17073         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17074         ~non_interpreted_node): Deleted.
17075         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17076         Deleted.
17078         * troff/symbol.h: Make all symbol member functions const.
17080         * lib/strtol.c: New file.
17081         * lib/Makefile: Add strtol.c.
17082         * Makefile: Define STRTOL as strtol.o to include strtol in
17083         libgroff.a.
17085 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17087         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17089 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17091         * troff/input.c (do_special): Use input_level.
17093         * troff/token.h (TOKEN_BACKSPACE): New token.
17094         (token::backspace): New function.
17095         * troff/input.c (token::description, token::next, token::process):
17096         Grok TOKEN_BACKSPACE.
17097         (do_special): Turn TOKEN_BACKSPACE back into \b.
17099         * troff/token.h (token::leader): New function.
17100         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17102         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17104         * troff/input.c (do_special): Use token::description in error
17105         message.
17107 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17109         * troff/input.c (decode_args): Combine quoted and
17110         quote_input_level variables. Make it a for (;;) loop.
17112         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17114         * troff/input.c (read_long_escape_name): The test for whether to
17115         expand buffer was off by 1.
17116         (read_string): Similarily.
17118 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17120         * troff/input.c: Use `const int' rather than `static const int'.
17122         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17123         (macro_diversion::copy_file): New function.
17124         * troff/node.h: New class diverted_copy_file_node.
17125         * troff/node.c: Implement it.
17126         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17127         first page transition by pushing a diverted_copy_file_node.
17128         * troff/input.c (token::next, process_input_stack): Don't handle
17129         COPY_FILE_REQUEST.
17131 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17133         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17134         whether space widths need adjusting.
17136         * troff/charinfo.h: Generalize translated_to_space to
17137         special_translation so as to allow translation to \&.
17138         * troff/input.c (translate): Allow translation to \&.
17139         (charinfo::*): Corresponding changes.
17140         * troff/node.c (make_node, node::add_char): Corresponding changes.
17141         * troff/node.h (dummy_node::dummy_node): Allow optional first
17142         argument.
17144         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17145         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17146         TOKEN_REQUEST.
17147         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17148         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17149         (token::process): Grok that.
17150         * troff/input.c (copy_file): Handle first page transition like
17151         title by pushing a COPY_FILE_REQUEST cookie.
17152         (token::next, process_input_stack): Grok that.
17153         * troff/node.h (output_file::copy_file): Add x and y arguments.
17154         Make it non-pure.
17155         * troff/div.c (top_level_diversion::copy_file): Supply them.
17156         * troff/node.c (troff_output_file::copy_file): Add x and y
17157         arguments; moveto specified position.  Invalidate font_position
17158         array after copying file.
17159         (output_file::copy_file): New function.
17160         (suppressed_output_file::copy_file, ascii_output::copy_file):
17161         Removed.
17162         * troff/input.c (transparent_file): New function.
17163         (init_input_requests): Bind to "trf".
17164         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17165         (process_input_stack): Likewise.
17167         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17169         * troff/node.c (init_node_requests): New number registers .kern
17170         pointing to global_kern_mode, and .lg pointing to
17171         global_ligature_mode.
17173         * troff/node.c (ligature): Don't change it if we get a bad
17174         integer.
17176         * troff/input.c (do_define_string): Don't strip tabs.
17178         * troff/input.c (asciify_macro): Make the string_iterator auto.
17180         * troff/node.c (init_font_requests): Rename to...
17181         (init_node_requests):
17182         * troff/node.h: Change declaration.
17183         * troff/input.c (main): Change call.
17185         * troff/input.c (node::reread, diverted_space_node::reread): New
17186         methods.
17187         (process_input_stack): Call reread rather than
17188         get_diverted_space_node.
17189         * troff/node.c (node::get_diverted_space_node,
17190         diverted_space_node::get_diverted_space_node): Removed.
17191         * troff/node.h: Declare reread methods instead of
17192         get_diverted_space_node methods. Make `n' member private.
17193         * troff/input.c: (token::diverted_space): Removed.
17194         * troff/token.h: Removed declaration.
17195         
17197 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17199         * eqn/script.c (script_box::compute_metrics): Don't let
17200         SUP_RAISE_FORMAT become negative.
17202         * tbl/table.c (table::do_row): Entries that don't end in the
17203         this row shouldn't make the row non-blank.
17204         
17205         * tbl/table.c (table::make_columns_equal): Only set the width of
17206         columns which are marked as equal.
17207         
17208         * tbl/main.c (process_data): Before issuing excess data error,
17209         if last character was a newline unget it; then get it again after
17210         the error.  Also include the contents of the entry in the message.
17212         * groff.c: New file.
17213         * Makefile: Build groff from groff.c.  Make it possible to use
17214         either groff.sh or groff.c as groff.
17215         * Makefile.bd: Similarily.
17217 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17219         * groff.sh: Don't delay expansion of $@ in assignment to files.
17220         Remove occurrences of \".
17222 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17224         * all Makefiles: Simplify and rearrange.
17226         * Makefile: Handle fmod like malloc.
17227         * lib/Makefile: Similarily.
17228         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17230         * Makefile: Rename OPTIMISE to OPTIMIZE.
17232         * groff.sh: Remove assignment to PATH.
17233         * Makefile: Remove SHPATH variable.
17234         * Makefile.bd: Similarily.
17236         * groff.sh: Add -V option to print the pipeline instead of
17237         executing it.
17239 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17241         * lib/font.c: Split off file searching into ...
17242         * lib/fontfile.c: New file.
17244         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17246 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17248         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17249         Also change misleading comment.
17250         (table::do_vspan): Change similarily misleading comment.
17251         * tbl/main.c (process_data): A format row with an explicit `s'
17252         uses up a data line, even if all the other columns are `_' or `='.
17254         * troff/input.c (token::description): Fix description of
17255         TOKEN_DUMMY and TOKEN_EMPTY.
17257 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17259         * groff.sh: Fix description of -Z in help message.
17261 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17263         * pic/object.c (object_spec::make_object): Allow negative and zero
17264         line thicknesses.
17265         * pic/pic.y: Give linethick default value of -1.0.
17266         * pic/troff.c (troff_output::troff_output): Initialize
17267         last_line_thickness to BAD_THICKNESS.
17268         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17269         (troff_output::line_thickness): Canonicalize negative thicknesses
17270         to RELATIVE_THICKNESS.
17271         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17272         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17273         to -1.0.
17274         (tex_output::start_picture): Set pen_size to -2.0.
17276         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17277         0, then use 0 linewidth.
17278         (ps_printer::ps_printer): Initialize line_thickness to -1.
17280         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17282         * ps/devps/symbolchars: Remove `or'.
17283         * ps/tmac.ps: Implement \(or with .char.
17285         * ps/devps/symbolchars: Move most characters into textmap.
17286         * ps/devps/textmap: Add names for troff bracket characters. Remove
17287         ul, ru, br, bv.
17289         * ps/devps/TSymbol.ps: Removed.
17290         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17291         * ps/tmac.ps: Do with .char what TSymbol did.
17292         * ps/devps/download: Remove TSymbol.
17294         * ps/devps/T: Removed.
17295         * ps/devps/Troff.ps: Removed.
17296         * ps/devps/Troff.afm: Removed.
17297         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17298         * ps/devps/download: Remove Troff.
17299         * ps/devps/FontMakefile: Remove T target.
17300         * ps/devps/DESC-A4: Remove T from font list.
17301         * ps/devps/DESC-letter: Likewise.
17303         * troff/input.c (macro_to_node): Rename to ...
17304         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17305         character's definition while processing it.
17306         * troff/node.c (node::add_char, make_node): Change calls to
17307         macro_to_node accordingly.
17309         * troff/input.c (token::next): Translate \_ to \(ul.
17311         * tty/devascii/R.proto: Add `|'.
17312         * tty/devlatin1/R.proto: Likewise.
17314 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17316         * man: Put the version number in all the man pages.
17318 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17320         * Makefile.bd: New file.
17321         * README.bd: New file.
17323         * VERSION: New file.
17324         * lib/version.c: Removed.
17325         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17326         in clean target.
17328         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17329         environment variable.
17331         * all Makefiles: Split install target into install.bin for
17332         binaries, and install.nobin for everything else.
17333         * Makefile: Add bindist target.
17335         * man/afmtodit.man: New file.
17336         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17337         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17338         in BINDIR.
17339         * ps/Makefile: Pass BINDIR to make install in devps.
17341         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17342         the space character.
17344         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17346 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17348         * ps/ps.c: Redo font downloading.
17349         * ps/devps/download: New file.
17350         * ps/devps/Makefile: Add download to DEVICEFILES.
17351         * ps/devps/afmtodit: Remove -d option.
17352         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17353         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17354         * ps/devps/zapfdr.ps: Likewise.
17355         * ps/devps/TSymbol.ps: Likewise.
17357 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17359         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17361 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17363         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17364         then strip the first line if it starts with %.
17365         * Makefile: Add a comment about this.
17367         * man/tfmtodit.man: New file.
17368         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17369         * dvi/Makefile: Install tfmtodit in BINDIR.
17371         * dvi/tfmtodit.c (usage): Mention -v option.
17373 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17375         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17376         * troff/node.c (troff_output_file::transparent_char): Don't call
17377         flush_tbuf.
17379         * eqn: Add check_tabs method to most box classes.
17380         * eqn/box.c (box::top_level): Call check_tabs.
17382         * eqn/script.c (script_box::output): Use \Z.
17383         * eqn/limit.c (limit_box::output): Use \Z.
17385         * eqn/box.c (box::top_level): Use itoa.
17387 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17389         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17390         * dvi/devdvi/Makefile: Don't make links to CW.
17392         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17393         HX, HD.
17394         * xditview/tmac.X: Likewise.
17396         * troff/node.c: Add font translation feature.
17397         (get_font_translation): New function.
17398         (symbol_fontno): Translate the font name.
17399         (mount_font_no_translate): Rename to mount_font to this.
17400         (mount_font): New function.
17401         (font_family::make_definite): Call mount_font_no_translate instead
17402         of mount_font.
17403         (mount_style): Translate the font name.
17404         (font_translate): New function.
17405         (init_font_requests): Bind "ftr" to font_translate.
17407         * ps/devps/prologue (SN): New procedure that rounds a position to
17408         the nearest (pixel + (.25,.25)).
17409         (DL): Use SN to round endpoints.
17411         * lib/version.c: Changed version to 0.5.
17413 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17415         * Makefile: Move definition of PAGE to the very beginning, so that
17416         people are less likely to miss it.
17418 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17420         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17422         * troff/env.c (environment::choose_breakpoint): Make `can't find
17423         breakpoint' error a warning of type WARN_BREAK.  Change message to
17424         `can't break line'.
17425         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17426         code 040000.
17427         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17428         WARN_BREAK in DEFAULT_WARNING_MASK.
17430         * tty/tmac.tty: Add definition of \(+-.
17432         * groff.sh: Remove `--' option to set command.
17434         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17436         * ps/devps/eqnchar: Better definition of cdot using md.
17437         * dvi/devdvi/eqnchar:  Likewise.
17438         * xditview/devX100/eqnchar:  Likewise.
17439         * xditview/devX75/eqnchar: Likewise.
17440         * eqn/lex.c: Add definition of cdot.
17442 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17444         * troff/input.c (get_optional_char): New function.
17445         * troff/input.c (set_page_character): Use get_optional_char(),
17446         rather than has_arg() and tok.get_char(1).
17447         * troff/env.c (tab_character, leader_character, hyphen_char,
17448         field_characters): Likewise.
17449         (margin_character): Likewise.  Also always delete the
17450         margin_character_node.
17452         * troff/input.c (token::get_char): Use token::description.
17454         * troff/input.c (has_arg): Don't skip over tab and \}.
17455         * troff/number.c (start_number): Give a warning if the number
17456         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17458 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17460         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17461         functions.
17462         (get_name, get_long_name): Use these.  Rename `warn' argument to
17463         `required'.
17465         * troff/node.c (get_fontno): Test that the symbol is not null.
17467         * troff/input.c (token::description): New function.
17468         * troff/number.c (parse_term): Use token::description in `numeric
17469         expression expected' message.
17470         * troff/groff.h: Add WARN_MISSING.
17471         * troff/number.c (start_number): New function.
17472         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17473         get_incr_number): Use start_number().
17474         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17475         default.
17476         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17477         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17478         token::descripion.
17479         * troff/input.c (token::get_char): Use WARN_MISSING.
17480         * troff/input.c (token::delimiter): Use token::description.
17481         * troff/env.c (environment_switch): Back out Aug 3 change.
17482         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17483         warning.
17484         * troff/token.h (token::tab): New function.
17485         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17486         * troff/reg.c (alter_format): Likewise.
17487         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17489 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17491         * troff (most files): Redo warnings. Divide warnings into various
17492         categories; warning() has an additional first argument indicating
17493         the category it falls into.
17494         * troff/input.c (main): -w now takes an argument. New option -W.
17495         (enable_warning, disable_warning): New functions.
17497         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17498         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17500 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17502         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17503         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17504         * xditview/devX75/eqnchar: Likewise.
17505         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17507         * eqn/other.c: When bar or over applies to a single character
17508         don't produce an overline_box or an underline_box. Instead produce
17509         an accent_box or an underaccent_box, with the accent a line
17510         whose width is accent_width.  New classes underaccent_box,
17511         overline_char_box and underline_char_box.
17512         * eqn/box.h: Move overline_box, underline_box, accent_box class
17513         declarations into eqn/other.c. Add declarations of
17514         make_underline_box, make_overline_box, make_accent_box.
17515         * eqn/eqn.y: Call make_overline_box, make_underline_box
17516         make_accent_box instead of constructors.
17517         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17519         * eqn/other.c: Add accent_box::~accent_box.
17520         * eqn/box.h: Declare it.
17522         * groff.sh: With -Tps, use eqn -D.
17524         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17525         rather than \l.
17526         (underline_box::output): Similarily.
17527         (accent_box::output): Use \Z.
17529         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17530         bit smaller.)
17532 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17534         * troff/div.c (top_level_diversion::transparent_output(unsigned
17535         char)): Use asciify.
17536         * troff/input.c (asciify): Don't make it static.
17537         * troff/token.h (asciify): Declare it.
17538         
17539         * troff/input.c (get_name, get_long_name, token::get_char,
17540         token::delimiter): Add an extra default argument which says
17541         whether a warning should be printed.
17542         * troff: Pass a non-zero argument to one of these rather than
17543         printing a warning directly.
17545 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17547         * troff: Consistently use symbol::is_null.
17549         * troff/dictionary.h: Move some inline functions into
17550         dictionary.c.
17552         * troff/request.h: Move inline functions into input.c.
17553         (request_or_macro::invoke): Make it pure.
17555         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17556         * troff/input.c (init_input_requests): Use class constant_int_reg.
17557         (class compatible_reg): Deleted.
17558         * troff/div.c (init_div_requests): Use class constant_int_reg.
17559         (class last_post_line_extra_space_reg): Deleted.
17561         * troff/env.c (tab_character): Don't change the tab character if
17562         we get an invalid argument.
17563         (hyphen_char): Similarily.
17565         * troff/reg.c (alter_format): Check that nm is not null.
17567         * Makefile, groff.sh: Make it possible to customize the commands
17568         used for printing PostScript and dvi files. Also make it possible
17569         to customize the path used by groff.sh.
17571         * eqn/eqn.y: Make `left' right associative.
17573 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17575         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17576         don't have it.
17578         * pic/pic.h: Removed definition of INT_MAX.
17580         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17581         `return'.
17583         * troff/input.c (token::next):  Handle \R like \n.
17585 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17587         * ps/tmac.pc (PSPIC): Simplify.
17589         * troff/env.c (tab_stops::to_string):
17590         * pic/pic.y (object_type_name):
17591         * pic/troff.c (simple_output::line):
17592         * pic/tex.c (tex_output::spline):
17593         * pic/object.c (object_spec::make_object):
17594         * tbl/main.c (process_data):  Add cases to switch statements to
17595         avoid cfront warnings. (Some of these are spurious, since the
17596         switch already has a default case.)
17598         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17599         `ps-'.  Don't test systat; instead check number of arguments to
17600         ps-bb.
17602 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17604         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17606         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17607         Unlink the file as soon as we have opened it, so that we don't
17608         have to bother with signal handlers.
17609         (handler): Deleted.
17610         (fatal_error_exit): Deleted.
17611         (main): Don't call signal.
17613         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17614         can be ignored.
17615         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17617         * pic/pic.y:  If there is a label, or an nth construction before
17618         the first `.' in the argument to `with', ignore it and generate a
17619         warning.
17620         * pic/lex.c (lex_warning): New function.
17622         * tbl/table.c (table::init_output): In section keep and release
17623         macro, use 0 indent when diverting and the correct indent when
17624         rereading.
17626         * troff/input.c (interpolate_number_format): Do not interpolate
17627         anything if the number register is not defined.
17629         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17631 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17633         * ps/devps/prologue (PICTURE): Set components of graphics state to
17634         their default values.
17636         * ps/devps/text.enc: Add trademark
17637         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17638         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17639         * ps/devps/symbolchars: Add names for summation and product.
17641         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17642         suchthat. Add pp. Add upper-case letters.
17644         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17645         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17646         Upsilon.
17648         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17649         rA (right angle bracket) to ra.  Introduce names for double-headed
17650         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17651         * ps/devps/textmap: Likewise for ps device.
17652         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17653         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17654         * tty/devascii/R.proto: Likewise.
17655         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17656         \(uA, \(dA.
17657         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17659         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17661         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17662         def_table.
17664 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17666         * troff/div.c (when_request): Use symbol::is_null rather than
17667         has_arg to determine whether we have an argument.
17668         (change_trap): Remove the trap if we get an invalid number. Give
17669         an error if we don't get at least the macro name.
17670         (diversion_trap): Remove trap if we get an invalid name or number.
17672         * troff/env.c (environment_switch): Pop if we get an invalid
17673         symbol or numeric expression.
17675         * troff/input.c (do_define_macro):  If EOF is encoutered while
17676         defining the macro, do tok.next() before returning.
17678         * troff/token.h (has_arg): Move definition from here, to ...
17679         * troff/input.c (has_arg): ... here
17681         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17682         * troff/input.c (shift): Likewise.
17684         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17685         for `.c'.
17687         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17688         `..'.
17690         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17691         interpret_lf_args succeeds.
17693         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17694         \\.  This avoids problems with \$N.
17696         * groff.sh: Pass -C to preprocessors.
17698         * lib/lf.c (interpret_lf_args):  Be more flexible.
17700         * tbl/main.c (main): Add -C option.
17701         (table_input::get): Do not recognize TE if followed by character
17702         other than a space or newline unless -C option given.
17703         (process_input_file): Likewise for lf, TS.
17704         (process_data): Likewise for lf in text blocks.
17706         * eqn/main.c (main): Add -C option.
17707         (do_file): Don't recognize EQ, EN or lf if followed by character
17708         other than space or newline unless -C option given.
17709         * eqn/lex.c (file_input::read_line): Similarily.
17710         * eqn/eqn.h: Declare compatible_flag.
17712         * etc/soelim.c (main): Add -C option.
17713         (interpret_lf_args): Use version in libgroff.
17714         (do_file):
17716         * pic/main.c (main): Add -C option, which sets compatible_flag.
17717         (top_input::get), (top_input::peek):  If -C option not given,
17718         do not recognize .PS/.PE/.PF/.lf if followed by a character
17719         other than space or newline.
17720         * pic/lex.c (file_input::read_line): Similarily.
17721         * pic/pic.h: Add declaration of compatible_flag.
17723 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17725         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17727         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17728         derived from node.  New class space_char_hmotion_node.
17729         * troff/input.c (asciify_macro): New function.
17730         * troff/input.c (init_input_requests): New request `asciify' bound
17731         to asciify_macro.
17732         * macros/mm.diff: New file.
17733         * Makefile:  In install.mm target use `patch' to apply
17734         macros/mm.diff.
17736         * troff/input.c (macro::print_size): Just print the size in bytes.
17738         * troff/div.c (return_request): Correct the argument
17739         interpretation.
17741 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17743         * troff/node.h (class composite_node): Add sz member.
17744         * troff/node.c (composite_node::size): Return sz.
17745         * troff/input.c (macro_to_node):  Use the initial size in the
17746         environment as the size of the composite_node.
17748         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17749         default.
17751 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17753         * troff/div.c (change_trap): If we get a bad number expression,
17754         do nothing.
17756 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17758         * lib/matherr.c (matherr): Define this only if math.h defines
17759         TLOSS.
17761 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17763         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17764         no diversion trap return vunits(INT_MAX - vresolution).
17766 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17768         * troff/input.c (do_zero_width): New implementation that doesn't
17769         use a temporary environment. Use instead:
17770         (token::add_to_node_list): New function.
17771         * troff/env.c (environment::get_prev_char_height),
17772         (environment::get_prev_char_height),
17773         (environment::get_prev_char_skew): New functions.
17774         (environment::get_prev_char): New function.
17775         (environment::get_prev_char_width): Change to use get_prev_char.
17776         (init_env_request): Implement new registers .cht, .cdp, .csk.
17777         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17778         \Z being processed in a separate environment.
17780 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17782         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17784         * tbl/table.c (table::init_output): In the section release macro,
17785         give a warning message if the section won't fit on one page.
17787         * tbl/table.c (table::do_top): Emit table keep only if table is
17788         boxed.
17789         (table::do_bottom): Likewise for table release.
17790         (table::table), (table::add_vertical_rule):  Remove reference to
17791         keep member.
17792         * tbl/table.h: Remove keep member.
17794         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17795         SECTION_RELEASE_MACRO, if there's not enough space before the next
17796         trap to output the diversion, call T# ourselves, set
17797         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17798         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17799         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17800         vertical position and return to it before turning traps on again.
17801         
17802 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17804         * troff/node.c, troff/node.h: In classes derived from node,
17805         replace prev_char_width method by last_char_node method.
17806         * troff/env.c (environment::get_prev_char_width): Use
17807         node::last_char_node rather than node::get_prev_char_width.
17809         * Makefile: Added comment about -fno-inline on 68030-based
17810         Apollos.
17812         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17813         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17814         expressions using sizeof to int.
17815         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17817         * macros/tmac.e (TS):  Don't move @f back past the current
17818         position.
17820 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17822         * ps/ps.c (main): Buffer stderr.
17823         * dvi/dvi.c (main): Likewise.
17824         * tty/tty.c (main): Likewise.
17826         * ps/ps.c (ps_printer::do_import): Improve error handling.
17828         * troff/input.c (abort_request): Use asciify.
17830         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17831         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17832         type of first argument int rather than char.  This works around a
17833         bug on the 68030 based Apollo using g++ 1.37.1.
17835         * tbl/table.h (class table): Add `keep' member.
17836         * tbl/table.c (table::table): Initialize `keep'.
17837         (table::add_vertical_rule): Set `keep' to 1.
17838         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17839         (table::do_bottom): Likewise for table release macro.
17840         (table::do_row): Emit section keep macro even if the row is 0.
17842 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17844         * macros/tmac.e (@C): Preserve the font family across the change
17845         in environments.
17847 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17849         * lib/font.c: Initialize font::hor and font::vert to 1.
17850         (font::load_desc): Check the values of font::hor and font::vert.
17852         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17853         be included in a C compilation.
17854         (iftoa): Use INT_DIGITS. Include lib.h.
17855         (itoa): Likewise.
17856         (as_string): Likewise.
17857         * tbl/table.c: Removed definition of INT_DIGITS.
17858         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17859         * troff/input.c (input_input_requests): Likewise.
17860         * ps/ps.c (make_encoding_name): Likewise.
17861         (ps_printer::set_style): Likewise.
17862         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17864         * tty/devascii/R.proto: Map fm onto '.
17865         * tty/devlatin1/R.proto: Likewise.
17867 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17869         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17870         argument to \w is at a different input level.
17872         * tbl/table.c (table::init_output): Define a new macro
17873         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17874         transparently outputs itself.
17875         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17876         vpt.
17877         (table::do_row): Likewise.
17879         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17880         TRANSPARENT_STRING_NAME.
17882         * tbl/table.c (table::init_output): In the table release macro
17883         print an error message and don't produce any output if after
17884         issuing the need request the table still will not fit.  Also
17885         remove the diversion after bringing it back.
17887         * tbl/table.c (table::init_output): Define a new macro
17888         REPEATED_MARK_MACRO, like mk but if in a diversion also
17889         transparently outputs itself.
17890         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17891         is necessary because .TH might not call .T#.
17892         (table::do_top): Likewise TOP_REG.
17893         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17894         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17895         table header might contain just the two top rules.
17897 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17899         * troff/div.c: Implement new request `ptr' to print all traps.
17901         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17902         init_string_env_reg.
17903         * troff/env.c (class tab_reg): Deleted.
17905 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17907         * troff/div.c: New number register .pn returns the number of the
17908         next page as set by the pn request.
17910         * macros/tmac.an: Redid headers and footers.  Number each manual
17911         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17912         optional 5th argument to .TH which specifies the manual name and
17913         appears in the center of the header.  Understand the X, P and D
17914         registers like Sun.
17916 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17918         * troff/env.c (init_env_requests): New number register `.lt' to
17919         return the title length.
17921         * troff/node.h (class transparent_dummy_node): New class.
17922         * troff/node.c (class transparent_dummy_node): Provide member
17923         functions. 
17924         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17925         than a dummy_node.
17927         * troff/input.c (token::next): New escape sequence \).
17928         * troff/input.c (get_copy): Recognize \) in copy mode.
17930         * troff/input.c (input_stack::clear): New function.
17931         * troff/input.c (exit_request): Use input_stack::clear.
17933         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17934         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17936         * troff/env.c: Move set_page_character to input.c.  Move
17937         page_character to input.c also.
17938         * troff/env.c (title): Split off the reading of the parts of the
17939         title into read_title_parts.
17940         * troff/input.c (read_title_parts): New function.  Check the
17941         input_level when testing whether a token matches the delimiter.
17943         * troff/input.c (exit_request): New function.
17944         * troff/input.c (init_input_requests): Bind ex request to
17945         exit_request rather than exit_groff.
17947         * troff/input.c (exit_groff): Call tok.next() before
17948         process_input_stack().
17950 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17952         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17953         * troff/env.h: ditto.
17954         * troff/input.c: ditto.
17956         * troff/env.c (environment::is_empty): Test pending_lines.
17958         * troff/env.c (environment::have_pending_lines): Removed.
17960         * troff/input.c: Add request to flush pending lines from the
17961         environment.
17963         * troff/env.c, troff/env.h: Add automatic widow control feature.
17965         * troff/input.c (exit_groff):  Do process_input_stack() after
17966         do_break() but before setting exit_flag to 2.
17968         * troff/input.c: Remove FLUSH_PENDING_LINES and
17969         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17970         environment after END_TRAP token seen, but only if there aren't
17971         any more traps still unfinished.
17972         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17974 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17976         * troff/env.c: Rename the `retain_size' member of class
17977         pending_output_line to `no_fill'.
17979         * troff/env.c (title): When the line is output, make the
17980         retain_size argument !fill.
17982         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17983         * troff/node.c (space_node::get_breakpoints),
17984         (dbreak_node::get_breakpoints):  Fill this in.
17985         * troff/env.c:  Allow specification of maximum number of
17986         consecutive hyphenated lines.
17988         * troff/env.c (environment::is_empty): Add test for !current_tab.
17990 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17992         * troff/env.c (environment::hyphenate_line): Don't completely give
17993         up if the word is not to be hyphenated; continue so that breaks
17994         can be made at break_char_node's.
17996         * lib/lib.h: Only define INT_MAX if it's not already defined;
17997         undef INT_MIN if it's already defined.
17999         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18001         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18002         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18003         compiler.
18004         
18005         * macros/tmac.an (an-header): Set no-space mode.
18007         * macros/tmac.an (TH): Start a new page if necessary.
18009         * Started using ChangeLog at version 0.4.
18011 Local Variables:
18012 version-control: never
18013 coding: latin-1
18014 End: