* configure.ac: Produce `contrib/gdiffml/tests/runtests'.
[s-roff.git] / ChangeLog
blob72a0c8707828224995a30ff172f6a13af8d99c91
1 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
3         * configure.ac: Produce `contrib/gdiffml/tests/runtests'.
4         * configure: Updated.
6 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
8         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
10 2004-12-15  Werner LEMBERG  <wl@gnu.org>
12         Make `test-groff' work again -- previously, wrong paths have been
13         used.  Additionally, it can now be called from anywhere.
15         * test-groff.in: Don't test for groff binary.  This is no longer
16         necessary since the proper paths are determined by `configure'.
17         (EXEEXT): Removed.  No longer used.
18         (srcdir, builddir): Use values provided by the configure script.
19         (XENVIRONMENT): Updated.
21         * INSTALL: Updated.
23 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
25         Make .tag and .taga work for all devices (but only grohtml actually
26         handles them).
28         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
29         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
30         html_printer::handle_assertion): Don't use hard-coded string
31         lengths.
32         (html_printer::lookahead_for_table): Reset `tbl' properly if
33         necessary.
34         (html_printer::devtag): New function, handling `devtag'.
35         (html_printer::special): Don't handle `html-tag'.
37         * src/include/printer.h, src/libs/libdriver/printer.cpp
38         (printer::devtag): New virtual function.
40         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
41         `devtag'.
43         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
44         src/roff/troff/node.cpp: s/html-tag/devtag/.
46         * src/roff/troff/input.cpp (tag, taga): Always call
47         curenv->add_node.
49         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
50         macros instead of HTML-TAG*.
52         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
54         * tmac/www.tmac: Load devtag.tmac.
55         Replace HTML-TAG* macros with DEVTAG* macros.
56         (HTML, HTML-NS): Changed definitions.
57         (URL): Use HTML-NS.
58         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
60         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
62 2004-12-10  Werner LEMBERG  <wl@gnu.org>
64         Import Mike's `gdiffmk' package.
66         * contrib/gdiffmk/*: New files.
67         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
68         * NEWS: Updated.
70 2004-12-08  Werner LEMBERG  <wl@gnu.org>
72         Import Keith's `pdfmark' package.  Integration is very preliminary.
74         * contrib/pdfmark/*: New files.
75         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
76         * NEWS: Updated.
78 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
80         Fix a bug with title handling in HTML.
82         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
83         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
84         length.
85         (html_printer::handle_tag_within_title): New function.
86         (html_printer::do_title): Use it.
88         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
89         (cov*tl-au-print): Emit `.eo.tl' tag.
91 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
93         * man/groff_char.man: Minor imrovements.
95 2004-12-04  Werner LEMBERG  <wl@gnu.org>
97         * src/preproc/eqn/eqn.man: Revised.
99 2004-11-25  Werner LEMBERG  <wl@gnu.org>
101         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
102         groff source files.
103         Include config.h.
104         Include limits.h.
105         Remove X_NOT_STDC_ENV conditional.
106         (Version_string, program_name): New global variables.
107         (groff_flag): Removed.
108         (MapFont): Updated.
109         (usage): Take a stream as argument.
110         Use `program_name'.
111         Update all callers.
112         (main): Add `long_options' array for `--help' and `--version'.
113         Make `-g' a dummy option.
114         Handle `-v' and unknown options.
115         Remove unused `position' variable.
117         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
118         (XLIBS): Add LIBGROFF.
120         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
121         New files.
123         * src/devices/xditview/Dvi.c (default_font_map): Split into three
124         parts to avoid compiler warning.
125         (resources): Don't initialize with `default_font_map'.
126         (ClassInitialize): Initialize first element of `resources'.
128         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
129         Removed.
131         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
132         src/utils/pfbtops/pfbtops.man: Revised, updated.
134         * configure.ac: Generate src/utils/xtotroff/Makefile.
135         * configure: Regenerated.
137 2004-11-24  Werner LEMBERG  <wl@gnu.org>
139         First fixes to get produce HTML.
141         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
142         attribute.
144         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
145         (HR, LI): Use `HTML</p>', not `HTML'.
147         * doc/webpage.ms: Minor updates.
149 2004-11-23  Larry Kollar  <kollar@alltel.net>
151         Add option -S grohtml to determine the file split level.
153         * src/devices/grohtml/post-html.cpp (split_level): New global
154         variable.
155         (html_header::determine_header_level): Use split_level.
156         (main): Handle `-S' command line option.
157         Sort options.
159         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
161         * src/devices/grohtml/grohtml.man: Document it.
162         Sort options.
164         * NEWS: Document it.
166 2004-11-23  Y T  <doarhop@hotmail.com>
168         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
169         the volume and number refer entries.
171 2004-11-22  Werner LEMBERG  <wl@gnu.org>
173         * src/devices/grohtml/html-table.cpp
174         (html_table::emit_table_header): Don't emit `cols' attribute which
175         doesn't exist in HTML 4.0 and is thus invalid.
177         * NEWS: More minor fixes and updates.
179 2004-11-18  Werner LEMBERG  <wl@gnu.org>
181         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
182         (HTML</p>): Minor clean-up.
184         * tmac/groff_www.man: Updated.
186         * src/devices/grohtml/grohtml.man: Revised and updated.
188         * NEWS: Updated.
190 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
192         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
193         Fix space insertion.
194         (html_printer::do_links): Fix rules generation around automatic
195         heading links.
197         * tmac/www.tmac (LK): Use HTML-TAG-NS.
198         (HR): Simplify.
199         No longer emit empty line for non-HTML devices.
201 2004-11-17  Werner LEMBERG  <wl@gnu.org>
203         * doc/Makefile.in (prepare_examples, webpage.html): Handle
204         `groff.css'.
206         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
207         prepare_examples, webpage.html): Handle `groff.css'.
209 2004-11-15  Werner LEMBERG  <wl@gnu.org>
211         * NEWS, README, doc/webpage.ms: Updated.
213         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
215 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
217         * src/include/printer.h (printer): Remove virtual function
218         `round_width'.
219         Update all source files.
221         * src/devices/grohtml/post-html.cpp (html_printer): New member
222         function `round_width'.
224 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
226         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
227         column key letter suffix.
229 2004-10-14  Werner LEMBERG  <wl@gnu.org>
231         * Makefile.in (check): Depend on `site.exp' and `docheck'.
232         (docheck): Run dejagnu's `runtest' if it exists.
233         (site.exp): Create dejagnu configuration file.
235         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
237 2004-10-13  Werner LEMBERG  <wl@gnu.org>
239         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
240         src/devices/grohtml/post-html.cpp (make_val,
241         html_printer::handle_state_assertion): Fix compiler warnings.
243         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
244         (diversion::diversion): Fix order of initializers.
246         * src/roff/troff/div.h: Don't include `mtsm.h'.
248         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
249         (environment::environment): Fix order of initializers.
250         (environment::make_tag, environment::construct_format_state): Fix
251         compiler warnings.
253         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
254         (input_iterator::input_iterator, macro::macro): Fix order of
255         initializers.
257         * src/roff/troff/mtsm.cpp: Include only necessary header files.
258         (state_set::add, state_set::val): Fix compiler warnings.
260         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
261         (bool_value_state, int_value_state, units_value_state,
262         string_value_state): Remove comma after last element which causes
263         an error with g++ 3.3.3.
265         * src/roff/troff/node.cpp: Include `stringclass.h'.
266         (hline_node::hline_node, vline_node::vline_node,
267         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
268         warnings.
269         (zero_width_node::zero_width_node): Fix order of initializers.
271         * src/roff/troff/node.h: Don't include `mtsm.h'.
272         (hmotion_node): Fix compiler warnings.
274         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
276 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
278         * doc/groff.css: New file.
280         * doc/webpage.ms: Use `groff.css'.
281         Other small fixes.
283         * tmac/an-old.tmac (need_eo_h): New number register.
284         (TH): Emit `.eo.tl' tag after title.
285         (SH): Set `need_eo_h'.
286         (an-trap): Handle `need_eo_h'.
287         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
289         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
290         (TL): Always start diversion.
291         Updated.
292         (@AI): Always call `par@reset'.
293         (@AB): Update code for -Thtml.
294         (cov*tl-au-print): Handle -Thtml.
295         (par@reset): Handle `need_eo_tl', `need_eo_h'.
296         (@IP): Simplified.
297         (@IT-html): Removed.
298         (@SH): Set `need_eo_h' for -Thtml.
299         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
300         Set `need_eo_tl'.
301         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
302         Set `need_eo_h' for -Thtml.
303         (@EQ, @EN): Don't handle -Thtml specially.
304         (par@load-init): Don't handle -Thtml specially.
306         * tmac/www.tmac (www:paraspace): New macro.
307         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
308         (HTML</p>, HTML-TAG-NEXT): New macros.
309         (HnE): Emit tag `.eo.h' instead of break.
310         (HR): s/HTML-NS/HTML/.
311         (www-end-nowhere): End diversion only if `www-html' not set.
312         Emit `.eo.tl' tag.
313         (ULS, ULE): s|HTML|HTML</p>|.
314         (LI): Call `www:paraspace'.
315         (HEAD): New macro.
317 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
319         * src/roff/troff/request.h (macro): Make `p' public.
320         New variable `is_a_diversion'.
321         New member function `is_diversion'.
324         * src/devices/grohtml/html.h (simple_output): New member function
325         `force_nl'.
327         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
328         computation of `total'.
329         (tabs::check_init): New function.
330         (html_table::emit_table_header): Emit style data.
331         (html_table::insert_column): Improved.
333         * src/devices/grohtml/html-table.h: Updated.
335         * src/devices/grohtml/html-text.cpp (html_text::html_text):
336         Initialize `start_space' with TRUE.
337         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
338         cases.
339         (html_text::flush_text): Set `start_space' flag.
340         (html_text::uses_indent, html_text::remove_para_space,
341         html_text::get_alignment): New functions.
342         (html_text::push_para): Updated.
343         (html_text::do_para): Check for empty argument.
344         Don't set `space_emitted'.
345         (html_text::do_space, html_text::emit_space): Updated.
347         * src/devices/grohtml/html-text.h (tag_definition): New variable
348         `really_issued'.
349         (html_text): New member function `uses_indent', `remove_para_space',
350         `get_alignment'.
352         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
353         function.
354         (simple_output:nl): Always emit `\n'.
356         * src/devices/grohtml/post-html.cpp: Include `string.h'.
357         (BASE_POINT_SIZE): Removed.
358         (base_point_size, head_info): New global variables.
359         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
360         `is_eo_h'.
361         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
362         tags, respectively.
363         (page::add_and_encode): Pass additional parameter for tag flag.
364         (assert_pos): New structure.
365         (assert_state): New class.
366         (html_printer): Remove `indentation', `prev_indent'.
367         Add variables `troff_indent', `device_indent', `temp_indent'.
368         Add variables `seen_indent', `next_indent', `seen_pageoffset',
369         `next_pageoffset', `seen_linelenght', `next_linelength',
370         `seen_center', `next_center', `seen_space', `seen_break', `as'.
371         Add member functions `do_check_center', `do_space', `do_head',
372         `get_troff_indent', `restore_troff_indent', `handle_assertion',
373         `handle_state_assertion', `do_end_para', `set_char_and_width'.
374         Change argument to `do_fill' to `char *'.
375         Update constructor.
376         (html_printer::emit_raw): Call `shutdown_table'.
377         Use new functions.
378         (html_printer::do_center): Simplified.
379         (html_printer::do_title): Improved.
380         (html_printer::write_header): Emit one more newline.
381         Use new functions.
382         (html_printer::do_heading, html_printer::do_indent,
383         html_printer::do_eol, html_printer::do_tab_ts,
384         html_printer::do_tab, html_printer::do_tab0,
385         html_printer::calc_po_in, html_printer::next_horiz_pos,
386         html_printer::remove_courier_tabs,
387         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
388         Updated.
389         (html_printer::do_linelength, html_printer::do_pageoffset,
390         html_printer::do_indentation, html_printer::do_tempindent,
391         html_printer::do_tab_te): Simplified.
392         (html_printer::do_pointsize): Check whether point size is really
393         associated a `.tl' tag.
394         (html_printer::do_break): Rewritten.
395         (html_printer::troff_tag): Improved.
396         (html_printer::flush_globs): Updated.
397         (html_printer::lookahead_for_tables): Handle `is_br'.
398         Use new functions.
399         (html_printer::set_char): Check `sbuf_style.f'.
400         (html_printer::write_navigation): Use string comparison.
401         (html_printer::~html_printer): Emit `head_info'.
402         (html_printer::special): Rewritten.
403         (get_str, make_val): New functions.
404         (main): New option `s' to set the base point size.
406         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
408 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
410         * src/roff/troff/node.cpp: New extern `debug_state'.
411         Include `stringclass.h' and `mtsm.h'.
412         Implement new classes and class members from `node.h'.
413         (real_output_file): Make `fp' public.
414         (troff_output_file): New variables `cur_div_level' and `tag_list'.
415         Update constructors.
416         (troff_output_file::really_print_line): Check whether we should push
417         the current troff state and use the state at the start of the
418         invocation of this diversion.
419         (troff_output_file::add_to_tag_list): New member function.
420         (node::add_char): Handle `glyph_comp_np'.
422         * src/roff/troff/node.h: Include `mtsm.h'.
423         (node): New variables `state', `push_state', `div_nest_level',
424         `is_special'.  Update constructors, all descendants.
425         Pass additional argument to `add_char' member function.
426         New virtual member functions `is_tag', `debug_node',
427         `debug_node_list'.  Update all descendants.
428         (tag_node): New class for handling tags.
429         (output_file): Add variable `state'.
431 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
433         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
434         providing a minimal troff state machine to emit meta tags for the
435         post-grohtml device driver.
437         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
438         files.
440 2004-10-09  Werner LEMBERG  <wl@gnu.org>
442         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
444 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
446         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
448         * src/roff/troff/div.h: Include `mtsm.h'.
449         (diversion): New variables `any_chars_added', `needs_push',
450         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
451         `saved_suppress_next_eol', `modified_tag'.
452         New virtual member function `is_diversion'.  Update all descendants.
454         * src/roff/troff/div.cpp (diversion::diversion,
455         macro_diversion::macro_diversion): Updated.
456         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
457         `suppress_next_eol'.
458         (top_level_diversion::space): Handle `curenv->seen_space'.
459         (page_offset): Update tag handling.
460         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
462         * src/roff/troff/env.h (environment): Make `tabs' public.
463         Remove `ignore_next_eol', `emitted_node'.
464         Update `output_line', `output'.
465         New variables `seen_space', `seen_eol', `suppress_next_eol',
466         `seen_break'.
467         New member functions `construct_state', `make_tag',
468         `construct_format_state, `construct_new_line_state,
469         `dump_troff_state'.
470         Remove `add_html_tag', `make_html_tag'.
472         * src/roff/troff/env.cpp: New externs `suppress_push',
473         `get_diversion_state', `global_diverted_space'.
474         (pending_output_line): New variable `was_centered'.
475         Update constructor and all callers.
476         (pending_output_line::output): Call `curenv->construct_format_state'.
477         (environment::environment, environment::copy): Updated.
478         (environment::output): Handle `was_centered'.
479         (environment::add_char): Handle construct and diversion state.
480         (environment::add_node): Handle construct state.
481         (environment::newline): Handle `was_centered'.
482         (environment::output_line): Updated.
483         (environment::possibly_break_line): Updated.
484         Update tag handling.
485         (environment::add_html_tag): Replaced with...
486         (environment::make_tag): New function.
487         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
488         (environment::dump_troff_state): New debugging function.
489         (environment::construct_state, environment::construct_format_state,
490         environment::construct_new_line_state): New functions.
491         (environment::do_break): Updated.
492         Handle `global_diverted_space'.
493         (environment::handle_tag): Update tag handling.
494         (point_size, fill, do_break_request): Don't call `add_html_tag'.
495         (no_fill): Don't call `add_html_tag'.
496         Set `suppress_next_eol'.
497         (center, right_justify, line_length, indent, temporary_indent,
498         set_tabs):
499         Update tag handling.
501         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
502         (input_iterator): New variables `is_diversion', `diversion_state'.
503         Update constructors.
504         (input_stack): New member functions `get_div_level',
505         `get_diversion_state', `check_end_diversion'.
506         New variables `div_level', `diversion_state'.  Initialize them.
507         (suppress_push, global_diverted_space): New global variables.
508         (input_stack::finish_get, input_stack::finish_peek,
509         input_stack::remove_boundary, input_stack::end_file,
510         input_stack::clear, input_stack::pop_macro): Call
511         `check_end_diversion'.
512         (input_stack::push): Handle `div_level' and `diversion_state'.
513         (get_diversion_state): New function.
514         (diverted_space_node::reread): Handle `global_diverted_space'.
515         (macro::macro): Update constructors.
516         (macro::is_diversion): New function.
517         (macro::operator=): Set `is_a_diversion'.
518         (string_iterator): New member function `is_diversion'.
519         (string_iterator::string_iterator): Update constructors.
520         (string_iterator::fill): Set `div_nest_level'.
521         (macro_iterator): New member function `is_diversion'.
522         (do_if_request): Handle `suppress_push'.
523         (tag, taga): New functions.
524         (init_input_requests): Add `tag' and `taga' requests.
526 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
528         * src/include/font.h (font): New member function
529         `get_image_generator'.
530         New variables `unscaled_charwidths' and `image_generator'.
532         * src/libs/libgroff/font.cpp (font::get_width): Always return the
533         character's unscaled width if `font::unscaled_charwidths' is set.
534         (font::get_image_generator): New function.
535         (font::load_desc): Check the `unscaled_charwidths' and
536         `image_generator' keywords.
538         * src/libs/libgroff/fontfile.cpp: Initialize
539         `font::unscaled_charwidths' and `font::image_generator'.
541         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
543         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
545         * man/groff_font.man: Document `unscaled_charwidths' and
546         `image_generator'.
548         * src/preproc/html/pre-html.cpp: Include `device.h'.
549         (image_gen): New global variable.
550         (imageList::createPage): Use `image_gen'.
551         (main): Use `image_generator' keyword.
553 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
555         * tmac/html.tmac: Handle \[sqrtex].
557 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
559         * src/include/printer.h (printer): New virtual method `round_width'.
561         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
562         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
563         src/devices/grotty/tty.cpp (printer::round_width): New function
564         member.
566         * src/devices/grohtml/post-html.cpp (printer::round_width): New
567         function member.
568         (html_printer::set_numbered_char): Use it.
570 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
572         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
574         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
576         * configure: Regenerated.
578         * Makefile.in (GHOSTSCRIPT): New variable.
579         (MDEFINES): Add GHOSTSCRIPT.
581 2004-10-03  Werner LEMBERG  <wl@gnu.org>
583         * INSTALL.gen: Updated (taken from texinfo CVS).
585 2004-09-28  Werner LEMBERG  <wl@gnu.org>
587         * NEWS: Updated.
589 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
591         * tmac/groff_www.man: Revised and updated.
593 2004-09-26  Werner LEMBERG  <wl@gnu.org>
595         Fix \$@ and \$* to handle any number of arguments.
597         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
598         characters.
600         * src/roff/troff/input.cpp (input_iterator::internal_level):
601         Removed.
602         (input_stack): New member functions `increase_level' and
603         `decrease_level'.
604         (input_stack::get_level): Don't use `internal_level'.
605         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
606         (end_quote_iterator): Completely removed.
607         (interpolate_arg): Build string for \$@ and \$* which is then
608         pushed onto the input stack.
610 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
612         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
613         2004-09-19.
615 2004-09-23  Werner LEMBERG  <wl@gnu.org>
617         * tmac/an-old.tmac (ne): Using default scaling operator.
619 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
621         This change implements the following features:
623         PORPHANS
624           New numeric register: Defines number of lines following LP, PP,
625           QP, IP or XP, which must be kept together, before any automatic
626           page break.  If insufficient space remains on the current page, a
627           page break is forced before the new paragraph begins.
629         HORPHANS
630           New numeric register: Sets number of lines of following paragraph
631           which must be kept with a heading, defined by NH or SH, before any
632           automatic page break.  If insufficient space remains on the
633           current page, a page break is forced before the heading.
635         GROWPS
636           (Thanks to Joerg van den Hoff, for this idea).
638           New numeric register: Sets the first level of heading (set with
639           NH), which will keep the same point size as body text; e.g. if
640           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
641           point size specified by \n[PS], but .NH 2 and .NH 1 will have
642           progressively larger point sizes, determined by \n[PSINCR] (see
643           below).
645         PSINCR
646           New numeric register: Sets the point size increment for each level
647           of heading, (set with NH), below the threshold level set by
648           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
649           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
650           and all other levels will remain at 10pt, (because \n[PS] = 10).
652         SH
653           Existing macro now accepts a numeric argument, to make heading
654           size match that of NH with same argument value, when the
655           GROWPS/PSINCR feature is enabled.
657         SN-DOT
658           New string, set by NH macro, replaces the existing (undocumented)
659           use of SN, to represent the assigned section number.
661         SN-NO-DOT
662           New string, set by NH macro, represents the assigned section
663           number, but omits the terminal period (periods at intermediate
664           levels are retained).
666         SN
667           String set by NH macro, originally undocumented, now implemented
668           as an alias for SN-DOT (which reproduces original behaviour).
670         * tmac/s.tmac (PORPHANS): New register.
671         (par*start): Use it.
672         (HORPHANS, GROWPS, PSINCR): New registers.
673         (SH-NO-TAG, @SH): Use them.
674         (@NH): Improved.
676 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
678         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
679         of `Ds' and `De' macros.
681 2004-09-10  Werner LEMBERG  <wl@gnu.org>
683         In tbl, handle \a as an interpreted leader character if in
684         compatibility mode.
686         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
687         LEADER_CHAR): New macros.
688         (compatible_flag): New declaration.
690         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
691         LEADER_3, and LEADER_4 to `state'.
692         (table_input::get): Handle `\a'.
694         * src/preproc/tbl/table.cpp (PREFIX): Removed.
695         (LEADER_REG): New macro.
696         (table::init_output): Define LEADER_REG string register if in
697         compatibility mode.
699         * src/preproc/tbl/tbl.man: Document it.
701 2004-08-18  Werner LEMBERG  <wl@gnu.org>
703         * tmac/doc.tmac (An): Fix error message.
705 2004-08-06  Werner LEMBERG  <wl@gnu.org>
707         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
708         file can't be opened.  UNIX tbl has the same behaviour.
710 2004-08-05  Y T  <doarhop@hotmail.com>
712         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
713         (DBRead): If in compatibility mode, take into account the text
714         when computing figure boundaries.
716 2004-08-05  Werner LEMBERG  <wl@gnu.org>
718         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
719         from Tadziu Hoffmann.
721 2004-08-03  Werner LEMBERG  <wl@gnu.org>
723         * doc/meref.me: Document `_M' register.
725 2004-08-03  Martin Husemann  <martin@duskware.de>
727         Make hpftodit work correctly on big-endian systems.
729         * src/utils/hpftodit/hpftodit.cpp (File): New method
730         `get_uint32(char *)'.
731         (entry): New member `orig_value'.
732         (read_tags): Use new method.
733         (output_font_name, read_and_output_pcltypeface, dump_ascii):
734         Updated.
736 2004-08-01  Werner LEMBERG  <wl@gnu.org>
738         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
739         are already in X11's `macros.t' file.
741 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
743         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
744         Fix casting bug.
745         (read_and_output_pcltypeface): Handle strings with length <= 4.
747 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
749         * tmac/s.tmac (pg@top): Don't save `PO' register.
750         (pg*end-col, pg*end-page): Directly use `PO' register.
752 2004-07-27  Werner LEMBERG  <wl@gnu.org>
754         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
756         * src/preproc/refer/refer.cpp (output_references): Check for
757         empty hash table.
758         * src/preproc/refer/refer.man: Improve documentation of
759         `bibliography' command.
761 2004-07-26  Werner LEMBERG  <wl@gnu.org>
763         Add requests `fcolor' and `gcolor'.
765         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
766         New functions.
767         (init_env_requests): Add `fcolor' and `gcolor'.
769         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
771         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
772         Document new requests.
774 2004-07-24  Werner LEMBERG  <wl@gnu.org>
776         Add support for fractional point sizes in ms macros.  A value for
777         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
778         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
780         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
781         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
783         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
785 2004-07-19  Werner LEMBERG  <wl@gnu.org>
787         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
788         Update constructor.
789         (do_for, for_input::get, for_input::peek): Handle negative `by'.
790         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
792 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
794         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
795         * tmac/groff_mdoc.man: Updated.
797 2004-07-05  Werner LEMBERG  <wl@gnu.org>
799         * doc/groff.texinfo: Further improve documentation of `hcode'.
801 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
803         Improve appearance of arrows in pic.
805         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
806         arrow head thin.
807         Use two line segments for drawing non-filled arrow head.
808         (line_object::print, spline_object::print): Shorten line length to
809         avoid arrow sticking.
810         (arc_object::print): Take arrow direction into account.
812 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
814         * tmac/groff_www.man: Update documentation of .MPIMG.
816 2004-07-03  Werner LEMBERG  <wl@gnu.org>
818         * tmac/an-old.tmac (RI): Always start with font `R'.
819         (RI, IR): Properly end with font `R'.
821 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
823         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
824         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
825         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
826         Don't pass more than six arguments to .R, .I, .B, etc., for
827         compatibility with traditional troff macros.
829 2004-07-02  Werner LEMBERG  <wl@gnu.org>
831         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
832         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
833         Update all users.
834         (PUSH_COMP_MODE): New internal character constant.
835         Update all users.
837         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
838         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
839         (token::next, macro::append): Handle PUSH_COMP_MODE.
840         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
841         POP_GROFFCOMP after each of the decoded arguments to make them
842         independent from the compatibility mode status.
843         (comp_mode): Add `COMP_ENABLE'.
844         (do_define_string, do_define_macro): Handle COMP_ENABLE.
845         (define_string, append_string, define_macro, define_indirect_macro,
846         append_macro, append_indirect_macro): Handle `compatible_flag'.
847         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
849         * man/groff_diff.man, doc/groff.texinfo: Updated.
851 2004-07-01  Werner LEMBERG  <wl@gnu.org>
853         * doc/groff.texinfo: Improve documentation of `hcode'.
854         Use @documentencoding and convert document to latin-1; to do that
855         make latin characters active and assign proper macros (within a
856         @tex...@end tex environment).
857         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
858         * doc/Makefile.sub (groff): Ditto.
860 2004-06-29  Werner LEMBERG  <wl@gnu.org>
862         Implement two new conditional operators `F <name>' and `S <name>'
863         which check whether <name> is a valid font or style, respectively.
865         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
866         (text_file::text_file): Updated.
867         (text_file::error): Don't emit message if `silent' is set.
868         (font::load_font): Add optional third argument (which is directly
869         passed to `load'.
870         (font::load): Add optional second argument to check the header of
871         a font only, without emitting warning or error messages.
872         * src/include/font.h (font): Updated.
874         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
875         conditionals.
876         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
877         fourth argument to check a font without mounting.
878         (check_font, check_style): New functions.
879         * src/roff/troff/node.h: Updated.
881         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
882         Updated.
884 2004-06-27  Werner LEMBERG  <wl@gnu.org>
886         Implement new string-valued register `.sty' to return the current
887         style name.
889         * env.cpp (environment::get_style_name_string): New function.
890         (init_env_requests): Add `.sty' register.
891         * env.h (environment): Updated.
892         * node.cpp (font_info): Make `get_style_name' a friend.
893         (get_style_name): New function.
894         * node.h: Updated.
896         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
897         Updated.
899 2004-06-15  Werner LEMBERG  <wl@gnu.org>
901         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
902         `nospaces' option.
904 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
906         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
907         and \n[mo] to avoid dependency on current date.
909 2004-06-08  Werner LEMBERG  <wl@gnu.org>
911         * Makefile.sub (install_data): New target.
913 2004-06-04  Werner LEMBERG  <wl@gnu.org>
915         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
917 2004-06-03  Werner LEMBERG  <wl@gnu.org>
919         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
920         order of libraries.
921         (install_data): Add $(srcdir).
923         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
924         libraries.
926 2004-06-02  Werner LEMBERG  <wl@gnu.org>
928         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
929         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
930         Add test for Xmu library.
931         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
932         GROFF_APPRESDIR_DEFAULT): New macros.
934         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
935         and GROFF_APPRESDIR_DEFAULT.
937         * configure: Regenerated.
939         * Makefile.in (appresdir): New variable.
940         (MDEFINES): Add appresdir.
942         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
943         -Xt.
944         (install_data, uninstall_sub): New targets to handle GXditview.ad.
946         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
947         `$(srcdir)/eign', not `eign'.
949         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
951         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
952         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
953         Protect (g)xditview with `\%' to avoid hyphenation.
954         Other minor formatting.
956 2004-06-01  Werner LEMBERG  <wl@gnu.org>
958         Integrate gxditview into groff's standard directory hierarchy.
960         * src/xditview/*: Moved to ...
961         * src/devices/xditview/*: Here.
962         Moved DviChar.h and XFontName.h to src/include.
963         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
964         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
965         Moved xtotroff.c to new directory src/utils/xtotroff.
966         Provide proper Makefile.sub files (reusing the stuff from
967         Imakefile.in).
968         DESC renamed to DESC.in.
969         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
970         Converted everything from K&R to ANSI C.
971         Decorated with const where appropriate.
972         Cast string constants with `String' and `char *' where appropriate.
973         Made it compile with C++ (used as a C compiler).
974         Removed other minor compiler warnings.
976         * src/devices/xditview/device.c: Include config.h, string.h, and
977         defs.h.
978         Don't declare `exit', `strtok', `strchr', and `getenv'.
979         (FONTPATH): Remove.
981         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
982         `XFormatFontName'.
984         * src/devices/xditview/xditview.c: Include config.h.
985         Include stdio.h earlier.
986         Protect declaration of `popen' and `pclose' with
987         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
988         Replace `caddr_t' with `XtPointer'.
989         (MakePromptFunc): New typedef.
990         (DoPrint): Use RETSIGTYPE.
991         (promptfunction): Change type to MakePromptFunc.
992         (MakePrompt): Use MakePromptFunc for third argument.
993         (xmalloc): Removed.
995         * src/devices/xditview/ad2c: Add casts to `String'.
997         * src/include/XFontName.h (XFontNameString): Don't use array
998         notation.
999         Add prototypes for `XParseFontName', `XFormatFontName',
1000         `XCompareFontName', and `XCopyFontName'.
1002         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1003         `XFontName.h'.
1005         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1006         Don't declare `XParseFontName' and `XFormatFontName'.
1007         (xmalloc): Removed.
1008         (main): Remove `optind' and `optarg'.
1010         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1011         (to select programs which need X).
1012         Make XDEVIDIRS depend on `FORCE'.
1013         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1014         X support).
1015         (MDEFINES): Updated.
1016         (LIBDIRS): Use XLIBDIRS.
1017         (CPROGDIRS): Use XPROGDIRS.
1018         (DEVDIRS): Remove font directories for gxditview.
1019         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1020         (EXTRADIRS): Remove src/xditview.
1022         * Makefile.sub (DISCLEANFILES): Updated.
1024         * Makefile.comm (LIBXUTIL): New variable.
1025         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1026         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1028         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1030         * aclocal.m4 (GROFF_X11): New function.
1032         * configure.ac: Call GROFF_X11.
1033         Don't create src/xditview/Imakefile.
1034         Don't emit notice how to build gxditview.
1036         * configure: Regenerated.
1038         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1040 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1042         * Makefile.in (CPPFLAGS): Define.
1043         (MDEFINES): Add CPPFLAGS.
1045 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1047         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1049 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1051         Fix problems with `friend name injections'.
1053         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1054         make_script_box), src/roff/troff/div.h (end_diversions),
1055         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1056         change 2004-04-08.
1058 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1060         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1062 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1064         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1065         src/libs/libgroff/color.cpp: Include lib.h.
1067 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1069         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1070         through Forte 6u1, and for how to get GNU make on Solaris.
1072 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1074         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1075         by Paul Eggert.
1077 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1079         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1080         rule.
1082 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1084         * REVISION: Set to 2.
1086         * aclocal.m4 (GROFF_STDINT_H): Removed.
1087         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1089         * configure.ac: Updated.
1090         * configure, src/include/config.hin: Regenerated.
1092         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1093         inttypes.h conditionally.
1095 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1097 Version 1.19.1 released
1098 =======================
1100 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1102         * src/preproc/refer/label.y (same_author_last_name,
1103         same_author_name): Handle empty sort keys.
1105 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1107         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1108         tmac/TODO: Updated.
1110         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1111         doc-str-Lb-librt): Reset font.
1112         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1113         Provide `doc-str-Lb' to reset font.
1114         * tmac/groff_mdoc.man: Updated.
1116 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1118         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1119         snprintf versions which don't conform to ANSI C 99 (this is,
1120         counting the string's trailing null byte in the return value).
1122 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1124         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1125         that all implementations of sprintf handle null pointers correctly.
1127 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1129         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1130         Document `.U' register.
1132         * src/roff/troff/env.cpp (environment::mark_last_line)
1133         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1135 2004-05-04  Larry Kollar  <kollar@alltel.net>
1137         New read-only register `.U'; it returns 1 in safer mode and 0
1138         otherwise.
1140         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1141         register.
1143 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1145         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1147 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1149         * src/include/font.h (font): Use `int' for ch_index.
1150         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1151         font::compact): Updated.
1153         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1154         warnings.
1156         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1157         (hyphen_word): Fix compiler warnings.
1158         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1159         `char'.
1160         Update all callers.
1161         (get_delim_number, get_line_arg): Change second argument type to
1162         `unsigned char'.
1163         (macro_header::copy, token::next, do_define_string,
1164         do_define_character, substring_request, asciify_macro,
1165         unformat_macro, read_size, non_interpreted_node::interpret,
1166         while_request, main: Fix compiler warnings.
1167         (read_color_draw_node): Initialize `col'.
1169         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1170         `start_col' and `end_col' of type `int'.
1171         (vertical_rule): Make `col' of type `int'.
1173         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1174         for EOF.
1176         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1177         New arrays.
1178         (format_serial): Use them to remove dependency on ASCII.
1180         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1181         compiler warning.
1182         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1183         Ditto.
1185         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1186         compiler warnings.
1187         (glyph): Change type of `hpos' to `int'.
1189         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1190         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1192         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1194         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1196 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1198         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1199         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1200         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1201         `double' instead of `float' everywhere.
1202         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1203         everywhere.
1204         (main): Add return value.
1205         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1206         everywhere.
1207         Update all user functions.
1209         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1210         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1211         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1212         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1213         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1214         src/roff/troff/input.cpp, src/roff/troff/request.h,
1215         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1216         declarations.
1218         * src/utils/indxbib/signal.c: Include stdlib.h.
1220 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1222         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1223         before the first page.
1225 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1227         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1228         (doc-operating-system-*): Updated.
1229         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1230         (doc-str-Lb-*): Add more library names.
1232 2004-04-10  Art Haas  <ahaas@airmail.net>
1234         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1235         use anonymous type.
1237 2004-04-09  Art Haas  <ahaas@airmail.net>
1239         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1241 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1243         * arch/misc/shdeps.sh: Generate better comment for sed script.
1245 2004-04-08  Art Haas  <ahaas@airmail.net>
1247         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1248         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1249         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1250         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1251         (polyfill), src/preproc/grn/main.cpp (polyfill),
1252         src/preproc/refer/command.cpp (command_table),
1253         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1254         gcc 3.5 doesn't like).
1256 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1258         Removing many compiler warnings.  groff should now compile with
1259         a C++ compiler used for C files also.  [Simple variable renamings
1260         to avoid shadowing aren't logged in detail.]
1262         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1263         (draw_dvi_printer::draw) ['c']: Enclose in block.
1265         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1266         (page::add_line): Fix typos.
1267         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1269         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1270         Some local variable renamings.
1271         * src/devices/grolbp/lbp.h: Some local variable renamings.
1273         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1274         variable renamings.
1276         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1277         Remove redundant local variable declaration.
1278         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1279         Don't use `caddr_t' but `void *'.
1280         Enclose functions with `extern "C"' for C++.
1282         * src/libs/libdriver/input.cpp (remember_filename,
1283         remember_source_filename): Use cast for string constant.
1285         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1286         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1287         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1288         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1289         style.
1290         Enclose functions with `extern "C"' for C++.
1291         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1292         (needs_quoting): Return `int'.
1293         (quote_arg): Add proper casts to malloc and realloc.
1294         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1295         various MS Windows environments.
1296         (spawnvp_wrapper): Add proper cast to malloc.
1298         * src/preproc/eqn/box.h: Remove redundant declarations of
1299         `make_script_box', `make_mark_box' and `make_lineup_box'.
1300         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1301         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1302         variable renamings.
1304         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1305         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1306         (dx, dy): Renamed functions to...
1307         (deltax, deltay): This.
1308         * src/preproc/grn/main.cpp: Some local variable renamings.
1309         (deffont): Add `const'.
1310         (initpic, conv): Use cast for string constant.
1312         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1313         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1314         (char_buffer::run_output_filter): Second argument is unused.
1315         * src/preproc/html/pushback.cpp: Some local variable renamings.
1317         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1318         * src/preproc/pic/object.cpp: Some local variable renamings.
1320         * src/preproc/refer/label.y (lookup_label): Remove redundant
1321         declaration of local variable.
1323         * src/preproc/soelim.cpp: Remove redundant declaration of
1324         `interpret_lf_args'.
1326         * src/preproc/tbl/main.cpp: Some local variable renamings.
1328         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1329         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1330         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1331         Don't use C++-style comments.
1333         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1334         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1335         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1336         renamings.
1337         * src/roff/troff/div.h: Remove redundant declaration of
1338         `end_diversions'.
1339         * src/roff/troff/troff.h: Remove redundant declaration of
1340         `cleanup_and_exit'
1341         * src/roff/troff/input.cpp: Remove redundant declaration of
1342         `handle_first_page_transition' and `process_input_stack'.
1344         * src/utils/hpftodit.cpp: Some local variable renamings.
1346         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1347         for C++.
1348         Don't define RETSIGTYPE.
1349         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1351         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1352         (error): Use `const' in argument.
1353         (main): Remove redundant declaration of `optind'.
1354         Move declaration of `Version_string' to top-level.
1356         * PROBLEMS: Document difficulties compiling signal.c if a C++
1357         compiler is used for C.
1359 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1361         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1363 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1365         Make scripts like nroff.sh and neqn.sh portable across various
1366         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1367         non-POSIX path separators.  The idea is to extend those scripts to
1368         decide at run-time (of the script) which path separator to use.
1370         * arch/misc/Makefile.sub: New file.
1371         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1372         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1373         a proper definition of the variable `GROFF_RUNTIME'.
1375         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1376         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1377         (PROGDEPDIRS): New variable.
1378         `FORCE' it.
1379         (PROGDIRS): Add PROGDEPDIRS.
1381         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1382         Don't substitute @SEP@ and @BINDIR@.
1383         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1384         (PATH): Use GROFF_RUNTIME.
1386         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1387         Don't substitute @SEP@ and @BINDIR@.
1388         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1389         (PATH): Use GROFF_RUNTIME.
1391 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1393         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1394         Cygwin which doesn't handle stderr correctly.
1396 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1398         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1399         against empty argument.  Problem reported by <cgd@broadcom.com>.
1401 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1403         * Makefile.in (SEP): Replaced with...
1404         (RT_SEP, SH_SEP): Separators for the target platform's native path
1405         separator and the build environment, respectively.
1406         (fontpath, tmacpath): Use RT_SEP.
1407         (MDEFINES): Updated.
1409         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1410         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1411         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1412         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1414 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1416         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1417         reduce alignment problems with newer printers which use built-in
1418         TrueType fonts (instead of the older Intellifonts).  The ideal
1419         solution is to provide a second set of groff metric files, but this
1420         is extremely time-consuming to produce, given that HP's metric
1421         files are very rudimentary.
1423 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1425         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1426         s/operand/argument/ in error message.
1428 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1430         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1431         is in use.
1433 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1435         * tmac/s.tmac (XE): Fix error message.
1437 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1439         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1440         New macros.
1442         * src/roff/groff/pipeline.c: Declare strcasecmp.
1443         (run_pipeline) [_WIN32]: Use function name variants which don't
1444         start with `_'.
1445         Fix stream handling.
1447 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1449         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1450         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1451         for platforms which use the native Win32 runtime libraries.
1452         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1454         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1455         QUOTE_ARG_REALLOC_ERROR): Fix string.
1457         * src/preproc/html/pre-html.cpp: Remove declaration of
1458         `spawnvp_wrapper'.
1459         Don't use __MINGW32__.
1460         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1461         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1462         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1463         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1464         calls to `set_redirection' and `WAIT'.
1465         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1466         Fix calls to `set_redirection' and `save_and_redirect'.
1467         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1468         to `set_redirection' and `save_and_redirect'.
1469         (usage): Fix message.
1470         (makeTempFiles, main): Use `DEBUG_FILE'.
1472 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1474         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1476 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1478         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1479         quoting for MSVC's spawn* and exec* functions.
1480         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1481         spawnvp with proper quoting for MSVC.
1483         * src/libs/libgroff/assert.cpp (program_name),
1484         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1485         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1487         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1489         * src/include/error.h (program_name): Declare as `extern "C"'.
1490         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1492 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1494         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1495         spawnvp_wrapper.
1496         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1498 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1500         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1501         variable.
1502         (sbasename) [__MSDOS__ || ...]: New function.
1503         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1504         generic algorithm.
1505         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1506         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1507         of XXX.
1508         Use STDOUT_FILENO instead of hardcoded file handle.
1509         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1511 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1513         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1514         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1516 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1518         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1519         new font and mapping files.
1521 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1522             Keith Marshall  <keith.d.marshall@ntlworld.com>
1524         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1525         an input pipe.  This is needed for the MSVC compiler to make troff's
1526         `-o' option work.
1528         * src/roff/troff/div.cpp: Include nonposix.h.
1529         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1531 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1533         * font/devlj4/generate/special.awk: New script.
1534         * font/devlj4/generate/Makefile (S): Use special.awk.
1535         * font/devlj4/*: Regenerated, including the following new files:
1536         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1537         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1538         * NEWS: Document new lj4 fonts and revised hpftodit.
1540 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1542         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1544 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1546         * src/libs/libgroff/progname.cpp: Replaced with...
1547         * src/libs/libgroff/progname.c: New file.
1548         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1550 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1552         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1554 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1556         * font/devlj4/generate/wingdings.map,
1557         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1558         Use groff glyph names where possible.
1559         * src/devices/grolj4/lj4_font.man: Minor updates.
1561 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1563         * tmac/www.tmac (DC): Handle TTY devices.
1565         * doc/webpage.ms: Document viewCVS from ffii.org.
1566         * NEWS, README: Updated.
1568         * src/roff/groff/groff.man: Mention lj4_font man page.
1570         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1571         variables.
1572         (FONTS): Add SYMBOL and WINGDINGS.
1573         (SYMBOL, WINGDINGS): New targets.
1575 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1577         * src/devices/grolj4/lj4_font.man: New man page.
1578         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1579         * src/devices/grolj4.man: Mention lj4_font man page.
1581         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1582         * src/utils/hpftodit/hpftodit.man: Document it.
1583         (CW): New macro.
1584         Remove details about fonts (which are now in lj4_font.man).
1586         * font/devlj4/generate/symbol.map,
1587         font/devlj4/generate/wingdings.map: New files.
1589 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1591         * README: Mention ffii's viewcvs access.
1593 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1595         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1597 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1599         Revert most of the change from 2004-01-03 to better control used
1600         symbol sets.
1602         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1603         (text_symbol_sets, special_symbol_sets): New arrays.
1604         (symbol_set_table): New global variable.
1605         (read_symbol_sets): Use search order given in the text_symbol_sets
1606         and special_symbol_sets arrays.  If command line flag -a is not
1607         given, search both arrays.
1608         (output_charset): Require x_height_tag only for command line flag -i.
1610 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1612         Implement string-valued registers \n[.m] and \n[.M] to return the
1613         name of the current drawing and background color, respectively.
1615         * src/roff/troff/symbol.h: Moved to...
1616         * src/include/symbol.h: Here.
1617         Small fixes to make it work outside of the `troff' directory.
1618         * src/roff/troff/symbol.cpp: Moved to...
1619         * src/libs/libgroff/symbol.cpp: Here.
1620         Small fixes to make it work outside of the `troff' directory.
1622         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1623         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1624         Updated.
1626         * src/include/color.h: Include symbol.h.
1627         (color): Add new field `nm'.
1628         * src/libs/libgroff/color.cpp (color::color): Updated.
1630         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1631         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1632         src/roff/troff/reg.cpp: Don't include symbol.h.
1634         * src/roff/troff/env.cpp: Don't include symbol.h.
1635         (environment::get_glyph_color_string,
1636         environment_get_fill_color_string): New member functions.
1637         (init_env_requests): Handle `.m' and `.M' registers.
1638         * src/roff/troff/input.cpp: Don't include symbol.h.
1639         (default_symbol): Moved to symbol.cpp/symbol.h.
1640         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1641         to color constructor.
1642         * src/roff/troff/env.h: Updated.
1644         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1645         Document new registers.
1647 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1649         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1650         space_node::nbreaks): Protect against zero `next' field.
1652 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1654         In hpftodit, use the symbol sets offered in the TFM.
1656         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1657         (symbol_set, text_symbol_sets, special_symbol_sets,
1658         symbol_set_table): Removed.
1659         (get_printcode): Removed.
1660         (read_symbol_sets): Initialize `symbol_set' field with
1661         `NO_SYMBOL_SET'.
1662         Simplify code to just use the `kind' value.
1663         (output_charset): Improve output formatting.
1664         (dump_symbols): Simplified.
1666 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1668         * font/devlj4/generate/text.map: Add more MSL numbers.
1670 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1672         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1673         (text_symbol_sets): Add more symbol sets.
1674         (debug_flag): New static variable (moved from `main').
1675         (get_printcode, show_symset): New functions.
1676         (main): Remove `debug_flag'.
1677         (output_charset): Use `show_symset'.
1678         (dump_symbols):  Use `show_symset'.
1679         Print symsets for all glyphs.
1680         (read_map): Actually call `unicode_to_ucode_make' but this time
1681         correctly.
1683 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1685         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1686         Fix placement of comments.
1688 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1690         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1691         option `-d' is given.
1692         (output_charset): Improve warning messages to give more information.
1693         (dump_symbols): Make information more precise.
1694         (usage): Updated.
1695         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1696         appear as-is and shouldn't be decomposed.
1698 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1700         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1701         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1702         (FONTS): Add TrueType font families Arial and Times New Roman.
1703         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1704         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1705         `fl'.
1707 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1709         * test-groff.in (SEP): Quote value.
1710         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1711         `tem' to `char*' to avoid deallocation of a pointer to a constant
1712         object which some compilers don't like.
1714 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1716         * font/devlj4/generate (text.map, special.map): Rewritten to work
1717         with the new hpftodit version.
1719 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1721         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1722         set and 8bit character code for all glyphs also.
1724 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1726         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1728 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1730         More fixes for MSVC compiler.
1732         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1733         $(SEP).
1735         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1736         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1737         (getpid) [_MSC_VER]: Remove.
1738         Include direct.h and process.h conditionally.
1740         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1741         parentheses for a_delete.
1743         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1745         * test-groff: Replaced with...
1746         * test-groff.in: This new template to handle path separator
1747         properly.
1749         * configure.ac: Check for direct.h and process.h.
1750         Generate test-groff script.
1751         * configure, src/include/config.hin: Regenerated.
1753 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1755         Add integral extension glyph.
1756         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1758         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1760         * font/devps/generate/textmap: Provide entry for `integralex' to
1761         override (old) PUA value of the AGL.
1762         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1763         * font/devps/*: Regenerated.
1765         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1766         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1768 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1770         Add forgotten `coproduct' symbol (already available for DVI).
1772         * font/devhtml/R.proto, font/devps/generate/textmap,
1773         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1774         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1775         U+2210 (\[coproduct]).
1777 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1779         hpftodit has been extended to handle TrueType metric files and
1780         more glyphs.  See hpftodit.man for more details.
1782         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1783         ctype.h, and unicode.h.
1784         s/msl/charcode/ everywhere since we now handle Unicode values also.
1785         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1786         Use it where appropriate.
1787         (MULTIPLIER): Replaced with...
1788         (multiplier): New global static variable.
1789         (scale): Updated.
1790         (tag_type): Add more TFM tags.
1791         (tag_name): New array.
1792         (ENUM_TYPE, FLOAT_TYPE): Removed.
1793         (BYTE_TYPE): New value assigned.
1794         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1795         (text_symbol_sets, special_symbol_sets): Extended to cover more
1796         sets.
1797         (check_type): Add return value.
1798         (check_units): Add parameters to get ppi and upem values.
1799         Handle TrueType TFM data.
1800         (output_font_name): New function.
1801         (output_charset): Add parameter to handle TFM type.
1802         Handle TrueType TFMs also.
1803         (em_fract): New macro.
1804         (dump_tags): Be much more verbose and handle more tags.
1805         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1806         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1807         functions.
1808         (read_map): Add parameter to handle TFM type.
1809         Handle both MSL and Unicode mappings.
1810         (main): Add two new command line options `-a' and `-q'.
1811         Updated to make use of new functions.
1812         (usage): Updated.
1814         * src/utils/hpftodit/hpuni.cpp: New file.
1816         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1817         Updated.
1819 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1821         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1823 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1825         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1826         by Michail Vidiassov <master@iaas.msu.ru>.
1828 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1830         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1831         and u0049_0307.
1832         Add missing latin-2 glyphs.
1833         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1835         * tmac/troffrc: Load `composite.tmac' earlier.
1837         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1838         u00{53,73}_0327, and u0049_0307.
1839         * tmac/X.tmac: Add u00{47,67}_0306.
1840         * tmac/tty-char.tmac: Use composite glyph names for readability.
1842         * NEWS: Updated.
1844         * src/include/unicode.h: Remove `extern' keywords.
1846 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1848         * tmac/latin5.tmac: New file.
1850 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1852         Add some glyphs needed for Turkish.
1854         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1855         and u0049_0307.
1857         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1858         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1859         u00{53,73}_0327, and u0049_0307.
1861 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1863         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1864         from 2001-10-04.
1865         Remove trailing zeros.
1867 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1869         Make \? transparent to end-of-sentence recognition.
1871         * src/roff/troff/input.cc (non_interpreted_node): Add
1872         `ends_sentence' member function.
1874 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1876         * doc/groff.texinfo: Document `dt' request correctly.
1877         Other minor typographical improvements.
1879 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1881         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1883 2003-12-10  Richard Stallman  <rms@gnu.org>
1885         * LICENSE: Better wording.
1887 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1889         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1890         * configure, NEWS: Updated.
1892 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1894         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1896 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1898         * LICENSE: Updated.
1900 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1902         * INSTALL: Improved.
1904 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1906         Use path separator character of target platform for compiled-in
1907         default paths.
1909         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1910         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1911         * configure: Regenerated.
1912         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1914 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1916         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1917         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1919 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1921         * LICENSE: New file.
1923 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1925         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1926         ligatures present in AFM files since groff currently only
1927         understands some standard ligatures and nothing else.
1929 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1931         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1932         option -v is given.
1934         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1935         messages.
1936         Close stdout copy.
1937         Don't use Unix wait flags.
1939 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1941         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1942         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1943         src/roff/troff/uniuni.cpp: Moved to...
1944         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1945         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1946         src/libs/libgroff/uniuni.cpp: Here.
1948         * src/include/Makefile.sub.old (HDRS),
1949         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1950         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1952 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1954         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1955         `DEBUG_FILE'.
1956         Updated all users.
1958 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1960         * groff.texinfo: Document special behaviour of `.vs 0'.
1961         Improve documentation of `cflags' request.
1962         * NEWS: Updated.
1964 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1966         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1967         * font/devlj4/CORONET: Regenerated.
1969 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1971         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1972         if processing hyphenation patterns in traditional mode.
1973         Improve error messages.
1975 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1977         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1978         troff_output_file::put_char): Fix type of local variable `c'.
1980 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1982         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1983         declarations.
1984         (i_to_a): Removed.  libgroff already provides this function.
1985         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1987 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1989         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1990         HAVE_DECL_SYS_LIST.
1992 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1994         * COPYING: Use correct version.
1996 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1998         LynxOS 4.0.0 doesn't declare vfprintf.
2000         * configure.ac: Check for vfprintf.
2001         * configure: Regenerated.
2002         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2003         * src/include/config.hin: Regenerated.
2005 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2007         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2009         * configure.ac: Check for vsnprintf.
2010         * configure: Regenerated.
2011         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2012         `HAVE_VSNPRINTF'.
2013         * src/include/config.hin: Regenerated.
2015 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2017         * aclocal.m4: Updated syntax to autoconf 2.59.
2018         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2019         Don't check for gsos2.
2020         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2021         working abs_top_srcdir and abs_top_builddir.
2023         * configure.ac: Updated syntax to autoconf 2.59.
2024         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2025         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2026         * configure: Regenerated.
2028         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2029         s/@groff_top_builddir@/@abs_top_builddir@/.
2031         * src/roff/groff/pipeline.c (xstrsignal):
2032         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2034 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2036         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2037         make start angle smaller than end angle to circumvent a bug in tpic
2038         handling of some versions of dvipdfm (and dvipdfmx).
2040 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2042         * src/devices/grops/grops.man: Improve section on creating EPS.
2044 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2046         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2047         -P-pletter).
2049 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2051         * doc/groff.texinfo: Fix documentation of `.if'.
2053 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2055         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2056         the form `uniXXXX' also.
2058 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2060         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2061         contrib/pic2graph/pic2graph.sh: Implement secure management of
2062         temporary files.
2063         Pass `-P-pletter' to groff to avoid data outside of the converted
2064         area -- some versions of `convert' (for example 5.3.8) don't check
2065         the bounding box of the image but always use a fixed image size
2066         (letter paper format).
2067         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2068         contrib/pic2graph/pic2graph.man: Updated.
2070         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2072 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2074         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2075         troff_output::simple_ellipse, troff_output::simple_arc,
2076         troff_output::simple_line, troff_output::simple_spline,
2077         troff_output::simple_polygon): Insert a space before arguments.
2078         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2079         latter doesn't produce a node, so the following `.sp -1' would do
2080         the wrong thing.
2081         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2082         (and we don't have to care about compatibility mode).
2083         (troff_output::set_color, troff_output::reset_color): Don't emit
2084         `.sp -1' after \M and \m.
2086         * src/roff/troff/input.cpp (old_have_input): New global variable.
2087         (input_stack::get): Handle `old_have_input'.
2088         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2089         `trapping_blank_line' depending on `old_have_input', not
2090         `have_input'.
2092 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2094         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2095         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2096         default directory names for temporary files.
2097         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2099         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2100         [__MSDOS__] (run_pipeline): Honour environment variables.
2101         Don't use `tmpnam' but `tempnam' to work around messy
2102         implementation.
2104         * README.MinGW: New file.
2106 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2108         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2109         `(*t)->next' without testing validity of `*t'.
2110         (usage): Make it more readable.
2112 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2114         Make html device run under both MS-DOS and Win32.
2116         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2117         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2118         spawn or fork+exec has to be used, and whether parent must sleep
2119         until the child process terminates.  Used in
2120         `char_buffer::run_output_filter'.
2121         (copyofstdoutfd): Removed.
2122         (char_buffer): Replace `write_file_html' and `write_file_troff'
2123         member functions with `emit_troff_output' and `run_output_filter'.
2124         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2125         macros.
2126         (replaceFd): Replaced with...
2127         (set_redirection): New auxiliary function.
2128         (waitForChild): Replaced with...
2129         (save_and_redirect): New auxiliary function for.
2131         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2132         functions.
2134 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2136         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2137         (GROFF_LIBC): New function.
2138         * configure.ac: Call GROFF_LIBC.
2139         Check for `kill'.
2140         * configure: Regenerated.
2142         * src/include/lib.h: Handle __MINGW32__.
2143         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2144         Add macro for `pipe'.
2145         Define P_tmpdir.
2147         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2148         correctly.
2150         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2151         Implement.
2153 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2155         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2156         <chuq@chuq.com>.
2158         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2159         directory.
2161 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2163         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2164         src/roff/troff/input.cc (usage): Updated.
2166         * NEWS, doc/groff.texinfo: Updated.
2168 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2170         * src/libs/libgroff/searchpath.cpp
2171         (search_path::open_file_cautious): New function which also handles
2172         `-' as stdin and stdout depending on the access mode.
2173         * src/include/searchpath.h (search_path): Updated.
2175         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2176         * src/devices/grops/ps.h: Include `searchpath.h'.
2177         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2178         Open resource file with `include_search_path.open_file_cautious'.
2179         * src/devices/grops/grops.man: Document new `-I' switch.
2181         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2182         (main), src/devices/grolj4/lj4.cpp (main),
2183         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2185         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2186         Replaced with...
2187         (include_search_path): New global variable.
2188         (include_path_append): Removed.
2189         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2190         (do_file): Simplify, using new
2191         `include_search_path.open_file_cautious'.
2193         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2194         parameter.
2195         (main): Pass arguments to `-I' to both troff and devices.
2196         Improve handling of `-V'.
2197         * src/roff/groff/groff.man: Document changes to -I and -V.
2199         * src/roff/troff/input.cpp (include_search_path): New global
2200         variable.
2201         (next_file, source, ps_bbox_request, transparent_file,
2202         process_input_file): Use new
2203         `include_search_path.open_file_cautious'.
2204         (main) Handle `-I' switch.
2205         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2206         Use new `include_search_path.open_file_cautious'.
2207         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2208         * src/roff/troff/troff.man: Document new `-I' switch.
2210 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2212         Support multiple calls of .Lb in LIBRARY section.
2214         * tmac/doc-common (doc-in-library-section): New register.
2215         (doc-section-library): New string.
2216         (Sh): Set `doc-in-library-section'.
2217         (Rd): Updated.
2218         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2219         if in LIBRARY section.
2220         * tmac/doc.tmac (doc-save-global-vars): Updated.
2221         * NEWS, tmac/groff_mdoc.man: Updated.
2223 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2225         * tmac/doc-common (doc-default-operating-system): New variable.
2226         (Os): Use it.
2228 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2230         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2232 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2234         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2235         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2236         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2237         $(DEVFILES) are not empty.
2238         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2240 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2242         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2243         with parallel runs of `make'.
2245 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2247         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2248         insert SORT_SEP.  With certain combinations of sort specifications,
2249         refer sorted entries in the wrong order.  In particular, entries
2250         with a missing field should be be sorted before all entries that
2251         have that field, before refer looks to the next field.
2253 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2255         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2256         g++ linker is used.  Reported by Mark J. Reed
2257         <mark.reed@turner.com>.
2259 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2261         Add key character `x' to tbl which makes tbl call a user-defined
2262         macro on a table cell.
2264         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2265         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2266         `set_modifier' after printing the compatibility request.
2267         (set_modifier): Print call to `m->macro' if not empty.
2268         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2269         `macro'.
2270         (process_format): Implement cases `x' and `X'.
2271         * src/preproc/tbl/tbl.man, NEWS: Updated.
2273 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2275         * doc/groff.texinfo: Minor fixes.
2277 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2279         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2281 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2283         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2284         argument list to nothing if there is no file to match.  Use `ls' as
2285         a protection, similar to autoconf.
2287         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2288         empty argument lists.
2290         * doc/groff.texinfo: Improve documentation how vertical spacing
2291         and line breaks interact.
2292         Other minor fixes.
2294         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2296 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2298         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2299         EPS (using eps2eps or similar programs to compute the bounding box).
2301 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2303         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2304         * doc/texinfo.tex: Updated from texinfo 4.6.
2305         * README.CVS: From now on we need texinfo 4.6.
2307 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2309         Add requests `dei1' and `ami1' for completeness.
2311         * src/roff/troff/input.cc (calling_mode): Remove
2312         CALLING_DISABLE_COMP.
2313         (comp_mode): New enumeration.
2314         (do_define_string, define_string, define_nocomp_string,
2315         append_string, append_nocomp_string): Updated.
2316         (do_define_macro): Add third parameter.
2317         (define_macro, define_nocomp_macro, define_indirect_macro,
2318         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2319         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2320         functions.
2321         (ignore): Updated.
2322         (init_input_requests): Add `dei1' and `ami1'.
2324         * tmac/trace.tmac: Handle de1 and am1.
2325         (de): Improve tracing message.
2326         (am): Add missing `do'.
2327         (return): Use de1.
2329         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2330         Document new requests.
2332 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2334         Add option -G to .MPIMG to insert a gap between text and the image.
2336         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2337         www-finish-left-ll): Updated.
2338         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2339         (MPIMG): Make option -L and -R optional.
2340         Implement option -G.
2342 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2344         * src/devices/grohtml/post-html.cpp
2345         (html_printer::do_file_components): Don't use `stdout' as lvalue
2346         since it can be a macro.
2348 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2350         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2351         the corresponding test in aclocal.m4.
2353 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2355         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2356         names but RGB values directly.  Otherwise pnmtopng depends on
2357         an external file `rgb.txt' which maps colour names to values.
2359 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2361         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2362         * configure, src/include/config.hin: Regenerated.
2364         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2366 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2368         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2370 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2372         * *.man: Switch to non-compatibility mode temporarily if GNU
2373         syntax extensions are used in the particular man page.
2375         * PROBLEMS: Add solutions for SGR problems.
2377 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2379         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2380         used to change the drawing scheme.
2382         * src/devives/grotty/tty.cpp (bold_flag_option,
2383         underline_flag_option, italic_flag_option, reverse_flag_option,
2384         bold_underline_mode_option): New global variables.
2385         (update_options): New function.
2386         (tty_printer::special): Call update_options.
2387         (main): Don't set xxx_flag but xxx_flag_option, then call
2388         update_options.
2390 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2392         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2394         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2395         values.
2396         (hline_char, vline_char): New global variables.
2397         (tty_printer::tty_printer): Initialize them.
2398         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2399         horizontal and vertical lines.
2400         (crossings): New global array.
2401         (tty_printer::end_page): Use it to determine the proper crossing
2402         character for -Tutf8.
2404 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2406         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2407         (HTMLDOCFILES): Revert to `pic.html'.
2408         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2410 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2412         * doc/pic.ms: Improve documentation of absolute coordinates.
2413         Document absolute positioning of pictures.
2415         * NEWS: Add new pic capability.
2417 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2419         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2420         Rewritten.
2422 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2424         Implement support for dashed and dotted ellipses in pic.  Based on
2425         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2427         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2428         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2429         functions.  Ellipse arcs are approximated with circle arcs.
2430         * src/preproc/pic/common.h (common_output): Updated.
2431         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2432         functions.
2433         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2435         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2437 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2439         Make grotty work on platforms which have unsigned char as the
2440         default for char.  Based on a patch by Thomas Klausner
2441         <wiz@netbsd.org>.
2443         * src/devices/grotty/tty.cpp (schar): New typedef.
2444         Updated calls to declare_ptable and implement_ptable.
2445         (glyph): Use schar for back_color_idx and fore_color_idx.
2446         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2447         (tty_printer::tty_color, tty_printer::tty_printer,
2448         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2450 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2452         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2453         * src/roff/nroff/nroff.man: Updated.
2455 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2457         * NEWS, tmac/groff_www.man: Updated.
2458         * doc/Makefile.sub: Updated.
2460 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2462         Implement support for multiple HTML output files.
2464         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2465         -j command line option.
2467         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2468         global variables.
2469         (file): New fields `new_output_file', `require_links',
2470         `output_file_name'.
2471         (file::file): Updated.
2472         (files::set_file_name, files::set_links_required,
2473         files::are_links_required, files::is_new_output_file,
2474         files::file_name, files::next_file_name): New functions.
2475         (header_desc): New fields `no_of_level_one_headings',
2476         `header_filename'.
2477         (header_desc::header_desc): Updated.
2478         (header_desc::write_headings): Handle multiple files.
2479         (html_printer::write_header): Save file name in which header occurs.
2480         (html_printer::determine_header_level): Possibly split files on
2481         level one headings.
2482         (html_printer::do_links, html_printer::troff_tag): Updated.
2483         (html_printer::insert_split_file, html_printer::do_job_name,
2484         html_printer::emit_link, html_printer::write_navigation,
2485         html_printer::do_file_components): New functions.
2486         (html_printer::~html_printer): Handle multiple files.
2487         (main): Handle command line option `-j'.
2489         * src/devices/grohtml/grohtml.man: Updated.
2491         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2492         which splits file.
2494         * tmac/www.tmac (JOBNAME): New macro.
2495         * tmac/s.tmac (SH-NO-TAG): New macro.
2496         (@SH): Call SH-NO-TAG.
2497         (@NH): Updated.
2499 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2501         * tmac/groff_mdoc.man: Improve documentation of punctuation
2502         characters.
2504 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2506         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2508 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2510         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2512 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2514         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2515         after `/*' and `*/'.
2516         Fix spacing.
2517         (Fn, Fo): Reduce indentation in synopsis.
2519         * tmac/doc-common (doc-check-depth): New macro.
2520         (doc-end-macro, Sh, Ss): Use it.
2521         (Cd): Fix behaviour in synopsis.
2522         (In): Make it parsed and callable.
2523         If not in the synopsis, represent the C header file enclosed in
2524         angle brackets.
2525         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2526         Use minus, not hyphen.
2528         * tmc/groff_mdoc.man: Updated.
2530 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2532         Integrated grap2graph, contributed by Eric S. Raymond.
2534         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2535         New files.
2536         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2537         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2539 2003-07-01  Colin Watson  <cjwatson@debian.org>
2541         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2542         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2544 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2546         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2548 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2550         * doc/Makefile.sub (CLEANADD): Remove all files created by
2551         running `make groff.{pdf,dvi}'.
2553         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2554         src/xditview also.
2556 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2558         * Makefile.in (SHELL): Define as @SHELL@.
2559         (mkinstalldirs): Use $(SHELL).
2560         (MDEFINES): Add $(SHELL).
2561         * Makefile.comm (SHELL): Removed.
2563 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2565         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2566         The X11 documentation files use them.
2567         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2569 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2571         * tmac/e.tmac (@C): Handle .ad also.
2573 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2575         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2577         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2578         Assign `n' even here.  It is possible to construct a node
2579         immediately following an escape character:
2581           .di xx
2582           \?\\\?a
2583           .br
2584           .di
2585           .xx
2587 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2589         * README.WIN32: Removed.
2590         * MANIFEST: Updated.
2592 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2594         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2596 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2598         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2599         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2601 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2603         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2604         is done by the calling function.
2606 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2608         * tmac/X.tmac: Fix definition of `em'.
2610 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2612         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2613         argument.
2615 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2617         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2618         to make items work which consist only of a tag.
2620 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2622         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2623         aren't stretched in a tag (this can fail with unformatted boxes).
2624         Instead, insert a break and go back one line.
2626 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2628         * src/roff/troff/input.cc (return_macro_request): If called with
2629         argument pop macro twice.  We need this to trace `return'.
2631         * tmac/trace.tmac: Handle `return'.
2632         Fix typos.
2634         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2635         Document.
2637 2003-05-15  Larry Kollar  <kollar@alltel.net>
2639         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2640         registers `FPS', `FVS', and `FPD'.
2642 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2644         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2645         correctly.
2647 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2649         * tmac/groff_mdoc.man: Slight improvements.
2651 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2653         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2654         `doc-header-space' after header line if register `cR' is set.
2656 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2658         * TODO: Updated.
2660 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2662         * tmac/doc-common (Nd): Use \[em].
2664 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2666         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2667         doc-footer-space): Initialize to 0.5i.
2668         (doc-setup-page-layout): Don't set doc-header-space and
2669         doc-footer-space.
2671 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2673         * REVISION: Set to 1.
2675         * doc/pic.ms: Document possible problems with `figname'.
2677 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2679 Version 1.19 released
2680 =====================
2682         * VERSION: Set to 1.19.
2683         * REVISION: Set to 0.
2684         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2686         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2687         Define charset as `US-ASCII' in html output.
2689         * tmac/www.tmac (ULE): Add missing scaling indicator.
2691         * win32-diffs: Removed.
2693 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2695         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2696         `.da' and `.boxa'.
2697         Document how to insert discardable whitespace with `.ss'.
2699 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2701         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2702         work with plain TeX also.
2704         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2706 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2708         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2709         Use a loose DTD.
2711 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2713         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2714         vbox with positive height and zero depth if in TeX mode.
2716         * NEWS: Document glyph name changes for grodvi and grolj4.
2718 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2720         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2721         * doc/pic.ms: Fixed.
2723 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2725         HP-UX 10.20 has `snprintf' but it isn't declared.
2727         * configure.ac: Add declaration test for snprintf.
2728         * configure: Regenerated.
2729         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2730         * src/include/config.hin: Regenerated.
2732 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2734         Add keyword `figname' to pic, specifying the name of the picture
2735         box in TeX mode.  Based on a patch from William J Poser
2736         <wjposer@unagi.cis.upenn.edu>.
2738         * src/preproc/pic/pic.y: New token `FIGNAME'.
2739         (macro_name): New rule of type <str>.
2740         (placeless_element): Handle `FIGNAME'.
2741         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2742         * src/preproc/pic/main.cpp (graphname): New global variable.
2743         (do_picture): Initialize `graphname'.
2744         * src/preproc/pic/pic.h: Updated.
2745         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2746         `graphname'.
2747         Simplify TeX code.
2748         (tex_output::text): Beautify output.
2749         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2750         `shaded' and `outlined' unconditionally.
2751         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2752         Minor improvements.
2754         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2755         greater is necessary.
2757 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2759         Add option -r to soelim to avoid emission of `.lf' lines.
2760         Add option -t to produces TeX comment lines instead of `.lf' lines.
2762         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2763         and `tex_flag'.
2764         (usage): Updated.
2765         (main): Handle `-r' and `-t'.
2766         (set_location): Handle `raw_flag' and `tex_flag'.
2767         * src/preproc/soelim/soelim.man, NEWS: Updated.
2769 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2771         * tmac/hyphenex.sh: Replaced with...
2772         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2773         nightmares.
2775         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2776         if --quiet is used for the configure script.
2777         * configure: Regenerated.
2779 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2781         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2782         Add `const' to second argument.
2783         (html_printer::add_table_end): Add `const' to argument.
2784         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2785         `const' to arguments.
2786         * src/devices/grohtml/html-text.h: Updated.
2788         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2789         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2790         argument.
2792         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2793         cast for integer constant.
2795         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2796         (writeNbytes): Add `const' to first argument.
2797         (writeString): Add `const' to argument.
2798         (char_buffer::can_see): Add `const' to third argument.
2799         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2800         `const' to argument.
2801         * src/preproc/html/pushback.h: Updated.
2803         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2804         (include_path_append): Add `const' to argument.
2805         (do_file): Updated.
2807         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2808         for `value'.
2809         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2810         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2811         for `value'.
2812         (unicode_decompose_init::unicode_decompose_init): Updated.
2813         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2814         for `value'.
2815         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2816         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2817         argument.
2819         * tmac/hyphenex.sh: Make script more portable by using a here
2820         document.
2822 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2824         Renamed all `*.cc' files to `*.cpp'.
2825         Updated all configuration files, makefiles, and documentation.
2827 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2829         * tmac/hyphenex.sh: Slight improvements.
2831 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2833         * font/devascii/R.proto, font/devcp1037/R.proto,
2834         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2835         character slots with unnamed glyphs.
2837         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2838         (an-first): New global variable.
2839         (an-header): Emit vertical space between multiple man pages.
2841 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2843         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2844         values.
2846 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2848         * PROBLEMS: Revised.
2850 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2852         * doc/webpage.ms: Improved.
2854 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2856         Add register \n[.height] which returns the value of \H.
2857         Add register \n[.slant] which returns the value of \S.
2859         * src/roff/troff/env.cc (init_env_requests): Implement.
2860         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2861         Document.
2863 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2865         * tmac/html.tmac: Move some of the data into html-end.tmac.
2866         Remove most of the character translations for eqn since html fonts
2867         now cover those characters.
2868         Load www.tmac.
2869         * tmac/html-end.tmac: New file.
2870         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2871         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2872         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2874 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2876         * man/groff_out.man: Document negative values of `N' if -Thtml is
2877         used.
2879 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2881         * Makefile.comm (depend.temp): Check location of YTABC.
2883 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2885         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2886         binary path.
2887         (groff_bin_path): Rename to GROFF_BIN_PATH.
2888         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2889         * doc/Makefile.in (TROFFBIN): New variable for troff
2890         binary path.
2891         (GROFFBIN): New variable for groff binary path.
2892         (groff_bin_path): Rename to GROFF_BIN_PATH.
2893         (TROFF): Use TROFFBIN.
2894         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2895         * doc/Makefile.sub (GROFFBIN): New variable for groff
2896         binary path.
2897         (groff_bin_path): Rename to GROFF_BIN_PATH.
2898         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2900         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2901         with INSTALL_SCRIPT.
2902         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2903         * Makefile.dev (all): Depend on DEVSCRIPTS.
2904         (install_dev): Likewise.
2905         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2906         scripts.
2907         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2908         (DEVGENSCRIPTS): New variable to hold generated scripts.
2910 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2912         * src/libs/libdriver/input.cc (IntArray::operator[],
2913         IntArray::get_data): Remove meaningless `const' in return value.
2915         * README.CVS: New file.
2917 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2919         Check for stdint.h in C++, not in C.
2921         * aclocal.m4 (GROFF_STDINT_H): New function,
2922         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2923         AC_CHECK_HEADERS.
2924         * configure, src/include/config.hin: Regenerated.
2925         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2928         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2929         with a negative value, representing the width of the unbreakable
2930         space (only for -Thtml).  grohtml then converts this back to
2931         &nbsp; and uses the value of N as its width.
2933         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2934         unbreakable_space_node::tprint): Emit `N-<width>'.
2935         * src/include/printer.h (printer::set_numbered_char): Make it
2936         virtual.
2937         Make members `font_table' and `nfonts' protected instead of private.
2938         * src/devices/grohtml/post-html.cc
2939         (html_printer::set_numbered_char): New member function.
2942         * src/libs/libgroff/maxfilename.cc:
2943         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2945         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2946         emit word marker.
2948 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2950         * man/roff.man: Small fixes.
2952 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2954         Make groff independent from locale's numeric settings.
2956         * configure.ac: Check for `setlocale'.
2957         * configure, src/include/config.hin: Regenerated.
2959         * src/include/lib.h: Handle HAVE_SETLOCALE.
2961         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2962         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2963         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2966         * doc/groff.texinfo: Change dir category to `Typesetting'.
2967         (Man font macros): Mention that there is no space between arguments
2968         of .BI and friends.
2970         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2971         (*printer::change_color, *printer::change_fill_color): Add missing
2972         `const'.
2974 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2976         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2977         html_table::is_gap): Compute table widths after converting border
2978         positions to avoid rounding errors.
2980 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2982         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2983         `space_emitted' properly.
2985 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2987         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2988         (html_table::set_linelength): Don't add 1.
2989         (html_table::add_indent): Don't subtract 1.
2991         * tmac/html.tmac: Set default page offset to zero.
2993 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2995         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2997         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2998         unbreakable_space_node::tprint): New functions.
2999         (troff_output_file): Make space_char_hmotion_mode::tprint and
3000         unbreakable_space_node::tprint to friends.
3001         * src/roff/troff/node.h: Updated.
3003         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3004         in the HTML standard).
3006 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3008         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3009         Otherwise, the following code
3011           .di xxx
3012           .ps 10
3013           a
3014           .br
3015           .di
3016           x\*[xxx]
3018         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3019         font changes in diversions for -Thtml.
3021         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3022         `HTML-TAG'.
3023         (an-do-tag-html): Merge with ...
3024         (an-do-tag): This macro.
3025         Change code slightly to circumvent grohtml bug.
3026         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3028         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3029         html_table::is_gap): Round `width' properly.
3031         * tmac/html.tmac: Provide some default layout parameters for
3032         grohtml.
3034         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3035         command.
3037 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3039         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3041 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3043         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3044         defined.
3046 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3048         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3049         `.vs'.
3050         * doc/groff.texinfo: Updated.
3052 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3054         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3055         TOKEN_END_TRAP>: Reset `have_input'.
3057 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3059         * src/roff/groff/groff.man: Mention groff_trace man page.
3061 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3063         * Makefile.in (LIBEXT): New variable to indicate the file extension
3064         of library files.  Computed heuristically from $(OBJEXT).
3065         (MDEFINES): Add $(LIBEXT).
3066         * Makefile.lib, Makefile.comm: Use it.
3068         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3069         overlong lines into smaller chunks.
3070         (get_binary): New function.
3071         (main): Use them.
3072         * src/utils/pfbtops/pfbtops.man: Updated.
3074 2003-03-15  Colin Watson  <cjwatson@debian.org>
3076         * src/roff/groff/groff.man: Minor syntax fix.
3078 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3080         * src/devices/grops/ps.cc (ps_printer::media_set,
3081         ps_printer::~ps_printer): Handle zero paper width and length.
3083 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3085         Add options -p and -l to grodvi.
3087         * src/devices/grodvi/dvi.cc: Include paper.h.
3088         (landscape_flag, user_paper_length, user_paper_width): New global
3089         variables.
3090         (dvi_printer::begin_page): Emit `papersize' special.
3091         Set color after initialization of `cur_h' and `cur_v'.
3092         (main): Add options `-l' and `-p'.
3093         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3094         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3096         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3098 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3100         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3101         * man/groff_tmac.man: This man page.
3102         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3103         deprecated.
3105         * tmac/X.tmac: Don't load pspic.tmac.
3107 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3109         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3110         by Bernd Warken <bwarken@mayn.de>.
3112         * src/include/driver.h (pr): Removed.
3114         * src/libs/libdriver/input.cc (pr): New global variable.
3115         (do_file): Deallocate `pr'.
3116         * src/libs/libdriver/printer.cc (pr): Removed.
3118         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3119         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3120         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3121         (main): Don't delete `pr'.
3123 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3125         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3126         * tmac/papersize.tmac: New file.
3127         * tmac/troffrc: Include `papersize.tmac'.
3128         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3129         * tmac/an-old.tmac: Set LT to LL by default.
3131         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3132         doc/groff.texinfo: Updated.
3134         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3135         bug which caused all odd iso papers to have wrong dimensions.
3137         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3138         (main) <'p'>: Set `user_paper_width' also.
3139         (ps_printer::media_width, ps_printer::media_height): Use values
3140         given with option `-p'.
3142 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3144         * src/include/nonposix.h: Provide default for SET_BINARY.
3146         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3147         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3148         unconditionally.
3150         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3151         (main): Treat \r\n as \n.
3153 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3155         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3156         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3158 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3160         Added support to access more than 256 glyphs in Type 1 fonts.
3162         * src/devices/grops/ps.cc (subencoding): New structure.
3163         (style): Add `sub' field.
3164         Updated all users.
3165         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3166         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3167         functions.
3168         Updated all users.
3169         (ps_printer::set_char): Use `set_subencoding'.
3170         (make_subencoding_name): New function.
3171         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3172         (ps_printer::~ps_printer): Emit subencoding definitions.
3174         * src/devices/grops/psrm.cc (valid_input_table): New array to
3175         properly support EBCDIC.
3176         (white_space): Add `\f'.
3177         (ps_get_line): Change first argument to be of type `string &'.
3178         Updated all callers.
3179         This allows to get lines of arbitrary length.
3180         Use `valid_input_table'.
3181         Remove warning about non-conforming PS line length.  This seems
3182         not to be of great importance -- for example, dvips don't emit
3183         a warning either.
3184         (PS_LINE_MAX): Removed.
3185         (matches_comment): Change first argument to be of type `string &'.
3187         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3189         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3190         %AGL_to_unicode, %default_ligatures): New hash tables.
3191         Read all map entries.
3192         Add unencoded characters.
3193         Check for default ligatures if there are no `L' entries.
3194         Print all kern entries.
3195         Print all characters in charset.
3196         * src/utils/afmtodit/afmtodit.man: Updated.
3198         * font/devps/*: Regerated all fonts.
3200         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3201         of characters, just use `.trin'.  Otherwise the mapping depends
3202         on the font encoding.
3203         * tmac/ps.tmac: Add `fi' and `fl'.
3204         Improve `Fi' and `Fl'.
3205         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3206         * tmac/Xps.tmac: Fix `em'.
3208         * NEWS: Updated.
3210 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3212         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3213         `have_input'.
3215 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3217         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3219         * font/devps/generate/textmap: Remove entry `similarequal'.
3220         * font/devps/symbolmap: Updated.
3222 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3224         * src/libs/libgroff/font.cc (font::load): Fix error message for
3225         bad character type.
3227         * src/devices/grops/grops.man: Improve documentation of the -b
3228         flag.
3230         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3231         `ascii' and `cp1047'.
3233 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3235         Document composite glyphs and the `composite' request.
3237         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3239 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3241         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3242         * font/devdvi/*EC: Updated.
3244         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3245         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3246         * tmac/troffrc: Load `composite.tmac'.
3247         * tmac/Makefile.sub (NORMALFILES): Updated.
3249         * doc/groff.texinfo (Input Encodings): New section.
3250         * NEWS: Updated.
3252 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3254         * doc/texinfo.tex: New version 2003-02-11.06.
3256         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3257         * tmac/groff_mdoc.man: Fix description of `Dt'.
3259 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3261         * font/devps/prologue.ps: Fix for included Postscript that does
3262         a setpagedevice -- which is now safely ignored.
3264         * NEWS: Updated.
3266         * src/devices/grops/ps.cc: Now sets the page size in the generated
3267         document.  This is done in two ways: Via a %%-comment for gv and
3268         the like, and via a PageSize and setpagedevice for programs that
3269         understands Postscript proper, like ps2pdf.
3271         * src/devices/grops/ps.h: New broken-flag to avoid page size
3272         definition, if required.
3274         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3276         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3277         Not really necessary due to the fix in prologue.ps, but cleaner:
3278         Such information does not belong in an .eps file.
3280         * doc/Makefile.sub: See doc/Makefile.in.
3282 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3284         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3285         instead of P1 since the latter is broken in some versions of netpbm.
3286         * configure: Updated.
3288 2003-02-26  Larry Kollar  <kollar@alltel.net>
3290         Make man pages more customizable.
3292         * tmac/an-old.tmac (FT): New register holding footer distance from
3293         bottom.
3294         (HF): New string holding the default heading font.
3295         (TH): Handle registers `IN' and `SN' set on the command line.
3296         Use `FT'.
3297         (PT, BT): New strings to customize header and footer lines.
3298         (an-header, an-footer): Use them.
3299         (SH, SS): Use `HF'.
3300         * tmac/groff_man.man: Document changes.
3302         * doc/groff.texinfo: Document man changes.
3303         Document Ultrix extensions of man.
3305 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3307         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3308         `have_input' after changing back to old environment.
3310         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3311         function up to be defined before first call.  This is necessary to
3312         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3314         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3315         the default font directory also.  Based on a patch from James
3316         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3317         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3318         * src/utils/afmtodit/afmtodit.man: Document it.
3320         * NEWS: Updated.
3322         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3324 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3326         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3327         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3328         * configure.ac: Use it.
3329         * configure: Regenerated.
3330         * Makefile.in: Updated.
3332         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3333         (CLEANADD): Add www.tmac-sed.
3334         (pnmtops_nosetpage): Define default.
3335         (install_data): Handle www.tmac-sed and substitute
3336         @PNMTOPS_NOSETPAGE@.
3337         (stamp-sed): Add www.tmac.
3338         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3339         It now breaks URLs at suitable places.
3340         (www:substring_ok): New register set by...
3341         (www:@test_substring): New macro.
3342         (www:error): New alias to www-error.
3343         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3344         New macros.
3345         (URL): Use www:url_breaks.
3346         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3347         (CDS, CDE): New macros.
3349 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3351         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3352         buffer overflow.
3354 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3356         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3357         can be negative also.
3359         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3360         `int16'.
3361         (read_char_table): Avoid negative ascenders.
3362         (output_charset): Add cast.
3363         * font/devlj4/*: Regenerated.
3365         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3366         possible.
3368         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3369         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3370         of `<>'.
3371         * font/devdvi/*: Regenerated.
3373         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3374         normal width, while the previously used characters (U+2329 and
3375         U+232A) are classified as wide due to canonical equivalence with the
3376         CJK punctuation characters U+3008 and U+3009.
3378         * font/devutf8/R.proto: Updated.
3379         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3381         * man/groff_char.man: Simplify handling of table traps by
3382         introducing `start block' and `end block' macros.
3383         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3384         (DL): Make it work with Unix troff also.
3385         Fix code values of `la' and `ra'.
3387         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3389 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3391         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3392         New destructor, fixing a major memory leak.
3394 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3396         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3397         to be in conformance with Unicode 3.0 and newer.
3399         * font/devlj4/generate/text.map: Add `Eu'.
3400         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3401         * font/devlj4/S: Regenerated.
3403         * man/groff_char.man: Completely rewritten.
3405         * doc/groff.texinfo: Fix description of request and macro arguments.
3407 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3409         Valgrind fixes.
3411         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3412         Deallocate `columns' list.
3413         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3414         New destructor.
3415         (text_glob::text_glob_html, text_glob::text_glob_special,
3416         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3417         text_glob::text_glob_tag): Avoid memory leaks.
3418         (text_glob::remember_table): Free memory before reassigning.
3420 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3422         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3423         alias `hbar'), the Planck constant over two pi.
3425         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3426         `+e' for position 34.
3427         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3428         `u2662' and `u2661'.
3429         * font/devdvi/{MI,S}: Regenerated.
3430         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3431         * font/devlbp/*: Add `hbar' alias.
3432         * font/devlj4/generate/special.map: Ditto.
3433         * font/devlj4/S: Regenerated.
3434         * font/devps/generate/symbolchars: Add `+e'.
3435         * font/devps/generate/textmap: Fix PS name for `-h'.
3436         Add `hbar' alias.
3437         * font/devps/symbolmap: Regenerated.
3439         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3441         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3442         `-h', `hbar'.
3443         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3444         `-h'.
3446         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3447         `hbar'.
3448         * tmac/tty-char.tmac: Add `+e'.
3450 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3452         Another round trying to really fix problems with `have_input'.
3454         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3455         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3457         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3458         handling if both foreground and background colors are default.
3460         * doc/groff.texinfo (Debugging): Document .lf differences to
3461         AT&T troff.
3463 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3465         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3466         null-bytes in created string.
3468         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3469         alias_macro, lookup_request): Improve warning messages.
3471         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3472         not `strdup'.
3473         Free `last_image_filename'.
3475         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3476         `buffer'.
3477         (imageList::createPage, imageList::createImage): Use `free', not
3478         `a_delete'.
3479         (imageItem::~imageItem): Free `imageName'.
3480         (addRegDef): Use `strsave', not `strdup'.
3481         (get_resolution): Free `pathp'.
3483 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3485         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3486         to `dummy'.
3488 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3490         Add memory management for colors to deallocate unnamed colors
3491         properly.
3493         * src/include/color.h (color): New members `free_list' and `next'.
3494         New member functions `new' and `delete'.
3495         Add destructor.
3496         * src/libs/libgroff/color.cc: Implement it.
3498         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3499         for array size of new operator.
3501         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3502         redundant comparison.
3504         * src/roff/troff/input.cc (word_space_node::reread,
3505         hmotion_node::reread): Avoid warning about unused parameter.
3506         (reset_output_registers): Remove redundant parameter.
3507         (define_color): Undo change 2003-02-12.
3509         * src/roff/troff/reg.h: Updated.
3511         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3512         output_file::put_filename, real_output_file::really_put_filename,
3513         ascii_output_file::really_print_line,
3514         break_char_node::get_hyphen_list): Avoid warning about unused
3515         parameter.
3516         (suppress_node::tprint): Updated.
3518         * configure.ac: Check declaration for rand() and srand().
3519         * configure: Regenerated.
3521         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3522         conditionally.
3523         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3524         and srand().
3526         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3527         to avoid compiler warnings.
3529         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3530         unused.
3532         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3533         is unused.
3534         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3535         (unused) parameter.
3536         Updated all callers.
3538         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3539         is unused.
3540         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3541         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3543         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3544         Parameter is unused.
3545         (html_printer::add_table_end): Define parameter conditionally.
3546         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3547         is unused.
3549         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3550         (lbp_printer::set_char): Last parameter is unused.
3552         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3554 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3556         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3557         Make \D'f ...' move horizontally again for backwards compatibility.
3558         Replace it with \D'Fg ...' where appropriate to avoid dependency
3559         on horizontal resolution.
3561         * src/roff/troff/input.cc (do_get_long_name): New function.
3562         (get_long_name): Call it.
3564         (read_draw_node): Handle `\D'Fx ...' by calling ...
3565         (read_color_draw_node): New function.
3567         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3568         `end'.
3569         Pass it to `do_get_long_name' which is used instead of
3570         `get_long_name'.
3572         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3573         unnecessary value guard.
3574         (parse_D_command) <'f'>: Add horizontal shift.
3576         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3577         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3578         (FILL_MAX): Removed.
3580         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3581         Updated.
3583 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3585         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3586         do_zero_width): Push `\n' if closing delimiter is missing.
3588         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3589         <'F'>: Make \F non-transparent at the beginning of line.
3590         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3591         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3592         `have_input'.
3594         (define_color): Free color in case of reassignment.
3596         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3597         @DefescListEnd): Use @Var, not @var.
3598         Fix all calls.
3600         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3602         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3603         `shaded' and `outlined' arrays.
3604         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3605         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3606         Use strsave.
3607         (closed_object::set_fill_color): Ditto.
3608         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3609         instead of strdup.
3610         (troff_output::reset_color): Use a_delete instead of free.
3611         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3613 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3615         * doc/groff.texinfo: Improve documentation of `ad'.
3616         Document that \D'f...' is dependent on the horizontal resolution.
3617         * man/groff_diff.man: Improve documentation of \D'f...'.
3619         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3620         compensating \h'...' for \D'f ...' since the latter no longer moves
3621         current position.
3622         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3624 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3626         Improve error messages for `x F' (and `F') commands.
3628         * src/include/error.h: Add declaration for
3629         `current_source_filename'.
3630         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3631         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3632         parameter for source file string.
3633         Updated all callers.
3635         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3636         (remember_source_filename): New function.
3637         (parse_x_command <'F'>, do_file <'F'>): Use it.
3639 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3641         Make grotty not emit warnings about unknown colors more than
3642         necessary.
3644         * src/devices/grotty/tty.cc: Include `ptable.h'.
3645         (TTY_MAX_COLORS): Removed.
3646         (DEFAULT_COLOR_IDX): Defined to -1.
3647         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3648         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3649         Change `tty_colors' to be a ptable.
3650         First arg of `put_color' is now `char'.
3651         New functions `make_rgb_string' and `tty_color'.
3652         (tty_printer::tty_printer): Use `tty_color'.
3653         (tty_printer::color_to_idx): Return value is now `char'.
3654         Use `tty_color'.
3656         * src/include/color.h (color): Add `print_color' member function.
3657         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3659 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3661         Valgrind fixes.
3663         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3664         encoding file.
3666         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3667         assume that value has been allocated with `new[]', thus use
3668         `a_delete' for deallocation.
3670         * src/libs/libdriver/input.cc (get_integer_arg,
3671         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3672         where appropriate.
3674         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3675         * src/libs/libgroff/nametoindex.cc
3676         (character_indexer::named_char_index): Use `new <type>[1]'.
3678         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3679         <type>[1]'.
3680         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3681         (split_text): Use `a_delete'.
3683         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3684         <type>[1]'.
3686         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3687         harmless memory leak.
3688         (hyphen_trie::read_patterns_file): Initialize `buf'.
3689         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3690         Initialize `current_fill_color'and `current_glyph_color'.
3691         * src/roff/troff/glyphuni.cc
3692         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3693         * src/roff/troff/uniuni.cc
3694         (unicode_decompose_init::unicode_decompose_init): Ditto.
3695         * src/roff/troff/uniglyph.cc
3696         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3698 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3700         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3701         `access' before calling `unlink'.
3702         (do_file): Handle __EMX__.
3704         * src/include/nonposix.h: Handle __EMX__.
3706         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3707         (fontpath,tmacpath): Use it.
3708         (MDEFINES): Add it.
3709         Sorted alphabetically.
3711         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3712         @SEP@.
3713         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3714         @SEP@.
3716 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3718         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3719         New files, copied from gnulib.
3720         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3721         * configure.ac: Updated.
3722         * configure: Regenerated.
3724         * src/include/config.hin: Regenerated.
3725         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3726         Don't define `strcasecmp' as `strcmp'.
3727         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3728         Dont define `strncasecmp' as `strncmp'.
3730         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3731         Removed.
3733 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3735         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3736         s/unline/unlink/.
3738 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3740         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3742 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3744         Add US-english hyphenation exceptions (converted from Barbara
3745         Beeton's hyphenation exception log reports which appear irregularly
3746         in TUGBoat).
3748         * tmac/hyphen.us: Updated to latest version.
3749         * tmac/README: Updated.
3750         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3751         * tmac/troffrc: Load `hyphenex.us'.
3752         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3753         * doc/groff.texinfo: Updated.
3755 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3757         Improve hyphenation slightly.  This is a first step in redesigning
3758         the hyphenation algorithm to make it more flexible (e.g. allowing
3759         kerns and ligatures between the hyphenation character and the
3760         following character -- while not used normally in English, other
3761         languages like German would benefit).
3763         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3764         assertion instead of if-clause.
3765         Let `get_hyphen_list' return the number of involved characters in
3766         the hyphenation pattern instead of computing it directly (which
3767         often yields too small values).
3768         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3769         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3770         parameter.
3772 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3774         Fixing a bug which caused groff to hang if the hyphenation exception
3775         dictionary tried to grow.
3777         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3778         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3779         pointer to dictionary.
3781 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3783         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3784         negative left italic correction.
3785         * src/utils/afmtodit/afmtodit.man: Document it.
3787         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3788         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3789         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3791         * NEWS: Updated.
3793 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3795         * NEWS: Updated.
3797 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3799         * src/preproc/refer/refer.man: Mention REFER environment variable.
3801 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3803         Similar to \[is], the square root glyph (\[sr]) and the square root
3804         extension glyph (\[radicalex]) are now text symbols.  The new
3805         mathematical versions are called \[sqrt] and \[sqrtex],
3806         respectively.
3808         * font/devX*/S: Regenerated.
3809         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3810         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3811         * font/devdvi/EX, font/devdvi/S: Regenerated.
3812         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3813         * font/devlj4/generate/special.map: Add `sqrt'.
3814         * font/devlj4/S: Regenerated.
3815         * font/devps/generate/textmap: Add `sqrt'.
3816         * font/devps/S, font/devps/symbolmap: Regenerated.
3818         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3819         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3820         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3821         overlap horizontally.
3823         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3824         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3825         Fix `radicalex'.
3827         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3828         and `sqrtex' are overlapping glyphs.
3830 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3832         * font/devdvi/generate/texsy.map: Add `is'.
3833         * font/devps/symbolmap: Regenerated.
3834         * font/devdvi/*TC, MI, S: Regenerated.
3836         * tmac/dvi.tmac: Remove `is'.
3838 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3840         `is' is now a text symbol (only relevant for dvi).  The math variant
3841         can be accessed with `integral'.
3843         * font/devX*/S: Regenerated.
3844         * font/devdvi/generate/texex.map: Remove `is'.
3845         * font/devdvi/EX: Updated.
3846         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3847         * font/devlj4/generate/special.map: Ditto.
3848         * font/devlj4/S: Regenerated.
3849         * font/devps/generate/textmap: Add `integral'.
3850         * font/devps/S: Regenerated.
3852         * tmac/dvi.tmac: Define `is'.
3854         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3856         * src/preproc/tbl/main.cc (process_format): Fix error message.
3858 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3860         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3861         * font/devps/textmap: Fix entries for `ne' and `nc'.
3862         * font/devps/symbolmap: Regenerated.
3864         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3865         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3866         `38', `58', `78', `-+', `|=', `nc', `ne'.
3868         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3869         Use `schar' for `aq'.
3870         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3871         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3872         * tmac/tty.tmac: Add `ne'.
3874         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3875         for fallback glyphs.
3877 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3879         Add glyph `|='.
3881         * font/devX*/*: Regenerated.
3882         * font/devdvi/generate/ec.map: Remove `eq'.
3883         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3884         Assign `|=' to position 39.
3885         * font/devdvi/*EC, S: Regenerated.
3886         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3887         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3888         Assign `|=' to position 549.
3889         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3890         `equalmath'.
3891         Add `uni2243' for `|='.
3893         * tmac/ec.tmac: Add `eq'.
3894         * tmac/dvi.tmac: Add `=~'.
3895         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3896         `|='.
3898 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3900         * font/devdvi/generate/tc.map: Remove `**'.
3901         * font/devdvi/*TC: Regenerated.
3902         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3903         `78', `<<', `>>'.
3904         * font/devutf8/NOTES: Updated.
3906         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3907         Don't give default parameter to `set_macro'.
3908         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3909         instead of `set_macro'.
3910         (charinfo::setx_macro): Implement it.
3911         (charinfo::set_macro): Don't change `mode'.
3913         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3914         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3915         * tmac/dvi.tmac: Define `!=' with `.schar'.
3917 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3919         * font/devX*/S: Regenerated.
3920         * font/devdvi/generate/ec.map: Remove `pl'.
3921         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3922         * font/devdvi/*{TC,EC}: Regenerated.
3923         * font/devhtml/R.proto: Add `-+'.
3924         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3925         * font/devlbp/*: Remove `or'.
3926         * font/devlj4/generate/special.map: Remove `or'.
3927         * font/devlj4/S: Regenerated.
3928         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3929         `seveneighths', `threeeighths'.
3930         Remove `plusmath'.
3931         Replace `minusplus' with `uni2213'.
3932         * font/devps/symbolmap: Regenerated.
3933         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3934         Add `-+'.
3936         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3937         function.
3938         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3939         Call glyph_color and fill_color even if tcommand_flag isn't set.
3940         (make_node, node::add_char): Check not ci->is_fallback but
3941         ci->is_normal.
3943         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3944         * tmac/ec.tmac: Add .rchar entry for `f/'.
3945         Don't remove `12', `14', `34'.
3946         Define `pl' to be always roman.
3947         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3948         Define `18', `38', `58', `78'.
3949         * tmac/tty.tmac: Add `-+'.
3950         * tmac/dvi.tmac: Define `f/'.
3951         (dvi-frac): Use `f/'.
3952         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3953         Define `18', `38', `58', `78'.
3955 2002-12-15  Colin Watson  <cjwatson@debian.org>
3957         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3959 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3961         Add glyph `tno', a textual variant of `no'.
3963         * font/devX*/*: Regenerated.
3964         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3965         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3966         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3967         * font/devdvi/*: Regenerated.
3968         * font/devlbp/*: Add `tno'.
3969         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3970         * font/devlj4/*: Regenerated.
3971         * font/devps/generate/textmap: Replace `no' with `tno'.
3972         * font/devps/generate/symbolchars: Add `no'.
3973         * font/devps/*: Regenerated.
3975         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3977         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3978         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3980         * NEWS: Updated.
3982         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3983         Add definition for `sd'.
3984         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3986         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3988 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3990         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3991         mode to avoid rounding errors.
3992         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3994         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3995         src/roff/troff/troff.man: Improve documentation of -T.
3997 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3999         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4000         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4002 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4004         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4005         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4006         Scaling Euro.sansserif glyphs down to have the same height as
4007         digits.
4008         Removed unnecessary points; added some extrema.
4010         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4011         Regenerated.
4013 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4015         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4016         and `Euro.symbol.bold.slanted'.
4017         Improve some glyph offsets and widths.
4018         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4019         Regenerated.
4020         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4021         typo.
4022         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4023         direcory.
4025         * tmac/europs.tmac: Updated to new glyph indices.
4026         Use Euro.symbol for font familiy `A'.
4028         * doc/groff.texinfo: Minor improvements.
4030 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4032         * font/devdvi/generate.tc.map: s/%O/%0/.
4033         * font/devdvi/*TC: Regenerated.
4035         * src/roff/troff/div.cc (init_div_requests): Sorted.
4037         * tmac/dvi.tmac: Remove `Ye'.
4038         * tmac/ec.tmac: Remove `Ye'.
4039         Add .rchar entry for `de'.
4041         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4042         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4043         * NEWS: Updated.
4045 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4047         Add PS font for various Euro glyphs.
4049         * font/devps/generate/freeeuro.sfd: New master font file for
4050         pfaedit.
4051         * font/devps/generate/sfdtopfa.pe: New conversion script for
4052         pfaedit.
4053         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4054         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4055         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4056         `freeeuro.sfd'.
4057         * font/devps/EURO: Generated from `freeeuro.afm'.
4058         * font/devps/download: Add `freeuro.pfa'.
4059         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4060         `freeeuro.pfa'.
4062         * tmac/europs.tmac: New file.
4063         * tmac/ps.tmac: Include `europs.tmac'.
4064         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4066 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4068         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4069         * font/devdvi/S: Regenerated.
4070         * font/devhtml/R.proto: Fix `CR' and `ci'.
4071         Add `OK'.
4072         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4073         Remove `bs'.
4074         * font/devps/symbolmap: Regenerated.
4075         * font/devutf8/R.proto: Fix `CR' and `ci'.
4076         Add `OK'.
4077         * font/devutf8/NOTES: Updated.
4079         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4080         `ci'.
4081         Add `OK'.
4082         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4084         * tmac/dvi.tmac: Add `lh' and `rh'.
4085         * tmac/Xps.tmac: Fix `lh' and `rh'.
4086         * tmac/X.tmac: Add `OK'.
4087         * tmac/lj4.tmac: Ditto.
4089 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4091         * font/devX*/S: Regenerated.
4092         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4093         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4094         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4095         * font/devdvi/S: Regenerated.
4096         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4097         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4098         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4099         `bracketleftbt', `bracketrighttp', `bracketrightex',
4100         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4101         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4102         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4103         `rb', and `bv'.
4104         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4105         * font/devutf8/NOTES: Updated.
4106         * font/devlj4/generate/special.map: Add glyph `braceex'.
4107         * font/devlj4/S: Regenerated.
4109         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4111 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4113         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4114         and `vA'.
4115         Fix code for `an'.
4116         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4118         * doc/texinfo.tex: New version from texinfo 4.3.
4119         * doc/groff.texinfo: Updated for texinfo 4.3.
4120         Use @tie{} where appropriate.
4121         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4122         * font/devdvi/generate/tc.map: Remove `rn'.
4123         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4124         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4125         Fix code for `an'.
4126         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4127         font/devX75-12/*: Regenerated.
4129         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4130         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4131         Improve definition of `an'.
4132         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4133         `ru'.
4134         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4135         * tmac/X.tmac: Add definition for `or'.
4136         * tmac/Xps.tmac: Undo change 2002-11-05.
4137         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4139 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4141         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4142         call flush_tbuf.
4144 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4146         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4147         defines a glyph which is searched after the check for fonts declared
4148         with `.special' (and before the check for all mounted special
4149         fonts).  `fschar' defines a glyph for a particular font which is
4150         searched after the check for fonts declared with `.fspecial' (and
4151         before the check for fonts declared with `.special').  `rfschar'
4152         removes glyphs defined with `fschar'.
4154         * src/roff/troff/token.h (char_mode): New enum.
4155         Declare do_define_character.
4156         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4157         `mode'.
4158         (charinfo::is_fallback): Updated.
4159         (charinfo::is_special): New method.
4160         * src/roff/troff/input.cc (do_define_character): Add and use
4161         optional second parameter used as a prefix for font-specific glyph
4162         names.
4163         (define_character, define_fallback_character): Updated.
4164         (define_special_character): New function.
4165         (init_input_requests): Add `schar'.
4166         (charinfo::charinfo, charinfo::set_macro): Updated.
4167         * src/roff/troff/node.cc: Include `stringclass.h'.
4168         (make_glyph_node): Handle special glyphs defined with `.schar' and
4169         `.fschar'.
4170         (define_font_special_character, remove_font_special_character): New
4171         functions.
4172         (init_node_requests): Sorted.
4173         Add `fschar' and `rfschar'.
4174         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4175         Document new requests.
4177         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4178         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4180 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4182         Added new font `SC' (cmtex10) to devdvi.
4184         * devdvi/generate/Makefile (FONTS): Add `SC'.
4185         (SC): New rule.
4186         * devdvi/generate/textex.map: New map file for cmtex.
4187         * devdvi/SC: New.
4188         * devdvi/Makefile.sub (DEVFILES): Updated.
4189         * tmac/dvi.tmac: Add fspecial entries for SC.
4190         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4191         found before `S' since the font position of `SC' is lower due to the
4192         gaps in DESC's `font' line.
4193         * tmac/ec.tmac: Add a `special' call.
4194         * NEWS: Updated.
4196         * font/devhtml/R.proto: Remove double entry for `ti'.
4197         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4198         * tmac/tty-char.tmac: Remove entry for `bq'.
4199         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4200         * tmac/ec.tmac: Don't remove `aq' glyph.
4201         * tmac/X.tmac: Fix entry for `em'.
4202         Add entries for `fo' and `fc'.
4203         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4205         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4206         documentation of `special' and `fspecial' requests.
4208 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4210         * font/devascii/R.proto, font/devcp1047/R.proto,
4211         font/devlatin1/R.proto: Remove entry for `.i'.
4212         * font/devdvi/generate/textt.map: Add entry for `ad'.
4213         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4214         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4215         We need this for getting kerning values to compose `/l' and `/L'.
4216         * font/devdvi: Regenerated font definition files for CM fonts.
4217         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4218         * font/devutf8/R.proto: Ditto.
4219         Remove double entry for `ti'.
4221         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4222         for (groff) ligatures, `la', and `ra'.
4223         Add "'C", "'c", `IJ', and `ij'.
4224         Remove double entry for `ti'.
4225         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4226         double entries.
4227         Add "'C", "'c", `IJ', and `ij'.
4228         Fix entries for (groff) ligatures, `la', and `ra'.
4230         * tmac/ps.tmac (ps-achar): New macro.
4231         Define "'c" and "'C".
4232         * tmac/tty.tmac: Add entry for `.i'.
4233         * tmac/X.tmac (X-achar): New macro.
4234         Define "'c", "'C", and `:Y'.
4235         Add entries for `IJ' and `ij'.
4236         * tmac/Xps.tmac (Xps-achar): New macro.
4237         Define "'c" and "'C".
4238         Add entries for `IJ' and `ij'.
4239         * tmac/lbp.tmac (lbp-achar): New macro.
4240         Add fallback characters for all groff ligatures and many other
4241         glyphs.
4242         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4243         Add entries for `/l' and `/L'.
4244         Define "'c" and "'C".
4245         Add entries for `IJ' and `ij'.
4247 2002-11-02  Larry Kollar  <kollar@alltel.net>
4249         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4251 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4253         Adding support for composite glyphs: \[xxx yyy ...] and the
4254         `composite' request.
4256         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4257         to Unicode-based glyph names.
4258         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4259         glyph names to groff glyph names.
4260         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4261         Unicode-based glyph names.
4262         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4263         for handling Unicode glyph names.
4264         * src/roff/troff/input.cc: Include unicode.h.
4265         (composite_glyph_name): New function.
4266         (token::next) <'['>: Handle Unicode glyph names and composite
4267         glyphs.
4268         (composite_dictionary): New dictionary for the `composite' request.
4269         (composite_request): Implement `composite' request.
4270         (init_input_requests): Add `composite'.
4271         Alphabetically sorted.
4272         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4273         commented out).
4274         (init_env_requests): Alphabetically sorted.
4275         Removed `tas' and `tar' (already commented out).
4276         * src/roff/troff/Makefile.sub: Updated.
4278 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4280         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4281         of options.
4283 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4285         Fix computation of .trunc register.  Additionally, its value (and
4286         the value of the .ne register) is now always set before entering the
4287         trap.
4289         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4290         `needed_space' before calling `space'.
4291         (top_level_diversion::space): Remove special code for 'sp before the
4292         first page.
4293         Call `begin_page' with the discarded space as a parameter.
4294         (top_level_diversion::begin_page): Add optional parameter to set
4295         `truncated_space'.
4296         * src/roff/troff/div.h: Updated.
4298         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4299         \n[.ne].
4301         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4302         (LP): Remove superfluous call to `br'.
4303         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4304         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4306 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4308         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4309         (doc-setup-header): Don't set page register `%'.
4310         * tmac/doc-nroff: Remove variable `C'.
4311         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4312         (doc-setup-header): Don't set page register `%'.
4313         Don't call `bp'.
4314         * tmac/doc-common (doc-header): Call `ns'.
4315         (doc-paragraph): Protect .sp with .br so that it survives traps
4316         possibly set by the user.
4317         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4319         * tmac/doc*: Replace ' with . for consistency if no effect.
4321 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4323         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4324         so that it survives traps possibly set by the user.
4326         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4327         (troff_output_file::set_font): Call flush_tbuf if necessary.
4328         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4329         flush_tbuf and do_motion only if necessary.
4330         (troff_output_file::start_special,
4331         troff_output_file::put_char_width, troff_output_file::put_char,
4332         troff_output_file::draw): Updated.
4333         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4334         vmotion_node::tprint): Undo change 2002-10-23.
4336 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4338         * tmac/www.tmac (DC): Fix case of overlapping images.
4340 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4342         * src/roff/troff/node.cc (troff_output_file::fill_color,
4343         troff_output_file::glyph_color): Set current color before testing
4344         color_flag.
4345         (troff_output_file::put_char_width, troff_output_file::put_char,
4346         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4347         before glyph_color.
4348         (troff_output_file::file_color, troff_output_file::glyph_color):
4349         Call do_motion.
4350         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4351         vmotion_node::tprint): Move first, then call fill_color.
4353 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4355         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4356         possible to use multiple main macro packages.
4358 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4360         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4361         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4362         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4363         is set.
4364         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4365         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4367 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4369         * NEWS, doc/webpage.ms: Updated.
4371 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4373         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4374         troff_output_file::put_char, troff_output_file::fill_color,
4375         troff_output_file::glyph_color): Handle case where color pointer
4376         is null.
4378 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4380         Add the new -r option to grotty.  It is similar to the -i option
4381         except it tells grotty(1) to use the "reverse video" attribute to
4382         render italic fonts.
4384         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4385         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4386         (tty_printer::make_underline, tty_printer::put_color,
4387         tty_printer::end_page): Use it.
4388         (main): Add -r switch.
4389         (usage): Updated.
4390         * src/devices/grotty/grotty.man: Document it.
4392 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4394         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4395         cast to `unsigned char' to properly read patterns with 8bit
4396         characters.
4398 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4400         * REVISION: Increased to 2.
4402 Version 1.18.1 released
4403 =======================
4405 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4407         * doc/webpage.ms, NEWS: Updated.
4409 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4411         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4412         suppress additional whitespace after the header.
4414         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4415         with NetBSD.
4417         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4419 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4421         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4422         (Dt): Use it to improve language localization (especially Russian
4423         and French).
4425 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4427         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4428         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4429         drawing commands.
4430         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4431         curve type.
4432         Call `picurve' for BSPLINE.
4433         (HGPrintElt): Handle BSPLINE.
4434         * src/preproc/grn/README: Document it.
4436 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4438         * src/roff/troff/node.cc (break_char_node::col): New variable.
4439         Updated constructor.
4440         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4441         unconditionally.
4442         (space_node::space_node): Remove assertion.
4443         (break_char_node::add_self): Pass color argument to space node.
4444         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4445         Ditto.
4446         * src/roff/troff/env.cc (environment::do_break,
4447         environment::add_padding): Ditto.
4449 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4451         Redesigning color support in troff.  Colors are no longer
4452         represented as separate nodes but are now part of glyph nodes and
4453         friends.  This fixes the current formatting misbehaviour due to the
4454         changes introduced on 2002-09-20.  Some extra code is necessary for
4455         proper grotty support: Without adding color variables to
4456         space-related nodes, the background color would be changed too late.
4458         * src/roff/troff/node.h, src/roff/troff/node.cc:
4459         s/current_pagecolor/current_fill_color/.
4460         s/current_glyphcolor/current_glyph_color/.
4461         (glyph_color_node, fill_color_node): Removed.
4462         (node::get_glyph_color, node::get_fill_color): New virtual member
4463         functions.
4464         (space_node::col): New variable.
4465         Updated constructors of space_node and derived classes accordingly.
4466         (hmotion_node::col): New variable.
4467         Updated constructors of hmotion_node and space_char_hmotion_node
4468         accordingly.
4469         (vmotion_node::col): New variable.
4470         Updated constructor accordingly.
4471         (draw_node::gcol, draw_node::fcol): New variables.
4472         Updated constructor accordingly.
4473         (special_node::gcol, special_node::fcol): New variables.
4474         Updated constructors accordingly.
4475         (troff_output_file::put_char, troff_output_file::put_charwidth,
4476         troff_output_file::draw): Set glyph and fill color.
4477         (troff_output_file::start_special): Set glyph and fill color.
4478         Always set current font.
4479         (troff_output_file::fill_color, troff_output_file::glyph_color):
4480         Don't call `do_motion'.
4481         (glyph_node::gcol, glyph_node::fcol): New variables.
4482         Updated constructors of glyph_node and ligature_node accordingly.
4483         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4484         member functions.
4485         (glyph_node::merge_glyph_node,
4486         kern_pair_node::add_discretionary_hyphen,
4487         node::add_discretionary_hyphen): Updated.
4488         (break_char_node::merge_self): Updated.
4489         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4490         vmotion_node::tprint): Handle color.
4491         (make_glyph_node, make_node, node::add_char): Updated.
4493         * src/roff/troff/env.cc (environment::space_newline,
4494         environment::space, environment::output_line, environment::do_break,
4495         environment::make_tab_node, environment::add_padding, title):
4496         Updated.
4497         (environment_switch, environment_copy): Don't add color nodes.
4499         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4500         nothing.
4501         (token::next): Updated.
4502         \m and \M now are as transparent as \s.
4503         (process_input_stack, token::add_to_node_list, token::process,
4504         read_draw_node): Updated.
4505         (charinfo_to_node_list): Don't add color nodes.
4507         * doc/groff.texinfo: Updated.
4509 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4511         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4512         strings.
4514 2002-09-27  Colin Watson  <cjwatson@debian.org>
4516         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4518 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4520         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4521         appropriate.
4522         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4523         (linewidth_factor): New global variable.
4524         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4525         linewidth_factor.
4526         (long_options): Add -w/--linewidth option.
4527         (usage): Updated.
4528         (main): Handle -w option to set linewidth_factor.
4529         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4530         line_thickness.
4532         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4534 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4536         Fixed a bug in the line thickness setting code.
4538         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4539         variable.
4540         (lbp_printer::set_line_thickness): Pass environment as second
4541         parameter.
4542         Implement it actually.
4543         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4544         and `set_line_thickness, depending on the current font size.
4546 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4548         Some Debian patches.
4550         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4551         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4552         `list->last'.
4554 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4556         * configure: Regenerated with autoconf 2.54.
4558 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4560         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4561         glyph_color.
4562         Rename cur_fill_color to fill_color.
4563         * src/roff/troff/env.cc: Updated.
4565 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4567         * src/roff/troff/env.cc (title): Copy color status after processing
4568         title.
4569         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4570         fill color nodes to reset colors properly.
4572         * tmac/www.tmac (DC): Fix color handling.
4574         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4575         * doc/groff.texinfo: Fixing documentation of `tl' request.
4576         * doc/webpage.ms: Updated.
4578 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4580         * src/roff/troff/env.cc (environent_switch, environment_copy):
4581         Emit glyph and fill color nodes to initialize colors properly.
4583 2002-09-17  Colin Watson  <cjwatson@debian.org>
4585         * src/roff/troff/env.cc (environment::set_glyph_color,
4586         environment::set_fill_color): Fix typo which prevented \m[] work
4587         correctly.
4589 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4591         Add left and right italic correction to non-slanted PS fonts.  This
4592         is an experimental feature to improve image rendering of grohtml.
4594         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4595         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4596         * font/devps/*: All non-slanted fonts regenerated.
4597         * NEWS: Updated.
4599 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4601         Add a site-specific font directory.
4603         * Makefile.in (localfontdir, legacyfontdir): New variables.
4604         (fontpath): Use them.
4605         (MDEFINES, uninstall_dirs): Updated.
4606         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4607         Remove `FONTPATH' and `MACROPATH'.
4609         * src/roff/troff/troff.man, NEWS: Updated.
4610         * doc/groff.texinfo (Font Directories): New section.
4611         Other minor fixes.
4613         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4614         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4615         src/preproc/grn/grn.man: Minor fixes.
4617         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4618         Remove unused variable.
4620 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4622         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4623         * man/groff_out.man: Fix documentation of 'N'.
4625 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4627         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4628         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4629         set.
4630         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4631         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4632         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4633         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4634         PRE_TAG>: Call `begin' with `FALSE'.
4636 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4638         * src/libs/libgroff/string.cc (string::extract): Fix position of
4639         terminating null byte.
4641 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4643         Add global option `nospaces' to tbl so that leading and trailing
4644         spaces in data items are ignored.
4646         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4647         function to remove leading and trailing spaces.
4648         * src/include/stringclass.h: Updated.
4650         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4652         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4653         option.
4654         Fix typo in error messages.
4655         (process_data): Implement `nospaces' option.
4656         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4658 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4660         * src/include/config.hin: Add `HAVE_ISATTY'.
4661         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4662         `fname' member.
4663         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4664         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4665         `operator!=' for `char'.
4666         * doc/groff.texinfo: Replace @ifnottex block for top node with
4667         @ifhtml block.
4669 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4671         * doc/Makefile.in (.texinfo.html): Add -I switch.
4672         * doc/groff.texinfo: Add @ifnottex block for top node to make
4673         translation to HTML work.
4675 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4677         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4678         (get_papersize, determine_vertical_offset): Removed.
4679         (char_buffer::do_image): Always specify letter size.
4680         (main): Updated.
4681         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4682         -sPAPERSIZE.
4684 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4686         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4687         default indentation.
4689 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4691         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4692         -sPAPERSIZE for gs.
4693         (generateImages): Clean up push-back buffer.
4695 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4697         * doc/groff.texinfo: Minor fixes.
4699 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4701         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4702         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4703         (gsPaper): Removed.
4704         (determine_vertical_offset): Use LETTER_LENGTH.
4705         (createPage): Moved to ...
4706         (imageList::createPage): This.
4707         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4708         (imageList::getMaxX): New function.
4709         (createImage): Moved to ...
4710         (imageList::createImage): This.
4711         (imageList::createImages): New function.
4712         (generateImages): Read `maxx' directly.
4713         Updated.
4714         (scanArguments): Don't specify `gsPaper' for `-o'.
4715         (makeTempFiles): Call `xtmpfile' with the last argument set to
4716         `TRUE'.
4718 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4720         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4721         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4722         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4723         * src/preproc/html/pushback.cc: Include nonposix.h.
4724         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4725         conditionally.
4727 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4729         Use $(OBJEXT) for the object file extension.
4731         * Makefile.comm (.SUFFIXES): Add .obj.
4732         (.cc.obj, .c.obj): New implicit rules.
4733         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4734         (MDEFINES): Add EXEEXT and OBJEXT.
4735         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4737 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4739         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4741 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4743         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4744         the file.
4745         (html_printer::update_min_max, html_printer::add_table_end): New
4746         methods.
4747         (html_printer::lookahead_for_tables): Use them.
4748         Reset page offset correctly.
4749         (html_printer::~html_printer): Add creation of creator comment up.
4751 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4753         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4754         * man/groff_tmac.man: Fix typos.
4755         * man/groff_font.man: Minor reordering.
4756         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4758 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4760         Avoid endless loops while scanning for tables.
4762         * src/devices/grohtml/post-html.cc (list::insert): Set
4763         ptr->right->left.
4764         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4765         all callers.
4766         Return immediately if that argument is NULL.
4767         (html_printer::calc_nf): Don't test if `g' is NULL.
4768         (html_printer::lookahead_for_tables): Use
4769         `glyphs.move_right_get_data'.
4770         Don't test if `g' is NULL.
4772 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4774         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4776         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4777         a pointer.
4778         (char_block::char_block): Allocate `buffer'.
4779         (char_buffer::add_string): Use it.
4781 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4783         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4784         src/devices/grodvi/grodvi.man: Document default line thickness.
4786 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4788         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4789         8192.
4791 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4793         * doc/webpage.ms: Updated.
4795 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4797         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4798         unbreakable space.
4800 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4802         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4803         (&& -> &).
4805 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4807         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4808         tok.next().
4809         (read_gray): Ditto.
4810         Don't push back a space but a newline onto the stack.
4812 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4814         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4815         inadvertently.
4817         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4818         html_printer::start_font): Handle them.
4819         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4820         reset bold and tt.
4821         (html_text::do_bold): Don't reset italic and tt.
4822         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4823         * font/devhtml/DESC.proto: Add those fonts.
4824         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4826 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4828         * MORE.STUFF: Added gpresent.
4830         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4831         whitespace before printing the logging message.
4833 2002-07-31  Colin Watson  <cjwatson@debian.org>
4835         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4836         Initialize `n' to zero.  This fixes a segfault on ARM.
4838 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4840         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4842 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4844         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4845         final semicolon.
4847 2002-07-28  Colin Watson  <cjwatson@debian.org>
4849         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4850         `.ps'.
4851         (html_printer::html_printer): Initialize `pointsize'.
4853 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4855         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4856         gnu.png.
4857         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4858         (gnu.eps): Add -rle switch to pnmtops.
4859         (distfiles): Add gnu.eps and gnu.png.
4861 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4863         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4864         Add `operator!='.
4866 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4868         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4869         ' \+' but '  *' for sed.
4870         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4872 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4874         * doc/groff.texinfo: Document `papersize' keyword.
4875         * NEWS, man/groff_font.man: Updated.
4877 2002-07-23  Colin Watson  <cjwatson@debian.org>
4879         Extend papersize keyword to accept more than a single entry.  The
4880         first valid will be used.
4882         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4883         (font::scan_papersize): Really skip final newline.
4884         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4886 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4888         * configure.ac: Test for isatty.
4889         * configure: Regenerated.
4890         * src/include/posix.h: Check HAVE_ISATTY.
4891         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4892         * src/utils/lookbib/lookbib.cc: Include posix.h.
4893         Don't declare isatty.
4895 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4897         * NEWS: Add `output' request.
4899         * REVISION: Increased to 1.
4901 Version 1.18.0 released
4902 =======================
4904 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4906         Allow internal glyph indices > 0xFF in grohtml for input characters.
4908         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4909         as parameter.
4910         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4911         Updated all callers.
4912         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4913         (html_printer): Updated.
4915 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4917         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4918         * font/devutf8/R.proto: Adding some missing glyphs.
4919         * font/devutf8/NOTES: Updated.
4921         * tmac/dvi.tmac: Add more composite glyphs.
4922         * tmac/html.tmac: Updated.
4924         * man/groff_char.man: Add `sum' and `product' entities.
4926         * NEWS: Updated.
4928 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4930         Improved table, tab, and indenting support.
4932         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4933         string_iterator::suppress_newline_flag): Removed.  Updated all
4934         function which have used it.
4936         * src/roff/troff/env.cc: Include `input.h'.
4937         (environment::add_node): Accept 0 as parameter.
4938         (environment::add_html_tag): Add `force' parameter.
4939         Updated all callers.
4940         (environment::add_html_tag_tabs): Ditto.
4941         For the moment, support left-aligned tabs only.
4942         (environment::make_html_tag): New function.
4943         (fill, no_fill): Set .br html tag additionally.
4944         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4945         (environment::add_html_tag_eol): Removed.
4946         (tab_stops::distance_to_next_tab): Add variant for handling 
4947         nextpos'.
4948         (environment::distance_to_next_tab): Ditto.
4949         Updated all callers.
4950         (environment::handle_tab): Handle tabs for html.
4951         
4952         * src/roff/troff/env.h: Updated.
4954         * src/roff/troff/div.cc: Updated all callers of
4955         `environment::add_html_tag'.
4957         * src/devices/grohtml/html-table.cc,
4958         src/devices/grohtml/html-table.h: New files.
4960         * src/devices/grohtml/html-text.cc (html_text): New members
4961         `blank_para' and `start_space'.
4962         (html_text::issue_tag): Don't emit TABLE_TAG.
4963         Handle indentation for PRE_TAG and P_TAG.
4964         (html_text::end_tag): Updated.
4965         (html_text::table_is_void, html_text::issue_table_begin,
4966         html_text::issue_table_end): Removed.
4967         (html_text::do_push): Simplified.
4968         [DEBUGGING]: Small fix.
4969         (html_text::push_para): Add new parameter for indentation; updated
4970         all callers.
4971         Handle PRE_TAG.
4972         (html_text::do_indent, html_text::do_table, html_text::done_table,
4973         html_text::is_in_table): Removed.
4974         (html_text::do_pre): Handle P_TAG also.
4975         (html_text::shutdown): Handle p->indent.
4976         (html_text::check_emit_text): Simplified.
4977         (html_text::do_emittext): Reset `blank_para'.
4978         (html_text::do_para): Add new parameter for indentation; updated
4979         all callers.
4980         (html_text::remove_indent): New function.
4981         (html_text::do_space): Handle verbatim text properly.
4982         (html_text::ever_emitted_text, html_text::starts_with_space,
4983         html_text::remove_para_align): New functions.
4984         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4986         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4987         Updated.
4989         * src/devices/grohtml/post-html.cc: Include html-table.h.
4990         (INDENTATION): Removed.
4991         (text_glob): Added many `is_<foo>' functions.
4992         Added table description `tab'.
4993         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4994         member functions.
4995         (list): Add `insert' and `move_to' member functions.
4996         (page): Add `insert_tag' member function.
4997         (page::dump_page) [DEBUG_TABLES]: Improved.
4998         (html_printer): Add `table' and `max_linelength' elements.
4999         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5000         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5001         `remove_tabs', `remove_courier_tabs'.
5002         (html_printer::emit_raw): Handle indentation.
5003         (html_printer::do_center, html_printer::write_header): Updated.
5004         (html_printer::is_courier_until_eol): Check for tag.
5005         (html_printer::do_linelength): Handle max_linelength.
5006         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5007         fill_on.
5008         (html_printer::do_tempindent): Updated.
5009         (html_printer::do_indentedparagraph): Removed.
5010         (html_printer::do_indent): Simplified.
5011         (html_printer::do_eol): Use `ever_emitted_text'.
5012         (html_printer::do_flush, html_printer::do_links): Don't call
5013         done_table.
5014         (html_printer::do_break): Handle end_tempindent.
5015         (html_printer::troff_tag): Get argument.
5016         Don't handle `.ip'.
5017         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5018         (html_printer::flush_page): Call `lookahead_for_tables'.
5019         Don't call `done_table'.
5020         (html_printer::add_to_sbuf): Always call do_indent.
5022         * src/devices/grohtml/Makefile.sub: Updated.
5024         * tmac/an-old.tmac (TP): Don't handle html device specially.
5025         (an-do-tag-html): New function which will be used instead of
5026         `an-do-tag' if html device is used.
5028         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5030         * tmac/s.tmac (@IP): Don't handle html device specially.
5031         (@IP-html): New function which will be used instead of `@IP' if
5032         html device is used.
5034         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5035         is a hack which will eventually vanish again.
5036         (PIMG): Handle `-C' option correctly if not html.
5037         (HR): Use HTML-NS.
5039 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5041         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5043 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5045         * contrib/pic2graph/pic2graph.*: Use convert(1).
5046         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5048 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5050         * tmac/groff_trace.man: New file.
5051         * tmac/Makefile.sub: Updated.
5052         * NEWS: Updated.
5054 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5056         * src/roff/groff/groff.man: Add some cross references.
5058 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5060         * src/roff/troff/input.cc (substring_request): Add warnings for
5061         string indices out of range.
5063 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5065         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5066         * font/devdvi/*EC: Regenerated.
5068 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5070         * man/groff_char.man: Updated and extended.
5072 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5074         * src/roff/troff/input.cc (length_macro): Renamed to...
5075         (length_request): This.
5076         Move call of `tok.next()' to the very end, otherwise the register
5077         value hasn't been updated yet.
5078         (init_input_requests): Updated.
5080 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5082         * src/roff/troff/input.cc (substring_macro): Renamed to...
5083         (substring_request): This.
5084         (init_input_requests): Updated.
5085         * src/roff/troff/request.h: Updated.
5087 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5089         * src/roff/grog/grog.sh: Fix typo.
5091 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5093         * win32-diffs: Updated.
5095         Handle `papersize' keyword properly in DESC.
5097         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5098         type.
5099         Updated all callers.
5100         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5101         grolj4.
5102         * src/include/paper.h: Updated.
5104         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5105         Other minor C syntax fixes.
5106         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5107         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5108         members.
5109         (lbp_printer::lbp_printer): Pass three arguments.
5110         Set paper dimensions properly.
5111         (make_printer, main): Updated.
5112         (handle_unknown_desc_command): Fix error messages.
5113         (main): Handle papersize keyword in DESC properly.
5115         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5116         `user_paper_size'.
5117         (lbp_printer::lbp_printer): Pass an argument.
5118         Set paper_size properly.
5119         (handle_unknown_desc_command): Removed.
5120         (make_printer, main): Updated.
5121         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5123         * man/groff_font.man, NEWS: Updated.
5125 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5127         Integrated eqn2graph, contributed by Eric S. Raymond.
5129         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5130         files.
5131         * Makefile.in, NEWS: Updated.
5133 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5135         Changing the substring request to make it fit better with other
5136         string manipulation functions in other programming languages:
5137         Index 0 is now the first character in the string, and index -1
5138         indicates the last character.  Since this request didn't work
5139         properly anyway in the last release, it doesn't harm too much to
5140         change the syntax.
5142         * src/roff/troff/input.cc (substring_macro): Use loops to get
5143         the real string length (ignoring COMPATIBLE_SAVE and
5144         COMPATIBLE_RESTORE) and offsets.
5145         Implement change described above.
5147         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5148         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5150         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5152 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5154         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5155         COMPATIBLE_RESTORE are completely ignored.
5157         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5158         functions.
5159         (macro): `length' field renamed to `len'.
5160         Added new field `empty_macro' (1 if macro is empty), to be used
5161         instead of checking `len'.
5162         Updated all callers.
5163         (macro::empty): Updated.
5164         (macro::length, macro::set, macro::get): New functions.
5165         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5166         Set `empty_macro'.
5167         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5168         COMPATIBLE_RESTORE pairs.
5169         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5170         * src/roff/troff/request.h: Updated.
5172         * doc/groff.texinfo: Document .chop's behaviour better.
5174 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5176         * doc/pic.ms: Fix documentation for the addition of positions.
5178         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5180 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5182         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5184         * src/roff/troff/input.cc (have_string_arg): New global variable.
5185         (read_mode): New enumeration.
5186         (read_escape_name): Use it.  Update all calls.
5187         (read_long_escape_name): Use it.  Update all calls.
5188         Set have_string_arg if appropriate.
5189         (get_char_for_escape_name): Add parameter for handling space
5190         character.
5191         (interpolate_string_with_args, decode_string_args): New functions.
5192         (get_copy, token::next): Call it if necessary.
5193         (interpolate_string): Fix error message.
5195         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5196         Document it.
5198 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5200         * man/groff_tmac.man: Updated and extended.
5202 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5204         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5206 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5208         * doc/pic.ms: Improve documentation of composite block objects.
5210 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5212         * src/roff/troff/input.cc (init_registers): Add three registers
5213         `seconds', `minutes', and `hours' to hold the current time.
5215         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5216         Updated.
5218 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5220         Make \X accept both `\ ' and `\~', converting them to single space
5221         characters.
5223         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5224         (token::unstretchable_space): New inline function.
5225         * src/roff/troff/input.cc (token::next, token::delimiter,
5226         token::description, token::add_to_node_list, token::process): Handle
5227         TOKEN_UNSTRETCHABLE_NODE.
5228         (encode_char): Handle tok.stretchable_space and
5229         tok.unstretchable_space.
5231         * NEWS, doc/groff.texinfo: Document it..
5233 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5235         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5237         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5238         keyword to enable/disable SGR output.
5239         (tty_printer::change_fill_color): New function.
5240         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5242         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5243         call.
5245 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5247         Add a `color' request and a `.color' register to control usage of
5248         colours.
5250         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5251         (color_flag): This (which is the inverse).
5252         (activate_color): New function.
5253         (main, init_input_requests): Updated.
5254         * src/roff/troff/troff.h, src/roff/troff/node.cc
5255         (troff_output_file::fill_color, troff_output_file::glyph_color):
5256         Updated.
5258         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5259         Document the changes.
5261 2002-06-17  Colin Watson  <cjwatson@debian.org>
5263         Circumvent bug in autoconf 2.53 regarding top_builddir.
5265         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5266         * Makefile.in, doc/Makefile.in:
5267         s/@top_builddir@/@groff_top_builddir@/.
5268         * configure: Regenerated (with autoconf 2.53).
5270 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5272         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5273         `paperwidth' and `paperlength' for the `papersize' keyword.
5275 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5277         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5279 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5281         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5282         html_printer::do_linelength, html_printer::do_pageoffset,
5283         html_printer::do_indentation, html_printer::do_tempindent,
5284         html_printer::do_break, html_printer::begin_page): Clear indented
5285         text.
5286         * tmac/html.tmac: Disable hyphenation.
5288 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5290         Don't produce HTML files if utility programs are missing.
5292         * Makefile.in (make_html, make_install_html): New variables.
5293         (MDEFINES): Updated.
5295         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5296         utility programs.
5297         * configure.ac: Use it.
5298         * configure: Regenerated.
5300         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5301         (HTMLEXAMPLESFILES): This new variable.
5302         (EXAMPLESIMAGEFILES): Renamed to...
5303         (HTMLEXAMPLEIMAGEFILES): This.
5304         (CLEANADD): Add HTMLEXAMPLEFILES.
5305         (all): Use `make_html'.
5306         (html): New target.
5307         (install_data): Use `make_install_html'.
5308         Move html stuff to...
5309         (install_html): This new target.
5310         (uninstall_sub): Updated.
5312 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5314         * src/roff/grog/Makefile.sub (grog): Renamed to...
5315         (grog.old): This.
5316         (grog): New rule to always install grog.sh as grog.
5318 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5320         * src/roff/grog/grog.pl: Fix typo.
5322 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5324         * doc/groff.texinfo: Add more info on .tr arguments.
5326 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5328         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5330         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5331         * configure: Regenerated.
5333 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5335         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5337         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5339 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5341         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5342         is not initialized at the time we need it in case `--prefix' hasn't
5343         been set.  Check for `ac_default_prefix' also.
5344         Test for `papersize' keyword also and generalize allowed whitespace.
5345         * configure: Regenerated.
5347         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5348         `paperlength'.
5350         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5351         with...
5352         (src_version, src_revision): New variables to avoid overwriting
5353         from parent make process.
5354         (version.cc): Updated.
5356         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5357         (linebuf, linebufsize): New global variables.
5358         (sys_fatal): Use `fatal' to abort properly.
5359         (get_line): New function.
5360         (get_resolution): Use it.
5361         Improve error messages.
5362         (get_papersize): Check `papersize' also.
5363         Use `get_line'.
5364         Improve error messages.
5366 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5368         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5369         should be removed only if builddir is not srcdir.
5370         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5371         (clean): Depend on `mostlyclean'.
5372         (distclean): Depend on `clean'.
5373         (realclean, extraclean): Depend on `distclean'.
5374         (.y.cc, .y.o): Simplified.  The output files are no longer written
5375         to srcdir but to builddir.
5376         * Makefile.in (MDEFINES): Add `version' and `revision'.
5377         (uninstall_dirs): Fix order of directories.
5378         * doc/Makefile.sub (version, revision): Removed.
5379         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5380         Added `HTMLDOCFILES'.
5381         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5382         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5383         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5384         as prefix.
5386         * doc/texinfo.tex (\authortt): New macro.
5387         (\shortcontt): Define.
5388         (\titlepage): Set \tt to \authortt while defining \authorfont.
5389         (\appendixbox): New macro.
5390         (\chapmacro, \appendixentry): Use \appendixbox to get even
5391         indentation for letters.
5392         (\summarycontents): Set \tt.
5393         (\internalpagesize): Add two arguments for real paper width and
5394         height as needed by pdfTeX.
5395         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5396         Updated.
5397         (\tempdima, \tempdimb): New temporary dimensions.
5398         (\pagesizesyyy): Updated.
5400 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5402         Adding a new keyword `papersize' to the DESC file format (similar
5403         but not completely identical to grolbp's extension).  grops now has
5404         a -p command line option to override `papersize'.  Finally, grolbp
5405         has been adapted to the new syntax.
5407         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5408         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5409         elements.
5410         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5411         (CCSRCS): Add `paper.cc'.
5413         * src/include/font.h (font): Add `papersize' element.
5414         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5415         (font::scan_papersize): New function.
5416         (font::load_desc): Use it for handling `papersize' keyword.
5417         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5419         * src/devices/grops/ps.cc: Include paper.h.
5420         (user_paper_length): New global variable.
5421         (ps_printer): Use paper length as initializer.
5422         (make_printer): Updated.
5423         (main): Handle new `-p' option.
5424         * src/devices/grops/grops.man: Updated.
5426         * src/devices/grolbp/lbp.cc: Include paper.h.
5427         s/papersizes/lbp_papersizes/.
5428         (set_papersize): Use new `papersizes' array.
5429         (handle_unknown_desc_command): Don't handle `papersize'.
5430         (main): Use `font::scan_papersize' for handling `-p' option.
5431         * src/devices/grolbp/grolbp.man: Updated.
5433         * man/groff_font.man: Document `papersize'.
5434         * NEWS: Updated.
5436 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5438         * src/devices/grops/TODO: Updated.
5439         * src/devices/grops/grops.man: More info on paper formats.
5440         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5442 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5444         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5445         to list only if srcdir != currdir.
5446         (distfiles): New target.
5448         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5449         (NOMAKEDIRS): New variable.
5450         (DISTDIRS): Use it.
5452 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5454         Add .output request, similar to \! at top-level.
5456         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5457         (output_request): New function.
5458         (init_input_requests): Add it.
5459         Sorted.
5460         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5461         Document it.
5463         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5464         (prepare_examples): Fix typo.
5465         * doc/groff.texinfo (@direntry): Fix it.
5467 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5469         Including the doc subdir into groff's Makefile system.
5471         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5472         * configure.ac: Use it.
5473         Generate `doc/Makefile'.
5474         * configure: Regenerated.
5476         * Makefile.in (infodir, INSTALL_INFO): New variables.
5477         (MDEFINES, uninstall_dirs): Updated.
5478         (OTHERDIRS): Add `doc'.
5479         * Makefile.comm (CLEANDIRADD): New variable.
5480         (mostlyclean): Use it.
5482         * doc/Makefile.sub, doc/Makefile.in: New files.
5483         * doc/Makefile: Removed.
5485         * NEWS, INSTALL: Updated.
5487 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5489         * doc/homepage.ms: Renamed to ...
5490         * doc/webpage.ms: This.
5491         Use `.NHR'.
5493 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5495         Integrating the `mom' macro package, contributed by Peter Schaffter
5496         <df191@ncf.ca>.
5498         * contrib/mom/*: New subdirectory tree.
5499         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5500         be used for documentation files.
5501         (MDEFINES, uninstall_dirs): Use them.
5502         (OTHERDIRS): Add contrib/mom.
5503         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5504         @HTMLDOCDIR@.
5505         * MANIFEST, NEWS: Updated.
5507 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5509         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5510         if at outer level; at start-up we are at outer level.
5512         * src/roff/troff/input.cc (do_suppress): Implement it.
5513         Simplify \O[3].
5515         Add option -p to show progress information.
5516         pre-grohtml will now render only one page at a time, reducing the
5517         size of needed disk resources enormously.
5519         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5520         (imagePageName): New global variable.
5521         (psPageName, show_progress, currentPageNo): New global variables.
5522         (html_system): Close saved stderr and stdout handles.
5523         (write_end_image): Accept a parameter to control \O escape.
5524         (write_start_image): Adapted to new \O meaning.
5525         (char_buffer::write_upto_newline): Updated.
5526         (createAllPages): Replaced with...
5527         (createPage): This new function to create a single page for images.
5528         It uses `psselect' from the psutils package.
5529         (removeAllPages): Removed.
5530         (createImage): Updated.
5531         Handle progress display.
5532         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5533         (scanArguments): Add option -p.
5534         (makeTempFiles): Updated to create temp files for psPageName and
5535         imagePageName.
5536         (removeTempFiles): Removed.
5537         (main): Updated.
5539         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5540         html_printer::write_header): Append `\0' to `buffer'.
5541         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5542         (main): Handle -p.
5543         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5544         Handle `text_emitted'.
5545         (html_text::table_is_void): Slightly rewritten.
5546         (stop): New external symbol.
5547         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5548         (html_text::shutdown): Call `dump_stack'.
5549         (html_text::do_space): Rewritten.
5550         * src/devices/grohtml/grohtml.man: Document -p and the need of
5551         `psselect'.
5553         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5554         new \O syntax.
5555         Call \O[0] if `ps4html' is active.
5556         * tmac/s.tmac (@EQ, @EN): Handle html better.
5557         (@TS, TE): Ditto.
5558         * tmac/html.tmac: Don't use black for background colour.
5560         * src/roff/troff/node.cc: Include `div.h'.
5561         (troff_output_file::really_print_line): Don't use `is_on'. 
5562         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5563         troff_output_file::check_charinfo,
5564         troff_output_file::put_char_width, troff_output_file::put_char,
5565         troff_output_file::determine_line_limits, troff_output_file::draw,
5566         real_output_file::begin_page, glyph_color_node::tprintf,
5567         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5568         Use `is_on'.
5569         (troff_output_file::really_on): Call `do_motion'.
5570         (suppress_node::tprint): Use `get_page_number' instead of `%'
5571         register.
5572         Call `reset_output_registers' conditionally on `is_on'.
5574         * doc/groff.texinfo: Document new syntax of \O.
5575         * NEWS, man/groff_diff.man: Updated.
5577 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5579         * MORE.STUFF: Add info about David Frey's deroff implementation.
5580         Mention troff.org.
5582 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5584         Pic's `with' attribute now accepts positions.
5586         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5587         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5588         conflicts.
5589         (object_spec): Add rule for `WITH' and `position'.
5590         (relative_path): Give `corner' the precedence of `CHOP'.
5591         * src/preproc/pic/object.h (path): New members `pos' and
5592         `is_position'.
5593         * src/preproc/pic/object.cc: Updated initializers of `path'.
5594         (path::follow): Handle `is_position'.
5596         * doc/pic.ms: Completely updated grammar description.
5597         Many typographical improvements.
5599 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5601         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5602         code of x in range 0-127) also.
5603         * doc/groff.texinfo, man/groff_diff.man: Updated.
5605         Added keywords `north', `south', `east', and `west' for corners
5606         in pic.
5608         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5609         and WEST.
5610         (yylex): Handle them.
5611         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5612         (corner): Handle them.
5614 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5616         * src/devices/grops/grops.man: Clarify handling of `download' file.
5618 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5620         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5621         Jeffrey Friedl <jfriedl@yahoo.com>.
5623         * src/roff/troff/input.cc (spread_limit, warn_scale,
5624         warn_scaling_indicator): New global variables.
5625         (warnscale_request, spreadwarn_requests): New functions.
5626         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5627         (init_input_requests): Updated.
5628         (error_type): Add `OUTPUT_WARNING'.
5629         (do_error): Handle it.
5630         (output_warning): New warning function which shows output location.
5631         * src/roff/troff/env.h (spread_limit): New external variable.
5632         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5633         `output_warning'.
5634         (distribute_space): Emit warning if added space is larger than
5635         `spread_limit'.
5636         (environment::possibly_break_line): Emit warning if a line can't
5637         be adjusted on both sides.
5639         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5641 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5643         * src/roff/troff/node.cc (special_node::special_node): Use
5644         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5645         \X''\% crashes, for example.
5647         * doc/groff.texinfo: Document \! and \? used at top-level.
5649 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5651         * src/preproc/pic/pic.man: Fix some keyword syntax.
5652         Other minor typographical fixes.
5654         * src/roff/groff/groff.man: Fix typos.
5656 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5658         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5659         (ShortOpt[]): This to avoid problems with refer.
5661         * doc/pic.ms: Fix typo.
5662         Fix pic grammar description.
5664         * tmac/an-old.tmac (ne): Use de1, not de.
5666 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5668         * doc/groff.texinfo: Finished separation of glyphs and characters.
5669         Don't use the string `Appendix' for appendix headers (both in
5670         the text and the table of contents).
5671         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5672         directories.
5674         Use registers LL and LT (similar to -ms) for controlling the
5675         length of title and line, respectively, in the -man and -mdoc
5676         macro packages.
5678         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5679         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5680         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5681         (TH): Use \n[LL].
5682         (an-header, an-p-footer): Use \n[LT].
5683         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5684         doc/groff.texinfo: Document it.
5686 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5688         * doc/fdl.texi: New file.
5689         * doc/groff.texinfo: Include it.
5690         Define and use @copying.
5691         Starting with separating glyph, symbol, and character.
5693 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5695         * Makefile.in (EXEEXT): Set it.
5696         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5697         programs.
5699         * src/include/nonposix.h: Define GS_NAME.
5700         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5702         Some preliminary changes for EMX support under OS/2.
5704         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5705         __EMX__ similar to __MSDOS__.
5706         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5708 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5710         * doc/groff.texinfo: Integrated groff_out.man.
5711         Some macro fixes.
5713 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5715         * man/groff_out.man: Minor fixes.
5717 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5719         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5720         correct page references.
5721         Fixed many index entries.
5723 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5725         * man/roff.man: Enlarged.
5727 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5729         * doc/groff.texinfo: More examples, other fixes.
5731 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5733         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5734         will now form a chain, e.g.
5736           .pi foo
5737           .pi bar
5739         is now the same as
5741           .pi foo | bar
5743         This is for compatibility with plan 9's troff.
5745         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5746         with UNIX troff.
5747         * NEWS: Updated.
5749         * doc/groff.texinfo: Add documentation of remaining requests and
5750         registers.
5752 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5754         * doc/groff.texinfo: Add documentation of remaining escapes.
5756         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5757         * font/devdvi/*TC: Regenerated.
5759 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5761         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5762         if not in compatibility mode, i.e., increment relative to the
5763         previous height.
5764         * doc/groff.texinfo: Updated accordingly.
5766 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5768         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5770 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5772         * src/roff/groff/groff.man: Improve documentation of -P option.
5773         Other minor fixes.
5775 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5777         Add new escape \F to switch font family.
5779         * src/roff/troff/input.cc (token::next): Handle \F.
5780         * src/roff/troff/env.cc (environment::set_family): Handle
5781         `interrupted' flag.
5782         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5783         Document it.
5785 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5787         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5788         spaces in tags.
5790 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5792         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5793         \m[] and \M[], respectively.
5795         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5796         (symbol::symbol): Handle NULL string and empty string differently.
5797         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5798         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5799         Add optional parameter.
5800         Updated calling functions.
5801         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5802         `symbol::is_empty'.
5803         * src/roff/troff/env.cc (environment::set_font): Ditto.
5805         * src/preproc/pic/troff.cc (troff_output::set_fill,
5806         troff_output::reset_color: Updated.
5808         * tmac/www.tmac: Updated.
5810         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5811         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5812         Updated.
5814         * tmac/Xps.tmac: Remove some redundant code.
5816         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5817         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5818         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5819         \f[].
5821 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5823         * src/include/printer.h, src/libs/libdriver/printer.cc
5824         (printer::change_fill_color): New member function.
5825         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5827 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5829         * doc/groff.texinfo: Completed pass on gtroff reference.
5831 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5833         * doc/groff.texinfo: More fixes.
5835 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5837         * src/include/color.h: Decorate with `const'.
5838         Use `size_t'.
5839         Include `stddef.h'.
5840         * src/libs/libgroff.color.cc: Decorate with `const'.
5841         Use `size_t'.
5842         (color::color): Initialize members.
5843         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5844         command according to the documentation.
5846         * man/groff_out.man: Updated.
5847         Minor fixes.
5849 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5851         * src/preproc/html/pre-html.cc (write_start_image): Remove
5852         redundant output.
5853         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5855         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5856         \C'hy' caused an assertion failure.
5858         * src/roff/troff/env.cc (environment::environment): Initialize
5859         `emitted_node'.
5860         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5862 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5864         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5865         Document pvs request and .pvs register.
5867 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5869         * doc/groff.texinfo: Improve and fix documentation of diversions
5870         and environments.
5872 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5874         * doc/groff.texinfo: Fix documentation of drawing functions.
5875         Other minor fixes.
5877 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5879         * doc/groff.texinfo: Better documentation of double quotes as
5880         arguments.
5881         Other minor fixes.
5883 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5885         * man/groff_font.man: Document names of special characters better.
5886         * doc/groff.texinfo: Minor improvements.
5888         * tmac/lbp.tmac: Load latin1.tmac.
5889         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5891         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5893 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5895         * tmac/tty.tmac: Don't use shc request.
5896         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5897         * NEWS: Updated.
5899         * man/groff_diff.man: Minor fixes.
5901         * font/devlbp/*: Remove all `charXXX' entities.
5903         * src/libs/libgroff/font.cc (font::~font): Deallocate
5904         `special_device_coding'.
5905         (font::load): Use `new' for allocating `special_device_coding'.
5906         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5907         Removed unused member.
5909 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5911         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5912         (resource_manager::do_begin_binary,
5913         resource_manager::do_begin_data): Use it.
5915         * doc/texinfo.tex: Updated to version 4.2.
5917         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5918         (token::zero_width_break): New inline function.
5919         * src/roff/troff/input.cc (token::next): Use it.
5920         (token::description): Updated.
5921         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5922         (token::add_to_node_list, token::process): Use it.
5923         * NEWS, doc/groff.texinfo: Updated.
5925         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5926         * tmac/tty.tmac: Add missing backslash.
5928 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5930         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5931         `.ps' register instead of `.s' to handle fractional point sizes.
5932         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5933         limit_box::output): Ditto.
5934         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5935         size_box::output): Ditto.
5936         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5937         over_box::output): Ditto.
5938         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5939         script_box::output): Ditto.
5940         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5941         sqrt_box::output): Ditto.
5943 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5945         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5946         Fix typo.
5948 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5950         * doc/homepage.ms: Reduce title size.
5951         * doc/groff.texinfo: Fix documentation of .t register.
5952         Fix handling of colon.
5953         Fix `\' vs. `\\'.
5955         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5956         only if page length is positive to avoid a loop.
5958         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5959         tbl.
5961 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5963         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5964         s/__CYGWIN32__/__CYGWIN__/.
5966 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5968         * doc/gnu.xpm: New image contributed by Emily Mulley.
5969         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5970         (homepage.html): Be dependent on gnu.eps.
5971         * doc/homepage.ms: Updated to new image.
5973         * src/devices/grohtml/post-html.cc (html_printer): New member
5974         `sbuf_prev_hpos'.
5975         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5976         (html_printer::sbuf_continuation): Use it.
5978 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5980         * src/libs/libgroff/getopt.c: Updated to latest version.
5982         * tmac/README: More on hyphen.tex license.
5984 2002-03-26  Larry Kollar  <kollar@alltel.net>
5986         * doc/groff.texinfo: Add documentation of most missing requests.
5988 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5990         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5991         of `+-', `mu', and `di', respectively.
5993         * font/devascii/R.proto, font/devutf8/R.proto,
5994         font/devlatin1/R.proto, font/devhtml/R.proto,
5995         font/devcp1047/R.proto, font/devlpb/*: Add them.
5996         * font/devps/generate/textmap: Ditto.
5997         * font/devps/*: Regenerated.
5998         * font/devlj4/generate/text.map: Add them.
5999         * font/devlj4/*: Regenerated.
6000         * font/devdvi/generate/tc.map: Use them.
6001         * font/devdvi/generate/texsy.map: Add them.
6002         * font/devdvi/*: Regenerated.
6003         * font/devX*/*: Regenerated.
6005         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6006         tmac/tty-char.tmac: Updated.
6008         * NEWS, man/groff_char.man: Updated.
6010 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6012         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6013         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6014         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6015         we use `.fchar' in dvi.tmac.
6016         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6017         * tmac/Xps.tmac: Simplify some char definitions.
6018         Add definition for \[f/].
6019         * man/groff_char.man: Updated for new X.tmac.
6021         * tmac/README: New file.
6023 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6025         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6026         internal .y.o rule took precendence over the .y.cc rule, compiling
6027         the yacc files with gcc instead of g++.
6029 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6031         * tmac/dvi.tmac: Add replacement font for `CB'.
6033         * tmac/doc.tmac: s/request/macro/ in messages.
6034         (doc-generic-macro): Improve error message.
6035         * tmac/groff_mdoc.man: Minor improvements.
6037 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6039         * doc/groff.texinfo: Document possible conflict between `tr' and
6040         `char' requests.
6042 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6044         Improve handling of hyphenation patterns.  It is now possible to
6045         use most of TeX's pattern files unmodified.  To make the process
6046         more flexible, a new request `hpfcode' has been added which
6047         provides a character code mapping for the `hpf' request.  See
6048         comment before hpf_getc() for more details.
6050         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6051         functions.
6052         (read_patterns_file): Additional parameter for exception dictionary.
6053         Extended to recognize \pattern, \hyphenation, and \endinput.
6054         (do_hyphenation_patterns_file): Updated.
6055         * src/roff/troff/env.h (hpf_code_table): New extern.
6057         * src/roff/troff/input.cc (hpf_code_table): New array.
6058         (init_hpf_code_table, hyphenation_patterns_file_code): New
6059         functions.
6060         (hyphenation_code): Handle translation from `trin' correctly.
6061         (main, init_input_requests): Updated.
6062         (charinfo::set_translation): Handle hyphenation code also.
6064         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6065         inline function.
6067         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6068         char' is used for offsets in hyphenation exceptions.
6070         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6072         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6074 2002-03-20  Larry Kollar  <kollar@alltel.net>
6076         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6077         requests.
6079 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6081         * tmac/html.tmac: Fix serious typo.
6083 2002-03-17  Larry Kollar  <kollar@alltel.net>
6085         * doc/groff.texinfo: Add documentation for `writec' request.
6087 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6089         Added request `hpfa' to append hyphenation patterns.
6091         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6092         parameter `append'.
6093         (hyphenation_patterns_file): Renamed to...
6094         (do_hyphenation_patterns_file): This.
6095         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6096         functions.
6097         (init_hyphen_requests): Updated.
6098         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6100 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6102         Added request `writec' in analogy to `tmc'.
6104         * src/roff/troff/input.cc (write_request): Renamed to...
6105         (do_write_request): This.
6106         Added one parameter.
6107         (write_request, write_request_continue): New functions.
6108         (init_input_requests): Updated.
6109         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6111         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6112         5-10000pt.
6113         * NEWS: Document it.
6115 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6117         * man/groff.man: Add writem request.
6119         Add request `trin' (translate input) to make `.asciify' work
6120         correctly.  This is necessary since `charXXX' entity names are no
6121         longer hardcoded in font definition files.
6123         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6124         `translate_input' members.
6125         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6126         charinfo::set_translation_input): New methods.
6127         (charinfo::set_translation): Add third argument.
6128         * src/roff/troff/input.cc (charinfo:set_translation): Set
6129         `asciify_code'.
6130         (do_translate): Add second argument.
6131         (translate_input): New function.
6132         (init_input_requests): Updated.
6133         * src/roff/troff/node.cc (glyph_node::asciify,
6134         composite_node::asciify): Use `get_asciify_code'.
6136         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6138         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6140 2002-03-14  Larry Kollar  <kollar@alltel.net>
6142         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6144 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6146         Add a new request `sizes' similar to the `sizes' command in DESC
6147         files.
6149         * src/roff/troff/env.cc (override_sizes): New function.
6150         (init_env_requests): Use it.
6151         * src/roff/troff/token.h: Export `read_string'.
6152         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6154 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6156         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6158 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6160         * tmac/pspic.tmac: Add support for -Tdvi.
6161         * tmac/dvi.tmac: Include pspic.tmac.
6162         * src/devices/grodvi/grodvi.man: Document it.
6163         * NEWS: Updated.
6165         * font/devlj4/generate/Makefile: Fix URL of metric files.
6167 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6169         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6171 2002-03-09  Larry Kollar  <kollar@alltel.net>
6173         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6175 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6177         * doc/groff.texinfo: Fixes for texinfo 4.1.
6179 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6181         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6182         included.
6183         Handle CYGWIN properly.
6185 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6187         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6188         * tmac/lbp.tmac: Add some font translations.
6190 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6192         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6193         font/devhtml/R.proto: Remove `charXXX'  entries.
6194         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6195         where appropriate.
6197         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6198         * font/devlj4/*: Regenerated all font definition files.
6199         * tmac/lj4.tmac: Load latin1.tmac.
6201         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6202         from 2000-06-17: LJ4 metric files are *not* text files.
6204         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6205         register to test for EBCDIC.
6207 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6209         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6210         files (as grops already does).
6211         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6212         files.
6213         * src/devices/grops/grops.man: Document comment lines in encoding
6214         files.
6216         * tmac/cp1047.tmac: New file.
6217         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6218         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6219         * tmac/Makefile.sub (NORMALFILES): Updated.
6221         * tmac/ec.tmac: Don't load latin1.tmac again.
6223         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6224         font/devps/generate/dingbats.map,
6225         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6226         font/devps/generate/Makefile (symbolmap): Add header comment.
6227         * font/devps/generate/textmap: Ditto.
6228         Remove `charXXX' entries.
6229         * font/devps/symbolmap: Regenerated.
6230         * font/devps/*: Regenerated all font definition files.
6232 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6234         Add color support to grodvi (for drawing colors are currently
6235         translated to gray values).
6237         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6238         (dvi_printer): Add `cur_color' member.
6239         (dvi_printer::set_color): New function.
6240         (draw_dvi_printer): Remove `fill'.
6241         (draw_dvi_printer::fill_next): Pass environment as parameter.
6242         Update code for new color support translated to gray.
6243         (dvi_printer::set_char): Updated.
6244         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6245         changes crossing the page border.
6246         (dvi_printer::draw): Updated.
6247         Remove cases `f' and `F'.
6248         * tmac/dvi.tmac: Add color definitions.
6249         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6251         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6252         used incorrectly.
6254         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6255         versions of autoconf.
6256         * configure: Updated.
6258         * doc/homepage.ms: Use `.blm'.
6259         * tmac/www.tmac (www-depth): New auxiliary variable.
6260         (www-pop-level): Don't issue HTML tag.
6261         (ULS, ULE, LI): Use absolute indentation.
6263         * src/devices/grops/ps.cc (ps_printer::begin_page,
6264         ps_printer::end_page): Switch forth and back to default color while
6265         starting a new page.
6267 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6269         Add EC and TC fonts to devdvi.
6271         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6272         * font/devdvi/generate/cork.map: Renamed to...
6273         * font/devdvi/generate/ec.map: This.
6274         Remove entry for `aq'.
6275         * font/devdvi/generate/tc.map: New file.
6276         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6277         EC and TC fonts.
6278         (FONTS): Updated.
6279         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6280         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6281         * tmac/ec.tmac: New file.
6282         * tmac/Makefile.sub (NORMALFILES): Updated.
6283         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6284         * man/groff_char.man: Check `ECFONTS' register.
6286         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6288 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6290         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6291         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6292         * font/devdvi/*: Updated.
6293         * tmac/dvi.tmac: Formatting.
6295         Add font `HBI' for the dvi output.
6296         Add support for font families `T' and `H'.
6298         * font/devdvi/HBI: New file.
6299         * font/devdvi/B: Renamed to ...
6300         * font/devdvi/TB: This.
6301         * font/devdvi/BI: Renamed to ...
6302         * font/devdvi/TBI: This.
6303         * font/devdvi/I: Renamed to ...
6304         * font/devdvi/TI: This.
6305         * font/devdvi/R: Renamed to ...
6306         * font/devdvi/TR: This.
6307         * font/devdvi/H: Renamed to ...
6308         * font/devdvi/HR: This.
6309         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6310         * font/devdvi/generate/Makefile (HBI): New rule.
6311         (FONTS): Updated.
6312         (R, I, B, BI, H): Renamed to ...
6313         (TR, TI, TB, TBI, HR): This, respectively.
6314         (srcdir): Fixed.
6315         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6316         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6317         Add `styles' and `family' keywords.
6318         * tmac/dvi.tmac: Alias `H' to `HR'.
6319         Add some fspecial requests for italic fonts.
6320         Add TR and TI as special.
6321         Add support for `_' with font CWI.
6323         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6324         operator `:'.  Until now, the expression `0:1' would return 2
6325         instead of 1.
6327 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6329         * man/groff_char.man: Added some missing PS glyph names (from the
6330         Adobe Glyph List).
6331         * font/devps/generate/textmap, font/devps/symbolmap: Add
6332         `arrowupdn'.
6334         * doc/groff.texinfo: Minor additions and fixes.
6335         * man/groff_diff.man: Remove documentation of fp request.  This
6336         is already covered in the original troff manual.
6337         Updated to be consistent with other doc files.
6338         * NEWS: Updated.
6340 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6342         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6343         TTYDEVDIRS.
6344         Define new variable OTHERDEVDIRS (containing `font/devlj4
6345         font/devlbp' if not EBCDIC).
6346         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6347         (OTHERDEVDIRS): New variable.
6348         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6349         * configure: Regenerated.
6351         * NEWS, src/devices/grotty/grotty.man: Updated.
6353 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6355         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6356         get_line_arg): Honour input level.
6358         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6360         * font/*/*: Implement it in all font files.
6361         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6362         * font/devps/symbolmap: Updated.
6363         * font/devlj4/generate/text.map: Updated.
6364         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6365         * font/devdvi/generate/texmi.map: Updated.
6367         * font/devutf8/R.proto: Remove all `charXXX' entries.
6368         * font/devutf8/NOTES: Updated.
6370         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6371         version 4.1.0.
6373         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6375         * NEWS, man/groff_char.man: Updated.
6377 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6379         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6381 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6383         * src/roff/grog/grog.pl: Fix computation of $refer.
6385 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6387         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6388         `snprintf' and `vsnprintf'.
6390         * src/include/htmlindicate.h: Renamed to...
6391         * src/include/htmlhint.h: This.
6392         * src/include/Makefile.sub: Updated.
6393         * src/preproc/eqn/main.cc: Updated.
6395 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6397         * man/roff.man, man/groff_out.man, man/groff.man,
6398         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6399         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6401         * win32-diffs: Updated.
6403 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6405         * doc/Makefile (clean): Add *.eps.
6406         (MEMACROS): Removed.
6407         (TFLAG): New variable.
6408         (TROFF): Use it.
6409         Add -ww.
6410         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6411         (.me.dit): Fixed.
6412         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6414         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6415         `.tl'.
6416         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6417         unstripped.
6418         * src/roff/troff/troff.man: Fix order of parameter description.
6420         * NEWS: Updated.
6422 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6424         Simplify image handling for grohtml.
6425         Fix <p> bug.
6427         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6428         comment out.
6429         (html_text::dump_stack): Don't emit newline while debugging.
6430         (html_text::do_push) [DEBUGGING]: Print more info.
6431         (html_text::check_emit_text): Fix handling of <p>.
6432         * src/devices/grohtml/html.h: Updated.
6433         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6434         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6435         send its data to stderr also.
6436         Update all callers.
6437         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6438         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6439         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6441         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6442         Removed.
6443         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6444         is_inline_image): Removed.
6445         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6446         (graphic_start, graphic_end): Removed.
6447         * src/include/htmlindicate.h: Updated.
6448         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6449         (macroset_template): New global variable.
6450         (makeFileName): Use `macroset_template'.
6451         (write_end_image): Don't take a parameter.
6452         Don't emit newline.
6453         (write_start_image: Don't emit newline.
6454         (char_buffer::write_upto_newline): Updated.
6455         (char_buffer::skip_to_newline): Renamed to ...
6456         (char_buffer::skip_until_newline): This.
6457         Fix code.
6458         (char_buffer::write_file_troff, char_buffer::write_file_html):
6459         Simplified.
6460         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6461         (removeAllPages): Remove `DEBUGGING' conditionals.
6462         (addRegDef, dump_args): New functions.
6463         (char_buffer::do_html, char_buffer::do_image): Handle
6464         `www-image-template' command line variable.
6465         Add more debugging code.
6466         (addps4html): Removed.
6467         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6469         * src/preproc/eqn/main.cc: Include `ctype.h'.
6470         (suppress_html): Removed.
6471         (do_file): Updated.
6472         (inline_equation): Use `html_begin_suppress' and
6473         `html_end_suppress'.
6474         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6475         (troff_output::start_picture, troff_output::finish_picture):
6476         Updated.
6477         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6478         (process_input_file): Updated.
6480         * src/roff/troff/div.cc (page_number): Set page number only if the
6481         `ps4html' register isn't defined.
6482         * src/roff/troff/input.cc (image_no): New external variable.
6483         (do_suppress): Use it.
6484         * src/roff/troff/node.h (suppress_node::image_id): New member.
6485         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6486         (suppress_node::suppress_node): Initialize `image_id' member.
6487         (suppress_node::same): Handle `image_id' also.
6488         (suppress_node::copy): Updated.
6489         (last_image_id): New global variable.
6490         (suppress_node::tprint): Use it.
6492         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6493         HTML-IMAGE-END.
6494         * tmac/pspic.mac (PSPIC): Fix html support.
6495         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6496         * tmac/www.tmac (www-image-template): Set up.
6497         (HTMLINDEX): Renamed to...
6498         (HX): This.
6499         (BODYCOLOR): Renamed to...
6500         (BCL): This.
6501         (BACKGROUND): Renamed to...
6502         (BGIMG): This.
6503         (URL): Change order of parameters for consistency.
6504         (MAILTO): Renamed to...
6505         (MTO): This.
6506         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6507         (IMG, PIMG, MPIMG): This.
6508         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6509         (HnS, HnE): This.
6510         (LINKS): Renamed to...
6511         (LK): This.
6512         (LINE): Renamed to...
6513         (HR): This.
6514         (NO-AUTO-RULE): Renamed to...
6515         (NHR): This.
6516         (HTML-TL): Renamed to...
6517         (HTL): This.
6518         (UL-BEGIN, UL-END): Renamed to...
6519         (ULS, ULE): This.
6520         (DROPCAP): Renamed to...
6521         (DC): This.
6522         (TS, TE, EQ, EN): Provide default definitions.
6523         (www-make-unique-name): Updated.
6524         (HTML-IMAGE-INLINE): Fix typo.
6525         * tmac/groff_www.man: Updated.
6527         * doc/Makefile (homepage.html): Add option -r to grohtml.
6528         Use shortened image name.
6529         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6530         * doc/homepage.ms: Updated and extended.
6532 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6534         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6536         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6537         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6538         (tty_printer::put_color): Use it.
6539         (ttr_printer::end_page): Simplify.
6541 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6543         * tmac/groff_tmac.man: Moved to...
6544         * man/groff_tmac.man: This place.
6545         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6547 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6549         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6550         $(COMPILE.c) to not include groff's assert.h.
6552         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6553         variable.
6554         * NEWS, src/drivers/grotty/grotty.man: Document it.
6556 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6558         * src/libs/snprintf/snprintf.c: Updated to latest version
6559         (2002-02-11).
6561         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6562         test whether there is `.]' also.
6563         Don't check for spaces after `.['.
6564         * src/roff/grog/grog.sh: Do the same.
6566 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6568         Illegal -> Invalid.
6570         * src/libs/libgroff/illegal.cc: Renamed to ...
6571         * src/libs/libgroff/invalid.cc: This.
6572         (illegal_char_table): Renamed to ...
6573         (invalid_char_table): This.
6574         * src/libs/libgroff/Makefile.sub: Updated.
6575         * win32-diffs: Updated.
6577         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6578         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6579         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6580         font::load), src/preproc/eqn/main.cc (read_line, main),
6581         src/preproc/eqn/lex.cc (file_input::read_line),
6582         src/preproc/pic/lex.cc (file_input::read_line,
6583         simple_file_input::get, simple_file_input::peek),
6584         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6585         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6586         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6587         do_bib), src/preproc/tbl/main.cc (table_input::get),
6588         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6589         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6590         do_zero_width, read_request, encode_char, ps_get_line,
6591         transparent_file, get_char_for_escape_name, transparent_translate,
6592         asciify, input_char_description, read_string, set_string),
6593         src/roff/troff/env.cc (environment::add_html_tag),
6594         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6596         * src/include/lib.h: Updated.
6598         * src/preproc/eqn/eqn.cc: Removed.
6600         * NEWS: Updated.
6602         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6604 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6606         * doc/gnu.xpm: New image.
6607         * doc/Makefile (DOCS): Add homepage.ps.
6608         Add rules for converting xpm->png and xpm->eps.
6609         Use `gnu.{xpm,eps}' as image names.
6610         * doc/homepage.ms: Updated.
6612 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6614         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6615         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6616         Remove calls to `B1' and `B2'
6617         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6618         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6619         auxiliary variables for MARGIN-PNG-IMAGE.
6620         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6621         auxiliary macros for MARGIN-PNG-IMAGE.
6622         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6623         the margin.
6624         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6625         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6626         (DROPCAP): New macro to produce dropcap characters.
6627         (www-do-image): Renamed back to...
6628         (HTML-DO-IMAGE): This.
6629         Updated all callers.
6631         * doc/Makefile (gnubw.eps): Updated.
6632         * doc/homepage.ms: Updated.
6634 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6636         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6637         Added `linethick' to table in section `Style Variables'.
6639 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6641         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6643 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6645         Adding options -C (compatibility mode) and -c (grotty's old output
6646         scheme) to nroff.
6648         * src/roff/nroff/nroff.sh: Implement it.
6649         Remove `-Wall'.
6650         * NEWS, src/roff/nroff/nroff.man: Updated.
6652         * PROBLEMS: Document bison 1.32 bug.
6654         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6656         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6657         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6658         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6659         * src/roff/troff/env.h: Add prototype for `title'.
6661         Adding EBCDIC support to grotty.
6663         * src/devices/grotty/tty.cc (CSI): New macro.
6664         (SGR_*, tty_printer::put_color): Use it.
6666 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6668         Implementing color support in grotty.  The new switch -c activates
6669         the old drawing scheme, disabling color at the same time.  The new
6670         switch `-i' selects italic instead of underlining (SGR only).
6672         * src/devices/grotty/tty.cc (putstring): New define instead of
6673         `fputs'.  Updated all callers.
6674         (old_drawing_scheme): New global variable.
6675         (COLOR_CHANGE): New enum value.
6676         (SGR_*): New defines containing color handling escape sequences.
6677         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6678         (glyph): New members `back_color_idx' and `fore_color_idx'.
6679         (glyph::order): Add COLOR_CHANGE.
6680         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6681         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6682         New methods `make_underline', `make_bold', `color_to_idx',
6683         `change_color', `put_color'.
6684         (cu_flag): Moved into `tty_printer' class.
6685         (tty_printer::tty_printer): Initialize colors.
6686         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6687         tty_printer::draw, tty_printer::end_page): Handle colors also.
6688         (main): Add options `-c' and `-i'.
6689         (usage): Updated.
6690         * NEWS, src/devices/grotty/grotty.man: Updated.
6692         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6693         * src/libs/libgroff/errarg.c: Implement it.
6695         * src/include/printer.h (printer): Add `change_color' method
6696         (currently used by grotty only).
6697         * src/libs/libdriver/printer.cc: Implement it.
6698         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6699         call to `pr->change_color'.
6701         * src/roff/troff/node.cc (troff_output_file::fill_color,
6702         troff_output_file::glyph_color): Call `do_motion'.
6704         * tmac/tty.tmac: Add color definitions.
6706         * src/roff/groff/groff.man: Minor fixes.
6708 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6710         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6711         it.  This is a preparation for future changes.
6713 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6715         * src/roff/troff/input.cc (process_input_stack): Fix the case
6716         where leading spaces are followed by \f or \s; previously, an
6717         incorrect space width has been used.
6719         * doc/roff.man (quoted_char): Fix argument.
6720         (comment): Define string.
6722 2002-02-04  Larry Kollar  <kollar@alltel.net>
6724         * doc/groff.texinfo: More fixes.
6726 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6728         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6729         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6730         `restore_compatibility' before `output_string' -- the LINE_STRING
6731         register now already contains proper switches from and to
6732         compatibility mode.
6734         * man/groff_char.man: Add Euro symbol.
6735         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6736         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6737         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6738         Other minor fixes.
6740         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6741         texinfo->pdf.
6742         (.texinfo.html): Add support for texinfo->html.
6744 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6746         Added three new requests `ds1', `as1', and `ami'.  The former two
6747         are equivalent to `ds' and `as' with the difference that
6748         compatibility mode is saved on entry, switched off during string
6749         expansion, and restored on exit.  The latter is the pendant to `dei'
6750         for `am'.
6752         (do_define_string): Use `define_mode' and `calling mode'.
6753         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6754         end of string, respectively.
6755         (define_string, append_string): Use `calling_mode'.
6756         (define_nocomp_string, append_nocomp_string,
6757         define_string_indirect): New functions.
6758         (init_input_requests): Updated.
6759         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6761         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6762         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6763         mm macro package accesses this string register directly.
6764         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6766         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6767         compatibility mode.
6769 2002-02-02  Larry Kollar  <kollar@alltel.net>
6771         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6773 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6775         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6777 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6779         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6780         * man/groff_out.man: Revised and updated.
6782 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6784         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6785         out the unused `{' and `}' commands.  Undefined by default.
6786         (IntArray): Make `data' private.
6787         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6788         new methods instead.
6789         (skip_line_D, skip_to_end_of_line): New functions.
6790         (get_D_fixed_args): Use `skip_line_D'.
6791         Changed to handle dummy odd arguments by ...
6792         (get_D_fixed_args_odd_dummy): This new function.
6793         (get_D_variable_args): Split some code into ...
6794         (get_possibly_integer_args): This new function.
6795         (send_draw): Use more `const'.
6796         (delete_current_env): New function.
6797         (position_to_end_of_args): Use `size_t'.
6798         Updated.
6799         (send_draw): Updated.
6800         (parse_D_command): Handle `c', `C', and `t' better.
6801         Updated.
6802         (do_file): Updated.
6804 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6806         * NEWS: Revised.
6807         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6808         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6809         proper HTML output -- see the comment in the file for more
6810         information.
6811         Updated all calls.
6813 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6815         Fixes to make color changes of 2002-01-21 work with grohtml.
6817         * src/devices/grohtml/post-html.cc (style): Updated.
6818         (html_printer): Remove unused methods.
6819         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6820         html_printer::special): Updated.
6821         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6822         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6823         Added some debugging code.
6824         (html_text::start_tag): Updated.
6825         (html_text::do_push): New method.
6826         (html_text::push_para): Call it.
6827         Add method for handling color.
6828         (html_text::do_color): Updated.
6829         (html_text::shutdown): Handle color.
6830         * src/devices/grohtml/html-text.h (tag_definition): New member
6831         `col'.
6832         Updated.
6834 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6836         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6838 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6840         Add two switches -a and -g to control the antialiasing bits for
6841         text and graphics, respectively.
6843         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6844         `-g'.
6845         * src/devices/grohtml/grohtml.man: Document them.
6846         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6847         New macros.
6848         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6849         (setupAntiAlias): New function.
6850         (createAllPages): Updated.
6851         (scanArguments): Handle `-a' and `-g'.
6852         (main): Call `setupAntiAlias'.
6853         * NEWS: Updated.
6855 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6857         * doc/groff.texinfo (Def*): Call index function after deffn.
6859         * tmac/html.tmac: Call `nroff' request.
6861 2002-01-26  Larry Kollar  <kollar@alltel.net>
6863         * tmac/groff_ms.man: Add some omissions.
6865 2002-01-25  Larry Kollar  <kollar@alltel.net>
6867         * tmac/groff_ms.man: Typographical improvements.
6869 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6871         * doc/groff.texinfo: Updated version and copyright.
6872         * src/devices/grops/grops.man: Updated.
6874         * tmac/groff_tmac.man: Fix `ig' macro.
6876         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6877         nroff mode.
6878         Use `.ne' unconditionally everywhere.
6879         (TS): Only insert some vertical space.  Doing a page break is no
6880         longer necessary due to the redefinition of the `ne' request.
6882         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6883         warning for unknown subcommands but parse and pass them to the
6884         device driver.
6886 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6888         * tmac/groff_www.man, NEWS: Fix typos.
6890 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6892         Complete revision of color support:
6894           Adapt programs to the new libdriver/input.cc.
6896           Color spaces are no longer converted to RGB but transferred as-is
6897           in the troff intermediate output format.
6899           Handle default color gracefully.  troff now supports a `default'
6900           color (which can't be changed).
6902           grops will now use the proper color space functions if available.
6904           Update pic.
6906         Note that currently grohtml doesn't handle colors properly.  This
6907         has to be fixed.
6909         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6910         (ui_to_a): New function.
6911         * src/include/lib.h: Updated.
6913         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6914         (color): Simplified; removed all `double' members and methods.
6915         A new array `components' now holds the color parameters.
6916         (color::is_default, color::get_components): New methods.
6917         (color::operator==, color:operator!=): New.
6918         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6919         to make access to the `components' array more comprehensible.
6920         * src/libs/libgroff/color.cc: Implement new color support.
6921         (atoh): Small fixes.
6922         (color::read_encoding): Simplified for new troff intermediate color
6923         output format.
6924         (default_color): New global variable.
6926         * src/roff/troff/input.cc (default_symbol): New global variable.
6927         (lookup_color): Use it.
6928         (default_black): Removed.
6929         (do_glyph_color, do_fill_color): Simplified.
6930         (define_color): Handle default color.
6931         Improve warnings.
6932         (do_if_request): Handle default color.
6933         * src/roff/troff/env.cc (environment::environment): Initialize
6934         colors with `default_color'.
6935         * src/roff/troff/node.cc (troff_output_file::put): Add method
6936         for `unsigned int'.
6937         (troff_output_file::hex): Removed.
6938         (troff_output_file::fill_color, troff_output_file::glyph_color):
6939         Updated to include/color.h and libdriver/input.cc.
6941         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6942         fill color properly (identically to the outline color).  \D'f...'
6943         doesn't work any more.
6944         All function calls to it updated.
6946         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6947         Updated.
6948         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6949         Updated.
6951         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6952         (ps_printer::sbuf_color): Make a real member instead of pointer.
6953         (ps_printer::fill_color, ps_printer::output_color): Removed.
6954         (ps_printer::ps_printer): Updated.
6955         (ps_printer::set_char): Ditto.
6956         (ps_printer::set_color): Use various color schemes.
6957         Use `put_color' method.
6958         (ps_printer::flush_sbuf): Don't set color.
6959         (ps_printer::fill_path): Take `environment' as parameter.
6960         Simplify color handling.
6961         (ps_printer::set_line_thickness): Renamed to ...
6962         (ps_printer::set_line_thickness_and_color): This (and updated).
6963         (ps_printer::set_color): Change second parameter from `complete'
6964         to `fill' which better describes what it does.
6965         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6966         and text in the right order.
6967         Updated.
6968         Remove branches for `f' and `F'; this is handled by
6969         libdriver/input.cc.
6970         * src/devices/grops/ps.h: Updated.
6971         * font/devps/prologue (FL): Redefined.
6972         ({F,C}r,k,g: New color functions (with and without filling).
6974         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6975         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6976         doc/groff.texinfo, NEWS: Updated.
6978 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6980         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6981         in this file for what has been changed.
6983 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6985         * test-groff: Fix GROFF_FONT_PATH.
6986         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6987         is read before .TH or .Dd is parsed.
6989 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6991         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6992         quadrant boundaries.
6994 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6996         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6997         applied last patch.
6999 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7001         * tmac/doc.common: Initialize %I register for the %I macro to
7002         avoid (harmless) warning.
7003         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7004         when in the SYNOPSIS section.
7006 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7008         * src/preproc/pic/lex.cc (get_token): Fix typo.
7010 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7012         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7014 2002-01-17  Larry Kollar  <kollar@alltel.net>
7016         * tmac/groff_ms.man: Completely rewritten.
7018 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7020         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7022 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7024         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7025         fill colors.
7026         (ps_printer::draw): Ditto.
7028 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7030         * tmac/groff_mdoc.man: Minor fixes.
7032 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7034         * man/groff_out.man: Some fixes.
7036 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7038         * doc/pic.ms: Fix typos.
7040 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7042         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7044 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7046         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7047         symbols.
7048         * NEWS: Updated.
7050 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7052         * man/groff_out.man: Revised.
7053         * man/roff.man: Minor fixes.
7054         * src/roff/troff/troff.man: Some reordering.
7056 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7058         * tmac/an-old.tmac: Add dummy macros for equation support.
7060 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7062         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7064         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7065         man pages.
7066         * tmac/groff_man.man: Small improvements.
7068 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7070         * man/groff_diff.man: Revised.
7072 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7074         * tmac/www.tmac: Remove extraneous backslash.
7076 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7078         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7080 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7082         Integrated groffer, contributed by Bernd Warken.
7084         * contrib/groffer/*: New.       
7085         * Makefile.in, NEWS: Updated.
7087 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7089         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7090         registers defined in macro packages.
7091         Revising the ms part.
7093 2002-01-04  Larry Kollar  <kollar@alltel.net>
7095         * doc/groff.texinfo: Add documentation for ms macros.
7097 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7099         First step in adding PS support for the Euro symbol.  `eu' is the
7100         official Euro logo, `Eu' is a font-specific glyph variant.
7102         * font/devps/text.enc: Add `Euro' at position 9.
7103         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7104         * font/devps/symbolmap: Regenerated.
7106         * NEWS: Updated.
7108 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7110         * man/roff.man: Revised.
7112 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7114         * src/roff/groff/groff.man: Completely rewritten.
7116 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7118         * doc/Makefile: Updated.
7120 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7122         * tmac/www.tmac: Make all names of internal macros/registers/strings
7123         lowercase, and prepend `www-'.
7124         Other minor changes.
7125         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7127 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7129         Implement option `-b' in grohtml to set the HTML background colour.
7131         * src/devices/grohtml/post-html.cc (default_background): New global
7132         variable.
7133         (html_printer::html_printer): Initialize `background' to
7134         `default_background'.
7135         (main): Implement option `-b'.
7136         (usage): Updated.
7137         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7138         of `-b' option.
7139         * src/devices/grohtml/grohtml.man: Updated.
7140         * doc/Makefile (.ms.html): Use `-b'.
7141         * tmac/html.tmac: Don't set background color.
7143         Add new grohtml tag `.html-tl'.
7145         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7146         member variable.
7147         (title_desc::title_desc): Updated.
7148         (html_printer::troff_tag): Handle `.html-tl'.
7149         (html_printer::write_title): Use `with_h1'.
7150         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7151         (HTML-TL): New macro.
7153         Add support for unordered lists in HTML.
7155         * tmac/www.tmac (www-level): New auxiliary register.
7156         (www-level1, www-level2, www-level3): New auxiliary strings.
7157         (www-push-level, www-pop-level): New auxiliary macros
7158         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7160         Miscellaneous.
7162         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7163         (DEFAULT_VERTICAL_OFFSET): Removed.
7164         (IMAGE_BOARDER_PIXELS): Set to 0.
7165         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7166         (vertical_offset): Initialize with 0.
7167         (gsPaper): New global variable.
7168         (get_resolution): Scan for and return unsigned int.
7169         (get_papersize): New function to get paper length from devps/DESC.
7170         (determine_vertical_offset): New function.
7171         (createAllPages): Produce gray-level images and use proper page
7172         length.
7173         (createImage): Use `-quiet' option of pnmcrop.
7174         (addZ): Fix passing of `-Z'.
7175         (scanArguments): Fix handling of `-o'.
7176         (main): Call `determine_vertical_offset'.
7177         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7178         code for `l'.
7180         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7181         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7182         glyph descenders properly.
7184         * doc/homepage.ms: Include `gnubw.eps'.
7185         * doc/Makefile (gnubw.eps): New rule.
7186         (homepage.html): Depend on `gnubw.eps'.
7188 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7190         * src/roff/troff/input.cc (default_black): Fix return value.
7192 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7194         * tmac/doc-common (Dt): Change output of architecture strings.
7195         Do some syntax cleanup.
7196         * tmac/groff_mdoc.man: Updated.
7198 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7200         Adding an `itc' request (input line trap accepting \c).
7202         * src/roff/troff/env.h (environment): New member
7203         `continued_input_trap'.
7204         Make `do_input_trap' a friend function instead of `input_trap'.
7205         * src/roff/troff/env.cc (environment::environment,
7206         environment::copy): Updated.
7207         (environment::newline): Implement it.
7208         (do_input_trap): New function.
7209         (input_trap): Call `do_input_trap'.
7210         (input_trap_continued): New function.
7211         (init_env_requests): Updated.
7212         * src/roff/troff/TODO: Updated.
7214         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7215         `.it'.
7217         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7219 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7221         * tmac/doc-common, tmac/doc-syms: Small updates.
7223 2001-12-22  Colin Watson  <cjwatson@debian.org>
7225         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7227 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7229         * MANIFEST: New file.
7231 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7233         * src/preproc/grn/grn.man: Updated.
7235 2001-12-22  Solar Designer  <solar@openwall.com>
7237         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7238         (DBRead): Use it.
7240 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7242         Implement a fallback character request `.fchar'.
7244         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7245         (is_fallback): New inline function.
7246         * src/roff/troff/input.cc (do_define_character): New function.
7247         (define_character): Call `do_define_character'.
7248         (define_fallback_character): New function.
7249         (init_input_requests): Add `fchar'.
7250         (charinfo::charinfo): Updated.
7251         (charinfo::set_macro): New argument to set `fallback' flag.
7252         * src/roff/troff/node.cc (make_glyph_node, make_node,
7253         node::add_char): Check `fallback' flag.
7254         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7256 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7258         * groff.texinfo: Document exact search algorithm for glyphs.
7260 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7262         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7263         the left side of $(MANPAGES) rule to make it always non-empty.
7265 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7267         * src/roff/troff/input.cc (default_black): Define default color
7268         `black' if not yet defined.
7270 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7272         Implement new string-valued register `.fn' to return the current
7273         real (internal) font name.
7275         * env.cc (environment::get_font_name_string): New function.
7276         (init_env_requests): Add `.fn' register.
7277         * env.h (environment): Updated.
7278         * node.cc (font_info): Make `get_font_name' a friend.
7279         (get_font_name): New function.
7280         * node.h: Updated.
7282         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7284 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7286         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7288 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7290         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7292 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7294         * man/groff_diff.man: Adding documentation for \O.
7296 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7298         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7299         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7301 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7303         * man/roff.man: Revised.
7304         * src/roff/groff/groff.man: Replace man page references with a
7305         pointer to roff.man.
7307 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7309         * man/roff.man: Completely rewritten.
7311 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7313         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7315 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7317         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7318         longer used.
7319         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7320         order of initializers.
7321         * NEWS: Updated.
7323 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7325         * doc/groff.texinfo: Fix documentation of \O.
7327         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7328         html_text::do_table, html_text::do_emittext, html_text::do_para):
7329         Use `const' for first argument.
7330         (html_text::do_table): Use cast.
7331         * src/devices/grohtml/html-text.h: Updated.
7332         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7333         method for `const string &s'.
7334         * src/devices/grohtml/html.h: Updated.
7335         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7336         (ANCHOR_TEMPLATE): Modified.
7337         (manufacture_headings): New global variable to handle `-h' option.
7338         (is_subsection): Removed.
7339         (char_buffer::add_string): Add `const' to first argument.
7340         Protect against invalid string argument.
7341         Add method for `const string &s'.
7342         (text_glob): Completely redesigned.
7343         (page): Use `const' for strings and remove string length variable.
7344         (page::add_html): Removed.
7345         (page::add_end_encode): New member function.
7346         (to_unicode): Moved upwards.
7347         (title_desc, header_desc): Updated.
7348         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7349         definition.
7350         (html_printer::is_bold, html_printer::make_bold): New member
7351         functions.
7352         (html_printer::end_of_line): Updated.
7353         (generate_img_src, html_printer::do_auto_image,
7354         html_printer::do_title, html_printer::write_header,
7355         html_printer::determine_header_level, html_printer::do_heading,
7356         html_printer::do_linelength, html_printer::do_pageoffset,
7357         html_printer::do_indentation, html_printer::do_tempindent,
7358         html_printer::do_indentedparagraph, html_printer::do_break,
7359         html_printer::flush_sbuf, get_html_translation,
7360         html_printer::begin_page, html_printer::special): Rewritten to get
7361         rid of static string length limit.
7362         (html_printer::troff_tag): Added `.no-auto-rule'.
7363         (html_printer::flush_globs): Small fix.
7364         (html_printer::determine_space): Don't compute `space_width'.
7365         (html_printer::translate_to_html): Renamed to ...
7366         (html_printer::emit_html): This (with updates).
7367         (html_printer::write_header): Implement `-h' option.
7368         (html_printer::draw): Remove commented-out code.  Handle `F'
7369         command.
7370         (html_printer::add_char_to_sbuf): Removed.
7371         (html_printer::add_to_sbuf): Rewritten.
7372         (html_printer::sbuf_continuation): Fixed.
7373         (html_printer::seen_backwards_escape, reverse,
7374         html_printer::remove_last_char_from_sbuf): Removed.
7375         (char_translate_to_html, str_translate_to_html): Removed.
7376         (html_printer::overstrike): New function member.
7377         (html_printer::set_char): Use it.
7378         (html_printer::do_body): New function member.
7379         (html_printer::~html_printer): Use it.
7380         (main): Handle `-h' option.
7381         (usage): Updated.
7382         * src/devices/grohtml/grohtml.man: Document -h switch.
7384         * src/preproc/html/pre-html.cc: Include searchpath.h
7385         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7386         (get_resolution): New function.
7387         (checkImageDir): Use `0777' permissions in mkdir()
7388         (write_start_image): Rewritten to use `\O[5...]'.
7389         (createImage, generateImages): Updated.
7390         (main): Handle `F' and `h' options.
7391         Use `get_resolution'.
7393         * src/roff/troff/input.cc (begin, end, image): Removed.
7394         (do_suppress): Take parameter.
7395         Handle modified syntax of `\O'.
7396         (token::next): Updated.
7397         (init_markup_requests): Removed.
7398         (main): Updated.
7400         * src/roff/troff/div.h: Add declaration for begin_page().
7402         * tmac/color-html.tmac: Removed.  Contents moved to...
7403         * tmac/html.tmac: Here.  Set background color.
7404         * tmac/color.tmac: Removed.  Contents moved to...
7405         * tmac/ps.tmac: Here.
7406         * tmac/www.tmac: Remove the title command when generating images
7407         for html.
7408         (NO_AUTO_RULE): New macro.
7409         (HTML_DO_IMAGE): Use revised `\O' escapes.
7410         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7412 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7414         * tmac/groff_mdoc.man: Fix typo.
7416 2001-12-01  Colin Watson  <cjwatson@debian.org>
7418         * man/roff.man: Fix typo.
7420 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7422         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7423         stdlib.h.
7425         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7426         more than one argument to \D'f ...'.
7428         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7430 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7432         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7433         loaded only once.
7435         * tmac/groff_man.man: Minor cosmetic fix.
7437 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7439         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7440         tmac/groff_www.man: s/mwww/www/.
7442 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7444         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7445         * configure: Regenerated.
7446         * win32-diffs: Updated.
7448         * tmac/groff_mwww.tmac: Renamed to ...
7449         * tmac/groff_www.tmac: This.
7450         * tmac/mwww.tmac: Removed.
7451         * NEWS, tmac/Makefile.sub: Updated.
7453 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7455         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7456         Fix explanation of `\D' and `rt'.
7458 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7460         * tmac/an-old.tmac (an-header): Set header length equal to page
7461         width.
7462         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7463         minor fixes.
7464         * NEWS: Small fix.
7466 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7468         * NEWS, man/Makefile.sub: Updated.
7470 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7472         * man/ditroff.man: New file.
7474 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7476         * man/groff_differences.man: Renamed to ...
7477         * man/groff_diff.man: This.  Updated.
7478         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7480         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7481         * src/preproc/html/pushback.cc: This.  Updated.
7482         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7483         * src/preproc/html/pushback.h: This.
7484         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7485         Updated.
7487         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7488         * src/libs/libgroff/htmlhint.cc: This.
7489         * src/libs/libgroff/Makefile.sub: Updated.
7491         * tmac/an-old.tmac (an-end): Fix page length.
7493 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7495         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7496         * man/Makefile.sub: Include groff_differences.man.
7497         * VERSION: Set to 1.18.
7498         * REVISION: Set to 0.
7500 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7502         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7503         the second dot (or ending macro name) to end a macro.
7504         * doc/groff.texinfo: Doc fix.
7506 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7508         * tmac/doc-common (doc-header): Handle very long document titles
7509         better.
7511 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7513         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7515 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7517         * src/roff/troff/troff.man: Revised and split into troff.man and...
7518         * man/groff_differences.man: New file.
7519         * NEWS: Updated.
7521 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7523         * tmac/an-old.tmac (TS, TE): New macros for table support.
7525 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7527         * src/include/lib.h: Provide a fix for emx to not include
7528         groff-getopt.h.
7530 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7532         * src/roff/troff/input.cc (substring_macro): Fix computation of
7533         boundary values.
7535 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7537         Undo change from 2001-08-28.
7539         * src/roff/troff/input.cc (have_input): New global variable.
7540         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7541         in compatibility mode.
7542         (process_input_stack): Use it.
7544 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7546         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7547         being handled as end-of-sentence characters,
7549 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7551         * src/roff/troff/input.cc (file_iterator): New members
7552         `suppress_newline_flag' and `seen_escape'.
7553         (file_iterator::next_file): Updated.
7554         (file_iterator::fill): Use it.
7555         (string_iterator): New member `suppress_newline_flag'.
7556         (string_iterator::fill): Set it.
7557         (get_color_element): Use MAX_COLOR_VAL.
7558         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7559         (no_fill): Don't set `env->ignore_next_eol'.
7560         (environment::newline): Handle `eol' tag properly.
7561         Emit `eol.ce'.
7562         (environment::add_html_tag): Set `env->ignore_next_eol'.
7563         Don't handle `.ce'.
7564         * src/roff/troff/env.h (environment): Updated.
7566         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7567         member function.
7568         (html_printer::outstanding_eol): New member function.
7569         (html_printer::do_title): Use new functions.
7570         (html_printer::troff_tag): Test `id_eol_ce'.
7572 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7574         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7575         files work with -C also.
7577 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7579         * doc/pic.ms: Minor fix.
7580         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7581         as a valid command line switch.
7582         * src/devices/grohtml/post-html.cc (main): Ditto.
7583         (usage): Updated.
7584         * src/devices/grohtml/grohtml.man: Updated.
7585         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7587 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7589         Implementing color support in troff, pic, grops, and grohtml.  These
7590         changes are based on a major patch provided by Gaius Mulley
7591         <gaius@glam.ac.uk>.
7593         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7594         definitions with both hex values and fractions.
7596         New escapes: \m and \M for drawing and background color,
7597         respectively.  This corresponds to the troff output commands `m'
7598         and `DF'.
7600         groff and troff accept command line switch `-c' to disable color
7601         output (which is automatically disabled in compatibility mode).
7603         New scaling indicator `f' for fractions (1f = 65536u).
7605         New conditional operator `m' to test for defined colors with `if'
7606         and `ie'.
7608         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7609         (or `outlined'), and `shaded' added to pic.
7611         * src/include/color.h: New file.
7612         * src/include/driver.h: Include it.
7613         * src/include/printer.h: Include color.h.
7614         (environment): New members `col' and `fill'.
7615         (printer): Remove `adjust_arc_center' member function.
7616         * src/include/Makefile.sub: Updated.
7618         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7619         `env.fill'.
7620         Handle `m' and `DF' troff commands.
7621         * src/libs/libgroff/color.cc: New file.
7622         * src/libs/libgroff/Makefile.sub: Updated.
7624         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7625         (stop): Removed.
7626         (createImage): Fix computation of `y2'.
7627         Use `pnmcrop' also.
7628         (buffer::write_file_html): Remove calls to `stop'.
7630         * src/preproc/pic/common.h (common_output): New abstract function
7631         members `set_color', `reset_color', `get_last_filled', and
7632         `get_outline_color'.
7633         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7634         (object_spec): Add members `shaded' and `outlined'.
7635         * src/preproc/pic/output.h (output): `command' is now abstract.
7636         New function members `set_color', `reset_color', `get_last_filled',
7637         and `get_outline_color'.
7638         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7639         `outline[d]', and `shaded'.
7640         * src/preproc/pic/object.cc (output::command): Removed.
7641         (output::set_location): Moved to output.h.
7642         (graphic_object): Add protected members `outline_color' and
7643         `color_fill'.
7644         Add member functions `set_outline_color', `get_outline_color', and
7645         `set_fill_color'.
7646         (closed_object): Add member function `set_fill_color'.
7647         Add member `color_fill'.
7648         (graphic_object::print_text): Use `out->set_color' and
7649         `out->reset_color'.
7650         (box_object::print, ellipse_object::print, circle_object::print,
7651         line_object::print, spline_object::print, arc_object::print): Ditto.
7652         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7653         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7654         `SHADED', making them `%left'.
7655         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7656         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7657         `set_color', `reset_color', `get_last_filled', and
7658         `get_outline_color'.
7659         * src/preproc/pic/troff.cc (simple_output): New abstract function
7660         members `set_color', `reset_color', and `get_last_filled'.
7661         (simple_output::polygon, simple_output::circle,
7662         simple_output::ellipse): Use `get_last_filled'.
7663         (troff_output): New members `last_filled' and `last_outlined'.
7664         New function members `set_color', `reset_color', `get_last_filled',
7665         and `get_outline_color'.
7666         (troff_output::finish_picture): Use `reset_color'.
7667         (troff_output::set_fill): Test `last_filled'.
7668         * src/preproc/pic/pic.man: Updated.
7670         * src/roff/groff/groff.cc (main): Implement `-c' option.
7671         (synopsis, help): Updated.
7672         src/roff/groff/groff.man: Updated.
7674         * src/roff/troff/troff.h: Include color.h.
7675         (warning_type): Add WARN_COLOR.
7676         * src/roff/troff/env.h (environment): New members
7677         `{cur,prev}_{glyph,fill}_color'.
7678         New member functions `get_{prev_,}{glyph,fill}_color'.
7679         * src/roff/troff/env.cc: Initialize and implement them.
7680         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7681         Replace `NULL' with `0' everywhere for consistency.
7682         (lookup_color, default_black, do_glyph_color, do_fill_color,
7683         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7684         define_color): New functions.
7685         (token::next): Implement \M and \m escapes.
7686         (do_if_request): Implement `m' operator.
7687         (usage): Updated.
7688         (main): Implement `-c' option.
7689         (init_markup_requests): Add `defcolor' request.
7690         (warning_table): Add `color' warning.
7691         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7692         classes.
7693         * src/roff/troff/node.cc (troff_output_file): New members
7694         `current_{page,glyph}color'.  New member functions `put_hex',
7695         `glyph_color', and `fill_color'.
7696         (glyph_color_node::*, fill_color_node::*): Implement it.
7697         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7698         (parse_term): Add support for `f'.
7699         * src/roff/troff/troff.man: Updated.
7701         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7702         entry for `F'.
7703         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7704         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7706         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7707         (tag_definition): Use `void *' for arg1.
7708         (html_text): New member functions `do_color' and `done_color'.
7709         Use `void *' for second parameter of `push_para' member function.
7710         New `push_para' member function with a single parameter.
7711         Use `char *' for parameter of `issue_table_begin' member funtion.
7712         New `issue_color_begin' member function.
7713         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7714         COLOR_TAG.
7715         (html_text::issue_color_begin): New function.
7716         (html_text::issue_table_begin): Use `char *' for parameter.
7717         (html_text::start_tag, html_text::shutdown,
7718         html_text::check_emit_text): Updated.
7719         (html_text::push_para): Use `void *' for second parameter.
7720         Add same function with only one parameter.
7721         (html_text::do_*): Updated.
7722         (html_text::do_color, html_text::done_color): New functions.
7723         * src/devices/grohtml/post-html.cc (style): New member `col'.
7724         Mew member `style' with 6 parameters.
7725         (style::style, style::operator==): Updated.
7726         (html_printer::do_font): Use it.
7727         (html_printer::draw): Add dummy entry for `F'.
7728         (html_printer::set_char): Updated.
7729         * src/devices/grohtml/grohtml.man: Updated.
7731         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7732         trailing zeroes removed.
7733         (ps_printer): New members `sbuf_color', `fill_color', and
7734         `output_color'.
7735         Removed member `fill'.
7736         New member function `set_color'.
7737         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7738         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7739         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7741         * tmac/color-html.tmac, tmac/color.tmac: New files.
7742         * tmac/troffrc: Include them.
7743         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7744         * tmac/Makefile.sub: Updated.
7746         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7747         man/groff.man: Updated.
7748         * font/devps/prologue.ps: Define FC and CO functions.
7750 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7752         Fix incorrect cropping of images and incorrect handling of special
7753         characters.  Fix handling of file names in \O.
7755         * src/include/geometry.h: New file.
7756         * src/libs/libgroff/geometry.cc: New file.
7757         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7758         to `geometry.cc'.
7759         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7760         initial spaces.
7761         (do_suppress): Updated.
7762         * src/roff/troff/node.cc: Include geometry.h.
7763         (troff_output_file::flush_tbuf): Fixed parameters to
7764         `check_output_limits'.
7765         (troff_output_file::check_charinfo): Ditto.
7766         (troff_output_file::determine_line_limits): Add support for `Da'
7767         and `Dl' commands.
7769         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7770         Add new parameter `is_special' to decode special characters from
7771         escape sequences.
7772         (html_printer::do_title, html_printer::do_heading,
7773         html_printer::do_indentedparagraph,
7774         html_printer::translate_to_html, html_printer::special): Updated.
7776 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7778         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7779         Fix entry for config.h.
7780         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7781         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7782         * src/preproc/eqn/eqn.man: Document -d command line option.
7784 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7786         * man/groff.man: Use
7788           .ev xxx
7789           .na
7790           .nh
7791           <table>
7792           .ev
7794         instead of the old code (`.ad .hy' after the table) to suppress
7795         incorrect hyphenation for grohtml output.
7797 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7799         * man/groff_font.man, man/groff_out.man: Minor fixes.
7801 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7803         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7804         Arnold Robbins <arnold@skeeve.com>).
7806 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7808         * configure: Regenerated with autoconf 2.52.
7810         * doc/groff.texinfo: Complete revision of indices.
7812 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7814         * doc/Makefile (clean): Updated to delete all indices.
7816 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7818         * src/roff/troff/troff.man: Remove superfluous line.
7820         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7821         given on the command line (or rather, if only the default warnings
7822         are set).
7824 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7826         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7827         use .ne for TTY devices.
7829 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7831         * src/roff/troff/token.h, src/roff/troff/input.cc:
7832         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7834 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7836         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7837         * src/roff/troff/input.cc (token::next): Return
7838         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7839         compatibility mode.
7840         (token::description): Updated.
7841         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7842         (token::add_to_node_list, token::process): Ignore
7843         TOKEN_TRANSPARENT_ESCAPE.
7845 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7847         * tmac/an-old.tmac: Fix `S' string.
7849 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7851         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7853 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7855         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7856         backslashes).
7857         Many other minor fixes.
7859         * configure.ac: Add message at end to inform how to compile
7860         xditview.
7861         * configure: Regenerated.
7863 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7865         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7866         Updated to latest version of libc.
7868 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7870         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7871         Autoconf 2.50 and newer can handle this.
7872         * configure: Regenerated.
7874 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7876         * doc/pic.ms: Fix typo.
7877         * src/preproc/tbl/tbl.man: Document case of global options.
7879 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7881         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7882         handling of `CR' font.
7884 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7886         Use a config.h file.
7888         * src/include/lib.h: Include config.h.
7889         * All C files: Ditto (if necessary).
7890         * All C++ source and header files: Include lib.h first (if
7891         necessary).
7893         * src/include/config.hin: New file (autogenerated by autoheader).
7894         * stamp-h.in: New file.
7895         * configure.ac: Updated.
7896         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7897         (GROFF_ARRAY_DELETE): Simplified.
7898         * Makefile.sub (DISTCLEANFILES): Updated.
7899         Added targets for remaking config.status, config.hin, config.h,
7900         stamp-h.in, and stamp-h.
7901         * configure: Regenerated.
7903 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7905         * NEWS: Updated.
7907 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7909         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7910         (do_sprintf): Use snprintf().
7912 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7914         * src/libs/snprintf/*: Added an snprintf module written by Mark
7915         Martinec.
7916         * src/libs/libgroff/Makefile.sub: Updated.
7917         * configure.ac: Add test for snprintf().
7918         * Makefile.in: Updated.
7919         * configure: Regenerated.
7921         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7922         uses snprintf().
7924 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7926         * tmac/doc.tmac (Ex): New implementation.
7927         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7929 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7931         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7932         argument.
7933         * tmac/groff_tmac.man: Updated.
7935 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7937         * src/preproc/tbl/tbl.man: Minor documentation update.
7939 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7941         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7942         * configure.ac: Add declaration test for gettimeofday().
7943         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7944         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7945         * configure: Regenerated.
7947 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7949         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7950         * configure.ac: Add declaration test for strcasecmp().
7951         * Makefile.in: Updated.
7952         * configure: Regenerated.
7953         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7954         this is necessary because groff's mkstemp.cc is C++.
7955         Add declaration conditionally for strcasecmp().
7957 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7959         Integrated pic2graph, contributed by Eric S. Raymond.
7961         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7962         files.
7963         * Makefile.in, NEWS: Updated.
7965         * src/preproc/tbl/tbl.man: Revised.
7967 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7969         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7971 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7973         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7974         requests.
7976 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7978         * Makefile.sub (configure): Depend on configure.ac, not
7979         configure.in.
7980         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7982 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7984         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7985         fixes.
7987 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7989         * src/roff/troff/troff.man: Improve documentation of -E option.
7991 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7993         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7994         Simplified.
7996 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7998         * src/preproc/refer/refer.cc: Undo last change.
7999         * src/devices/grohtml/post-html.cc: Ditto.
8001 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8003         * src/preproc/refer/refer.cc: Include `lib.h'.
8004         * src/devices/grohtml/post-html.cc: Ditto.
8006 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8008         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8009         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8010         * Makefile.in: Comment updated.
8011         * configure: Regenerated.
8013 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8015         * src/preproc/pic/pic.cc: Removed.
8016         * src/preproc/pic/pic_tab.h: Removed.
8017         * src/preproc/refer/label.cc: Removed.
8019         * doc/Makefile (.ms.html): Don't use a file name extension in
8020         argument to grohtml's -I option.
8021         * Makefile.in (dist): Remove CVS directories.
8022         Call `distfiles' target.
8024         * src/devices/grohtml/grohtml.man: Add information about valid
8025         versions of pnmtopng.
8026         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8027         name instead of number.
8029 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8031         * doc/groff.texinfo: Minor fixes.
8033 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8035         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8036         (clean): Updated.
8038 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8040         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8041         * src/libs/libgroff/mkstemp.cc: New file.
8042         * src/libs/libgroff/mksdir.cc: New file.
8043         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8044         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8045         * src/libs/libgroff/Makefile.sub: Updated.
8046         * src/include/lib.h: Add mksdir() prototype.
8047         * src/include/posix.h: Define S_IXUSR if not yet defined.
8049         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8050         (createAllPages): Use mksdir() instead of current code.
8051         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8052         (main): [!HAVE_MKSTEMP]: Removed.
8054         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8055         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8056         macros.
8057         * configure.ac: Add tests for stdint.h, sys/time.h, and
8058         gettimeofday().
8059         Call new GROFF_xxx macros.
8060         * configure: Regenerated.
8061         * Makefile.in: Comments updated.
8063 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8065         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8066         instead of current code.
8067         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8068         * src/roff/groff/groff.cc (possible_command::insert_args): New
8069         function.
8070         (main): Use it for predriver handling instead of insert_arg().
8072 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8074         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8075         groff also.
8077         * src/include/posix.h: Define S_IWUSR if not yet defined.
8079 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8081         * NEWS: Updated.
8083 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8085         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8086         Some other minor fixes.
8087         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8089 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8091         Replace call to `troff' with `groff -Z' to make it aware of
8092         GROFF_BIN_PATH.
8094         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8095         (troff_command, command_prefix): Removed.
8096         (alterDeviceTo): Use groff.
8097         (addZ): New function.
8098         (char_buffer::do_html): Use it.
8099         (scanArguments): Use TROFF_COMMAND.
8100         (findPrefix): Removed.
8101         (main): Updated.
8102         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8104 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8106         * doc/pic.ms: Documentation fixes.
8108 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8110         Replace atexit() with global destructor.
8112         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8113         (xtmpfile_list_init): New global structure to deallocate
8114         xtmpfile_list on exit.  Its destructor inherits most code from
8115         remove_tmp_files().
8116         (remove_tmp_files): Deleted.
8117         (add_tmp_file): Simplified.
8119 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8121         Replace strdup() with strsave().
8123         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8124         (set_papersize): Use strsave() and a_delete.
8125         (main): Use strsave().
8126         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8127         removeAllPages): Use strsave() and a_delete.
8129         * configure.ac: Remove test for strdup.
8130         * Makefile.in: Comment updated.
8131         * configure: Regenerated.
8133 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8135         * win32-diffs: Updated.
8137 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8139         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8140         removing the old one.
8141         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8143 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8145         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8147 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8149         Merge -xwidth into -width.  Add -xwidth functionality to -column
8150         also.
8152         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8153         avoid warning.
8154         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8155         string immediately following a leading dot starts with a valid mdoc
8156         argument.
8157         Add similar code to the -column branch.
8158         (doc-Bl-usage): Updated.
8159         * groff_mdoc.man: s/-xwidth/-width/.
8161 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8163         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8164         running into centered or non-formatted text.
8166 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8168         Introduce short and long prefixes to have the selection at run-time
8169         whether there is a 8+3 limit for names of temporary files.
8171         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8172         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8173         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8174         variables.
8175         (temp_init): New global structure to initialize above three
8176         variables.
8177         (xtmptemplate): Use two parameters for long and short prefix.
8178         Simplify code use above three variables.
8179         (xtmpfile): Use long and short prefixes as parameters.
8180         * src/include/lib.h: Updated.
8182         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8183         with ...
8184         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8185         (createAllPages, makeTempFiles): Updated.
8187 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8189         * REVISION: Increased to 3.
8191 Version 1.17.2 released
8192 =======================
8194 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8196         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8197         to size_t.
8199 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8201         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8202         Fix synopsis.
8203         * tmac/groff_mdoc.man: Fix synopsis.
8205 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8207         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8208         Restore `doc-Pa-font'.
8210 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8212         * src/utils/indxbib/dirnamemax.c: Moved to ...
8213         * src/libs/libgroff/maxfilename.cc: Here.
8214         s/dir_name_max/file_name_max/.
8215         Add copyright.
8216         * src/include/lib.h: Add file_name_max.
8217         * src/utils/indxbib/indxbib.cc: Updated.
8218         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8219         Updated.
8221         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8222         as empty.
8223         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8225         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8226         REGION_TEMPLATE): New macros.
8227         (createAllPages, makeTempFiles): Use them.
8228         Include `nonposix.h'.
8229         (html_system): New function.
8230         (createAllPages, createImage): Use it.
8231         Use EXE_EXT.
8233         * tmac/www.tmac: Fix typos.
8235 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8237         * tmac/www.tmac: Disable hyphenation in normal text only if output
8238         device is html.
8239         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8240         * tmac/groff_mwww.man, NEWS: Updated.
8242 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8244         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8245         image location.
8247 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8249         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8250         doc-display-ps-stack): Implement font and font size stack for
8251         displays.
8253 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8255         * REVISION: Increased to 2.
8256         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8258         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8259         beginning of a line.
8260         * src/groff/grog/grog.sh: Ditto.
8262 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8264         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8265         make it portable.
8267 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8269         Fix problems with preprocessor string for `man' program.
8271         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8272         Updated/added copyright.
8273         Moved Emacs's local variable to identify nroff mode to the end of
8274         the file; add local variable if missing.
8276 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8278         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8279         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8280         * configure: Regenerated.
8282 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8284         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8285         * configure: Regenerated.
8287 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8289         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8290         but www.tmac.
8291         * doc/pic.ms: Fix typos.
8293 Version 1.17.1 released
8294 =======================
8296 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8298         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8299         * configure: Updated.
8301 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8303         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8304         image names.
8305         * src/roff/troff/dic.cc (blank_line): Add html tag.
8307 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8309         * src/roff/troff/input.cc (do_suppress): Fix typo.
8311 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8313         Added two new options (-D and -I) to specify image names and a
8314         subdirectory to place the images in.
8316         Change syntax from \\Ox to \\O[x].
8318         * src/devices/grohtml/post-html.cc (main): Add options.
8319         (usage): Updated.
8320         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8321         Use `NULL' instead of `0' for null string pointers.
8322         (MAX_RETRIES): New macro.
8323         (lengthOfintToStr, intToStr, make_message): New functions.
8324         (makeFileName): Make function static.
8325         Implement -D and -I options.
8326         (checkImageDir): New function.
8327         (write_end_image, write_start_image): Use new syntax of \O.
8328         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8329         make_message().
8330         (createImage): Use make_message().
8331         (addps4html): Add guard for malloc().
8332         (usage, scanArguments): Updated.
8333         (makeTempFiles): Use mkstemp().
8334         (removeTempFiles): Use unlink().
8335         (findPrefix): Add guard for malloc().
8336         (main): Updated.
8337         * src/roff/troff/input.cc (get_delim_file_name): New function to
8338         parse \O.
8339         (do_suppress): Updated to parse new syntax.
8340         * src/devices/grohtml/grohtml.man: Updated.
8341         * tmac/www.tmac: Updated to new syntax.
8343         * NEWS: Updated.
8345 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8347         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8349         * src/devices/grohtml/grohtml.man: Minor improvements.
8351 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8353         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8355 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8357         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8358         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8359         the former.
8360         * src/preproc/grn/grn.man: Add proper '\" string.
8362 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8364         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8366 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8368         Updated to autoconf 2.50.
8370         * configure.in: Renamed to...
8371         * configure.ac: This.
8372         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8373         (GROFF_OS390): Updated.
8374         * configure: Regenerated.
8376 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8378         * src/roff/troff/env.c, src/roff/troff/env.h,
8379         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8380         from 2000-12-21.
8382 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8384         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8386 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8388         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8389         less than or equal zero; set it to 1 then.
8390         * src/roff/troff/node.h (node::node): Initialize `last'.
8392 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8394         * tmac/an-old.tmac: Make predefined strings work in compatibility
8395         mode.
8396         Add troff version guard.
8397         * tmac/doc.tmac: Simplify version guard.
8399 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8401         The .ns and .rs requests are now honoured not only in the top-level
8402         but in all diversions (similar to UNIX troff).
8404         This change is based on a patch from Tadziu Hoffmann
8405         <hoffmann@usm.uni-muenchen.de>.
8407         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8408         (top_level_diversion): Remove `no_space_mode' member.
8409         * src/roff/troff/div.cc (diversion::diversion,
8410         top_level_diversion::top_level_diversion): Updated.
8411         (macro_diversion::output): Reset `no_space_mode'.
8412         (no_space, restore_spacing): Use `curdiv' unconditionally.
8413         (space_request, blank_line): Check `curdiv->no_space_mode'.
8414         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8415         `curdiv' unconditionally.
8416         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8417         Updated.
8419 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8421         Added two new requests `de1' and `am1' which are similar to `de' and
8422         `am' with the difference that compatibility mode is saved on entry,
8423         switched off during macro execution, and restored on exit.
8425         * src/roff/troff/input.h: Added two new special characters
8426         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8427         * src/roff/troff/input.cc (input_iterator): Added two member
8428         functions `save_compatible_flag' and `get_compatible_flag'.
8429         (input_stack): Ditto.
8430         (string_iterator): Ditto.  Also add private member
8431         `saved_compatible_flag'.
8432         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8433         (calling_mode): New enumeration.
8434         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8435         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8436         (define_macro, define_indirect_macro, append_macro, ignore): Use
8437         `calling_mode'.
8438         (define_nocomp_macro, append_nocomp_macro): New functions.
8439         (init_input_requests): Updated.
8440         (do_request): Rename local variable `saved_compatible_flag' to
8441         `old_compatible_flag'.
8442         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8444         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8445         public and trap-invoked macros.  As a consequence, the man macros
8446         work in compatibility mode also.
8448 2001-05-06  Solar Designer  <solar@openwall.com>
8450         * Makefile.in: Use $(mandir).
8452 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8454         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8456 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8458         Added `.ns' number register: Returns 1 in no-space mode (if in
8459         top-level diversion), 0 otherwise.
8461         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8462         (init_div_requests): Updated.
8463         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8464         Document it.
8466 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8468         * src/roff/nroff/nroff.man: Improved documentation (especially
8469         locales).
8471 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8473         Added `brp' request: This is \p as a request.
8475         * src/roff/troff/env.cc (environment::do_break): Add parameter
8476         `spread'.
8477         (do_break_request): New function (was `break_request').
8478         (break_request): Calls `do_break_request'.
8479         (break_spread_request): New; calls `do_break_request'.
8480         (init_env_requests): Updated.
8481         * src/roff/troff/env.h: Updated.
8482         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8484         * REVISION: Increased to 1.
8485         * win32-diffs: Updated.
8487 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8489         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8490         * tmac/troffrc-end: Make it really work in compatibility mode.
8492 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8494         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8495         stdlib.h.
8497 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8499         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8500         latest versions from glibc CVS archive.
8502         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8503         <c.zeelenberg@hccnet.nl>.
8505 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8507         * configure.in: Move check for mkstemp() to...
8508         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8509         * configure: Regenerated.
8511         * src/include/groff-getopt.h: Don't use variable names in
8512         declarations.
8514         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8515         * src/devices/grohtml/Makefile.sub,
8516         src/devices/grohtml/post-html.cc: Updated.
8518 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8520         * configure.in: Add special check for mkstemp().
8521         * src/libs/libgroff/tmpfile.cc: Use it.
8522         * src/utils/indxbib/indxbib.cc: Ditto.
8523         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8524         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8525         `const'.
8527 2001-04-20  Bruce Lilly  <blilly@erols.com>
8529         `Version_string' as C++ object was not visible to linker from C
8530         object files.
8531         Add `const' to `Version_string'.
8533         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8534         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8535         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8536         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8537         (scanArguments), src/preproc/refer/refer.cc (main),
8538         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8539         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8540         (main), src/devices/grohtml/post-html.cc (main),
8541         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8542         (main), src/utils/hpftodit/hpftodit.cc (main),
8543         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8544         (main), src/utils/lkbib/lkbib.cc (main),
8545         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8547         * src/roff/groff/pipeline.c: Add _UWIN.
8548         * src/include/nonposix.h: Ditto.
8550 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8552         * src/include/lib.h: Use HAVE_STRERROR.
8553         * src/roff/groff/pipeline.c: Ditto.
8554         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8555         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8556         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8557         * win32-diffs: Updated.
8558         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8560 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8562         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8563         instead of hardwired `"troff"'.
8564         (char_buffer::read_file): Remove unused variables.
8565         (char_buffer::write_file_troff): Ditto.
8566         (char_buffer::write_file_html): Ditto.
8567         (generateImages): Ditto.
8568         (abs): Removed.
8569         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8571         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8573         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8574         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8575         index_search_item::search1): Ditto.
8576         * src/roff/troff/node.h (width_list): Reorder members.
8577         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8578         (lookup_warning): Ditto.
8579         (prepend_string): Commented out.
8580         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8581         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8582         * src/preproc/tbl/main.cc (process_format): Ditto.
8583         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8584         compiler warnings.
8585         * src/preproc/pic/pic.cc: Updated.
8586         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8587         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8588         * src/preproc/refer/command.cc (execute_command): Ditto.
8589         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8590         * src/preproc/refer/token.cc (lookup_token): Ditto.
8591         * src/preproc/soelim/soelim.cc: Ditto.
8592         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8593         (isHexDigit): Commented out.
8594         (pushBackBuffer::isString): Remove unused variable.
8595         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8596         warning.
8597         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8598         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8599         Ditto.
8600         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8601         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8602         lookup_paper_size): Ditto.
8603         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8604         (text_glob, element_list): Reorder members.
8605         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8606         compiler warning.
8607         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8608         return value to `void'.
8609         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8610         of initializers.
8611         * src/devices/grohtml/html.h (simple_output::check_newline,
8612         simple_output::space_or_newline, simple_output::enable_newlines):
8613         Add return value.
8614         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8615         compiler warnings.
8616         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8617         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8618         output_ligatures, output_charset, read_map): Ditto.
8619         * src/utils/lookbib/lookbib.cc (main): Ditto.
8620         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8621         (do_file): Fix typo (`=' -> `==').
8622         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8623         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8625 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8627         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8628         Fix usage of GROFF_BIN_PATH.
8629         * src/roff/nroff/nroff.man: Updated.
8631 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8633         * NEWS: Fixing typos.
8634         Updated.
8636 Version 1.17 released
8637 =====================
8639 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8641         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8642         directory, not in $(srcdir).
8644 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8646         * doc/groff.texinfo: More info on conditionals.
8648 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8650         * doc/groff.texinfo: Added some info about groff internals.
8652         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8653         about missing special character only if the name is non-null.
8655 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8657         Removing the grohtml-old device driver which is now obsolete.
8659         * src/devices/grohtml-old/*: Removed.
8660         * font/devhtml-old/*: Removed.
8661         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8662         Remove comments.
8663         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8664         * test-groff (PATH): Updated.
8665         * tmac/Makefile.sub (NORMALFILES): Updated.
8666         * tmac/an-old.tmac: Remove special code for html-old device.
8667         Replace `html-or-html-old' register with `an-html'.
8668         * tmac/eqnrc: Updated.
8669         * tmac/html-old.tmac: Removed.
8670         * tmac/troffrc, tmac/troffrc-end: Updated.
8671         * tmac/www.tmac: Remove special code for html-old device.
8672         Replace `html-or-html-old' register with `www-html'.
8674         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8675         src/libs/libgroff/htmlindicate.cc (graphic_end),
8676         include/htmlindicate.h, src/preproc/grn/*.cc,
8677         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8678         single argument for consistency with rest of source code.
8680         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8682 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8684         * src/roff/troff/troff.man: Fixing typos.
8686 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8688         * doc/pic.ms: Fixing many font switches.
8689         * doc/groff.texinfo: Fixes, additions.
8690         * MORE.STUFF: Updated.
8692 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8694         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8695         simple anchor.
8696         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8697         cropping of images.
8698         (removeTempFiles): New function to tidy up temporary files.
8699         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8700         Many fixes to do with the new inline suppress node and image regions
8701         are much tighter.
8702         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8703         (generate_img_src): New function.
8704         (html_printer::do_auto_image): Utilizes it.
8705         (do_heading, do_title): Include inline images within their contents.
8706         (html_printer::begin_page): Tidied up comments that are issued to
8707         the html output file.
8708         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8709         than courier.
8710         (text_glob::is_br): New method used by do_heading.
8711         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8712         equivalent diversion.
8713         * src/include/html-strings.h: Altered image tags to reflect the
8714         inline image node.
8715         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8716         parameter.
8717         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8718         it is already inside a pic image.  Only emit tags if the argument
8719         `-Tps:html' is present.
8720         * src/preproc/tbl/main.cc: Changes to reflect additional
8721         `html_end_suppress' parameter.
8722         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8723         emitted since the last eol tag was written.
8724         * src/roff/troff/env.h: New boolean `emitted_node'.
8725         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8726         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8727         * src/roff/troff/node.cc (check_charinfo): New method. 
8728         (troff_output_file::determine_line_limits): Alterations to limit
8729         checking.
8730         * tmac/www.tmac: Changes to reflect new suppress nodes.
8731           
8732 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8734         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8735         Escape the html_glyph in the buffer.
8736         (str_translate_to_html): Output the unescaped escaped_char.
8737         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8738         `frame=void', not `frame=none'.  Add `border=0'.
8740 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8742         * PROBLEMS: Add some words on how to avoid wrapper macros.
8744 2001-04-11  Blake McBride  <blake@florida-software.com>
8746         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8748 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8750         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8751         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8752         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8753         * Makefile.sub (DISTCLEANFILES): Here.
8755         * libs/libgroff/new.cc: Include `nonposix.h'.
8756         * win32-diffs: Updated.
8758 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8760         Added skeleton macro for defunct macros.
8762         Updated documentation.
8764         When inside displays, an empty input line warning should be
8765         suppressed.  If another macro call is put inside a display,
8766         all subsequent empty lines found in that display caused a
8767         warning to be emitted.
8769         * tmac/doc.tmac (doc-defunct-macro): New macro.
8770         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8771         (doc-restore-global-vars): Fixed typo.
8772         (doc-empty-line): Check the `doc-display-depth' register to
8773         determine whether we are inside display or not.
8775         * tmac/doc-common: Removed `Or' and `Sf' registers.
8776         Moved obsolete `Ds' macro to doc.tmac.
8778         * tmac/groff_mdoc.man: Bump document date.
8779         Document `.Vt' under ``Variable Types''.
8780         Removed documentation for obsolete `.Or' macro.
8782 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8784         * NEWS: Updated.
8785         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8787 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8789         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8790         (usage): Add stream argument. Don't exit.
8791         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8792         Write --version output to stdout, not stderr.
8793         (usage): Add stream argument. Don't exit.
8794         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8795         (usage): Add stream argument. Don't exit.
8796         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8797         constants.
8798         (usage): Add stream argument. Don't exit.
8799         (main): Write --help output to stdout, not stderr.
8800         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8801         (usage): Add stream argument. Don't exit.
8802         * src/devices/grops/ps.cc (main): Accept --help and --version.
8803         (usage): Add stream argument. Don't exit.
8804         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8805         (usage): Add stream argument. Don't exit.
8806         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8807         (main): Accept --help and --version.
8808         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8809         (main): Accept --help and --version.
8810         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8811         (scanArguments): Accept --help and --version.
8812         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8813         (main): Accept --help and --version.
8814         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8815         (usage): Add stream argument. Don't exit.
8816         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8817         exit.
8818         (main): Accept --help and --version.
8819         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8820         (main): Accept --help and --version.
8821         * src/roff/groff/groff.cc (main): Accept --help and --version.
8822         (synopsis): Add stream argument.
8823         (help): Write --help output to stdout, not stderr.
8824         (usage): Add stream argument. Don't exit.
8825         * src/roff/grog/grog.pl: Accept --help and --version.
8826         (help): New sub.
8827         * src/roff/grog/grog.sh: Accept --help and --version.
8828         * src/roff/nroff/nroff.sh: Accept --help and --version.
8829         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8830         (usage): Add stream argument. Don't exit.
8831         (main): Accept --help and --version.
8832         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8833         (usage): New function with stream argument, doesn't exit.
8834         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8835         (usage): New function with stream argument, doesn't exit.
8836         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8837         (usage): Add stream argument. Don't exit.
8838         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8839         (main): Accept --help and --version.
8840         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8841         exit.
8842         (main): Accept --help and --version.
8843         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8844         (main): Accept --help and --version.
8845         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8846         (usage): Add stream argument. Don't exit.
8848 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8850         Fix indentation in SYNOPSIS.
8852         Updated to include changes of latest BSD mdoc version (basically,
8853         the only change is that `.Fn' and `.Fc' put a final semicolon after
8854         a function declaration in the SYNOPSIS section).
8856         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8857         (doc-in-synopsis-section): New variable.  Updated all related
8858         functions.
8859         (doc-indent-synopsis-active): New register.
8860         (Nd, Fn, Fo): Use it.
8861         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8862         `.Cd' with long argument line produces indented wrapped lines. 
8863         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8864         undesirable line break to be output.
8865         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8866         `.rs'.
8867         (Fn, Fc): Add final `;' to output.
8868         (doc-save-global-vars, doc-restore-global-vars): Updated.
8869         * tmac/doc-common: Remove `Ex' register.
8870         Updated.
8871         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8872         copyright.
8874 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8876         * tmac/doc.tmac (Cd): Simplify code.
8877         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8879 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8881         Implement continuous underlining for nroff mode.  To do that, a new
8882         request in the ditroff language has been added: `x u N' (N is 0
8883         or 1).
8885         \X and \Y are now transparent to end-of-sentence recognition.
8887         * src/include/printer.h (printer): Add `type' parameter to `special'
8888         method.
8889         * src/libs/libdriver/printer.cc (printer::special): Updated.
8890         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8892         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8893         specials of type `p'.
8894         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8895         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8896         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8897         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8898         (glyph::order): New method.
8899         (tty_printer::add_char): Use it.
8900         (tty_printer::special): New method.
8901         (tty_printer::end_page): Implement it.
8903         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8904         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8905         to set `no_init_string'.
8906         (special_node::tprint_start): Use it.
8907         (special_node::same, special_node::copy): Updated.
8908         (special_node::ends_sentence): New method.
8909         (troff_output_file::start_special): Add parameter to include
8910         inititialization of special conditionally.
8912         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8913         * src/roff/troff/env.cc (do_underline_special): New function.
8914         (environment::set_font): Use it.
8915         (do_underline): Use it.  This was `underline()'.
8916         (underline): Call `do_underline()'.
8917         (continuous_underline): New function which calls `do_underline()'.
8918         (environment::newline): Use `do_underline_special()'.
8919         (init_env_requests): Updated.
8921         * NEWS, man/troff_out.man: Updated.
8923 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8925         * font/devutf8/R.proto: Fix code of 'shc'.
8927 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8929         Many fixes.  Diag lists can now be nested also; additionally,
8930         `-compact' and `-offset' are supported.
8932         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8933         (doc-list-have-indent-stackXXX): A new register stack.
8934         (doc-have-diag-list): Removed.
8935         (Bl): Use `doc-list-have-indent-stackXXX'.
8936         (El): Updated.
8937         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8938         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8939         (doc-set-vertical-and-indent): Ditto.
8940         (doc-next-list-depth): Removed.
8941         (doc-increment-list-stack): Updated.
8942         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8943         `doc-next-list-depth'.
8944         (doc-end-list, doc-end-column-list): Don't use
8945         `doc-increment-list-stack'.
8946         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8947         (doc-save-global-vars, doc-restore-global-vars): Updated.
8948         * tmac/doc-common: Updated.
8949         * tmac/groff_mdoc.man: Updated.
8950         * NEWS: Fix typo.
8952 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8954         * src/devices/grotty/grotty.man: Fix grammatical error.
8956 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8958         Remove .Ld from mdoc package; replace it with special handling of
8959         `...'.
8961         * tmac/doc-common: Remove `Ld' register.
8962         Uncomment `doc-volume-ds-*' strings.
8963         Remove `doc-operating-system-default'.
8964         (Os): Updated.
8965         * tmac/doc-syms (Ld): Removed.
8966         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8967         `...' specially.
8968         * NEWS: Updated.
8970         * tmac/groff_mdoc.man: Many fixes and updates.
8972 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8974         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8975         Bond <tkb@tkb.mpl.com>.
8976         * tmac/www.tmac: Save compatibility mode.
8978 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8980         * tmac/groff_mdoc.man: Many fixes.
8982 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8984         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8985         isn't recognized.
8987 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8989         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8990         diversion.  This fixes overlong tags.
8992 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8994         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8995         * tmac/doc-syms: Fix error messages.
8996         * tmac/an-old.tmac: Remove incorrect double backslashes.
8998 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9000         * tmac/Makefile.sub: Strip mdoc.local also
9001         * tmac/strip.sed: Fixed.
9003 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9005         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9006         selecting the font size.
9007         * tmac/groff_mdoc.man, NEWS: Document it.
9009 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9011         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9012         to `sv' request.
9013         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9014         argument to restore previous font family.
9015         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9017         * doc/groff.texinfo: More fixes and additions (mainly for font
9018         manipulating commands).
9020         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9021         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9022         * tmac/Makefile.sub, NEWS: Updated.
9024 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9026         Replaced mdoc implementation.  The new version is `state of the
9027         art', using almost all new features of groff 1.17 -- it won't run
9028         with older versions.
9030         * tmac/doc.tmac: Completely rewritten.
9031         * tmac/doc-common: Ditto.
9032         * tmac/doc-nroff: Ditto.
9033         * tmac/doc-ditroff: Ditto.
9034         * tmac/doc-syms: Ditto.
9035         * tmac/mdoc.local: New file.
9036         * tmac/groff_mdoc.samples.man: Replaced with ...
9037         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9038         * tmac/strip.sed: Updated.
9039         * tmac/Makefile.sub: Updated.
9040         * INSTALL: Updated.
9042         * tmac/groff_man.man: Add `man.local' to the FILES section.
9044 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9046         * doc/groff.texinfo: Added many @noindent.
9047         Replaced @end_Example -> @endExample.
9048         Added info whether registers are r/o.
9049         Many other additions and fixes.
9051 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9053         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9054         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9055         Improved @Def* macros: Now the exact syntax of request, register,
9056         and escapes is shown.
9057         Added macros for parentheses and brackets to be used in @Def*.
9058         Many fixes and improvements of the documentation.
9060 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9062         * doc/groff.texinfo: Added new index: `st' (for strings).
9063         Added macros @Defstr(x).
9064         Added macro @Example (adding @group).
9065         Other minor improvements.
9067 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9069         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9070         `rq' for requests.  `fn' is no longer used.
9071         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9072         Removed @Deffn(x).
9074         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9075         number with name of man page.
9077 2001-03-19  Larry Kollar  <kollar@alltel.net>
9079         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9080         consistency.
9082 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9084         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9085         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9086         * src/devices/grohtml/grohtml.man: Fixing typos.
9088 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9090         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9091         * tmac/groff_mwww.man: Remove .LINE macro
9092         * tmac/www.tmac (LINE): Add `.ti'.
9094         * src/devices/grohtml/post-html.cc (html_printer): New member
9095         `indent'.
9096         (html_printer::emit_raw): Use it.
9097         (html_printer::do_linelength): Ditto.
9098         (html_printer::do_pageoffset): Ditto.
9099         (html_printer::do_indentation): Ditto.
9100         (html_printer::do_tempindent): Ditto.
9101         (html_printer::do_break): Ditto.
9102         (html_printer::begin_page): Ditto.
9103         (html_printer::do_indentedparagraph): New function.
9104         (html_printer::troff_tag): Handle `.ip'.
9105         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9106         Add `<td width=...>' handling.
9107         (html_text::do_table): Add parameter.
9108         (html_text::do_indent): Updated.
9109         * src/devices/groohtml/html-text.h: Updated.
9111 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9113         Introduced simple html tables to implement indentation.
9115         * src/devices/grohtml/html.h (word, word_list): New structures.
9116         (simple_output): Use it.
9117         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9118         (html_printer): Improve indentation handling.
9119         (html_printer::emit_raw): Set `in_table' element.  Handle
9120         indentation if set.
9121         (html_printer::write_header): Move conditional downwards.
9122         Don't allow whitespace in tags.
9123         (html_printer::do_linelength): Handle line length and indentation
9124         conditionally.
9125         (html_printer::do_pageoffset): Handle indentation conditionally.
9126         (html_printer::do_indentation): Ditto.
9127         (html_printer::do_tempindent): New function member.
9128         (html_printer::do_fill): Take care of indentation.
9129         (html_printer::do_flush): Finish table.
9130         (html_printer::do_links): Ditto.
9131         (html_printer::do_break): New function for handling `.br' and `.ti'.
9132         (html_printer::troff_tag): Use it.
9133         Handle `.ti'.
9134         (html_printer::flush_globs): Fix.
9135         (html_printer::flush_page): Finish table.
9136         (html_printer::html_printer): Fix error message.  Set up
9137         `linelength'.
9138         (html_printer::add_to_sbuf): Remove special handling of character
9139         code 255.
9140         (to_unicode): Remove `stop()'.
9141         (html_printer::write_title): Cleanup.
9142         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9143         (html_printer::~html_printer): Flush text and end the line.
9144         Use `put_string()'.
9145         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9146         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9147         emission of tags.
9148         (html_text::start_tag): Disable newlines.
9149         (html_text::table_is_void): New function.
9150         (html_text::issue_table_begin): Ditto.
9151         (html_text::issue_table_end): Ditto.
9152         (html_text::push_para): Better table handling.
9153         (html_text::do_indent): New function.
9154         (html_text::do_table): Ditto.
9155         (html_text::done_table): Ditto.
9156         (html_text::do_tt): Handle PRE_TAG.
9157         (html_text::is_in_table): New function.
9158         (html_text::check_emit_text): Handle tables.
9159         (html_text::do_emittext): Use `nl()'.
9160         (html_text::do_para): Handle table.
9161         (html_text::remove_def): New function.
9162         * src/devices/grohtml/output.cc (word, word_list): Implement
9163         methods.
9164         (simple_output::end_line): Flush last word.
9165         (simple_output::simple_comment): Ditto.
9166         (simple_output::begin_comment): Recoded.
9167         (simple_output::end_comment): Ditto.
9168         (simple_output::comment_arg): Removed.
9169         (simple_output::check_newline): Improve test and flush last word.
9170         (simple_output::space_or_newline): Improved.
9171         (simple_output::write_newline): Replaced with...
9172         (simple_output::nl): This.
9173         (simple_output::put_raw_char): Flush last word.
9174         (simple_output::check_space): Removed.
9175         (simple_output::put_translated_string): Ditto.
9176         (simple_output::put_string): Simplified.
9177         (simple_output::put_number): Updated.
9178         (simple_output::put_float): Ditto.
9179         (simple_output::put_symbol): Removed.
9180         (simple_output::enable_newlines): Add `check_newline()'.
9181         (simple_output::flush_last_word): New function.
9183         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9184         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9186         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9187         * tmac/an-old.tmac (TP): Ditto.
9189 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9191         * mdate.sh: Make it POSIX compliant.
9193 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9195         Added the `return' request to end a macro immediately.  It simply
9196         pops iterators from the input stack until a macro iterator is found.
9198         * src/roff/troff/input.cc (input_iterator::is_macro,
9199         macro_iterator::is_macro): New member.
9200         (input_return_boundary): New class to signal an immediate return
9201         to while_request().
9202         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9203         New functions.
9204         (input_stack::clear): Use it.
9205         (input_stack::pop_macro): New function.
9206         (while_request): Use `is_return_boundary()'.
9207         (return_macro_request): New function.
9208         (init_input_requests): Use it.
9210         * src/roff/troff/TODO: Updated.
9211         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9213 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9215         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9216         cleanup.
9218 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9220         Make `\B' more rigid.
9222         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9223         parameter.
9224         (get_number_rigidly): New function.
9225         * src/roff/troff/input.cc (do_expr_test): Use it.
9226         * src/roff/troff/token.h: Updated.
9228         * src/roff/troff/request.h: Fix typo (init_html_request ->
9229         init_markup_request).
9231 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9233         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9234         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9235         are now `.begin', `.end', `.image'.
9237         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9238         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9239         Use add_char_to_sbuf().
9240         (to_unicode): New function.
9241         (char_translate_to_html): Changing type of `ch' parameter.
9242         Use `to_unicode()'.
9243         (html_printer::~html_printer): Comment out doctype string.
9244         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9245         instead of `.html-end'.
9246         (write_start_image): Use `.begin' and `.image' instead of
9247         `.html-begin' and `.html-image'.
9248         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9249         (html_begin): Renamed to ...
9250         (begin): This.
9251         (html_end): Renamed to ...
9252         (end): This.
9253         (html_image): Renamed to ...
9254         (image): This.
9255         (init_html_requests): Renamed to ...
9256         (init_markup_requests): This.
9257         * tmac/www.tmac: Updated.
9259 2001-02-28  Bram  <bram@avontuur.org>
9261         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9262         constructor.
9264 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9266         * doc/meref.me: Fixing some typos.
9268 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9270         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9271         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9272         * src/roff/troff/node.h: Updated.
9274 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9276         * tmac/groff_tmac.man: Fix typo.
9278 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9280         Fixing a bug which prevented proper end-of-sentence recognition
9281         between an `unformatted' box and the following text.  As a
9282         consequence, vertical line distances are no longer preserved in
9283         boxes after a call to `.unformat' -- because boxes aren't
9284         line-oriented (contrary to diversions), this doesn't make sense
9285         anyway.
9287         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9288         value.
9289         (vertical_size_node::set_unformat_flag): New method.
9290         * src/roff/troff/node.hh: Updated.
9291         * src/roff/troff/input.cc (word_space_node::reread,
9292         hmotion_node::reread): Reset `unformat' flag after usage.
9293         (unformat_macro): Append only if `set_unformat_flag()' returns
9294         non-zero.
9295         * src/roff/troff/troff.man: Updated.
9297 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9299         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9300         documentation of `asciify' and `unformat' requests.
9302 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9304         Redesigned the `unformat' request.  It is no longer connected with
9305         `asciify' but rather uses new `reread()' methods if the `unformat'
9306         flag is set.  Additionally, the handling of space characters after
9307         unformatting has been fixed so that they retain their width.
9309         * src/roff/troff/node.h (width_list): New structure to store
9310         original widths of spaces.
9311         (node): Added `unformat' member.
9312         Replaced `num_spaces' variable with `orig_width' list.
9313         * src/roff/troff/node.cc (*node::asciify,
9314         asciify_reverse_node_list): Removed `unformat_only' flag and related
9315         code.
9316         (word_space_node::asciify, word_space_node::word_space_node): Use
9317         `orig_width'.
9318         (word_space_node::~word_space_node): New destructor.
9319         (word_space_node::copy): Updated to handle `orig_width'.
9320         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9321         (*node::merge_space): Update `orig_width' list if necessary.
9322         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9323         * src/roff/troff/enc.cc (environment::space_newline): Use
9324         `width_list'.
9325         (environment::space): Added method to handle space width and
9326         sentence space width as parameters.  Use `width_list'.
9327         (environment::make_tab_node): Updated.
9328         * src/roff/troff/env.h: Updated.
9329         * src/roff/troff/input.cc (word_space_node::reread,
9330         unbreakable_space_node::reread, hmotion_node::reread): New methods
9331         to handle nodes specially if `unformat' flag is set.
9332         (do_asciify_macro): Renamed back to ...
9333         (asciify_macro): This.
9334         (unformat_macro): New implementation to simply set the `unformat'
9335         flag.
9337         * MORE.STUFF: Added more info about deroff.
9339 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9341         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9342         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9343         and `add_self()' methods to avoid hyphenation.  For example, the
9344         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9345         soft hyphen after `foo'.  Now the hyphen list is correctly
9346         `foo<ignore><ignore>bar'.
9348 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9350         * tmac/groff_tmac.man: Fix `BIR' macro.
9352 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9354         A new escape sequence `\:', inserting a zero-width break point.
9356         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9357         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9358         Implement it.
9359         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9360         method.
9361         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9362         and `asciify()' methods.
9363         * src/roff/troff/node.cc (space_node::space_node): Updated.
9364         (space_node::asciify): Handle `was_escape_colon'.
9365         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9367         Handle `\~' similar to other comparable requests.
9369         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9370         label.
9371         (token::next): Move creation of an unbreakable_space_node to...
9372         (token::add_to_node_list): Here.
9374         Fix a bug which sometimes prevented hyphenation of words connected
9375         with `\~' or `\ ' (and other escape sequences handled as
9376         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9377         (after a call to the `unformat' request).
9379         * src/roff/troff/env.h (environment::possibly_break_line,
9380         environment::hyphenate_line): Introducing `start_here' parameter.
9381         * src/roff/troff/env.cc (environment::space_newline,
9382         environment::space): Use it.
9383         (environment::possibly_break_line, environment::hyphenate_line):
9384         Implement it.
9385         * src/roff/troff/input.cc (process_input_stack): Use it.
9386         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9387         space_char_hmotion_node, overstrike_node): Add
9388         `get_hyphenation_type()' method.
9389         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9390         if `unformat_only' is active.
9392 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9394         Implemented new read-only number register `.linetabs' which
9395         returns 1 if in line-tabs mode, 0 otherwise.
9397         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9398         * src/roff/troff/env.cc (get_line_tabs): New function.
9399         (init_env_requests): Use it.
9400         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9402         * VERSION, REVISION: Changing to 1.17.0.
9404 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9406         Fixed a bug which prevented hyphenation of words which are finished
9407         with `\)'.
9409         * src/roff/troff/token.h (token): Add enum type
9410         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9411         * src/roff/troff/input.cc (token::next, token::description,
9412         get_line_arg, token::add_to_node_list, token::process): Use it.
9414 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9416         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9417         * src/roff/troff/div.cc (do_divert): Use it.
9419         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9421 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9423         Adding the `linetabs' request.  If set, tab distances are not
9424         computed relative to the input line but relative to the output line.
9426         * src/roff/troff/env.h (environment): New member `line_tabs'.
9427         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9428         (environment::environment, environment::copy): Updated.
9429         (environment::distance_to_next_tab): Use `line_tabs'.
9430         (init_env_requests): Register request.
9431         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9432         fixes.
9434 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9436         Introducing a new read-only register `.int' which is set to a
9437         positive value if the last output line is interrupted (i.e., if it
9438         contains `\c').
9440         * src/roff/troff/env.cc (init_env_requests): Add it.
9441         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9443 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9445         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9446         * src/preproc/html/pre-html.cc (findPrefix): New function which
9447         generates the troff executable name via the system prefix.
9448         * src/preproc/eqn/main.cc: Modified warning message.
9450 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9452         troff's `box' and `boxa' requests didn't preserve temporary
9453         indentation.
9455         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9456         `saved_target_text_length' members.
9457         * src/roff/troff/div.cc (do_divert): Use them.
9459         Tabs (but not yet leaders and fields) are now handled correctly by
9460         `asciify' request.
9462         * node.h (hmotion_node): Add field `was_tab'.
9463         * env.cc (environment::make_tab_node): Set it.
9464         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9466         Added new request `unformat' which will, contrary to `asciify',
9467         preserve font information after unformatting (i.e., only nodes
9468         dealing with horizontal space are converted back to input
9469         characters).
9471         * input.cc (asciify_macro): Renamed to ...
9472         (do_asciify_macro): this, having a new parameter `unformat_only'.
9473         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9474         (init_input_requests): Added `unformat'.
9475         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9476         parameter to control asciification process.
9477         * node.h (*_node::asciify): Ditto.
9478         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9480 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9482         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9484 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9486         * tmac/ps.tmac: Remove call of psold.tmac.
9487         * tmac/psold.tmac: Comment updated.
9488         * tmac/psnew.tmac: Removed since no longer needed.
9489         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9491         * font/devutf8/R.proto: Adding `shc' glyph.
9492         * font/devutf8/NOTES: Updated.
9494         * test-groff: Updated.
9496 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9498         First cut of the new html device driver.  Changes to pre-html and
9499         the new grohtml are too numerous to be documented here.
9501         Stuff related to `html' has been renamed to `html-old' and `html2'
9502         stuff has been renamed to `html' (including directories).  The new
9503         html device driver is therefore invoked as `-Thtml'.
9505         Added new `\O' escape to suppress output (needed by html driver).
9507         Added functions and code to pass info about input-level commands
9508         (`.in', `.fl', etc.) to html driver.
9510         Three new functions (.html-begin, .html-end, and .html-image) for
9511         better html handling: `html-begin' will execute the remaining line
9512         if at the outermost nesting level, increasing an internal counter.
9513         `html-end' does the same but decreases the internal counter.
9514         `html_image' puts its arguments into a special node (suppress_node)
9515         to define an image region.
9517         The `output' request has been removed.
9519         * tmac/html-tags.tmac: Removed.
9520         * tmac/arkup.tmac: Updated and renamed to ...
9521         * tmac/www.tmac: New file.
9522         * tmac/markup.tmac Updated and renamed to ...
9523         * tmac/mwww.tmac: New file.
9524         * tmac/Makefile.sub: Updated.
9525         * tmac/an-old.tmac: Updated.
9526         * tmac/eqnrc: Updated.
9527         * tmac/groff_man.man
9528         * tmac/groff_markup.man: Updated and renamed to ...
9529         * tmac/groff_mwww.man: New file.
9530         * tmac/groff_tmac.man: Updated.
9531         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9532         * tmac/html.tmac: Updated and renamed from html2.tmac.
9533         * tmac/pspic.tmac: Updated html support.
9534         * tmac/s.tmac: Added html output support.
9535         * tmac/troffrc, tmac/troffrc-end: Updated.
9537         * Makefile.in, doc/Makefile: Updated.
9538         * doc/groff.texinfo: Added info about new `\O' escape.
9539         * doc/homepage.ms: Use `MAILTO' macro.
9541         * font/devhtml/DESC.proto: Add `C' font.
9542         * font/devhtml/Makefile.sub: Updated.
9543         * font/devhtml/R.proto: Minor fixes.
9544         * font/devhtml-old/Makefile.sub: Updated.
9546         * src/devices/grohtml-old/Makefile.sub: Updated.
9548         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9549         method.
9550         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9551         graphic_start): Add `inline' parameter.  Update.
9552         (html_end_suppress, graphic_end): Update.
9554         * src/include/html-strings.h: New file.
9555         * src/include/htmlindicate.h: Comments updated.
9556         * src/include/printer.h: Updated.
9558         * src/preproc/eqn/main.cc (do_file, main): Updated.
9559         * src/preproc/pic/troff.cc (troff_output::start_picture,
9560         troff_output::finish_picture): Updated.
9561         * src/preproc/tbl/main.cc (process_input_file): Updated.
9563         * src/roff/groff/groff.cc (main): Updated.
9564         Pass device arguments to predrivers also.
9565         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9566         * src/roff/troff/env.h (environment): Updated.
9567         New elements `need_eol' and `ignore_next_eol' (for html output).
9568         * src/roff/troff/env.cc (environment::environment): Add initializers
9569         for `need_eol' and `ignore_next_eol'.
9570         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9571         functions.
9572         (point_size, fill, no_fill, center, right_justify, line_length,
9573         indent, temporary_indent, break_request, handle_tab): Use
9574         `add_html_tag()'.
9575         (set_tabs): Use `add_html_tag_tabs()'.
9576         (environment::add_html_tag): Updated.
9577         (environment::do_break): Updated.
9578         * src/roff/troff/div.cc (space_request, flush_output): Use
9579         `environment::add_html_tag()'.
9580         * src/roff/troff/input.cc: Updated.
9581         New variable `html_level' to indicate nested `html-begin' requests.
9582         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9583         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9584         `force_tprint()' method.
9585         (token::next): Handle `\O'.
9586         (do_suppress): Implement it.
9587         (html_begin, html_end, html_image): New functions.
9588         (init_output_requests): Renamed to ...
9589         (init_html_requests): this.
9590         (main): Use it.
9591         (macro::append_str, macro::append_unsigned, macro::append_int): New
9592         methods.
9593         New variable `output_low_mark_miny' to limit minimal value of y.
9594         (reset_output_registers): Use it.
9595         (output_request): Removed.
9596         (get_output_registers): New function.
9597         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9598         (*_node): Added `force_tprint()' if necessary.
9599         (special_node): New elements `tf' and `get_tfont()'.
9600         (suppress_node): New class.
9601         * src/roff/troff/node.cc:
9602         New global variables `image_no' and `suppress_start_page'.
9603         (real_output_file): New method `is_on()'.
9604         (troff_output_file): New method `start_special(tfont)'.
9605         (troff_output_file::really_print_line): Use `tprint' conditionally.
9606         (real_output_file::print_line): Updated.
9607         (real_output_file::on): Updated.
9608         (*_node): Added `force_tprint()'.
9609         (special_node::special_node): Initializer updated.
9610         (special_node::same, special_node::copy, special_node::tprint_start):
9611         Updated.
9612         (get_reg_int, get_reg_str): New functions.
9613         (suppress_node::*): New methods.
9614         New global variables last_position, last_image_filename;
9615         (min): New inline function.
9616         * src/roff/troff/reg.h, src/roff/troff/request.h,
9617         src/roff/troff/troff.h: Updated.
9619 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9621         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9622         documentation of `asciify' request.
9624 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9626         * src/roff/troff/input.cc: Move definition of special characters
9627         like `ESCAPE_TILDE' to ...
9628         * src/roff/troff/input.h: New file.
9629         * src/roff/troff/Makefile.sub (HDRS): Add it.
9631         Extending the .asciify request to `unformat' space characters also.
9633         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9634         to count input space characters.
9635         Update constructors to take care of it.
9636         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9637         `ESCAPE_SPACE' instead of normal space.
9638         (word_space_node::asciify): New method.
9639         (unbreakable_space_node::asciify): New method.
9640         (word_space_node::merge_space): New method.
9641         * src/roff/troff/env.cc (environment::space_newline,
9642         environment::space): Add code to initialize `num_spaces' (using the
9643         constructor of `word_space_node').
9644         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9645         Document it.
9647 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9649         * man/groff_char.man: Use table header traps only conditionally.
9651 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9653         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9655 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9657         Introducing the `box' and `boxa' requests which are similar to
9658         `di' resp. `da' but omitting a partially filled line (which is
9659         restored after ending the diversion).
9661         * src/roff/troff/div.h (diversion): Add elements to save partially
9662         filled line.
9663         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9664         partially filled line.
9665         (divert, divert_append): Updated.
9666         (box, box_append): New functions.
9667         (init_div_requests): Use them.
9668         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9669         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9671         * doc/groff.texinfo: Fix documentation of `lf' request.
9673 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9675         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9677 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9679         Ignore `ss' request if in compatibility mode.
9681         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9682         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9683         * src/roff/troff/env.cc (space_size): Use it.
9685         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9686         `ss' request in nroff mode.
9688         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9689         changes.
9691 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9693         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9695 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9697         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9698         * src/preproc/eqn/neqn.man: Small fixes and additions.
9700 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9702         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9703         Fixing typo.
9705         * src/preproc/eqn/neqn.man: New file.
9707         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9708         negative' warning.
9710         * tmac/e.tmac: Add `T&' macro.
9711         Fix `indent cannot be negative' warning.
9712         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9714 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9716         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9718 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9720         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9721         `alloca' symbol .
9723         * MORE.STUFF: Added info about deroff for djgpp.
9725         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9726         documentation of -rcR switch.
9728 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9730         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9731         if -rcR=1 (which is now the default in nroff mode), a single, very
9732         long page is created instead of multiple pages: All `ne' and `wh'
9733         requests are put into conditionals; a new macro `an-end' is added to
9734         be called with `em'.
9736         Some other minor cleanups.
9738         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9740 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9742         Fixing a bug which prevented hyphenation in words followed
9743         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9745         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9746         Adding possibly_break_line().
9747         * src/roff/troff/env.h (environment): Make possibly_break_line()
9748         public.
9750         Make `\~' usable in .tr request.
9752         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9753         (token): Add stretchable_space().
9754         * src/roff/troff/input.cc (token::next, token::delimiter,
9755         token::description, process_input_stack, do_translate,
9756         add_to_node_list, token::process): Use it.
9757         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9758         for adjusting the space.
9759         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9760         for stretchable space.
9761         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9762         (make_node): Add code for stretchable space.
9763         * src/roff/troff/env.cc (environment::add_char): Use it.
9764         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9765         (get_copy, token::next, transparent_translate, asciify): Use it.
9767         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9768         doc/groff.texinfo: Updated.
9769         * man/groff.man: Small reorderings.
9771 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9773         * NEWS: Fixes.
9774         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9775         option.
9776         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9777         `safer_macro_path' to -M option.
9778         * src/roff/troff/troff.man: Fixes.
9780 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9782         Use safer path (except for config files) if -U isn't specified.  Add
9783         a special macro path (without home and current directory) for config
9784         files.  Add home directory to unsafe path for consistency.  Don't
9785         include the home directory in the font path.
9787         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9788         `macro_path'.
9789         * src/include/macropath.h: Add `config_macrp_path'.
9790         * src/libs/libgroff/fontfile.cc: Fix font path.
9791         * src/roff/troff/input.cc (process_startup_file): Use
9792         `config_macro_path'.
9793         (main): Select unsafe path if -U is given.
9795         * src/preproc/eqn/main.cc (main): Fixing search path for
9796         configuration file.
9797         * src/preproc/eqn/eqn.man: Updated.
9799         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9800         Updated.
9802         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9803         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9804         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9805         src/devices/grotty/grotty.man: Updated.
9807         * Makefile.in: Fix comments.
9809 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9811         * tmac/safer.tmac: Empty file added (again) for compatibility
9812         reasons.
9813         * tmac/Makefile.sub: Updated.
9815 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9817         * src/devices/grodvi/dvi.cc (main),
9818         src/devices/grohtml2/post-html.cc (main),
9819         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9820         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9821         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9822         (main), src/preproc/html2/pre-html.cc (main),
9823         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9824         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9825         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9826         (main), src/utils/hpftodit/hpftodit.cc (main),
9827         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9828         (main), src/utils/lookbib/lookbib.cc (main),
9829         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9830         (main): Use stdout for -v.
9831         * src/roff/groff/groff.cc (run_commands),
9832         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9833         to make direct printing to stdout possible.
9834         * src/roff/groff/pipeline.h: Updated.
9836         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9837         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9838         * src/utils/afmtodit/afmtodit.man: Updated.
9840         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9841         (version): New function.
9842         (usage): Updated.
9843         * src/utils/addftinfo/addftinfo.man: Updated.
9845         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9846         Fixing copyright dates.
9848         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9849         replacing it.
9851         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9852         version_string.
9854         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9856 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9858         In all programs, make -v return immediately with exit status 0 to
9859         be compliant with the GNU standard.
9861         * src/devices/grodvi/dvi.cc (main),
9862         src/devices/grohtml2/post-html.cc (main),
9863         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9864         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9865         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9866         (main), src/preproc/html2/pre-html.cc (main),
9867         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9868         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9869         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9870         (main): Implement it.
9871         * NEWS: Updated.
9873         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9874         and postprocessors to the -v option.
9876         * src/roff/grog/grog.pl: Implement -v.
9877         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9878         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9880         * src/roff/nroff/nroff.sh: Implement -v.
9881         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9882         * src/roff/nroff/nroff.man: Updated.
9883         
9884         * src/preproc/eqn/main.cc (main): Fix comment typo.
9886         * MORE.STUFF: Added info about djgpp port of grap.
9888 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9890         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9891         mode (or rather, implemented non-compatibility mode).
9892         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9894         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9895         replacing it -- we don't find gxditview otherwise.
9896         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9898         * src/preproc/pic/depend: Removed.  Unnecessary.
9900         Implemented dummy keyword `solid' in pic for compatibility with
9901         AT&T pic.
9903         * lex.cc (lookup_keyword): Added `solid'.
9904         * pic.y: Added SOLID with dummy rule.
9905         * pic.cc, pic_tab.h: Regenerated.
9906         * doc/pic.ms: Updated.
9908 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9910         For security reasons, don't use the current directory but the home
9911         directory while searching and scanning troffrc and troffrc-end.
9912         Similarly, replace the current directory with the home directory
9913         in the font path.
9915         * Makefile.in (fontpath, tmacpath): Remove current directory.
9917         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9918         two parameters `add_home' and `add_current'.
9919         (search_path::~search_path, search_path::command_line_dir,
9920         search_path::open_file): Remove tests for `dirs' being zero.
9921         * src/include/searchpath.h: Adjust.
9922         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9923         `safer_macro_path'.
9924         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9926         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9927         * src/roff/troff/input.cc: Use `mac_path', initialized with
9928         `macro_path'.
9929         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9930         * src/roff/troff/env.cc: Use `mac_path'.
9932         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9934         * NEWS, man/roff.man, src/roff/troff/troff.man,
9935         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9936         Updated.
9938 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9940         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9942         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9943         * configure.in: Fix typo in comment.
9944         * configure: Regenerated.
9946         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9947         copyright dates.
9949 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9951         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9953         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9954         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9955         $(systemtmacdir).
9956         Use @libdir@.
9957         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9958         * tmac/Makefile.sub (install_data): Create
9959         $(systemtmacdir) and $(localtmacdir).
9960         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9961         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9962         NEWS, doc/groff.texinfo: Updated and minor fixes.
9964         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9965         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9966         $(systemtmacdir) since the wrapper files are platform-dependent.
9968 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9970         * doc/groff.texinfo: Fix typo.
9972 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9974         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9975           tmac.doc.old -> doc-old.tmac
9976           tmac.an.old  -> an-old.tmac
9978         * tmac/tmac.*: Moved to ...
9979         * tmac/*.tmac: this.
9980         * tmac/man.local: Fix comment.
9981         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9982         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9983         Added some `FILES' sections.  More use of @...@ directives.  Other
9984         minor updates.
9985         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9986         * doc/homepage.ms, doc/groff.texinfo: Updated.
9987         * man/groff.man, man/roff.man: Updated.
9988         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9989         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9990         src/devices/grotty/grotty.man: Updated.
9991         * src/preproc/pic/pic.man: Updated.
9992         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9993         instead of -mdoc.old.
9994         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9995         * src/roff/nroff/nroff.man: Updated.
9996         * NEWS: Updated.
9998         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10000         * tmac/mm.diff: Removed -- it has no use now since the mm package
10001         is part of groff.
10003         * tmac/*: Removed trailing spaces.
10005         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10006         the tmac subdirectory also).
10008         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10009         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10010         stuff since it is no longer needed.
10012         * README, PROBLEMS: Updated.
10014 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10016         Invert current behaviour: Search first FOOBAR.tmac, then
10017         tmac.FOOBAR.
10019         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10020         (open_mac_file, macro_source): Implement it.
10021         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10022         doc/groff.texinfo, NEWS: Document it.
10024         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10025         Small documentation improvements.
10027         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10028         subdirectory also).
10030         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10032 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10034         Add local tmac directory (groff/site-tmac).
10036         * Makefile.in: Add $(localtmacdir).
10037         (uninstall_dirs): Add $(localtmacdir).
10038         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10039         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10040         in $(localtmacdir).  Create $(localtmacdir).
10041         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10042         Updated and minor fixes.
10044         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10046         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10048 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10050         Move hyphen.us to tmac directory.
10052         * src/roff/troff/hyphen.us: Removed.
10053         * src/tmac/hyphen.us: Added.
10054         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10056         Change installation structure for data files from .../groff/... to
10057         .../groff/<version><revision>/... to be conform with other GNU
10058         programs.
10060         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10061         doc/Makefile: Implement it.
10062         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10063         * configure: Updated.
10064         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10065         * NEWS: Document it.
10066         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10067         @MACRODIR@ instead of hard-coded directories.
10069 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10071         Implement $GROFF_BIN_PATH environment variable (which defaults to
10072         $bindir) used for child programs of groff and similar wrappers.
10074         * gendefs.sh: Improve documentation.
10075         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10076         src/preproc/eqn/Makefile.sub (neqn),
10077         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10078         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10079         $GROFF_BIN_PATH.
10080         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10081         $GROFF_PATH__ (the latter for communication with troff).
10082         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10083         set.
10084         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10085         doc/groff.texinfo: Document it.
10087         * doc/groff.texinfo: Improve documentation of troff's -a option.
10089 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10091         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10092         non-intrusive eol marker.
10093         (troff_output_file::determine_line_limits): New function.
10094         (troff_output_file::draw): Use it.
10095         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10096         output_pending_lines() instead of output_line().
10097         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10098         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10099         createImage): Small fixes.
10100         
10101 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10103         Replace tmac.safer with a real secure solution.
10105         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10106         system_request, pipe_output): Disable requests if in safer mode.
10107         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10108         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10109         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10110         doc/groff.texinfo, src/roff/groff/groff.man,
10111         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10113         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10114         (resource_manager::output_prolog): Replace setenv() with putenv().
10116 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10118         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10119         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10120         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10121         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10122         compilation errors with some compilers.  It seems that this code
10123         is no longer necessary -- if yes, it is easy to add some #ifdef's
10124         for that particular old-fashioned compiler.
10126         * MORE.STUFF: Added info about Meta-tbl.
10128         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10130 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10132         Adding a new escape sequence \B'...': If the string between
10133         the delimiters is a valid numeric expression, return the character
10134         `1', and `0' otherwise.  This is an analogon to \A.
10136         * src/roff/troff/input.cc (do_expr_test): Implement it.
10137         (token::next): Use it.
10138         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10140         * tmac/tmac.trace: Made independent from escape character.
10142 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10144         Adding a new request .dei: define indirect.  The first and second
10145         parameter of .dei are taken from string registers instead directly;
10146         this very special request is needed to make tmac.trace independent
10147         from the escape character (which might even be disabled).
10149         * src/roff/troff/input.cc (do_define_macro): Implement it.
10150         (define_macro_indirect): New function.
10151         (init_input_requests): Use it.
10153         Adding two requests .ecs and .ecr: Save and restore the escape
10154         character.  These two requests are needed to make tmac.trace
10155         independent from the escape character (which might even be
10156         disabled).
10158         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10159         Implement it.
10160         (init_input_requests): Use it.
10162         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10164 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10166         Adding a new option -P and new environment variable GROPS_PROLOGUE
10167         to grops, selecting a different prologue file (minor modifications
10168         by WL).
10170         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10171         src/devices/grops/ps.cc (main): Implement it.
10172         * src/devices/grops/grops.man, NEWS: Document it.
10174 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10176         * INSTALL: Add info about selecting paper format.
10178 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10180         * src/roff/troff/input.cc (main): Fixing compiler warning.
10181         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10182         strings.h from the former to the latter.
10183         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10184         stuff from the former to the latter.
10186 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10188         Implementing two new requests .tm1 and .tmc: The former is similar
10189         to .tm but can output leading spaces; its syntax is similar to
10190         defining a string, i.e., a `"' can be used to mark the beginning of
10191         the string to be written to stderr: `.tm1 " test'.  The latter is
10192         similar to .tm1 but doesn't write out a final newline character.
10194         * src/roff/troff/input.cc (terminal1, terminal_continue,
10195         do_terminal): New functions.
10196         (init_input_requests): Use them.
10197         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10199 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10201         * tmac/groff_mdoc.samples.man: Small fixes.
10203 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10205         * tmac/groff_mdoc.man: Fixing typo.
10207 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10209         Implementing a .nop request which does nothing.
10211         * src/roff/troff/input.cc (nop_request): New function.
10212         (init_input_requests): Use it.
10213         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10215 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10217         * doc/groff.texinfo: Added some comments.
10219 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10221         * src/roff/troff/TODO: Updated.
10223 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10225         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10227 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10229         * font/devps/generate/Makefile (SHELL): Define explicitly to
10230         "/bin/sh", for non-Unix platforms.
10231         (extraclean): Use a more portable "" quoting instead of a
10232         backslash (which doesn't work on DOS/Windows).
10233         
10234         * font/devlj4/generate/Makefile (extraclean): Ditto.
10236         * font/devdvi/generate/Makefile (extraclean): Ditto.
10238 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10240         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10241         src/roff/troff/troff.man: Document Eli's latest changes.
10243 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10245         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10246         macro file names of the form NAME.tmac as well as tmac.NAME.
10248 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10250         * src/include/posix.h: Remove definition of FILENAME_MAX.
10252         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10253         `sys_fatal' and `stop' function().
10255         * test-groff: Updated.
10257 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10259         Added the new troff command .output <arg> to suppress output (while
10260         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10261         registers (for passing the output dimensions to the output device).
10263         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10264         parameter.
10265         * src/roff/troff/node.h, src/roff/troff/node.cc
10266         (troff_output_file::really_print_line,
10267         ascii_output_file::really_print_line,
10268         supress_output_file::really_print_line): Use `width' parameter.
10269         (troff_output_file::really_on, troff_output_file::really_off,
10270         output_file::on, output_file::off, real_output_file::on,
10271         real_output_file::off, real_output_file::really_on,
10272         real_output_file::really_off): New functions.
10273         (real_output_file:public output_file): New variable `output_on'.
10274         (real_output_file::begin_page, real_output_file::copy_file,
10275         real_output_file::transparent_char, real_output_file::print_line):
10276         Use it.
10277         (real_output_file::print_line): Use check_output_limits.
10278         * src/roff/troff/reg.h, src/roff/troff/request.h,
10279         src/roff/troff/input.cc (assign_registers): New function to remove
10280         two `goto's.
10281         (do_ps_file): Use it.
10282         (check_output_limits, reset_output_registers, output_request,
10283         init_output_requests): New functions.
10284         (init_input_requests): Updated.
10286         Added new grohtml2 device and html2 preprocessor (coding
10287         not yet finished) which will eventually replace grohtml.
10289         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10290         Updated.
10291         * src/include/htmlindicate.h, src/include/htmlindicate
10292         (html_begin_suppress, html_end_suppress): New functions.
10293         * src/preproc/tbl/main.cc: Use it.
10294         * src/roff/groff/groff.cc: Add support for html2 device (which will
10295         automatically invoke the html2 preprocessor).
10296         * src/roff/troff/input.cc (is_html2): New variable.
10297         * src/roff/troff/troff.h, src/roff/troff/env.h,
10298         src/roff/troff/env.cc (environment::add_html_tag): New function
10299         (uses `is_html2').
10300         (environment::do_break): Use it.
10301         * font/devhtml2/*: New files.
10302         * src/devices/grohtml2: New device.
10303         * src/preproc/html2: New preprocessor.
10304         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10306 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10308         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10310 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10312         * src/include/lib.h: Provide a fix for IRIX to not include
10313         groff-getopt.h.
10315 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10317         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10318         since some non-GNU sed programs can't handle null regexps.
10319         * configure, src/preproc/eqn/Makefile.sub,
10320         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10322         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10323         bug (string.h and strings.h are both needed according to latest
10324         POSIX standard).
10326         * MORE.STUFF: Added info about unroff and troffcvt.
10328 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10330         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10331         used before -ms.
10333         * tmac/tmac.man.old: Remove unused number register.
10335         * tmac.doc: Minor documentation fix.
10337 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10339         * src/roff/groff/pipeline.c (is_system_shell):
10340         Fix typo: "monocased_shell" no longer exists.
10342 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10344         Remove FILENAME_MAX limits.
10346         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10347         that the argument length is less than FILENAME_MAX.
10348         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10349         Use struct hack to allocate and free file name.
10350         (struct xtmpfile_list): fname is now part of the structure,
10351         not a pointer to another string.
10353 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10355         * src/include/posix.h: Add a default value for FILENAME_MAX.
10357 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10359         Add support for new BSD-style man pages (with ".Dd" instead of
10360         ".TH"), so that "groff -man" understands both styles, even
10361         when running "groff -man" on a host whose system man page
10362         macros don't support ".Dd".
10364         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10365         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10366         in case the system man macros don't define Dd or TH.
10368         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10369         * tmac/tmac.an: New one-line file.
10370         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10372 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10374         * src/roff/troff/troff.man: Fixing typos.
10376 Version 1.16.1 released
10377 =======================
10379 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10381         Preparing release 1.16.1.
10383         * REVISION: Revision number set to 1.
10384         * MORE.STUFF: Added info about port to DOS.
10385         * NEWS, win32-diffs: Updated.
10387         * src/include/nonposix.h: Remove first line -- this file is used
10388         in C also.
10390         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10391         link to it.
10393 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10395         * doc/texinfo.tex: Update to latest version.
10397 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10399         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10400         commands that fail.  Don't assume that "export a=b" is valid shell
10401         syntax.  This is needed for Solaris 2.5.1.
10403         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10404         comment about missing Solaris headers.
10406         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10408 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10410         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10411         SET_BINARY().
10413         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10415         * win32-diffs: Updated.
10416         * README.WIN32: Added CRs to make all Windows editors happy.
10418         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10419         src/roff/groff/pipeline.c).
10421 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10423         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10424         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10426 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10428         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10429         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10430         are binary files.
10431         (main): Support non-Posix systems with several different styles of
10432         slash characters in file names.
10434         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10435         (main) [SET_BINARY]: Switch stdin into binary mode.
10437         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10438         (main): Support file names with several possible slash-type
10439         characters, as given by DIR_SEPS[] in nonposix.h.
10440         (main) [__MSDOS__]: If renaming the temporary index file fails
10441         because it has more than one dot in its trunk, replace the dot
10442         with an underscore and try again.
10443         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10444         Newline.
10445         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10447         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10448         (File::File): Open the input file in binary mode.  Strip CR
10449         characters from each CR-LF pair.
10450         (xbasename): Support file names with several possible slash-type
10451         characters, as given by DIR_SEPS[] in nonposix.h.
10453         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10455         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10456         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10457         [!_POSIX_VERSION]: Define for traditional Unix systems.
10458         (real_output_file::real_output_file): Remove the MSVC-specific
10459         call to popen, use instead POPEN_WT, appropriately defined on
10460         nonposix.h.  #include nonposix.h.
10461         (real_output_file::~real_output_file): Remove the MSVC-specific
10462         call to pclose, a suitable macro is now defined on nonposix.h.
10463         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10464         and WEXITSTATUS instead of assuming traditional Unix
10465         interpretation of the status returned by pclose.
10467         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10468         call to popen, use POPEN_RT instead (appropriately defined on
10469         nonposix.h).  #include nonposix.h.
10470         (ps_bbox_request): Open the PostScript file in binary mode.
10471         Close the file after processing it.
10472         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10473         nonposix.h.
10475         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10476         A version of run_pipeline that doesn't use `fork'.
10477         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10478         (system_shell_name, system_shell_dash_c)
10479         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10480         the ugliness of testing DOS/Windows file names for equality, and
10481         support both stock shells and ports of Unix shells.
10483         * src/roff/groff/groff.cc: #include nonposix.h.
10484         (BSHELL): Definition moved to nonposix.h.
10485         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10486         instead of a literal "-c".
10487         (xbasename): Support file names with several possible slash-type
10488         characters, as given by DIR_SEPS[] in nonposix.h.
10489         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10490         of literal strings.
10492         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10493         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10495         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10496         pic_tab.h.
10498         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10500         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10501         eqn_tab.h.
10503         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10505         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10506         P_tmpdir is defined, use it instead of the literal "/tmp".
10507         (remove_tmp_files, add_tmp_file): New functions.
10508         (xtmpfile): Record temporary files and register an atexit function
10509         to delete them explicitly, instead of relying on the OS to do
10510         that, which doesn't work on non-Unix systems.
10512         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10513         (search_path::search_path): Use PATH_SEP instead of a literal
10514         colon.
10515         (search_path::command_line_dir): Ditto.
10516         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10517         to support non-Posix systems.
10519         * src/libs/libbib/search.cc: #include nonposix.h.
10520         (search_list::add_file): Open the file in binary mode.
10522         * src/libs/libbib/linear.cc: #include nonposix.h.
10523         (file_buffer::load): Remove \r characters preceding \n from the
10524         loaded buffer.
10526         * src/libs/libbib/index.cc: #include nonposix.h.
10527         (make_index_search_item): Open index_filename in O_BINARY mode.
10528         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10529         characters before \n characters.
10530         (index_search_item::check_files): Open files in binary mode.
10531         (index_search_item::munge_filename): Support DOS-style file names
10532         with backslashes and drive letters, use IS_ABSOLUTE.
10534         * src/devices/grops/ps.cc: #include nonposix.h.
10535         (main) [SET_BINARY]: Switch stdout to binary mode.
10537         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10538         (main) [SET_BINARY]: Switch stdout to binary mode.
10540         * src/devices/grolbp/lbp.cc: #include nonposix.h
10541         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10543         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10544         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10545         nonposix.h).
10546         (main) [SET_BINARY]: Switch stdout to binary mode.
10547         [_MSC_VER]: Remove an explicit call to _setmode.
10549         * src/include/nonposix.h: New file.
10551         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10552         operation when building with DJGPP.
10553         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10554         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10555         ENVSETUP.
10557         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10558         MS-DOS.
10559         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10560         etc. can include a semi-colon on DOS/Windows.
10561         (depend.temp): Use depend1.temp instead of depend.temp1, to
10562         prevent files from overerwiting each other on 8+3 filesystems.
10564         * gendef.sh (t): Change definition to work with DOS/Windows.
10566         doc/groff.texinfo: Apart of some typo corrections, I also changed
10567         some index entris, to make them more non-ambiguous, and also put
10568         @ignore around some parts that are not yet written, to allow the
10569         Info output be readable.
10571 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10573         Replaced specific checks for function declarations with a generic
10574         routine taken from GNU bfd.
10576         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10577         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10578         * configure.in: Use it.
10579         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10580         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10581         src/roff/groff/groff.cc: Use it.
10582         * Makefile.in, configure: Updated.
10584 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10586         * src/devides/grolbp/lbp.h: Removed unused variables.
10588 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10590         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10591         strncasecmp().
10593 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10595         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10596         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10597         * configure.in: Use it.
10598         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10599         * configure, Makefile.in: Updated.
10601         * configure.in: Add test for strncasecmp().
10602         * src/include/lib.h: Use it.
10604 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10606         * src/preproc/grn/Makefile.sub: Add MLIB.
10608 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10610         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10612 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10614         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10616         * PROBLEMS: Small update.
10618         * src/devices/grolbp/lbp.cc: Various small fixes.
10620 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10622         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10624         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10626 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10628         * man/roff.man: Removed unused macro.
10630 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10632         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10633         This is needed e.g. if you do
10634         `make distclean; ./configure; make dist'.
10636 Version 1.16 released
10637 =====================
10639 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10641         Adding font CWI (constant width italic) to devdvi.
10643         * font/devdvi/CWI: New file.
10644         * font/devdvi/generate/Makefile: Add generating rule.
10645         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10646         tmac/tmac.dvi: Use it.
10647         * NEWS: Announce it.
10649         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10650         * font/devlj4/generate/Makefile: Cosmetic changes only.
10652         * man/groff.man: Removed most of the redundant description of
10653         special characters (which is in groff_char.man).  Added font
10654         translation CB->CR for devdvi.  Other minor fixes.
10656         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10657         (registered) symbols.
10659 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10661         * doc/Makefile: Added rule for creating info files.
10663         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10664         AMS font metrics.
10665         * font/devdvi/generate/Makefile: Fixed dependencies.
10667         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10668         NewCentury Schoolbook!
10669         * font/devps/generate/afmname: Will now run with GNU awk.
10670         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10671         * font/devps/generate/Makefile: Cosmetic changes only.
10673 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10675         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10676         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10677         `.SS' now produces a heading with a smaller size than `.SH'. 
10678         Completely formatted.
10679         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10681         * man/groff.man: Improved table appearance.  Use of `eo' request
10682         to reduce number of doubled backslashes in macro definitions.
10683         Replacing `\e' with `\(rs'.  Other minor fixes.
10685         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10686         to have correct line number.
10688         * INSTALL: Small improvement.
10690 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10692         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10693         WL).
10695 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10697         * man/groff.man: Complete update (with a lot of corrections by WL).
10699 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10701         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10703         * font/*/*: Implement it.
10704         * man/groff_char.man, NEWS: Document it.
10706         * src/include/unix.h: Removed.  It isn't used.
10708         * doc/groff.texinfo: Slight improvements.
10710 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10712         * README, win32-diffs: Small fixes and improvements.
10714 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10716         * FDL: New file (the Free Documentation License version 1.1).
10718         * doc/groff.texinfo: Added many start-up values for gtroff.
10719         Some structural improvements of the source code.
10721 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10723         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10724         * src/roff/troff/troff.man: Added info about troffrc-end.
10726 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10728         * Makefile.in (EXTRADIRS): Fix typos.
10729         (dist): Handle deletion of old .tar.gz file correctly.
10730         (DISTDIRS): Include all tty output devices.
10732         * doc/groff.texinfo: Adding more cross references; countless other
10733         fixes.
10735 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10737         * MORE.STUFF: Added Robert Marks's utilities.
10739 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10741         Added win32 port contributed by Blake McBride
10742         <blake@florida-software.com>.
10744         * README.WIN32, win32-diffs: New files.
10745         * NEWS: Updated.
10747         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10748         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10749         (change): Removed unused variables.
10751         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10752         (savebounds): Changed return value from `int' to `void'.
10753         * src/preproc/grn/hdb.cc: Ditto.
10755         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10756         final backslash in comment to avoid compiler warning.
10758         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10760         * doc/groff.texinfo: More fixes.
10762 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10764         * tmac/tmac.doc: Documentation fix.
10766 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10768         * doc/groff.texinfo: Reading the source code shows up a lot of
10769         omissions and incorrect data...  More conversion to @Deffn macros.
10771 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10773         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10774         dependency.
10776         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10778 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10780         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10781         improvements.
10783         * doc/groff.texinfo: Extended history section.  More conversion to
10784         @Deffn macros.  More .tr documentation.
10786 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10788         * doc/groff.texinfo: Completed tab section.  Added info about
10789         fields.
10791 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10793         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10795 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10797         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10798         LaTeX 2e).
10799         * NEWS: Document it.
10801         * man/troff.man: Minor optical improvements.
10803 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10805         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10807         * font/*/*: Implement it.
10808         * man/groff_char.man, NEWS: Document it.
10810 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10812         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10813         expansion.
10814         * NEWS: Document the three new man pages.
10816         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10817         * configure: Updated.
10819         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10821 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10823         Added grap support to grog.
10825         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10826         * src/roff/grog/grog.man: Document it.
10828         * doc/groff.texinfo, NEWS: Add info about grap support.
10830         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10831         (with slight fixes by me).
10833         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10834         * tmac/Makefile.sub: Add groff_tmac.man.
10835         * man/roff.man: New file giving overview of roff system.
10836         * man/troff.man: A short reference of troff.
10837         * man/Makefile.sub: Add roff.man and troff.man.
10839 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10841         Added grap support to groff.
10843         * src/roff/groff/groff.cc: Implement it.
10844         * src/roff/groff/groff.man: Document it.
10846         * src/devices/grotty/grotty.man: Add cp1047 device.
10847         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10848         Ditto.
10849         * src/roff/groff/groff.man: Ditto.
10850         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10851         * doc/groff.texinfo: Ditto.
10853         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10854         for cp1047.
10856 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10858         * man/groff_char.man: Add `pc' glyph.
10859         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10860         * tmac/tmac.tty: Add `pc' glyph.
10861         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10862         we use cp1047 output device.
10864         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10865         there are still hardcoded latin1->unicode values in utf8's font
10866         definition files.
10867         * configure: Updated.
10868         * NEWS: Minor clarification.  Updated.
10870         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10871         Unix.
10873 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10875         Adding EBCDIC code page 1047.
10877         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10878         font/devcp1047/DESC.proto: New files.
10880         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10881         either ascii/latin1 or cp1047.
10882         * Makefile.in: Use it.
10883         * configure: Updated.
10885         Replacing and/or adding `md' (mathdot) glyph with `pc'
10886         (periodcentered) in all text fonts.
10888         * font/*/*: Change it.
10890 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10892         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10894         * configure.in: Add check for strings.h.
10895         * src/include/driver.h: Use HAVE_STRINGS_H.
10896         * src/devices/grolbp/lpb.cc: Remove string.h.
10898         * src/include/groff-getopt.h: New file.  It will be used instead of
10899         getopt.h (to be included in lib.h) to avoid endless problems with
10900         picky C++ compilers.
10901         * src/include/lib.h: Use groff-getopt.h.
10902         * src/include/Makefile.sub: Updated.
10904         * configure: Updated.
10905         * Makefile.in: Updated.
10907         * NEWS: Mention EBCDIC support.
10909 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10911         * TODO: Some additions.
10913 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10915         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10916         of mso request.
10918 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10920         * src/roff/troff/troff.man: Minor fixes.
10922 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10924         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10925         `.T' string register and the incompatible definition of the `.T'
10926         number register (compared to Unix troff).
10928         * man/groff_char.man: Add some missing characters.
10929         * font/devutf8/NOTES: Update.
10931 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10933         * src/include/htmlindicate.h, src/include/lib.h,
10934         src/include/posix.h: Fix copyright.
10936         * src/include/Makefile.sub: Update.
10938 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10940         * src/roff/troff/input.cc (input_char_description): Removing
10941         superfluous space char.
10943         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10945         * doc/groff.texinfo: Document EBCDIC.
10947 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10949         Introducing `shc' as the glyph name for the soft hyphen character.
10951         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10952         font/devlatin1/R.proto: Use it.
10954         * NEWS: Updated.
10956 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10958         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10959         dependency on ASCII order.
10961 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10963         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10964         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10966         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10967         to increase portability.
10969 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10971         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10972         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10973         the generic `\n' if under OS/390 Unix.
10975         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10977         * configure: Regenerated.
10979 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10981         * doc/groff.texinfo: More conversions to @Deffn.
10983 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10985         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10986         with `:'.
10988         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10990 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10992         * doc/groff.texinfo: More conversions to @Deffn.
10994 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10996         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10997         Updated to latest version (glibc 2.1.3).
10999 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11001         * doc/Makefile (clean): Include more index files.
11002         Add rule texinfo->dvi.
11004 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11006         * doc/groff.texinfo: Added new index `op' for operators.  More
11007         info on end of sentence characters.  More use of @Deffn.
11009 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11011         * */*.man: Adding a note that a whitespace can be inserted between
11012         a command line option and its parameter -- we are using GNU getopt.
11014         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11016 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11018         Correct anachronism of calling the man macro file with `-man'
11019         instead of `-m man' etc.
11021         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11022         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11023         load tmac.<package>.
11025         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11027         * NEWS: Updated.
11029         * doc/groff.texinfo: Updated.
11031         * tmac/groff_man.man: Copyright added.
11033 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11035         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11036         typeset the request resp. escape name with a tt font -- due to a
11037         bug in texinfo.tex it is necessary to use the `-e' switch with
11038         texi2dvi.
11040         Improving info about usage of groff units.
11042         Other minor fixes.
11044 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11046         * doc/groff.texinfo: Added section about man macro package
11047         (I've basically taken groff_man.man).  Introducing new indices `ma'
11048         for macros/strings and `gl' for glyph names.  Other minor fixes.
11050         * tmac/groff_man.man: Fixed some typos.
11052 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11054         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11055         Other minor fixes.
11057         * doc/texinfo.tex: New file.
11059 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11061         * doc/groff.texinfo: Improved section on number registers.  Other
11062         minor updates.
11064 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11066         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11067         synopsis.
11069         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11070         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11071         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11072         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11074         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11076         * src/roff/grog/grog.man: Updated copyright date.
11078 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11080         * configure.in: Added test for strdup.
11082         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11083         is available.
11085         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11087         Other minor fixes.
11089 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11091         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11093 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11095         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11096         compilers silent.
11097         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11098         * src/include/lib.h: Remove some spaces.
11100 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11102         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11103         initializers from arguments (some compilers don't like this).
11105 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11107         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11108         used by pic and eqn to tell grohtml where the graphic regions start
11109         and end.
11110         * src/libs/libgroff/Makefile.sub: Use it.
11111         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11112         graphic_start() and graphic_end() from htmlindicate.cc.
11114 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11116         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11117         * tmac/groff_man.man: More fixes.
11119 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11121         * doc/Makefile: Added texput.log to the `clean' target.
11122         * doc/groff.texinfo: Added info about delimiters for escapes.
11124 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11126         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11127         other graphic formats.
11129 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11131         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11132         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11133         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11134         files.
11136 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11138         * doc/groff.texinfo: Spelling fixes.
11140 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11142         * tmac/groff_man.man: Completely revised to cover everything in
11143         tmac.an.
11145         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11146         Other minor fixings.
11147         * src/roff/troff/env.cc (environment_copy): Improve error message and
11148         fix itoa->i_to_a.
11149         * src/roff/troff/TODO: Updated.
11151         * doc/Makefile: Bug fixes -- this is still provisional, though...
11153         * tmac/eqnrc: Small fixes.
11155 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11157         Adding a request `evc' to copy environments.
11159         * src/roff/troff/env.cc (environment::copy, environment_copy):
11160         Implement it.
11161         * src/roff/troff/env.h: Add prototype.
11163 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11165         Adding strsep() -- Solaris 8 doesn't have it.
11167         * configure.in: Test it.
11168         * src/devices/grolbp/lbp.cc: Add code.
11170 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11172         * src/roff/troff/div.cc (macro_diversion::output,
11173         top_level_diversion::output): Fixing an incompatibility with
11174         original troff: \x'0' updates the .a register also.  Thanks to
11175         <Andries.Brouwer@cwi.nl> for pointing this out.
11176         * doc/groff.texinfo: Document it.
11178         * Makefile.in: Create Makefile.dep if necessary before calling the
11179         submake process to avoid warning about nonexistent file.
11181         * NEWS, PROJECTS: Updated.
11183 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11185         * tmac/troffrc: Add tmac.lbp.
11187 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11189         * tmac/tmac.lbp: New file.
11190         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11191         command.
11193 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11195         * Makefile.in: Fixing $(subdir).
11197         * README, NEWS: Small fixes.
11199         * test-groff: Adding path to grolbp.
11201         * configure.in: The (new) file src/xditview/Imakefile.in will be
11202         also configured -- it is now possible to build gxditview in a
11203         directory different from $srcdir.
11205 2000-03-02  Blake McBride  <blake@florida-software.com>
11207         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11209         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11211 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11213         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11214         files.
11216 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11218         Adding GNU getopt to the groff distribution.
11220         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11221         New files.
11222         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11223         * aclocal.a4: Remove GROFF_GETOPT function.
11224         * configure.in, Makefile.in, PROBLEMS: Update.
11225         * src/include/lib.h: Replace getopt tests with getopt.h.
11226         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11228         * doc/groff.texinfo: Further checking/updating.  Adding more index
11229         entries.
11231         * man/groff_out.man: Fix nroff mode activation (for emacs).
11232         * man/groff_font.man: Add missing ligature.
11234 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11236         * doc/groff.texinfo: Further checking/updating.  Adding more index
11237         entries.
11239         * src/devices/grolbp/grolbp.man: Added a comment line at the
11240         beginning of the file (similar to shell scripts) which indicates
11241         that `tbl' should be used as a preprocessor.
11243 2000-02-27  Blake McBride  <blake@florida-software.com>
11245         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11246         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11248         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11249         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11250         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11251         src/include/lib.h, src/libs/libgroff/errarg.cc,
11252         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11253         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11254         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11255         src/roff/troff/div.cc, src/roff/troff/env.cc,
11256         src/roff/troff/input.cc, src/roff/troff/node.cc,
11257         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11258         if_to_a() to avoid name clashes.
11259         * src/include/posix.h: Don't use unistd.h.
11260         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11261         clause for integrating non-Unix xtmpfile() code.
11262         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11263         structure; use "rt" for popen() in pipe_source(); add getpid()
11264         dummy function.
11265         * src/roff/troff/node.cc: Use special versions of popen() in
11266         real_output_file() and pclose() in ~real_output_file().
11268 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11270         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11271         LBP-8 series laser printers).  This code has been contributed by
11272         Francisco Andrés Verdú <pandres@dragonet.es>.
11274         * src/devices/grolbp/*: The grolbp output device.
11275         * font/devlpb/*: The font description files.
11276         * Makefile.in: Add grolpb and devlbp subdirectories.
11278         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11279         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11280         typographic fixes.
11282         * doc/groff.texinfo: Further checking/updating.  Adding more index
11283         entries.
11285         * NEWS: Updated.
11287         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11289         * man/groff_font.man: Adding info about obsolete DESC keywords.
11290         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11291         keywords.
11293 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11295         * src/preproc/grn/grn.man: Added info about the gremlin file format
11296         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11298 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11300         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11301         friends to be non-integer.
11303         * src/preproc/grn/grn.man: Document it.
11305         * doc/groff.texinfo: Further checking/updating.  Adding more index
11306         entries.
11308 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11310         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11311         line thicknesses to be integer multiples of this value.
11313         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11314         corresponding code doesn't work (yet).
11316         * doc/groff.texinfo: Further checking/updating.  Adding more index
11317         entries.
11319 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11321         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11322         specify line thickness instead of base units.  The new default
11323         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11324         thick lines respectively.
11326         Removed unused variable `prevval'.
11328         * src/preproc/grn/grn.man: Updated.
11330 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11332         * src/preproc/grn/main.cc: Slight formatting.
11334         * src/roff/groff/groff.man: Formatting fix.
11335         * src/preproc/grn/grn.man: Ditto.
11337         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11339         * doc/groff.texinfo: Further checking/updating.
11341 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11343         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11345         * test-groff: Added grn subdir to path.
11347         * doc/groff.texinfo: Some restructing and other small improvements.
11349         * src/roff/groff/groff.cc (help): Fixed info string.
11351 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11353         * doc/meref.me: Fix description of .GS request.
11355         * src/roff/troff/troff.man: Fixing typo.
11357         Adding the `grn' preprocessor for gremlin graphic files.
11359         * src/preproc/grn/*: This is the Berkeley distribution written by
11360         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11361         Senderowicz and Werner Lemberg.
11363         * doc/grnexampl.{me,g}: A sample for grn.
11365         * Makefile.in: Added subdirectory entry for grn.
11367         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11368         called with the switch `-g'.
11370         * src/roff/groff/groff.man: Updated.
11372         * src/roff/grog/grog.{man,pl,sh}: Updated.
11374         * NEWS: Updated.
11376 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11378         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11379         parametrically polymorphic.
11381         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11382         and the alterations to xtmpfile.
11383         xtmpfile can be requested to return the filename created
11384         and asked not to unlink the temp file.  The default behaviour
11385         if parameters are absent is exactly the same as before.
11387 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11389         A new request `length' is available which returns the length of a
11390         string in a number register:
11392         * src/roff/troff/input.cc (length_macro): Implement it.
11393         * src/roff/troff/input.cc (init_input_requests): Register it.
11395 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11397         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11398         of the `substring' request.
11400         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11401         request.
11403         * src/roff/troff/TODO, NEWS: Updated.
11405 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11407         * src/roff/groff/groff.man: Added an example.
11409 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11411         I've considerably modified the directory structure of the
11412         distribution to get a more vertical layout.  For example, the number
11413         of top level directories has been reduced from 42 to 6.
11415         As a consequence, many changes, especially to the makefiles, were
11416         necessary:
11418         * The makefile variables `top_builddir' and `top_srcdir' have been
11419         introduced.  Virtually all relative paths have been replaced with
11420         absolute ones using these two variables.
11422         * Dependencies (in the files `Makefile.dep') are no longer part of
11423         the distribution.  Instead, they are created during a `make install'
11424         in the build directory.
11426         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11427         make `top_srcdir' and `top_builddir' absolute.
11429         Some other changes:
11431         * Man pages now depend on the files `VERSION' and `REVISION'.
11433         * The added shell script `mkinstalldirs' will replace `mkdir' in
11434         almost all cases.
11436         * VERSION: Version number increased to 1.16.
11438 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11440         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11442         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11443         (after an update of the mm stuff).
11445         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11447 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11449         The .psbb request will now also accept Mac PS images (i.e. using LF
11450         as the EOL character).
11452         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11453         (with slight modifications).
11454         * troff/input.cc (do_ps_file): Use it.
11456         * test-groff: Add grohtml and grolj4 output devices to PATH.
11458 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11460         * NEWS, MORE.STUFF: Updated.
11462 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11464         Add the `srand' command to pic.
11466         * pic/lex.cc, pic/pic.y: Implement it.
11467         * pic/pic.man: Document it.
11468         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11470 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11472         Add a new request `.psbb'.  This does exactly what the external
11473         program psbb did.  It scans a PostScript image file for a
11474         %%BoundingBox comment and extracts the bounding box values (in
11475         PostScript units) which are then stored in the four new (read-only)
11476         number registers `llx', `lly', `urx', and `ury'.
11478         This will allow the usage of the .PSPIC macro without worrying
11479         about unsafe behaviour of groff, i.e., it will work without the
11480         `-U' switch of groff.
11482         * troff/input.cc: Implement it.
11483         * tmac/tmac.pspic: Use it.
11484         * troff/troff.man, grops/grops.man, NEWS: Document it.
11485         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11487         This is bloody C code simply adapted from psbb.c!  Any improvements
11488         welcome.
11490 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11492         * man/groff_font.man: Minor clarifications.
11494         * NEWS: Updated.
11496 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11498         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11500 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11502         * man/groff_font.man: Brought up to date regarding tcommand
11503         extensions.
11504         * libgroff/font.cc: Handle everything after `--' as a comment
11505         in the font files.
11506         * devps/*: Added comment delimiter inside devps font files.
11508 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11510         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11511         \fC...\fP (which now works as expected).
11513         * troff/troff.man: Fix typo.
11515 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11517         Completed the pass_filenames implementation in troff.
11519         * libdriver/input.cc: Will read the new `F' tcommand.
11520         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11521         * troff/input.cc: Use it.
11523 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11525         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11526         font will now be updated even if an invalid font is selected.
11528 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11530         * doc/homepage.ms: Updated for new tmac.arkup.
11532         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11534         * tmac/tmac.arkup: Cleanup.
11536         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11538         Removed obsolete .LINK macro completely.
11540         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11541         will be immediately appended to the second argument (to be used with
11542         punctuation, for example).
11544         Disabled .CDFTP macro temporarily for security reasons.
11546         * tmac/groff_markup.man: Complete revision for latest changes in
11547         tmac.arkup -- note that it does not yet format correctly with
11548         grohtml :-(
11550 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11552         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11553         * devutf8/R.proto: Add mappings for wp, lh, rh.
11554         * devutf8/NOTES: Updated.
11556 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11558         * doc/groff.texinfo: Updated version/copyright info.
11560 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11562         Added support for two new directives in device descriptions:
11563         `pass_filenames' (to pass the input file name to the output device)
11564         and `use_charnames_in_special' (to support e.g. accented characters
11565         in the `X' request).
11567         * include/font.h, troff/charinfo.h: Declare it.
11569         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11571         * devhtml/DESC: Use it.
11573         * troff/input.cc: New function encoded_char.
11575         * troff/token.h: Add test for `specialness'.
11577 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11579         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11580         mistake from the list of files to be installed.
11582 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11584         * README: Added info how to apply patches.
11586 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11588         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11590 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11592         * troff/input.cc: Add support for troffrc-end.
11594         * tbl/main.cc: Altered to issue table-start and table-end special
11595         characters if using the html device.
11597         * devhtml/*: Modified font files to incorporate html encoding of
11598         characters.
11600         * tmac/groff_markup.man: New file documenting tmac.arkup.
11602         * tmac/troffrc-end: New file.  This is invoked after all user
11603         specified macros.  Currently used by the html device to include
11604         tmac.html.  Thus no need for users to specify -mhtml anymore.
11606         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11607         (MAN7): Add groff_markup.man.
11609         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11611         * tmac/troffrc: tmac.arkup will now be called for the html device.
11613         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11614         extra device specific information about fonts.
11616         * doc/homepage.ms: New file.  It is an example how an HTML home page
11617         could look like with grohtml.
11619         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11621 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11623         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11624         of Im, Re.
11626         * devutf8/NOTES: Updated.
11628 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11630         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11631         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11632         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11633         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11634         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11635         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11636         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11637         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11638         warnings.
11640         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11642 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11644         grolj4: Paper size will be searched case-insensitively.
11646         * include/lib.h: Add check for strcasecmp().
11647         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11648         * configure.in: Check for strcasecmp().
11650 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11652         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11653         `REVISION'.
11655 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11657         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11658         revision scheme.
11660         Add a new read-only register, `.Y', which contains the groff
11661         revision.
11663         * troff/input.cc (init_input_requests): Define it.
11664         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11665         * doc/groff.texinfo, troff/troff.man: Document it.
11667         * libgroff/Makefile.sub (version.cc): Add definition of
11668         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11669         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11670         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11671         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11672         troff/input.cc, pfbtops/pfbtops.c: Use it.
11674 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11676         Add a revision scheme to the groff package.
11678         * REVISION: New file.
11679         * libgroff/Makefile.sub (version.cc): Use it to define
11680         `revision_string[]'.
11681         * grops/psrm.cc: Use revision_string (converted to an unsigned
11682         integer) in constructor of resource_manager.
11684 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11686         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11687         files.
11688         * Makefile.in (DEVDIRS): Add devutf8.
11689         * grotty/tty.cc: Include device.h.
11690         (glyph): Change type of `code' to `unsigned int'.
11691         (tty_printer): New field is_utf8.  Constructor takes device argument.
11692         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11693         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11694         (tty_printer::put_char): New function.
11695         (tty_printer::end_page): Use put_char() instead of ::putchar().
11696         (make_printer): Pass device to tty_printer constructor.
11697         * nroff.sh: Determine default device by calling 'locale'.  As a
11698         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11699         Recognize UTF-8 locales.
11700         * tmac/eqnrc: Recognize utf8 like latin1.
11701         * tmac/troffrc: Device utf8 needs tmac.tty.
11703 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11705         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11707 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11709         Add a new predefined writeable number register, `year',
11710         which contains the current year.
11712         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11713         * tmac/tmac.s: Use it.
11714         * troff/input.cc (init_registers): Initialize it.
11716 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11718         * PROBLEMS: Fixed typo.
11720 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11722         * PROBLEMS: Add Y2k advice for the yr number register.
11724 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11726         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11728 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11730         * tmac/tmac.arkup: Slight modification of macros to provide better
11731         appearance for non-HTML formats.
11733 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11735         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11736         does not automatically translate to malloc(n) on all OSes
11737         (e.g., SunOS) so do it explicitly.  Also, check the returned
11738         value.
11740 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11742         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11744         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11745         expects this variable
11747 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11749         * doc/Makefile: Added instructions to create HTML and text
11750         versions of some files.
11752 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11754         * Updated INSTALL.gen.
11756         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11757         better resp. correctly with non-HTML devices.
11759 Version 1.15 released
11760 =====================
11762 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11764         * NEWS, VERSION: Changed to 1.15
11766 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11768         * nroff/nroff.man: -S is safer, not safe.
11770         * groff/groff.cc (main): Use `safer', not `safe', in variable
11771         names.  This does not change the behavior.
11773         * troff/input.cc (main): Likewise.
11775         * nroff/nroff.sh: Likewise.
11777         * troff/input.cc (prepend_string): New function.
11778         (main): Prepend -msafer, so that we check macro libraries for
11779         safety.
11781         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11783 Version 1.14 released
11784 =====================
11786 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11788         * NEWS, VERSION: Changed to 1.14.
11790 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11792         * refer/refer.cc: Fixing the last fix.
11794 Version 1.13 released
11795 =====================
11797 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11799         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11800         number disappear.
11802         * NEWS: Updated.
11804         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11806         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11807         document conventions, the version number must be a real.
11809 Version 1.12.1 released
11810 =======================
11812 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11814         * VERSION: Changed to 1.12.1.
11816 1999-12-22  Alan Rooks  <arooks@istar.ca>
11818         * refer/refer.cc (do_file): Slight modification to satisfy the
11819         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11820         UnixWare 7.1.
11822 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11824         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11825         notices.
11827         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11828         list of unsafe requests.
11830         * pic/pic.man: Fixed a typo.
11832         * man/groff_out.man: Fixed a typo.
11834 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11836         * Makefile.in: Doc fixes.
11838 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11840         * groff/groff.cc: Missing `U' option added to getopt().
11842         * troff/troff.man: Missing `U' option added to synopsis.
11844 Version 1.12 released
11845 =====================
11847 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11849         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11850         to the synopsis.
11852         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11853         with the more appropriate terms `safer' and `unsafe'.
11855         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11856         sys_nerr and sys_errlist[].
11858         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11860         * pic/pic.y, pic/pic.cc: Added check for fmod().
11862 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11864         * VERSION: Changed to 1.12.
11866         Here some patches from various sources; most of them taken from
11867         the Debian distribution.
11869         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11870         tmac/Makefile.sub: New files copied directly from the NetBSD
11871         distribution.  Probably, some additional adaptation later on is
11872         necessary...
11874         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11875         of unsafe requests.
11877         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11878         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11879         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11880         (`-S') is now the default.
11882         * README, NEWS: Updated.
11884 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11886         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11888         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11890 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11892         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11893         grief than relief today.  Additionally, it is against the GNU
11894         coding standards.
11896         * configure: Recreated.
11898 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11900         * configure.in: Added GROFF_LIBM.
11902         * configure: Recreated.
11904         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11905         necessary.
11907         * Makefile.in: Added definition of $(LIBM).
11909         * Makefile.comm (LIBM): Removed.
11911         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11913 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11915         * doc/Makefile: Added rule for generation pic.html.
11917         (clean): Files produced by grohtml will be removed also.
11919         * doc/pic.ms: Small fix.
11921         * tmac/tmac.html: Fixed suppression of headers.
11923 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11925         * tmac/tmac.html: Fixing horizontal arrows.
11927         Turning off hyphenation.
11929         * tmac/tmac.an: Improved support for grohtml; better indentation,
11930         no footers/headers.
11932 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11934         * tmac/tmac.arkup: Added CDFTP macro
11936         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11937         macros.
11939         * tmac/troffrc: Some additions for HTML stuff.
11941 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11943         * tmac/tmac.html: Small changes.
11945 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11947         * doc/groff.texinfo: Minor fixes.
11949 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11951         * devhtml/TR: Changed spacewidth to 3.
11953         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11955         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11957         * tmac/tmac.arkup: New file.
11959         * grohtml/ChangeLog: New file.
11961 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11963         * doc/groff.texinfo (Common Features): Added Copying chapter.
11964         Changed format to @smallbook.
11966 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11968         * NEWS: Added info about groff.texinfo.
11970         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11971         warning messages.
11973 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11975         * groff/groff.man: More updates.
11977 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11979         * doc/groff.texinfo: New file.  This manual is still very
11980         rudimentary.  It has been originally contributed by Trent
11981         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11982         additions by me.
11984         * INSTALL: Added information about the `doc' subdir
11986         * troff/troff.man: Minor fixes.
11988         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11989         reordered options.
11991         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11993         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11994         also, otherwise it is included itself in another call of `make
11995         dist'.
11997         * groff/groff.cc (synopsis): Removed superfluous space.
11999         * PROJECTS, PROBLEMS, NEWS: Updated.
12001         * VERSION: Updated to 1.12beta.
12003         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12005         * README: Updated: Included documentation about CVS repository,
12006         mailing lists, and daily snapshots.
12008         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12010 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12012         * tmac/tmac.an: If the tag didn't fit into the space that the
12013         macro `TP' specifies, the rest of the tag went into the space for
12014         the next line.
12016 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12018         * grolj4/lj4.cc: Added duplex printing (option `-d').
12020         * grolj4/grolj4.man: Document duplex printing.
12022 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12024         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12025         non-GNUish sed programs.
12027         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12028         definition.
12030         * configure.in (LIBS): Added `-lc'
12032         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12034         * pic/tex.cc (solid_arc): Casting M_PI to double.
12036         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12038         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12039         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12040         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12042         * groff/groff_man.man: New file.  This manual page was originally
12043         written for the Debian GNU/Linux system by Susan G. Kleinmann
12044         <sgk@debian.org>.
12046         * eqn/list.cc (list_box::compute_metrics,
12047         list_box::compute_sublist_width): Removed variable declaration to
12048         avoid shadowing warnings.
12050         * grops/psrm.cc (resource_manager::process_file): Ditto.
12052         * tfmtodit/tfmtodit.cc (main): Ditto.
12054         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12055         to avoid shadowing warnings.
12057         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12058         shadowing loop variable.
12060         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12062 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12064         New grohtml frontend to convert groff input to html.
12066         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12068         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12070         * tmac/eqnrc: Added html device.
12072         * tmac/tmac.html: New file.
12074         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12075         (troff_output::start_picture, troff_output::finish_picture),
12076         tbl/main.cc (process_input_file):
12077         Surrounded output with `graphics_start' and `graphics_end' so that
12078         the html driver can identify non-text portions.
12080         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12081         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12082         grotty/tty.ps (tty_printer::set_char): Additional parameter
12083         `name'.
12085         * include/printer.h: Class printer: New function
12086         set_char_and_width; new variables (is_char_named, is_named_set,
12087         named_command, named_char_s, named_char_n) to hold information
12088         about named characters -- needed by the html driver.
12090         * libdriver/printer.cc (printer::set_ascii_char,
12091         printer::set_special_char): Use set_char_and_width.
12093         * devhtml/*: New device files for html driver.
12095         * grohtml/*: New driver grohtml.
12097 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12099         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12100         default strings.
12102 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12104         * libgroff/string.cc (search): Small fix to test against NULL
12105         pointer.
12107 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12109         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12110         \b'abc') were stacked in reverse order when processed in a
12111         diversion.
12113         * troff/node.h: Added `*last' to struct `node' to make the above
12114         fix work.
12116         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12117         The default scale for the 'f' and 't' graphics functions were 'm'
12118         rather than 'u' (i.e., no scaling).
12120 1999-09-11  Peter Miller  <peterm@jna.com.au>
12122         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12123         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12124         defining include paths.
12126         * soelim/soelim.cc (include_path_append): New function.
12128 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12130         * tbl/main.cc (process_options): Unix (at least Documenter's
12131         Workbench) tbl allows arbitrary non-alpha characters between
12132         options.
12134 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12136         Y2k fixes.  Don't assume that the current year precedes 2000.
12138         * doc/meref.me: Add \n(y2, \n(y4.
12140         * tmac/doc-common (Yr): New number register.
12141         (Dd): Don't assume current year precedes 2000.
12143         * tmac/tmac.e (td): Likewise.
12144         (y2, y4): New number registers.
12146         * pic/pic.man: Update reference for pic paper to May, 1991
12147         version.
12149 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12151         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12152         Removed quotation marks which prevented correct expansion of
12153         $(tmac_wrap).
12155         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12157 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12159         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12160         `config.cache'.
12162         * Removed configure.old.
12164 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12166         * VERSION: Updated to 1.11.1
12168 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12170         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12172         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12173         added quotations around $(tmac_wrap) to avoid syntax error if
12174         variable is empty.
12176         * configure: Newly generated using autoconf 2.13.
12178         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12180 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12182         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12183         doc/Makefile. doc/pic.ms, groff/groff.man:
12184         Prepare for 1.11 release.  No code changes.
12185         Documentation for pic added (doc/pic.ms).
12187 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12189         * Version 1.10 released.
12191 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12193         * afmtodit/afmtodit.pl: Avoid comment on first line.
12195 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12197         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12198         * configure.in: Call it.
12200         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12201         (distfiles): Doesn't depend on config.log or config.cache.
12203 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12205         * grog/grog.sh: Use print "" rather than print in END rule.
12207 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12209         * tbl/main.cc (process_data): Don't give error for excess data
12210         entries that are comments.
12212 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12214         * tbl/main.cc (process_data): Fix case where new for-scope rules
12215         silently change meaning of code.
12217 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12219         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12220         of non-zero hyphenation codes.
12222 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12224         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12226 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12228         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12230 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12232         * tmac/tmac.andoc: Make it work in compatibility mode.
12234         * refer/token.h (token_info::is_range_sep): New function.
12235         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12236         * refer/ref.cc (reference::output): More sophisticated check for
12237         multiple pages.
12239         * devps/prologue.ps (MANUAL): New procedure.
12240         * grops/ps.cc (main): New -m option.
12241         (usage): Include -m.
12242         (ps_printer::~ps_printer): Implement -m.
12244         * aclocal.m4 (GROFF_G): New macro.
12245         * configure.in: Call it.
12246         * Makefile.in (g): Provided by configure.
12248         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12250         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12251         translations.
12253         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12254         (tmac_m, tmac_s): Deleted.
12255         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12256         tmac_s_prefix): New variables.
12257         (MDEFINES): Change accordingly.
12258         * Makefile.comm (.man.n): Use new TMAC_* variables.
12259         * configure.in (GROFF_TMAC): Call.
12260         * aclocal.m4 (GROFF_TMAC): Define.
12261         * tmac/Makefile.sub (stamp_wrap): New target.
12262         (install_data, uninstall_sub): Handle macro wrapping.
12264 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12266         * tbl/main.cc (main): Ignore -T option.
12268 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12270         * devlj4/generate/special.map: Add definition of \(nb.
12272         * tmac/tmac.dvi: Add definition of \(nb.
12274         * troff/dictionary.c (dictionary::dictionary): association::v gets
12275         initialized by association::association.
12277         * tmac/Makefile.sub: Avoid using temporary files when installing.
12279         * troff/env.cc (environment::set_font): Make bad font number a
12280         warning.
12282         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12284         * Makefile.in (datadir): Use share rather than lib.
12286         * groff/groff.cc (basename): Rename to xbasename.
12288 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12290         * Makefile (CCLIBS): Don't use.
12291         * Makefile.ccpg: Likewise.
12293         * acgroff.m4: Rename to...
12294         * aclocal.m4: Modify extensively for autoconf 2.
12295         * configure.in: Likewise.
12296         * Makefile.in: Likewise.
12298         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12299         defined.
12300         (xstrsignal): Check for definition of NSIG. Conditionalize
12301         on SYS_SIGLIST_DECLARED.  Make return type const.
12303 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12305         * troff/input.cc (interpolate_macro): Rephrase missing space
12306         warning.
12308 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12310         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12311         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12312         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12313         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12314         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12315         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12316         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12317         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12318         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12319         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12320         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12321         Fix 'for' scoping.
12323 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12325         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12326         string_iterator.
12327         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12328         file.
12329         (macro_iterator::macro_iterator): Add additional argument.
12331 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12333         * troff/div.cc (vertical_size::vertical_size): In place of integer
12334         specifying line spacing use cunits specifying post vertical
12335         space.
12336         (macro_diversion::output, top_level_diversion::output): Likewise.
12337         * troff/div.h: Change declarations accordingly.
12338         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12339         field.
12340         (pending_output_line::pending_output_line,
12341         pending_output_line::output, environment::output,
12342         environment::output_line, environment::output_title,
12343         environment::hyphenate_line):  In place of
12344         integer specifying line spacing use cunits specifying post vertical
12345         space.
12346         (environment::environment): Add post_vertical_spacing and
12347         prev_post_vertical_spacing arguments.
12348         (environment::get_post_vertical_spacing): New function.
12349         (environment::total_post_vertical_spacing): New function.
12350         (environment::post_vertical_spacing): New function.
12351         (init_env_requests): Initialize pvs request and .pvs register.
12352         * troff/env.h: Change declarations.
12354 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12356         * tmac/tmac.pspic: Immediately remove the temporary file.
12358 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12360         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12361         height is specified.
12363 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12365         * tbl/table.c (struct vertical rule, class table_entry): Use int
12366         not short for start_row and end_row.
12368 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12370         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12371         functions.
12372         (diverted_space_node::reread, process_input_stack): Call
12373         trapping_blank_line() rather than blank_line().
12374         (init_input_requests): Bind "blm" to blank_line_macro().
12376         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12378 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12380         * troff/env.cc (environment::possibly_break_line): Require that
12381         width total excluding width of final space node be greater than
12382         the target text length.
12384 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12386         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12388 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12390         * troff/node.cc (charinfo_node): New class.
12391         (glyph_node, composite_node): Derive from charinfo_node.  Change
12392         member functions accordingly.
12394 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12396         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12398 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12400         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12402         * devps/generate/textmap (notsubset): Add.
12404         * tmac/tmac.a4: New file.
12406 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12408         * pic/main.cc (had_parse_error): New variable.
12409         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12410         returns non-zero.
12411         (main): Return 1 if had_parse_error is true.
12413 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12415         * grolj4/lj4.cc (main): Avoid use of strtoul.
12417 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12419         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12420         iso_8859_1 or $LESSCHARSET is latin1.
12422 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12424         * hpftodit: New directory.
12425         * Makefile.in (CCPROGDIRS): Add hpftodit.
12426         * devlj4/generate: New directory.
12428 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12430         * configure.in: Don't use AC_VFORK.
12431         * groff/pipeline.c (run_pipeline): Use fork() always.
12433 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12435         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12437         * Makefile.in (CCPROGDIRS): Add grolj4.
12438         (DEVDIRS): Add devlj4.
12439         * grolj4, devlj4: New directories.
12440         * tmac/troffrc: Handle lj4.
12441         * tmac/tmac.lj4: New file.
12443 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12445         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12447 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12449         * troff/input.cc (do_if_request): At end of second string, switch
12450         environments before getting next token.
12452 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12454         * devps/psstrip.sed: Split rule that strips whitespace on either
12455         side of delimiters.
12457 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12459         * troff/node.h (font_family::make_definition): Add return value to
12460         declaration.  * troff/symbol.h (symbol::operator==,
12461         symbol::operator!=): Likewise.
12463 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12465         * groff/groff.cc (main, help, synopsis): Handle -S.
12466         (possible_command::insert_arg): New function.
12468         * tmac/tmac.safer: New file.
12469         * tmac/msafer.man: New file.
12470         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12472 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12474         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12475         * pic/pic.y (placeless_element): Avoid unsafe operations if
12476         `safer_flag' is set.
12477         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12479 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12481         * eqn/lex.cc (get_token): Put call to add_context() in block to
12482         work around Sun C++ 4.0 bug.
12484         * include/stringclass.h (operator +): Use ?: instead of `if' to
12485         work around Sun C++ 4.0 bug.
12487 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12489         * tbl/main.cc (process_format): Accept - as a synonym for the _
12490         key letter.
12492         * libbib/index.cc (minus_one): Don't declare as const.
12494 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12496         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12498 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12500         * troff/input.cc (write_macro_request): New function.
12501         (init_input_requests): Bind write_macro_request to writem.
12503 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12505         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12506         equation.
12508         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12510         * tmac/tmac.s (@TS): Renamed from TS.
12511         (TS): Call LP then TS again.
12512         (cov*ab-init): Alias @TS to TS.
12514         * tmac/tmac.s: Allow QP or RS to initialize.
12516         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12517         Move initializations of PS and LL here.
12518         (par@init): Don't initialize HY.  Avoid changing environment 0.
12519         (par*env-init): Don't all par@reset.
12521 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12523         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12525 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12527         * Makefile.in (MDEFINES): Add LDFLAGS.
12528         (LDFLAGS): Add definition line.
12530 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12532         * troff/input.cc (get_optional_char): Split off error check into...
12533         (check_missing_character): New function.
12534         * troff/token.h: Declare it.
12535         * troff/env.cc (margin_character): Don't call get_optional_char.
12536         Only call tok.next() after making the node.
12538         * include/lib.h (getopt): Make 2nd argument char *const *.
12540 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12542         * nroff/conftest.sh: Deleted.
12544 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12546         * pic/make-dos-dist: Deleted.
12548 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12550         * devps/psstrip.sed: Strip comments before stripping trailing
12551         white space.
12553 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12555         * Version 1.09 released.
12557 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12559         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12561 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12563         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12565 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12567         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12568         about returning without a value.
12570         * troff/charinfo.h (charinfo::get_special_translation): Cast
12571         TRANSLATE_NONE to int.
12573         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12574         test.  Fix test so that it works with n unsigned.
12576         * pic/pic.y (defaults_table): Fully bracket initializer.
12577         * pic/lex.cc (lookup_keyword): Likewise.
12578         * eqn/lex.cc (token_table, def_table): Likewise.
12579         * eqn/box.cc (param_table): Likewise.
12580         * troff/input.cc (warning_table): Likewise.
12581         * libgroff/font.cc (table): Likewise.
12582         * grops/ps.cc (ps_printer::special): Likewise.
12583         * grops/psrm.cc (resource_manager::process_file): Likewise.
12584         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12585         * refer/command.cc (command_table): Likewise.
12586         * addftinfo/addftinfo.cc (param_table): Likewise.
12588         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12589         about temp's being unused.
12590         (unused): New function.
12592         * groff/pipeline.cc: Declare c_fatal.
12594         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12595         uchar.
12597         * libbib/index.cc (index_search_item::load): Prevent compiler
12598         warnings about fd_closer's being unused.
12599         (unused): New function.
12601 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12603         * troff/input.cc (copy_mode_error): Make `prefix' static.
12604         Fix typo.
12606         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12607         defined.
12608         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12609         HAVE_CC_OSFCN_H and modify accordingly.
12611         * troff/input.cc (init_charset_table): radicalex overlaps
12612         horizontally.
12614         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12615         udodo!hans@relay.NL.net).
12616         * groff/configure.in: Call it.
12618         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12619         * groff/configure.in: Call it.
12620         * include/lib.h: Conditionalize declaration of pclose.
12622         * troff/div.cc (last_page_number): New global variable.
12623         (top_level_diversion::begin_page): Exit if we just printed the
12624         last page.
12625         * troff/div.h (last_page_number): Declare it.
12626         * troff/input.cc (parse_output_page_list): Set last_page_number.
12628         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12629         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12630         tmac/tmac.X: Likewise.
12631         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12632         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12634 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12636         * tmac/doc-ditroff (hK): Remove groff specific code which
12637         prevented page-breaks between separate manual entries.  If this is
12638         the first page, don't set the page number to 1.
12640         * acgroff.m4 (GROFF_POSIX): New macro.
12641         * configure.in: Use it.
12643         * troff/node.cc (class real_output_file,
12644         real_output_file::real_output_file,
12645         real_output_file::~real_output_file): Conditionalize use of
12646         popen/pclose on POPEN_MISSING.
12647         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12648         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12649         (pipe_source): Similarily.
12651         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12653         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12654         presence of declarations by trying to compile example with
12655         conflicting declarations.  (gcc only gives a warning for missing
12656         declarations.)
12658 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12660         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12661         (from Ulrich Lauther).
12663 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12665         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12667 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12669         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12670         pointers and ints have different sizes.
12672 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12674         * tmac/tmac.s (par*env-init): Call par@reset.
12676 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12678         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12679         tag.
12680         (par*push-tag-env, par*pop-tag-env): New macros.
12682 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12684         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12685         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12687         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12688         comment.  Include <time.h>.
12690 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12692         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12693         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12694         lines.
12696 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12698         * troff/input.cc (read_request): Only print a prompt if reading
12699         from the terminal.  Also clearerr on EOF if reading from the
12700         terminal.  Declare isatty.
12702 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12704         * refer/label.y: Rename map_t to map_func and extractor_t to
12705         extractor_func.
12707 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12709         * include/assert.h: Don't use volatile.
12710         * libgroff/assert.cc: Likewise.
12712 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12714         * troff/input.cc (abort_request): Look at character in tok before
12715         calling get_copy().
12717 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12719         * troff/troff.h (NO_RETURN): Deleted.
12720         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12721         * troff/input.cc (exit_troff): Likewise
12723         * Makefile.in: Remove `Making ...' messages since GNU make now
12724         gives these. 
12726         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12728 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12730         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12731         to constant 1 inch.
12733 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12735         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12737 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12739         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12740         MARK_REG if there was no left delimiter.
12742 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12744         * pic/troff.cc (troff_output::text): Set line thickness to
12745         relative before outputting text.
12747         * tmac/tmac.e (@k): Don't zero ?T.
12748         ((z): Likewise.
12750 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12752         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12754 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12756         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12757         Paul Eggert).
12759 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12761         * troff/input.cc (ignoring): New variable.
12762         (ignore): Set ignoring during call to do_define_macro.
12763         (do_define_macro): Clear ignoring before interpolating terminating
12764         macro.
12765         (copy_mode_error): New function.
12766         (get_char_for_escape_name, read_long_escape_name,
12767         interpolate_arg): Use copy_mode_error.
12768         (warning_table): Add WARN_IG.
12769         * troff/troff.h (WARN_IG): Declare.
12770         (WARN_TOTAL): Change accordingly.
12772         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12773         * groff/groff.cc (strsignal): Delete declaration.
12775 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12777         * troff/div.cc (page_offset): Use 'm' as default scaling.
12779 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12781         * nroff/nroff.sh: Ignore -u.
12783 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12785         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12787 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12789         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12790         drawing box.
12791         (B2): With -Tascii, leave additional vertical space before
12792         and after. Ensure that the left and right indent is restored to
12793         what it was even if the point size changes.  Don't call
12794         par@finish. Change the indent, line length and title length
12795         directly.  With -Tascii, make the width of the box 1n less.
12796         (B1): Remember 1n at the current point size.  Don't call
12797         par@reset.  Change the indent, line length and title length
12798         directly.  Ensure that the temporary indent is preserved.
12799         (par*box-mark-top): Turn off no spacing mode.
12801 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12803         * Makefile.in (dist): Use .gz suffix.
12805 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12807         * troff/input.cc (main): Add return 0.
12808         * pic/main.cc (main): Use return instead of exit.
12809         * tbl/main.cc (main): Likewise.
12810         * eqn/main.cc (main): Likewise.
12811         * grops/ps.cc (main): Likewise.
12812         * grotty/tty.cc (main): Likewise.
12813         * groff/groff.cc (main): Likewise.
12814         * grodvi/dvi.cc (main): Likewise.
12815         * refer/refer.cc (main): Likewise.
12816         * indxbib/indxbib.cc (main): Likewise.
12817         * lkbib/lkbib.cc (main): Likewise.
12818         * soelim/soelim.cc (main): Likewise.
12819         * addftinfo/addftinfo.cc (main): Likewise.
12820         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12821         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12823         * troff/token.h (process_input_stack): Don't declare as static.
12824         * troff/input.cc: Likewise.
12826         * troff/node.c (invalidate_fontno): Make it a static member of
12827         class font_family.  Change callers.
12828         * troff/node.c: Change declaration.
12830         * tbl/main.cc (struct input_entry_format): Add explicit public
12831         specifier.
12832         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12833         struct double_hline_stuff): Likewise.
12834         * tbl/table.h (struct entry_format): Likewise.
12835         * pic/object.h (struct saved_state): Likewise.
12837         * include/stringclass.h: Add forward declarations of friend
12838         functions that are later declared as inline.  Don't include inline
12839         specifier in friend declaration.
12841         * libgroff/lib.h: Declare popen and pclose.
12842         * acgroff.m4 (GROFF_POPEN): New macro.
12843         * configure.in: Call it.
12845         * include/lib.h (PI): New constant. Undef first if necessary.
12846         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12847         * grops/ps.cc (degrees, radians): Likewise.
12848         * libgroff/font.cc (font::get_skew): Likewise.
12850         * grops/ps.cc (is_ascii): New function.
12851         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12852         isprint.
12853         (ps_printer::define_encoding): Use csspace.
12854         * libgroff/strtol.c (ISASCII): New macro.
12855         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12856         Use ISASCII rather than isascii.
12857         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12858         * libgroff/cset.cc: Likewise.
12859         * libdriver/input.cc: Include cset.h.
12860         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12861         than isdigit().
12863         * refer/refer.cc (main): Use %ld rather than %d for longs.
12865         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12866         S_ISREG macro.
12868         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12870 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12872         * troff/input.cc (hyphenation_code): Skip white space between
12873         char/code pairs.
12875 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12877         * tbl/table.h (table::entry_list_tailp): New member.
12878         (table::table): Initialize it.
12879         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12880         behaviour.
12882 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12884         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12885         with negative horizontal positions. Remove casts of glyph::hpos to
12886         int.
12887         (USHRT_MAX): Delete definition.
12888         (SHRT_MAX, SHRT_MIN): New definitions.
12889         (glyph::hpos): Change type to short.
12890         (tty_printer::end_page): Output multiple backspaces if necessary.
12891          Remove casts of glyph::hpos to int.
12892         
12893 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12895         * tmac/tmac.s (@RT): New definition.
12897 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12899         * refer/refer.cc (do_file): Make sure current_filename is set when
12900         filename is "-".
12902         * pic/common.cc (common_output::dot_line): Handle zero length
12903         lines.
12905 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12907         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12908         (par@init): Initialize \n[HY].
12910 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12912         * troff/dictionary.cc (dictionary::remove): Continue when
12913         r < j < i.
12915 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12917         * Makefile.com (.y.cc): Avoid ending up with two versions of
12918         $(YTABH).
12920 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12922         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12923         (\(,C): Likewise.  Also fix typo.
12925 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12927         * lib.h: Delete extraneous semi-colon.
12929         * Add pso request: `so' from a pipe.
12930         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12931         (file_iterator::close): New function.
12932         (file_iterator::~file_iterator, file_iterator::next_file): Use
12933         file_iterator::close.
12934         (file_iterator::backtrace): Say `process' rather than `file' when
12935         the stream is popened.
12936         (pipe_source): New function.
12937         (init_input_requests): Bind ".pso" to pipe_source.
12939 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12941         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12943         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12944         digits in lower case.
12946 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12948         * Version 1.08 released.
12950         * Makefile.in (dist): Insert || true after ln -s commands that
12951         might fail.
12953         * mm: Update to mm 1.16.
12955         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12956         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12957         SH_SCRIPT_SED_CMD.
12958         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12959         MDEFINES.
12960         * nroff/Makefile.sub (nroff): New target.
12961         (install_data): Install nroff.
12962         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12963         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12965 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12967         * eqn/Makefile.sub (neqn): Add chmod +x.
12969         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12971 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12973         * troff/input.cc (string_iterator::string_iterator()): Initialize
12974         lineno and count.
12976 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12978         * troff/div.cc (macro_diversion::space,
12979         top_level_diversion::space): Don't set high_water_mark.
12980         (macro_diversion::output, top_level_diversion::output): Don't
12981         include post line space in high water mark.
12983 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12985         * eqn/eqn.y: Don't define YYDEBUG.
12986         * pic/pic.y: Likewise.
12988 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12990         * tmac/tmac.e ([3): Add space after comma following editors.
12991         Change double spaces to single spaces.
12992         ([4): Change double spaces to single spaces.
12994         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12995         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12996         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12997         after %!PS-Adobe- (for Newsprint).
12999         * troff/div.cc (top_level_diversion::begin_page): When
13000         before_first_page is 1, set page_number to 1.
13002 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13004         * eqn/box.cc (box::top_level): Protect equation with \&.
13006 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13008         * groff/groff.cc (possible_command::set_name): Delete old name.
13010         * groff/groff.cc (possible_command::~possible_command): Use
13011         a_delete.
13013         * troff/node.cc (troff_output_file::begun_page): New member.
13014         (troff_output_file::troff_output_file): Initialize it.
13015         (troff_output_file::really_begin_page): Only output V command if a
13016         page has been begun.
13018         * pic/pic.y (placeless_element): Delete argument to PRINT after
13019         use.
13021 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13023         * Make wrapman work.
13024         * troff/div.h (class top_level_diversion): Replace
13025         first_page_begun by before_first_page (with opposite sense).
13026         * Change first_page_begun to before_first_page inverting sense.
13027         * troff/div.cc (class nl_reg): New class.
13028         (init_div_requests): Use class nl_reg for \n(nl.
13029         (top_level_diversion::begin_page): Don't call
13030         output_file::begin_page if before_first_page is 2;
13031         reset before_first_page afterwards.  If have_next_page_number is
13032         false, then always increment page_number.
13033         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13034         Restore compatibility mode after loading, and then disable
13035         compatibility mode in TH.
13037 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13039         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13040         past last line.
13041         * troff/node.h (output_file::trailer): Declare.
13042         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13043         * troff/node.cc (output_file::trailer): New function.
13044         (troff_output_file::~troff_output_file): Move most code into...
13045         (troff_output_file::trailer): New function.
13046         (class troff_output_file): Delete page_length member. Declare
13047         trailer().
13048         (troff_output_file::really_begin_page): Use current page length
13049         for final V command.
13051         * tbl/main.cc (struct options): New decimal_point_char member.
13052         (options::options): Initialize this.
13053         (process_options): Implement decimalpoint option.
13054         (process_data): Pass decimal_point_char option to table::table.
13055         * tbl/table.h (class table): New decimal_point_char member.
13056         (table::table): Add additional argument.
13057         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13058         second argument specifying decimal point character.  Use this
13059         instead of '.'.
13060         (table::table): Initialize decimal_point_char.
13061         (table::add_entry): Change call to find_dot.
13063         * troff/input.cc (get_copy, token::next): Implement \V.
13064         (interpolate_environment_variable): New function.
13066 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13068         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13069         * pic/pic.y: Likewise.
13071         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13072         Add casts to int.
13073         * refer/ref.cc (reference::insert_field, reference::delete_field):
13074         Likewise.
13075         * troff/number.cc (parse_term): Likewise.
13077         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13078         * configure.in: Use GROFF_PROG_YACC.
13080         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13081         and g++.
13082         * Makefile.in (OPTIMIZE): New define.
13083         (DEBUG): Empty by default.
13084         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13086         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13087         (GROFF_ARRAY_DELETE): Likewise.
13088         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13090         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13092         * devps/psstrip.sed: Use different delimiter on last line (so that
13093         it works with BSD 4.4 sed.)
13095 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13097         * devps/psstrip.sed: Delete comments.
13099         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13100         optind, opterr, optarg.
13101         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13102         opterr, optarg.
13104 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13106         * Makefile.in (check): Dummy target.
13108 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13110         * Version 1.07 released.
13112         * Integrate mm 1.11.
13114         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13115         where start_col was meant.
13117 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13119         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13121 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13123         * troff/input.cc (token::next): Make \z\o'...' and similar things
13124         work.
13126         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13127         constants.
13128         (environment): Add margin_character_flags member.
13129         * env.cc (environment::environment(symbol),
13130         environment::environment(const environment *): Initialize
13131         margin_character_flags.
13132         (margin_character): Rewrite.
13133         (environment::output_line): Add a margin character if
13134         margin_character_flags is non-zero.  Turn off the
13135         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13136         zero, use margin_character_node without copying and then set
13137         margin_character_node to 0.
13139         * devps/DESC.in: Change minimum size to 1000.
13141 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13143         * troff/symbol.h (symbol::hash): Change return type to unsigned
13144         long.
13145         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13146         Add casts to int.
13148         * test-groff: Use -r rather than -x.
13150         * grops/psfig.diff: Include in distribution again.
13152 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13154         * Makefile.in (dist): Use gzip.
13156 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13158         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13159         unistd.h as well as in stdlib.h.
13160         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13161         defined; otherwise include <sys/types.h> and <unistd.h> if
13162         UNISTD_H_DECLARES_GETOPT is defined.
13164         * configure.in: use builtin(include, ... rather than include(...
13165         * configure: Regenerate with autoconf 1.3.
13167         * libdriver/print.cc (printer::adjust_arc_center): Use new
13168         algorithm suggested by Andy Fyfe.
13170         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13171         * include/printer.h: Declare this.
13172         * grops/ps.cc (ps_printer::draw): Use it.
13173         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13175 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13177         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13179 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13181         * eqn/main.cc (main): Handle "eqn -".
13183 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13185         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13187         * mm: Integrate version 1.08.
13189         * pic/troff.cc (troff_output::finish_picture): Set
13190         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13191         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13192         if it's not defined. Check whether the register is non-zero rather
13193         than whether it's not defined.
13194         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13196         * indxbib/indxbib.cc: Move all signal handling into...
13197         * indxbib/signal.c: New file.
13198         * configure.in: Call AC_RETSIGTYPE.
13200         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13201         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13202         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13204         * troff/input.cc (token::token, token::operator=): Work round SGI
13205         C++ bug.
13206         * pic/object.cc (position::position): Likewise.
13208 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13210         * pic/pic.h: Move declaration of hypot().
13212 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13214         * pic/pic.h: Declare hypot().
13216         * pic/pic.h: Define M_PI if necessary.
13218 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13220         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13221         `.ta T' feature.
13223         * devps/prologue.ps (RE): Handle the possibility that the old font
13224         doesn't have a FontName entry.
13226 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13228         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13229         (@C): Use @fam not fam.
13231 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13233         * lookbib/lookbib.cc (main): Change type of start to const char *.
13234         * lkbib/lkbib.cc (main): Likewise.
13236         * eqn/lex.cc (definition::definition): Don't use member
13237         initializer syntax for members of anonymous unions.
13239         * troff/input.cc (input_stack::backtrace): Change type of to const
13240         char *.
13242 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13244         * include/stringclass.h (class string): Declare inline friend
13245         functions as inline in class declaration.
13246         * troff/hvunits.h (class hunits, class vunits): Likewise.
13247         * include/refid.h (class reference_id): Likewise
13248         * troff/troff.h (points_to_units(units), scale(units, double)):
13249         Delete declarations.
13250         * libdriver/input.cc (get_char): Delete declaration.
13251         * include/lib.h: Change 2nd argument of getopt from const char **
13252         to char **.
13253         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13254         char **' before assigning to a `const char **'.
13255         * tbl/table.cc: Delete extra declarations of prints().
13257 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13259         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13260         char **' before assigning to a `const char **'.
13262         * libgroff/errarg.cc (errarg::errarg): Don't use member
13263         initializer syntax for members of anonymous unions.
13265 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13267         * mm: Integrate version 1.07.
13269 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13271         * troff/input.c (translate2): Rename to
13272         (translate_no_transparent).
13273         (init_input_requests): Rename tr2 to trnt.
13275 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13277         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13278         (charinfo::set_translation, charinfo::set_special_translation):
13279         Add second argument that specifies value for
13280         transparent_translate.
13281         (charinfo::get_translation, charinfo::get_special_translation):
13282         Add optional second argument that specifies whether translation is
13283         being used for transparent throughput.
13284         * troff/input.cc (charinfo::set_translation,
13285         charinfo::set_special_translation): Handle second argument.
13286         (charinfo::charinfo): Initialize transparent_translate.
13287         (translate): Split main part off into
13288         (do_translate): New function.  Pass argument saying whether
13289         translation applies to transparent throughput.
13290         (translate2): New request.
13291         (init_input_requests): Bind translate2 to `tr2'.
13293 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13295         * tbl/table.h (class table): Add `nokeep' flag.
13296         * tbl/main.cc (process_options): Handle `nokeep' option.
13297         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13298         table::do_bottom): Don't output keep/release macro definitions or
13299         calls when `nokeep' option has been specified.
13301 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13303         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13305 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13307         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13308         block_entry::divert, alphabetic_block_entry::divert): Add extra
13309         argument giving column separation.
13310         (table::compute_widths): Pass column separation to
13311         table_entry::divert().
13312         (block_entry::do_divert): If an entry spans multiple columns and a
13313         minimumum width has been specified for each column, then set the
13314         line length to the sum of the widths (plus possibly the column
13315         separations).
13317         * troff/input.cc (set_escape_char): Don't set the escape_char
13318         until after calling has_arg().
13320 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13322         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13323         case.
13325         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13326         in case where r > nrows - 1.
13328         * tbl/table.cc (BODY_HEIGHT): Deleted.
13329         (LINE_SEP): New definition.
13330         (table::print_single_hline, table::print_double_hline,
13331         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13332         table::do_row, table::do_top): Use LINE_SEP space before a line
13333         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13335         * tbl/table.cc (text_entry::print_contents): New function.
13336         (text_string_name, right_text_string_name): Deleted.
13337         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13338         (simple_text_entry::do_width, numeric_text_entry::do_width,
13339         alphabetic_text_entry::do_width): Don't store the contents of the
13340         entry in a string.
13341         (left_text_entry::simple_print, right_text_entry::simple_print,
13342         center_text_entry::simple_print,
13343         alphabetic_text_entry::simple_print,
13344         numeric_text_entry::simple_print): Print the entry directly
13345         instead of using the stored string.
13347 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13349         * devps/Makefile: Strip PostScript files.
13350         * devps/prologue: Rename to...
13351         * devps/prologue.ps.
13352         * devps/psstrip.sed: New file.
13353         * devps/download: Use .pfa rather than .ps for installed versions
13354         of fonts.
13356 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13358         * troff/env.cc (input_trap): Give a warning if the argument is out
13359         of range.
13361         * troff/env.cc (adjust): Treat negative argument as missing. Round
13362         argument > 5 down to 5.
13364         * troff/env.cc (center, right_justify): Make negative argument zero.
13366         * troff/div.cc (page_offset, vertical_position_traps): Treat
13367         invalid argument as missing.
13368         * troff/env.cc (line_spacing, line_length, title_length, indent,
13369         underline, hyphen_line_max_request, control_char,
13370         no_break_control_char, widow_control_request, adjust, input_trap,
13371         point_size): Likewise.
13372         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13373         constant_space): Likewise.
13374         * troff/input.cc (compatible, shift, warn_request,
13375         set_escape_char): Likewise.
13377         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13378         * tbl/table.cc (table::table): Likewise.
13380         * Makefile.dev (install_dev): depends on $(DEVFILES).
13382 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13384         * devX75, devX75-12, devX100, devX100-12: New directories.
13385         * Makefile.in: Add these to DEVDIRS.
13387         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13388         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13389         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13390         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13391         targets.
13392         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13393         (uninstall): New target.
13394         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13395         uninstall_prog, uninstall_dev): New targets.
13397         * troff/div.cc (return_request): Treat an invalid argument as
13398         missing.
13400 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13402         * tmac/tmac.e ((f): Set up the environment even when there's a
13403         current diversion.  Transperently throughput a call to @N.
13404         (@N): New macro.
13406 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13408         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13409         up to vertical resolution.
13411         * tbl/table.cc (table::do_row): Change row number after printing
13412         stuff list.
13414         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13416 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13418         * Rename CHANGES to NEWS.
13420 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13422         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13424 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13426         * man.ultrix: Removed.
13428 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13430         * Makefile.comm (extraclean): Delete files whose names begin with
13431         `='.
13433         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13434         aligned text.
13436 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13438         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13439         * troff/div.cc (page_length, need_space, space_request): Treat
13440         invalid optional argument as missing.
13441         * troff/env.cc (number_lines): If the first argument is present
13442         but not a number, turn on line numbering, don't change the next
13443         line number and parse the remaining arguments.
13445         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13447 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13449         * eqn/box.h: Change declaration accordingly.
13450         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13451         the specified size was bad but don't give an error.  Check for
13452         overflow.
13453         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13454         * eqn/lex (do_size): Likewise.
13456 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13458         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13459         compatible headers.
13461 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13463         * tbl/table.cc (table::init_output): Improve error message when
13464         table won't fit on one page.
13466 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13468         * pic/troff.cc (troff_output::start_picture): Generate line
13469         containing a horizontal motion equal to the width of the picture.
13471         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13472         using GROFF_COMMAND_PREFIX environment variable.
13474 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13476         * mdate.sh: Use $NF rather than $(NF).
13478 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13480         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13482         * eqn/main.cc (main): Output code to check that geqn was given the
13483         correct -T option.
13485 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13487         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13488         `ln -s ../Makefile .; make; rm -f Makefile'.
13490         * troff/hyphen: Rename to...
13491         * troff/hyphen.us:
13492         * troff/input.cc (main): Delete -H option. Don't call
13493         read_hyphen_file().
13494         * troff/env.cc: Include searchpath.h and macropath.h.
13495         (exception_dictionary): Deleted.
13496         (ht): Deleted.
13497         (read_hyphen_file): Deleted.
13498         (hyphenation_language): New struct.
13499         (class trie, class hyphen_trie): Move declarations up.
13500         (trie_node::~trie_node): Deleted.
13501         (trie::delete_trie_node): New function.
13502         (trie::do_delete): New pure virtual function.
13503         (hyphen_trie::do_delete): New function.
13504         (trie::~trie): New function.
13505         (hyphen_trie::~hyphen_trie): New function.
13506         (trie::clear): No need to chcek that tp is not 0.
13507         (current_language, language_dictionary): New variables.
13508         (hyphen_word): Give an error if no current language.  Use
13509         exceptions dictionary in current language.
13510         (hyphen_trie::read_patterns_file): Find file using macro_path.
13511         Allow comments (starting with %) in patterns file.  Don't make it
13512         a fatal error if the file can't be found.
13513         (hyphenate): Return if no current language.  Get the exceptions
13514         dictionary and the hyphenation patterns from the current language.
13515         (set_hyphenation_language): New variable.
13516         (hyphenation_patterns_file): New function.
13517         (hyphenation_language_reg): New class.
13518         (hyphenation_language_reg::get_string): New function.
13519         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13520         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13521         register.
13522         * groff/groff.cc (main, help, synopsis): Delete -H option.
13523         * include/Makefile.sub: Don't define HYPHENFILE.
13524         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13525         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13526         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13527         hyphenation patterns.
13529 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13531         * eqn/neqn.sh: New file.
13532         * eqn/Makefile.sub: Handle neqn.sh.
13534         * eqn/eqn.h: Declare `nroff' variable.
13535         * eqn/box.cc (param_table): Add `nroff' param.
13536         (nroff): Define it.
13537         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13538         variable.
13539         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13541         * troff/troff.h (WARN_FONT): New warning.
13542         (WARN_TOTAL): Change accordingly.
13543         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13544         (warning_table): Add WARN_FONT.
13545         * troff/node.cc (mount_font_no_translate): Pass argument to
13546         font::load_font.  If this is non-zero, give a warning.
13547         Don't give an error message when accessing a font that has already
13548         been found to be invalid.
13549         * include/font.h (font::load, font::load_font): Add additional
13550         optional argument which suppresses error message if the font is
13551         not found.
13552         * libgroff/font.cc (font::load_font): Handle additional argument.
13553         (font::load): Add additional argument. If this is non-null, set it
13554         to 1 and don't give error message.
13556         * include/printer.h (printer::end_page): Add argument giving
13557         length of page.
13558         * libdriver/input.cc (do_file): Pass this.
13559         * grops/ps.cc (ps_printer::end_page): Add argument.
13560         * grodvi/dvi.cc (dvi_printer::end_page,
13561         draw_dvi_printer::end_page): Add argument.
13562         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13563         columns_per_page members. New member nlines.
13564         (DEFAULT_LINES_PER_PAGE): Deleted.
13565         (tty_printer::tty_printer): Don't compute lines_per_page from
13566         font::paperlength. Don't compute columns_per_page from
13567         font::paperwidth.
13568         (tty_printer::add_char): Don't check horizontal position against
13569         columns_per_page. Grow glyphs vector if neccessary.
13570         (tty_printer::end_page): Add argument giving page_length in units.
13571         Discard lines past end of page.
13573 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13575         * tmac/tmac.tty-char: Fix definition of \(/l.
13577         * tmac/tmac.X: Define \(en.
13579 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13581         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13582         lpq, then use lp rather than lpr.
13584         * tmac/tmac.s (par@reset): Don't call `ad'.
13585         (par*env-init): Call `ad'.
13587 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13589         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13590         date.
13592         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13593         * indxbib/indxbib.cc: Likewise.
13595 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13597         * libgroff/putenv.c: New file.
13598         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13599         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13600         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13601         stdlib.h with AC_HAVE_HEADERS.
13603 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13605         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13606         does not exist.
13608 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13610         * eqn/box.cc (gsize): Make it an int.
13611         (set_gsize): Parse argument handling increment or decrement.
13612         (box::top_level): Convert gsize to a string.
13614         * troff/input.cc (exit_troff): Make buf unsigned char [].
13615         Call to make_temp_iterator casts buf to char*.
13617         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13619         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13620         * Makefile.cpg (depend.temp): Likewise.
13622         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13624         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13626 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13628         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13630 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13632         * Version 1.06 released.
13634         * Integrate mm 1.04.
13636 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13638         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13640 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13642         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13643         ligatures command.
13644         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13645         afmtodit. Regenerate.
13647         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13648         @f back past the current position.
13650         * tmac/tmac.e: Change calls to @R so that comments are not part of
13651         arguments.
13653 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13655         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13657         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13658         check that we can link a call to a function declared in <stdio.h>.
13659         (GROFF_UNISTD_H): New macro.
13660         * configure.in: Call it.
13661         * Makefile.in: Document it.
13662         * include/posix.h: New file.
13663         * troff/troff.h: Don't include <osfcn.h>
13664         * troff/input.cc: Include posix.h.
13665         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13666         osfcn.h.
13667         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13668         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13669         <fcntl.h>.
13670         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13671         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13672         * libbib/search.cc (O_RDONLY): Delete definition.
13673         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13674         Don't include <osfcn.h>.
13676         * acgroff.m4 (GROFF_TIME_T): New macro.
13677         * configure.in: Call it.
13678         * Makefile.in: Document it.
13680         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13681         * configure.in: Call it.
13682         * Makefile.in: Document -DTRADITIONAL_CPP.
13683         * include/ptable.h: Don't include generic.h.
13684         (name2): Define it.
13686         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13687         Afterwards remove [T1 and [T2.
13688         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13689         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13690         (ref*add-T2): Renamed from ref*add-T.
13691         (ref*add-T1): New macro.
13693 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13695         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13697         * libbib/index.cc: Include <fcntl.h>.
13698         (O_RDONLY): Define if necessary.
13699         (make_index_search_item, index_search_item_iterator::get_tag,
13700         index_search_item::check_files): Use O_RDONLY.
13701         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13702         (O_RDONLY): Define if necessary.
13703         (search_list::add_file): Use O_RDONLY.
13704         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13705         <sys/stat.h>.
13706         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13707         (main): Use these.
13709         * libbib/index.cc (S_ISREG): Define it if necessary.
13710         (index_search_item::load): Use S_ISREG.
13712         * include/driver.h: Include <errno.h>.
13714 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13716         * eqn/box.cc (body_height): Increase default value to 85.
13717         (body_depth): Increase default value to 35.
13719 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13721         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13722         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13723         protected from expansion with \E.
13725         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13727         * Makefile (Makefile): New target.
13729         * Makefile.sub (configure, distfiles): New targets.
13731         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13732         construct.
13734 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13736         * eqn/box.cc (param_table): Add body_height and body_depth.
13738         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13740 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13742         * psbb/Makefile.sub: Don't link with libgroff.a.
13744         * acgroff.m4 (GROFF_PUTENV): New macro.
13745         * configure.in: Call GROFF_PUTENV.
13746         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13747         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13748         is defined.
13750         * troff/env.cc (distribute_space): Rename force_forward argument
13751         to force_reverse.  Reverse the list if force_reverse is true.
13753 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13755         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13757         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13758         height or depth to be negative.  Guard against SUP_RAISE quantity
13759         being negative.
13761 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13763         * devps/generate/textmap: Add `an' (arrowhorizex).
13764         * tmac/tmac.ps: \(an overlaps horizontally.
13765         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13767         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13768         * devps/textmap: Add arrowvertex.
13769         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13770         updownarrow delimiters.
13771         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13773         * tbl/table.cc (simple_entry::position_vertically,
13774         block_entry::position_vertically):  For a centered entry, perform
13775         the motion in two stages.
13777         * refer/refer.cc (split_punct): Don't call lookup_token if there
13778         is no token.
13780 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13782         * troff/input.cc (token::next): Delete token_node after copying
13783         token.
13785         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13786         cur_point_size.
13788         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13790         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13792 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13794         * grops/ps.cc (usage): -b option takes an argument.
13796         * devps/prologue (PLG): New procedure.
13797         * grops/ps.cc (main, usage): New -g option.
13798         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13799         length using PLG.
13801 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13803         * include/cset.h: Include <limits.h> if we have it.
13805         * libgroff/illegal.cc: New file.
13806         * include/lib.h (illegal_input_char): Use table.
13807         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13808         * pic/lex.cc (ARG1): Renumber to 14.
13809         * eqn/lex.cc (ARG1): Likewise.
13811         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13812         (eg 1.05.90) correctly.
13814 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13816         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13817         Rename $r and $R registers to $v and $V.
13818         ($r, $R): Initialize to 0.
13819         (@v, @V): New macros.
13820         (sz): Call @v.
13821         (@M): Call @V.
13823         * troff/input.cc (main, usage): Add -R option that says not to
13824         load troffrc.
13825         * eqn/main.cc (main, usage): Rename -n to -R.
13827 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13829         * devps/DESC.in: Leave font positions 5-9 blank.
13830         * devdvi/DESC.in: Likewise.
13832         * grog/grog.pl: Handle `.PS <file' correctly.
13834         * troff/input.cc (input_stack::push): Improve error message when
13835         input stack limit exceeded.
13837 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13839         * refer/refer.cc (main): Fix typo in handling of `a' option.
13841         * refer/refer.cc (do_bib): In state START after a newline remain
13842         in state START.
13844         * groff/groff.sh: Deleted.
13845         * groff/Makefile.sub: Delete handling of groff.sh.
13847         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13848         to determine whether to use \X'ps:...'.
13849         * tmac/troffrc: Set 0p register to 0.
13850         * tmac/tmac.ps: Set 0p register to 1.
13852         * groff/groff.cc: Support -X option. Give warning for -TXps and
13853         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13854         * tmac/troffrc: Support -r.X=1.
13856         * pic/troff.cc (troff_output::dot): Don't test
13857         zero_length_line_flag.
13859 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13861         * include/lib.h: Declare getopt() and friends unless
13862         STDLIB_H_DECLARES_GETOPT is defined.
13864         * doc/chars.tr: Delete.
13865         * man/groff_char.man: New file.
13867 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13869         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13870         user has changed register format.
13872 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13874         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13875         `postpro' command in DESC file.  Get spooler command from `print'
13876         command in DESC file.  Execute spooler command with /bin/sh.
13878         * groff/groff.cc: Split Unix-specific parts into...
13879         * groff/pipeline.c: New file.
13881         * LICENSE: Delete.
13882         * COPYING: New file.
13883         * all files: Update copyright notices.
13885         * Rearrange files.  Redo Makefiles.  Use autoconf.
13887 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13889         * troff/input.c (charinfo_to_node_list): Interpret character
13890         definition with escape_char of `\'.
13892 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13894         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13895         Define INT_DIGITS as big enough for 64-bit integer.
13896         * lib/strtol.c: Don't include lib.h.
13897         * lib/lib.h: Delete ifdef __cplusplus stuff.
13899 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13901         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13902         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13903         get DESC from current directory.
13905 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13907         * tbl/main.c (main): Always reset the line number when reading
13908         from stdin.
13910         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13911         table::define_bottom_macro, table::do_row, table::do_top): Round
13912         vertical spacing up to vertical resolution.
13914 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13916         * ps/ps.h (enum resource_type): Avoid comma at end of
13917         enumerator-list.
13918         * dvi/dvi.c (class dvi_printer): Likewise.
13919         * dvi/tfmtodit.c (gf::load): Likewise.
13920         * refer/label.y (struct expression): Likewise.
13921         * refer/refer.c (class label_processing_state): Likewise.
13922         * refer/indxbib.c (do_file): Likewise.
13923         * troff/troff.c (enum warning_type): Likewise.
13924         * tbl/main.c (process_data): Likewise.
13925         * troff/charinfo.h (class charinfo):
13927 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13929         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13931 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13933         * groff.c: Move to new groff subdirectory.
13934         * groff/Makefile: New file.
13935         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13937         * man/mdate.sh: Use ls -L if supported.
13939         * Consolidate all header files produced by gendef into lib/defs.h.
13940         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13941         Don't include path.h.
13942         * lib/Makefile (path.h): Don't generate.
13943         * troff/input.c: Include defs.h. Don't include config.h.
13944         * troff/Makefile (config.h): Don't generate.
13945         * refer/index.h: Don't include suffix.h.
13946         * refer/index.c: Include defs.h.
13947         * refer/indxbib.c: Include defs.h.
13948         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13949         defs.h.
13950         * refer/Makefile (suffix.h, path.h): Don't generate.
13951         * groff.c: Don't include config.h. Include defs.h.
13952         * Makefile (config.h): Don't generate.
13953         (lib/defs.h): Generate.
13954         (topclean): Remove lib/defs.h.
13956 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13958         * lib/malloc.c, lib/getpagesize.h: Deleted.
13959         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13960         related stuff.
13961         * lib/Makefile: Delete malloc-related stuff.
13962         * lib/new.c: Workaround COOKIE_BUG if necessary.
13964         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13965         needed header files directly.
13966         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13967         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13969 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13971         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13972         argument.
13973         * lib/font (font::load_desc, font::load): Don't split argument of
13974         unknown command.
13975         (font::handle_unknown_font_command): Change type.
13976         * ps/ps.c (ps_font::handle_unknown_font_command,
13977         handle_unknown_desc_command): Change type.
13978         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13980 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13982         * lib/font.h (font::handle_unknown_font_command): Add file and
13983         line arguments.
13984         * lib/font.c (font::handle_unknown_font_command):
13985         * ps/ps.c (ps_font::handle_unknown_font_command):
13986         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13987         lineno arguments.  Use _with_file_and_line functions for error
13988         reporting.
13990         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13991         data member.
13992         * lib/font.c (font::set_unknown_desc_command_handler): New
13993         function.
13994         (font::load_desc): For unknown commands, call
13995         unknown_desc_command_handler if not null.
13996         * lib/font.h (class font): Declare them.
13997         (FONT_COMMAND_HANDLER): New typedef.
13998         * ps/ps.c (handle_unknown_desc_command): New function.
13999         (main): Set bflag if we had a -b option. Call
14000         font::set_unknown_desc_command_handler.
14001         (broken.h): Don't include.
14002         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14003         submake 
14004         * ps/devps/Makefile: Add `broken' command to DESC file using
14005         BROKEN_SPOOLER_FLAGS.
14007         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14009         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14011         * macros/tmac.e (@R, @S): New macros.
14012         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14013         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14014         Declare $H, $[0-9], .. macros with @S.
14015         Declare |0, |1, |2, |3 strings with @S.
14017         * macros/tmac.e (@S): Rename to @U.
14019         * macros/tmac.e (@z): Define @b and bp as empty instead of
14020         deleting them,
14022         * macros/tmac.e (@m): Deleted.
14023         (@h): Don't call @m.
14024         (@z): Don't set @m trap.
14026         * macros/tmac.e ($h, $f): Define |z as empty string.
14028         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14029         (@q): Likewise.
14031         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14032         removing them.
14033         ()f): Likewise for * register.
14035         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14036         argument is missing, don't change $R.  Call sr with three
14037         arguments when initializing.
14039 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14041         * macros/tmac.e (sr): New macro.
14042         Initialize $r and $R using sr.
14044         * macros/tmac.e (,): Delete \*(#[.
14046         * troff/env.c (set_tabs): Read the tab type even if the position
14047         is bad.  Allow the position of the first tab stop to be negative.
14049 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14051         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14052         _POSIX_VERSION.
14053         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14054         rather than -DPATHCONF_MISSING.
14055         * Makefile: Get rid of PATHCONF_MISSING.
14057         * refer/map.c: New file.
14058         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14059         to map_len.
14060         * refer/Makefile: Handle map.c.
14061         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14063 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14065         * Makefile: RANLIB should be `true' if there is no ranlib.
14066         * lib/Makefile (libgroff.a): Simplify.
14067         * driver/Makefile (libdriver.a): Simplify.
14069         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14070         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14071         defined.
14073 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14075         * troff/env.c (compare_ranges): Declare as extern "C".
14077         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14079         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14081 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14083         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14084         but conditionalize use of \X based on \*(.T.
14085         (grops_output::*): Deleted.
14086         * pic/output.h: Delete declaration of make_grops_output.
14087         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14088         by default. -n sets it to 0.
14089         (usage): Corresponding changes.
14090         * groff.c (main): Don't pass -x or -p to pic.
14091         * groff.sh: Likewise.
14093         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14094         to be non-zero.
14096         * ps/devps/afmtodit: Change calculation of asc_boundary and
14097         desc_boundary.  Make these bounds inclusive.
14098         * ps/devps: Regenerate font files.
14100 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14102         * macros/tmac.latin1: New file.
14103         * macros/tmac.tty-char: Use tmac.latin1.
14104         (tmac.tty-tr): Deleted.
14105         * macros/Makefile: Install tmac.latin1.
14106         * macros/tmac.dvi: Use tmac.latin1.
14107         * macros/troffrc: Translate \[char160] onto no-break space here.
14108         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14110 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14112         * macros/tmac.Xps: Use `do' request.
14114         * macros/tmac.ps: Use `do' request.
14116         * macros/tmac.e (@C): Use `do' request.
14118         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14119         * macros/Makefile: Install tmac.X*.
14121         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14122         * tty/Makefile: Don't install tmac.tty*.
14123         * macros/Makefile: Install tmac.tty*.
14125         * dvi/tmac.dvi: Move to macros.
14126         * dvi/Makefile: Don't install tmac.dvi.
14127         * macros/Makefile: Install tmac.dvi.
14129         * ps/tmac.ps*: Move to macros.
14130         * ps/Makefile: Don't install tmac.ps*.
14131         * macros/Makefile: Install tmac.ps*.
14133         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14134         option.
14135         * macros/eqnrc: Set draw_lines parameter based on device.
14136         * groff.c: Don't pass -D flag to eqn.
14137         * groff.sh: Likewise.
14138         * eqn/main.c: Warn about use of -D.
14140         * troff/input.c (process_startup_file): New function.
14141         (main): Call process_startup_file().
14142         * macros/troffrc: New file.
14143         * macros/Makefile: Install troffrc.
14144         * groff.c (main): Don't pass extra -m option to troff. For a 
14145         pseudo device pass the name of the pseudo device to troff using
14146         -d.
14147         * groff.sh: Likewise.
14148         * groff.c (possible_command::prepend_arg): Deleted.
14150         * troff/input.c (do_request): New function.
14151         (init_input_requests): Bind "do" to do_request.
14153         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14154         load eqnrc from macro directory.
14155         * macros/eqnrc: New file.
14156         * macros/Makefile: Install eqnrc.
14157         * ps/devps/eqnchar: Deleted.
14158         * ps/devps/Makefile: Don't install eqnchar.
14159         * dvi/devdvi/eqnchar: Deleted.
14160         * dvi/devdvi/Makefile: Don't install eqnchar.
14161         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14162         variable optM.
14164         * lib/device.[ch]: New files.
14165         * lib/font.h (font::set_device_name, font::get_device_name):
14166         Deleted.
14167         * lib/fontfile.c: Use device.h.
14168         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14169         * troff/input.c: Delete definition of `device'.
14170         (main): Don't initialize device.
14171         * troff/troff.h: Include device.h rather than declaring device.
14172         * troff/Makefile: No need to handle DEVICE.
14173         * driver/input.c: Include device.h. Don't use
14174         font::{set,get}_device_name.
14175         * groff.c, Makefile: Rename device.h to config.h.
14176         * groff.c: Use library device variable.
14177         * eqn/main.c: Use library device variable.
14178         * eqn/Makefile: No need to handle DEVICE.
14180         * lib/searchpath.[ch]: New files.
14181         * lib/Makefile: Handle searchpath.[ch].
14182         * troff/input.c (open_file, init_dirs): Deleted.
14183         (macro_dirs): Deleted.
14184         (open_mac_file, macro_source): Use class search_path.
14185         (add_string, struct string_list): Move definition.
14186         (main): Change -M option to use macro_path. Delete call to
14187         init_dirs().
14188         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14189         Rewrite to use class search_path.
14190         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14191         * lib/Makefile: fontfile.c depends on searchpath.h.
14192         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14193         MACROPATH.
14194         * lib/macropath.[ch]: New files.
14195         * troff/Makefile: No need to handle MACROPATH.
14197         * troff/input.c: Delete DUMP code.
14198         * lib/fontfile.c, lib/font.h: Delete
14199         font::forget_command_line_font_dirs.
14201         * troff/input.c (push_token): New function.
14202         (handle_first_page_transition): Use push_token().
14203         (process_input_stack): Change handling of a space at the beginning
14204         of the line.
14206 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14208         * troff/input.c (font_dirs): Delete unused variable.
14210         * eqn/lex.c (do_set): Correct error messages.
14212 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14214         * troff/input.c (do_define_string): Allow the string name to be
14215         followed immediately by a tab.
14216         (define_character): Likewise.
14218 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14220         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14221         be negative.
14223         * troff/input.c (input_iterator::is_file): New virtual function.
14224         (file_iterator::is_file): New function.
14225         (input_stack::end_file): New function.
14226         (input_stack::next_file): Handle the situation where there is no
14227         file on the input stack correctly.  Avoid making two passes over
14228         the input stack.
14229         (next_file): Make the filename optional; in this case call
14230         input_stack::end_file().
14232 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14234         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14235         produce a real _ charater when the current font is CW and _
14236         otherwise.
14238         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14239         expression to work around gcc 2.2 bug.
14241 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14243         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14245         * troff/env.c (environment::add_padding): New function.
14246         (environment::add_char): Use add_padding().
14247         (environment::space): Likewise.
14248         (environment::wrap_up_field): Add some padding if there is none
14249         and there's no current tab.
14250         * troff/env.h: Declare environment::add_padding.
14252 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14254         * pic/pic.y: undef fmod and rand before declaring them.
14256 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14258         * troff/input.c (main): If the DESC file specifies a font name of
14259         0, then leave the corresponding font position empty.
14261         * nroff.sh: New file.
14262         * Makefile (install.nobin): Install nroff.sh.
14264         * tty/devlatin1/R.proto: Add ao as synonym for de.
14265         * tty/tmac.tty-char: Define ao as o.
14267         * tty/dev{ascii,latin1}/R.proto: Add aq.
14268         * tty/tmac.tty-char: Delete definition of aq.
14270 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14272         * troff/input.c (init_charset_table): Don't translate 0240.
14273         * ps/tmac.ps: Translate char160 to space.
14274         * dvi/tmac.dvi: Likewise.
14275         * tty/tmac.tty: Likewise.
14277 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14279         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14281         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14282         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14283         \(oe, \(r?, \(r!.
14285         * tty/tmac.tty-char: Add \(ah.
14287         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14288         No need to define \(FM and \(!/. Conditionalize all character
14289         definitions.
14291         * ps/devps/lgreekmap: Add +h, +f, +p.
14293         * ps/tmac.psnew: New file.
14294         * ps/Makefile: Install tmac.psnew.
14296         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14297         character definitions in compatible mode.
14299         * troff/input.c (remove_character): New function.
14300         (init_input_requests): Bind remove_character to "rchar".
14302         * ps/tmac.psold: New file.
14303         * ps/Makefile: Install tmac.psold.
14304         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14305         characters into tmac.psold.  Make these definitions unconditional.
14307         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14309         * ps/tmac.ps: Don't define \('c and \('C.
14311         * ps/devps/textmap: Move Greek characters to...
14312         * ps/devps/symbolchars:
14314 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14316         * ps/devps/text.enc: Add quotesingle.
14317         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14318         * tty/tmac.tty-char: Likewise.
14319         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14320         * dvi/devdvi/texi.map: Add Fn.
14321         * dvi/devdvi/msam.map: Add lz.
14322         * dvi/tmac.dvi: Handle Bq, bq, aq.
14324         * pic/lex.c (get_token): Recognize 'th.
14325         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14327 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14329         * ps/devps/textmap: Move di, mu, +- to...
14330         * ps/devps/symbolchars:
14332         * macros/tmac.s (@XS): Don't call par@reset or fi.
14333         (XA): Call LP. Turn off adjustment. Reduce line length.
14335         * macros/tmac.s: Initially alias XS to LP.
14336         (XS): Rename to @XS.
14337         (cov*ab-init): Alias XS to @XS.
14339 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14341         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14342         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14343         (token::is_size, token::changes_env): Deleted.
14344         * troff/number.c (parse_term): No need to process \s explicitly.
14345         Call tok.next() only after scale indicator has been processed.
14346         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14347         \f etc explicitly.
14348         (token::next): Handle \s, \f, \S, \H immediately rather than
14349         returning them as tokens.
14350         (token::operator==, token::description, token::add_to_node_list,
14351         token::process): Remove handling of deleted tokens.
14353         * troff/env.c (environment::add_char): When adding padding
14354         indicator character, call start_line() if necessary.
14356 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14358         * ps/devps/afmtodit: Don't output 0 kerns.
14360         * ps/devps/afmtodit: Remove directory from name of encoding in
14361         font description file.
14363         * ps/devps/afmtodit: Improve error messages.
14365         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14367         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14368         * ps/devps/FontMakefile: Deleted.
14369         * ps/devps/afmname: New file.
14371         * ps/devps/symbol.sed: New file.
14372         * ps/devps/symbol.diff: Deleted.
14373         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14374         Generate zapfdr.afm from zapfd.afm.
14376         * tty/tmac.tty (tty-char): Prefix definition with ".
14378         * macros/tmac.an (TP): Don't start a diversion if one has already
14379         been started.
14381         * tty/tmac.tty-char: Add Latin-1 characters.
14383         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14385 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14387         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14388         Move declaration of struct horizontal_span.
14390         * tbl/table.c (table::table): Initialize span_list.
14391         (table::~table): Delete span_list.
14393         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14395         * ps/devps/Makefile: Avoid dependency on GNU make.
14397         * ps/tmac.ps: Check that character does not already exist before
14398         defining it.
14400         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14401         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14402         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14403         files.
14405         * tty/tmac.tty-char: New file.
14406         * tty/Makefile: Install tmac.tty-char.
14407         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14408         tmac.tty-char.
14410         * tty/tmac.tty: Fix definition of \(34.
14412         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14413         bracket-drawing characters onto |. Add *o.
14415         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14416         only if current_field.
14418         * troff/dictionary.c (dictionary::lookup): Free old_table after
14419         rehashing. 
14421 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14423         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14424         whose glyphs are identical to glyphs of some Roman character.
14426         * tty/devlatin1/R.proto (bu): Deleted.
14427         * tty/devascii/R.proto (bu): Deleted.
14428         * tty/tmac.tty: Add definition of \(bu.
14430         * eqn/main.c (do_file): Pass FILE as argument.
14431         (main): Automatically load eqnchar.  New options -F and -n.
14432         Pass do_file an opened FILE.
14433         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14434         No need to include font.h.
14435         * groff.sh: Likewise.  Don't need to use - for standard input.
14436         Prefix files with -- if first file starts with -.
14438         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14440         * troff/env.c (environment::possibly_break_line): Don't set line
14441         to 0 across call to output_line().  Don't call output_line() until
14442         after discarding nodes after break.
14444 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14446         * request.h (macro::empty): Declare it.
14447         * input.c (macro::empty): New method.
14448         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14449         macro is empty.
14451 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14453         * troff/env.c (environment::start_field): Decrement space_total
14454         when a space is frozen.
14456 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14458         * macros/tmac.an (R): Delete macro.
14460         * troff/input.c (get_copy, token::next): Support \# (like \" but
14461         newline is ignored).
14463         * troff/input.c (token::next): Fix error message in 'Y' case.
14465 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14467         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14468         a delimiter name.
14470 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14472         * c++test.c: Include <osfcn.h>.
14474         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14475         <errno.h> doesn't.
14477 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14479         * tbl/table.c (table::divide_span): Don't count column separation
14480         if expand was specified.
14482         * tbl/main.c (process_format): Don't ignore width specs in
14483         continued format.  Give warning for changing equal widths or
14484         column separation in continued format.
14485         (process_data): Set column separation, minimum width, equal
14486         columns at end of table.
14488 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14490         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14491         node::add_discretionary_hyphen): Use soft_hyphen_char.
14492         (set_soft_hyphen_char): New function.
14493         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14495         * Makefile (c++tested): Give more helpful message if test fails.
14497 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14499         * troff/input.c (init_charset_table): Translate 0240 to
14500         an unbreakable space.
14502         * troff/token.h (token::hyphen_indicator): New function.
14503         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14504         translation.
14505         * troff/input.c (translate): Allow translation to \%.
14506         * troff/node.c (node::add_char): Handle
14507         TRANSLATE_HYPHEN_INDICATOR.     
14508         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14510         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14511         for \(hy.
14513         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14515 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14517         * groff.c (run_commands): If the last command gets a SIGPIPE send
14518         a SIGPIPE to all children than haven't yet terminated.  When
14519         command terminates, set pid field to -1.
14521 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14523         * groff.c (main): Pass an appropriate -filename option to gxditview.
14525 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14527         * Makefile.bd (install): Remove existing program before copying.
14529         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14530         programs which have Unix counterparts to be installed with
14531         user-specified prefix.
14533         * troff/input.c (exit_troff): Don't check if exit_started.
14534         (exit_request): Don't call exit_troff if exit_started.
14536         * Makefile.bd (install.mm): Rename to install.dwbmm.
14538 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14540         * driver/input.c (do_file): Add missing break for '#' case.
14542 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14544         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14545         then add the boundaries back.
14547         * troff/input.c (exit_troff): Return immediately if already
14548         exiting.
14550         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14551         end macro.
14552         (pg*end-page): If the text has ended and there are no more
14553         footnotes or keeps, exit.
14555         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14557         * troff/input.c (init_charset_table): Make \(rq transparent by
14558         default.
14560         * macros/tmac.an: Define lq and rq strings.
14562         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14564 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14566         * troff/env.c (environment::final_break): New function.
14567         (environment::newline): Set prev_line_interrupted to 2 if
14568         exit_started.
14569         * troff/env.h: Declare environment::final_break.
14570         * troff/input.c (exit_troff): Call environment::final_break()
14571         instead of environment::do_break().
14573         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14574         doesn't already exist.
14575         * macros/man.local: New file.
14576         * macros/tmac.an: Load man.local.
14577         * macros/man.ultrix: New file.
14579 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14581         * troff/input.c (exit_groff): Rename to...
14582         (exit_troff): New function.
14584         * troff/div.c (exit_started, done_end_macro,
14585         seen_last_page_ejector): New global variables.
14586         (began_page_in_end_macro): New static variable.
14587         (exit_flag): Deleted.
14588         (top_level_diversion::top_level_diversion): Initialize
14589         last_page_count.
14590         (top_level_diversion): More elaborate test for whether
14591         cleanup_and_exit() should be called.
14592         Set began_page_in_end_macro if the end macro isn't yet finished.
14593         * troff/div.h (top_level_diversion::last_page_count): New data
14594         member.
14595         (top_level_diversion::set_last_page): New function.
14596         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14597         * troff/env.c (do_break): Zero prev_line_interrupted.
14598         * troff/input.c (exit_flag): Delete declaration.
14599         (LAST_PAGE_EJECTOR): New magic cookie.
14600         (token::next): Handle LAST_PAGE_EJECTOR.
14601         (exit_groff): Set exit_started and done_end_macro instead of
14602         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14603         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14604         another ejection after setting seen_last_page_ejector.
14606 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14608         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14610         * macros/tmac.e (TH): Make sure there's room for the initial
14611         header.
14613         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14614         Set FVS in points rather than units.
14616 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14618         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14619         position of empty slots.
14621 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14623         * ps/devps/S: Fix height and depth of parenrightex.
14624         * ps/devps/symbol.diff: Regenerate.
14626 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14628         * tmac.e (u): Do underlining as in -mgs.
14630 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14632         * tty/tty.c (tty_printer::end_page): If overstriking is
14633         suppressed, still turn overstruck horizontal and vertical lines
14634         into +.
14636         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14637         2.1.
14639         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14641 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14643         * Version 1.05 released.
14645 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14647         * tty/tty.c: Instead of keeping an array of glyphs and then
14648         sorting it, keep a ordered linked list of glyphs for each line.
14650         * driver/driver.h: Include stddef.h.
14652         * tty/tty.c (compare_glyph):
14653         * refer/refer.c (rcompare):
14654         * troff/env.c (compare_ranges): Arguments of qsort comparison
14655         function should be const void *.
14657         * troff/number.c (parse_term):
14658         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14659         switch statement.
14661         * refer/label.y (consider_authors): Don't access variables
14662         constructed under a condition outside that condition: put braces
14663         round for statement containing declaration; redeclare use of same
14664         variable later.
14666         * pic/pic.y (text_expr): Delete production that allows
14667         parenthesised text_expr.
14668         (expr): Allow a conditional_expr to appear in parentheses.
14669         (conditional_expr): Rename to any_expr.
14671         * mm: Install new version 1.01 from jh.
14673         * lib/font.c (font::get_width): Cache scaled widths.
14674         (font::font): Initialize widths_cache.
14675         (font::~font): Destroy widths_cache.
14676         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14678 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14680         * c++test.c, c++test.ref: New files.
14681         * Makefile: Check that the C++ compiler works.
14683         * ps/tmac.pspic (PSPIC): Do a break.
14685         * ps/tmac.ps: Move definition of PSPIC into...
14686         * ps/tmac.pspic: New file.
14687         (PSPIC): Draw box around picture, but make it invisible to grops.
14688         * ps/tmac.ps: Load tmac.pspic.
14689         * ps/Makefile: Install tmac.pspic.
14691 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14693         * lib/font.c (scale_round): If n is negative,
14694         subtract .5 before truncating floating point result.
14696         * lib/fontfile.c: Include <errno.h>.
14698 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14700         * driver/input.c (get_char): Inline. Don't update current_lineno.
14701         Change callers to up date current_lineno if necessary.
14702         Use get_char() instead of getc(current_file).
14704 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14706         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14708 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14710         * tty/tty.c (tmac.tty): Define \(rg as (R).
14712 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14714         * lib/lib.h: New define a_delete.
14715         * Use a_delete instead of delete when deleting an array of objects
14716         without destructors.
14718         * lib/lib.h: Rename adelete to ad_delete.
14719         * Change uses of adelete.
14721 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14723         * eqn/eqn.y: Include lib.h.
14725         * troff/node.c (grow_font_table): Delete old_font_table.
14727         * mm: Install new version from jh.
14729 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14731         * tbl/table.h (format_type): Make global instead of local to class
14732         entry_format.  Prefix enumerators with FORMAT_.
14733         * tbl/table.c, tbl/main.c: Corresponding changes.
14734         * refer/token.h (token_type): Make global.  Prefix enumerators
14735         with TOKEN_.
14736         * refer/token.[ch]: Corresponding changes.
14737         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14739         * troff/div.c (node::set_vertical_size): Don't name argument.
14741 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14743         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14744         * lib/lib.h: Define adelete accordingly.
14745         * pic/object.c (graphic_object::graphic_object):
14746         * tbl/main.c (format::~format):
14747         * tbl/table.c (table::~table):
14748         * refer/ref.c (reference::~reference, reference::merge,
14749         reference::insert_field, reference::delete_field): Use adelete.
14751         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14752         * refer/token.h:
14753         * tbl/table.h: Corresponding changes.
14755         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14756         Ensure total_angle is positive.
14758 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14760         * refer/ref.c (reference::merge, reference::insert_field,
14761         reference::delete_field): Avoid delete[0].
14763         * refer/token.c (init_special_chars): Move calls to cmupper
14764         outside calls to init_two_char_letter to work around bug in gcc
14765         2.0.
14767 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14769         * lib/new.c (operator new): Use __builtin_new for g++.
14771         * pic/object.c (graphic_object::~graphic_object):  Don't use
14772         delete [] on 0.
14774         * pic/object.c (output::compute_scale): Initialize max_width and
14775         max_height.
14777 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14779         * troff/input.c (write_request): Call fflush.
14781         * troff/node.h (class composite_node): Move declaration to node.c
14782         * troff/input.c (charinfo_to_node): Rename to ...
14783         (charinfo_to_node_list): Return node list rather than composite
14784         node.
14785         * troff/node.c (make_composite_node): New function.
14786         (make_node, add_char): Call make_composite_node instead of
14787         charinfo_to_node.
14788         (class composite_node): Add a tfont * member.  Delete font_size
14789         member.
14790         (composite_node::composite_node, composite_node::copy,
14791         composite_node::size): Corresponding changes.
14792         (composite_node::tprint): Provide constant spacing, emboldening
14793         and track kerning as specified in tfont.
14794         (composite_node::width): Change width calculation accordingly.
14795         * troff/env.h (environment::composite): New member.
14796         (environment::is_composite, environment::set_composite): New
14797         functions.
14798         * troff/env.c (environment::environment): Initialize composite.
14799         * troff/input.c (charinfo_to_node): Call
14800         environment::set_composite.
14801         * troff/node.c (make_composite_node, make_glyph_node): Use the
14802         plain version of the tfont if the environment is composite.
14804         * troff/node.c (font_info::get_space_width): Additional argument
14805         giving space_size.  Handle constant space correctly. Scale by
14806         space_size unless constant spaced.
14807         (env_sentence_space_width): New function.
14808         * troff/node.h: Declare it.
14809         * troff/env.h (environment::get_space_size,
14810         environment::get_sentence_space_size,
14811         environment::get_narrow_space_width,
14812         environment::get_half_narrow_space_width): Make inline.
14813         (environment::get_space_width): Make inline.  Just call
14814         env_space_width.
14815         * troff/env.c: Delete definitions for funtions made inline.
14816         (environment::space_newline, environment::space): Use
14817         env_sentence_space_width(). Don't scale by space_size.
14818         * troff/node.h: Move declarations of env*space_width() functions
14819         into env.h.
14821 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14823         * macros/tmac.s (PS): Don't try to set negative indent.
14825 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14827         * pic/pic.y: Fix min function.
14829 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14831         * man/mdate.sh: Clear LANGUAGE.
14833 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14835         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14836         * pic/lex.c: New COMMAND keyword.
14837         * pic/pic.y (print_args, print_arg): New rules.
14838         (placeless_element): Use print_args for PRINT.
14839         New COMMAND element.
14841 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14843         * troff/input.c (terminal): Handle missing argument correctly.
14845         * pic/pic.y (text_expr): New rule.
14847         * pic/pic.y: Implement := operator.
14849 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14851         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14852         mdoc.
14854 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14856         * ps/devps/dingbatsrmap: Include this in the distribution.
14858         * macros/tmac.doc: Replace with new version from 2nd Networking
14859         Release. Fix loading of doc-* files.
14860         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14861         * macros/tmac.doc.old: New file.  Apply fixes that had been
14862         applied to old tmac.doc.
14863         * macros/tmac.andoc: Check that we're running under groff.
14864         * macros/Makefile: Rework.
14866 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14868         * tbl/table.h (format_type): 
14869         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14870         typedef to make these types visible at file scope.
14871         * Makefile: Add NESTED_TYPES configuration option.
14873         * troff/div.c (mark): At the top level use the value of
14874         nl_reg_contents rather than the current vertical position.
14876 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14878         * tty/tty.c: Implement \D for horizontal or vertical lines.
14879         (tty_printer::set_char): Use vec_used+2 as serial number.
14880         Don't allow size of vector to exceed USHRT_MAX-2.
14881         Split off part into...
14882         (tty_printer::add_char): New function.
14883         (tty_printer::draw): New function.
14884         (compare_glyph): Handle equal serial numbers.
14885         (tty_printer::end_page): Handle overstruck characters from \D.
14886         (main, usage): Implement -d option.
14888 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14890         * tbl/main.c (process_format):
14891         * eqn/text.c (split_text):
14892         * troff/input.c (token::next): Use inner block for declarations
14893         with initializers in switch statement.
14895 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14897         * pic/common.c (common_output::dash_line): Cope with zero-length
14898         lines.
14900 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14902         * Version 1.04 released.
14904 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14906         * macros/tmac.an (TH): Define a macro an-init to define variables
14907         based on command line arguments.
14908         (an-header): Call it.
14910 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14912         * Makefile (install.mm): Rename to install.dwbmm.
14914         * Makefile: Integrate mm.
14915         * mm: New directory.
14917 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14919         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14920         <sys/types.h>.
14922         * pic/troff.c (troff_output::simple_spline,
14923         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14924         shadowing parameter.
14926         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14928         * lib/ptable.h: Add explicit casts when converting from unsigned
14929         long to unsigned.
14931         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14932         * dvi/devdvi/Makefile: Install SA, SB.
14934         * refer/indxbib.c: Add declaration of mktemp.
14936         * refer/lookbib.c: Add declaration of isatty.
14938 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14940         * pic/lex.c (interpolate_macro_with_args):  While collecting
14941         arguments, keep track of whether we're in a string.
14943 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14945         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14946         down with \v, so as to avoid problems with top of page trap
14947         setting no space mode.
14949 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14951         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14953 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14955         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14956         Improve error message.
14958 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14960         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14961         printf("%03o");
14963 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14965         * groff.c (possible_command::execp): Always use _exit() after a
14966         failed exec.
14968         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14969         NO_SYS_WAIT_H   configuration options.
14970         * groff.c: Use these options.  Use POSIX-style macros to extract
14971         fields from the status returned by wait().
14973 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14975         * tbl/table.c (table::compute_separation_factor): Allow the
14976         separation factor to drop to 0.
14978 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14980         * refer/search.c: Include <errno.h>.
14982 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14984         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14986         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14987         C++. 
14989         * pic/lex.c (input_stack::bol): Move definition out of class body.
14991         * pic/main.c: On MSDOS munge argv[0].
14993         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14995         * lib/ptable.c (hash_string): Use unsigned long rather than
14996         unsigned.
14997         (next_ptable_size): Use unsigned rather than int.  Give an error
14998         message if we've hit the largest table size.
14999         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15000         table size.
15002         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15003         flags as const unisgned long rather than as enums.
15005         * pic/output.c: Deleted.
15007         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15009         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15010         Add additional argument.
15011         (line_entry::note_double_vrule_on_{left,right}): Set value of
15012         douvle_vrule_on_{right,left} flag according to argument.
15013         (simple_line_entry::simple_print,
15014         simple_line_entry::double_line_print): If adjacent to double vrule
15015         on a corner extend rather than shorten the rule by half the double
15016         vrule sep.
15018         * troff/number.c (parse_term): In checking for overflow, handle the
15019         case where the current horizontal position is negative.
15021 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15023         * pic/object.c (draw_arrow): Check for object having zero length.
15025 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15027         * eqn/main.c (do_file): Split off inline equation handling into...
15028         (inline_equation): New function.  Search for starting delimiter
15029         using...
15030         (delim_search): New function. Don't recognize a delimiter that
15031         occurs in the name of an escape sequence, number register, string
15032         etc.
15034 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15036         * eqn/delim.c (delim_box::compute_metrics): Don't call
15037         define_extensible_string if left is 0.
15038         (delim_box::output):  Don't print the left delimiter if left is 0.
15039         (delim_box::debug_print): Check for left == 0 before calling printf.
15041 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15043         * troff/Makefile (majorminor.c): Include only digits in
15044         minor_version.
15046 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15048         * refer/dirnamemax.c: new file.
15049         * refer/genlimits.c: Deleted.
15050         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15051         Don't check path length.
15052         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15053         * Makefile: Add PATHCONF_MISSING option.
15055         * refer/indxbib.c (get_cwd): New function.
15056         (main): Use get_cwd().
15057         * lib/getcwd.c: New file.
15058         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15059         GETCWD in SUBFLAGS.
15060         * lib/Makefile: Compile getcwd.o.
15062         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15063         userdict.
15065         * refer/indxbib.c (main): Check success of mktemp.
15067         * lib/tmpfile.c: New file.
15068         * lib/Makefile: Add tmpfile.c.
15069         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15070         * ps/ps.h: Delete declaration of mktemp().
15071         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15072         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15073         * driver/driver.h: No need now to include errno.h.
15075         * everywhere: Set errno to 0 before calling fopen().
15077         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15078         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15079         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15081 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15083         * troff/env.h (translate_space_to_dummy): Declare it.
15084         * troff/env.c (environment::space_newline, environment::space):
15085         If translate_space_to_dummy is set then make the width of spaces 0.
15086         * troff/input.c (translate): If the second character of a
15087         translation is a space, translate to unbreakable space.  If the
15088         first character is a space, set or clear translate_space_to_dummy
15089         according to whether the second character is \&.  Weird!
15091 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15093         * groff.c (run_commands): Don't use non-zero exit code because a
15094         command gets SIGPIPE.
15096         * groff.c, groff.sh: Use -mXps with -TXps.
15098         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15099         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15100         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15101         (ps_printer::special): New specials invis and endinvis.
15102         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15103         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15104         (ps_printer::end_page): Check that invis_count == 0.
15105         (ps_printer::invis_count): New member.
15106         (ps_printer::ps_printer): Initialize invis_count to 0.
15108         * troff/env.c (environment::hyphenate_line): Hyphenation
15109         indicator at beginning of word inhibits splitting after -, \(em
15110         etc.
15112         * pic/pic.y (element): Allow another element to follow } without
15113         any intervening separator.
15115 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15117         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15119 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15121         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15122         declaration of wait() in header files.
15123         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15125         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15127         * lib/lib.h: Declare return type of strerror as char *.
15129         * man/Makefile: Add g flag to sed substitutions.
15130         * Makefile (shgroff, bindist): Likewise.
15132 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15134         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15135         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15136         userdict.
15138 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15140         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15141         userdict.
15143 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15145         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15146         group.
15148 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15150         * troff/input.c (define_number_reg):  If currently undefined,
15151         don't define it if the argument is an invalid expression.
15153         * Makefile: Ignore return value of `if' commands without `else'
15154         parts.
15156         * Makefile: Split up CPPDEFINES into a series of separate
15157         configuration options.
15159         * troff/input.c (init_registers): Use time_t instead of long
15160         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15161         than passing pointer.
15162         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15164         * lib/Makefile (fontpath.h): Use gendef.
15166 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15168         * troff/input.c (input_iterator::shift): Delete argument name.
15169         * troff/node.c (suppress_output_file::really_begin_page,
15170         suppress_output_file::really_transparent_char, node::ascii_print,
15171         node::tprint): Delete names of unused arguments.
15173 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15175         * refer/label.y (string):  Pass $4 to command_error.
15177 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15179         * Version 1.03 released.
15181 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15183         * Makefile: Pass definition of SHELL in SUBFLAGS.
15185         * gendef: New file.
15186         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15187         ps/Makefile: Use gendef to construct header files that are
15188         constructed from the Makefile.
15190         * macros/Makefile: make all should build stripped version of tmac.e.
15192         * refer/Makefile (clean): Remove y.output.
15194 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15196         * ps/pfbtops.c (main): Add -v option which prints out a version
15197         number.
15198         * ps/Makefile (pfbtops): Link with libgroff.a.
15200 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15202         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15203         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15205         * refer/lkbib.c (main): Always terminate reference with blank
15206         line.
15207         * refer/lookbib.c (main): Likewise.
15209         * refer/linear.c (file_buffer::load): Check that the file is not a
15210         binary file.
15212         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15213         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15214         Delete second inclusion of <sys/param.h>.
15216 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15218         * troff/token.h (token::special): Deleted.
15220         * tbl/main.c (process_format): Rework so that opt->tab_char is
15221         recognized only when appropriate.
15223         * ps/Makefile (clean): Remove pfbtops.
15225 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15227         * lib/font.c (text_file::next): Don't return if we have got a
15228         blank line.
15230 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15232         * refer/refer.c (store_reference): Get hash code from old_table[i]
15233         when rehashing the table.
15235 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15237         * eqn/box.c (box::top_level): Save size and prev size using \R and
15238         restore it afterwards. Set the size to the size at the beginning
15239         of the line.
15240         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15241         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15243         * refer/Makefile (limits.h): Use ./genlimits.
15245 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15247         * refer/index.c: Delete declarations of stat() and fstat().
15249 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15251         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15253 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15255         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15257 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15259         * troff/input.c (token::get_char): Handle \e.
15261         * refer/linear.c: Delete declarations of fstat() and stat().
15263 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15265         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15266         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15268 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15270         * troff/input.c (do_define_macro): Improve error handling for end
15271         of file while defining macro.
15273 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15275         * eqn/box.h: Fix declaration of set_gsize.
15276         * eqn/box.c (set_gsize): Make argument const char *.
15277         (gsize): Declare as char *.
15278         * eqn/main.c (main): Don't convert gsize to int.
15279         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15281         * Version 1.02 released.
15283 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15285         * macros/tmac.andoc: New file.
15286         * macros/Makefile: Install tmac.andoc.
15288         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15289         operator new and delete on OP_DELETE_BROKEN not being defined.
15290         * Makefile: Mention OP_DELETE_BROKEN.
15292 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15294         * Makefile (bindist): Pass SUBFLAGS.
15296 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15298         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15300         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15301         parameter.
15303         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15305         * ps/ps.h, ps/psrm.c: Make comment_table and
15306         header_comment_table local to resource_manager::process_file.
15308         * groff.sh: With -TXps pass -printCommand option to gxditview.
15310         * groff.c (possible_command::print): Implement using
15311         append_arg_to_string.
15313         * xditview: Merge in new implementation with own ChangeLog.
15315 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15317         * groff.c (main): Implement PRINT_OPTION.
15318         (append_arg_to_string): New command.
15319         (device_table): Set PRINT_OPTION flag for Xps.
15321 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15323         * troff/groff.h: Rename to troff.h.
15325         * pic/lex.c (lookup_keyword, docmp): New functions.
15326         (get_token): Use new lookup_keyword.
15327         Don't include key.h.
15328         * pic/key.[ch], pic/pic.gperf: Deleted.
15329         * pic/Makefile: Remove gperf stuff.
15331         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15332         into output.h.
15333         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15335         * troff/Makefile, troff/node.c: Move definition of
15336         STORE_WIDTH into node.c.
15338         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15340 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15342         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15343         dvi/devdvi/texb.map: Add lq and rq.
15344         dvi/devdvi: Regenerate fonts.
15345         * ps/devps/textmap: Add lq and rq.
15346         * ps/devps: Regenerate fonts.
15347         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15348         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15350         * pic/object.c (position_rectangle): When checking radius
15351         cope with possiblity that width or height is negative.
15352         (box_object::box_object): Have separate xrad and yrad with
15353         signs matching signs of dim components.
15354         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15355         (box_object::print): With rounded boxes use absolute values
15356         for dim and rad arguments.
15358         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15359         in fontpath.h.
15361         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15363         * various files: Add explicit destructors to keep Saber CC +d
15364         happy.
15366 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15368         * eqn/box.c (box::top_level): Restore fonts correctly after
15369         font changes in line containing inline equation.  Also
15370         restore previous font as well as current font.
15371         * eqn/pbox.h: Define necessary string and register names.
15373         * troff/input.c (token::next): Case 'R' calls do_register.
15374         (do_register): New function.
15376 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15378         * groff.c, groff.sh: Support Xps device.  Allow each device
15379         to have a pseudo_name and a real_name.
15381         * groff.c (run_commands): Don't print `Broken pipe' messages.
15383         * ps/pfbtops.c: New file.
15384         * ps/Makefile: Add pfbtops.
15386         * troff/number.c (parse_term): Improved error message.
15388 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15390         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15392         * Makefile: Integrate refer.
15393         * refer: New directory.
15394         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15395         man/lkbib.man: New files.
15396         * man/Makefile: Support refer man pages.
15398         * lib/lib.h: Declare is_prime.
15399         * lib/prime.c: New file.
15401         * troff/input.c (macro_source): New function.
15402         (init_input_requests): Bind "mso" to macro_source.
15404         * troff/env.c (environment::possibly_break_line): Maintain
15405         pointer to pointer to node to be split in ndp so as to avoid
15406         using address of freed node.
15408         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15409         pointer to first node to be hyphenated in startp so as to
15410         avoid using address of freed node.
15412         * troff/env.c (class trie, class hyphen_trie): Make the
15413         elements of the trie be of type char not unsigned char.
15414         Declare arguments to be const char* instead of unsigned char *.
15415         
15416         * troff/env.c (hyphenate): Initialize hbuf[0].
15418         * troff/input.c (set_string): Declare p to be char * and cast
15419         *p to unsigned char when necessary.
15421         * troff/input.c (do_define_macro): Declare s to be const
15422         char*. Cast element to unisgned char when necessary, Declare
15423         d to be an int.  Handle EOF better.
15425         * troff/Makefile, troff/input.c: Different scheme for passing
15426         definitions of MACROPATH, HYPHENFILE and DEVICE.
15428 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15430         * tty/devascii/R.proto: Delete entry for em.
15431         * tty/devlatin1/R.proto: Likewise.
15433 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15435         * troff/input.c (translate): Stop when we get a space. Treat eof
15436         like newline.
15438         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15440 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15442         * tbl/main.c (process_format): A font name following a `f'
15443         modifier that starts with a digit can be only one character long.
15444         Also deal with EOF on the second character of the font name.
15446 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15448         * troff/input.c (token::next): Turn \~ into an
15449         unbreakable_space_node.
15450         * troff/node.c (unbreakable_space_node): New class.
15451         * troff/node.h: Declare it.
15453 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15455         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15456         it's >= 0, before outputting it as a single byte.
15458 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15460         * lib/font.c: Make font_char_metric::code an int.
15461         (font::get_code): Change return type to int.
15462         (font::load): Allow code to be arbitrary integer.
15463         * lib/font.h (font::get_code): Change return type to int.
15464         (font::number_to_index): Change argument type to int.
15465         * troff/input.c (token::next):  In case 'N', allow any value.
15466         Store value in token::val.
15467         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15468         (token::get_char, token::add_to_node_list, token::process): Get
15469         number from val.
15470         (charinfo::set_number): Change argument to int.
15471         (charinfo::get_number):  Require that NUMBERED flag be set.
15472         (get_charinfo_by_number): Store numbered characters not between 0
15473         and 255 in a dictionary.
15474         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15475         to int.
15476         (charinfo::number): Change type to int.
15477         (charinfo::set_number): Change type of set_number to int.
15478         * troff/node.c (troff_output_file::put_char_width,
15479         troff_output_file::put_char): Test whether character is numbered
15480         using charinfo::numbered().
15481         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15482         values of num.
15483         * lib/nametoindex.c: New implementation to cope with arbitrary
15484         number characters.
15486         * troff/input.c (token::operator==): Test val for
15487         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15488         TOKEN_SIZE.
15490         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15491         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15493 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15495         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15496         variable.
15498         * all Makefiles: rm targets of cp and >.
15500         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15501         it.
15503         * eqn/lex.c (def_table): Add dollar.
15505 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15507         * troff/input.c (do_width): Push back newline before closing delim
15508         like do_bracket.
15510 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15512         * groff.c (possible_command::prepend_arg): New function.
15513         (main): Prepend device -m option.
15514         * groff.sh: Put device -m options before command-line options.
15516 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15518         * macros/tmac.an (IP): Quote argument to TP.
15520         * ps/ps.c (main): New option -b, which sets...
15521         (broken_flags): New variable.
15522         (ps_printer::~ps_printer): Incorporate the setup section in the
15523         prolog if (broken_flags & NO_SETUP_SECTION).
15524         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15525         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15526         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15527         ps_printer::print_needed_font_comment,
15528         ps_printer::print_supplied_font_comment,
15529         ps_printer::print_include_font_comments,
15530         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15531         ps_printer::read_download_file, read_document_fonts, add_font,
15532         skip_line, parse_fonts_arg, document_font::document_font,
15533         document_font::~document_font, document_font::download,
15534         ps_output::include_file):  Deleted.
15535         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15536         rather than %!PS-Adobe-2.0.  Make calls to
15537         resource_manager::need_font for each font that we used. Replace
15538         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15539         print_supplied_font_comment, print_needed_font_comment by call to
15540         resource_manager::print_header_comments. Output %%Orientation
15541         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15542         Don't output the prolog directly.  Instead call
15543         resource_manager::output_prolog.  Only define #copies when ncopies
15544         > 1.  Delete calls to print_include_font_comments  and
15545         download_fonts.  Add call to resource_manager::document_setup.
15546         (ps_printer::do_file): Call resource_manager::import_file instead
15547         of including it ourselves.
15548         (ps_printer::do_import): Likewise.  Also don't call
15549         merge_import_fonts. Push userdict on the dictionary stack before
15550         and pop it afterwards.
15551         Move declaration of ps_output into ps.h.
15552         * ps/psrm.c: New file implementing resource_manager class.
15553         * ps/ps.h: New file declaring ps_output and resource_manager
15554         classes.
15555         * ps/devps/zapfdr.ps:
15556         * ps/devps/symbolsl.ps:
15557         * ps/devps/prologue:  Use 3.0 conventions.
15558         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15559         Add default definition of BROKEN_SPOOLER_FLAGS.
15560         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15561         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15563 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15565         * etc/grog.pl: New file.
15566         * Makefile (GROG): New variable.
15567         Add GROG to SUBFLAGS.
15568         * etc/Makefile (GROG): New variable.
15569         (install.nobin): Install $(GROG) rather than grog.sh.
15571 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15573         * eqn/special.c (special_box::compute_metrics): Make the input and
15574         output strings the same.  Get the new height and depth from the
15575         predefined height and depth registers.  Also make subscript kern
15576         and skew available.
15577         (special_box::compute_subscript_kern, special_box::compute_skew):
15578         New functions.
15580         * eqn/box.c (pointer_box::compute_skew,
15581         simple_box::compute_metrics, box::top_level)
15582         * eqn/text.c (prime_box::compute_metrics,
15583         prime_box::comput_subscript_kern)
15584         * eqn/limit.c (limit_box::compute_metrics):
15585         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15586         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15587         negative numbers in `nr' requests with a leading 0.
15589 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15591         * eqn/special.c: New file.
15592         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15593         Add new rule for simple.
15594         * eqn/lex.c (token_table): Add SPECIAL.
15595         * eqn/box.h: Declare make_special_box.
15596         * eqn/Makefile: Add special.[co].
15598 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15600         * ps/devps/prologue: Possibly set packing to true while defining.
15601         Create grops dictionary here.  Initialize local variables before
15602         defining procedures.
15603         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15604         the dictionary stack. Set strokeadjust and overprint to false if
15605         the relevant operators are defined.
15606         (PEND): New procedure.
15607         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15608         prologue.  Do everything else in the setup section.
15609         (ps_printer::do_import): Just call PBEGIN and PEND around the
15610         picture. Also push userdict before, and pop it afterwards.
15612 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15614         * troff/node.c (bracket_node::tprint): Brackets were being printed
15615         1m too low.
15617         * macros/tmac.an (SH, SS): Set fill mode.
15619 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15621         * troff/div.c (top_level_diversion::begin_page): Set
15622         high_water_mark to 0.
15624 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15626         * man/mdate.sh: New file.
15627         * man/mdate.c: Deleted.
15628         * man/Makefile: Use mdate.sh instead of mdate.
15629         (mdate): Deleted.
15631         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15633 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15635         * man/mdate.c: New file.
15636         * man/*.man: Replace modification date by @MDATE@.
15637         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15638         (mdate): New target.
15640         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15641         Remove illegal input characters.
15643 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15645         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15647 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15649         * troff/div.c (begin_page): Change behaviour when
15650         !first_page_begun and !break_flag.
15652         * troff/input.c (do_name_test): Return 0 if argument is empty.
15654         * troff/input.c (read_long_escape_name): Require closing ] to be
15655         at same input level as opening [.
15657         * troff/input.c (read_increment_and_escape_name): New function.
15658         (get_copy, process_input_stack): Use this for \n.
15660 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15662         * troff/div.c (top_level_diversion::begin_page): Ignore the
15663         current value of page_number if !first_page_begun.
15665         * groff.c (main): Fix declaration of buf.
15667         * troff/input.c (do_name_test): New function.
15668         (token::next): Implement \A.
15669         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15670         (token::description, token::add_to_node_list, token::process):
15671         Handle TOKEN_ESCAPE.
15672         * troff/token.h: New token TOKEN_ESCAPE.
15674 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15676         * pic/main.c (do_picture): Allow space before and after filename
15677         following `<'.  Check that the filename is not empty.
15679 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15681         * Version 1.01 released. 
15683         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15685         * dvi/tmac.dvi: ftr HR to H.
15687         * macros/tmac.e: Round up computation of $r.
15689         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15690         Use \n(.s instead of \n[.s].
15692         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15693         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15694         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15695         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15696         short names in the char definitions.
15698         * ps/tmac.ps: Don't give up completely in compatibility mode.
15699         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15700         quote in front of \n(.s. Add u to factors inside \s[...].
15702 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15704         * tty/tmac.tty: Call the nroff request.
15706         * macros/tmac.e ((x, )x):  Better definitions that work properly
15707         in a diversion.
15708         (@0, @1): Helper macros for (x.
15710         * macros/tmac.e ($s, hl): Use \l rather than \D.
15712         * tty/tmac.tty: Make it work better in compatibility mode.
15713         (pchar): Rename to tty-char.
15715         * macros/tmac.e (@E): New macro.
15716         (r, i, b, rb, bi): Use @E.
15718         * macros/tmac.e (@F): Don't use (;...) syntax.
15720         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15721         it was modified for groff.
15723         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15725         * macros/tmac.e (<., .>): Removed.
15726         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15728         * macros/tmac.e: Remove check that groff is being used.
15730         * macros/tmac.e (@C): Change families only if using groff; turn
15731         compatibility mode off while changing familes. Save compatibility
15732         mode before changing families and restore it afterwards.
15734         * macros/tmac.e (@h): Remove test for offset + line length.
15736         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15737         (lo, th, ac): Define to call @S instead of using als.
15739         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15740         the ratio of the vertical spacing to the point size in units
15741         expressed as a percentage.  Use these instead of $10r and $10R,
15742         Delete $10r and $10R.
15744         * lib/font.c (font::load): In default computation of space_width,
15745         divide by sizescale.  Use scale_round.
15747         * macros/tmac.an (TP): Don't call `nf'.
15748         (an-do-tag): Don't call `fi'.
15750 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15752         * troff/input.c (process_input_stack): Handle the case where
15753         spaces at the beginning of an input line are followed by a
15754         newline.
15756 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15758         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15759         * groff.sh: Use pic -x with the dvi device.
15761         * dvi/devdvi/FontMakefile (H): Don't use -s.
15763         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15764         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15765         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15766         in FONTS.
15768 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15770         * ps/psfig.diff: New file.
15771         * ps/tmac.psfig: New file.
15773 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15775         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15776         (]-): Don't call ref*do-tl.
15778         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15780         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15781         (fn@do-FS): Rename to fn*do-FS.
15783         * troff/input.c (transparent_translate): New function.
15784         (process_input_stack): Apply transparent_translate before calling
15785         diversion::transparent_output(unsigned char).
15787 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15789         * troff/input.c (do_define_macro): Define the macro before calling
15790         skip_line.
15792         * xditview/Makefile: Add DEVICES variable.  Change install target
15793         to use this.
15795 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15797         * groff.c (run_commands): Handle the possibility that there are
15798         child processes other than those forked by us.
15800 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15802         * lib/string.c (string::append): New function.
15803         * lib/stringclass.h: Declare it.
15805 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15807         * eqn/main.c (main): New option -N which sets
15808         no_newline_in_delim_flag. 
15809         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15810         in delimiters.
15811         * groff.c (main): Pass -N on to eqn.
15812         (help, synopsis): Mention -N.
15813         * groff.sh: Implement -N.
15815 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15817         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15818         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15819         (XP): Allow as initializer.
15821 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15823         * troff/env.c (environment::wrap_up_field): If field_spaces are
15824         non-zero and we have a current_tab, subtract padding from
15825         tab_distance.  If this makes tab_distance <= 0, use the next tab
15826         stop instead.  If there isn't any next tab or it's a left tab,
15827         wrap up the current tab.
15828         (environment::start_field): Initialize tab_precedes_field.
15829         (environment::wrap_up_tab): If there's a current field, update
15830         pre_field_width, field_distance and tab_precedes_field.
15831         * troff/env.h (environment::tab_precedes_field): New member.
15833 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15835         * ps/ps.c (ps_printer::do_file): New function.
15836         (ps_printer::special): Bind to `file' special.
15837         (ps_printer::do_exec): Set ndefined_styles to 0.
15839 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15841         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15842         Avoid stripping first character from the start of unrecognized
15843         escapes.  Use lex_error instead of error to report errors.
15844         * eqn/lex.c (get_token): Rework handling of escapes.
15845         (lex_error): Move declaration into...
15846         * eqn/eqn.h.
15848         * xditview/xditview.c (main): Make -page option work.
15850         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15852 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15854         * macros/tmac.s (B2): Correct size of box.
15856 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15858         * macros/tmac.s (B2): Postpone drawing the box until in the
15859         top-level diversion.
15861         * tty/tmac.tty: Add font translations for C, CR, CW.
15863         * groff.c (synopsis, help): Document -i.
15864         * groff.sh: Implement -i.
15866         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15867         Simplify the construction of SN.
15869         * troff/number.c (parse_term): Give `|' a higher precedence.
15870         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15871         accordingly.
15873         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15875 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15877         * lib/string.c (string::move): New function.
15878         * lib/stringclass.h: Declare it.
15880 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15882         * troff/env.c (distribute_space): Add optional argument
15883         `force_forward'.
15884         (environment::wrap_up_field): Call distribute_space with
15885         `force_forward' argument of 1.
15887 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15889         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15890         Inline it.  Move reallocation into...
15891         (string::grow1): New function.
15892         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15893         dependencies to include library header files.
15894         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15896 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15898         * macros/tmac.s (@NH): Use the same number registers than -ms does
15899         for the heading level counters.  Use the same string that -ms does
15900         for the number for this heading.
15902 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15904         * lib/new.c (operator new): Cast result of malloc to char *.
15906         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15907         is not null.
15909 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15911         * groff.c (main): Support -i.
15913 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15915         * pic/pic.h: Include <osfcn.h>.
15917         * ps/ps.c: Add declaration of mktemp.
15919         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15920         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15921         argument as union wait *.
15922         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15923         argument to union wait *.
15925 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15927         * tty/tmac.tty: Add definition of \(co.
15929         * pic/object.c (make_arc): Only increase radius when radius
15930         strictly less than d.
15931         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15932         more than once.
15934         * troff/env.c (environment::environment(symbol),
15935         environment::environment(const environment *)):  Initialize
15936         input_trap_count.
15938 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15940         * tbl/main.c (main): Add exit(0).
15942         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15944         * pic/main.c (main):
15945         * eqn/main.c (main):
15946         * tbl/main.c (main):
15947         * etc/soelim.c (main):
15948         * driver/printer.c (printer::~printer):
15949         * troff/node.c (real_output_file::~real_output_file,
15950         real_output_file::flush):  Check for errors on stdout.
15952         * most files: Add 1991 to copyright notice.
15954         * macros/tmac.s: Don't test \n(.x and \n(.y.
15956         * troff/input.c (token::next): Rename `escape_char' label to
15957         `handle_escape_char' and `normal_char' label to
15958         `handle_normal_char'.
15960 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15962         * groff.c (main, synopsis, help): Support -a option.
15963         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15964         to trflags while parsing options.
15966 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15968         * troff/number.c (parse_term): With `m', `M' and `n' scale
15969         indicators, convert scale factor to hunits before scaling.
15971 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15973         * lib/font.c (scale_round): Better test for overflow when n is
15974         negative.
15976 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15978         * tbl/main.c (process_format): Add second argument of type
15979         options*. Change callers.  Allow opt->tab_char as well as '\t'
15980         between format items.
15982 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15984         * macros/tmac.an (PD): With no arguments, make sure register PD is
15985         at least \n[.V].
15986         (TH): Call PD with no argument, instead of setting register PD
15987         directly.
15989 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15991         * Version 1.00 released.
15993 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15995         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15997         * dvi/devdvi/DESC: Mount CW instead of CR.
15999         * dvi/tmac.dvi: Add definition of \(tm.
16001         * dvi/devdvi/texsy.map: Add lh, and rh.
16002         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16003         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16005         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16006         * dvi/devdvi/Makefile: Install H.
16007         * dvi/devdvi/H: New file.
16009 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16011         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16012         be 0.
16014 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16016         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16018         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16020         * macros/tmac.s (@EN): Handle the case where the equation is empty
16021         but the label is not.
16023 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16025         * troff/groff.h: New warning category WARN_SPACE.
16026         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16027         WARN_SPACE to warning_table.
16028         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16029         is longer than two characters and is not defined, but the first
16030         two characters do make a defined name.
16032         * PROBLEMS: New file.
16034         * CHANGES: New file.
16035         * README-0.6, README-1.00: Deleted.
16037         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16038         * xditview/devX75/Makefile: Make devX75-12.
16039         * xditview/devX100/Makefile: Make devX100-12.
16041         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16042         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16044 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16046         * README-0.7: Rename to README-1.00.
16048         * macros/tmac.pic: New file.
16049         * macros/Makefile (install.nobin): Install tmac.pic.
16051 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16053         * troff/env.c (hyphen_word): Correct the test for whether the
16054         token is a hyphen.  Reset npos to 0.
16056         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16058 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16060         * macros/tmac.s (ds*common-end): Call par*reset.
16061         (PE): Likewise.
16062         (par@reset-indent): Deleted.
16064         * macros/tmac.s (@IP): Divert the label.
16066 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16068         * xditview/draw.c (setGC): Use a line width of .1m rather than
16069         .04m by default; round rather than truncate value.
16071         * tbl/table.c (class empty_entry): New class.
16072         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16073         (table::add_entry): Represent empty entries by objects of type
16074         empty_entry.
16075         (table_entry::line_type): Return -1.
16076         (table::determine_row_type): Ignore entries with line_type 0.
16077         Treat type -1 as non-lines.
16079 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16081         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16082         macros/tmac.s: Rename \(-d to \(Sd.
16084 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16086         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16087         * xditview/libXdvi/DviChar.c: Likewise.
16088         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16090 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16092         * troff/div.c (top_level_diversion::begin_page): Call
16093         init_output() if the_output is 0.
16095 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16097         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16098         ESCAPE_c.
16099         (get_copy): Turn \E into ESCAPE_E.
16100         (token::process, asciify): Handle ESCAPE_E.
16102         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16103         (RD): New macro.
16104         (DS): Implement `.DS R'.
16106 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16108         * macros/tmac.s (FS): New macro.
16110         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16112         * macros/tmac.s (cov*tl-init): Remove after first execution
16113         instead of aliasing to @nop.  Call top of page macro explicitly
16114         instead of setting trap; call @init first.  Set pg@top as top of
16115         page macro.
16116         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16117         cov*auto-init as top of page trap. 
16118         (TL, LP): Do a break instead of calling cov*tl-init.
16119         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16120         @FE; in this case also give a warning and always start another
16121         page. No need to set pg@top here.
16122         (cov*tl-init): Rename to cov*first-page-init.
16124         * macros/tmac.s (RP): Do `.pn 0'.
16125         (cov*tl-init): With RP format don't do `.pn 0'.
16127         * macros/tmac.s (pg@cs-top): Set no space mode.
16129         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16130         (cov*ab-init): Alias TL, AU and AI to these.
16132 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16134         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16135         (@EN): Do nothing unless \n[dl] is > 0.
16137 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16139         * pic/object.c (ellipse_object::radius): New function.
16141         * VERSION: Change version to 0.7.
16143         * tbl/table.c (block_entry::do_divert): Declare return type as
16144         void.
16145         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16147 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16149         * troff/column.c: New file.
16150         * troff/Makefile: Corresponding changes.
16152         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16153         Friend of vunits.
16155         * troff/div.c (top_level_diversion::space): If the space causes
16156         the first-page transition and springs a trap, truncate the space
16157         to 0.
16159 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16161         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16162         the document.
16164         * pic/troff.c (troff_output::line_thickness,
16165         troff_output::set_fill): Do a horizontal motion to compensate for
16166         the width of the \D escape sequence.
16168 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16170         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16171         (not X75).
16173         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16174         to printf.
16176         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16177         Supply empty definition.
16178         (text_entry::simple_print, simple_text_entry::simple_print):
16179         Delete declarations.
16180         (table::add_entry): Represent empty entries by objects of type
16181         `simple_entry'.
16183 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16185         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16187         * tbl/table.c (left_text_entry::add_tab): New function.
16189         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16190         initialize like LP.
16192 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16194         * troff/env.c (environment::start_field): Give an error message if
16195         there is no next tab.
16197 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16199         * troff/env.c (hyphenate): Skip initial elements with zero
16200         hyphenation code.
16202         * macros/tmac.s (par@init): Keep VS in points rather than units.
16204 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16206         * pic/main.c (main): Implement `-c' option.
16207         * pic/output.h: Declare make_tpic_output().
16208         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16209         protected.
16210         (tpic_output): New class.
16211         (tpic_output::tpic_output, tpic_output::set_pen_size,
16212         tpic_output::command, make_tpic_output): New functions.
16214 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16216         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16217         if they're not already defined.
16218         * tbl/table.c (init_output): Don't test \n(.g.
16220         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16221         `d', `r' and `c' conditions even in compatibility mode.
16223 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16225         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16226         box.
16228 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16230         * troff/env.h (environment::prev_line_interrupted): New member.
16231         (environment::get_prev_line_interrupted): New function.
16232         * troff/env.c (environment::newline): Set prev_line_interrupted.
16233         (environment::environment(const environment *),
16234         environment::environment(symbol)): Initialize
16235         prev_line_interrupted.
16236         * troff/input.c (process_input_stack): Don't give special
16237         treatment to space and newline at the beginning of the line if the
16238         previous line was interrupted.
16240 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16242         * eqn/eqn.y: Disallow PRIME by itself.
16243         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16244         PRIME.
16245         (def_table): Remove definition of '.  Define prime to be `.
16247         * eqn/eqn.y: Split off part of rule `script' into a new rule
16248         `nonsup'.
16250 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16252         * macros/tmac.s ({, }): New string aliases.
16254 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16256         * README-0.7: New file.
16258 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16260         * macros/tmac.s: New file.
16261         * man/groff_ms.man: New file.
16262         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16263         * Makefile.bd: Similarily.
16264         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16265         definition of TMAC_S.
16266         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16267         * macros/TODO: New file.
16269 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16271         * troff/env.c (right_justify): New function.
16272         (init_env_requests): Bind this to request "rj".
16273         (center_lines): Set right_justify_lines to 0. If we get a bad
16274         integer, center 1 line.
16275         (environment::environment(symbol), environment::environment(const
16276         environment *)): Initialize right_justify_lines.
16277         (environment::get_right_justify_lines): New function.
16278         (init_env_requests): Bind this to number_register ".rj".
16280         * troff/env.c (environment::choose_breakpoint): Implement
16281         hyphenation_margin and hyphenation_space.
16282         (environment::get_hyphenation_space,
16283         environment::get_hyphenation_margin): New functions.
16284         (init_env_requests): Bind these to .hys and .hym.
16285         (hyphenation_space_request, hyphenation_margin_request): New
16286         functions
16287         (init_env_requests): Bind these to hys and hym.
16288         (environment::environment(symbol), environment::environment(const
16289         environment *)): Initialize hyphenation_margin and
16290         hyphenation_space.
16291         * troff/env.h: Corresponding changes to class environment.
16293 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16295         * troff/div.c (blank_line): Always do a break.
16297         * eqn/box.c (do_text): Turn off escapes while appending text to
16298         string.
16300 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16302         * troff/input.c (while_break_request, while_continue_request): New
16303         functions.
16304         (init_input_requests): Bind these to "break" and "continue".
16305         (while_depth, while_break_flag): New variables.
16306         (while_request): Update while_depth.  Break out of loop if
16307         while_break_flag is set.
16309 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16311         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16312         rather than 0.
16314 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16316         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16318         * stringify: New file.
16319         * Makefile (groff.o): Use stringify.
16321         * xditview/tmac.X: Remove definition of \(rn.
16322         * xditview/libXdvi/DviChar.c: Remove radicalex from
16323         Adobe_symbol_map.
16325 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16327         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16328         (alphabetic_block_entry::alphabetic_block_entry,
16329         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16330         New functions.
16331         (block_entry::divert): Split off body into ...
16332         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16333         from the line length; also update the span width to dl+2n, and the
16334         alphabetic span width to dl.
16336         * driver/input.c (do_file):  While reading argument to D command,
16337         when expanding buffer, multiply szp by sizeof(int) rather than 2
16338         in the argument to memcpy.
16340         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16341         width of alphabetic columns.
16343 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16345         * troff/node.c (lookup_family): Supply second argument to lookup.
16347         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16348         search, return immediately if v is 0.
16350         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16351         (troff_output::start_picture): Set this reg.
16352         (troff_output::end_picture): Remove this reg
16353         * eqn/box.c (box::extra_space): Don't produce `\x's if
16354         EQN_NO_EXTRA_SPACE_REG is defined.
16356         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16357         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16358         character.
16360 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16362         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16363         requests.
16365         * troff/div.c (top_level_diversion::top_level_diversion):
16366         Initialize page_number to 0.
16368 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16370         * groff/troff (environment::environment(const environment *)):
16371         Initialize name to e->name, rather than "anonymous".
16373 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16375         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16376         requested_page.  Split middle part into ...
16377         (FindPage): New function.
16378         (SetValues): If we don't yet know the last page, and the requested
16379         page is greater than the current page, call FindPage.
16380         Update the font_map_string before doing this.
16382         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16383         Translate \(lh and \(rh into left and right double arrows.
16385         * troff/node.c (class hyphen_inhibitor_node): New class.
16386         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16387         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16388         hyphen_inhibitor_node::type,
16389         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16390         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16391         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16392         word.
16394 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16396         * troff/node.h (dummy_node::get_hyphenation_type,
16397         transparent_dummy_node::get_hyphenation_type):  Declare them.
16398         * troff/node.c: (dummy_node::get_hyphenation_type,
16399         transparent_dummy_node::get_hyphenation_type): New functions.
16401 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16403         * xditview/libXdvi/draw.c: If M_PI not defined after including
16404         math.h, then define it.
16406         * xditview/Makefile: Add definition of AR. Pass it to the submake
16407         in libXdvi.
16408         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16410 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16412         * troff/dictionary.h (object_dictionary::alias): Declare return
16413         value as int.
16414         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16415         if the old name was defined.
16416         * troff/input.c (alias_macro): Give a warning if the old name was
16417         not defined.
16418         * troff/reg.c (alias_reg): Likewise.
16420 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16422         * troff/input.c (token::next): Delete implementation of \R.
16424         * macros/Makefile: Strip comments from tmac.e while installing it.
16426         * troff/input.c: New variable `nroff_mode'.
16427         (troff_request, nroff_request): New functions.
16428         (init_input_requests): Bind `troff' and `nroff' to troff_request
16429         and nroff_request.
16430         (do_if_request): Compute results of t and n conditions from
16431         nroff_mode.
16433         * text/text.c (split_text): Fix typo in >=.
16435         * eqn/lex.c: Add definition of `==' to def_table.
16437 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16439         * pic/tex.c (tex_output::start_picture): Change the definitions of
16440         \graph and \graphtemp so that they work properly with Plain TeX.
16442         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16443         argument to `ar' is not less than the first.
16445         * pic/pic.y: Allow a comma between elements of the variable list
16446         in the argument to `reset'.
16448         * pic/object.c (arc_object::arc_object): Fix computation of
16449         radius.
16451         * eqn/main.c (main): Add exit(0).
16453 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16455         * troff/div.c (begin_page): Test no_space_mode after doing the
16456         break, but still push the page ejector cookie before doing the
16457         break.  Also set the next page number after doing the break.
16458         
16459         * xditview/xditview.c (NewFile): Don't set the title and icon name
16460         if this is the first file and its name is `-'.
16461         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16462         the X75 and X100 devices.
16463         (main): If a device has the XT_OPTION flag set and there's exactly
16464         one file argument, pass the driver -xrm and -title options to set
16465         the icon name and window title to the name of the file.
16467         * troff/env.c (environment_switch): If there was an argument but
16468         it wasn't a valid number or name, then pop an environment but
16469         don't give an error message on underflow.
16471         * troff/number.c (start_number): Correct spelling in error message.
16473         * troff/input.c (token::delimiter): Don't print an error message
16474         if err is false.
16476         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16477         ParseDrawFunction if dw->display_enable is true.
16479 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16481         * pic/pic.y: Parse text positioning like normal attributes, so as
16482         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16483         positioning attribute.
16485 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16487         * tbl/main.c (process_data): When in state START while reading a
16488         text block, don't change to state MIDDLE if c is a newline.
16490 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16492         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16493         so as to avoid shadowing parameter.
16495 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16497         * tbl/table.c (trim_space): Deleted.
16498         (table::add_entry): Don't call trim_space.
16500 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16502         * VERSION: Change version to 0.6.
16504         * troff/number.c (parse_expr): Make == work.
16506 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16508         * man/grog.man: New file.
16509         * man/Makefile: Add grog.n to MAN1PAGES.
16510         * etc/grog.sh: New file.
16511         * etc/Makefile: Install grog.sh as grog.
16513 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16515         * troff/input.c (token::next): Implement \E.
16517 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16519         * xditview/tmac.X: Change font translations to match tmac.ps.
16521         * troff/input.c (non_empty_name_warning): Don't give a warning if
16522         `\{' terminates the name.
16524 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16526         * ps/devps/symbol.diff: New file.
16527         * ps/devps/FontMakefile: Mention symbol.diff.
16529 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16531         * troff/node.c (font_position): Use get_long_name to read the
16532         external_name.
16534         * troff/env.c (environment_switch): If we get a number that's < 0
16535         or >= NENVIRONMENTS, treat it like a name.
16536         Change NENVIRONMENTS to 10.
16538         * troff/groff.h: Remove definition of FONTS_MAX.
16539         * troff/node.h (class font_family): Make map a pointer instead of
16540         an array. Add a map_size member. Make it a class. Make nm const
16541         and public. Make invalidate_fontno a friend.
16542         * troff/node.c: Define font_table_size. Make font_info a pointer
16543         rather than an array.
16544         (class troff_output_file): Allocate font_position dynamically. Add
16545         nfont_positions member.
16546         (troff_output_file::set_font): Grow font_position if necessary.
16547         (troff_output_file::~troff_output_file): Delete font_position.
16548         (troff_output_file::troff_output_file): Allocate font_position.
16549         (grow_font_table): New function.
16550         (troff_output_file::really_begin_page,
16551         troff_output_file:really_copy_page): Use nfont_positions rather
16552         than FONTS_MAX.
16553         (mount_font_no_translate, mount_style): Call grow_font_table if
16554         necessary.
16555         (font_family::font_family): Allocate map.
16556         (font_family::make_definite): Grow map if necessary. Use
16557         font_table_size instead of FONTS_MAX.
16558         (font_family::~font_family): New function.
16559         (invalidate_fontno): Use font_family::map_size.
16560         (get_fontno, env_space_width, env_half_narrow_space_width,
16561         env_narrow_space_width, symbol_fotno, is_good_fontno,
16562         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16563         FONTS_MAX.
16564         (next_available_font_position): Never return 0.
16566 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16568         * ps/tmac.ps: Add font translations for compatibility with dpost.
16570 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16572         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16573         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16574         Move definitions baseline_sep, shift_down, column_sep,
16575         matrix_side_sep into...
16576         * eqn/box.c: Add them to param_table.
16577         * eqn/pbox.h: Add declarations to pbox.h.
16579         * troff/input.c (set_string): Cast value to unsigned char *.
16581         * troff/token.h (process_input_stack): Declare it static before
16582         declaring it a friend.
16584 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16586         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16587         and bottom.
16588         * dvi/devdvi/EX: Regenerate.
16590         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16591         transparent.
16593 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16595         * eqn/lex.c: In defaults_table, make definition of `dot' call
16596         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16597         accents.
16599         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16600         argument.
16601         (for_input::get, for_input::peek): Use this.
16602         (do_for): Add by_is_multiplicative argument.
16603         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16604         Change semantic value of optional_by to be a double plus a flag
16605         saying whethet the by clause is multiplicative.
16607         * eqn/lex.c (get_delimited_text): Remember location of start of
16608         definition.  Improve error handling when EOF is encountered.
16610         * lib/font.h: Rename handle_x_command to
16611         handle_unknown_font_command.
16612         * lib/font.c (font::load): Call handle_unknown_font_command for
16613         any unknown command in the font description file.  Don't call
16614         handle_x_command. Include the name of the command in the argv.
16615         Improve message for unknown command after kernpairs or charset
16616         command.
16617         * ps/ps.c (ps_font::handle_x_command): Rename to
16618         handle_unknown_font_command.  Remove message about `x download'
16619         command.  Give error message for wrong number of arguments.
16620         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16621         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16622         handle_unknown_font_command. Give an error message for wrong
16623         number of arguments.  Rename design_size to designsize.
16624         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16625         checksum', `designsize' instead of `design_size'.
16627 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16629         * eqn/*.[chy]: Change underaccent to uaccent.
16631         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16632         give it the same precedence as ACCENT.
16633         * eqn/other.c (make_underaccent_box): New function.
16634         * eqn/box.h: Declare it.
16635         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16636         def_table.
16638 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16640         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16641         (parse_init): Call reset_all.
16642         (define_variable): When defining scale reset only those
16643         pre-defined variables that are scaled.
16644         (defaults_table): Add `scale' as non-scaled value.
16646         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16647         together with the text; allow any number of positioning words;
16648         allow center as a positioning word.
16650         * pic/object.c (output::compute_scale): Get picture maximum height
16651         and width from variables called maxpswid and maxpsht.
16652         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16654 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16656         * pic/object.c (object_spec::make_text): Multiply textht by number
16657         of text items.
16659         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16660         occur.
16661         (do_sprintf): New function.
16662         (pic.gperf): Add sprintf token.
16663         (text, sprintf): New rules.
16665         * pic/pic.y: `rand()' with no arguments returns a random number
16666         in the range [0,1).
16668         * pic/pic.y: Allow a bare expression to be an attribute: change
16669         precedences to support this.  Change optional_ordinal rule to
16670         optional_ordinal_last to avoid reduce/reduce conflict.
16671         * pic/object.c (object_spec::object_spec): Initialize direction.
16673         * pic/pic.y: Implement ^ operator meaning exponentiation.
16675         * troff/node.h: Add default argument to mount_font.
16676         * troff/node.c (font_position): Read an optional third argument
16677         giving the external_name.
16678         (mount_font): Add optional argument giving the external_name.
16679         (mount_font_not_translate): Have additional argument giving
16680         external name.  Use this name to load the font.  Pass both names
16681         to font_info::font_info.
16682         (font_info::font_info): Have additional argument giving
16683         external_name.
16684         (class tfont): New member external_name.
16685         (font_info::get_tfont): Use external name to construct tfont_spec.
16687 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16689         * eqn/lex.c (init_table): Add argument giving device.  Define
16690         name of device to be "1".
16691         (do_ifdef): Counts as true if the argument has been defined with
16692         `define'.
16693         * eqn/main.c (main): Call init_table with device argument. Make
16694         device local to main.
16695         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16696         of device.
16698         * pic/lex.c (get_delimited): Allow text to be delimited by
16699         matching {}s.  Don't recognize ending delimiter within a string.
16701         * troff/input.c (get_delim_name): New function.
16702         (token::next): Implement \C.
16704         * lib/font.c (font::load): Grok ---.  Add an alias for each
16705         character based on its code.
16706         (font::get_code_width): Deleted.
16707         * lib/font.h (class font): Declare font::number_to_index().
16708         Remove declaration of font::get_code_width.
16709         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16710         to indices of named characters.
16711         (font::number_to_index): New function.
16712         * troff/input.c (font::number_to_index): New function.
16713         (get_charinfo_by_number, charinfo::get_number,
16714         charinfo::set_number): New functions.
16715         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16716         (token::process, token::description, token::get_char,
16717         token::add_to_node_list, token::operator==): Handle
16718         TOKEN_NUMBERED_CHAR.
16719         * troff/charinfo.h: Declare get_charinfo_by_number,
16720         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16721         charinfo class.
16722         (charinfo::numbered): New function.
16723         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16724         * troff/env.h (class environment): Remove declaration of ...
16725         * troff/env.c (environment::make_numbered_char_node): Deleted.
16726         * troff/node.c (make_numbered_node): Deleted.
16727         (class numbered_glyph_node): Remove.
16728         (troff_output_file::put_char_width, troff_output_file::put_char):
16729         Handle numbered chars.
16730         (troff_output_file::numbered_char): Removed.
16731         (tfont::get_code_width): Removed.
16732         (make_glyph_node): Don't search special fonts for numbered
16733         characters.
16734         * troff/node.h: Remove declaration of make_numbered_node.
16735         * driver/input.c (do_file): Handle N command.
16736         * driver/printer.h: Add declaration of ...
16737         * driver/printer.c (printer::set_numbered_char): New function.
16738         * dvi/tfmtodit.c (main): Generate unnamed entries.
16739         * ps/devps/afmtodit: Likewise.
16740         * xditview/xtotroff.c (MapFont): Likewise.
16741         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16743         * tbl/main.c (process_format): If multiple widths are specified
16744         for a column but all the widths are the same, don't give an error
16745         message.
16747         * tbl/table.c (table::do_row): If the current row is all lines and
16748         the stuff doesn't contains a line, mark the top of the row after
16749         printing stuff before the row.  If the current row is not all
16750         lines and the stuff doesn't contain a line, don't unnecessarily
16751         mark the top of the row before printing the stuff.
16752         
16753 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16755         * troff/groff.h: Remove MAX_PATH.
16756         * troff/input.c (open_file): Dynamically allocate space for the
16757         path.
16758         (open_mac_file, process_macro_file): Corresponding changes.
16760 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16762         * troff/node.h (class output_file): Make copy_file pure.  Add
16763         vspace method ifdef COLUMN. Add is_printing method.
16764         * troff/node.c: Add class printing_reg. Add class
16765         real_output_file. Derive other output_file classes from
16766         real_output_file; in these classes rename begin_page to
16767         really_begin_page, print_line to really_print_line, copy_file to
16768         really_copy_file, transparent_char to really_transparent_char.
16769         Move output_file::flush to real_output_file. Add printing member
16770         to class output_file.
16771         * troff/div.h: Remove printing member from top_level_diversion.
16772         Add vspace member function to class diversion ifdef COLUMN. Add
16773         some declarations ifdef COLUMN.
16774         * troff/div.c (top_level_diversion::copy_file,
16775         top_level_diversion::transparent_output,
16776         top_level_diversion::output): Don't test printing member before
16777         output.
16778         * troff/input.c: Handle initial variable_space_request ifdef
16779         COLUMN.
16780         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16781         but comment it out.
16783 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16785         * troff/div.c (diversion::need): Make any space forced.  If we
16786         sprung a trap, set truncated_space to minus the distance to the
16787         trap and set needed_space to the amount that was needed.
16788         (top_level_diversion::space): A forced space turns no_space_mode
16789         off.
16790         (class constant_vunits_reg): New class.
16791         (init_div_requests): Implement number registers .trunc and .ne
16792         using constant_vunits_reg.
16793         (class truncated_space_reg): Deleted.   
16795         * troff/div.h: Don't have a no_space_mode member in diversion.
16796         Instead have it in top_level_diversion.
16797         * troff/div.c (diversion::diversion): Don't initialize
16798         no_space_mode.
16799         (top_level_diversion::top_level_diversion): Initialize
16800         no_space_mode.
16801         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16802         (macro_diversion::output): Don't clear no_space_mode.
16804         * troff/input.c (diverted_space_node::reread): Don't call
16805         environment::do_break.  In fill mode, act like a blank line.
16806         (diverted_copy_file_node::reread): Don't call
16807         environment::do_break.
16809         * troff/div.c (blank_line): New function.
16810         * troff/div.h: Declare it.
16811         * troff/input.c (process_input_stack): Call it.
16813         * troff/div.c (truncated_space_reg::get_string): New function.
16814         (init_div_requests): Bind to .trunc.
16815         (space_request, top_level_diversion::space,
16816         top_level_diversion::output, macro_diversion::space,
16817         macro_diversion::output): Update truncated_space.
16818         (macro_diversion::output): Redo calculations when trap sprung.
16819         (macro_diversion::output, macro_diversion::space): No need for
16820         trap_flag.
16822         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16823         after truncating post line spacing.
16825 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16827         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16828         defined as a procedure rather than as an operator.
16830 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16832         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16834 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16836         * troff/div.c (top_level_diversion::output): Merge
16837         output_file::print_line and output_file::end_of_line member
16838         functions.
16839         * troff/div.h (class output_file):
16840         * troff/node.c (troff_output_file::print_line,
16841         troff_output_file::end_of_line, output_file::end_of_line,
16842         ascii_output_file::print_line, suppress_output_file::print_line):
16843         Corresponding changes.  
16845 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16847         * troff/input.c (token::next): Don't give a warning for `\.'.
16849         * troff/env.c (environment::get_center_lines): New function.
16850         (init_env_requests): Bind number register .ce to it.
16851         * troff/env.h: Declare it.
16852         * tbl/table.c (table::init_output): Define reset macro to restore
16853         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16854         Then do .ce 0.
16855         (table::print): If center option not given, then imply center
16856         option if SAVED_CENTER_REG > 0.
16858 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16860         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16861         Troff.ps from DOWNLOAD.
16862         
16863         * troff/Makefile: Change comment in DEFINES to avoid confusing
16864         System V make.
16866         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16867         code.  Don't try to catch errors with stopped.
16868         (check_line_lengths): New function.
16869         * ps/devps/prologue (EXEC): Deleted.
16870         (EBEGIN, EEND): New procedures.
16872 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16874         * troff/input.c: Include request.h before node.h.
16875         * troff/node.c: Likewise.
16876         * troff/env.c: Likewise.
16877         * troff/div.c: Likewise.
16878         * troff/node.h (class special_node): Store argument as a macro
16879         rather than a char *.
16880         * troff/node.c (special_node::special_node, special_node::copy):
16881         Grok this.
16882         (special_node::~special_node): Deleted.
16883         (special_node::tprint): Deleted.
16884         (special_node::tprint_start, special_node::tprint_end,
16885         special_node::tprint_char): New functions.
16886         (troff_output_file::special): Deleted.
16887         (troff_output_file::start_special, troff_output_file::end_special,
16888         troff_output_file::special_char): New functions.
16889         * troff/input.c (special_node::tprint): New function.
16890         (do_special): Use macro not char *.
16891         (do_transparent_macro): Deleted.
16892         (token::next): Don't call do_transparent_macro.
16894         * troff/input.c (token::next): Add 'Y' case.
16895         (do_transparent_macro): New function.
16896         * troff/node.c (troff_output_file::special): Handle newlines with
16897         argument using new continuation convention.
16898         * driver/input.c (get_string): Cope with continuation convention.
16899         (do_file): Don't call skip_line after calling get_string(1).
16900         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16901         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16902         arg.
16903         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16904         with +.
16906 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16908         * troff/input.c (asciify): By default, illegal input characters
16909         should return empty string.
16911         * troff/input.c (copy_file): Handle first page transition like title.
16912         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16914         * troff/input.c (token::next): Improve error message for EOF after
16915         escape character.
16916         (input_char_description): New function.
16917         (get_char_for_escape_name): Use input_char_description.
16918         (token::next): Warn about unrecognized escape sequences.
16919         (warning_table): Add WARN_ESCAPE.
16920         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16921         accordingly.
16923         * troff/token.h: Remove declaration of process_input_stack.
16925         * troff/input.c: Remove declaration of init_hyphen_requests.
16926         * troff/request.h: Correct spelling in declaration of same.
16928         * troff/input.c (token::next): Check whether escape_char is 0.
16930 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16932         * groff.c (main, usage, help): Implement -P and -L options.
16933         * groff.sh: Likewise.
16935         * troff/input.c (token::next): Use some gotos to avoid code
16936         duplication.
16938         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16939         Avoid calling symbol::symbol if name empty.
16941 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16943         * troff/input.c (init_input_requests): Make \n(.x return the major
16944         version number and \n(.y return the minor version number.
16945         * troff/Makefile: Construct file majorminor.c defining
16946         major_version and minor_version automatically from ../VERSION.
16948         * troff/node.c (class glyph_node): Make operator new and operator
16949         delete public.
16950         (class ligature_node): Similarily.
16952         * troff/input.c (operator==(const macro &, const macro &)): New
16953         function.
16954         (non_interpreted_node::same): Use this.
16955         (string_iterator::string_iterator): Make macro& argument const.
16957         * troff/input.c (input_iterator::get): New function. Don't make
16958         asciify_macro or class non_interpreted_node friends of class
16959         input_iterator.
16960         (non_interpreted_node::interpret): Use input_iterator::get.
16961         (asciify_macro): Likewise.
16963         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16964         ~non_interpreted_node): Deleted.
16965         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16966         Deleted.
16968         * troff/symbol.h: Make all symbol member functions const.
16970         * lib/strtol.c: New file.
16971         * lib/Makefile: Add strtol.c.
16972         * Makefile: Define STRTOL as strtol.o to include strtol in
16973         libgroff.a.
16975 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16977         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16979 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16981         * troff/input.c (do_special): Use input_level.
16983         * troff/token.h (TOKEN_BACKSPACE): New token.
16984         (token::backspace): New function.
16985         * troff/input.c (token::description, token::next, token::process):
16986         Grok TOKEN_BACKSPACE.
16987         (do_special): Turn TOKEN_BACKSPACE back into \b.
16989         * troff/token.h (token::leader): New function.
16990         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16992         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16994         * troff/input.c (do_special): Use token::description in error
16995         message.
16997 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16999         * troff/input.c (decode_args): Combine quoted and
17000         quote_input_level variables. Make it a for (;;) loop.
17002         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17004         * troff/input.c (read_long_escape_name): The test for whether to
17005         expand buffer was off by 1.
17006         (read_string): Similarily.
17008 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17010         * troff/input.c: Use `const int' rather than `static const int'.
17012         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17013         (macro_diversion::copy_file): New function.
17014         * troff/node.h: New class diverted_copy_file_node.
17015         * troff/node.c: Implement it.
17016         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17017         first page transition by pushing a diverted_copy_file_node.
17018         * troff/input.c (token::next, process_input_stack): Don't handle
17019         COPY_FILE_REQUEST.
17021 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17023         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17024         whether space widths need adjusting.
17026         * troff/charinfo.h: Generalize translated_to_space to
17027         special_translation so as to allow translation to \&.
17028         * troff/input.c (translate): Allow translation to \&.
17029         (charinfo::*): Corresponding changes.
17030         * troff/node.c (make_node, node::add_char): Corresponding changes.
17031         * troff/node.h (dummy_node::dummy_node): Allow optional first
17032         argument.
17034         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17035         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17036         TOKEN_REQUEST.
17037         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17038         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17039         (token::process): Grok that.
17040         * troff/input.c (copy_file): Handle first page transition like
17041         title by pushing a COPY_FILE_REQUEST cookie.
17042         (token::next, process_input_stack): Grok that.
17043         * troff/node.h (output_file::copy_file): Add x and y arguments.
17044         Make it non-pure.
17045         * troff/div.c (top_level_diversion::copy_file): Supply them.
17046         * troff/node.c (troff_output_file::copy_file): Add x and y
17047         arguments; moveto specified position.  Invalidate font_position
17048         array after copying file.
17049         (output_file::copy_file): New function.
17050         (suppressed_output_file::copy_file, ascii_output::copy_file):
17051         Removed.
17052         * troff/input.c (transparent_file): New function.
17053         (init_input_requests): Bind to "trf".
17054         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17055         (process_input_stack): Likewise.
17057         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17059         * troff/node.c (init_node_requests): New number registers .kern
17060         pointing to global_kern_mode, and .lg pointing to
17061         global_ligature_mode.
17063         * troff/node.c (ligature): Don't change it if we get a bad
17064         integer.
17066         * troff/input.c (do_define_string): Don't strip tabs.
17068         * troff/input.c (asciify_macro): Make the string_iterator auto.
17070         * troff/node.c (init_font_requests): Rename to...
17071         (init_node_requests):
17072         * troff/node.h: Change declaration.
17073         * troff/input.c (main): Change call.
17075         * troff/input.c (node::reread, diverted_space_node::reread): New
17076         methods.
17077         (process_input_stack): Call reread rather than
17078         get_diverted_space_node.
17079         * troff/node.c (node::get_diverted_space_node,
17080         diverted_space_node::get_diverted_space_node): Removed.
17081         * troff/node.h: Declare reread methods instead of
17082         get_diverted_space_node methods. Make `n' member private.
17083         * troff/input.c: (token::diverted_space): Removed.
17084         * troff/token.h: Removed declaration.
17085         
17087 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17089         * eqn/script.c (script_box::compute_metrics): Don't let
17090         SUP_RAISE_FORMAT become negative.
17092         * tbl/table.c (table::do_row): Entries that don't end in the
17093         this row shouldn't make the row non-blank.
17094         
17095         * tbl/table.c (table::make_columns_equal): Only set the width of
17096         columns which are marked as equal.
17097         
17098         * tbl/main.c (process_data): Before issuing excess data error,
17099         if last character was a newline unget it; then get it again after
17100         the error.  Also include the contents of the entry in the message.
17102         * groff.c: New file.
17103         * Makefile: Build groff from groff.c.  Make it possible to use
17104         either groff.sh or groff.c as groff.
17105         * Makefile.bd: Similarily.
17107 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17109         * groff.sh: Don't delay expansion of $@ in assignment to files.
17110         Remove occurrences of \".
17112 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17114         * all Makefiles: Simplify and rearrange.
17116         * Makefile: Handle fmod like malloc.
17117         * lib/Makefile: Similarily.
17118         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17120         * Makefile: Rename OPTIMISE to OPTIMIZE.
17122         * groff.sh: Remove assignment to PATH.
17123         * Makefile: Remove SHPATH variable.
17124         * Makefile.bd: Similarily.
17126         * groff.sh: Add -V option to print the pipeline instead of
17127         executing it.
17129 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17131         * lib/font.c: Split off file searching into ...
17132         * lib/fontfile.c: New file.
17134         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17136 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17138         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17139         Also change misleading comment.
17140         (table::do_vspan): Change similarily misleading comment.
17141         * tbl/main.c (process_data): A format row with an explicit `s'
17142         uses up a data line, even if all the other columns are `_' or `='.
17144         * troff/input.c (token::description): Fix description of
17145         TOKEN_DUMMY and TOKEN_EMPTY.
17147 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17149         * groff.sh: Fix description of -Z in help message.
17151 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17153         * pic/object.c (object_spec::make_object): Allow negative and zero
17154         line thicknesses.
17155         * pic/pic.y: Give linethick default value of -1.0.
17156         * pic/troff.c (troff_output::troff_output): Initialize
17157         last_line_thickness to BAD_THICKNESS.
17158         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17159         (troff_output::line_thickness): Canonicalize negative thicknesses
17160         to RELATIVE_THICKNESS.
17161         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17162         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17163         to -1.0.
17164         (tex_output::start_picture): Set pen_size to -2.0.
17166         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17167         0, then use 0 linewidth.
17168         (ps_printer::ps_printer): Initialize line_thickness to -1.
17170         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17172         * ps/devps/symbolchars: Remove `or'.
17173         * ps/tmac.ps: Implement \(or with .char.
17175         * ps/devps/symbolchars: Move most characters into textmap.
17176         * ps/devps/textmap: Add names for troff bracket characters. Remove
17177         ul, ru, br, bv.
17179         * ps/devps/TSymbol.ps: Removed.
17180         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17181         * ps/tmac.ps: Do with .char what TSymbol did.
17182         * ps/devps/download: Remove TSymbol.
17184         * ps/devps/T: Removed.
17185         * ps/devps/Troff.ps: Removed.
17186         * ps/devps/Troff.afm: Removed.
17187         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17188         * ps/devps/download: Remove Troff.
17189         * ps/devps/FontMakefile: Remove T target.
17190         * ps/devps/DESC-A4: Remove T from font list.
17191         * ps/devps/DESC-letter: Likewise.
17193         * troff/input.c (macro_to_node): Rename to ...
17194         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17195         character's definition while processing it.
17196         * troff/node.c (node::add_char, make_node): Change calls to
17197         macro_to_node accordingly.
17199         * troff/input.c (token::next): Translate \_ to \(ul.
17201         * tty/devascii/R.proto: Add `|'.
17202         * tty/devlatin1/R.proto: Likewise.
17204 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17206         * man: Put the version number in all the man pages.
17208 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17210         * Makefile.bd: New file.
17211         * README.bd: New file.
17213         * VERSION: New file.
17214         * lib/version.c: Removed.
17215         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17216         in clean target.
17218         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17219         environment variable.
17221         * all Makefiles: Split install target into install.bin for
17222         binaries, and install.nobin for everything else.
17223         * Makefile: Add bindist target.
17225         * man/afmtodit.man: New file.
17226         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17227         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17228         in BINDIR.
17229         * ps/Makefile: Pass BINDIR to make install in devps.
17231         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17232         the space character.
17234         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17236 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17238         * ps/ps.c: Redo font downloading.
17239         * ps/devps/download: New file.
17240         * ps/devps/Makefile: Add download to DEVICEFILES.
17241         * ps/devps/afmtodit: Remove -d option.
17242         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17243         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17244         * ps/devps/zapfdr.ps: Likewise.
17245         * ps/devps/TSymbol.ps: Likewise.
17247 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17249         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17251 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17253         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17254         then strip the first line if it starts with %.
17255         * Makefile: Add a comment about this.
17257         * man/tfmtodit.man: New file.
17258         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17259         * dvi/Makefile: Install tfmtodit in BINDIR.
17261         * dvi/tfmtodit.c (usage): Mention -v option.
17263 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17265         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17266         * troff/node.c (troff_output_file::transparent_char): Don't call
17267         flush_tbuf.
17269         * eqn: Add check_tabs method to most box classes.
17270         * eqn/box.c (box::top_level): Call check_tabs.
17272         * eqn/script.c (script_box::output): Use \Z.
17273         * eqn/limit.c (limit_box::output): Use \Z.
17275         * eqn/box.c (box::top_level): Use itoa.
17277 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17279         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17280         * dvi/devdvi/Makefile: Don't make links to CW.
17282         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17283         HX, HD.
17284         * xditview/tmac.X: Likewise.
17286         * troff/node.c: Add font translation feature.
17287         (get_font_translation): New function.
17288         (symbol_fontno): Translate the font name.
17289         (mount_font_no_translate): Rename to mount_font to this.
17290         (mount_font): New function.
17291         (font_family::make_definite): Call mount_font_no_translate instead
17292         of mount_font.
17293         (mount_style): Translate the font name.
17294         (font_translate): New function.
17295         (init_font_requests): Bind "ftr" to font_translate.
17297         * ps/devps/prologue (SN): New procedure that rounds a position to
17298         the nearest (pixel + (.25,.25)).
17299         (DL): Use SN to round endpoints.
17301         * lib/version.c: Changed version to 0.5.
17303 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17305         * Makefile: Move definition of PAGE to the very beginning, so that
17306         people are less likely to miss it.
17308 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17310         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17312         * troff/env.c (environment::choose_breakpoint): Make `can't find
17313         breakpoint' error a warning of type WARN_BREAK.  Change message to
17314         `can't break line'.
17315         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17316         code 040000.
17317         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17318         WARN_BREAK in DEFAULT_WARNING_MASK.
17320         * tty/tmac.tty: Add definition of \(+-.
17322         * groff.sh: Remove `--' option to set command.
17324         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17326         * ps/devps/eqnchar: Better definition of cdot using md.
17327         * dvi/devdvi/eqnchar:  Likewise.
17328         * xditview/devX100/eqnchar:  Likewise.
17329         * xditview/devX75/eqnchar: Likewise.
17330         * eqn/lex.c: Add definition of cdot.
17332 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17334         * troff/input.c (get_optional_char): New function.
17335         * troff/input.c (set_page_character): Use get_optional_char(),
17336         rather than has_arg() and tok.get_char(1).
17337         * troff/env.c (tab_character, leader_character, hyphen_char,
17338         field_characters): Likewise.
17339         (margin_character): Likewise.  Also always delete the
17340         margin_character_node.
17342         * troff/input.c (token::get_char): Use token::description.
17344         * troff/input.c (has_arg): Don't skip over tab and \}.
17345         * troff/number.c (start_number): Give a warning if the number
17346         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17348 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17350         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17351         functions.
17352         (get_name, get_long_name): Use these.  Rename `warn' argument to
17353         `required'.
17355         * troff/node.c (get_fontno): Test that the symbol is not null.
17357         * troff/input.c (token::description): New function.
17358         * troff/number.c (parse_term): Use token::description in `numeric
17359         expression expected' message.
17360         * troff/groff.h: Add WARN_MISSING.
17361         * troff/number.c (start_number): New function.
17362         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17363         get_incr_number): Use start_number().
17364         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17365         default.
17366         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17367         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17368         token::descripion.
17369         * troff/input.c (token::get_char): Use WARN_MISSING.
17370         * troff/input.c (token::delimiter): Use token::description.
17371         * troff/env.c (environment_switch): Back out Aug 3 change.
17372         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17373         warning.
17374         * troff/token.h (token::tab): New function.
17375         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17376         * troff/reg.c (alter_format): Likewise.
17377         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17379 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17381         * troff (most files): Redo warnings. Divide warnings into various
17382         categories; warning() has an additional first argument indicating
17383         the category it falls into.
17384         * troff/input.c (main): -w now takes an argument. New option -W.
17385         (enable_warning, disable_warning): New functions.
17387         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17388         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17390 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17392         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17393         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17394         * xditview/devX75/eqnchar: Likewise.
17395         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17397         * eqn/other.c: When bar or over applies to a single character
17398         don't produce an overline_box or an underline_box. Instead produce
17399         an accent_box or an underaccent_box, with the accent a line
17400         whose width is accent_width.  New classes underaccent_box,
17401         overline_char_box and underline_char_box.
17402         * eqn/box.h: Move overline_box, underline_box, accent_box class
17403         declarations into eqn/other.c. Add declarations of
17404         make_underline_box, make_overline_box, make_accent_box.
17405         * eqn/eqn.y: Call make_overline_box, make_underline_box
17406         make_accent_box instead of constructors.
17407         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17409         * eqn/other.c: Add accent_box::~accent_box.
17410         * eqn/box.h: Declare it.
17412         * groff.sh: With -Tps, use eqn -D.
17414         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17415         rather than \l.
17416         (underline_box::output): Similarily.
17417         (accent_box::output): Use \Z.
17419         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17420         bit smaller.)
17422 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17424         * troff/div.c (top_level_diversion::transparent_output(unsigned
17425         char)): Use asciify.
17426         * troff/input.c (asciify): Don't make it static.
17427         * troff/token.h (asciify): Declare it.
17428         
17429         * troff/input.c (get_name, get_long_name, token::get_char,
17430         token::delimiter): Add an extra default argument which says
17431         whether a warning should be printed.
17432         * troff: Pass a non-zero argument to one of these rather than
17433         printing a warning directly.
17435 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17437         * troff: Consistently use symbol::is_null.
17439         * troff/dictionary.h: Move some inline functions into
17440         dictionary.c.
17442         * troff/request.h: Move inline functions into input.c.
17443         (request_or_macro::invoke): Make it pure.
17445         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17446         * troff/input.c (init_input_requests): Use class constant_int_reg.
17447         (class compatible_reg): Deleted.
17448         * troff/div.c (init_div_requests): Use class constant_int_reg.
17449         (class last_post_line_extra_space_reg): Deleted.
17451         * troff/env.c (tab_character): Don't change the tab character if
17452         we get an invalid argument.
17453         (hyphen_char): Similarily.
17455         * troff/reg.c (alter_format): Check that nm is not null.
17457         * Makefile, groff.sh: Make it possible to customize the commands
17458         used for printing PostScript and dvi files. Also make it possible
17459         to customize the path used by groff.sh.
17461         * eqn/eqn.y: Make `left' right associative.
17463 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17465         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17466         don't have it.
17468         * pic/pic.h: Removed definition of INT_MAX.
17470         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17471         `return'.
17473         * troff/input.c (token::next):  Handle \R like \n.
17475 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17477         * ps/tmac.pc (PSPIC): Simplify.
17479         * troff/env.c (tab_stops::to_string):
17480         * pic/pic.y (object_type_name):
17481         * pic/troff.c (simple_output::line):
17482         * pic/tex.c (tex_output::spline):
17483         * pic/object.c (object_spec::make_object):
17484         * tbl/main.c (process_data):  Add cases to switch statements to
17485         avoid cfront warnings. (Some of these are spurious, since the
17486         switch already has a default case.)
17488         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17489         `ps-'.  Don't test systat; instead check number of arguments to
17490         ps-bb.
17492 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17494         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17496         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17497         Unlink the file as soon as we have opened it, so that we don't
17498         have to bother with signal handlers.
17499         (handler): Deleted.
17500         (fatal_error_exit): Deleted.
17501         (main): Don't call signal.
17503         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17504         can be ignored.
17505         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17507         * pic/pic.y:  If there is a label, or an nth construction before
17508         the first `.' in the argument to `with', ignore it and generate a
17509         warning.
17510         * pic/lex.c (lex_warning): New function.
17512         * tbl/table.c (table::init_output): In section keep and release
17513         macro, use 0 indent when diverting and the correct indent when
17514         rereading.
17516         * troff/input.c (interpolate_number_format): Do not interpolate
17517         anything if the number register is not defined.
17519         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17521 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17523         * ps/devps/prologue (PICTURE): Set components of graphics state to
17524         their default values.
17526         * ps/devps/text.enc: Add trademark
17527         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17528         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17529         * ps/devps/symbolchars: Add names for summation and product.
17531         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17532         suchthat. Add pp. Add upper-case letters.
17534         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17535         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17536         Upsilon.
17538         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17539         rA (right angle bracket) to ra.  Introduce names for double-headed
17540         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17541         * ps/devps/textmap: Likewise for ps device.
17542         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17543         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17544         * tty/devascii/R.proto: Likewise.
17545         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17546         \(uA, \(dA.
17547         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17549         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17551         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17552         def_table.
17554 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17556         * troff/div.c (when_request): Use symbol::is_null rather than
17557         has_arg to determine whether we have an argument.
17558         (change_trap): Remove the trap if we get an invalid number. Give
17559         an error if we don't get at least the macro name.
17560         (diversion_trap): Remove trap if we get an invalid name or number.
17562         * troff/env.c (environment_switch): Pop if we get an invalid
17563         symbol or numeric expression.
17565         * troff/input.c (do_define_macro):  If EOF is encoutered while
17566         defining the macro, do tok.next() before returning.
17568         * troff/token.h (has_arg): Move definition from here, to ...
17569         * troff/input.c (has_arg): ... here
17571         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17572         * troff/input.c (shift): Likewise.
17574         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17575         for `.c'.
17577         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17578         `..'.
17580         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17581         interpret_lf_args succeeds.
17583         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17584         \\.  This avoids problems with \$N.
17586         * groff.sh: Pass -C to preprocessors.
17588         * lib/lf.c (interpret_lf_args):  Be more flexible.
17590         * tbl/main.c (main): Add -C option.
17591         (table_input::get): Do not recognize TE if followed by character
17592         other than a space or newline unless -C option given.
17593         (process_input_file): Likewise for lf, TS.
17594         (process_data): Likewise for lf in text blocks.
17596         * eqn/main.c (main): Add -C option.
17597         (do_file): Don't recognize EQ, EN or lf if followed by character
17598         other than space or newline unless -C option given.
17599         * eqn/lex.c (file_input::read_line): Similarily.
17600         * eqn/eqn.h: Declare compatible_flag.
17602         * etc/soelim.c (main): Add -C option.
17603         (interpret_lf_args): Use version in libgroff.
17604         (do_file):
17606         * pic/main.c (main): Add -C option, which sets compatible_flag.
17607         (top_input::get), (top_input::peek):  If -C option not given,
17608         do not recognize .PS/.PE/.PF/.lf if followed by a character
17609         other than space or newline.
17610         * pic/lex.c (file_input::read_line): Similarily.
17611         * pic/pic.h: Add declaration of compatible_flag.
17613 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17615         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17617         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17618         derived from node.  New class space_char_hmotion_node.
17619         * troff/input.c (asciify_macro): New function.
17620         * troff/input.c (init_input_requests): New request `asciify' bound
17621         to asciify_macro.
17622         * macros/mm.diff: New file.
17623         * Makefile:  In install.mm target use `patch' to apply
17624         macros/mm.diff.
17626         * troff/input.c (macro::print_size): Just print the size in bytes.
17628         * troff/div.c (return_request): Correct the argument
17629         interpretation.
17631 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17633         * troff/node.h (class composite_node): Add sz member.
17634         * troff/node.c (composite_node::size): Return sz.
17635         * troff/input.c (macro_to_node):  Use the initial size in the
17636         environment as the size of the composite_node.
17638         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17639         default.
17641 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17643         * troff/div.c (change_trap): If we get a bad number expression,
17644         do nothing.
17646 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17648         * lib/matherr.c (matherr): Define this only if math.h defines
17649         TLOSS.
17651 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17653         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17654         no diversion trap return vunits(INT_MAX - vresolution).
17656 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17658         * troff/input.c (do_zero_width): New implementation that doesn't
17659         use a temporary environment. Use instead:
17660         (token::add_to_node_list): New function.
17661         * troff/env.c (environment::get_prev_char_height),
17662         (environment::get_prev_char_height),
17663         (environment::get_prev_char_skew): New functions.
17664         (environment::get_prev_char): New function.
17665         (environment::get_prev_char_width): Change to use get_prev_char.
17666         (init_env_request): Implement new registers .cht, .cdp, .csk.
17667         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17668         \Z being processed in a separate environment.
17670 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17672         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17674         * tbl/table.c (table::init_output): In the section release macro,
17675         give a warning message if the section won't fit on one page.
17677         * tbl/table.c (table::do_top): Emit table keep only if table is
17678         boxed.
17679         (table::do_bottom): Likewise for table release.
17680         (table::table), (table::add_vertical_rule):  Remove reference to
17681         keep member.
17682         * tbl/table.h: Remove keep member.
17684         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17685         SECTION_RELEASE_MACRO, if there's not enough space before the next
17686         trap to output the diversion, call T# ourselves, set
17687         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17688         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17689         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17690         vertical position and return to it before turning traps on again.
17691         
17692 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17694         * troff/node.c, troff/node.h: In classes derived from node,
17695         replace prev_char_width method by last_char_node method.
17696         * troff/env.c (environment::get_prev_char_width): Use
17697         node::last_char_node rather than node::get_prev_char_width.
17699         * Makefile: Added comment about -fno-inline on 68030-based
17700         Apollos.
17702         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17703         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17704         expressions using sizeof to int.
17705         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17707         * macros/tmac.e (TS):  Don't move @f back past the current
17708         position.
17710 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17712         * ps/ps.c (main): Buffer stderr.
17713         * dvi/dvi.c (main): Likewise.
17714         * tty/tty.c (main): Likewise.
17716         * ps/ps.c (ps_printer::do_import): Improve error handling.
17718         * troff/input.c (abort_request): Use asciify.
17720         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17721         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17722         type of first argument int rather than char.  This works around a
17723         bug on the 68030 based Apollo using g++ 1.37.1.
17725         * tbl/table.h (class table): Add `keep' member.
17726         * tbl/table.c (table::table): Initialize `keep'.
17727         (table::add_vertical_rule): Set `keep' to 1.
17728         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17729         (table::do_bottom): Likewise for table release macro.
17730         (table::do_row): Emit section keep macro even if the row is 0.
17732 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17734         * macros/tmac.e (@C): Preserve the font family across the change
17735         in environments.
17737 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17739         * lib/font.c: Initialize font::hor and font::vert to 1.
17740         (font::load_desc): Check the values of font::hor and font::vert.
17742         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17743         be included in a C compilation.
17744         (iftoa): Use INT_DIGITS. Include lib.h.
17745         (itoa): Likewise.
17746         (as_string): Likewise.
17747         * tbl/table.c: Removed definition of INT_DIGITS.
17748         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17749         * troff/input.c (input_input_requests): Likewise.
17750         * ps/ps.c (make_encoding_name): Likewise.
17751         (ps_printer::set_style): Likewise.
17752         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17754         * tty/devascii/R.proto: Map fm onto '.
17755         * tty/devlatin1/R.proto: Likewise.
17757 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17759         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17760         argument to \w is at a different input level.
17762         * tbl/table.c (table::init_output): Define a new macro
17763         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17764         transparently outputs itself.
17765         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17766         vpt.
17767         (table::do_row): Likewise.
17769         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17770         TRANSPARENT_STRING_NAME.
17772         * tbl/table.c (table::init_output): In the table release macro
17773         print an error message and don't produce any output if after
17774         issuing the need request the table still will not fit.  Also
17775         remove the diversion after bringing it back.
17777         * tbl/table.c (table::init_output): Define a new macro
17778         REPEATED_MARK_MACRO, like mk but if in a diversion also
17779         transparently outputs itself.
17780         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17781         is necessary because .TH might not call .T#.
17782         (table::do_top): Likewise TOP_REG.
17783         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17784         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17785         table header might contain just the two top rules.
17787 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17789         * troff/div.c: Implement new request `ptr' to print all traps.
17791         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17792         init_string_env_reg.
17793         * troff/env.c (class tab_reg): Deleted.
17795 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17797         * troff/div.c: New number register .pn returns the number of the
17798         next page as set by the pn request.
17800         * macros/tmac.an: Redid headers and footers.  Number each manual
17801         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17802         optional 5th argument to .TH which specifies the manual name and
17803         appears in the center of the header.  Understand the X, P and D
17804         registers like Sun.
17806 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17808         * troff/env.c (init_env_requests): New number register `.lt' to
17809         return the title length.
17811         * troff/node.h (class transparent_dummy_node): New class.
17812         * troff/node.c (class transparent_dummy_node): Provide member
17813         functions. 
17814         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17815         than a dummy_node.
17817         * troff/input.c (token::next): New escape sequence \).
17818         * troff/input.c (get_copy): Recognize \) in copy mode.
17820         * troff/input.c (input_stack::clear): New function.
17821         * troff/input.c (exit_request): Use input_stack::clear.
17823         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17824         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17826         * troff/env.c: Move set_page_character to input.c.  Move
17827         page_character to input.c also.
17828         * troff/env.c (title): Split off the reading of the parts of the
17829         title into read_title_parts.
17830         * troff/input.c (read_title_parts): New function.  Check the
17831         input_level when testing whether a token matches the delimiter.
17833         * troff/input.c (exit_request): New function.
17834         * troff/input.c (init_input_requests): Bind ex request to
17835         exit_request rather than exit_groff.
17837         * troff/input.c (exit_groff): Call tok.next() before
17838         process_input_stack().
17840 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17842         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17843         * troff/env.h: ditto.
17844         * troff/input.c: ditto.
17846         * troff/env.c (environment::is_empty): Test pending_lines.
17848         * troff/env.c (environment::have_pending_lines): Removed.
17850         * troff/input.c: Add request to flush pending lines from the
17851         environment.
17853         * troff/env.c, troff/env.h: Add automatic widow control feature.
17855         * troff/input.c (exit_groff):  Do process_input_stack() after
17856         do_break() but before setting exit_flag to 2.
17858         * troff/input.c: Remove FLUSH_PENDING_LINES and
17859         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17860         environment after END_TRAP token seen, but only if there aren't
17861         any more traps still unfinished.
17862         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17864 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17866         * troff/env.c: Rename the `retain_size' member of class
17867         pending_output_line to `no_fill'.
17869         * troff/env.c (title): When the line is output, make the
17870         retain_size argument !fill.
17872         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17873         * troff/node.c (space_node::get_breakpoints),
17874         (dbreak_node::get_breakpoints):  Fill this in.
17875         * troff/env.c:  Allow specification of maximum number of
17876         consecutive hyphenated lines.
17878         * troff/env.c (environment::is_empty): Add test for !current_tab.
17880 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17882         * troff/env.c (environment::hyphenate_line): Don't completely give
17883         up if the word is not to be hyphenated; continue so that breaks
17884         can be made at break_char_node's.
17886         * lib/lib.h: Only define INT_MAX if it's not already defined;
17887         undef INT_MIN if it's already defined.
17889         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17891         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17892         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17893         compiler.
17894         
17895         * macros/tmac.an (an-header): Set no-space mode.
17897         * macros/tmac.an (TH): Start a new page if necessary.
17899         * Started using ChangeLog at version 0.4.
17901 Local Variables:
17902 version-control: never
17903 coding: latin-1
17904 End: