o Small fixes to elvis_syntax.new (dealing with strings, \{\ and \}
[s-roff.git] / ChangeLog
blob9adb7ab64643e3233cd08e8e4f1e773b888bf20d
1 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
3         Fix a bug with title handling in HTML.
5         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
6         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
7         length.
8         (html_printer::handle_tag_within_title): New function.
9         (html_printer::do_title): Use it.
11         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
12         (cov*tl-au-print): Emit `.eo.tl' tag.
14 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
16         * man/groff_char.man: Minor imrovements.
18 2004-12-04  Werner LEMBERG  <wl@gnu.org>
20         * src/preproc/eqn/eqn.man: Revised.
22 2004-11-25  Werner LEMBERG  <wl@gnu.org>
24         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
25         groff source files.
26         Include config.h.
27         Include limits.h.
28         Remove X_NOT_STDC_ENV conditional.
29         (Version_string, program_name): New global variables.
30         (groff_flag): Removed.
31         (MapFont): Updated.
32         (usage): Take a stream as argument.
33         Use `program_name'.
34         Update all callers.
35         (main): Add `long_options' array for `--help' and `--version'.
36         Make `-g' a dummy option.
37         Handle `-v' and unknown options.
38         Remove unused `position' variable.
40         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
41         (XLIBS): Add LIBGROFF.
43         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
44         New files.
46         * src/devices/xditview/Dvi.c (default_font_map): Split into three
47         parts to avoid compiler warning.
48         (resources): Don't initialize with `default_font_map'.
49         (ClassInitialize): Initialize first element of `resources'.
51         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
52         Removed.
54         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
55         src/utils/pfbtops/pfbtops.man: Revised, updated.
57         * configure.ac: Generate src/utils/xtotroff/Makefile.
58         * configure: Regenerated.
60 2004-11-24  Werner LEMBERG  <wl@gnu.org>
62         First fixes to get produce HTML.
64         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
65         attribute.
67         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
68         (HR, LI): Use `HTML</p>', not `HTML'.
70         * doc/webpage.ms: Minor updates.
72 2004-11-23  Larry Kollar  <kollar@alltel.net>
74         Add option -S grohtml to determine the file split level.
76         * src/devices/grohtml/post-html.cpp (split_level): New global
77         variable.
78         (html_header::determine_header_level): Use split_level.
79         (main): Handle `-S' command line option.
80         Sort options.
82         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
84         * src/devices/grohtml/grohtml.man: Document it.
85         Sort options.
87         * NEWS: Document it.
89 2004-11-23  Y T  <doarhop@hotmail.com>
91         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
92         the volume and number refer entries.
94 2004-11-22  Werner LEMBERG  <wl@gnu.org>
96         * src/devices/grohtml/html-table.cpp
97         (html_table::emit_table_header): Don't emit `cols' attribute which
98         doesn't exist in HTML 4.0 and is thus invalid.
100         * NEWS: More minor fixes and updates.
102 2004-11-18  Werner LEMBERG  <wl@gnu.org>
104         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
105         (HTML</p>): Minor clean-up.
107         * tmac/groff_www.man: Updated.
109         * src/devices/grohtml/grohtml.man: Revised and updated.
111         * NEWS: Updated.
113 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
115         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
116         Fix space insertion.
117         (html_printer::do_links): Fix rules generation around automatic
118         heading links.
120         * tmac/www.tmac (LK): Use HTML-TAG-NS.
121         (HR): Simplify.
122         No longer emit empty line for non-HTML devices.
124 2004-11-17  Werner LEMBERG  <wl@gnu.org>
126         * doc/Makefile.in (prepare_examples, webpage.html): Handle
127         `groff.css'.
129         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
130         prepare_examples, webpage.html): Handle `groff.css'.
132 2004-11-15  Werner LEMBERG  <wl@gnu.org>
134         * NEWS, README, doc/webpage.ms: Updated.
136         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
138 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
140         * src/include/printer.h (printer): Remove virtual function
141         `round_width'.
142         Update all source files.
144         * src/devices/grohtml/post-html.cpp (html_printer): New member
145         function `round_width'.
147 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
149         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
150         column key letter suffix.
152 2004-10-14  Werner LEMBERG  <wl@gnu.org>
154         * Makefile.in (check): Depend on `site.exp' and `docheck'.
155         (docheck): Run dejagnu's `runtest' if it exists.
156         (site.exp): Create dejagnu configuration file.
158         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
160 2004-10-13  Werner LEMBERG  <wl@gnu.org>
162         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
163         src/devices/grohtml/post-html.cpp (make_val,
164         html_printer::handle_state_assertion): Fix compiler warnings.
166         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
167         (diversion::diversion): Fix order of initializers.
169         * src/roff/troff/div.h: Don't include `mtsm.h'.
171         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
172         (environment::environment): Fix order of initializers.
173         (environment::make_tag, environment::construct_format_state): Fix
174         compiler warnings.
176         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
177         (input_iterator::input_iterator, macro::macro): Fix order of
178         initializers.
180         * src/roff/troff/mtsm.cpp: Include only necessary header files.
181         (state_set::add, state_set::val): Fix compiler warnings.
183         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
184         (bool_value_state, int_value_state, units_value_state,
185         string_value_state): Remove comma after last element which causes
186         an error with g++ 3.3.3.
188         * src/roff/troff/node.cpp: Include `stringclass.h'.
189         (hline_node::hline_node, vline_node::vline_node,
190         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
191         warnings.
192         (zero_width_node::zero_width_node): Fix order of initializers.
194         * src/roff/troff/node.h: Don't include `mtsm.h'.
195         (hmotion_node): Fix compiler warnings.
197         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
199 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
201         * doc/groff.css: New file.
203         * doc/webpage.ms: Use `groff.css'.
204         Other small fixes.
206         * tmac/an-old.tmac (need_eo_h): New number register.
207         (TH): Emit `.eo.tl' tag after title.
208         (SH): Set `need_eo_h'.
209         (an-trap): Handle `need_eo_h'.
210         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
212         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
213         (TL): Always start diversion.
214         Updated.
215         (@AI): Always call `par@reset'.
216         (@AB): Update code for -Thtml.
217         (cov*tl-au-print): Handle -Thtml.
218         (par@reset): Handle `need_eo_tl', `need_eo_h'.
219         (@IP): Simplified.
220         (@IT-html): Removed.
221         (@SH): Set `need_eo_h' for -Thtml.
222         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
223         Set `need_eo_tl'.
224         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
225         Set `need_eo_h' for -Thtml.
226         (@EQ, @EN): Don't handle -Thtml specially.
227         (par@load-init): Don't handle -Thtml specially.
229         * tmac/www.tmac (www:paraspace): New macro.
230         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
231         (HTML</p>, HTML-TAG-NEXT): New macros.
232         (HnE): Emit tag `.eo.h' instead of break.
233         (HR): s/HTML-NS/HTML/.
234         (www-end-nowhere): End diversion only if `www-html' not set.
235         Emit `.eo.tl' tag.
236         (ULS, ULE): s|HTML|HTML</p>|.
237         (LI): Call `www:paraspace'.
238         (HEAD): New macro.
240 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
242         * src/roff/troff/request.h (macro): Make `p' public.
243         New variable `is_a_diversion'.
244         New member function `is_diversion'.
247         * src/devices/grohtml/html.h (simple_output): New member function
248         `force_nl'.
250         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
251         computation of `total'.
252         (tabs::check_init): New function.
253         (html_table::emit_table_header): Emit style data.
254         (html_table::insert_column): Improved.
256         * src/devices/grohtml/html-table.h: Updated.
258         * src/devices/grohtml/html-text.cpp (html_text::html_text):
259         Initialize `start_space' with TRUE.
260         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
261         cases.
262         (html_text::flush_text): Set `start_space' flag.
263         (html_text::uses_indent, html_text::remove_para_space,
264         html_text::get_alignment): New functions.
265         (html_text::push_para): Updated.
266         (html_text::do_para): Check for empty argument.
267         Don't set `space_emitted'.
268         (html_text::do_space, html_text::emit_space): Updated.
270         * src/devices/grohtml/html-text.h (tag_definition): New variable
271         `really_issued'.
272         (html_text): New member function `uses_indent', `remove_para_space',
273         `get_alignment'.
275         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
276         function.
277         (simple_output:nl): Always emit `\n'.
279         * src/devices/grohtml/post-html.cpp: Include `string.h'.
280         (BASE_POINT_SIZE): Removed.
281         (base_point_size, head_info): New global variables.
282         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
283         `is_eo_h'.
284         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
285         tags, respectively.
286         (page::add_and_encode): Pass additional parameter for tag flag.
287         (assert_pos): New structure.
288         (assert_state): New class.
289         (html_printer): Remove `indentation', `prev_indent'.
290         Add variables `troff_indent', `device_indent', `temp_indent'.
291         Add variables `seen_indent', `next_indent', `seen_pageoffset',
292         `next_pageoffset', `seen_linelenght', `next_linelength',
293         `seen_center', `next_center', `seen_space', `seen_break', `as'.
294         Add member functions `do_check_center', `do_space', `do_head',
295         `get_troff_indent', `restore_troff_indent', `handle_assertion',
296         `handle_state_assertion', `do_end_para', `set_char_and_width'.
297         Change argument to `do_fill' to `char *'.
298         Update constructor.
299         (html_printer::emit_raw): Call `shutdown_table'.
300         Use new functions.
301         (html_printer::do_center): Simplified.
302         (html_printer::do_title): Improved.
303         (html_printer::write_header): Emit one more newline.
304         Use new functions.
305         (html_printer::do_heading, html_printer::do_indent,
306         html_printer::do_eol, html_printer::do_tab_ts,
307         html_printer::do_tab, html_printer::do_tab0,
308         html_printer::calc_po_in, html_printer::next_horiz_pos,
309         html_printer::remove_courier_tabs,
310         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
311         Updated.
312         (html_printer::do_linelength, html_printer::do_pageoffset,
313         html_printer::do_indentation, html_printer::do_tempindent,
314         html_printer::do_tab_te): Simplified.
315         (html_printer::do_pointsize): Check whether point size is really
316         associated a `.tl' tag.
317         (html_printer::do_break): Rewritten.
318         (html_printer::troff_tag): Improved.
319         (html_printer::flush_globs): Updated.
320         (html_printer::lookahead_for_tables): Handle `is_br'.
321         Use new functions.
322         (html_printer::set_char): Check `sbuf_style.f'.
323         (html_printer::write_navigation): Use string comparison.
324         (html_printer::~html_printer): Emit `head_info'.
325         (html_printer::special): Rewritten.
326         (get_str, make_val): New functions.
327         (main): New option `s' to set the base point size.
329         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
331 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
333         * src/roff/troff/node.cpp: New extern `debug_state'.
334         Include `stringclass.h' and `mtsm.h'.
335         Implement new classes and class members from `node.h'.
336         (real_output_file): Make `fp' public.
337         (troff_output_file): New variables `cur_div_level' and `tag_list'.
338         Update constructors.
339         (troff_output_file::really_print_line): Check whether we should push
340         the current troff state and use the state at the start of the
341         invocation of this diversion.
342         (troff_output_file::add_to_tag_list): New member function.
343         (node::add_char): Handle `glyph_comp_np'.
345         * src/roff/troff/node.h: Include `mtsm.h'.
346         (node): New variables `state', `push_state', `div_nest_level',
347         `is_special'.  Update constructors, all descendants.
348         Pass additional argument to `add_char' member function.
349         New virtual member functions `is_tag', `debug_node',
350         `debug_node_list'.  Update all descendants.
351         (tag_node): New class for handling tags.
352         (output_file): Add variable `state'.
354 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
356         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
357         providing a minimal troff state machine to emit meta tags for the
358         post-grohtml device driver.
360         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
361         files.
363 2004-10-09  Werner LEMBERG  <wl@gnu.org>
365         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
367 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
369         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
371         * src/roff/troff/div.h: Include `mtsm.h'.
372         (diversion): New variables `any_chars_added', `needs_push',
373         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
374         `saved_suppress_next_eol', `modified_tag'.
375         New virtual member function `is_diversion'.  Update all descendants.
377         * src/roff/troff/div.cpp (diversion::diversion,
378         macro_diversion::macro_diversion): Updated.
379         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
380         `suppress_next_eol'.
381         (top_level_diversion::space): Handle `curenv->seen_space'.
382         (page_offset): Update tag handling.
383         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
385         * src/roff/troff/env.h (environment): Make `tabs' public.
386         Remove `ignore_next_eol', `emitted_node'.
387         Update `output_line', `output'.
388         New variables `seen_space', `seen_eol', `suppress_next_eol',
389         `seen_break'.
390         New member functions `construct_state', `make_tag',
391         `construct_format_state, `construct_new_line_state,
392         `dump_troff_state'.
393         Remove `add_html_tag', `make_html_tag'.
395         * src/roff/troff/env.cpp: New externs `suppress_push',
396         `get_diversion_state', `global_diverted_space'.
397         (pending_output_line): New variable `was_centered'.
398         Update constructor and all callers.
399         (pending_output_line::output): Call `curenv->construct_format_state'.
400         (environment::environment, environment::copy): Updated.
401         (environment::output): Handle `was_centered'.
402         (environment::add_char): Handle construct and diversion state.
403         (environment::add_node): Handle construct state.
404         (environment::newline): Handle `was_centered'.
405         (environment::output_line): Updated.
406         (environment::possibly_break_line): Updated.
407         Update tag handling.
408         (environment::add_html_tag): Replaced with...
409         (environment::make_tag): New function.
410         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
411         (environment::dump_troff_state): New debugging function.
412         (environment::construct_state, environment::construct_format_state,
413         environment::construct_new_line_state): New functions.
414         (environment::do_break): Updated.
415         Handle `global_diverted_space'.
416         (environment::handle_tag): Update tag handling.
417         (point_size, fill, do_break_request): Don't call `add_html_tag'.
418         (no_fill): Don't call `add_html_tag'.
419         Set `suppress_next_eol'.
420         (center, right_justify, line_length, indent, temporary_indent,
421         set_tabs):
422         Update tag handling.
424         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
425         (input_iterator): New variables `is_diversion', `diversion_state'.
426         Update constructors.
427         (input_stack): New member functions `get_div_level',
428         `get_diversion_state', `check_end_diversion'.
429         New variables `div_level', `diversion_state'.  Initialize them.
430         (suppress_push, global_diverted_space): New global variables.
431         (input_stack::finish_get, input_stack::finish_peek,
432         input_stack::remove_boundary, input_stack::end_file,
433         input_stack::clear, input_stack::pop_macro): Call
434         `check_end_diversion'.
435         (input_stack::push): Handle `div_level' and `diversion_state'.
436         (get_diversion_state): New function.
437         (diverted_space_node::reread): Handle `global_diverted_space'.
438         (macro::macro): Update constructors.
439         (macro::is_diversion): New function.
440         (macro::operator=): Set `is_a_diversion'.
441         (string_iterator): New member function `is_diversion'.
442         (string_iterator::string_iterator): Update constructors.
443         (string_iterator::fill): Set `div_nest_level'.
444         (macro_iterator): New member function `is_diversion'.
445         (do_if_request): Handle `suppress_push'.
446         (tag, taga): New functions.
447         (init_input_requests): Add `tag' and `taga' requests.
449 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
451         * src/include/font.h (font): New member function
452         `get_image_generator'.
453         New variables `unscaled_charwidths' and `image_generator'.
455         * src/libs/libgroff/font.cpp (font::get_width): Always return the
456         character's unscaled width if `font::unscaled_charwidths' is set.
457         (font::get_image_generator): New function.
458         (font::load_desc): Check the `unscaled_charwidths' and
459         `image_generator' keywords.
461         * src/libs/libgroff/fontfile.cpp: Initialize
462         `font::unscaled_charwidths' and `font::image_generator'.
464         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
466         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
468         * man/groff_font.man: Document `unscaled_charwidths' and
469         `image_generator'.
471         * src/preproc/html/pre-html.cpp: Include `device.h'.
472         (image_gen): New global variable.
473         (imageList::createPage): Use `image_gen'.
474         (main): Use `image_generator' keyword.
476 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
478         * tmac/html.tmac: Handle \[sqrtex].
480 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
482         * src/include/printer.h (printer): New virtual method `round_width'.
484         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
485         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
486         src/devices/grotty/tty.cpp (printer::round_width): New function
487         member.
489         * src/devices/grohtml/post-html.cpp (printer::round_width): New
490         function member.
491         (html_printer::set_numbered_char): Use it.
493 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
495         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
497         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
499         * configure: Regenerated.
501         * Makefile.in (GHOSTSCRIPT): New variable.
502         (MDEFINES): Add GHOSTSCRIPT.
504 2004-10-03  Werner LEMBERG  <wl@gnu.org>
506         * INSTALL.gen: Updated (taken from texinfo CVS).
508 2004-09-28  Werner LEMBERG  <wl@gnu.org>
510         * NEWS: Updated.
512 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
514         * tmac/groff_www.man: Revised and updated.
516 2004-09-26  Werner LEMBERG  <wl@gnu.org>
518         Fix \$@ and \$* to handle any number of arguments.
520         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
521         characters.
523         * src/roff/troff/input.cpp (input_iterator::internal_level):
524         Removed.
525         (input_stack): New member functions `increase_level' and
526         `decrease_level'.
527         (input_stack::get_level): Don't use `internal_level'.
528         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
529         (end_quote_iterator): Completely removed.
530         (interpolate_arg): Build string for \$@ and \$* which is then
531         pushed onto the input stack.
533 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
535         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
536         2004-09-19.
538 2004-09-23  Werner LEMBERG  <wl@gnu.org>
540         * tmac/an-old.tmac (ne): Using default scaling operator.
542 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
544         This change implements the following features:
546         PORPHANS
547           New numeric register: Defines number of lines following LP, PP,
548           QP, IP or XP, which must be kept together, before any automatic
549           page break.  If insufficient space remains on the current page, a
550           page break is forced before the new paragraph begins.
552         HORPHANS
553           New numeric register: Sets number of lines of following paragraph
554           which must be kept with a heading, defined by NH or SH, before any
555           automatic page break.  If insufficient space remains on the
556           current page, a page break is forced before the heading.
558         GROWPS
559           (Thanks to Joerg van den Hoff, for this idea).
561           New numeric register: Sets the first level of heading (set with
562           NH), which will keep the same point size as body text; e.g. if
563           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
564           point size specified by \n[PS], but .NH 2 and .NH 1 will have
565           progressively larger point sizes, determined by \n[PSINCR] (see
566           below).
568         PSINCR
569           New numeric register: Sets the point size increment for each level
570           of heading, (set with NH), below the threshold level set by
571           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
572           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
573           and all other levels will remain at 10pt, (because \n[PS] = 10).
575         SH
576           Existing macro now accepts a numeric argument, to make heading
577           size match that of NH with same argument value, when the
578           GROWPS/PSINCR feature is enabled.
580         SN-DOT
581           New string, set by NH macro, replaces the existing (undocumented)
582           use of SN, to represent the assigned section number.
584         SN-NO-DOT
585           New string, set by NH macro, represents the assigned section
586           number, but omits the terminal period (periods at intermediate
587           levels are retained).
589         SN
590           String set by NH macro, originally undocumented, now implemented
591           as an alias for SN-DOT (which reproduces original behaviour).
593         * tmac/s.tmac (PORPHANS): New register.
594         (par*start): Use it.
595         (HORPHANS, GROWPS, PSINCR): New registers.
596         (SH-NO-TAG, @SH): Use them.
597         (@NH): Improved.
599 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
601         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
602         of `Ds' and `De' macros.
604 2004-09-10  Werner LEMBERG  <wl@gnu.org>
606         In tbl, handle \a as an interpreted leader character if in
607         compatibility mode.
609         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
610         LEADER_CHAR): New macros.
611         (compatible_flag): New declaration.
613         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
614         LEADER_3, and LEADER_4 to `state'.
615         (table_input::get): Handle `\a'.
617         * src/preproc/tbl/table.cpp (PREFIX): Removed.
618         (LEADER_REG): New macro.
619         (table::init_output): Define LEADER_REG string register if in
620         compatibility mode.
622         * src/preproc/tbl/tbl.man: Document it.
624 2004-08-18  Werner LEMBERG  <wl@gnu.org>
626         * tmac/doc.tmac (An): Fix error message.
628 2004-08-06  Werner LEMBERG  <wl@gnu.org>
630         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
631         file can't be opened.  UNIX tbl has the same behaviour.
633 2004-08-05  Y T  <doarhop@hotmail.com>
635         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
636         (DBRead): If in compatibility mode, take into account the text
637         when computing figure boundaries.
639 2004-08-05  Werner LEMBERG  <wl@gnu.org>
641         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
642         from Tadziu Hoffmann.
644 2004-08-03  Werner LEMBERG  <wl@gnu.org>
646         * doc/meref.me: Document `_M' register.
648 2004-08-03  Martin Husemann  <martin@duskware.de>
650         Make hpftodit work correctly on big-endian systems.
652         * src/utils/hpftodit/hpftodit.cpp (File): New method
653         `get_uint32(char *)'.
654         (entry): New member `orig_value'.
655         (read_tags): Use new method.
656         (output_font_name, read_and_output_pcltypeface, dump_ascii):
657         Updated.
659 2004-08-01  Werner LEMBERG  <wl@gnu.org>
661         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
662         are already in X11's `macros.t' file.
664 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
666         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
667         Fix casting bug.
668         (read_and_output_pcltypeface): Handle strings with length <= 4.
670 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
672         * tmac/s.tmac (pg@top): Don't save `PO' register.
673         (pg*end-col, pg*end-page): Directly use `PO' register.
675 2004-07-27  Werner LEMBERG  <wl@gnu.org>
677         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
679         * src/preproc/refer/refer.cpp (output_references): Check for
680         empty hash table.
681         * src/preproc/refer/refer.man: Improve documentation of
682         `bibliography' command.
684 2004-07-26  Werner LEMBERG  <wl@gnu.org>
686         Add requests `fcolor' and `gcolor'.
688         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
689         New functions.
690         (init_env_requests): Add `fcolor' and `gcolor'.
692         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
694         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
695         Document new requests.
697 2004-07-24  Werner LEMBERG  <wl@gnu.org>
699         Add support for fractional point sizes in ms macros.  A value for
700         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
701         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
703         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
704         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
706         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
708 2004-07-19  Werner LEMBERG  <wl@gnu.org>
710         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
711         Update constructor.
712         (do_for, for_input::get, for_input::peek): Handle negative `by'.
713         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
715 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
717         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
718         * tmac/groff_mdoc.man: Updated.
720 2004-07-05  Werner LEMBERG  <wl@gnu.org>
722         * doc/groff.texinfo: Further improve documentation of `hcode'.
724 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
726         Improve appearance of arrows in pic.
728         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
729         arrow head thin.
730         Use two line segments for drawing non-filled arrow head.
731         (line_object::print, spline_object::print): Shorten line length to
732         avoid arrow sticking.
733         (arc_object::print): Take arrow direction into account.
735 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
737         * tmac/groff_www.man: Update documentation of .MPIMG.
739 2004-07-03  Werner LEMBERG  <wl@gnu.org>
741         * tmac/an-old.tmac (RI): Always start with font `R'.
742         (RI, IR): Properly end with font `R'.
744 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
746         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
747         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
748         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
749         Don't pass more than six arguments to .R, .I, .B, etc., for
750         compatibility with traditional troff macros.
752 2004-07-02  Werner LEMBERG  <wl@gnu.org>
754         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
755         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
756         Update all users.
757         (PUSH_COMP_MODE): New internal character constant.
758         Update all users.
760         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
761         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
762         (token::next, macro::append): Handle PUSH_COMP_MODE.
763         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
764         POP_GROFFCOMP after each of the decoded arguments to make them
765         independent from the compatibility mode status.
766         (comp_mode): Add `COMP_ENABLE'.
767         (do_define_string, do_define_macro): Handle COMP_ENABLE.
768         (define_string, append_string, define_macro, define_indirect_macro,
769         append_macro, append_indirect_macro): Handle `compatible_flag'.
770         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
772         * man/groff_diff.man, doc/groff.texinfo: Updated.
774 2004-07-01  Werner LEMBERG  <wl@gnu.org>
776         * doc/groff.texinfo: Improve documentation of `hcode'.
777         Use @documentencoding and convert document to latin-1; to do that
778         make latin characters active and assign proper macros (within a
779         @tex...@end tex environment).
780         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
781         * doc/Makefile.sub (groff): Ditto.
783 2004-06-29  Werner LEMBERG  <wl@gnu.org>
785         Implement two new conditional operators `F <name>' and `S <name>'
786         which check whether <name> is a valid font or style, respectively.
788         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
789         (text_file::text_file): Updated.
790         (text_file::error): Don't emit message if `silent' is set.
791         (font::load_font): Add optional third argument (which is directly
792         passed to `load'.
793         (font::load): Add optional second argument to check the header of
794         a font only, without emitting warning or error messages.
795         * src/include/font.h (font): Updated.
797         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
798         conditionals.
799         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
800         fourth argument to check a font without mounting.
801         (check_font, check_style): New functions.
802         * src/roff/troff/node.h: Updated.
804         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
805         Updated.
807 2004-06-27  Werner LEMBERG  <wl@gnu.org>
809         Implement new string-valued register `.sty' to return the current
810         style name.
812         * env.cpp (environment::get_style_name_string): New function.
813         (init_env_requests): Add `.sty' register.
814         * env.h (environment): Updated.
815         * node.cpp (font_info): Make `get_style_name' a friend.
816         (get_style_name): New function.
817         * node.h: Updated.
819         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
820         Updated.
822 2004-06-15  Werner LEMBERG  <wl@gnu.org>
824         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
825         `nospaces' option.
827 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
829         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
830         and \n[mo] to avoid dependency on current date.
832 2004-06-08  Werner LEMBERG  <wl@gnu.org>
834         * Makefile.sub (install_data): New target.
836 2004-06-04  Werner LEMBERG  <wl@gnu.org>
838         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
840 2004-06-03  Werner LEMBERG  <wl@gnu.org>
842         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
843         order of libraries.
844         (install_data): Add $(srcdir).
846         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
847         libraries.
849 2004-06-02  Werner LEMBERG  <wl@gnu.org>
851         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
852         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
853         Add test for Xmu library.
854         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
855         GROFF_APPRESDIR_DEFAULT): New macros.
857         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
858         and GROFF_APPRESDIR_DEFAULT.
860         * configure: Regenerated.
862         * Makefile.in (appresdir): New variable.
863         (MDEFINES): Add appresdir.
865         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
866         -Xt.
867         (install_data, uninstall_sub): New targets to handle GXditview.ad.
869         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
870         `$(srcdir)/eign', not `eign'.
872         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
874         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
875         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
876         Protect (g)xditview with `\%' to avoid hyphenation.
877         Other minor formatting.
879 2004-06-01  Werner LEMBERG  <wl@gnu.org>
881         Integrate gxditview into groff's standard directory hierarchy.
883         * src/xditview/*: Moved to ...
884         * src/devices/xditview/*: Here.
885         Moved DviChar.h and XFontName.h to src/include.
886         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
887         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
888         Moved xtotroff.c to new directory src/utils/xtotroff.
889         Provide proper Makefile.sub files (reusing the stuff from
890         Imakefile.in).
891         DESC renamed to DESC.in.
892         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
893         Converted everything from K&R to ANSI C.
894         Decorated with const where appropriate.
895         Cast string constants with `String' and `char *' where appropriate.
896         Made it compile with C++ (used as a C compiler).
897         Removed other minor compiler warnings.
899         * src/devices/xditview/device.c: Include config.h, string.h, and
900         defs.h.
901         Don't declare `exit', `strtok', `strchr', and `getenv'.
902         (FONTPATH): Remove.
904         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
905         `XFormatFontName'.
907         * src/devices/xditview/xditview.c: Include config.h.
908         Include stdio.h earlier.
909         Protect declaration of `popen' and `pclose' with
910         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
911         Replace `caddr_t' with `XtPointer'.
912         (MakePromptFunc): New typedef.
913         (DoPrint): Use RETSIGTYPE.
914         (promptfunction): Change type to MakePromptFunc.
915         (MakePrompt): Use MakePromptFunc for third argument.
916         (xmalloc): Removed.
918         * src/devices/xditview/ad2c: Add casts to `String'.
920         * src/include/XFontName.h (XFontNameString): Don't use array
921         notation.
922         Add prototypes for `XParseFontName', `XFormatFontName',
923         `XCompareFontName', and `XCopyFontName'.
925         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
926         `XFontName.h'.
928         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
929         Don't declare `XParseFontName' and `XFormatFontName'.
930         (xmalloc): Removed.
931         (main): Remove `optind' and `optarg'.
933         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
934         (to select programs which need X).
935         Make XDEVIDIRS depend on `FORCE'.
936         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
937         X support).
938         (MDEFINES): Updated.
939         (LIBDIRS): Use XLIBDIRS.
940         (CPROGDIRS): Use XPROGDIRS.
941         (DEVDIRS): Remove font directories for gxditview.
942         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
943         (EXTRADIRS): Remove src/xditview.
945         * Makefile.sub (DISCLEANFILES): Updated.
947         * Makefile.comm (LIBXUTIL): New variable.
948         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
949         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
951         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
953         * aclocal.m4 (GROFF_X11): New function.
955         * configure.ac: Call GROFF_X11.
956         Don't create src/xditview/Imakefile.
957         Don't emit notice how to build gxditview.
959         * configure: Regenerated.
961         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
963 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
965         * Makefile.in (CPPFLAGS): Define.
966         (MDEFINES): Add CPPFLAGS.
968 2004-05-27  Werner LEMBERG  <wl@gnu.org>
970         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
972 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
974         Fix problems with `friend name injections'.
976         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
977         make_script_box), src/roff/troff/div.h (end_diversions),
978         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
979         change 2004-04-08.
981 2004-05-25  Bernd Warken  <bwarken@mayn.de>
983         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
985 2004-05-25  Werner LEMBERG  <wl@gnu.org>
987         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
988         src/libs/libgroff/color.cpp: Include lib.h.
990 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
992         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
993         through Forte 6u1, and for how to get GNU make on Solaris.
995 2004-05-24  Werner LEMBERG  <wl@gnu.org>
997         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
998         by Paul Eggert.
1000 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1002         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1003         rule.
1005 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1007         * REVISION: Set to 2.
1009         * aclocal.m4 (GROFF_STDINT_H): Removed.
1010         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1012         * configure.ac: Updated.
1013         * configure, src/include/config.hin: Regenerated.
1015         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1016         inttypes.h conditionally.
1018 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1020 Version 1.19.1 released
1021 =======================
1023 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1025         * src/preproc/refer/label.y (same_author_last_name,
1026         same_author_name): Handle empty sort keys.
1028 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1030         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1031         tmac/TODO: Updated.
1033         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1034         doc-str-Lb-librt): Reset font.
1035         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1036         Provide `doc-str-Lb' to reset font.
1037         * tmac/groff_mdoc.man: Updated.
1039 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1041         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1042         snprintf versions which don't conform to ANSI C 99 (this is,
1043         counting the string's trailing null byte in the return value).
1045 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1047         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1048         that all implementations of sprintf handle null pointers correctly.
1050 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1052         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1053         Document `.U' register.
1055         * src/roff/troff/env.cpp (environment::mark_last_line)
1056         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1058 2004-05-04  Larry Kollar  <kollar@alltel.net>
1060         New read-only register `.U'; it returns 1 in safer mode and 0
1061         otherwise.
1063         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1064         register.
1066 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1068         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1070 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1072         * src/include/font.h (font): Use `int' for ch_index.
1073         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1074         font::compact): Updated.
1076         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1077         warnings.
1079         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1080         (hyphen_word): Fix compiler warnings.
1081         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1082         `char'.
1083         Update all callers.
1084         (get_delim_number, get_line_arg): Change second argument type to
1085         `unsigned char'.
1086         (macro_header::copy, token::next, do_define_string,
1087         do_define_character, substring_request, asciify_macro,
1088         unformat_macro, read_size, non_interpreted_node::interpret,
1089         while_request, main: Fix compiler warnings.
1090         (read_color_draw_node): Initialize `col'.
1092         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1093         `start_col' and `end_col' of type `int'.
1094         (vertical_rule): Make `col' of type `int'.
1096         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1097         for EOF.
1099         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1100         New arrays.
1101         (format_serial): Use them to remove dependency on ASCII.
1103         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1104         compiler warning.
1105         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1106         Ditto.
1108         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1109         compiler warnings.
1110         (glyph): Change type of `hpos' to `int'.
1112         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1113         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1115         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1117         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1119 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1121         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1122         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1123         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1124         `double' instead of `float' everywhere.
1125         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1126         everywhere.
1127         (main): Add return value.
1128         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1129         everywhere.
1130         Update all user functions.
1132         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1133         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1134         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1135         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1136         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1137         src/roff/troff/input.cpp, src/roff/troff/request.h,
1138         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1139         declarations.
1141         * src/utils/indxbib/signal.c: Include stdlib.h.
1143 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1145         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1146         before the first page.
1148 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1150         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1151         (doc-operating-system-*): Updated.
1152         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1153         (doc-str-Lb-*): Add more library names.
1155 2004-04-10  Art Haas  <ahaas@airmail.net>
1157         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1158         use anonymous type.
1160 2004-04-09  Art Haas  <ahaas@airmail.net>
1162         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1164 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1166         * arch/misc/shdeps.sh: Generate better comment for sed script.
1168 2004-04-08  Art Haas  <ahaas@airmail.net>
1170         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1171         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1172         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1173         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1174         (polyfill), src/preproc/grn/main.cpp (polyfill),
1175         src/preproc/refer/command.cpp (command_table),
1176         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1177         gcc 3.5 doesn't like).
1179 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1181         Removing many compiler warnings.  groff should now compile with
1182         a C++ compiler used for C files also.  [Simple variable renamings
1183         to avoid shadowing aren't logged in detail.]
1185         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1186         (draw_dvi_printer::draw) ['c']: Enclose in block.
1188         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1189         (page::add_line): Fix typos.
1190         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1192         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1193         Some local variable renamings.
1194         * src/devices/grolbp/lbp.h: Some local variable renamings.
1196         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1197         variable renamings.
1199         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1200         Remove redundant local variable declaration.
1201         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1202         Don't use `caddr_t' but `void *'.
1203         Enclose functions with `extern "C"' for C++.
1205         * src/libs/libdriver/input.cpp (remember_filename,
1206         remember_source_filename): Use cast for string constant.
1208         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1209         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1210         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1211         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1212         style.
1213         Enclose functions with `extern "C"' for C++.
1214         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1215         (needs_quoting): Return `int'.
1216         (quote_arg): Add proper casts to malloc and realloc.
1217         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1218         various MS Windows environments.
1219         (spawnvp_wrapper): Add proper cast to malloc.
1221         * src/preproc/eqn/box.h: Remove redundant declarations of
1222         `make_script_box', `make_mark_box' and `make_lineup_box'.
1223         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1224         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1225         variable renamings.
1227         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1228         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1229         (dx, dy): Renamed functions to...
1230         (deltax, deltay): This.
1231         * src/preproc/grn/main.cpp: Some local variable renamings.
1232         (deffont): Add `const'.
1233         (initpic, conv): Use cast for string constant.
1235         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1236         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1237         (char_buffer::run_output_filter): Second argument is unused.
1238         * src/preproc/html/pushback.cpp: Some local variable renamings.
1240         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1241         * src/preproc/pic/object.cpp: Some local variable renamings.
1243         * src/preproc/refer/label.y (lookup_label): Remove redundant
1244         declaration of local variable.
1246         * src/preproc/soelim.cpp: Remove redundant declaration of
1247         `interpret_lf_args'.
1249         * src/preproc/tbl/main.cpp: Some local variable renamings.
1251         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1252         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1253         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1254         Don't use C++-style comments.
1256         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1257         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1258         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1259         renamings.
1260         * src/roff/troff/div.h: Remove redundant declaration of
1261         `end_diversions'.
1262         * src/roff/troff/troff.h: Remove redundant declaration of
1263         `cleanup_and_exit'
1264         * src/roff/troff/input.cpp: Remove redundant declaration of
1265         `handle_first_page_transition' and `process_input_stack'.
1267         * src/utils/hpftodit.cpp: Some local variable renamings.
1269         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1270         for C++.
1271         Don't define RETSIGTYPE.
1272         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1274         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1275         (error): Use `const' in argument.
1276         (main): Remove redundant declaration of `optind'.
1277         Move declaration of `Version_string' to top-level.
1279         * PROBLEMS: Document difficulties compiling signal.c if a C++
1280         compiler is used for C.
1282 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1284         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1286 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1288         Make scripts like nroff.sh and neqn.sh portable across various
1289         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1290         non-POSIX path separators.  The idea is to extend those scripts to
1291         decide at run-time (of the script) which path separator to use.
1293         * arch/misc/Makefile.sub: New file.
1294         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1295         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1296         a proper definition of the variable `GROFF_RUNTIME'.
1298         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1299         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1300         (PROGDEPDIRS): New variable.
1301         `FORCE' it.
1302         (PROGDIRS): Add PROGDEPDIRS.
1304         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1305         Don't substitute @SEP@ and @BINDIR@.
1306         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1307         (PATH): Use GROFF_RUNTIME.
1309         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1310         Don't substitute @SEP@ and @BINDIR@.
1311         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1312         (PATH): Use GROFF_RUNTIME.
1314 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1316         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1317         Cygwin which doesn't handle stderr correctly.
1319 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1321         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1322         against empty argument.  Problem reported by <cgd@broadcom.com>.
1324 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1326         * Makefile.in (SEP): Replaced with...
1327         (RT_SEP, SH_SEP): Separators for the target platform's native path
1328         separator and the build environment, respectively.
1329         (fontpath, tmacpath): Use RT_SEP.
1330         (MDEFINES): Updated.
1332         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1333         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1334         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1335         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1337 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1339         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1340         reduce alignment problems with newer printers which use built-in
1341         TrueType fonts (instead of the older Intellifonts).  The ideal
1342         solution is to provide a second set of groff metric files, but this
1343         is extremely time-consuming to produce, given that HP's metric
1344         files are very rudimentary.
1346 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1348         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1349         s/operand/argument/ in error message.
1351 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1353         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1354         is in use.
1356 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1358         * tmac/s.tmac (XE): Fix error message.
1360 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1362         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1363         New macros.
1365         * src/roff/groff/pipeline.c: Declare strcasecmp.
1366         (run_pipeline) [_WIN32]: Use function name variants which don't
1367         start with `_'.
1368         Fix stream handling.
1370 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1372         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1373         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1374         for platforms which use the native Win32 runtime libraries.
1375         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1377         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1378         QUOTE_ARG_REALLOC_ERROR): Fix string.
1380         * src/preproc/html/pre-html.cpp: Remove declaration of
1381         `spawnvp_wrapper'.
1382         Don't use __MINGW32__.
1383         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1384         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1385         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1386         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1387         calls to `set_redirection' and `WAIT'.
1388         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1389         Fix calls to `set_redirection' and `save_and_redirect'.
1390         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1391         to `set_redirection' and `save_and_redirect'.
1392         (usage): Fix message.
1393         (makeTempFiles, main): Use `DEBUG_FILE'.
1395 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1397         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1399 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1401         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1402         quoting for MSVC's spawn* and exec* functions.
1403         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1404         spawnvp with proper quoting for MSVC.
1406         * src/libs/libgroff/assert.cpp (program_name),
1407         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1408         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1410         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1412         * src/include/error.h (program_name): Declare as `extern "C"'.
1413         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1415 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1417         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1418         spawnvp_wrapper.
1419         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1421 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1423         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1424         variable.
1425         (sbasename) [__MSDOS__ || ...]: New function.
1426         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1427         generic algorithm.
1428         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1429         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1430         of XXX.
1431         Use STDOUT_FILENO instead of hardcoded file handle.
1432         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1434 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1436         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1437         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1439 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1441         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1442         new font and mapping files.
1444 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1445             Keith Marshall  <keith.d.marshall@ntlworld.com>
1447         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1448         an input pipe.  This is needed for the MSVC compiler to make troff's
1449         `-o' option work.
1451         * src/roff/troff/div.cpp: Include nonposix.h.
1452         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1454 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1456         * font/devlj4/generate/special.awk: New script.
1457         * font/devlj4/generate/Makefile (S): Use special.awk.
1458         * font/devlj4/*: Regenerated, including the following new files:
1459         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1460         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1461         * NEWS: Document new lj4 fonts and revised hpftodit.
1463 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1465         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1467 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1469         * src/libs/libgroff/progname.cpp: Replaced with...
1470         * src/libs/libgroff/progname.c: New file.
1471         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1473 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1475         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1477 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1479         * font/devlj4/generate/wingdings.map,
1480         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1481         Use groff glyph names where possible.
1482         * src/devices/grolj4/lj4_font.man: Minor updates.
1484 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1486         * tmac/www.tmac (DC): Handle TTY devices.
1488         * doc/webpage.ms: Document viewCVS from ffii.org.
1489         * NEWS, README: Updated.
1491         * src/roff/groff/groff.man: Mention lj4_font man page.
1493         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1494         variables.
1495         (FONTS): Add SYMBOL and WINGDINGS.
1496         (SYMBOL, WINGDINGS): New targets.
1498 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1500         * src/devices/grolj4/lj4_font.man: New man page.
1501         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1502         * src/devices/grolj4.man: Mention lj4_font man page.
1504         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1505         * src/utils/hpftodit/hpftodit.man: Document it.
1506         (CW): New macro.
1507         Remove details about fonts (which are now in lj4_font.man).
1509         * font/devlj4/generate/symbol.map,
1510         font/devlj4/generate/wingdings.map: New files.
1512 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1514         * README: Mention ffii's viewcvs access.
1516 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1518         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1520 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1522         Revert most of the change from 2004-01-03 to better control used
1523         symbol sets.
1525         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1526         (text_symbol_sets, special_symbol_sets): New arrays.
1527         (symbol_set_table): New global variable.
1528         (read_symbol_sets): Use search order given in the text_symbol_sets
1529         and special_symbol_sets arrays.  If command line flag -a is not
1530         given, search both arrays.
1531         (output_charset): Require x_height_tag only for command line flag -i.
1533 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1535         Implement string-valued registers \n[.m] and \n[.M] to return the
1536         name of the current drawing and background color, respectively.
1538         * src/roff/troff/symbol.h: Moved to...
1539         * src/include/symbol.h: Here.
1540         Small fixes to make it work outside of the `troff' directory.
1541         * src/roff/troff/symbol.cpp: Moved to...
1542         * src/libs/libgroff/symbol.cpp: Here.
1543         Small fixes to make it work outside of the `troff' directory.
1545         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1546         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1547         Updated.
1549         * src/include/color.h: Include symbol.h.
1550         (color): Add new field `nm'.
1551         * src/libs/libgroff/color.cpp (color::color): Updated.
1553         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1554         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1555         src/roff/troff/reg.cpp: Don't include symbol.h.
1557         * src/roff/troff/env.cpp: Don't include symbol.h.
1558         (environment::get_glyph_color_string,
1559         environment_get_fill_color_string): New member functions.
1560         (init_env_requests): Handle `.m' and `.M' registers.
1561         * src/roff/troff/input.cpp: Don't include symbol.h.
1562         (default_symbol): Moved to symbol.cpp/symbol.h.
1563         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1564         to color constructor.
1565         * src/roff/troff/env.h: Updated.
1567         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1568         Document new registers.
1570 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1572         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1573         space_node::nbreaks): Protect against zero `next' field.
1575 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1577         In hpftodit, use the symbol sets offered in the TFM.
1579         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1580         (symbol_set, text_symbol_sets, special_symbol_sets,
1581         symbol_set_table): Removed.
1582         (get_printcode): Removed.
1583         (read_symbol_sets): Initialize `symbol_set' field with
1584         `NO_SYMBOL_SET'.
1585         Simplify code to just use the `kind' value.
1586         (output_charset): Improve output formatting.
1587         (dump_symbols): Simplified.
1589 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1591         * font/devlj4/generate/text.map: Add more MSL numbers.
1593 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1595         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1596         (text_symbol_sets): Add more symbol sets.
1597         (debug_flag): New static variable (moved from `main').
1598         (get_printcode, show_symset): New functions.
1599         (main): Remove `debug_flag'.
1600         (output_charset): Use `show_symset'.
1601         (dump_symbols):  Use `show_symset'.
1602         Print symsets for all glyphs.
1603         (read_map): Actually call `unicode_to_ucode_make' but this time
1604         correctly.
1606 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1608         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1609         Fix placement of comments.
1611 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1613         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1614         option `-d' is given.
1615         (output_charset): Improve warning messages to give more information.
1616         (dump_symbols): Make information more precise.
1617         (usage): Updated.
1618         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1619         appear as-is and shouldn't be decomposed.
1621 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1623         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1624         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1625         (FONTS): Add TrueType font families Arial and Times New Roman.
1626         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1627         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1628         `fl'.
1630 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1632         * test-groff.in (SEP): Quote value.
1633         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1634         `tem' to `char*' to avoid deallocation of a pointer to a constant
1635         object which some compilers don't like.
1637 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1639         * font/devlj4/generate (text.map, special.map): Rewritten to work
1640         with the new hpftodit version.
1642 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1644         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1645         set and 8bit character code for all glyphs also.
1647 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1649         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1651 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1653         More fixes for MSVC compiler.
1655         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1656         $(SEP).
1658         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1659         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1660         (getpid) [_MSC_VER]: Remove.
1661         Include direct.h and process.h conditionally.
1663         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1664         parentheses for a_delete.
1666         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1668         * test-groff: Replaced with...
1669         * test-groff.in: This new template to handle path separator
1670         properly.
1672         * configure.ac: Check for direct.h and process.h.
1673         Generate test-groff script.
1674         * configure, src/include/config.hin: Regenerated.
1676 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1678         Add integral extension glyph.
1679         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1681         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1683         * font/devps/generate/textmap: Provide entry for `integralex' to
1684         override (old) PUA value of the AGL.
1685         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1686         * font/devps/*: Regenerated.
1688         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1689         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1691 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1693         Add forgotten `coproduct' symbol (already available for DVI).
1695         * font/devhtml/R.proto, font/devps/generate/textmap,
1696         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1697         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1698         U+2210 (\[coproduct]).
1700 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1702         hpftodit has been extended to handle TrueType metric files and
1703         more glyphs.  See hpftodit.man for more details.
1705         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1706         ctype.h, and unicode.h.
1707         s/msl/charcode/ everywhere since we now handle Unicode values also.
1708         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1709         Use it where appropriate.
1710         (MULTIPLIER): Replaced with...
1711         (multiplier): New global static variable.
1712         (scale): Updated.
1713         (tag_type): Add more TFM tags.
1714         (tag_name): New array.
1715         (ENUM_TYPE, FLOAT_TYPE): Removed.
1716         (BYTE_TYPE): New value assigned.
1717         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1718         (text_symbol_sets, special_symbol_sets): Extended to cover more
1719         sets.
1720         (check_type): Add return value.
1721         (check_units): Add parameters to get ppi and upem values.
1722         Handle TrueType TFM data.
1723         (output_font_name): New function.
1724         (output_charset): Add parameter to handle TFM type.
1725         Handle TrueType TFMs also.
1726         (em_fract): New macro.
1727         (dump_tags): Be much more verbose and handle more tags.
1728         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1729         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1730         functions.
1731         (read_map): Add parameter to handle TFM type.
1732         Handle both MSL and Unicode mappings.
1733         (main): Add two new command line options `-a' and `-q'.
1734         Updated to make use of new functions.
1735         (usage): Updated.
1737         * src/utils/hpftodit/hpuni.cpp: New file.
1739         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1740         Updated.
1742 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1744         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1746 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1748         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1749         by Michail Vidiassov <master@iaas.msu.ru>.
1751 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1753         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1754         and u0049_0307.
1755         Add missing latin-2 glyphs.
1756         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1758         * tmac/troffrc: Load `composite.tmac' earlier.
1760         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1761         u00{53,73}_0327, and u0049_0307.
1762         * tmac/X.tmac: Add u00{47,67}_0306.
1763         * tmac/tty-char.tmac: Use composite glyph names for readability.
1765         * NEWS: Updated.
1767         * src/include/unicode.h: Remove `extern' keywords.
1769 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1771         * tmac/latin5.tmac: New file.
1773 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1775         Add some glyphs needed for Turkish.
1777         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1778         and u0049_0307.
1780         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1781         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1782         u00{53,73}_0327, and u0049_0307.
1784 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1786         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1787         from 2001-10-04.
1788         Remove trailing zeros.
1790 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1792         Make \? transparent to end-of-sentence recognition.
1794         * src/roff/troff/input.cc (non_interpreted_node): Add
1795         `ends_sentence' member function.
1797 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1799         * doc/groff.texinfo: Document `dt' request correctly.
1800         Other minor typographical improvements.
1802 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1804         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1806 2003-12-10  Richard Stallman  <rms@gnu.org>
1808         * LICENSE: Better wording.
1810 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1812         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1813         * configure, NEWS: Updated.
1815 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1817         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1819 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1821         * LICENSE: Updated.
1823 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1825         * INSTALL: Improved.
1827 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1829         Use path separator character of target platform for compiled-in
1830         default paths.
1832         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1833         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1834         * configure: Regenerated.
1835         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1837 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1839         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1840         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1842 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1844         * LICENSE: New file.
1846 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1848         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1849         ligatures present in AFM files since groff currently only
1850         understands some standard ligatures and nothing else.
1852 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1854         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1855         option -v is given.
1857         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1858         messages.
1859         Close stdout copy.
1860         Don't use Unix wait flags.
1862 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1864         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1865         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1866         src/roff/troff/uniuni.cpp: Moved to...
1867         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1868         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1869         src/libs/libgroff/uniuni.cpp: Here.
1871         * src/include/Makefile.sub.old (HDRS),
1872         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1873         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1875 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1877         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1878         `DEBUG_FILE'.
1879         Updated all users.
1881 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1883         * groff.texinfo: Document special behaviour of `.vs 0'.
1884         Improve documentation of `cflags' request.
1885         * NEWS: Updated.
1887 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1889         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1890         * font/devlj4/CORONET: Regenerated.
1892 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1894         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1895         if processing hyphenation patterns in traditional mode.
1896         Improve error messages.
1898 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1900         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1901         troff_output_file::put_char): Fix type of local variable `c'.
1903 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1905         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1906         declarations.
1907         (i_to_a): Removed.  libgroff already provides this function.
1908         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1910 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1912         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1913         HAVE_DECL_SYS_LIST.
1915 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1917         * COPYING: Use correct version.
1919 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1921         LynxOS 4.0.0 doesn't declare vfprintf.
1923         * configure.ac: Check for vfprintf.
1924         * configure: Regenerated.
1925         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1926         * src/include/config.hin: Regenerated.
1928 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1930         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1932         * configure.ac: Check for vsnprintf.
1933         * configure: Regenerated.
1934         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1935         `HAVE_VSNPRINTF'.
1936         * src/include/config.hin: Regenerated.
1938 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1940         * aclocal.m4: Updated syntax to autoconf 2.59.
1941         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1942         Don't check for gsos2.
1943         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1944         working abs_top_srcdir and abs_top_builddir.
1946         * configure.ac: Updated syntax to autoconf 2.59.
1947         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1948         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1949         * configure: Regenerated.
1951         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1952         s/@groff_top_builddir@/@abs_top_builddir@/.
1954         * src/roff/groff/pipeline.c (xstrsignal):
1955         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1957 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1959         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1960         make start angle smaller than end angle to circumvent a bug in tpic
1961         handling of some versions of dvipdfm (and dvipdfmx).
1963 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1965         * src/devices/grops/grops.man: Improve section on creating EPS.
1967 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1969         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1970         -P-pletter).
1972 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1974         * doc/groff.texinfo: Fix documentation of `.if'.
1976 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1978         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1979         the form `uniXXXX' also.
1981 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1983         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1984         contrib/pic2graph/pic2graph.sh: Implement secure management of
1985         temporary files.
1986         Pass `-P-pletter' to groff to avoid data outside of the converted
1987         area -- some versions of `convert' (for example 5.3.8) don't check
1988         the bounding box of the image but always use a fixed image size
1989         (letter paper format).
1990         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1991         contrib/pic2graph/pic2graph.man: Updated.
1993         * src/roff/groff/groff.man: Document $TMP and $TEMP.
1995 2003-10-26  Werner LEMBERG  <wl@gnu.org>
1997         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1998         troff_output::simple_ellipse, troff_output::simple_arc,
1999         troff_output::simple_line, troff_output::simple_spline,
2000         troff_output::simple_polygon): Insert a space before arguments.
2001         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2002         latter doesn't produce a node, so the following `.sp -1' would do
2003         the wrong thing.
2004         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2005         (and we don't have to care about compatibility mode).
2006         (troff_output::set_color, troff_output::reset_color): Don't emit
2007         `.sp -1' after \M and \m.
2009         * src/roff/troff/input.cpp (old_have_input): New global variable.
2010         (input_stack::get): Handle `old_have_input'.
2011         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2012         `trapping_blank_line' depending on `old_have_input', not
2013         `have_input'.
2015 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2017         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2018         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2019         default directory names for temporary files.
2020         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2022         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2023         [__MSDOS__] (run_pipeline): Honour environment variables.
2024         Don't use `tmpnam' but `tempnam' to work around messy
2025         implementation.
2027         * README.MinGW: New file.
2029 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2031         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2032         `(*t)->next' without testing validity of `*t'.
2033         (usage): Make it more readable.
2035 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2037         Make html device run under both MS-DOS and Win32.
2039         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2040         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2041         spawn or fork+exec has to be used, and whether parent must sleep
2042         until the child process terminates.  Used in
2043         `char_buffer::run_output_filter'.
2044         (copyofstdoutfd): Removed.
2045         (char_buffer): Replace `write_file_html' and `write_file_troff'
2046         member functions with `emit_troff_output' and `run_output_filter'.
2047         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2048         macros.
2049         (replaceFd): Replaced with...
2050         (set_redirection): New auxiliary function.
2051         (waitForChild): Replaced with...
2052         (save_and_redirect): New auxiliary function for.
2054         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2055         functions.
2057 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2059         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2060         (GROFF_LIBC): New function.
2061         * configure.ac: Call GROFF_LIBC.
2062         Check for `kill'.
2063         * configure: Regenerated.
2065         * src/include/lib.h: Handle __MINGW32__.
2066         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2067         Add macro for `pipe'.
2068         Define P_tmpdir.
2070         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2071         correctly.
2073         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2074         Implement.
2076 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2078         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2079         <chuq@chuq.com>.
2081         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2082         directory.
2084 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2086         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2087         src/roff/troff/input.cc (usage): Updated.
2089         * NEWS, doc/groff.texinfo: Updated.
2091 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2093         * src/libs/libgroff/searchpath.cpp
2094         (search_path::open_file_cautious): New function which also handles
2095         `-' as stdin and stdout depending on the access mode.
2096         * src/include/searchpath.h (search_path): Updated.
2098         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2099         * src/devices/grops/ps.h: Include `searchpath.h'.
2100         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2101         Open resource file with `include_search_path.open_file_cautious'.
2102         * src/devices/grops/grops.man: Document new `-I' switch.
2104         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2105         (main), src/devices/grolj4/lj4.cpp (main),
2106         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2108         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2109         Replaced with...
2110         (include_search_path): New global variable.
2111         (include_path_append): Removed.
2112         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2113         (do_file): Simplify, using new
2114         `include_search_path.open_file_cautious'.
2116         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2117         parameter.
2118         (main): Pass arguments to `-I' to both troff and devices.
2119         Improve handling of `-V'.
2120         * src/roff/groff/groff.man: Document changes to -I and -V.
2122         * src/roff/troff/input.cpp (include_search_path): New global
2123         variable.
2124         (next_file, source, ps_bbox_request, transparent_file,
2125         process_input_file): Use new
2126         `include_search_path.open_file_cautious'.
2127         (main) Handle `-I' switch.
2128         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2129         Use new `include_search_path.open_file_cautious'.
2130         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2131         * src/roff/troff/troff.man: Document new `-I' switch.
2133 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2135         Support multiple calls of .Lb in LIBRARY section.
2137         * tmac/doc-common (doc-in-library-section): New register.
2138         (doc-section-library): New string.
2139         (Sh): Set `doc-in-library-section'.
2140         (Rd): Updated.
2141         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2142         if in LIBRARY section.
2143         * tmac/doc.tmac (doc-save-global-vars): Updated.
2144         * NEWS, tmac/groff_mdoc.man: Updated.
2146 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2148         * tmac/doc-common (doc-default-operating-system): New variable.
2149         (Os): Use it.
2151 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2153         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2155 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2157         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2158         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2159         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2160         $(DEVFILES) are not empty.
2161         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2163 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2165         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2166         with parallel runs of `make'.
2168 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2170         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2171         insert SORT_SEP.  With certain combinations of sort specifications,
2172         refer sorted entries in the wrong order.  In particular, entries
2173         with a missing field should be be sorted before all entries that
2174         have that field, before refer looks to the next field.
2176 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2178         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2179         g++ linker is used.  Reported by Mark J. Reed
2180         <mark.reed@turner.com>.
2182 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2184         Add key character `x' to tbl which makes tbl call a user-defined
2185         macro on a table cell.
2187         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2188         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2189         `set_modifier' after printing the compatibility request.
2190         (set_modifier): Print call to `m->macro' if not empty.
2191         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2192         `macro'.
2193         (process_format): Implement cases `x' and `X'.
2194         * src/preproc/tbl/tbl.man, NEWS: Updated.
2196 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2198         * doc/groff.texinfo: Minor fixes.
2200 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2202         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2204 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2206         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2207         argument list to nothing if there is no file to match.  Use `ls' as
2208         a protection, similar to autoconf.
2210         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2211         empty argument lists.
2213         * doc/groff.texinfo: Improve documentation how vertical spacing
2214         and line breaks interact.
2215         Other minor fixes.
2217         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2219 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2221         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2222         EPS (using eps2eps or similar programs to compute the bounding box).
2224 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2226         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2227         * doc/texinfo.tex: Updated from texinfo 4.6.
2228         * README.CVS: From now on we need texinfo 4.6.
2230 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2232         Add requests `dei1' and `ami1' for completeness.
2234         * src/roff/troff/input.cc (calling_mode): Remove
2235         CALLING_DISABLE_COMP.
2236         (comp_mode): New enumeration.
2237         (do_define_string, define_string, define_nocomp_string,
2238         append_string, append_nocomp_string): Updated.
2239         (do_define_macro): Add third parameter.
2240         (define_macro, define_nocomp_macro, define_indirect_macro,
2241         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2242         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2243         functions.
2244         (ignore): Updated.
2245         (init_input_requests): Add `dei1' and `ami1'.
2247         * tmac/trace.tmac: Handle de1 and am1.
2248         (de): Improve tracing message.
2249         (am): Add missing `do'.
2250         (return): Use de1.
2252         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2253         Document new requests.
2255 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2257         Add option -G to .MPIMG to insert a gap between text and the image.
2259         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2260         www-finish-left-ll): Updated.
2261         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2262         (MPIMG): Make option -L and -R optional.
2263         Implement option -G.
2265 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2267         * src/devices/grohtml/post-html.cpp
2268         (html_printer::do_file_components): Don't use `stdout' as lvalue
2269         since it can be a macro.
2271 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2273         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2274         the corresponding test in aclocal.m4.
2276 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2278         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2279         names but RGB values directly.  Otherwise pnmtopng depends on
2280         an external file `rgb.txt' which maps colour names to values.
2282 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2284         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2285         * configure, src/include/config.hin: Regenerated.
2287         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2289 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2291         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2293 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2295         * *.man: Switch to non-compatibility mode temporarily if GNU
2296         syntax extensions are used in the particular man page.
2298         * PROBLEMS: Add solutions for SGR problems.
2300 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2302         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2303         used to change the drawing scheme.
2305         * src/devives/grotty/tty.cpp (bold_flag_option,
2306         underline_flag_option, italic_flag_option, reverse_flag_option,
2307         bold_underline_mode_option): New global variables.
2308         (update_options): New function.
2309         (tty_printer::special): Call update_options.
2310         (main): Don't set xxx_flag but xxx_flag_option, then call
2311         update_options.
2313 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2315         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2317         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2318         values.
2319         (hline_char, vline_char): New global variables.
2320         (tty_printer::tty_printer): Initialize them.
2321         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2322         horizontal and vertical lines.
2323         (crossings): New global array.
2324         (tty_printer::end_page): Use it to determine the proper crossing
2325         character for -Tutf8.
2327 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2329         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2330         (HTMLDOCFILES): Revert to `pic.html'.
2331         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2333 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2335         * doc/pic.ms: Improve documentation of absolute coordinates.
2336         Document absolute positioning of pictures.
2338         * NEWS: Add new pic capability.
2340 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2342         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2343         Rewritten.
2345 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2347         Implement support for dashed and dotted ellipses in pic.  Based on
2348         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2350         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2351         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2352         functions.  Ellipse arcs are approximated with circle arcs.
2353         * src/preproc/pic/common.h (common_output): Updated.
2354         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2355         functions.
2356         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2358         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2360 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2362         Make grotty work on platforms which have unsigned char as the
2363         default for char.  Based on a patch by Thomas Klausner
2364         <wiz@netbsd.org>.
2366         * src/devices/grotty/tty.cpp (schar): New typedef.
2367         Updated calls to declare_ptable and implement_ptable.
2368         (glyph): Use schar for back_color_idx and fore_color_idx.
2369         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2370         (tty_printer::tty_color, tty_printer::tty_printer,
2371         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2373 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2375         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2376         * src/roff/nroff/nroff.man: Updated.
2378 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2380         * NEWS, tmac/groff_www.man: Updated.
2381         * doc/Makefile.sub: Updated.
2383 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2385         Implement support for multiple HTML output files.
2387         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2388         -j command line option.
2390         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2391         global variables.
2392         (file): New fields `new_output_file', `require_links',
2393         `output_file_name'.
2394         (file::file): Updated.
2395         (files::set_file_name, files::set_links_required,
2396         files::are_links_required, files::is_new_output_file,
2397         files::file_name, files::next_file_name): New functions.
2398         (header_desc): New fields `no_of_level_one_headings',
2399         `header_filename'.
2400         (header_desc::header_desc): Updated.
2401         (header_desc::write_headings): Handle multiple files.
2402         (html_printer::write_header): Save file name in which header occurs.
2403         (html_printer::determine_header_level): Possibly split files on
2404         level one headings.
2405         (html_printer::do_links, html_printer::troff_tag): Updated.
2406         (html_printer::insert_split_file, html_printer::do_job_name,
2407         html_printer::emit_link, html_printer::write_navigation,
2408         html_printer::do_file_components): New functions.
2409         (html_printer::~html_printer): Handle multiple files.
2410         (main): Handle command line option `-j'.
2412         * src/devices/grohtml/grohtml.man: Updated.
2414         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2415         which splits file.
2417         * tmac/www.tmac (JOBNAME): New macro.
2418         * tmac/s.tmac (SH-NO-TAG): New macro.
2419         (@SH): Call SH-NO-TAG.
2420         (@NH): Updated.
2422 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2424         * tmac/groff_mdoc.man: Improve documentation of punctuation
2425         characters.
2427 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2429         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2431 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2433         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2435 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2437         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2438         after `/*' and `*/'.
2439         Fix spacing.
2440         (Fn, Fo): Reduce indentation in synopsis.
2442         * tmac/doc-common (doc-check-depth): New macro.
2443         (doc-end-macro, Sh, Ss): Use it.
2444         (Cd): Fix behaviour in synopsis.
2445         (In): Make it parsed and callable.
2446         If not in the synopsis, represent the C header file enclosed in
2447         angle brackets.
2448         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2449         Use minus, not hyphen.
2451         * tmc/groff_mdoc.man: Updated.
2453 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2455         Integrated grap2graph, contributed by Eric S. Raymond.
2457         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2458         New files.
2459         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2460         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2462 2003-07-01  Colin Watson  <cjwatson@debian.org>
2464         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2465         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2467 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2469         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2471 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2473         * doc/Makefile.sub (CLEANADD): Remove all files created by
2474         running `make groff.{pdf,dvi}'.
2476         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2477         src/xditview also.
2479 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2481         * Makefile.in (SHELL): Define as @SHELL@.
2482         (mkinstalldirs): Use $(SHELL).
2483         (MDEFINES): Add $(SHELL).
2484         * Makefile.comm (SHELL): Removed.
2486 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2488         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2489         The X11 documentation files use them.
2490         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2492 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2494         * tmac/e.tmac (@C): Handle .ad also.
2496 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2498         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2500         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2501         Assign `n' even here.  It is possible to construct a node
2502         immediately following an escape character:
2504           .di xx
2505           \?\\\?a
2506           .br
2507           .di
2508           .xx
2510 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2512         * README.WIN32: Removed.
2513         * MANIFEST: Updated.
2515 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2517         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2519 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2521         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2522         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2524 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2526         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2527         is done by the calling function.
2529 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2531         * tmac/X.tmac: Fix definition of `em'.
2533 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2535         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2536         argument.
2538 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2540         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2541         to make items work which consist only of a tag.
2543 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2545         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2546         aren't stretched in a tag (this can fail with unformatted boxes).
2547         Instead, insert a break and go back one line.
2549 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2551         * src/roff/troff/input.cc (return_macro_request): If called with
2552         argument pop macro twice.  We need this to trace `return'.
2554         * tmac/trace.tmac: Handle `return'.
2555         Fix typos.
2557         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2558         Document.
2560 2003-05-15  Larry Kollar  <kollar@alltel.net>
2562         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2563         registers `FPS', `FVS', and `FPD'.
2565 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2567         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2568         correctly.
2570 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2572         * tmac/groff_mdoc.man: Slight improvements.
2574 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2576         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2577         `doc-header-space' after header line if register `cR' is set.
2579 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2581         * TODO: Updated.
2583 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2585         * tmac/doc-common (Nd): Use \[em].
2587 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2589         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2590         doc-footer-space): Initialize to 0.5i.
2591         (doc-setup-page-layout): Don't set doc-header-space and
2592         doc-footer-space.
2594 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2596         * REVISION: Set to 1.
2598         * doc/pic.ms: Document possible problems with `figname'.
2600 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2602 Version 1.19 released
2603 =====================
2605         * VERSION: Set to 1.19.
2606         * REVISION: Set to 0.
2607         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2609         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2610         Define charset as `US-ASCII' in html output.
2612         * tmac/www.tmac (ULE): Add missing scaling indicator.
2614         * win32-diffs: Removed.
2616 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2618         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2619         `.da' and `.boxa'.
2620         Document how to insert discardable whitespace with `.ss'.
2622 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2624         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2625         work with plain TeX also.
2627         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2629 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2631         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2632         Use a loose DTD.
2634 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2636         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2637         vbox with positive height and zero depth if in TeX mode.
2639         * NEWS: Document glyph name changes for grodvi and grolj4.
2641 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2643         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2644         * doc/pic.ms: Fixed.
2646 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2648         HP-UX 10.20 has `snprintf' but it isn't declared.
2650         * configure.ac: Add declaration test for snprintf.
2651         * configure: Regenerated.
2652         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2653         * src/include/config.hin: Regenerated.
2655 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2657         Add keyword `figname' to pic, specifying the name of the picture
2658         box in TeX mode.  Based on a patch from William J Poser
2659         <wjposer@unagi.cis.upenn.edu>.
2661         * src/preproc/pic/pic.y: New token `FIGNAME'.
2662         (macro_name): New rule of type <str>.
2663         (placeless_element): Handle `FIGNAME'.
2664         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2665         * src/preproc/pic/main.cpp (graphname): New global variable.
2666         (do_picture): Initialize `graphname'.
2667         * src/preproc/pic/pic.h: Updated.
2668         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2669         `graphname'.
2670         Simplify TeX code.
2671         (tex_output::text): Beautify output.
2672         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2673         `shaded' and `outlined' unconditionally.
2674         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2675         Minor improvements.
2677         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2678         greater is necessary.
2680 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2682         Add option -r to soelim to avoid emission of `.lf' lines.
2683         Add option -t to produces TeX comment lines instead of `.lf' lines.
2685         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2686         and `tex_flag'.
2687         (usage): Updated.
2688         (main): Handle `-r' and `-t'.
2689         (set_location): Handle `raw_flag' and `tex_flag'.
2690         * src/preproc/soelim/soelim.man, NEWS: Updated.
2692 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2694         * tmac/hyphenex.sh: Replaced with...
2695         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2696         nightmares.
2698         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2699         if --quiet is used for the configure script.
2700         * configure: Regenerated.
2702 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2704         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2705         Add `const' to second argument.
2706         (html_printer::add_table_end): Add `const' to argument.
2707         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2708         `const' to arguments.
2709         * src/devices/grohtml/html-text.h: Updated.
2711         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2712         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2713         argument.
2715         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2716         cast for integer constant.
2718         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2719         (writeNbytes): Add `const' to first argument.
2720         (writeString): Add `const' to argument.
2721         (char_buffer::can_see): Add `const' to third argument.
2722         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2723         `const' to argument.
2724         * src/preproc/html/pushback.h: Updated.
2726         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2727         (include_path_append): Add `const' to argument.
2728         (do_file): Updated.
2730         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2731         for `value'.
2732         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2733         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2734         for `value'.
2735         (unicode_decompose_init::unicode_decompose_init): Updated.
2736         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2737         for `value'.
2738         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2739         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2740         argument.
2742         * tmac/hyphenex.sh: Make script more portable by using a here
2743         document.
2745 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2747         Renamed all `*.cc' files to `*.cpp'.
2748         Updated all configuration files, makefiles, and documentation.
2750 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2752         * tmac/hyphenex.sh: Slight improvements.
2754 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2756         * font/devascii/R.proto, font/devcp1037/R.proto,
2757         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2758         character slots with unnamed glyphs.
2760         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2761         (an-first): New global variable.
2762         (an-header): Emit vertical space between multiple man pages.
2764 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2766         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2767         values.
2769 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2771         * PROBLEMS: Revised.
2773 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2775         * doc/webpage.ms: Improved.
2777 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2779         Add register \n[.height] which returns the value of \H.
2780         Add register \n[.slant] which returns the value of \S.
2782         * src/roff/troff/env.cc (init_env_requests): Implement.
2783         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2784         Document.
2786 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2788         * tmac/html.tmac: Move some of the data into html-end.tmac.
2789         Remove most of the character translations for eqn since html fonts
2790         now cover those characters.
2791         Load www.tmac.
2792         * tmac/html-end.tmac: New file.
2793         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2794         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2795         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2797 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2799         * man/groff_out.man: Document negative values of `N' if -Thtml is
2800         used.
2802 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2804         * Makefile.comm (depend.temp): Check location of YTABC.
2806 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2808         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2809         binary path.
2810         (groff_bin_path): Rename to GROFF_BIN_PATH.
2811         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2812         * doc/Makefile.in (TROFFBIN): New variable for troff
2813         binary path.
2814         (GROFFBIN): New variable for groff binary path.
2815         (groff_bin_path): Rename to GROFF_BIN_PATH.
2816         (TROFF): Use TROFFBIN.
2817         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2818         * doc/Makefile.sub (GROFFBIN): New variable for groff
2819         binary path.
2820         (groff_bin_path): Rename to GROFF_BIN_PATH.
2821         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2823         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2824         with INSTALL_SCRIPT.
2825         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2826         * Makefile.dev (all): Depend on DEVSCRIPTS.
2827         (install_dev): Likewise.
2828         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2829         scripts.
2830         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2831         (DEVGENSCRIPTS): New variable to hold generated scripts.
2833 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2835         * src/libs/libdriver/input.cc (IntArray::operator[],
2836         IntArray::get_data): Remove meaningless `const' in return value.
2838         * README.CVS: New file.
2840 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2842         Check for stdint.h in C++, not in C.
2844         * aclocal.m4 (GROFF_STDINT_H): New function,
2845         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2846         AC_CHECK_HEADERS.
2847         * configure, src/include/config.hin: Regenerated.
2848         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2851         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2852         with a negative value, representing the width of the unbreakable
2853         space (only for -Thtml).  grohtml then converts this back to
2854         &nbsp; and uses the value of N as its width.
2856         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2857         unbreakable_space_node::tprint): Emit `N-<width>'.
2858         * src/include/printer.h (printer::set_numbered_char): Make it
2859         virtual.
2860         Make members `font_table' and `nfonts' protected instead of private.
2861         * src/devices/grohtml/post-html.cc
2862         (html_printer::set_numbered_char): New member function.
2865         * src/libs/libgroff/maxfilename.cc:
2866         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2868         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2869         emit word marker.
2871 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2873         * man/roff.man: Small fixes.
2875 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2877         Make groff independent from locale's numeric settings.
2879         * configure.ac: Check for `setlocale'.
2880         * configure, src/include/config.hin: Regenerated.
2882         * src/include/lib.h: Handle HAVE_SETLOCALE.
2884         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2885         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2886         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2889         * doc/groff.texinfo: Change dir category to `Typesetting'.
2890         (Man font macros): Mention that there is no space between arguments
2891         of .BI and friends.
2893         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2894         (*printer::change_color, *printer::change_fill_color): Add missing
2895         `const'.
2897 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2899         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2900         html_table::is_gap): Compute table widths after converting border
2901         positions to avoid rounding errors.
2903 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2905         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2906         `space_emitted' properly.
2908 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2910         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2911         (html_table::set_linelength): Don't add 1.
2912         (html_table::add_indent): Don't subtract 1.
2914         * tmac/html.tmac: Set default page offset to zero.
2916 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2918         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2920         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2921         unbreakable_space_node::tprint): New functions.
2922         (troff_output_file): Make space_char_hmotion_mode::tprint and
2923         unbreakable_space_node::tprint to friends.
2924         * src/roff/troff/node.h: Updated.
2926         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2927         in the HTML standard).
2929 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2931         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2932         Otherwise, the following code
2934           .di xxx
2935           .ps 10
2936           a
2937           .br
2938           .di
2939           x\*[xxx]
2941         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2942         font changes in diversions for -Thtml.
2944         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2945         `HTML-TAG'.
2946         (an-do-tag-html): Merge with ...
2947         (an-do-tag): This macro.
2948         Change code slightly to circumvent grohtml bug.
2949         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2951         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2952         html_table::is_gap): Round `width' properly.
2954         * tmac/html.tmac: Provide some default layout parameters for
2955         grohtml.
2957         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2958         command.
2960 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2962         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2964 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2966         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2967         defined.
2969 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2971         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2972         `.vs'.
2973         * doc/groff.texinfo: Updated.
2975 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2977         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2978         TOKEN_END_TRAP>: Reset `have_input'.
2980 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2982         * src/roff/groff/groff.man: Mention groff_trace man page.
2984 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2986         * Makefile.in (LIBEXT): New variable to indicate the file extension
2987         of library files.  Computed heuristically from $(OBJEXT).
2988         (MDEFINES): Add $(LIBEXT).
2989         * Makefile.lib, Makefile.comm: Use it.
2991         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
2992         overlong lines into smaller chunks.
2993         (get_binary): New function.
2994         (main): Use them.
2995         * src/utils/pfbtops/pfbtops.man: Updated.
2997 2003-03-15  Colin Watson  <cjwatson@debian.org>
2999         * src/roff/groff/groff.man: Minor syntax fix.
3001 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3003         * src/devices/grops/ps.cc (ps_printer::media_set,
3004         ps_printer::~ps_printer): Handle zero paper width and length.
3006 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3008         Add options -p and -l to grodvi.
3010         * src/devices/grodvi/dvi.cc: Include paper.h.
3011         (landscape_flag, user_paper_length, user_paper_width): New global
3012         variables.
3013         (dvi_printer::begin_page): Emit `papersize' special.
3014         Set color after initialization of `cur_h' and `cur_v'.
3015         (main): Add options `-l' and `-p'.
3016         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3017         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3019         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3021 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3023         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3024         * man/groff_tmac.man: This man page.
3025         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3026         deprecated.
3028         * tmac/X.tmac: Don't load pspic.tmac.
3030 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3032         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3033         by Bernd Warken <bwarken@mayn.de>.
3035         * src/include/driver.h (pr): Removed.
3037         * src/libs/libdriver/input.cc (pr): New global variable.
3038         (do_file): Deallocate `pr'.
3039         * src/libs/libdriver/printer.cc (pr): Removed.
3041         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3042         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3043         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3044         (main): Don't delete `pr'.
3046 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3048         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3049         * tmac/papersize.tmac: New file.
3050         * tmac/troffrc: Include `papersize.tmac'.
3051         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3052         * tmac/an-old.tmac: Set LT to LL by default.
3054         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3055         doc/groff.texinfo: Updated.
3057         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3058         bug which caused all odd iso papers to have wrong dimensions.
3060         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3061         (main) <'p'>: Set `user_paper_width' also.
3062         (ps_printer::media_width, ps_printer::media_height): Use values
3063         given with option `-p'.
3065 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3067         * src/include/nonposix.h: Provide default for SET_BINARY.
3069         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3070         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3071         unconditionally.
3073         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3074         (main): Treat \r\n as \n.
3076 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3078         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3079         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3081 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3083         Added support to access more than 256 glyphs in Type 1 fonts.
3085         * src/devices/grops/ps.cc (subencoding): New structure.
3086         (style): Add `sub' field.
3087         Updated all users.
3088         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3089         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3090         functions.
3091         Updated all users.
3092         (ps_printer::set_char): Use `set_subencoding'.
3093         (make_subencoding_name): New function.
3094         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3095         (ps_printer::~ps_printer): Emit subencoding definitions.
3097         * src/devices/grops/psrm.cc (valid_input_table): New array to
3098         properly support EBCDIC.
3099         (white_space): Add `\f'.
3100         (ps_get_line): Change first argument to be of type `string &'.
3101         Updated all callers.
3102         This allows to get lines of arbitrary length.
3103         Use `valid_input_table'.
3104         Remove warning about non-conforming PS line length.  This seems
3105         not to be of great importance -- for example, dvips don't emit
3106         a warning either.
3107         (PS_LINE_MAX): Removed.
3108         (matches_comment): Change first argument to be of type `string &'.
3110         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3112         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3113         %AGL_to_unicode, %default_ligatures): New hash tables.
3114         Read all map entries.
3115         Add unencoded characters.
3116         Check for default ligatures if there are no `L' entries.
3117         Print all kern entries.
3118         Print all characters in charset.
3119         * src/utils/afmtodit/afmtodit.man: Updated.
3121         * font/devps/*: Regerated all fonts.
3123         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3124         of characters, just use `.trin'.  Otherwise the mapping depends
3125         on the font encoding.
3126         * tmac/ps.tmac: Add `fi' and `fl'.
3127         Improve `Fi' and `Fl'.
3128         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3129         * tmac/Xps.tmac: Fix `em'.
3131         * NEWS: Updated.
3133 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3135         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3136         `have_input'.
3138 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3140         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3142         * font/devps/generate/textmap: Remove entry `similarequal'.
3143         * font/devps/symbolmap: Updated.
3145 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3147         * src/libs/libgroff/font.cc (font::load): Fix error message for
3148         bad character type.
3150         * src/devices/grops/grops.man: Improve documentation of the -b
3151         flag.
3153         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3154         `ascii' and `cp1047'.
3156 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3158         Document composite glyphs and the `composite' request.
3160         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3162 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3164         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3165         * font/devdvi/*EC: Updated.
3167         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3168         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3169         * tmac/troffrc: Load `composite.tmac'.
3170         * tmac/Makefile.sub (NORMALFILES): Updated.
3172         * doc/groff.texinfo (Input Encodings): New section.
3173         * NEWS: Updated.
3175 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3177         * doc/texinfo.tex: New version 2003-02-11.06.
3179         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3180         * tmac/groff_mdoc.man: Fix description of `Dt'.
3182 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3184         * font/devps/prologue.ps: Fix for included Postscript that does
3185         a setpagedevice -- which is now safely ignored.
3187         * NEWS: Updated.
3189         * src/devices/grops/ps.cc: Now sets the page size in the generated
3190         document.  This is done in two ways: Via a %%-comment for gv and
3191         the like, and via a PageSize and setpagedevice for programs that
3192         understands Postscript proper, like ps2pdf.
3194         * src/devices/grops/ps.h: New broken-flag to avoid page size
3195         definition, if required.
3197         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3199         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3200         Not really necessary due to the fix in prologue.ps, but cleaner:
3201         Such information does not belong in an .eps file.
3203         * doc/Makefile.sub: See doc/Makefile.in.
3205 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3207         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3208         instead of P1 since the latter is broken in some versions of netpbm.
3209         * configure: Updated.
3211 2003-02-26  Larry Kollar  <kollar@alltel.net>
3213         Make man pages more customizable.
3215         * tmac/an-old.tmac (FT): New register holding footer distance from
3216         bottom.
3217         (HF): New string holding the default heading font.
3218         (TH): Handle registers `IN' and `SN' set on the command line.
3219         Use `FT'.
3220         (PT, BT): New strings to customize header and footer lines.
3221         (an-header, an-footer): Use them.
3222         (SH, SS): Use `HF'.
3223         * tmac/groff_man.man: Document changes.
3225         * doc/groff.texinfo: Document man changes.
3226         Document Ultrix extensions of man.
3228 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3230         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3231         `have_input' after changing back to old environment.
3233         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3234         function up to be defined before first call.  This is necessary to
3235         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3237         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3238         the default font directory also.  Based on a patch from James
3239         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3240         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3241         * src/utils/afmtodit/afmtodit.man: Document it.
3243         * NEWS: Updated.
3245         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3247 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3249         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3250         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3251         * configure.ac: Use it.
3252         * configure: Regenerated.
3253         * Makefile.in: Updated.
3255         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3256         (CLEANADD): Add www.tmac-sed.
3257         (pnmtops_nosetpage): Define default.
3258         (install_data): Handle www.tmac-sed and substitute
3259         @PNMTOPS_NOSETPAGE@.
3260         (stamp-sed): Add www.tmac.
3261         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3262         It now breaks URLs at suitable places.
3263         (www:substring_ok): New register set by...
3264         (www:@test_substring): New macro.
3265         (www:error): New alias to www-error.
3266         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3267         New macros.
3268         (URL): Use www:url_breaks.
3269         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3270         (CDS, CDE): New macros.
3272 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3274         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3275         buffer overflow.
3277 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3279         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3280         can be negative also.
3282         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3283         `int16'.
3284         (read_char_table): Avoid negative ascenders.
3285         (output_charset): Add cast.
3286         * font/devlj4/*: Regenerated.
3288         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3289         possible.
3291         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3292         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3293         of `<>'.
3294         * font/devdvi/*: Regenerated.
3296         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3297         normal width, while the previously used characters (U+2329 and
3298         U+232A) are classified as wide due to canonical equivalence with the
3299         CJK punctuation characters U+3008 and U+3009.
3301         * font/devutf8/R.proto: Updated.
3302         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3304         * man/groff_char.man: Simplify handling of table traps by
3305         introducing `start block' and `end block' macros.
3306         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3307         (DL): Make it work with Unix troff also.
3308         Fix code values of `la' and `ra'.
3310         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3312 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3314         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3315         New destructor, fixing a major memory leak.
3317 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3319         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3320         to be in conformance with Unicode 3.0 and newer.
3322         * font/devlj4/generate/text.map: Add `Eu'.
3323         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3324         * font/devlj4/S: Regenerated.
3326         * man/groff_char.man: Completely rewritten.
3328         * doc/groff.texinfo: Fix description of request and macro arguments.
3330 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3332         Valgrind fixes.
3334         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3335         Deallocate `columns' list.
3336         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3337         New destructor.
3338         (text_glob::text_glob_html, text_glob::text_glob_special,
3339         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3340         text_glob::text_glob_tag): Avoid memory leaks.
3341         (text_glob::remember_table): Free memory before reassigning.
3343 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3345         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3346         alias `hbar'), the Planck constant over two pi.
3348         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3349         `+e' for position 34.
3350         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3351         `u2662' and `u2661'.
3352         * font/devdvi/{MI,S}: Regenerated.
3353         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3354         * font/devlbp/*: Add `hbar' alias.
3355         * font/devlj4/generate/special.map: Ditto.
3356         * font/devlj4/S: Regenerated.
3357         * font/devps/generate/symbolchars: Add `+e'.
3358         * font/devps/generate/textmap: Fix PS name for `-h'.
3359         Add `hbar' alias.
3360         * font/devps/symbolmap: Regenerated.
3362         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3364         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3365         `-h', `hbar'.
3366         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3367         `-h'.
3369         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3370         `hbar'.
3371         * tmac/tty-char.tmac: Add `+e'.
3373 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3375         Another round trying to really fix problems with `have_input'.
3377         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3378         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3380         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3381         handling if both foreground and background colors are default.
3383         * doc/groff.texinfo (Debugging): Document .lf differences to
3384         AT&T troff.
3386 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3388         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3389         null-bytes in created string.
3391         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3392         alias_macro, lookup_request): Improve warning messages.
3394         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3395         not `strdup'.
3396         Free `last_image_filename'.
3398         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3399         `buffer'.
3400         (imageList::createPage, imageList::createImage): Use `free', not
3401         `a_delete'.
3402         (imageItem::~imageItem): Free `imageName'.
3403         (addRegDef): Use `strsave', not `strdup'.
3404         (get_resolution): Free `pathp'.
3406 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3408         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3409         to `dummy'.
3411 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3413         Add memory management for colors to deallocate unnamed colors
3414         properly.
3416         * src/include/color.h (color): New members `free_list' and `next'.
3417         New member functions `new' and `delete'.
3418         Add destructor.
3419         * src/libs/libgroff/color.cc: Implement it.
3421         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3422         for array size of new operator.
3424         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3425         redundant comparison.
3427         * src/roff/troff/input.cc (word_space_node::reread,
3428         hmotion_node::reread): Avoid warning about unused parameter.
3429         (reset_output_registers): Remove redundant parameter.
3430         (define_color): Undo change 2003-02-12.
3432         * src/roff/troff/reg.h: Updated.
3434         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3435         output_file::put_filename, real_output_file::really_put_filename,
3436         ascii_output_file::really_print_line,
3437         break_char_node::get_hyphen_list): Avoid warning about unused
3438         parameter.
3439         (suppress_node::tprint): Updated.
3441         * configure.ac: Check declaration for rand() and srand().
3442         * configure: Regenerated.
3444         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3445         conditionally.
3446         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3447         and srand().
3449         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3450         to avoid compiler warnings.
3452         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3453         unused.
3455         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3456         is unused.
3457         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3458         (unused) parameter.
3459         Updated all callers.
3461         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3462         is unused.
3463         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3464         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3466         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3467         Parameter is unused.
3468         (html_printer::add_table_end): Define parameter conditionally.
3469         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3470         is unused.
3472         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3473         (lbp_printer::set_char): Last parameter is unused.
3475         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3477 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3479         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3480         Make \D'f ...' move horizontally again for backwards compatibility.
3481         Replace it with \D'Fg ...' where appropriate to avoid dependency
3482         on horizontal resolution.
3484         * src/roff/troff/input.cc (do_get_long_name): New function.
3485         (get_long_name): Call it.
3487         (read_draw_node): Handle `\D'Fx ...' by calling ...
3488         (read_color_draw_node): New function.
3490         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3491         `end'.
3492         Pass it to `do_get_long_name' which is used instead of
3493         `get_long_name'.
3495         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3496         unnecessary value guard.
3497         (parse_D_command) <'f'>: Add horizontal shift.
3499         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3500         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3501         (FILL_MAX): Removed.
3503         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3504         Updated.
3506 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3508         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3509         do_zero_width): Push `\n' if closing delimiter is missing.
3511         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3512         <'F'>: Make \F non-transparent at the beginning of line.
3513         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3514         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3515         `have_input'.
3517         (define_color): Free color in case of reassignment.
3519         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3520         @DefescListEnd): Use @Var, not @var.
3521         Fix all calls.
3523         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3525         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3526         `shaded' and `outlined' arrays.
3527         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3528         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3529         Use strsave.
3530         (closed_object::set_fill_color): Ditto.
3531         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3532         instead of strdup.
3533         (troff_output::reset_color): Use a_delete instead of free.
3534         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3536 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3538         * doc/groff.texinfo: Improve documentation of `ad'.
3539         Document that \D'f...' is dependent on the horizontal resolution.
3540         * man/groff_diff.man: Improve documentation of \D'f...'.
3542         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3543         compensating \h'...' for \D'f ...' since the latter no longer moves
3544         current position.
3545         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3547 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3549         Improve error messages for `x F' (and `F') commands.
3551         * src/include/error.h: Add declaration for
3552         `current_source_filename'.
3553         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3554         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3555         parameter for source file string.
3556         Updated all callers.
3558         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3559         (remember_source_filename): New function.
3560         (parse_x_command <'F'>, do_file <'F'>): Use it.
3562 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3564         Make grotty not emit warnings about unknown colors more than
3565         necessary.
3567         * src/devices/grotty/tty.cc: Include `ptable.h'.
3568         (TTY_MAX_COLORS): Removed.
3569         (DEFAULT_COLOR_IDX): Defined to -1.
3570         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3571         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3572         Change `tty_colors' to be a ptable.
3573         First arg of `put_color' is now `char'.
3574         New functions `make_rgb_string' and `tty_color'.
3575         (tty_printer::tty_printer): Use `tty_color'.
3576         (tty_printer::color_to_idx): Return value is now `char'.
3577         Use `tty_color'.
3579         * src/include/color.h (color): Add `print_color' member function.
3580         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3582 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3584         Valgrind fixes.
3586         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3587         encoding file.
3589         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3590         assume that value has been allocated with `new[]', thus use
3591         `a_delete' for deallocation.
3593         * src/libs/libdriver/input.cc (get_integer_arg,
3594         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3595         where appropriate.
3597         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3598         * src/libs/libgroff/nametoindex.cc
3599         (character_indexer::named_char_index): Use `new <type>[1]'.
3601         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3602         <type>[1]'.
3603         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3604         (split_text): Use `a_delete'.
3606         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3607         <type>[1]'.
3609         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3610         harmless memory leak.
3611         (hyphen_trie::read_patterns_file): Initialize `buf'.
3612         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3613         Initialize `current_fill_color'and `current_glyph_color'.
3614         * src/roff/troff/glyphuni.cc
3615         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3616         * src/roff/troff/uniuni.cc
3617         (unicode_decompose_init::unicode_decompose_init): Ditto.
3618         * src/roff/troff/uniglyph.cc
3619         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3621 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3623         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3624         `access' before calling `unlink'.
3625         (do_file): Handle __EMX__.
3627         * src/include/nonposix.h: Handle __EMX__.
3629         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3630         (fontpath,tmacpath): Use it.
3631         (MDEFINES): Add it.
3632         Sorted alphabetically.
3634         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3635         @SEP@.
3636         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3637         @SEP@.
3639 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3641         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3642         New files, copied from gnulib.
3643         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3644         * configure.ac: Updated.
3645         * configure: Regenerated.
3647         * src/include/config.hin: Regenerated.
3648         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3649         Don't define `strcasecmp' as `strcmp'.
3650         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3651         Dont define `strncasecmp' as `strncmp'.
3653         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3654         Removed.
3656 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3658         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3659         s/unline/unlink/.
3661 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3663         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3665 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3667         Add US-english hyphenation exceptions (converted from Barbara
3668         Beeton's hyphenation exception log reports which appear irregularly
3669         in TUGBoat).
3671         * tmac/hyphen.us: Updated to latest version.
3672         * tmac/README: Updated.
3673         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3674         * tmac/troffrc: Load `hyphenex.us'.
3675         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3676         * doc/groff.texinfo: Updated.
3678 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3680         Improve hyphenation slightly.  This is a first step in redesigning
3681         the hyphenation algorithm to make it more flexible (e.g. allowing
3682         kerns and ligatures between the hyphenation character and the
3683         following character -- while not used normally in English, other
3684         languages like German would benefit).
3686         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3687         assertion instead of if-clause.
3688         Let `get_hyphen_list' return the number of involved characters in
3689         the hyphenation pattern instead of computing it directly (which
3690         often yields too small values).
3691         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3692         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3693         parameter.
3695 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3697         Fixing a bug which caused groff to hang if the hyphenation exception
3698         dictionary tried to grow.
3700         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3701         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3702         pointer to dictionary.
3704 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3706         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3707         negative left italic correction.
3708         * src/utils/afmtodit/afmtodit.man: Document it.
3710         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3711         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3712         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3714         * NEWS: Updated.
3716 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3718         * NEWS: Updated.
3720 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3722         * src/preproc/refer/refer.man: Mention REFER environment variable.
3724 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3726         Similar to \[is], the square root glyph (\[sr]) and the square root
3727         extension glyph (\[radicalex]) are now text symbols.  The new
3728         mathematical versions are called \[sqrt] and \[sqrtex],
3729         respectively.
3731         * font/devX*/S: Regenerated.
3732         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3733         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3734         * font/devdvi/EX, font/devdvi/S: Regenerated.
3735         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3736         * font/devlj4/generate/special.map: Add `sqrt'.
3737         * font/devlj4/S: Regenerated.
3738         * font/devps/generate/textmap: Add `sqrt'.
3739         * font/devps/S, font/devps/symbolmap: Regenerated.
3741         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3742         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3743         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3744         overlap horizontally.
3746         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3747         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3748         Fix `radicalex'.
3750         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3751         and `sqrtex' are overlapping glyphs.
3753 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3755         * font/devdvi/generate/texsy.map: Add `is'.
3756         * font/devps/symbolmap: Regenerated.
3757         * font/devdvi/*TC, MI, S: Regenerated.
3759         * tmac/dvi.tmac: Remove `is'.
3761 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3763         `is' is now a text symbol (only relevant for dvi).  The math variant
3764         can be accessed with `integral'.
3766         * font/devX*/S: Regenerated.
3767         * font/devdvi/generate/texex.map: Remove `is'.
3768         * font/devdvi/EX: Updated.
3769         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3770         * font/devlj4/generate/special.map: Ditto.
3771         * font/devlj4/S: Regenerated.
3772         * font/devps/generate/textmap: Add `integral'.
3773         * font/devps/S: Regenerated.
3775         * tmac/dvi.tmac: Define `is'.
3777         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3779         * src/preproc/tbl/main.cc (process_format): Fix error message.
3781 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3783         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3784         * font/devps/textmap: Fix entries for `ne' and `nc'.
3785         * font/devps/symbolmap: Regenerated.
3787         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3788         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3789         `38', `58', `78', `-+', `|=', `nc', `ne'.
3791         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3792         Use `schar' for `aq'.
3793         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3794         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3795         * tmac/tty.tmac: Add `ne'.
3797         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3798         for fallback glyphs.
3800 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3802         Add glyph `|='.
3804         * font/devX*/*: Regenerated.
3805         * font/devdvi/generate/ec.map: Remove `eq'.
3806         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3807         Assign `|=' to position 39.
3808         * font/devdvi/*EC, S: Regenerated.
3809         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3810         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3811         Assign `|=' to position 549.
3812         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3813         `equalmath'.
3814         Add `uni2243' for `|='.
3816         * tmac/ec.tmac: Add `eq'.
3817         * tmac/dvi.tmac: Add `=~'.
3818         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3819         `|='.
3821 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3823         * font/devdvi/generate/tc.map: Remove `**'.
3824         * font/devdvi/*TC: Regenerated.
3825         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3826         `78', `<<', `>>'.
3827         * font/devutf8/NOTES: Updated.
3829         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3830         Don't give default parameter to `set_macro'.
3831         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3832         instead of `set_macro'.
3833         (charinfo::setx_macro): Implement it.
3834         (charinfo::set_macro): Don't change `mode'.
3836         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3837         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3838         * tmac/dvi.tmac: Define `!=' with `.schar'.
3840 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3842         * font/devX*/S: Regenerated.
3843         * font/devdvi/generate/ec.map: Remove `pl'.
3844         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3845         * font/devdvi/*{TC,EC}: Regenerated.
3846         * font/devhtml/R.proto: Add `-+'.
3847         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3848         * font/devlbp/*: Remove `or'.
3849         * font/devlj4/generate/special.map: Remove `or'.
3850         * font/devlj4/S: Regenerated.
3851         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3852         `seveneighths', `threeeighths'.
3853         Remove `plusmath'.
3854         Replace `minusplus' with `uni2213'.
3855         * font/devps/symbolmap: Regenerated.
3856         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3857         Add `-+'.
3859         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3860         function.
3861         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3862         Call glyph_color and fill_color even if tcommand_flag isn't set.
3863         (make_node, node::add_char): Check not ci->is_fallback but
3864         ci->is_normal.
3866         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3867         * tmac/ec.tmac: Add .rchar entry for `f/'.
3868         Don't remove `12', `14', `34'.
3869         Define `pl' to be always roman.
3870         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3871         Define `18', `38', `58', `78'.
3872         * tmac/tty.tmac: Add `-+'.
3873         * tmac/dvi.tmac: Define `f/'.
3874         (dvi-frac): Use `f/'.
3875         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3876         Define `18', `38', `58', `78'.
3878 2002-12-15  Colin Watson  <cjwatson@debian.org>
3880         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3882 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3884         Add glyph `tno', a textual variant of `no'.
3886         * font/devX*/*: Regenerated.
3887         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3888         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3889         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3890         * font/devdvi/*: Regenerated.
3891         * font/devlbp/*: Add `tno'.
3892         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3893         * font/devlj4/*: Regenerated.
3894         * font/devps/generate/textmap: Replace `no' with `tno'.
3895         * font/devps/generate/symbolchars: Add `no'.
3896         * font/devps/*: Regenerated.
3898         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3900         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3901         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3903         * NEWS: Updated.
3905         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3906         Add definition for `sd'.
3907         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3909         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3911 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3913         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3914         mode to avoid rounding errors.
3915         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3917         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3918         src/roff/troff/troff.man: Improve documentation of -T.
3920 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3922         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3923         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3925 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3927         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3928         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3929         Scaling Euro.sansserif glyphs down to have the same height as
3930         digits.
3931         Removed unnecessary points; added some extrema.
3933         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3934         Regenerated.
3936 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3938         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3939         and `Euro.symbol.bold.slanted'.
3940         Improve some glyph offsets and widths.
3941         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3942         Regenerated.
3943         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3944         typo.
3945         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3946         direcory.
3948         * tmac/europs.tmac: Updated to new glyph indices.
3949         Use Euro.symbol for font familiy `A'.
3951         * doc/groff.texinfo: Minor improvements.
3953 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3955         * font/devdvi/generate.tc.map: s/%O/%0/.
3956         * font/devdvi/*TC: Regenerated.
3958         * src/roff/troff/div.cc (init_div_requests): Sorted.
3960         * tmac/dvi.tmac: Remove `Ye'.
3961         * tmac/ec.tmac: Remove `Ye'.
3962         Add .rchar entry for `de'.
3964         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3965         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3966         * NEWS: Updated.
3968 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3970         Add PS font for various Euro glyphs.
3972         * font/devps/generate/freeeuro.sfd: New master font file for
3973         pfaedit.
3974         * font/devps/generate/sfdtopfa.pe: New conversion script for
3975         pfaedit.
3976         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3977         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3978         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3979         `freeeuro.sfd'.
3980         * font/devps/EURO: Generated from `freeeuro.afm'.
3981         * font/devps/download: Add `freeuro.pfa'.
3982         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3983         `freeeuro.pfa'.
3985         * tmac/europs.tmac: New file.
3986         * tmac/ps.tmac: Include `europs.tmac'.
3987         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3989 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3991         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3992         * font/devdvi/S: Regenerated.
3993         * font/devhtml/R.proto: Fix `CR' and `ci'.
3994         Add `OK'.
3995         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3996         Remove `bs'.
3997         * font/devps/symbolmap: Regenerated.
3998         * font/devutf8/R.proto: Fix `CR' and `ci'.
3999         Add `OK'.
4000         * font/devutf8/NOTES: Updated.
4002         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4003         `ci'.
4004         Add `OK'.
4005         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4007         * tmac/dvi.tmac: Add `lh' and `rh'.
4008         * tmac/Xps.tmac: Fix `lh' and `rh'.
4009         * tmac/X.tmac: Add `OK'.
4010         * tmac/lj4.tmac: Ditto.
4012 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4014         * font/devX*/S: Regenerated.
4015         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4016         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4017         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4018         * font/devdvi/S: Regenerated.
4019         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4020         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4021         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4022         `bracketleftbt', `bracketrighttp', `bracketrightex',
4023         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4024         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4025         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4026         `rb', and `bv'.
4027         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4028         * font/devutf8/NOTES: Updated.
4029         * font/devlj4/generate/special.map: Add glyph `braceex'.
4030         * font/devlj4/S: Regenerated.
4032         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4034 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4036         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4037         and `vA'.
4038         Fix code for `an'.
4039         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4041         * doc/texinfo.tex: New version from texinfo 4.3.
4042         * doc/groff.texinfo: Updated for texinfo 4.3.
4043         Use @tie{} where appropriate.
4044         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4045         * font/devdvi/generate/tc.map: Remove `rn'.
4046         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4047         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4048         Fix code for `an'.
4049         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4050         font/devX75-12/*: Regenerated.
4052         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4053         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4054         Improve definition of `an'.
4055         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4056         `ru'.
4057         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4058         * tmac/X.tmac: Add definition for `or'.
4059         * tmac/Xps.tmac: Undo change 2002-11-05.
4060         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4062 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4064         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4065         call flush_tbuf.
4067 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4069         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4070         defines a glyph which is searched after the check for fonts declared
4071         with `.special' (and before the check for all mounted special
4072         fonts).  `fschar' defines a glyph for a particular font which is
4073         searched after the check for fonts declared with `.fspecial' (and
4074         before the check for fonts declared with `.special').  `rfschar'
4075         removes glyphs defined with `fschar'.
4077         * src/roff/troff/token.h (char_mode): New enum.
4078         Declare do_define_character.
4079         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4080         `mode'.
4081         (charinfo::is_fallback): Updated.
4082         (charinfo::is_special): New method.
4083         * src/roff/troff/input.cc (do_define_character): Add and use
4084         optional second parameter used as a prefix for font-specific glyph
4085         names.
4086         (define_character, define_fallback_character): Updated.
4087         (define_special_character): New function.
4088         (init_input_requests): Add `schar'.
4089         (charinfo::charinfo, charinfo::set_macro): Updated.
4090         * src/roff/troff/node.cc: Include `stringclass.h'.
4091         (make_glyph_node): Handle special glyphs defined with `.schar' and
4092         `.fschar'.
4093         (define_font_special_character, remove_font_special_character): New
4094         functions.
4095         (init_node_requests): Sorted.
4096         Add `fschar' and `rfschar'.
4097         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4098         Document new requests.
4100         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4101         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4103 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4105         Added new font `SC' (cmtex10) to devdvi.
4107         * devdvi/generate/Makefile (FONTS): Add `SC'.
4108         (SC): New rule.
4109         * devdvi/generate/textex.map: New map file for cmtex.
4110         * devdvi/SC: New.
4111         * devdvi/Makefile.sub (DEVFILES): Updated.
4112         * tmac/dvi.tmac: Add fspecial entries for SC.
4113         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4114         found before `S' since the font position of `SC' is lower due to the
4115         gaps in DESC's `font' line.
4116         * tmac/ec.tmac: Add a `special' call.
4117         * NEWS: Updated.
4119         * font/devhtml/R.proto: Remove double entry for `ti'.
4120         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4121         * tmac/tty-char.tmac: Remove entry for `bq'.
4122         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4123         * tmac/ec.tmac: Don't remove `aq' glyph.
4124         * tmac/X.tmac: Fix entry for `em'.
4125         Add entries for `fo' and `fc'.
4126         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4128         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4129         documentation of `special' and `fspecial' requests.
4131 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4133         * font/devascii/R.proto, font/devcp1047/R.proto,
4134         font/devlatin1/R.proto: Remove entry for `.i'.
4135         * font/devdvi/generate/textt.map: Add entry for `ad'.
4136         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4137         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4138         We need this for getting kerning values to compose `/l' and `/L'.
4139         * font/devdvi: Regenerated font definition files for CM fonts.
4140         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4141         * font/devutf8/R.proto: Ditto.
4142         Remove double entry for `ti'.
4144         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4145         for (groff) ligatures, `la', and `ra'.
4146         Add "'C", "'c", `IJ', and `ij'.
4147         Remove double entry for `ti'.
4148         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4149         double entries.
4150         Add "'C", "'c", `IJ', and `ij'.
4151         Fix entries for (groff) ligatures, `la', and `ra'.
4153         * tmac/ps.tmac (ps-achar): New macro.
4154         Define "'c" and "'C".
4155         * tmac/tty.tmac: Add entry for `.i'.
4156         * tmac/X.tmac (X-achar): New macro.
4157         Define "'c", "'C", and `:Y'.
4158         Add entries for `IJ' and `ij'.
4159         * tmac/Xps.tmac (Xps-achar): New macro.
4160         Define "'c" and "'C".
4161         Add entries for `IJ' and `ij'.
4162         * tmac/lbp.tmac (lbp-achar): New macro.
4163         Add fallback characters for all groff ligatures and many other
4164         glyphs.
4165         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4166         Add entries for `/l' and `/L'.
4167         Define "'c" and "'C".
4168         Add entries for `IJ' and `ij'.
4170 2002-11-02  Larry Kollar  <kollar@alltel.net>
4172         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4174 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4176         Adding support for composite glyphs: \[xxx yyy ...] and the
4177         `composite' request.
4179         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4180         to Unicode-based glyph names.
4181         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4182         glyph names to groff glyph names.
4183         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4184         Unicode-based glyph names.
4185         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4186         for handling Unicode glyph names.
4187         * src/roff/troff/input.cc: Include unicode.h.
4188         (composite_glyph_name): New function.
4189         (token::next) <'['>: Handle Unicode glyph names and composite
4190         glyphs.
4191         (composite_dictionary): New dictionary for the `composite' request.
4192         (composite_request): Implement `composite' request.
4193         (init_input_requests): Add `composite'.
4194         Alphabetically sorted.
4195         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4196         commented out).
4197         (init_env_requests): Alphabetically sorted.
4198         Removed `tas' and `tar' (already commented out).
4199         * src/roff/troff/Makefile.sub: Updated.
4201 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4203         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4204         of options.
4206 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4208         Fix computation of .trunc register.  Additionally, its value (and
4209         the value of the .ne register) is now always set before entering the
4210         trap.
4212         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4213         `needed_space' before calling `space'.
4214         (top_level_diversion::space): Remove special code for 'sp before the
4215         first page.
4216         Call `begin_page' with the discarded space as a parameter.
4217         (top_level_diversion::begin_page): Add optional parameter to set
4218         `truncated_space'.
4219         * src/roff/troff/div.h: Updated.
4221         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4222         \n[.ne].
4224         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4225         (LP): Remove superfluous call to `br'.
4226         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4227         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4229 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4231         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4232         (doc-setup-header): Don't set page register `%'.
4233         * tmac/doc-nroff: Remove variable `C'.
4234         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4235         (doc-setup-header): Don't set page register `%'.
4236         Don't call `bp'.
4237         * tmac/doc-common (doc-header): Call `ns'.
4238         (doc-paragraph): Protect .sp with .br so that it survives traps
4239         possibly set by the user.
4240         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4242         * tmac/doc*: Replace ' with . for consistency if no effect.
4244 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4246         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4247         so that it survives traps possibly set by the user.
4249         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4250         (troff_output_file::set_font): Call flush_tbuf if necessary.
4251         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4252         flush_tbuf and do_motion only if necessary.
4253         (troff_output_file::start_special,
4254         troff_output_file::put_char_width, troff_output_file::put_char,
4255         troff_output_file::draw): Updated.
4256         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4257         vmotion_node::tprint): Undo change 2002-10-23.
4259 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4261         * tmac/www.tmac (DC): Fix case of overlapping images.
4263 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4265         * src/roff/troff/node.cc (troff_output_file::fill_color,
4266         troff_output_file::glyph_color): Set current color before testing
4267         color_flag.
4268         (troff_output_file::put_char_width, troff_output_file::put_char,
4269         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4270         before glyph_color.
4271         (troff_output_file::file_color, troff_output_file::glyph_color):
4272         Call do_motion.
4273         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4274         vmotion_node::tprint): Move first, then call fill_color.
4276 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4278         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4279         possible to use multiple main macro packages.
4281 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4283         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4284         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4285         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4286         is set.
4287         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4288         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4290 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4292         * NEWS, doc/webpage.ms: Updated.
4294 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4296         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4297         troff_output_file::put_char, troff_output_file::fill_color,
4298         troff_output_file::glyph_color): Handle case where color pointer
4299         is null.
4301 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4303         Add the new -r option to grotty.  It is similar to the -i option
4304         except it tells grotty(1) to use the "reverse video" attribute to
4305         render italic fonts.
4307         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4308         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4309         (tty_printer::make_underline, tty_printer::put_color,
4310         tty_printer::end_page): Use it.
4311         (main): Add -r switch.
4312         (usage): Updated.
4313         * src/devices/grotty/grotty.man: Document it.
4315 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4317         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4318         cast to `unsigned char' to properly read patterns with 8bit
4319         characters.
4321 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4323         * REVISION: Increased to 2.
4325 Version 1.18.1 released
4326 =======================
4328 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4330         * doc/webpage.ms, NEWS: Updated.
4332 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4334         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4335         suppress additional whitespace after the header.
4337         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4338         with NetBSD.
4340         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4342 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4344         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4345         (Dt): Use it to improve language localization (especially Russian
4346         and French).
4348 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4350         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4351         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4352         drawing commands.
4353         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4354         curve type.
4355         Call `picurve' for BSPLINE.
4356         (HGPrintElt): Handle BSPLINE.
4357         * src/preproc/grn/README: Document it.
4359 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4361         * src/roff/troff/node.cc (break_char_node::col): New variable.
4362         Updated constructor.
4363         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4364         unconditionally.
4365         (space_node::space_node): Remove assertion.
4366         (break_char_node::add_self): Pass color argument to space node.
4367         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4368         Ditto.
4369         * src/roff/troff/env.cc (environment::do_break,
4370         environment::add_padding): Ditto.
4372 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4374         Redesigning color support in troff.  Colors are no longer
4375         represented as separate nodes but are now part of glyph nodes and
4376         friends.  This fixes the current formatting misbehaviour due to the
4377         changes introduced on 2002-09-20.  Some extra code is necessary for
4378         proper grotty support: Without adding color variables to
4379         space-related nodes, the background color would be changed too late.
4381         * src/roff/troff/node.h, src/roff/troff/node.cc:
4382         s/current_pagecolor/current_fill_color/.
4383         s/current_glyphcolor/current_glyph_color/.
4384         (glyph_color_node, fill_color_node): Removed.
4385         (node::get_glyph_color, node::get_fill_color): New virtual member
4386         functions.
4387         (space_node::col): New variable.
4388         Updated constructors of space_node and derived classes accordingly.
4389         (hmotion_node::col): New variable.
4390         Updated constructors of hmotion_node and space_char_hmotion_node
4391         accordingly.
4392         (vmotion_node::col): New variable.
4393         Updated constructor accordingly.
4394         (draw_node::gcol, draw_node::fcol): New variables.
4395         Updated constructor accordingly.
4396         (special_node::gcol, special_node::fcol): New variables.
4397         Updated constructors accordingly.
4398         (troff_output_file::put_char, troff_output_file::put_charwidth,
4399         troff_output_file::draw): Set glyph and fill color.
4400         (troff_output_file::start_special): Set glyph and fill color.
4401         Always set current font.
4402         (troff_output_file::fill_color, troff_output_file::glyph_color):
4403         Don't call `do_motion'.
4404         (glyph_node::gcol, glyph_node::fcol): New variables.
4405         Updated constructors of glyph_node and ligature_node accordingly.
4406         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4407         member functions.
4408         (glyph_node::merge_glyph_node,
4409         kern_pair_node::add_discretionary_hyphen,
4410         node::add_discretionary_hyphen): Updated.
4411         (break_char_node::merge_self): Updated.
4412         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4413         vmotion_node::tprint): Handle color.
4414         (make_glyph_node, make_node, node::add_char): Updated.
4416         * src/roff/troff/env.cc (environment::space_newline,
4417         environment::space, environment::output_line, environment::do_break,
4418         environment::make_tab_node, environment::add_padding, title):
4419         Updated.
4420         (environment_switch, environment_copy): Don't add color nodes.
4422         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4423         nothing.
4424         (token::next): Updated.
4425         \m and \M now are as transparent as \s.
4426         (process_input_stack, token::add_to_node_list, token::process,
4427         read_draw_node): Updated.
4428         (charinfo_to_node_list): Don't add color nodes.
4430         * doc/groff.texinfo: Updated.
4432 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4434         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4435         strings.
4437 2002-09-27  Colin Watson  <cjwatson@debian.org>
4439         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4441 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4443         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4444         appropriate.
4445         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4446         (linewidth_factor): New global variable.
4447         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4448         linewidth_factor.
4449         (long_options): Add -w/--linewidth option.
4450         (usage): Updated.
4451         (main): Handle -w option to set linewidth_factor.
4452         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4453         line_thickness.
4455         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4457 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4459         Fixed a bug in the line thickness setting code.
4461         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4462         variable.
4463         (lbp_printer::set_line_thickness): Pass environment as second
4464         parameter.
4465         Implement it actually.
4466         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4467         and `set_line_thickness, depending on the current font size.
4469 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4471         Some Debian patches.
4473         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4474         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4475         `list->last'.
4477 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4479         * configure: Regenerated with autoconf 2.54.
4481 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4483         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4484         glyph_color.
4485         Rename cur_fill_color to fill_color.
4486         * src/roff/troff/env.cc: Updated.
4488 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4490         * src/roff/troff/env.cc (title): Copy color status after processing
4491         title.
4492         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4493         fill color nodes to reset colors properly.
4495         * tmac/www.tmac (DC): Fix color handling.
4497         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4498         * doc/groff.texinfo: Fixing documentation of `tl' request.
4499         * doc/webpage.ms: Updated.
4501 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4503         * src/roff/troff/env.cc (environent_switch, environment_copy):
4504         Emit glyph and fill color nodes to initialize colors properly.
4506 2002-09-17  Colin Watson  <cjwatson@debian.org>
4508         * src/roff/troff/env.cc (environment::set_glyph_color,
4509         environment::set_fill_color): Fix typo which prevented \m[] work
4510         correctly.
4512 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4514         Add left and right italic correction to non-slanted PS fonts.  This
4515         is an experimental feature to improve image rendering of grohtml.
4517         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4518         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4519         * font/devps/*: All non-slanted fonts regenerated.
4520         * NEWS: Updated.
4522 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4524         Add a site-specific font directory.
4526         * Makefile.in (localfontdir, legacyfontdir): New variables.
4527         (fontpath): Use them.
4528         (MDEFINES, uninstall_dirs): Updated.
4529         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4530         Remove `FONTPATH' and `MACROPATH'.
4532         * src/roff/troff/troff.man, NEWS: Updated.
4533         * doc/groff.texinfo (Font Directories): New section.
4534         Other minor fixes.
4536         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4537         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4538         src/preproc/grn/grn.man: Minor fixes.
4540         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4541         Remove unused variable.
4543 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4545         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4546         * man/groff_out.man: Fix documentation of 'N'.
4548 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4550         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4551         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4552         set.
4553         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4554         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4555         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4556         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4557         PRE_TAG>: Call `begin' with `FALSE'.
4559 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4561         * src/libs/libgroff/string.cc (string::extract): Fix position of
4562         terminating null byte.
4564 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4566         Add global option `nospaces' to tbl so that leading and trailing
4567         spaces in data items are ignored.
4569         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4570         function to remove leading and trailing spaces.
4571         * src/include/stringclass.h: Updated.
4573         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4575         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4576         option.
4577         Fix typo in error messages.
4578         (process_data): Implement `nospaces' option.
4579         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4581 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4583         * src/include/config.hin: Add `HAVE_ISATTY'.
4584         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4585         `fname' member.
4586         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4587         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4588         `operator!=' for `char'.
4589         * doc/groff.texinfo: Replace @ifnottex block for top node with
4590         @ifhtml block.
4592 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4594         * doc/Makefile.in (.texinfo.html): Add -I switch.
4595         * doc/groff.texinfo: Add @ifnottex block for top node to make
4596         translation to HTML work.
4598 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4600         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4601         (get_papersize, determine_vertical_offset): Removed.
4602         (char_buffer::do_image): Always specify letter size.
4603         (main): Updated.
4604         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4605         -sPAPERSIZE.
4607 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4609         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4610         default indentation.
4612 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4614         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4615         -sPAPERSIZE for gs.
4616         (generateImages): Clean up push-back buffer.
4618 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4620         * doc/groff.texinfo: Minor fixes.
4622 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4624         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4625         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4626         (gsPaper): Removed.
4627         (determine_vertical_offset): Use LETTER_LENGTH.
4628         (createPage): Moved to ...
4629         (imageList::createPage): This.
4630         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4631         (imageList::getMaxX): New function.
4632         (createImage): Moved to ...
4633         (imageList::createImage): This.
4634         (imageList::createImages): New function.
4635         (generateImages): Read `maxx' directly.
4636         Updated.
4637         (scanArguments): Don't specify `gsPaper' for `-o'.
4638         (makeTempFiles): Call `xtmpfile' with the last argument set to
4639         `TRUE'.
4641 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4643         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4644         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4645         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4646         * src/preproc/html/pushback.cc: Include nonposix.h.
4647         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4648         conditionally.
4650 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4652         Use $(OBJEXT) for the object file extension.
4654         * Makefile.comm (.SUFFIXES): Add .obj.
4655         (.cc.obj, .c.obj): New implicit rules.
4656         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4657         (MDEFINES): Add EXEEXT and OBJEXT.
4658         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4660 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4662         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4664 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4666         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4667         the file.
4668         (html_printer::update_min_max, html_printer::add_table_end): New
4669         methods.
4670         (html_printer::lookahead_for_tables): Use them.
4671         Reset page offset correctly.
4672         (html_printer::~html_printer): Add creation of creator comment up.
4674 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4676         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4677         * man/groff_tmac.man: Fix typos.
4678         * man/groff_font.man: Minor reordering.
4679         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4681 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4683         Avoid endless loops while scanning for tables.
4685         * src/devices/grohtml/post-html.cc (list::insert): Set
4686         ptr->right->left.
4687         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4688         all callers.
4689         Return immediately if that argument is NULL.
4690         (html_printer::calc_nf): Don't test if `g' is NULL.
4691         (html_printer::lookahead_for_tables): Use
4692         `glyphs.move_right_get_data'.
4693         Don't test if `g' is NULL.
4695 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4697         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4699         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4700         a pointer.
4701         (char_block::char_block): Allocate `buffer'.
4702         (char_buffer::add_string): Use it.
4704 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4706         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4707         src/devices/grodvi/grodvi.man: Document default line thickness.
4709 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4711         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4712         8192.
4714 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4716         * doc/webpage.ms: Updated.
4718 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4720         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4721         unbreakable space.
4723 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4725         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4726         (&& -> &).
4728 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4730         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4731         tok.next().
4732         (read_gray): Ditto.
4733         Don't push back a space but a newline onto the stack.
4735 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4737         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4738         inadvertently.
4740         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4741         html_printer::start_font): Handle them.
4742         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4743         reset bold and tt.
4744         (html_text::do_bold): Don't reset italic and tt.
4745         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4746         * font/devhtml/DESC.proto: Add those fonts.
4747         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4749 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4751         * MORE.STUFF: Added gpresent.
4753         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4754         whitespace before printing the logging message.
4756 2002-07-31  Colin Watson  <cjwatson@debian.org>
4758         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4759         Initialize `n' to zero.  This fixes a segfault on ARM.
4761 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4763         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4765 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4767         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4768         final semicolon.
4770 2002-07-28  Colin Watson  <cjwatson@debian.org>
4772         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4773         `.ps'.
4774         (html_printer::html_printer): Initialize `pointsize'.
4776 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4778         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4779         gnu.png.
4780         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4781         (gnu.eps): Add -rle switch to pnmtops.
4782         (distfiles): Add gnu.eps and gnu.png.
4784 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4786         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4787         Add `operator!='.
4789 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4791         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4792         ' \+' but '  *' for sed.
4793         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4795 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4797         * doc/groff.texinfo: Document `papersize' keyword.
4798         * NEWS, man/groff_font.man: Updated.
4800 2002-07-23  Colin Watson  <cjwatson@debian.org>
4802         Extend papersize keyword to accept more than a single entry.  The
4803         first valid will be used.
4805         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4806         (font::scan_papersize): Really skip final newline.
4807         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4809 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4811         * configure.ac: Test for isatty.
4812         * configure: Regenerated.
4813         * src/include/posix.h: Check HAVE_ISATTY.
4814         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4815         * src/utils/lookbib/lookbib.cc: Include posix.h.
4816         Don't declare isatty.
4818 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4820         * NEWS: Add `output' request.
4822         * REVISION: Increased to 1.
4824 Version 1.18.0 released
4825 =======================
4827 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4829         Allow internal glyph indices > 0xFF in grohtml for input characters.
4831         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4832         as parameter.
4833         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4834         Updated all callers.
4835         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4836         (html_printer): Updated.
4838 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4840         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4841         * font/devutf8/R.proto: Adding some missing glyphs.
4842         * font/devutf8/NOTES: Updated.
4844         * tmac/dvi.tmac: Add more composite glyphs.
4845         * tmac/html.tmac: Updated.
4847         * man/groff_char.man: Add `sum' and `product' entities.
4849         * NEWS: Updated.
4851 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4853         Improved table, tab, and indenting support.
4855         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4856         string_iterator::suppress_newline_flag): Removed.  Updated all
4857         function which have used it.
4859         * src/roff/troff/env.cc: Include `input.h'.
4860         (environment::add_node): Accept 0 as parameter.
4861         (environment::add_html_tag): Add `force' parameter.
4862         Updated all callers.
4863         (environment::add_html_tag_tabs): Ditto.
4864         For the moment, support left-aligned tabs only.
4865         (environment::make_html_tag): New function.
4866         (fill, no_fill): Set .br html tag additionally.
4867         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4868         (environment::add_html_tag_eol): Removed.
4869         (tab_stops::distance_to_next_tab): Add variant for handling 
4870         nextpos'.
4871         (environment::distance_to_next_tab): Ditto.
4872         Updated all callers.
4873         (environment::handle_tab): Handle tabs for html.
4874         
4875         * src/roff/troff/env.h: Updated.
4877         * src/roff/troff/div.cc: Updated all callers of
4878         `environment::add_html_tag'.
4880         * src/devices/grohtml/html-table.cc,
4881         src/devices/grohtml/html-table.h: New files.
4883         * src/devices/grohtml/html-text.cc (html_text): New members
4884         `blank_para' and `start_space'.
4885         (html_text::issue_tag): Don't emit TABLE_TAG.
4886         Handle indentation for PRE_TAG and P_TAG.
4887         (html_text::end_tag): Updated.
4888         (html_text::table_is_void, html_text::issue_table_begin,
4889         html_text::issue_table_end): Removed.
4890         (html_text::do_push): Simplified.
4891         [DEBUGGING]: Small fix.
4892         (html_text::push_para): Add new parameter for indentation; updated
4893         all callers.
4894         Handle PRE_TAG.
4895         (html_text::do_indent, html_text::do_table, html_text::done_table,
4896         html_text::is_in_table): Removed.
4897         (html_text::do_pre): Handle P_TAG also.
4898         (html_text::shutdown): Handle p->indent.
4899         (html_text::check_emit_text): Simplified.
4900         (html_text::do_emittext): Reset `blank_para'.
4901         (html_text::do_para): Add new parameter for indentation; updated
4902         all callers.
4903         (html_text::remove_indent): New function.
4904         (html_text::do_space): Handle verbatim text properly.
4905         (html_text::ever_emitted_text, html_text::starts_with_space,
4906         html_text::remove_para_align): New functions.
4907         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4909         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4910         Updated.
4912         * src/devices/grohtml/post-html.cc: Include html-table.h.
4913         (INDENTATION): Removed.
4914         (text_glob): Added many `is_<foo>' functions.
4915         Added table description `tab'.
4916         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4917         member functions.
4918         (list): Add `insert' and `move_to' member functions.
4919         (page): Add `insert_tag' member function.
4920         (page::dump_page) [DEBUG_TABLES]: Improved.
4921         (html_printer): Add `table' and `max_linelength' elements.
4922         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4923         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4924         `remove_tabs', `remove_courier_tabs'.
4925         (html_printer::emit_raw): Handle indentation.
4926         (html_printer::do_center, html_printer::write_header): Updated.
4927         (html_printer::is_courier_until_eol): Check for tag.
4928         (html_printer::do_linelength): Handle max_linelength.
4929         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4930         fill_on.
4931         (html_printer::do_tempindent): Updated.
4932         (html_printer::do_indentedparagraph): Removed.
4933         (html_printer::do_indent): Simplified.
4934         (html_printer::do_eol): Use `ever_emitted_text'.
4935         (html_printer::do_flush, html_printer::do_links): Don't call
4936         done_table.
4937         (html_printer::do_break): Handle end_tempindent.
4938         (html_printer::troff_tag): Get argument.
4939         Don't handle `.ip'.
4940         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4941         (html_printer::flush_page): Call `lookahead_for_tables'.
4942         Don't call `done_table'.
4943         (html_printer::add_to_sbuf): Always call do_indent.
4945         * src/devices/grohtml/Makefile.sub: Updated.
4947         * tmac/an-old.tmac (TP): Don't handle html device specially.
4948         (an-do-tag-html): New function which will be used instead of
4949         `an-do-tag' if html device is used.
4951         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4953         * tmac/s.tmac (@IP): Don't handle html device specially.
4954         (@IP-html): New function which will be used instead of `@IP' if
4955         html device is used.
4957         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4958         is a hack which will eventually vanish again.
4959         (PIMG): Handle `-C' option correctly if not html.
4960         (HR): Use HTML-NS.
4962 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4964         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4966 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4968         * contrib/pic2graph/pic2graph.*: Use convert(1).
4969         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4971 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4973         * tmac/groff_trace.man: New file.
4974         * tmac/Makefile.sub: Updated.
4975         * NEWS: Updated.
4977 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4979         * src/roff/groff/groff.man: Add some cross references.
4981 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4983         * src/roff/troff/input.cc (substring_request): Add warnings for
4984         string indices out of range.
4986 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4988         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4989         * font/devdvi/*EC: Regenerated.
4991 2002-07-10  Bernd Warken  <bwarken@mayn.de>
4993         * man/groff_char.man: Updated and extended.
4995 2002-07-10  Werner LEMBERG  <wl@gnu.org>
4997         * src/roff/troff/input.cc (length_macro): Renamed to...
4998         (length_request): This.
4999         Move call of `tok.next()' to the very end, otherwise the register
5000         value hasn't been updated yet.
5001         (init_input_requests): Updated.
5003 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5005         * src/roff/troff/input.cc (substring_macro): Renamed to...
5006         (substring_request): This.
5007         (init_input_requests): Updated.
5008         * src/roff/troff/request.h: Updated.
5010 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5012         * src/roff/grog/grog.sh: Fix typo.
5014 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5016         * win32-diffs: Updated.
5018         Handle `papersize' keyword properly in DESC.
5020         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5021         type.
5022         Updated all callers.
5023         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5024         grolj4.
5025         * src/include/paper.h: Updated.
5027         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5028         Other minor C syntax fixes.
5029         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5030         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5031         members.
5032         (lbp_printer::lbp_printer): Pass three arguments.
5033         Set paper dimensions properly.
5034         (make_printer, main): Updated.
5035         (handle_unknown_desc_command): Fix error messages.
5036         (main): Handle papersize keyword in DESC properly.
5038         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5039         `user_paper_size'.
5040         (lbp_printer::lbp_printer): Pass an argument.
5041         Set paper_size properly.
5042         (handle_unknown_desc_command): Removed.
5043         (make_printer, main): Updated.
5044         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5046         * man/groff_font.man, NEWS: Updated.
5048 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5050         Integrated eqn2graph, contributed by Eric S. Raymond.
5052         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5053         files.
5054         * Makefile.in, NEWS: Updated.
5056 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5058         Changing the substring request to make it fit better with other
5059         string manipulation functions in other programming languages:
5060         Index 0 is now the first character in the string, and index -1
5061         indicates the last character.  Since this request didn't work
5062         properly anyway in the last release, it doesn't harm too much to
5063         change the syntax.
5065         * src/roff/troff/input.cc (substring_macro): Use loops to get
5066         the real string length (ignoring COMPATIBLE_SAVE and
5067         COMPATIBLE_RESTORE) and offsets.
5068         Implement change described above.
5070         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5071         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5073         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5075 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5077         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5078         COMPATIBLE_RESTORE are completely ignored.
5080         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5081         functions.
5082         (macro): `length' field renamed to `len'.
5083         Added new field `empty_macro' (1 if macro is empty), to be used
5084         instead of checking `len'.
5085         Updated all callers.
5086         (macro::empty): Updated.
5087         (macro::length, macro::set, macro::get): New functions.
5088         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5089         Set `empty_macro'.
5090         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5091         COMPATIBLE_RESTORE pairs.
5092         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5093         * src/roff/troff/request.h: Updated.
5095         * doc/groff.texinfo: Document .chop's behaviour better.
5097 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5099         * doc/pic.ms: Fix documentation for the addition of positions.
5101         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5103 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5105         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5107         * src/roff/troff/input.cc (have_string_arg): New global variable.
5108         (read_mode): New enumeration.
5109         (read_escape_name): Use it.  Update all calls.
5110         (read_long_escape_name): Use it.  Update all calls.
5111         Set have_string_arg if appropriate.
5112         (get_char_for_escape_name): Add parameter for handling space
5113         character.
5114         (interpolate_string_with_args, decode_string_args): New functions.
5115         (get_copy, token::next): Call it if necessary.
5116         (interpolate_string): Fix error message.
5118         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5119         Document it.
5121 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5123         * man/groff_tmac.man: Updated and extended.
5125 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5127         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5129 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5131         * doc/pic.ms: Improve documentation of composite block objects.
5133 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5135         * src/roff/troff/input.cc (init_registers): Add three registers
5136         `seconds', `minutes', and `hours' to hold the current time.
5138         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5139         Updated.
5141 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5143         Make \X accept both `\ ' and `\~', converting them to single space
5144         characters.
5146         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5147         (token::unstretchable_space): New inline function.
5148         * src/roff/troff/input.cc (token::next, token::delimiter,
5149         token::description, token::add_to_node_list, token::process): Handle
5150         TOKEN_UNSTRETCHABLE_NODE.
5151         (encode_char): Handle tok.stretchable_space and
5152         tok.unstretchable_space.
5154         * NEWS, doc/groff.texinfo: Document it..
5156 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5158         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5160         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5161         keyword to enable/disable SGR output.
5162         (tty_printer::change_fill_color): New function.
5163         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5165         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5166         call.
5168 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5170         Add a `color' request and a `.color' register to control usage of
5171         colours.
5173         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5174         (color_flag): This (which is the inverse).
5175         (activate_color): New function.
5176         (main, init_input_requests): Updated.
5177         * src/roff/troff/troff.h, src/roff/troff/node.cc
5178         (troff_output_file::fill_color, troff_output_file::glyph_color):
5179         Updated.
5181         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5182         Document the changes.
5184 2002-06-17  Colin Watson  <cjwatson@debian.org>
5186         Circumvent bug in autoconf 2.53 regarding top_builddir.
5188         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5189         * Makefile.in, doc/Makefile.in:
5190         s/@top_builddir@/@groff_top_builddir@/.
5191         * configure: Regenerated (with autoconf 2.53).
5193 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5195         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5196         `paperwidth' and `paperlength' for the `papersize' keyword.
5198 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5200         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5202 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5204         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5205         html_printer::do_linelength, html_printer::do_pageoffset,
5206         html_printer::do_indentation, html_printer::do_tempindent,
5207         html_printer::do_break, html_printer::begin_page): Clear indented
5208         text.
5209         * tmac/html.tmac: Disable hyphenation.
5211 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5213         Don't produce HTML files if utility programs are missing.
5215         * Makefile.in (make_html, make_install_html): New variables.
5216         (MDEFINES): Updated.
5218         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5219         utility programs.
5220         * configure.ac: Use it.
5221         * configure: Regenerated.
5223         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5224         (HTMLEXAMPLESFILES): This new variable.
5225         (EXAMPLESIMAGEFILES): Renamed to...
5226         (HTMLEXAMPLEIMAGEFILES): This.
5227         (CLEANADD): Add HTMLEXAMPLEFILES.
5228         (all): Use `make_html'.
5229         (html): New target.
5230         (install_data): Use `make_install_html'.
5231         Move html stuff to...
5232         (install_html): This new target.
5233         (uninstall_sub): Updated.
5235 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5237         * src/roff/grog/Makefile.sub (grog): Renamed to...
5238         (grog.old): This.
5239         (grog): New rule to always install grog.sh as grog.
5241 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5243         * src/roff/grog/grog.pl: Fix typo.
5245 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5247         * doc/groff.texinfo: Add more info on .tr arguments.
5249 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5251         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5253         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5254         * configure: Regenerated.
5256 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5258         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5260         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5262 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5264         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5265         is not initialized at the time we need it in case `--prefix' hasn't
5266         been set.  Check for `ac_default_prefix' also.
5267         Test for `papersize' keyword also and generalize allowed whitespace.
5268         * configure: Regenerated.
5270         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5271         `paperlength'.
5273         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5274         with...
5275         (src_version, src_revision): New variables to avoid overwriting
5276         from parent make process.
5277         (version.cc): Updated.
5279         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5280         (linebuf, linebufsize): New global variables.
5281         (sys_fatal): Use `fatal' to abort properly.
5282         (get_line): New function.
5283         (get_resolution): Use it.
5284         Improve error messages.
5285         (get_papersize): Check `papersize' also.
5286         Use `get_line'.
5287         Improve error messages.
5289 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5291         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5292         should be removed only if builddir is not srcdir.
5293         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5294         (clean): Depend on `mostlyclean'.
5295         (distclean): Depend on `clean'.
5296         (realclean, extraclean): Depend on `distclean'.
5297         (.y.cc, .y.o): Simplified.  The output files are no longer written
5298         to srcdir but to builddir.
5299         * Makefile.in (MDEFINES): Add `version' and `revision'.
5300         (uninstall_dirs): Fix order of directories.
5301         * doc/Makefile.sub (version, revision): Removed.
5302         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5303         Added `HTMLDOCFILES'.
5304         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5305         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5306         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5307         as prefix.
5309         * doc/texinfo.tex (\authortt): New macro.
5310         (\shortcontt): Define.
5311         (\titlepage): Set \tt to \authortt while defining \authorfont.
5312         (\appendixbox): New macro.
5313         (\chapmacro, \appendixentry): Use \appendixbox to get even
5314         indentation for letters.
5315         (\summarycontents): Set \tt.
5316         (\internalpagesize): Add two arguments for real paper width and
5317         height as needed by pdfTeX.
5318         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5319         Updated.
5320         (\tempdima, \tempdimb): New temporary dimensions.
5321         (\pagesizesyyy): Updated.
5323 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5325         Adding a new keyword `papersize' to the DESC file format (similar
5326         but not completely identical to grolbp's extension).  grops now has
5327         a -p command line option to override `papersize'.  Finally, grolbp
5328         has been adapted to the new syntax.
5330         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5331         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5332         elements.
5333         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5334         (CCSRCS): Add `paper.cc'.
5336         * src/include/font.h (font): Add `papersize' element.
5337         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5338         (font::scan_papersize): New function.
5339         (font::load_desc): Use it for handling `papersize' keyword.
5340         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5342         * src/devices/grops/ps.cc: Include paper.h.
5343         (user_paper_length): New global variable.
5344         (ps_printer): Use paper length as initializer.
5345         (make_printer): Updated.
5346         (main): Handle new `-p' option.
5347         * src/devices/grops/grops.man: Updated.
5349         * src/devices/grolbp/lbp.cc: Include paper.h.
5350         s/papersizes/lbp_papersizes/.
5351         (set_papersize): Use new `papersizes' array.
5352         (handle_unknown_desc_command): Don't handle `papersize'.
5353         (main): Use `font::scan_papersize' for handling `-p' option.
5354         * src/devices/grolbp/grolbp.man: Updated.
5356         * man/groff_font.man: Document `papersize'.
5357         * NEWS: Updated.
5359 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5361         * src/devices/grops/TODO: Updated.
5362         * src/devices/grops/grops.man: More info on paper formats.
5363         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5365 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5367         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5368         to list only if srcdir != currdir.
5369         (distfiles): New target.
5371         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5372         (NOMAKEDIRS): New variable.
5373         (DISTDIRS): Use it.
5375 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5377         Add .output request, similar to \! at top-level.
5379         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5380         (output_request): New function.
5381         (init_input_requests): Add it.
5382         Sorted.
5383         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5384         Document it.
5386         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5387         (prepare_examples): Fix typo.
5388         * doc/groff.texinfo (@direntry): Fix it.
5390 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5392         Including the doc subdir into groff's Makefile system.
5394         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5395         * configure.ac: Use it.
5396         Generate `doc/Makefile'.
5397         * configure: Regenerated.
5399         * Makefile.in (infodir, INSTALL_INFO): New variables.
5400         (MDEFINES, uninstall_dirs): Updated.
5401         (OTHERDIRS): Add `doc'.
5402         * Makefile.comm (CLEANDIRADD): New variable.
5403         (mostlyclean): Use it.
5405         * doc/Makefile.sub, doc/Makefile.in: New files.
5406         * doc/Makefile: Removed.
5408         * NEWS, INSTALL: Updated.
5410 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5412         * doc/homepage.ms: Renamed to ...
5413         * doc/webpage.ms: This.
5414         Use `.NHR'.
5416 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5418         Integrating the `mom' macro package, contributed by Peter Schaffter
5419         <df191@ncf.ca>.
5421         * contrib/mom/*: New subdirectory tree.
5422         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5423         be used for documentation files.
5424         (MDEFINES, uninstall_dirs): Use them.
5425         (OTHERDIRS): Add contrib/mom.
5426         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5427         @HTMLDOCDIR@.
5428         * MANIFEST, NEWS: Updated.
5430 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5432         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5433         if at outer level; at start-up we are at outer level.
5435         * src/roff/troff/input.cc (do_suppress): Implement it.
5436         Simplify \O[3].
5438         Add option -p to show progress information.
5439         pre-grohtml will now render only one page at a time, reducing the
5440         size of needed disk resources enormously.
5442         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5443         (imagePageName): New global variable.
5444         (psPageName, show_progress, currentPageNo): New global variables.
5445         (html_system): Close saved stderr and stdout handles.
5446         (write_end_image): Accept a parameter to control \O escape.
5447         (write_start_image): Adapted to new \O meaning.
5448         (char_buffer::write_upto_newline): Updated.
5449         (createAllPages): Replaced with...
5450         (createPage): This new function to create a single page for images.
5451         It uses `psselect' from the psutils package.
5452         (removeAllPages): Removed.
5453         (createImage): Updated.
5454         Handle progress display.
5455         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5456         (scanArguments): Add option -p.
5457         (makeTempFiles): Updated to create temp files for psPageName and
5458         imagePageName.
5459         (removeTempFiles): Removed.
5460         (main): Updated.
5462         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5463         html_printer::write_header): Append `\0' to `buffer'.
5464         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5465         (main): Handle -p.
5466         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5467         Handle `text_emitted'.
5468         (html_text::table_is_void): Slightly rewritten.
5469         (stop): New external symbol.
5470         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5471         (html_text::shutdown): Call `dump_stack'.
5472         (html_text::do_space): Rewritten.
5473         * src/devices/grohtml/grohtml.man: Document -p and the need of
5474         `psselect'.
5476         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5477         new \O syntax.
5478         Call \O[0] if `ps4html' is active.
5479         * tmac/s.tmac (@EQ, @EN): Handle html better.
5480         (@TS, TE): Ditto.
5481         * tmac/html.tmac: Don't use black for background colour.
5483         * src/roff/troff/node.cc: Include `div.h'.
5484         (troff_output_file::really_print_line): Don't use `is_on'. 
5485         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5486         troff_output_file::check_charinfo,
5487         troff_output_file::put_char_width, troff_output_file::put_char,
5488         troff_output_file::determine_line_limits, troff_output_file::draw,
5489         real_output_file::begin_page, glyph_color_node::tprintf,
5490         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5491         Use `is_on'.
5492         (troff_output_file::really_on): Call `do_motion'.
5493         (suppress_node::tprint): Use `get_page_number' instead of `%'
5494         register.
5495         Call `reset_output_registers' conditionally on `is_on'.
5497         * doc/groff.texinfo: Document new syntax of \O.
5498         * NEWS, man/groff_diff.man: Updated.
5500 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5502         * MORE.STUFF: Add info about David Frey's deroff implementation.
5503         Mention troff.org.
5505 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5507         Pic's `with' attribute now accepts positions.
5509         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5510         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5511         conflicts.
5512         (object_spec): Add rule for `WITH' and `position'.
5513         (relative_path): Give `corner' the precedence of `CHOP'.
5514         * src/preproc/pic/object.h (path): New members `pos' and
5515         `is_position'.
5516         * src/preproc/pic/object.cc: Updated initializers of `path'.
5517         (path::follow): Handle `is_position'.
5519         * doc/pic.ms: Completely updated grammar description.
5520         Many typographical improvements.
5522 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5524         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5525         code of x in range 0-127) also.
5526         * doc/groff.texinfo, man/groff_diff.man: Updated.
5528         Added keywords `north', `south', `east', and `west' for corners
5529         in pic.
5531         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5532         and WEST.
5533         (yylex): Handle them.
5534         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5535         (corner): Handle them.
5537 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5539         * src/devices/grops/grops.man: Clarify handling of `download' file.
5541 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5543         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5544         Jeffrey Friedl <jfriedl@yahoo.com>.
5546         * src/roff/troff/input.cc (spread_limit, warn_scale,
5547         warn_scaling_indicator): New global variables.
5548         (warnscale_request, spreadwarn_requests): New functions.
5549         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5550         (init_input_requests): Updated.
5551         (error_type): Add `OUTPUT_WARNING'.
5552         (do_error): Handle it.
5553         (output_warning): New warning function which shows output location.
5554         * src/roff/troff/env.h (spread_limit): New external variable.
5555         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5556         `output_warning'.
5557         (distribute_space): Emit warning if added space is larger than
5558         `spread_limit'.
5559         (environment::possibly_break_line): Emit warning if a line can't
5560         be adjusted on both sides.
5562         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5564 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5566         * src/roff/troff/node.cc (special_node::special_node): Use
5567         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5568         \X''\% crashes, for example.
5570         * doc/groff.texinfo: Document \! and \? used at top-level.
5572 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5574         * src/preproc/pic/pic.man: Fix some keyword syntax.
5575         Other minor typographical fixes.
5577         * src/roff/groff/groff.man: Fix typos.
5579 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5581         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5582         (ShortOpt[]): This to avoid problems with refer.
5584         * doc/pic.ms: Fix typo.
5585         Fix pic grammar description.
5587         * tmac/an-old.tmac (ne): Use de1, not de.
5589 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5591         * doc/groff.texinfo: Finished separation of glyphs and characters.
5592         Don't use the string `Appendix' for appendix headers (both in
5593         the text and the table of contents).
5594         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5595         directories.
5597         Use registers LL and LT (similar to -ms) for controlling the
5598         length of title and line, respectively, in the -man and -mdoc
5599         macro packages.
5601         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5602         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5603         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5604         (TH): Use \n[LL].
5605         (an-header, an-p-footer): Use \n[LT].
5606         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5607         doc/groff.texinfo: Document it.
5609 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5611         * doc/fdl.texi: New file.
5612         * doc/groff.texinfo: Include it.
5613         Define and use @copying.
5614         Starting with separating glyph, symbol, and character.
5616 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5618         * Makefile.in (EXEEXT): Set it.
5619         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5620         programs.
5622         * src/include/nonposix.h: Define GS_NAME.
5623         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5625         Some preliminary changes for EMX support under OS/2.
5627         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5628         __EMX__ similar to __MSDOS__.
5629         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5631 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5633         * doc/groff.texinfo: Integrated groff_out.man.
5634         Some macro fixes.
5636 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5638         * man/groff_out.man: Minor fixes.
5640 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5642         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5643         correct page references.
5644         Fixed many index entries.
5646 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5648         * man/roff.man: Enlarged.
5650 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5652         * doc/groff.texinfo: More examples, other fixes.
5654 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5656         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5657         will now form a chain, e.g.
5659           .pi foo
5660           .pi bar
5662         is now the same as
5664           .pi foo | bar
5666         This is for compatibility with plan 9's troff.
5668         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5669         with UNIX troff.
5670         * NEWS: Updated.
5672         * doc/groff.texinfo: Add documentation of remaining requests and
5673         registers.
5675 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5677         * doc/groff.texinfo: Add documentation of remaining escapes.
5679         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5680         * font/devdvi/*TC: Regenerated.
5682 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5684         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5685         if not in compatibility mode, i.e., increment relative to the
5686         previous height.
5687         * doc/groff.texinfo: Updated accordingly.
5689 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5691         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5693 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5695         * src/roff/groff/groff.man: Improve documentation of -P option.
5696         Other minor fixes.
5698 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5700         Add new escape \F to switch font family.
5702         * src/roff/troff/input.cc (token::next): Handle \F.
5703         * src/roff/troff/env.cc (environment::set_family): Handle
5704         `interrupted' flag.
5705         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5706         Document it.
5708 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5710         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5711         spaces in tags.
5713 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5715         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5716         \m[] and \M[], respectively.
5718         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5719         (symbol::symbol): Handle NULL string and empty string differently.
5720         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5721         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5722         Add optional parameter.
5723         Updated calling functions.
5724         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5725         `symbol::is_empty'.
5726         * src/roff/troff/env.cc (environment::set_font): Ditto.
5728         * src/preproc/pic/troff.cc (troff_output::set_fill,
5729         troff_output::reset_color: Updated.
5731         * tmac/www.tmac: Updated.
5733         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5734         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5735         Updated.
5737         * tmac/Xps.tmac: Remove some redundant code.
5739         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5740         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5741         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5742         \f[].
5744 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5746         * src/include/printer.h, src/libs/libdriver/printer.cc
5747         (printer::change_fill_color): New member function.
5748         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5750 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5752         * doc/groff.texinfo: Completed pass on gtroff reference.
5754 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5756         * doc/groff.texinfo: More fixes.
5758 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5760         * src/include/color.h: Decorate with `const'.
5761         Use `size_t'.
5762         Include `stddef.h'.
5763         * src/libs/libgroff.color.cc: Decorate with `const'.
5764         Use `size_t'.
5765         (color::color): Initialize members.
5766         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5767         command according to the documentation.
5769         * man/groff_out.man: Updated.
5770         Minor fixes.
5772 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5774         * src/preproc/html/pre-html.cc (write_start_image): Remove
5775         redundant output.
5776         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5778         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5779         \C'hy' caused an assertion failure.
5781         * src/roff/troff/env.cc (environment::environment): Initialize
5782         `emitted_node'.
5783         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5785 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5787         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5788         Document pvs request and .pvs register.
5790 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5792         * doc/groff.texinfo: Improve and fix documentation of diversions
5793         and environments.
5795 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5797         * doc/groff.texinfo: Fix documentation of drawing functions.
5798         Other minor fixes.
5800 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5802         * doc/groff.texinfo: Better documentation of double quotes as
5803         arguments.
5804         Other minor fixes.
5806 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5808         * man/groff_font.man: Document names of special characters better.
5809         * doc/groff.texinfo: Minor improvements.
5811         * tmac/lbp.tmac: Load latin1.tmac.
5812         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5814         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5816 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5818         * tmac/tty.tmac: Don't use shc request.
5819         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5820         * NEWS: Updated.
5822         * man/groff_diff.man: Minor fixes.
5824         * font/devlbp/*: Remove all `charXXX' entities.
5826         * src/libs/libgroff/font.cc (font::~font): Deallocate
5827         `special_device_coding'.
5828         (font::load): Use `new' for allocating `special_device_coding'.
5829         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5830         Removed unused member.
5832 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5834         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5835         (resource_manager::do_begin_binary,
5836         resource_manager::do_begin_data): Use it.
5838         * doc/texinfo.tex: Updated to version 4.2.
5840         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5841         (token::zero_width_break): New inline function.
5842         * src/roff/troff/input.cc (token::next): Use it.
5843         (token::description): Updated.
5844         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5845         (token::add_to_node_list, token::process): Use it.
5846         * NEWS, doc/groff.texinfo: Updated.
5848         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5849         * tmac/tty.tmac: Add missing backslash.
5851 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5853         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5854         `.ps' register instead of `.s' to handle fractional point sizes.
5855         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5856         limit_box::output): Ditto.
5857         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5858         size_box::output): Ditto.
5859         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5860         over_box::output): Ditto.
5861         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5862         script_box::output): Ditto.
5863         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5864         sqrt_box::output): Ditto.
5866 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5868         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5869         Fix typo.
5871 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5873         * doc/homepage.ms: Reduce title size.
5874         * doc/groff.texinfo: Fix documentation of .t register.
5875         Fix handling of colon.
5876         Fix `\' vs. `\\'.
5878         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5879         only if page length is positive to avoid a loop.
5881         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5882         tbl.
5884 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5886         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5887         s/__CYGWIN32__/__CYGWIN__/.
5889 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5891         * doc/gnu.xpm: New image contributed by Emily Mulley.
5892         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5893         (homepage.html): Be dependent on gnu.eps.
5894         * doc/homepage.ms: Updated to new image.
5896         * src/devices/grohtml/post-html.cc (html_printer): New member
5897         `sbuf_prev_hpos'.
5898         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5899         (html_printer::sbuf_continuation): Use it.
5901 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5903         * src/libs/libgroff/getopt.c: Updated to latest version.
5905         * tmac/README: More on hyphen.tex license.
5907 2002-03-26  Larry Kollar  <kollar@alltel.net>
5909         * doc/groff.texinfo: Add documentation of most missing requests.
5911 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5913         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5914         of `+-', `mu', and `di', respectively.
5916         * font/devascii/R.proto, font/devutf8/R.proto,
5917         font/devlatin1/R.proto, font/devhtml/R.proto,
5918         font/devcp1047/R.proto, font/devlpb/*: Add them.
5919         * font/devps/generate/textmap: Ditto.
5920         * font/devps/*: Regenerated.
5921         * font/devlj4/generate/text.map: Add them.
5922         * font/devlj4/*: Regenerated.
5923         * font/devdvi/generate/tc.map: Use them.
5924         * font/devdvi/generate/texsy.map: Add them.
5925         * font/devdvi/*: Regenerated.
5926         * font/devX*/*: Regenerated.
5928         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5929         tmac/tty-char.tmac: Updated.
5931         * NEWS, man/groff_char.man: Updated.
5933 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5935         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5936         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5937         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5938         we use `.fchar' in dvi.tmac.
5939         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5940         * tmac/Xps.tmac: Simplify some char definitions.
5941         Add definition for \[f/].
5942         * man/groff_char.man: Updated for new X.tmac.
5944         * tmac/README: New file.
5946 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5948         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5949         internal .y.o rule took precendence over the .y.cc rule, compiling
5950         the yacc files with gcc instead of g++.
5952 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5954         * tmac/dvi.tmac: Add replacement font for `CB'.
5956         * tmac/doc.tmac: s/request/macro/ in messages.
5957         (doc-generic-macro): Improve error message.
5958         * tmac/groff_mdoc.man: Minor improvements.
5960 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5962         * doc/groff.texinfo: Document possible conflict between `tr' and
5963         `char' requests.
5965 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5967         Improve handling of hyphenation patterns.  It is now possible to
5968         use most of TeX's pattern files unmodified.  To make the process
5969         more flexible, a new request `hpfcode' has been added which
5970         provides a character code mapping for the `hpf' request.  See
5971         comment before hpf_getc() for more details.
5973         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5974         functions.
5975         (read_patterns_file): Additional parameter for exception dictionary.
5976         Extended to recognize \pattern, \hyphenation, and \endinput.
5977         (do_hyphenation_patterns_file): Updated.
5978         * src/roff/troff/env.h (hpf_code_table): New extern.
5980         * src/roff/troff/input.cc (hpf_code_table): New array.
5981         (init_hpf_code_table, hyphenation_patterns_file_code): New
5982         functions.
5983         (hyphenation_code): Handle translation from `trin' correctly.
5984         (main, init_input_requests): Updated.
5985         (charinfo::set_translation): Handle hyphenation code also.
5987         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5988         inline function.
5990         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5991         char' is used for offsets in hyphenation exceptions.
5993         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5995         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5997 2002-03-20  Larry Kollar  <kollar@alltel.net>
5999         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6000         requests.
6002 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6004         * tmac/html.tmac: Fix serious typo.
6006 2002-03-17  Larry Kollar  <kollar@alltel.net>
6008         * doc/groff.texinfo: Add documentation for `writec' request.
6010 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6012         Added request `hpfa' to append hyphenation patterns.
6014         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6015         parameter `append'.
6016         (hyphenation_patterns_file): Renamed to...
6017         (do_hyphenation_patterns_file): This.
6018         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6019         functions.
6020         (init_hyphen_requests): Updated.
6021         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6023 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6025         Added request `writec' in analogy to `tmc'.
6027         * src/roff/troff/input.cc (write_request): Renamed to...
6028         (do_write_request): This.
6029         Added one parameter.
6030         (write_request, write_request_continue): New functions.
6031         (init_input_requests): Updated.
6032         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6034         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6035         5-10000pt.
6036         * NEWS: Document it.
6038 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6040         * man/groff.man: Add writem request.
6042         Add request `trin' (translate input) to make `.asciify' work
6043         correctly.  This is necessary since `charXXX' entity names are no
6044         longer hardcoded in font definition files.
6046         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6047         `translate_input' members.
6048         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6049         charinfo::set_translation_input): New methods.
6050         (charinfo::set_translation): Add third argument.
6051         * src/roff/troff/input.cc (charinfo:set_translation): Set
6052         `asciify_code'.
6053         (do_translate): Add second argument.
6054         (translate_input): New function.
6055         (init_input_requests): Updated.
6056         * src/roff/troff/node.cc (glyph_node::asciify,
6057         composite_node::asciify): Use `get_asciify_code'.
6059         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6061         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6063 2002-03-14  Larry Kollar  <kollar@alltel.net>
6065         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6067 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6069         Add a new request `sizes' similar to the `sizes' command in DESC
6070         files.
6072         * src/roff/troff/env.cc (override_sizes): New function.
6073         (init_env_requests): Use it.
6074         * src/roff/troff/token.h: Export `read_string'.
6075         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6077 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6079         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6081 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6083         * tmac/pspic.tmac: Add support for -Tdvi.
6084         * tmac/dvi.tmac: Include pspic.tmac.
6085         * src/devices/grodvi/grodvi.man: Document it.
6086         * NEWS: Updated.
6088         * font/devlj4/generate/Makefile: Fix URL of metric files.
6090 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6092         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6094 2002-03-09  Larry Kollar  <kollar@alltel.net>
6096         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6098 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6100         * doc/groff.texinfo: Fixes for texinfo 4.1.
6102 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6104         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6105         included.
6106         Handle CYGWIN properly.
6108 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6110         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6111         * tmac/lbp.tmac: Add some font translations.
6113 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6115         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6116         font/devhtml/R.proto: Remove `charXXX'  entries.
6117         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6118         where appropriate.
6120         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6121         * font/devlj4/*: Regenerated all font definition files.
6122         * tmac/lj4.tmac: Load latin1.tmac.
6124         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6125         from 2000-06-17: LJ4 metric files are *not* text files.
6127         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6128         register to test for EBCDIC.
6130 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6132         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6133         files (as grops already does).
6134         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6135         files.
6136         * src/devices/grops/grops.man: Document comment lines in encoding
6137         files.
6139         * tmac/cp1047.tmac: New file.
6140         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6141         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6142         * tmac/Makefile.sub (NORMALFILES): Updated.
6144         * tmac/ec.tmac: Don't load latin1.tmac again.
6146         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6147         font/devps/generate/dingbats.map,
6148         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6149         font/devps/generate/Makefile (symbolmap): Add header comment.
6150         * font/devps/generate/textmap: Ditto.
6151         Remove `charXXX' entries.
6152         * font/devps/symbolmap: Regenerated.
6153         * font/devps/*: Regenerated all font definition files.
6155 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6157         Add color support to grodvi (for drawing colors are currently
6158         translated to gray values).
6160         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6161         (dvi_printer): Add `cur_color' member.
6162         (dvi_printer::set_color): New function.
6163         (draw_dvi_printer): Remove `fill'.
6164         (draw_dvi_printer::fill_next): Pass environment as parameter.
6165         Update code for new color support translated to gray.
6166         (dvi_printer::set_char): Updated.
6167         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6168         changes crossing the page border.
6169         (dvi_printer::draw): Updated.
6170         Remove cases `f' and `F'.
6171         * tmac/dvi.tmac: Add color definitions.
6172         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6174         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6175         used incorrectly.
6177         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6178         versions of autoconf.
6179         * configure: Updated.
6181         * doc/homepage.ms: Use `.blm'.
6182         * tmac/www.tmac (www-depth): New auxiliary variable.
6183         (www-pop-level): Don't issue HTML tag.
6184         (ULS, ULE, LI): Use absolute indentation.
6186         * src/devices/grops/ps.cc (ps_printer::begin_page,
6187         ps_printer::end_page): Switch forth and back to default color while
6188         starting a new page.
6190 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6192         Add EC and TC fonts to devdvi.
6194         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6195         * font/devdvi/generate/cork.map: Renamed to...
6196         * font/devdvi/generate/ec.map: This.
6197         Remove entry for `aq'.
6198         * font/devdvi/generate/tc.map: New file.
6199         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6200         EC and TC fonts.
6201         (FONTS): Updated.
6202         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6203         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6204         * tmac/ec.tmac: New file.
6205         * tmac/Makefile.sub (NORMALFILES): Updated.
6206         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6207         * man/groff_char.man: Check `ECFONTS' register.
6209         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6211 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6213         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6214         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6215         * font/devdvi/*: Updated.
6216         * tmac/dvi.tmac: Formatting.
6218         Add font `HBI' for the dvi output.
6219         Add support for font families `T' and `H'.
6221         * font/devdvi/HBI: New file.
6222         * font/devdvi/B: Renamed to ...
6223         * font/devdvi/TB: This.
6224         * font/devdvi/BI: Renamed to ...
6225         * font/devdvi/TBI: This.
6226         * font/devdvi/I: Renamed to ...
6227         * font/devdvi/TI: This.
6228         * font/devdvi/R: Renamed to ...
6229         * font/devdvi/TR: This.
6230         * font/devdvi/H: Renamed to ...
6231         * font/devdvi/HR: This.
6232         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6233         * font/devdvi/generate/Makefile (HBI): New rule.
6234         (FONTS): Updated.
6235         (R, I, B, BI, H): Renamed to ...
6236         (TR, TI, TB, TBI, HR): This, respectively.
6237         (srcdir): Fixed.
6238         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6239         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6240         Add `styles' and `family' keywords.
6241         * tmac/dvi.tmac: Alias `H' to `HR'.
6242         Add some fspecial requests for italic fonts.
6243         Add TR and TI as special.
6244         Add support for `_' with font CWI.
6246         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6247         operator `:'.  Until now, the expression `0:1' would return 2
6248         instead of 1.
6250 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6252         * man/groff_char.man: Added some missing PS glyph names (from the
6253         Adobe Glyph List).
6254         * font/devps/generate/textmap, font/devps/symbolmap: Add
6255         `arrowupdn'.
6257         * doc/groff.texinfo: Minor additions and fixes.
6258         * man/groff_diff.man: Remove documentation of fp request.  This
6259         is already covered in the original troff manual.
6260         Updated to be consistent with other doc files.
6261         * NEWS: Updated.
6263 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6265         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6266         TTYDEVDIRS.
6267         Define new variable OTHERDEVDIRS (containing `font/devlj4
6268         font/devlbp' if not EBCDIC).
6269         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6270         (OTHERDEVDIRS): New variable.
6271         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6272         * configure: Regenerated.
6274         * NEWS, src/devices/grotty/grotty.man: Updated.
6276 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6278         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6279         get_line_arg): Honour input level.
6281         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6283         * font/*/*: Implement it in all font files.
6284         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6285         * font/devps/symbolmap: Updated.
6286         * font/devlj4/generate/text.map: Updated.
6287         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6288         * font/devdvi/generate/texmi.map: Updated.
6290         * font/devutf8/R.proto: Remove all `charXXX' entries.
6291         * font/devutf8/NOTES: Updated.
6293         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6294         version 4.1.0.
6296         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6298         * NEWS, man/groff_char.man: Updated.
6300 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6302         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6304 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6306         * src/roff/grog/grog.pl: Fix computation of $refer.
6308 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6310         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6311         `snprintf' and `vsnprintf'.
6313         * src/include/htmlindicate.h: Renamed to...
6314         * src/include/htmlhint.h: This.
6315         * src/include/Makefile.sub: Updated.
6316         * src/preproc/eqn/main.cc: Updated.
6318 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6320         * man/roff.man, man/groff_out.man, man/groff.man,
6321         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6322         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6324         * win32-diffs: Updated.
6326 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6328         * doc/Makefile (clean): Add *.eps.
6329         (MEMACROS): Removed.
6330         (TFLAG): New variable.
6331         (TROFF): Use it.
6332         Add -ww.
6333         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6334         (.me.dit): Fixed.
6335         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6337         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6338         `.tl'.
6339         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6340         unstripped.
6341         * src/roff/troff/troff.man: Fix order of parameter description.
6343         * NEWS: Updated.
6345 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6347         Simplify image handling for grohtml.
6348         Fix <p> bug.
6350         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6351         comment out.
6352         (html_text::dump_stack): Don't emit newline while debugging.
6353         (html_text::do_push) [DEBUGGING]: Print more info.
6354         (html_text::check_emit_text): Fix handling of <p>.
6355         * src/devices/grohtml/html.h: Updated.
6356         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6357         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6358         send its data to stderr also.
6359         Update all callers.
6360         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6361         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6362         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6364         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6365         Removed.
6366         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6367         is_inline_image): Removed.
6368         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6369         (graphic_start, graphic_end): Removed.
6370         * src/include/htmlindicate.h: Updated.
6371         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6372         (macroset_template): New global variable.
6373         (makeFileName): Use `macroset_template'.
6374         (write_end_image): Don't take a parameter.
6375         Don't emit newline.
6376         (write_start_image: Don't emit newline.
6377         (char_buffer::write_upto_newline): Updated.
6378         (char_buffer::skip_to_newline): Renamed to ...
6379         (char_buffer::skip_until_newline): This.
6380         Fix code.
6381         (char_buffer::write_file_troff, char_buffer::write_file_html):
6382         Simplified.
6383         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6384         (removeAllPages): Remove `DEBUGGING' conditionals.
6385         (addRegDef, dump_args): New functions.
6386         (char_buffer::do_html, char_buffer::do_image): Handle
6387         `www-image-template' command line variable.
6388         Add more debugging code.
6389         (addps4html): Removed.
6390         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6392         * src/preproc/eqn/main.cc: Include `ctype.h'.
6393         (suppress_html): Removed.
6394         (do_file): Updated.
6395         (inline_equation): Use `html_begin_suppress' and
6396         `html_end_suppress'.
6397         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6398         (troff_output::start_picture, troff_output::finish_picture):
6399         Updated.
6400         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6401         (process_input_file): Updated.
6403         * src/roff/troff/div.cc (page_number): Set page number only if the
6404         `ps4html' register isn't defined.
6405         * src/roff/troff/input.cc (image_no): New external variable.
6406         (do_suppress): Use it.
6407         * src/roff/troff/node.h (suppress_node::image_id): New member.
6408         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6409         (suppress_node::suppress_node): Initialize `image_id' member.
6410         (suppress_node::same): Handle `image_id' also.
6411         (suppress_node::copy): Updated.
6412         (last_image_id): New global variable.
6413         (suppress_node::tprint): Use it.
6415         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6416         HTML-IMAGE-END.
6417         * tmac/pspic.mac (PSPIC): Fix html support.
6418         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6419         * tmac/www.tmac (www-image-template): Set up.
6420         (HTMLINDEX): Renamed to...
6421         (HX): This.
6422         (BODYCOLOR): Renamed to...
6423         (BCL): This.
6424         (BACKGROUND): Renamed to...
6425         (BGIMG): This.
6426         (URL): Change order of parameters for consistency.
6427         (MAILTO): Renamed to...
6428         (MTO): This.
6429         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6430         (IMG, PIMG, MPIMG): This.
6431         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6432         (HnS, HnE): This.
6433         (LINKS): Renamed to...
6434         (LK): This.
6435         (LINE): Renamed to...
6436         (HR): This.
6437         (NO-AUTO-RULE): Renamed to...
6438         (NHR): This.
6439         (HTML-TL): Renamed to...
6440         (HTL): This.
6441         (UL-BEGIN, UL-END): Renamed to...
6442         (ULS, ULE): This.
6443         (DROPCAP): Renamed to...
6444         (DC): This.
6445         (TS, TE, EQ, EN): Provide default definitions.
6446         (www-make-unique-name): Updated.
6447         (HTML-IMAGE-INLINE): Fix typo.
6448         * tmac/groff_www.man: Updated.
6450         * doc/Makefile (homepage.html): Add option -r to grohtml.
6451         Use shortened image name.
6452         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6453         * doc/homepage.ms: Updated and extended.
6455 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6457         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6459         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6460         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6461         (tty_printer::put_color): Use it.
6462         (ttr_printer::end_page): Simplify.
6464 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6466         * tmac/groff_tmac.man: Moved to...
6467         * man/groff_tmac.man: This place.
6468         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6470 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6472         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6473         $(COMPILE.c) to not include groff's assert.h.
6475         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6476         variable.
6477         * NEWS, src/drivers/grotty/grotty.man: Document it.
6479 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6481         * src/libs/snprintf/snprintf.c: Updated to latest version
6482         (2002-02-11).
6484         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6485         test whether there is `.]' also.
6486         Don't check for spaces after `.['.
6487         * src/roff/grog/grog.sh: Do the same.
6489 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6491         Illegal -> Invalid.
6493         * src/libs/libgroff/illegal.cc: Renamed to ...
6494         * src/libs/libgroff/invalid.cc: This.
6495         (illegal_char_table): Renamed to ...
6496         (invalid_char_table): This.
6497         * src/libs/libgroff/Makefile.sub: Updated.
6498         * win32-diffs: Updated.
6500         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6501         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6502         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6503         font::load), src/preproc/eqn/main.cc (read_line, main),
6504         src/preproc/eqn/lex.cc (file_input::read_line),
6505         src/preproc/pic/lex.cc (file_input::read_line,
6506         simple_file_input::get, simple_file_input::peek),
6507         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6508         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6509         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6510         do_bib), src/preproc/tbl/main.cc (table_input::get),
6511         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6512         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6513         do_zero_width, read_request, encode_char, ps_get_line,
6514         transparent_file, get_char_for_escape_name, transparent_translate,
6515         asciify, input_char_description, read_string, set_string),
6516         src/roff/troff/env.cc (environment::add_html_tag),
6517         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6519         * src/include/lib.h: Updated.
6521         * src/preproc/eqn/eqn.cc: Removed.
6523         * NEWS: Updated.
6525         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6527 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6529         * doc/gnu.xpm: New image.
6530         * doc/Makefile (DOCS): Add homepage.ps.
6531         Add rules for converting xpm->png and xpm->eps.
6532         Use `gnu.{xpm,eps}' as image names.
6533         * doc/homepage.ms: Updated.
6535 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6537         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6538         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6539         Remove calls to `B1' and `B2'
6540         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6541         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6542         auxiliary variables for MARGIN-PNG-IMAGE.
6543         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6544         auxiliary macros for MARGIN-PNG-IMAGE.
6545         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6546         the margin.
6547         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6548         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6549         (DROPCAP): New macro to produce dropcap characters.
6550         (www-do-image): Renamed back to...
6551         (HTML-DO-IMAGE): This.
6552         Updated all callers.
6554         * doc/Makefile (gnubw.eps): Updated.
6555         * doc/homepage.ms: Updated.
6557 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6559         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6560         Added `linethick' to table in section `Style Variables'.
6562 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6564         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6566 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6568         Adding options -C (compatibility mode) and -c (grotty's old output
6569         scheme) to nroff.
6571         * src/roff/nroff/nroff.sh: Implement it.
6572         Remove `-Wall'.
6573         * NEWS, src/roff/nroff/nroff.man: Updated.
6575         * PROBLEMS: Document bison 1.32 bug.
6577         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6579         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6580         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6581         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6582         * src/roff/troff/env.h: Add prototype for `title'.
6584         Adding EBCDIC support to grotty.
6586         * src/devices/grotty/tty.cc (CSI): New macro.
6587         (SGR_*, tty_printer::put_color): Use it.
6589 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6591         Implementing color support in grotty.  The new switch -c activates
6592         the old drawing scheme, disabling color at the same time.  The new
6593         switch `-i' selects italic instead of underlining (SGR only).
6595         * src/devices/grotty/tty.cc (putstring): New define instead of
6596         `fputs'.  Updated all callers.
6597         (old_drawing_scheme): New global variable.
6598         (COLOR_CHANGE): New enum value.
6599         (SGR_*): New defines containing color handling escape sequences.
6600         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6601         (glyph): New members `back_color_idx' and `fore_color_idx'.
6602         (glyph::order): Add COLOR_CHANGE.
6603         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6604         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6605         New methods `make_underline', `make_bold', `color_to_idx',
6606         `change_color', `put_color'.
6607         (cu_flag): Moved into `tty_printer' class.
6608         (tty_printer::tty_printer): Initialize colors.
6609         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6610         tty_printer::draw, tty_printer::end_page): Handle colors also.
6611         (main): Add options `-c' and `-i'.
6612         (usage): Updated.
6613         * NEWS, src/devices/grotty/grotty.man: Updated.
6615         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6616         * src/libs/libgroff/errarg.c: Implement it.
6618         * src/include/printer.h (printer): Add `change_color' method
6619         (currently used by grotty only).
6620         * src/libs/libdriver/printer.cc: Implement it.
6621         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6622         call to `pr->change_color'.
6624         * src/roff/troff/node.cc (troff_output_file::fill_color,
6625         troff_output_file::glyph_color): Call `do_motion'.
6627         * tmac/tty.tmac: Add color definitions.
6629         * src/roff/groff/groff.man: Minor fixes.
6631 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6633         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6634         it.  This is a preparation for future changes.
6636 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6638         * src/roff/troff/input.cc (process_input_stack): Fix the case
6639         where leading spaces are followed by \f or \s; previously, an
6640         incorrect space width has been used.
6642         * doc/roff.man (quoted_char): Fix argument.
6643         (comment): Define string.
6645 2002-02-04  Larry Kollar  <kollar@alltel.net>
6647         * doc/groff.texinfo: More fixes.
6649 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6651         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6652         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6653         `restore_compatibility' before `output_string' -- the LINE_STRING
6654         register now already contains proper switches from and to
6655         compatibility mode.
6657         * man/groff_char.man: Add Euro symbol.
6658         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6659         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6660         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6661         Other minor fixes.
6663         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6664         texinfo->pdf.
6665         (.texinfo.html): Add support for texinfo->html.
6667 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6669         Added three new requests `ds1', `as1', and `ami'.  The former two
6670         are equivalent to `ds' and `as' with the difference that
6671         compatibility mode is saved on entry, switched off during string
6672         expansion, and restored on exit.  The latter is the pendant to `dei'
6673         for `am'.
6675         (do_define_string): Use `define_mode' and `calling mode'.
6676         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6677         end of string, respectively.
6678         (define_string, append_string): Use `calling_mode'.
6679         (define_nocomp_string, append_nocomp_string,
6680         define_string_indirect): New functions.
6681         (init_input_requests): Updated.
6682         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6684         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6685         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6686         mm macro package accesses this string register directly.
6687         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6689         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6690         compatibility mode.
6692 2002-02-02  Larry Kollar  <kollar@alltel.net>
6694         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6696 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6698         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6700 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6702         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6703         * man/groff_out.man: Revised and updated.
6705 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6707         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6708         out the unused `{' and `}' commands.  Undefined by default.
6709         (IntArray): Make `data' private.
6710         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6711         new methods instead.
6712         (skip_line_D, skip_to_end_of_line): New functions.
6713         (get_D_fixed_args): Use `skip_line_D'.
6714         Changed to handle dummy odd arguments by ...
6715         (get_D_fixed_args_odd_dummy): This new function.
6716         (get_D_variable_args): Split some code into ...
6717         (get_possibly_integer_args): This new function.
6718         (send_draw): Use more `const'.
6719         (delete_current_env): New function.
6720         (position_to_end_of_args): Use `size_t'.
6721         Updated.
6722         (send_draw): Updated.
6723         (parse_D_command): Handle `c', `C', and `t' better.
6724         Updated.
6725         (do_file): Updated.
6727 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6729         * NEWS: Revised.
6730         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6731         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6732         proper HTML output -- see the comment in the file for more
6733         information.
6734         Updated all calls.
6736 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6738         Fixes to make color changes of 2002-01-21 work with grohtml.
6740         * src/devices/grohtml/post-html.cc (style): Updated.
6741         (html_printer): Remove unused methods.
6742         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6743         html_printer::special): Updated.
6744         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6745         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6746         Added some debugging code.
6747         (html_text::start_tag): Updated.
6748         (html_text::do_push): New method.
6749         (html_text::push_para): Call it.
6750         Add method for handling color.
6751         (html_text::do_color): Updated.
6752         (html_text::shutdown): Handle color.
6753         * src/devices/grohtml/html-text.h (tag_definition): New member
6754         `col'.
6755         Updated.
6757 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6759         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6761 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6763         Add two switches -a and -g to control the antialiasing bits for
6764         text and graphics, respectively.
6766         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6767         `-g'.
6768         * src/devices/grohtml/grohtml.man: Document them.
6769         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6770         New macros.
6771         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6772         (setupAntiAlias): New function.
6773         (createAllPages): Updated.
6774         (scanArguments): Handle `-a' and `-g'.
6775         (main): Call `setupAntiAlias'.
6776         * NEWS: Updated.
6778 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6780         * doc/groff.texinfo (Def*): Call index function after deffn.
6782         * tmac/html.tmac: Call `nroff' request.
6784 2002-01-26  Larry Kollar  <kollar@alltel.net>
6786         * tmac/groff_ms.man: Add some omissions.
6788 2002-01-25  Larry Kollar  <kollar@alltel.net>
6790         * tmac/groff_ms.man: Typographical improvements.
6792 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6794         * doc/groff.texinfo: Updated version and copyright.
6795         * src/devices/grops/grops.man: Updated.
6797         * tmac/groff_tmac.man: Fix `ig' macro.
6799         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6800         nroff mode.
6801         Use `.ne' unconditionally everywhere.
6802         (TS): Only insert some vertical space.  Doing a page break is no
6803         longer necessary due to the redefinition of the `ne' request.
6805         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6806         warning for unknown subcommands but parse and pass them to the
6807         device driver.
6809 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6811         * tmac/groff_www.man, NEWS: Fix typos.
6813 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6815         Complete revision of color support:
6817           Adapt programs to the new libdriver/input.cc.
6819           Color spaces are no longer converted to RGB but transferred as-is
6820           in the troff intermediate output format.
6822           Handle default color gracefully.  troff now supports a `default'
6823           color (which can't be changed).
6825           grops will now use the proper color space functions if available.
6827           Update pic.
6829         Note that currently grohtml doesn't handle colors properly.  This
6830         has to be fixed.
6832         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6833         (ui_to_a): New function.
6834         * src/include/lib.h: Updated.
6836         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6837         (color): Simplified; removed all `double' members and methods.
6838         A new array `components' now holds the color parameters.
6839         (color::is_default, color::get_components): New methods.
6840         (color::operator==, color:operator!=): New.
6841         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6842         to make access to the `components' array more comprehensible.
6843         * src/libs/libgroff/color.cc: Implement new color support.
6844         (atoh): Small fixes.
6845         (color::read_encoding): Simplified for new troff intermediate color
6846         output format.
6847         (default_color): New global variable.
6849         * src/roff/troff/input.cc (default_symbol): New global variable.
6850         (lookup_color): Use it.
6851         (default_black): Removed.
6852         (do_glyph_color, do_fill_color): Simplified.
6853         (define_color): Handle default color.
6854         Improve warnings.
6855         (do_if_request): Handle default color.
6856         * src/roff/troff/env.cc (environment::environment): Initialize
6857         colors with `default_color'.
6858         * src/roff/troff/node.cc (troff_output_file::put): Add method
6859         for `unsigned int'.
6860         (troff_output_file::hex): Removed.
6861         (troff_output_file::fill_color, troff_output_file::glyph_color):
6862         Updated to include/color.h and libdriver/input.cc.
6864         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6865         fill color properly (identically to the outline color).  \D'f...'
6866         doesn't work any more.
6867         All function calls to it updated.
6869         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6870         Updated.
6871         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6872         Updated.
6874         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6875         (ps_printer::sbuf_color): Make a real member instead of pointer.
6876         (ps_printer::fill_color, ps_printer::output_color): Removed.
6877         (ps_printer::ps_printer): Updated.
6878         (ps_printer::set_char): Ditto.
6879         (ps_printer::set_color): Use various color schemes.
6880         Use `put_color' method.
6881         (ps_printer::flush_sbuf): Don't set color.
6882         (ps_printer::fill_path): Take `environment' as parameter.
6883         Simplify color handling.
6884         (ps_printer::set_line_thickness): Renamed to ...
6885         (ps_printer::set_line_thickness_and_color): This (and updated).
6886         (ps_printer::set_color): Change second parameter from `complete'
6887         to `fill' which better describes what it does.
6888         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6889         and text in the right order.
6890         Updated.
6891         Remove branches for `f' and `F'; this is handled by
6892         libdriver/input.cc.
6893         * src/devices/grops/ps.h: Updated.
6894         * font/devps/prologue (FL): Redefined.
6895         ({F,C}r,k,g: New color functions (with and without filling).
6897         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6898         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6899         doc/groff.texinfo, NEWS: Updated.
6901 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6903         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6904         in this file for what has been changed.
6906 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6908         * test-groff: Fix GROFF_FONT_PATH.
6909         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6910         is read before .TH or .Dd is parsed.
6912 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6914         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6915         quadrant boundaries.
6917 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6919         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6920         applied last patch.
6922 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6924         * tmac/doc.common: Initialize %I register for the %I macro to
6925         avoid (harmless) warning.
6926         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6927         when in the SYNOPSIS section.
6929 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6931         * src/preproc/pic/lex.cc (get_token): Fix typo.
6933 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6935         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6937 2002-01-17  Larry Kollar  <kollar@alltel.net>
6939         * tmac/groff_ms.man: Completely rewritten.
6941 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6943         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6945 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6947         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6948         fill colors.
6949         (ps_printer::draw): Ditto.
6951 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6953         * tmac/groff_mdoc.man: Minor fixes.
6955 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6957         * man/groff_out.man: Some fixes.
6959 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6961         * doc/pic.ms: Fix typos.
6963 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6965         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6967 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6969         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6970         symbols.
6971         * NEWS: Updated.
6973 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6975         * man/groff_out.man: Revised.
6976         * man/roff.man: Minor fixes.
6977         * src/roff/troff/troff.man: Some reordering.
6979 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6981         * tmac/an-old.tmac: Add dummy macros for equation support.
6983 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6985         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6987         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6988         man pages.
6989         * tmac/groff_man.man: Small improvements.
6991 2002-01-07  Bernd Warken  <bwarken@mayn.de>
6993         * man/groff_diff.man: Revised.
6995 2002-01-06  Werner LEMBERG  <wl@gnu.org>
6997         * tmac/www.tmac: Remove extraneous backslash.
6999 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7001         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7003 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7005         Integrated groffer, contributed by Bernd Warken.
7007         * contrib/groffer/*: New.       
7008         * Makefile.in, NEWS: Updated.
7010 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7012         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7013         registers defined in macro packages.
7014         Revising the ms part.
7016 2002-01-04  Larry Kollar  <kollar@alltel.net>
7018         * doc/groff.texinfo: Add documentation for ms macros.
7020 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7022         First step in adding PS support for the Euro symbol.  `eu' is the
7023         official Euro logo, `Eu' is a font-specific glyph variant.
7025         * font/devps/text.enc: Add `Euro' at position 9.
7026         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7027         * font/devps/symbolmap: Regenerated.
7029         * NEWS: Updated.
7031 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7033         * man/roff.man: Revised.
7035 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7037         * src/roff/groff/groff.man: Completely rewritten.
7039 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7041         * doc/Makefile: Updated.
7043 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7045         * tmac/www.tmac: Make all names of internal macros/registers/strings
7046         lowercase, and prepend `www-'.
7047         Other minor changes.
7048         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7050 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7052         Implement option `-b' in grohtml to set the HTML background colour.
7054         * src/devices/grohtml/post-html.cc (default_background): New global
7055         variable.
7056         (html_printer::html_printer): Initialize `background' to
7057         `default_background'.
7058         (main): Implement option `-b'.
7059         (usage): Updated.
7060         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7061         of `-b' option.
7062         * src/devices/grohtml/grohtml.man: Updated.
7063         * doc/Makefile (.ms.html): Use `-b'.
7064         * tmac/html.tmac: Don't set background color.
7066         Add new grohtml tag `.html-tl'.
7068         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7069         member variable.
7070         (title_desc::title_desc): Updated.
7071         (html_printer::troff_tag): Handle `.html-tl'.
7072         (html_printer::write_title): Use `with_h1'.
7073         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7074         (HTML-TL): New macro.
7076         Add support for unordered lists in HTML.
7078         * tmac/www.tmac (www-level): New auxiliary register.
7079         (www-level1, www-level2, www-level3): New auxiliary strings.
7080         (www-push-level, www-pop-level): New auxiliary macros
7081         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7083         Miscellaneous.
7085         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7086         (DEFAULT_VERTICAL_OFFSET): Removed.
7087         (IMAGE_BOARDER_PIXELS): Set to 0.
7088         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7089         (vertical_offset): Initialize with 0.
7090         (gsPaper): New global variable.
7091         (get_resolution): Scan for and return unsigned int.
7092         (get_papersize): New function to get paper length from devps/DESC.
7093         (determine_vertical_offset): New function.
7094         (createAllPages): Produce gray-level images and use proper page
7095         length.
7096         (createImage): Use `-quiet' option of pnmcrop.
7097         (addZ): Fix passing of `-Z'.
7098         (scanArguments): Fix handling of `-o'.
7099         (main): Call `determine_vertical_offset'.
7100         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7101         code for `l'.
7103         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7104         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7105         glyph descenders properly.
7107         * doc/homepage.ms: Include `gnubw.eps'.
7108         * doc/Makefile (gnubw.eps): New rule.
7109         (homepage.html): Depend on `gnubw.eps'.
7111 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7113         * src/roff/troff/input.cc (default_black): Fix return value.
7115 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7117         * tmac/doc-common (Dt): Change output of architecture strings.
7118         Do some syntax cleanup.
7119         * tmac/groff_mdoc.man: Updated.
7121 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7123         Adding an `itc' request (input line trap accepting \c).
7125         * src/roff/troff/env.h (environment): New member
7126         `continued_input_trap'.
7127         Make `do_input_trap' a friend function instead of `input_trap'.
7128         * src/roff/troff/env.cc (environment::environment,
7129         environment::copy): Updated.
7130         (environment::newline): Implement it.
7131         (do_input_trap): New function.
7132         (input_trap): Call `do_input_trap'.
7133         (input_trap_continued): New function.
7134         (init_env_requests): Updated.
7135         * src/roff/troff/TODO: Updated.
7137         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7138         `.it'.
7140         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7142 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7144         * tmac/doc-common, tmac/doc-syms: Small updates.
7146 2001-12-22  Colin Watson  <cjwatson@debian.org>
7148         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7150 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7152         * MANIFEST: New file.
7154 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7156         * src/preproc/grn/grn.man: Updated.
7158 2001-12-22  Solar Designer  <solar@openwall.com>
7160         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7161         (DBRead): Use it.
7163 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7165         Implement a fallback character request `.fchar'.
7167         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7168         (is_fallback): New inline function.
7169         * src/roff/troff/input.cc (do_define_character): New function.
7170         (define_character): Call `do_define_character'.
7171         (define_fallback_character): New function.
7172         (init_input_requests): Add `fchar'.
7173         (charinfo::charinfo): Updated.
7174         (charinfo::set_macro): New argument to set `fallback' flag.
7175         * src/roff/troff/node.cc (make_glyph_node, make_node,
7176         node::add_char): Check `fallback' flag.
7177         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7179 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7181         * groff.texinfo: Document exact search algorithm for glyphs.
7183 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7185         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7186         the left side of $(MANPAGES) rule to make it always non-empty.
7188 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7190         * src/roff/troff/input.cc (default_black): Define default color
7191         `black' if not yet defined.
7193 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7195         Implement new string-valued register `.fn' to return the current
7196         real (internal) font name.
7198         * env.cc (environment::get_font_name_string): New function.
7199         (init_env_requests): Add `.fn' register.
7200         * env.h (environment): Updated.
7201         * node.cc (font_info): Make `get_font_name' a friend.
7202         (get_font_name): New function.
7203         * node.h: Updated.
7205         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7207 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7209         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7211 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7213         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7215 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7217         * man/groff_diff.man: Adding documentation for \O.
7219 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7221         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7222         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7224 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7226         * man/roff.man: Revised.
7227         * src/roff/groff/groff.man: Replace man page references with a
7228         pointer to roff.man.
7230 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7232         * man/roff.man: Completely rewritten.
7234 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7236         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7238 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7240         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7241         longer used.
7242         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7243         order of initializers.
7244         * NEWS: Updated.
7246 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7248         * doc/groff.texinfo: Fix documentation of \O.
7250         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7251         html_text::do_table, html_text::do_emittext, html_text::do_para):
7252         Use `const' for first argument.
7253         (html_text::do_table): Use cast.
7254         * src/devices/grohtml/html-text.h: Updated.
7255         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7256         method for `const string &s'.
7257         * src/devices/grohtml/html.h: Updated.
7258         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7259         (ANCHOR_TEMPLATE): Modified.
7260         (manufacture_headings): New global variable to handle `-h' option.
7261         (is_subsection): Removed.
7262         (char_buffer::add_string): Add `const' to first argument.
7263         Protect against invalid string argument.
7264         Add method for `const string &s'.
7265         (text_glob): Completely redesigned.
7266         (page): Use `const' for strings and remove string length variable.
7267         (page::add_html): Removed.
7268         (page::add_end_encode): New member function.
7269         (to_unicode): Moved upwards.
7270         (title_desc, header_desc): Updated.
7271         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7272         definition.
7273         (html_printer::is_bold, html_printer::make_bold): New member
7274         functions.
7275         (html_printer::end_of_line): Updated.
7276         (generate_img_src, html_printer::do_auto_image,
7277         html_printer::do_title, html_printer::write_header,
7278         html_printer::determine_header_level, html_printer::do_heading,
7279         html_printer::do_linelength, html_printer::do_pageoffset,
7280         html_printer::do_indentation, html_printer::do_tempindent,
7281         html_printer::do_indentedparagraph, html_printer::do_break,
7282         html_printer::flush_sbuf, get_html_translation,
7283         html_printer::begin_page, html_printer::special): Rewritten to get
7284         rid of static string length limit.
7285         (html_printer::troff_tag): Added `.no-auto-rule'.
7286         (html_printer::flush_globs): Small fix.
7287         (html_printer::determine_space): Don't compute `space_width'.
7288         (html_printer::translate_to_html): Renamed to ...
7289         (html_printer::emit_html): This (with updates).
7290         (html_printer::write_header): Implement `-h' option.
7291         (html_printer::draw): Remove commented-out code.  Handle `F'
7292         command.
7293         (html_printer::add_char_to_sbuf): Removed.
7294         (html_printer::add_to_sbuf): Rewritten.
7295         (html_printer::sbuf_continuation): Fixed.
7296         (html_printer::seen_backwards_escape, reverse,
7297         html_printer::remove_last_char_from_sbuf): Removed.
7298         (char_translate_to_html, str_translate_to_html): Removed.
7299         (html_printer::overstrike): New function member.
7300         (html_printer::set_char): Use it.
7301         (html_printer::do_body): New function member.
7302         (html_printer::~html_printer): Use it.
7303         (main): Handle `-h' option.
7304         (usage): Updated.
7305         * src/devices/grohtml/grohtml.man: Document -h switch.
7307         * src/preproc/html/pre-html.cc: Include searchpath.h
7308         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7309         (get_resolution): New function.
7310         (checkImageDir): Use `0777' permissions in mkdir()
7311         (write_start_image): Rewritten to use `\O[5...]'.
7312         (createImage, generateImages): Updated.
7313         (main): Handle `F' and `h' options.
7314         Use `get_resolution'.
7316         * src/roff/troff/input.cc (begin, end, image): Removed.
7317         (do_suppress): Take parameter.
7318         Handle modified syntax of `\O'.
7319         (token::next): Updated.
7320         (init_markup_requests): Removed.
7321         (main): Updated.
7323         * src/roff/troff/div.h: Add declaration for begin_page().
7325         * tmac/color-html.tmac: Removed.  Contents moved to...
7326         * tmac/html.tmac: Here.  Set background color.
7327         * tmac/color.tmac: Removed.  Contents moved to...
7328         * tmac/ps.tmac: Here.
7329         * tmac/www.tmac: Remove the title command when generating images
7330         for html.
7331         (NO_AUTO_RULE): New macro.
7332         (HTML_DO_IMAGE): Use revised `\O' escapes.
7333         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7335 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7337         * tmac/groff_mdoc.man: Fix typo.
7339 2001-12-01  Colin Watson  <cjwatson@debian.org>
7341         * man/roff.man: Fix typo.
7343 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7345         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7346         stdlib.h.
7348         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7349         more than one argument to \D'f ...'.
7351         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7353 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7355         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7356         loaded only once.
7358         * tmac/groff_man.man: Minor cosmetic fix.
7360 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7362         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7363         tmac/groff_www.man: s/mwww/www/.
7365 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7367         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7368         * configure: Regenerated.
7369         * win32-diffs: Updated.
7371         * tmac/groff_mwww.tmac: Renamed to ...
7372         * tmac/groff_www.tmac: This.
7373         * tmac/mwww.tmac: Removed.
7374         * NEWS, tmac/Makefile.sub: Updated.
7376 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7378         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7379         Fix explanation of `\D' and `rt'.
7381 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7383         * tmac/an-old.tmac (an-header): Set header length equal to page
7384         width.
7385         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7386         minor fixes.
7387         * NEWS: Small fix.
7389 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7391         * NEWS, man/Makefile.sub: Updated.
7393 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7395         * man/ditroff.man: New file.
7397 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7399         * man/groff_differences.man: Renamed to ...
7400         * man/groff_diff.man: This.  Updated.
7401         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7403         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7404         * src/preproc/html/pushback.cc: This.  Updated.
7405         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7406         * src/preproc/html/pushback.h: This.
7407         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7408         Updated.
7410         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7411         * src/libs/libgroff/htmlhint.cc: This.
7412         * src/libs/libgroff/Makefile.sub: Updated.
7414         * tmac/an-old.tmac (an-end): Fix page length.
7416 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7418         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7419         * man/Makefile.sub: Include groff_differences.man.
7420         * VERSION: Set to 1.18.
7421         * REVISION: Set to 0.
7423 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7425         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7426         the second dot (or ending macro name) to end a macro.
7427         * doc/groff.texinfo: Doc fix.
7429 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7431         * tmac/doc-common (doc-header): Handle very long document titles
7432         better.
7434 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7436         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7438 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7440         * src/roff/troff/troff.man: Revised and split into troff.man and...
7441         * man/groff_differences.man: New file.
7442         * NEWS: Updated.
7444 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7446         * tmac/an-old.tmac (TS, TE): New macros for table support.
7448 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7450         * src/include/lib.h: Provide a fix for emx to not include
7451         groff-getopt.h.
7453 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7455         * src/roff/troff/input.cc (substring_macro): Fix computation of
7456         boundary values.
7458 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7460         Undo change from 2001-08-28.
7462         * src/roff/troff/input.cc (have_input): New global variable.
7463         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7464         in compatibility mode.
7465         (process_input_stack): Use it.
7467 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7469         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7470         being handled as end-of-sentence characters,
7472 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7474         * src/roff/troff/input.cc (file_iterator): New members
7475         `suppress_newline_flag' and `seen_escape'.
7476         (file_iterator::next_file): Updated.
7477         (file_iterator::fill): Use it.
7478         (string_iterator): New member `suppress_newline_flag'.
7479         (string_iterator::fill): Set it.
7480         (get_color_element): Use MAX_COLOR_VAL.
7481         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7482         (no_fill): Don't set `env->ignore_next_eol'.
7483         (environment::newline): Handle `eol' tag properly.
7484         Emit `eol.ce'.
7485         (environment::add_html_tag): Set `env->ignore_next_eol'.
7486         Don't handle `.ce'.
7487         * src/roff/troff/env.h (environment): Updated.
7489         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7490         member function.
7491         (html_printer::outstanding_eol): New member function.
7492         (html_printer::do_title): Use new functions.
7493         (html_printer::troff_tag): Test `id_eol_ce'.
7495 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7497         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7498         files work with -C also.
7500 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7502         * doc/pic.ms: Minor fix.
7503         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7504         as a valid command line switch.
7505         * src/devices/grohtml/post-html.cc (main): Ditto.
7506         (usage): Updated.
7507         * src/devices/grohtml/grohtml.man: Updated.
7508         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7510 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7512         Implementing color support in troff, pic, grops, and grohtml.  These
7513         changes are based on a major patch provided by Gaius Mulley
7514         <gaius@glam.ac.uk>.
7516         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7517         definitions with both hex values and fractions.
7519         New escapes: \m and \M for drawing and background color,
7520         respectively.  This corresponds to the troff output commands `m'
7521         and `DF'.
7523         groff and troff accept command line switch `-c' to disable color
7524         output (which is automatically disabled in compatibility mode).
7526         New scaling indicator `f' for fractions (1f = 65536u).
7528         New conditional operator `m' to test for defined colors with `if'
7529         and `ie'.
7531         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7532         (or `outlined'), and `shaded' added to pic.
7534         * src/include/color.h: New file.
7535         * src/include/driver.h: Include it.
7536         * src/include/printer.h: Include color.h.
7537         (environment): New members `col' and `fill'.
7538         (printer): Remove `adjust_arc_center' member function.
7539         * src/include/Makefile.sub: Updated.
7541         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7542         `env.fill'.
7543         Handle `m' and `DF' troff commands.
7544         * src/libs/libgroff/color.cc: New file.
7545         * src/libs/libgroff/Makefile.sub: Updated.
7547         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7548         (stop): Removed.
7549         (createImage): Fix computation of `y2'.
7550         Use `pnmcrop' also.
7551         (buffer::write_file_html): Remove calls to `stop'.
7553         * src/preproc/pic/common.h (common_output): New abstract function
7554         members `set_color', `reset_color', `get_last_filled', and
7555         `get_outline_color'.
7556         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7557         (object_spec): Add members `shaded' and `outlined'.
7558         * src/preproc/pic/output.h (output): `command' is now abstract.
7559         New function members `set_color', `reset_color', `get_last_filled',
7560         and `get_outline_color'.
7561         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7562         `outline[d]', and `shaded'.
7563         * src/preproc/pic/object.cc (output::command): Removed.
7564         (output::set_location): Moved to output.h.
7565         (graphic_object): Add protected members `outline_color' and
7566         `color_fill'.
7567         Add member functions `set_outline_color', `get_outline_color', and
7568         `set_fill_color'.
7569         (closed_object): Add member function `set_fill_color'.
7570         Add member `color_fill'.
7571         (graphic_object::print_text): Use `out->set_color' and
7572         `out->reset_color'.
7573         (box_object::print, ellipse_object::print, circle_object::print,
7574         line_object::print, spline_object::print, arc_object::print): Ditto.
7575         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7576         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7577         `SHADED', making them `%left'.
7578         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7579         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7580         `set_color', `reset_color', `get_last_filled', and
7581         `get_outline_color'.
7582         * src/preproc/pic/troff.cc (simple_output): New abstract function
7583         members `set_color', `reset_color', and `get_last_filled'.
7584         (simple_output::polygon, simple_output::circle,
7585         simple_output::ellipse): Use `get_last_filled'.
7586         (troff_output): New members `last_filled' and `last_outlined'.
7587         New function members `set_color', `reset_color', `get_last_filled',
7588         and `get_outline_color'.
7589         (troff_output::finish_picture): Use `reset_color'.
7590         (troff_output::set_fill): Test `last_filled'.
7591         * src/preproc/pic/pic.man: Updated.
7593         * src/roff/groff/groff.cc (main): Implement `-c' option.
7594         (synopsis, help): Updated.
7595         src/roff/groff/groff.man: Updated.
7597         * src/roff/troff/troff.h: Include color.h.
7598         (warning_type): Add WARN_COLOR.
7599         * src/roff/troff/env.h (environment): New members
7600         `{cur,prev}_{glyph,fill}_color'.
7601         New member functions `get_{prev_,}{glyph,fill}_color'.
7602         * src/roff/troff/env.cc: Initialize and implement them.
7603         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7604         Replace `NULL' with `0' everywhere for consistency.
7605         (lookup_color, default_black, do_glyph_color, do_fill_color,
7606         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7607         define_color): New functions.
7608         (token::next): Implement \M and \m escapes.
7609         (do_if_request): Implement `m' operator.
7610         (usage): Updated.
7611         (main): Implement `-c' option.
7612         (init_markup_requests): Add `defcolor' request.
7613         (warning_table): Add `color' warning.
7614         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7615         classes.
7616         * src/roff/troff/node.cc (troff_output_file): New members
7617         `current_{page,glyph}color'.  New member functions `put_hex',
7618         `glyph_color', and `fill_color'.
7619         (glyph_color_node::*, fill_color_node::*): Implement it.
7620         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7621         (parse_term): Add support for `f'.
7622         * src/roff/troff/troff.man: Updated.
7624         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7625         entry for `F'.
7626         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7627         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7629         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7630         (tag_definition): Use `void *' for arg1.
7631         (html_text): New member functions `do_color' and `done_color'.
7632         Use `void *' for second parameter of `push_para' member function.
7633         New `push_para' member function with a single parameter.
7634         Use `char *' for parameter of `issue_table_begin' member funtion.
7635         New `issue_color_begin' member function.
7636         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7637         COLOR_TAG.
7638         (html_text::issue_color_begin): New function.
7639         (html_text::issue_table_begin): Use `char *' for parameter.
7640         (html_text::start_tag, html_text::shutdown,
7641         html_text::check_emit_text): Updated.
7642         (html_text::push_para): Use `void *' for second parameter.
7643         Add same function with only one parameter.
7644         (html_text::do_*): Updated.
7645         (html_text::do_color, html_text::done_color): New functions.
7646         * src/devices/grohtml/post-html.cc (style): New member `col'.
7647         Mew member `style' with 6 parameters.
7648         (style::style, style::operator==): Updated.
7649         (html_printer::do_font): Use it.
7650         (html_printer::draw): Add dummy entry for `F'.
7651         (html_printer::set_char): Updated.
7652         * src/devices/grohtml/grohtml.man: Updated.
7654         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7655         trailing zeroes removed.
7656         (ps_printer): New members `sbuf_color', `fill_color', and
7657         `output_color'.
7658         Removed member `fill'.
7659         New member function `set_color'.
7660         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7661         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7662         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7664         * tmac/color-html.tmac, tmac/color.tmac: New files.
7665         * tmac/troffrc: Include them.
7666         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7667         * tmac/Makefile.sub: Updated.
7669         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7670         man/groff.man: Updated.
7671         * font/devps/prologue.ps: Define FC and CO functions.
7673 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7675         Fix incorrect cropping of images and incorrect handling of special
7676         characters.  Fix handling of file names in \O.
7678         * src/include/geometry.h: New file.
7679         * src/libs/libgroff/geometry.cc: New file.
7680         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7681         to `geometry.cc'.
7682         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7683         initial spaces.
7684         (do_suppress): Updated.
7685         * src/roff/troff/node.cc: Include geometry.h.
7686         (troff_output_file::flush_tbuf): Fixed parameters to
7687         `check_output_limits'.
7688         (troff_output_file::check_charinfo): Ditto.
7689         (troff_output_file::determine_line_limits): Add support for `Da'
7690         and `Dl' commands.
7692         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7693         Add new parameter `is_special' to decode special characters from
7694         escape sequences.
7695         (html_printer::do_title, html_printer::do_heading,
7696         html_printer::do_indentedparagraph,
7697         html_printer::translate_to_html, html_printer::special): Updated.
7699 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7701         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7702         Fix entry for config.h.
7703         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7704         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7705         * src/preproc/eqn/eqn.man: Document -d command line option.
7707 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7709         * man/groff.man: Use
7711           .ev xxx
7712           .na
7713           .nh
7714           <table>
7715           .ev
7717         instead of the old code (`.ad .hy' after the table) to suppress
7718         incorrect hyphenation for grohtml output.
7720 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7722         * man/groff_font.man, man/groff_out.man: Minor fixes.
7724 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7726         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7727         Arnold Robbins <arnold@skeeve.com>).
7729 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7731         * configure: Regenerated with autoconf 2.52.
7733         * doc/groff.texinfo: Complete revision of indices.
7735 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7737         * doc/Makefile (clean): Updated to delete all indices.
7739 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7741         * src/roff/troff/troff.man: Remove superfluous line.
7743         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7744         given on the command line (or rather, if only the default warnings
7745         are set).
7747 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7749         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7750         use .ne for TTY devices.
7752 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7754         * src/roff/troff/token.h, src/roff/troff/input.cc:
7755         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7757 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7759         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7760         * src/roff/troff/input.cc (token::next): Return
7761         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7762         compatibility mode.
7763         (token::description): Updated.
7764         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7765         (token::add_to_node_list, token::process): Ignore
7766         TOKEN_TRANSPARENT_ESCAPE.
7768 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7770         * tmac/an-old.tmac: Fix `S' string.
7772 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7774         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7776 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7778         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7779         backslashes).
7780         Many other minor fixes.
7782         * configure.ac: Add message at end to inform how to compile
7783         xditview.
7784         * configure: Regenerated.
7786 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7788         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7789         Updated to latest version of libc.
7791 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7793         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7794         Autoconf 2.50 and newer can handle this.
7795         * configure: Regenerated.
7797 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7799         * doc/pic.ms: Fix typo.
7800         * src/preproc/tbl/tbl.man: Document case of global options.
7802 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7804         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7805         handling of `CR' font.
7807 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7809         Use a config.h file.
7811         * src/include/lib.h: Include config.h.
7812         * All C files: Ditto (if necessary).
7813         * All C++ source and header files: Include lib.h first (if
7814         necessary).
7816         * src/include/config.hin: New file (autogenerated by autoheader).
7817         * stamp-h.in: New file.
7818         * configure.ac: Updated.
7819         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7820         (GROFF_ARRAY_DELETE): Simplified.
7821         * Makefile.sub (DISTCLEANFILES): Updated.
7822         Added targets for remaking config.status, config.hin, config.h,
7823         stamp-h.in, and stamp-h.
7824         * configure: Regenerated.
7826 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7828         * NEWS: Updated.
7830 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7832         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7833         (do_sprintf): Use snprintf().
7835 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7837         * src/libs/snprintf/*: Added an snprintf module written by Mark
7838         Martinec.
7839         * src/libs/libgroff/Makefile.sub: Updated.
7840         * configure.ac: Add test for snprintf().
7841         * Makefile.in: Updated.
7842         * configure: Regenerated.
7844         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7845         uses snprintf().
7847 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7849         * tmac/doc.tmac (Ex): New implementation.
7850         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7852 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7854         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7855         argument.
7856         * tmac/groff_tmac.man: Updated.
7858 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7860         * src/preproc/tbl/tbl.man: Minor documentation update.
7862 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7864         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7865         * configure.ac: Add declaration test for gettimeofday().
7866         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7867         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7868         * configure: Regenerated.
7870 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7872         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7873         * configure.ac: Add declaration test for strcasecmp().
7874         * Makefile.in: Updated.
7875         * configure: Regenerated.
7876         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7877         this is necessary because groff's mkstemp.cc is C++.
7878         Add declaration conditionally for strcasecmp().
7880 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7882         Integrated pic2graph, contributed by Eric S. Raymond.
7884         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7885         files.
7886         * Makefile.in, NEWS: Updated.
7888         * src/preproc/tbl/tbl.man: Revised.
7890 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7892         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7894 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7896         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7897         requests.
7899 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7901         * Makefile.sub (configure): Depend on configure.ac, not
7902         configure.in.
7903         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7905 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7907         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7908         fixes.
7910 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7912         * src/roff/troff/troff.man: Improve documentation of -E option.
7914 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7916         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7917         Simplified.
7919 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7921         * src/preproc/refer/refer.cc: Undo last change.
7922         * src/devices/grohtml/post-html.cc: Ditto.
7924 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7926         * src/preproc/refer/refer.cc: Include `lib.h'.
7927         * src/devices/grohtml/post-html.cc: Ditto.
7929 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7931         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7932         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7933         * Makefile.in: Comment updated.
7934         * configure: Regenerated.
7936 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7938         * src/preproc/pic/pic.cc: Removed.
7939         * src/preproc/pic/pic_tab.h: Removed.
7940         * src/preproc/refer/label.cc: Removed.
7942         * doc/Makefile (.ms.html): Don't use a file name extension in
7943         argument to grohtml's -I option.
7944         * Makefile.in (dist): Remove CVS directories.
7945         Call `distfiles' target.
7947         * src/devices/grohtml/grohtml.man: Add information about valid
7948         versions of pnmtopng.
7949         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7950         name instead of number.
7952 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7954         * doc/groff.texinfo: Minor fixes.
7956 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7958         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7959         (clean): Updated.
7961 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7963         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7964         * src/libs/libgroff/mkstemp.cc: New file.
7965         * src/libs/libgroff/mksdir.cc: New file.
7966         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7967         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7968         * src/libs/libgroff/Makefile.sub: Updated.
7969         * src/include/lib.h: Add mksdir() prototype.
7970         * src/include/posix.h: Define S_IXUSR if not yet defined.
7972         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7973         (createAllPages): Use mksdir() instead of current code.
7974         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7975         (main): [!HAVE_MKSTEMP]: Removed.
7977         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7978         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7979         macros.
7980         * configure.ac: Add tests for stdint.h, sys/time.h, and
7981         gettimeofday().
7982         Call new GROFF_xxx macros.
7983         * configure: Regenerated.
7984         * Makefile.in: Comments updated.
7986 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7988         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7989         instead of current code.
7990         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7991         * src/roff/groff/groff.cc (possible_command::insert_args): New
7992         function.
7993         (main): Use it for predriver handling instead of insert_arg().
7995 2001-07-19  Werner LEMBERG  <wl@gnu.org>
7997         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7998         groff also.
8000         * src/include/posix.h: Define S_IWUSR if not yet defined.
8002 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8004         * NEWS: Updated.
8006 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8008         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8009         Some other minor fixes.
8010         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8012 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8014         Replace call to `troff' with `groff -Z' to make it aware of
8015         GROFF_BIN_PATH.
8017         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8018         (troff_command, command_prefix): Removed.
8019         (alterDeviceTo): Use groff.
8020         (addZ): New function.
8021         (char_buffer::do_html): Use it.
8022         (scanArguments): Use TROFF_COMMAND.
8023         (findPrefix): Removed.
8024         (main): Updated.
8025         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8027 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8029         * doc/pic.ms: Documentation fixes.
8031 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8033         Replace atexit() with global destructor.
8035         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8036         (xtmpfile_list_init): New global structure to deallocate
8037         xtmpfile_list on exit.  Its destructor inherits most code from
8038         remove_tmp_files().
8039         (remove_tmp_files): Deleted.
8040         (add_tmp_file): Simplified.
8042 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8044         Replace strdup() with strsave().
8046         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8047         (set_papersize): Use strsave() and a_delete.
8048         (main): Use strsave().
8049         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8050         removeAllPages): Use strsave() and a_delete.
8052         * configure.ac: Remove test for strdup.
8053         * Makefile.in: Comment updated.
8054         * configure: Regenerated.
8056 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8058         * win32-diffs: Updated.
8060 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8062         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8063         removing the old one.
8064         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8066 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8068         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8070 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8072         Merge -xwidth into -width.  Add -xwidth functionality to -column
8073         also.
8075         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8076         avoid warning.
8077         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8078         string immediately following a leading dot starts with a valid mdoc
8079         argument.
8080         Add similar code to the -column branch.
8081         (doc-Bl-usage): Updated.
8082         * groff_mdoc.man: s/-xwidth/-width/.
8084 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8086         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8087         running into centered or non-formatted text.
8089 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8091         Introduce short and long prefixes to have the selection at run-time
8092         whether there is a 8+3 limit for names of temporary files.
8094         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8095         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8096         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8097         variables.
8098         (temp_init): New global structure to initialize above three
8099         variables.
8100         (xtmptemplate): Use two parameters for long and short prefix.
8101         Simplify code use above three variables.
8102         (xtmpfile): Use long and short prefixes as parameters.
8103         * src/include/lib.h: Updated.
8105         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8106         with ...
8107         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8108         (createAllPages, makeTempFiles): Updated.
8110 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8112         * REVISION: Increased to 3.
8114 Version 1.17.2 released
8115 =======================
8117 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8119         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8120         to size_t.
8122 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8124         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8125         Fix synopsis.
8126         * tmac/groff_mdoc.man: Fix synopsis.
8128 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8130         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8131         Restore `doc-Pa-font'.
8133 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8135         * src/utils/indxbib/dirnamemax.c: Moved to ...
8136         * src/libs/libgroff/maxfilename.cc: Here.
8137         s/dir_name_max/file_name_max/.
8138         Add copyright.
8139         * src/include/lib.h: Add file_name_max.
8140         * src/utils/indxbib/indxbib.cc: Updated.
8141         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8142         Updated.
8144         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8145         as empty.
8146         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8148         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8149         REGION_TEMPLATE): New macros.
8150         (createAllPages, makeTempFiles): Use them.
8151         Include `nonposix.h'.
8152         (html_system): New function.
8153         (createAllPages, createImage): Use it.
8154         Use EXE_EXT.
8156         * tmac/www.tmac: Fix typos.
8158 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8160         * tmac/www.tmac: Disable hyphenation in normal text only if output
8161         device is html.
8162         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8163         * tmac/groff_mwww.man, NEWS: Updated.
8165 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8167         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8168         image location.
8170 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8172         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8173         doc-display-ps-stack): Implement font and font size stack for
8174         displays.
8176 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8178         * REVISION: Increased to 2.
8179         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8181         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8182         beginning of a line.
8183         * src/groff/grog/grog.sh: Ditto.
8185 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8187         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8188         make it portable.
8190 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8192         Fix problems with preprocessor string for `man' program.
8194         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8195         Updated/added copyright.
8196         Moved Emacs's local variable to identify nroff mode to the end of
8197         the file; add local variable if missing.
8199 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8201         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8202         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8203         * configure: Regenerated.
8205 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8207         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8208         * configure: Regenerated.
8210 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8212         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8213         but www.tmac.
8214         * doc/pic.ms: Fix typos.
8216 Version 1.17.1 released
8217 =======================
8219 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8221         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8222         * configure: Updated.
8224 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8226         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8227         image names.
8228         * src/roff/troff/dic.cc (blank_line): Add html tag.
8230 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8232         * src/roff/troff/input.cc (do_suppress): Fix typo.
8234 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8236         Added two new options (-D and -I) to specify image names and a
8237         subdirectory to place the images in.
8239         Change syntax from \\Ox to \\O[x].
8241         * src/devices/grohtml/post-html.cc (main): Add options.
8242         (usage): Updated.
8243         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8244         Use `NULL' instead of `0' for null string pointers.
8245         (MAX_RETRIES): New macro.
8246         (lengthOfintToStr, intToStr, make_message): New functions.
8247         (makeFileName): Make function static.
8248         Implement -D and -I options.
8249         (checkImageDir): New function.
8250         (write_end_image, write_start_image): Use new syntax of \O.
8251         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8252         make_message().
8253         (createImage): Use make_message().
8254         (addps4html): Add guard for malloc().
8255         (usage, scanArguments): Updated.
8256         (makeTempFiles): Use mkstemp().
8257         (removeTempFiles): Use unlink().
8258         (findPrefix): Add guard for malloc().
8259         (main): Updated.
8260         * src/roff/troff/input.cc (get_delim_file_name): New function to
8261         parse \O.
8262         (do_suppress): Updated to parse new syntax.
8263         * src/devices/grohtml/grohtml.man: Updated.
8264         * tmac/www.tmac: Updated to new syntax.
8266         * NEWS: Updated.
8268 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8270         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8272         * src/devices/grohtml/grohtml.man: Minor improvements.
8274 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8276         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8278 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8280         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8281         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8282         the former.
8283         * src/preproc/grn/grn.man: Add proper '\" string.
8285 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8287         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8289 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8291         Updated to autoconf 2.50.
8293         * configure.in: Renamed to...
8294         * configure.ac: This.
8295         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8296         (GROFF_OS390): Updated.
8297         * configure: Regenerated.
8299 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8301         * src/roff/troff/env.c, src/roff/troff/env.h,
8302         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8303         from 2000-12-21.
8305 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8307         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8309 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8311         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8312         less than or equal zero; set it to 1 then.
8313         * src/roff/troff/node.h (node::node): Initialize `last'.
8315 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8317         * tmac/an-old.tmac: Make predefined strings work in compatibility
8318         mode.
8319         Add troff version guard.
8320         * tmac/doc.tmac: Simplify version guard.
8322 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8324         The .ns and .rs requests are now honoured not only in the top-level
8325         but in all diversions (similar to UNIX troff).
8327         This change is based on a patch from Tadziu Hoffmann
8328         <hoffmann@usm.uni-muenchen.de>.
8330         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8331         (top_level_diversion): Remove `no_space_mode' member.
8332         * src/roff/troff/div.cc (diversion::diversion,
8333         top_level_diversion::top_level_diversion): Updated.
8334         (macro_diversion::output): Reset `no_space_mode'.
8335         (no_space, restore_spacing): Use `curdiv' unconditionally.
8336         (space_request, blank_line): Check `curdiv->no_space_mode'.
8337         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8338         `curdiv' unconditionally.
8339         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8340         Updated.
8342 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8344         Added two new requests `de1' and `am1' which are similar to `de' and
8345         `am' with the difference that compatibility mode is saved on entry,
8346         switched off during macro execution, and restored on exit.
8348         * src/roff/troff/input.h: Added two new special characters
8349         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8350         * src/roff/troff/input.cc (input_iterator): Added two member
8351         functions `save_compatible_flag' and `get_compatible_flag'.
8352         (input_stack): Ditto.
8353         (string_iterator): Ditto.  Also add private member
8354         `saved_compatible_flag'.
8355         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8356         (calling_mode): New enumeration.
8357         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8358         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8359         (define_macro, define_indirect_macro, append_macro, ignore): Use
8360         `calling_mode'.
8361         (define_nocomp_macro, append_nocomp_macro): New functions.
8362         (init_input_requests): Updated.
8363         (do_request): Rename local variable `saved_compatible_flag' to
8364         `old_compatible_flag'.
8365         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8367         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8368         public and trap-invoked macros.  As a consequence, the man macros
8369         work in compatibility mode also.
8371 2001-05-06  Solar Designer  <solar@openwall.com>
8373         * Makefile.in: Use $(mandir).
8375 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8377         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8379 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8381         Added `.ns' number register: Returns 1 in no-space mode (if in
8382         top-level diversion), 0 otherwise.
8384         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8385         (init_div_requests): Updated.
8386         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8387         Document it.
8389 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8391         * src/roff/nroff/nroff.man: Improved documentation (especially
8392         locales).
8394 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8396         Added `brp' request: This is \p as a request.
8398         * src/roff/troff/env.cc (environment::do_break): Add parameter
8399         `spread'.
8400         (do_break_request): New function (was `break_request').
8401         (break_request): Calls `do_break_request'.
8402         (break_spread_request): New; calls `do_break_request'.
8403         (init_env_requests): Updated.
8404         * src/roff/troff/env.h: Updated.
8405         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8407         * REVISION: Increased to 1.
8408         * win32-diffs: Updated.
8410 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8412         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8413         * tmac/troffrc-end: Make it really work in compatibility mode.
8415 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8417         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8418         stdlib.h.
8420 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8422         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8423         latest versions from glibc CVS archive.
8425         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8426         <c.zeelenberg@hccnet.nl>.
8428 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8430         * configure.in: Move check for mkstemp() to...
8431         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8432         * configure: Regenerated.
8434         * src/include/groff-getopt.h: Don't use variable names in
8435         declarations.
8437         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8438         * src/devices/grohtml/Makefile.sub,
8439         src/devices/grohtml/post-html.cc: Updated.
8441 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8443         * configure.in: Add special check for mkstemp().
8444         * src/libs/libgroff/tmpfile.cc: Use it.
8445         * src/utils/indxbib/indxbib.cc: Ditto.
8446         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8447         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8448         `const'.
8450 2001-04-20  Bruce Lilly  <blilly@erols.com>
8452         `Version_string' as C++ object was not visible to linker from C
8453         object files.
8454         Add `const' to `Version_string'.
8456         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8457         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8458         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8459         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8460         (scanArguments), src/preproc/refer/refer.cc (main),
8461         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8462         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8463         (main), src/devices/grohtml/post-html.cc (main),
8464         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8465         (main), src/utils/hpftodit/hpftodit.cc (main),
8466         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8467         (main), src/utils/lkbib/lkbib.cc (main),
8468         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8470         * src/roff/groff/pipeline.c: Add _UWIN.
8471         * src/include/nonposix.h: Ditto.
8473 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8475         * src/include/lib.h: Use HAVE_STRERROR.
8476         * src/roff/groff/pipeline.c: Ditto.
8477         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8478         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8479         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8480         * win32-diffs: Updated.
8481         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8483 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8485         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8486         instead of hardwired `"troff"'.
8487         (char_buffer::read_file): Remove unused variables.
8488         (char_buffer::write_file_troff): Ditto.
8489         (char_buffer::write_file_html): Ditto.
8490         (generateImages): Ditto.
8491         (abs): Removed.
8492         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8494         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8496         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8497         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8498         index_search_item::search1): Ditto.
8499         * src/roff/troff/node.h (width_list): Reorder members.
8500         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8501         (lookup_warning): Ditto.
8502         (prepend_string): Commented out.
8503         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8504         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8505         * src/preproc/tbl/main.cc (process_format): Ditto.
8506         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8507         compiler warnings.
8508         * src/preproc/pic/pic.cc: Updated.
8509         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8510         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8511         * src/preproc/refer/command.cc (execute_command): Ditto.
8512         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8513         * src/preproc/refer/token.cc (lookup_token): Ditto.
8514         * src/preproc/soelim/soelim.cc: Ditto.
8515         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8516         (isHexDigit): Commented out.
8517         (pushBackBuffer::isString): Remove unused variable.
8518         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8519         warning.
8520         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8521         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8522         Ditto.
8523         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8524         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8525         lookup_paper_size): Ditto.
8526         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8527         (text_glob, element_list): Reorder members.
8528         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8529         compiler warning.
8530         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8531         return value to `void'.
8532         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8533         of initializers.
8534         * src/devices/grohtml/html.h (simple_output::check_newline,
8535         simple_output::space_or_newline, simple_output::enable_newlines):
8536         Add return value.
8537         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8538         compiler warnings.
8539         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8540         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8541         output_ligatures, output_charset, read_map): Ditto.
8542         * src/utils/lookbib/lookbib.cc (main): Ditto.
8543         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8544         (do_file): Fix typo (`=' -> `==').
8545         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8546         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8548 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8550         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8551         Fix usage of GROFF_BIN_PATH.
8552         * src/roff/nroff/nroff.man: Updated.
8554 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8556         * NEWS: Fixing typos.
8557         Updated.
8559 Version 1.17 released
8560 =====================
8562 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8564         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8565         directory, not in $(srcdir).
8567 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8569         * doc/groff.texinfo: More info on conditionals.
8571 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8573         * doc/groff.texinfo: Added some info about groff internals.
8575         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8576         about missing special character only if the name is non-null.
8578 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8580         Removing the grohtml-old device driver which is now obsolete.
8582         * src/devices/grohtml-old/*: Removed.
8583         * font/devhtml-old/*: Removed.
8584         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8585         Remove comments.
8586         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8587         * test-groff (PATH): Updated.
8588         * tmac/Makefile.sub (NORMALFILES): Updated.
8589         * tmac/an-old.tmac: Remove special code for html-old device.
8590         Replace `html-or-html-old' register with `an-html'.
8591         * tmac/eqnrc: Updated.
8592         * tmac/html-old.tmac: Removed.
8593         * tmac/troffrc, tmac/troffrc-end: Updated.
8594         * tmac/www.tmac: Remove special code for html-old device.
8595         Replace `html-or-html-old' register with `www-html'.
8597         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8598         src/libs/libgroff/htmlindicate.cc (graphic_end),
8599         include/htmlindicate.h, src/preproc/grn/*.cc,
8600         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8601         single argument for consistency with rest of source code.
8603         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8605 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8607         * src/roff/troff/troff.man: Fixing typos.
8609 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8611         * doc/pic.ms: Fixing many font switches.
8612         * doc/groff.texinfo: Fixes, additions.
8613         * MORE.STUFF: Updated.
8615 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8617         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8618         simple anchor.
8619         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8620         cropping of images.
8621         (removeTempFiles): New function to tidy up temporary files.
8622         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8623         Many fixes to do with the new inline suppress node and image regions
8624         are much tighter.
8625         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8626         (generate_img_src): New function.
8627         (html_printer::do_auto_image): Utilizes it.
8628         (do_heading, do_title): Include inline images within their contents.
8629         (html_printer::begin_page): Tidied up comments that are issued to
8630         the html output file.
8631         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8632         than courier.
8633         (text_glob::is_br): New method used by do_heading.
8634         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8635         equivalent diversion.
8636         * src/include/html-strings.h: Altered image tags to reflect the
8637         inline image node.
8638         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8639         parameter.
8640         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8641         it is already inside a pic image.  Only emit tags if the argument
8642         `-Tps:html' is present.
8643         * src/preproc/tbl/main.cc: Changes to reflect additional
8644         `html_end_suppress' parameter.
8645         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8646         emitted since the last eol tag was written.
8647         * src/roff/troff/env.h: New boolean `emitted_node'.
8648         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8649         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8650         * src/roff/troff/node.cc (check_charinfo): New method. 
8651         (troff_output_file::determine_line_limits): Alterations to limit
8652         checking.
8653         * tmac/www.tmac: Changes to reflect new suppress nodes.
8654           
8655 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8657         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8658         Escape the html_glyph in the buffer.
8659         (str_translate_to_html): Output the unescaped escaped_char.
8660         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8661         `frame=void', not `frame=none'.  Add `border=0'.
8663 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8665         * PROBLEMS: Add some words on how to avoid wrapper macros.
8667 2001-04-11  Blake McBride  <blake@florida-software.com>
8669         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8671 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8673         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8674         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8675         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8676         * Makefile.sub (DISTCLEANFILES): Here.
8678         * libs/libgroff/new.cc: Include `nonposix.h'.
8679         * win32-diffs: Updated.
8681 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8683         Added skeleton macro for defunct macros.
8685         Updated documentation.
8687         When inside displays, an empty input line warning should be
8688         suppressed.  If another macro call is put inside a display,
8689         all subsequent empty lines found in that display caused a
8690         warning to be emitted.
8692         * tmac/doc.tmac (doc-defunct-macro): New macro.
8693         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8694         (doc-restore-global-vars): Fixed typo.
8695         (doc-empty-line): Check the `doc-display-depth' register to
8696         determine whether we are inside display or not.
8698         * tmac/doc-common: Removed `Or' and `Sf' registers.
8699         Moved obsolete `Ds' macro to doc.tmac.
8701         * tmac/groff_mdoc.man: Bump document date.
8702         Document `.Vt' under ``Variable Types''.
8703         Removed documentation for obsolete `.Or' macro.
8705 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8707         * NEWS: Updated.
8708         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8710 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8712         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8713         (usage): Add stream argument. Don't exit.
8714         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8715         Write --version output to stdout, not stderr.
8716         (usage): Add stream argument. Don't exit.
8717         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8718         (usage): Add stream argument. Don't exit.
8719         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8720         constants.
8721         (usage): Add stream argument. Don't exit.
8722         (main): Write --help output to stdout, not stderr.
8723         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8724         (usage): Add stream argument. Don't exit.
8725         * src/devices/grops/ps.cc (main): Accept --help and --version.
8726         (usage): Add stream argument. Don't exit.
8727         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8728         (usage): Add stream argument. Don't exit.
8729         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8730         (main): Accept --help and --version.
8731         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8732         (main): Accept --help and --version.
8733         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8734         (scanArguments): Accept --help and --version.
8735         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8736         (main): Accept --help and --version.
8737         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8738         (usage): Add stream argument. Don't exit.
8739         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8740         exit.
8741         (main): Accept --help and --version.
8742         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8743         (main): Accept --help and --version.
8744         * src/roff/groff/groff.cc (main): Accept --help and --version.
8745         (synopsis): Add stream argument.
8746         (help): Write --help output to stdout, not stderr.
8747         (usage): Add stream argument. Don't exit.
8748         * src/roff/grog/grog.pl: Accept --help and --version.
8749         (help): New sub.
8750         * src/roff/grog/grog.sh: Accept --help and --version.
8751         * src/roff/nroff/nroff.sh: Accept --help and --version.
8752         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8753         (usage): Add stream argument. Don't exit.
8754         (main): Accept --help and --version.
8755         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8756         (usage): New function with stream argument, doesn't exit.
8757         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8758         (usage): New function with stream argument, doesn't exit.
8759         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8760         (usage): Add stream argument. Don't exit.
8761         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8762         (main): Accept --help and --version.
8763         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8764         exit.
8765         (main): Accept --help and --version.
8766         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8767         (main): Accept --help and --version.
8768         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8769         (usage): Add stream argument. Don't exit.
8771 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8773         Fix indentation in SYNOPSIS.
8775         Updated to include changes of latest BSD mdoc version (basically,
8776         the only change is that `.Fn' and `.Fc' put a final semicolon after
8777         a function declaration in the SYNOPSIS section).
8779         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8780         (doc-in-synopsis-section): New variable.  Updated all related
8781         functions.
8782         (doc-indent-synopsis-active): New register.
8783         (Nd, Fn, Fo): Use it.
8784         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8785         `.Cd' with long argument line produces indented wrapped lines. 
8786         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8787         undesirable line break to be output.
8788         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8789         `.rs'.
8790         (Fn, Fc): Add final `;' to output.
8791         (doc-save-global-vars, doc-restore-global-vars): Updated.
8792         * tmac/doc-common: Remove `Ex' register.
8793         Updated.
8794         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8795         copyright.
8797 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8799         * tmac/doc.tmac (Cd): Simplify code.
8800         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8802 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8804         Implement continuous underlining for nroff mode.  To do that, a new
8805         request in the ditroff language has been added: `x u N' (N is 0
8806         or 1).
8808         \X and \Y are now transparent to end-of-sentence recognition.
8810         * src/include/printer.h (printer): Add `type' parameter to `special'
8811         method.
8812         * src/libs/libdriver/printer.cc (printer::special): Updated.
8813         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8815         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8816         specials of type `p'.
8817         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8818         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8819         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8820         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8821         (glyph::order): New method.
8822         (tty_printer::add_char): Use it.
8823         (tty_printer::special): New method.
8824         (tty_printer::end_page): Implement it.
8826         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8827         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8828         to set `no_init_string'.
8829         (special_node::tprint_start): Use it.
8830         (special_node::same, special_node::copy): Updated.
8831         (special_node::ends_sentence): New method.
8832         (troff_output_file::start_special): Add parameter to include
8833         inititialization of special conditionally.
8835         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8836         * src/roff/troff/env.cc (do_underline_special): New function.
8837         (environment::set_font): Use it.
8838         (do_underline): Use it.  This was `underline()'.
8839         (underline): Call `do_underline()'.
8840         (continuous_underline): New function which calls `do_underline()'.
8841         (environment::newline): Use `do_underline_special()'.
8842         (init_env_requests): Updated.
8844         * NEWS, man/troff_out.man: Updated.
8846 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8848         * font/devutf8/R.proto: Fix code of 'shc'.
8850 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8852         Many fixes.  Diag lists can now be nested also; additionally,
8853         `-compact' and `-offset' are supported.
8855         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8856         (doc-list-have-indent-stackXXX): A new register stack.
8857         (doc-have-diag-list): Removed.
8858         (Bl): Use `doc-list-have-indent-stackXXX'.
8859         (El): Updated.
8860         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8861         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8862         (doc-set-vertical-and-indent): Ditto.
8863         (doc-next-list-depth): Removed.
8864         (doc-increment-list-stack): Updated.
8865         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8866         `doc-next-list-depth'.
8867         (doc-end-list, doc-end-column-list): Don't use
8868         `doc-increment-list-stack'.
8869         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8870         (doc-save-global-vars, doc-restore-global-vars): Updated.
8871         * tmac/doc-common: Updated.
8872         * tmac/groff_mdoc.man: Updated.
8873         * NEWS: Fix typo.
8875 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8877         * src/devices/grotty/grotty.man: Fix grammatical error.
8879 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8881         Remove .Ld from mdoc package; replace it with special handling of
8882         `...'.
8884         * tmac/doc-common: Remove `Ld' register.
8885         Uncomment `doc-volume-ds-*' strings.
8886         Remove `doc-operating-system-default'.
8887         (Os): Updated.
8888         * tmac/doc-syms (Ld): Removed.
8889         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8890         `...' specially.
8891         * NEWS: Updated.
8893         * tmac/groff_mdoc.man: Many fixes and updates.
8895 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8897         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8898         Bond <tkb@tkb.mpl.com>.
8899         * tmac/www.tmac: Save compatibility mode.
8901 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8903         * tmac/groff_mdoc.man: Many fixes.
8905 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8907         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8908         isn't recognized.
8910 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8912         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8913         diversion.  This fixes overlong tags.
8915 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8917         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8918         * tmac/doc-syms: Fix error messages.
8919         * tmac/an-old.tmac: Remove incorrect double backslashes.
8921 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8923         * tmac/Makefile.sub: Strip mdoc.local also
8924         * tmac/strip.sed: Fixed.
8926 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8928         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8929         selecting the font size.
8930         * tmac/groff_mdoc.man, NEWS: Document it.
8932 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8934         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8935         to `sv' request.
8936         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8937         argument to restore previous font family.
8938         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8940         * doc/groff.texinfo: More fixes and additions (mainly for font
8941         manipulating commands).
8943         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8944         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8945         * tmac/Makefile.sub, NEWS: Updated.
8947 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8949         Replaced mdoc implementation.  The new version is `state of the
8950         art', using almost all new features of groff 1.17 -- it won't run
8951         with older versions.
8953         * tmac/doc.tmac: Completely rewritten.
8954         * tmac/doc-common: Ditto.
8955         * tmac/doc-nroff: Ditto.
8956         * tmac/doc-ditroff: Ditto.
8957         * tmac/doc-syms: Ditto.
8958         * tmac/mdoc.local: New file.
8959         * tmac/groff_mdoc.samples.man: Replaced with ...
8960         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8961         * tmac/strip.sed: Updated.
8962         * tmac/Makefile.sub: Updated.
8963         * INSTALL: Updated.
8965         * tmac/groff_man.man: Add `man.local' to the FILES section.
8967 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8969         * doc/groff.texinfo: Added many @noindent.
8970         Replaced @end_Example -> @endExample.
8971         Added info whether registers are r/o.
8972         Many other additions and fixes.
8974 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8976         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8977         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8978         Improved @Def* macros: Now the exact syntax of request, register,
8979         and escapes is shown.
8980         Added macros for parentheses and brackets to be used in @Def*.
8981         Many fixes and improvements of the documentation.
8983 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8985         * doc/groff.texinfo: Added new index: `st' (for strings).
8986         Added macros @Defstr(x).
8987         Added macro @Example (adding @group).
8988         Other minor improvements.
8990 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8992         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8993         `rq' for requests.  `fn' is no longer used.
8994         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8995         Removed @Deffn(x).
8997         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8998         number with name of man page.
9000 2001-03-19  Larry Kollar  <kollar@alltel.net>
9002         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9003         consistency.
9005 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9007         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9008         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9009         * src/devices/grohtml/grohtml.man: Fixing typos.
9011 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9013         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9014         * tmac/groff_mwww.man: Remove .LINE macro
9015         * tmac/www.tmac (LINE): Add `.ti'.
9017         * src/devices/grohtml/post-html.cc (html_printer): New member
9018         `indent'.
9019         (html_printer::emit_raw): Use it.
9020         (html_printer::do_linelength): Ditto.
9021         (html_printer::do_pageoffset): Ditto.
9022         (html_printer::do_indentation): Ditto.
9023         (html_printer::do_tempindent): Ditto.
9024         (html_printer::do_break): Ditto.
9025         (html_printer::begin_page): Ditto.
9026         (html_printer::do_indentedparagraph): New function.
9027         (html_printer::troff_tag): Handle `.ip'.
9028         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9029         Add `<td width=...>' handling.
9030         (html_text::do_table): Add parameter.
9031         (html_text::do_indent): Updated.
9032         * src/devices/groohtml/html-text.h: Updated.
9034 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9036         Introduced simple html tables to implement indentation.
9038         * src/devices/grohtml/html.h (word, word_list): New structures.
9039         (simple_output): Use it.
9040         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9041         (html_printer): Improve indentation handling.
9042         (html_printer::emit_raw): Set `in_table' element.  Handle
9043         indentation if set.
9044         (html_printer::write_header): Move conditional downwards.
9045         Don't allow whitespace in tags.
9046         (html_printer::do_linelength): Handle line length and indentation
9047         conditionally.
9048         (html_printer::do_pageoffset): Handle indentation conditionally.
9049         (html_printer::do_indentation): Ditto.
9050         (html_printer::do_tempindent): New function member.
9051         (html_printer::do_fill): Take care of indentation.
9052         (html_printer::do_flush): Finish table.
9053         (html_printer::do_links): Ditto.
9054         (html_printer::do_break): New function for handling `.br' and `.ti'.
9055         (html_printer::troff_tag): Use it.
9056         Handle `.ti'.
9057         (html_printer::flush_globs): Fix.
9058         (html_printer::flush_page): Finish table.
9059         (html_printer::html_printer): Fix error message.  Set up
9060         `linelength'.
9061         (html_printer::add_to_sbuf): Remove special handling of character
9062         code 255.
9063         (to_unicode): Remove `stop()'.
9064         (html_printer::write_title): Cleanup.
9065         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9066         (html_printer::~html_printer): Flush text and end the line.
9067         Use `put_string()'.
9068         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9069         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9070         emission of tags.
9071         (html_text::start_tag): Disable newlines.
9072         (html_text::table_is_void): New function.
9073         (html_text::issue_table_begin): Ditto.
9074         (html_text::issue_table_end): Ditto.
9075         (html_text::push_para): Better table handling.
9076         (html_text::do_indent): New function.
9077         (html_text::do_table): Ditto.
9078         (html_text::done_table): Ditto.
9079         (html_text::do_tt): Handle PRE_TAG.
9080         (html_text::is_in_table): New function.
9081         (html_text::check_emit_text): Handle tables.
9082         (html_text::do_emittext): Use `nl()'.
9083         (html_text::do_para): Handle table.
9084         (html_text::remove_def): New function.
9085         * src/devices/grohtml/output.cc (word, word_list): Implement
9086         methods.
9087         (simple_output::end_line): Flush last word.
9088         (simple_output::simple_comment): Ditto.
9089         (simple_output::begin_comment): Recoded.
9090         (simple_output::end_comment): Ditto.
9091         (simple_output::comment_arg): Removed.
9092         (simple_output::check_newline): Improve test and flush last word.
9093         (simple_output::space_or_newline): Improved.
9094         (simple_output::write_newline): Replaced with...
9095         (simple_output::nl): This.
9096         (simple_output::put_raw_char): Flush last word.
9097         (simple_output::check_space): Removed.
9098         (simple_output::put_translated_string): Ditto.
9099         (simple_output::put_string): Simplified.
9100         (simple_output::put_number): Updated.
9101         (simple_output::put_float): Ditto.
9102         (simple_output::put_symbol): Removed.
9103         (simple_output::enable_newlines): Add `check_newline()'.
9104         (simple_output::flush_last_word): New function.
9106         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9107         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9109         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9110         * tmac/an-old.tmac (TP): Ditto.
9112 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9114         * mdate.sh: Make it POSIX compliant.
9116 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9118         Added the `return' request to end a macro immediately.  It simply
9119         pops iterators from the input stack until a macro iterator is found.
9121         * src/roff/troff/input.cc (input_iterator::is_macro,
9122         macro_iterator::is_macro): New member.
9123         (input_return_boundary): New class to signal an immediate return
9124         to while_request().
9125         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9126         New functions.
9127         (input_stack::clear): Use it.
9128         (input_stack::pop_macro): New function.
9129         (while_request): Use `is_return_boundary()'.
9130         (return_macro_request): New function.
9131         (init_input_requests): Use it.
9133         * src/roff/troff/TODO: Updated.
9134         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9136 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9138         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9139         cleanup.
9141 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9143         Make `\B' more rigid.
9145         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9146         parameter.
9147         (get_number_rigidly): New function.
9148         * src/roff/troff/input.cc (do_expr_test): Use it.
9149         * src/roff/troff/token.h: Updated.
9151         * src/roff/troff/request.h: Fix typo (init_html_request ->
9152         init_markup_request).
9154 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9156         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9157         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9158         are now `.begin', `.end', `.image'.
9160         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9161         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9162         Use add_char_to_sbuf().
9163         (to_unicode): New function.
9164         (char_translate_to_html): Changing type of `ch' parameter.
9165         Use `to_unicode()'.
9166         (html_printer::~html_printer): Comment out doctype string.
9167         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9168         instead of `.html-end'.
9169         (write_start_image): Use `.begin' and `.image' instead of
9170         `.html-begin' and `.html-image'.
9171         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9172         (html_begin): Renamed to ...
9173         (begin): This.
9174         (html_end): Renamed to ...
9175         (end): This.
9176         (html_image): Renamed to ...
9177         (image): This.
9178         (init_html_requests): Renamed to ...
9179         (init_markup_requests): This.
9180         * tmac/www.tmac: Updated.
9182 2001-02-28  Bram  <bram@avontuur.org>
9184         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9185         constructor.
9187 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9189         * doc/meref.me: Fixing some typos.
9191 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9193         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9194         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9195         * src/roff/troff/node.h: Updated.
9197 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9199         * tmac/groff_tmac.man: Fix typo.
9201 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9203         Fixing a bug which prevented proper end-of-sentence recognition
9204         between an `unformatted' box and the following text.  As a
9205         consequence, vertical line distances are no longer preserved in
9206         boxes after a call to `.unformat' -- because boxes aren't
9207         line-oriented (contrary to diversions), this doesn't make sense
9208         anyway.
9210         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9211         value.
9212         (vertical_size_node::set_unformat_flag): New method.
9213         * src/roff/troff/node.hh: Updated.
9214         * src/roff/troff/input.cc (word_space_node::reread,
9215         hmotion_node::reread): Reset `unformat' flag after usage.
9216         (unformat_macro): Append only if `set_unformat_flag()' returns
9217         non-zero.
9218         * src/roff/troff/troff.man: Updated.
9220 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9222         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9223         documentation of `asciify' and `unformat' requests.
9225 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9227         Redesigned the `unformat' request.  It is no longer connected with
9228         `asciify' but rather uses new `reread()' methods if the `unformat'
9229         flag is set.  Additionally, the handling of space characters after
9230         unformatting has been fixed so that they retain their width.
9232         * src/roff/troff/node.h (width_list): New structure to store
9233         original widths of spaces.
9234         (node): Added `unformat' member.
9235         Replaced `num_spaces' variable with `orig_width' list.
9236         * src/roff/troff/node.cc (*node::asciify,
9237         asciify_reverse_node_list): Removed `unformat_only' flag and related
9238         code.
9239         (word_space_node::asciify, word_space_node::word_space_node): Use
9240         `orig_width'.
9241         (word_space_node::~word_space_node): New destructor.
9242         (word_space_node::copy): Updated to handle `orig_width'.
9243         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9244         (*node::merge_space): Update `orig_width' list if necessary.
9245         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9246         * src/roff/troff/enc.cc (environment::space_newline): Use
9247         `width_list'.
9248         (environment::space): Added method to handle space width and
9249         sentence space width as parameters.  Use `width_list'.
9250         (environment::make_tab_node): Updated.
9251         * src/roff/troff/env.h: Updated.
9252         * src/roff/troff/input.cc (word_space_node::reread,
9253         unbreakable_space_node::reread, hmotion_node::reread): New methods
9254         to handle nodes specially if `unformat' flag is set.
9255         (do_asciify_macro): Renamed back to ...
9256         (asciify_macro): This.
9257         (unformat_macro): New implementation to simply set the `unformat'
9258         flag.
9260         * MORE.STUFF: Added more info about deroff.
9262 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9264         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9265         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9266         and `add_self()' methods to avoid hyphenation.  For example, the
9267         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9268         soft hyphen after `foo'.  Now the hyphen list is correctly
9269         `foo<ignore><ignore>bar'.
9271 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9273         * tmac/groff_tmac.man: Fix `BIR' macro.
9275 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9277         A new escape sequence `\:', inserting a zero-width break point.
9279         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9280         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9281         Implement it.
9282         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9283         method.
9284         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9285         and `asciify()' methods.
9286         * src/roff/troff/node.cc (space_node::space_node): Updated.
9287         (space_node::asciify): Handle `was_escape_colon'.
9288         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9290         Handle `\~' similar to other comparable requests.
9292         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9293         label.
9294         (token::next): Move creation of an unbreakable_space_node to...
9295         (token::add_to_node_list): Here.
9297         Fix a bug which sometimes prevented hyphenation of words connected
9298         with `\~' or `\ ' (and other escape sequences handled as
9299         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9300         (after a call to the `unformat' request).
9302         * src/roff/troff/env.h (environment::possibly_break_line,
9303         environment::hyphenate_line): Introducing `start_here' parameter.
9304         * src/roff/troff/env.cc (environment::space_newline,
9305         environment::space): Use it.
9306         (environment::possibly_break_line, environment::hyphenate_line):
9307         Implement it.
9308         * src/roff/troff/input.cc (process_input_stack): Use it.
9309         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9310         space_char_hmotion_node, overstrike_node): Add
9311         `get_hyphenation_type()' method.
9312         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9313         if `unformat_only' is active.
9315 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9317         Implemented new read-only number register `.linetabs' which
9318         returns 1 if in line-tabs mode, 0 otherwise.
9320         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9321         * src/roff/troff/env.cc (get_line_tabs): New function.
9322         (init_env_requests): Use it.
9323         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9325         * VERSION, REVISION: Changing to 1.17.0.
9327 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9329         Fixed a bug which prevented hyphenation of words which are finished
9330         with `\)'.
9332         * src/roff/troff/token.h (token): Add enum type
9333         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9334         * src/roff/troff/input.cc (token::next, token::description,
9335         get_line_arg, token::add_to_node_list, token::process): Use it.
9337 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9339         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9340         * src/roff/troff/div.cc (do_divert): Use it.
9342         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9344 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9346         Adding the `linetabs' request.  If set, tab distances are not
9347         computed relative to the input line but relative to the output line.
9349         * src/roff/troff/env.h (environment): New member `line_tabs'.
9350         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9351         (environment::environment, environment::copy): Updated.
9352         (environment::distance_to_next_tab): Use `line_tabs'.
9353         (init_env_requests): Register request.
9354         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9355         fixes.
9357 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9359         Introducing a new read-only register `.int' which is set to a
9360         positive value if the last output line is interrupted (i.e., if it
9361         contains `\c').
9363         * src/roff/troff/env.cc (init_env_requests): Add it.
9364         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9366 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9368         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9369         * src/preproc/html/pre-html.cc (findPrefix): New function which
9370         generates the troff executable name via the system prefix.
9371         * src/preproc/eqn/main.cc: Modified warning message.
9373 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9375         troff's `box' and `boxa' requests didn't preserve temporary
9376         indentation.
9378         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9379         `saved_target_text_length' members.
9380         * src/roff/troff/div.cc (do_divert): Use them.
9382         Tabs (but not yet leaders and fields) are now handled correctly by
9383         `asciify' request.
9385         * node.h (hmotion_node): Add field `was_tab'.
9386         * env.cc (environment::make_tab_node): Set it.
9387         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9389         Added new request `unformat' which will, contrary to `asciify',
9390         preserve font information after unformatting (i.e., only nodes
9391         dealing with horizontal space are converted back to input
9392         characters).
9394         * input.cc (asciify_macro): Renamed to ...
9395         (do_asciify_macro): this, having a new parameter `unformat_only'.
9396         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9397         (init_input_requests): Added `unformat'.
9398         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9399         parameter to control asciification process.
9400         * node.h (*_node::asciify): Ditto.
9401         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9403 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9405         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9407 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9409         * tmac/ps.tmac: Remove call of psold.tmac.
9410         * tmac/psold.tmac: Comment updated.
9411         * tmac/psnew.tmac: Removed since no longer needed.
9412         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9414         * font/devutf8/R.proto: Adding `shc' glyph.
9415         * font/devutf8/NOTES: Updated.
9417         * test-groff: Updated.
9419 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9421         First cut of the new html device driver.  Changes to pre-html and
9422         the new grohtml are too numerous to be documented here.
9424         Stuff related to `html' has been renamed to `html-old' and `html2'
9425         stuff has been renamed to `html' (including directories).  The new
9426         html device driver is therefore invoked as `-Thtml'.
9428         Added new `\O' escape to suppress output (needed by html driver).
9430         Added functions and code to pass info about input-level commands
9431         (`.in', `.fl', etc.) to html driver.
9433         Three new functions (.html-begin, .html-end, and .html-image) for
9434         better html handling: `html-begin' will execute the remaining line
9435         if at the outermost nesting level, increasing an internal counter.
9436         `html-end' does the same but decreases the internal counter.
9437         `html_image' puts its arguments into a special node (suppress_node)
9438         to define an image region.
9440         The `output' request has been removed.
9442         * tmac/html-tags.tmac: Removed.
9443         * tmac/arkup.tmac: Updated and renamed to ...
9444         * tmac/www.tmac: New file.
9445         * tmac/markup.tmac Updated and renamed to ...
9446         * tmac/mwww.tmac: New file.
9447         * tmac/Makefile.sub: Updated.
9448         * tmac/an-old.tmac: Updated.
9449         * tmac/eqnrc: Updated.
9450         * tmac/groff_man.man
9451         * tmac/groff_markup.man: Updated and renamed to ...
9452         * tmac/groff_mwww.man: New file.
9453         * tmac/groff_tmac.man: Updated.
9454         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9455         * tmac/html.tmac: Updated and renamed from html2.tmac.
9456         * tmac/pspic.tmac: Updated html support.
9457         * tmac/s.tmac: Added html output support.
9458         * tmac/troffrc, tmac/troffrc-end: Updated.
9460         * Makefile.in, doc/Makefile: Updated.
9461         * doc/groff.texinfo: Added info about new `\O' escape.
9462         * doc/homepage.ms: Use `MAILTO' macro.
9464         * font/devhtml/DESC.proto: Add `C' font.
9465         * font/devhtml/Makefile.sub: Updated.
9466         * font/devhtml/R.proto: Minor fixes.
9467         * font/devhtml-old/Makefile.sub: Updated.
9469         * src/devices/grohtml-old/Makefile.sub: Updated.
9471         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9472         method.
9473         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9474         graphic_start): Add `inline' parameter.  Update.
9475         (html_end_suppress, graphic_end): Update.
9477         * src/include/html-strings.h: New file.
9478         * src/include/htmlindicate.h: Comments updated.
9479         * src/include/printer.h: Updated.
9481         * src/preproc/eqn/main.cc (do_file, main): Updated.
9482         * src/preproc/pic/troff.cc (troff_output::start_picture,
9483         troff_output::finish_picture): Updated.
9484         * src/preproc/tbl/main.cc (process_input_file): Updated.
9486         * src/roff/groff/groff.cc (main): Updated.
9487         Pass device arguments to predrivers also.
9488         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9489         * src/roff/troff/env.h (environment): Updated.
9490         New elements `need_eol' and `ignore_next_eol' (for html output).
9491         * src/roff/troff/env.cc (environment::environment): Add initializers
9492         for `need_eol' and `ignore_next_eol'.
9493         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9494         functions.
9495         (point_size, fill, no_fill, center, right_justify, line_length,
9496         indent, temporary_indent, break_request, handle_tab): Use
9497         `add_html_tag()'.
9498         (set_tabs): Use `add_html_tag_tabs()'.
9499         (environment::add_html_tag): Updated.
9500         (environment::do_break): Updated.
9501         * src/roff/troff/div.cc (space_request, flush_output): Use
9502         `environment::add_html_tag()'.
9503         * src/roff/troff/input.cc: Updated.
9504         New variable `html_level' to indicate nested `html-begin' requests.
9505         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9506         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9507         `force_tprint()' method.
9508         (token::next): Handle `\O'.
9509         (do_suppress): Implement it.
9510         (html_begin, html_end, html_image): New functions.
9511         (init_output_requests): Renamed to ...
9512         (init_html_requests): this.
9513         (main): Use it.
9514         (macro::append_str, macro::append_unsigned, macro::append_int): New
9515         methods.
9516         New variable `output_low_mark_miny' to limit minimal value of y.
9517         (reset_output_registers): Use it.
9518         (output_request): Removed.
9519         (get_output_registers): New function.
9520         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9521         (*_node): Added `force_tprint()' if necessary.
9522         (special_node): New elements `tf' and `get_tfont()'.
9523         (suppress_node): New class.
9524         * src/roff/troff/node.cc:
9525         New global variables `image_no' and `suppress_start_page'.
9526         (real_output_file): New method `is_on()'.
9527         (troff_output_file): New method `start_special(tfont)'.
9528         (troff_output_file::really_print_line): Use `tprint' conditionally.
9529         (real_output_file::print_line): Updated.
9530         (real_output_file::on): Updated.
9531         (*_node): Added `force_tprint()'.
9532         (special_node::special_node): Initializer updated.
9533         (special_node::same, special_node::copy, special_node::tprint_start):
9534         Updated.
9535         (get_reg_int, get_reg_str): New functions.
9536         (suppress_node::*): New methods.
9537         New global variables last_position, last_image_filename;
9538         (min): New inline function.
9539         * src/roff/troff/reg.h, src/roff/troff/request.h,
9540         src/roff/troff/troff.h: Updated.
9542 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9544         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9545         documentation of `asciify' request.
9547 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9549         * src/roff/troff/input.cc: Move definition of special characters
9550         like `ESCAPE_TILDE' to ...
9551         * src/roff/troff/input.h: New file.
9552         * src/roff/troff/Makefile.sub (HDRS): Add it.
9554         Extending the .asciify request to `unformat' space characters also.
9556         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9557         to count input space characters.
9558         Update constructors to take care of it.
9559         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9560         `ESCAPE_SPACE' instead of normal space.
9561         (word_space_node::asciify): New method.
9562         (unbreakable_space_node::asciify): New method.
9563         (word_space_node::merge_space): New method.
9564         * src/roff/troff/env.cc (environment::space_newline,
9565         environment::space): Add code to initialize `num_spaces' (using the
9566         constructor of `word_space_node').
9567         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9568         Document it.
9570 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9572         * man/groff_char.man: Use table header traps only conditionally.
9574 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9576         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9578 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9580         Introducing the `box' and `boxa' requests which are similar to
9581         `di' resp. `da' but omitting a partially filled line (which is
9582         restored after ending the diversion).
9584         * src/roff/troff/div.h (diversion): Add elements to save partially
9585         filled line.
9586         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9587         partially filled line.
9588         (divert, divert_append): Updated.
9589         (box, box_append): New functions.
9590         (init_div_requests): Use them.
9591         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9592         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9594         * doc/groff.texinfo: Fix documentation of `lf' request.
9596 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9598         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9600 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9602         Ignore `ss' request if in compatibility mode.
9604         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9605         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9606         * src/roff/troff/env.cc (space_size): Use it.
9608         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9609         `ss' request in nroff mode.
9611         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9612         changes.
9614 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9616         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9618 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9620         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9621         * src/preproc/eqn/neqn.man: Small fixes and additions.
9623 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9625         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9626         Fixing typo.
9628         * src/preproc/eqn/neqn.man: New file.
9630         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9631         negative' warning.
9633         * tmac/e.tmac: Add `T&' macro.
9634         Fix `indent cannot be negative' warning.
9635         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9637 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9639         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9641 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9643         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9644         `alloca' symbol .
9646         * MORE.STUFF: Added info about deroff for djgpp.
9648         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9649         documentation of -rcR switch.
9651 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9653         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9654         if -rcR=1 (which is now the default in nroff mode), a single, very
9655         long page is created instead of multiple pages: All `ne' and `wh'
9656         requests are put into conditionals; a new macro `an-end' is added to
9657         be called with `em'.
9659         Some other minor cleanups.
9661         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9663 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9665         Fixing a bug which prevented hyphenation in words followed
9666         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9668         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9669         Adding possibly_break_line().
9670         * src/roff/troff/env.h (environment): Make possibly_break_line()
9671         public.
9673         Make `\~' usable in .tr request.
9675         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9676         (token): Add stretchable_space().
9677         * src/roff/troff/input.cc (token::next, token::delimiter,
9678         token::description, process_input_stack, do_translate,
9679         add_to_node_list, token::process): Use it.
9680         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9681         for adjusting the space.
9682         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9683         for stretchable space.
9684         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9685         (make_node): Add code for stretchable space.
9686         * src/roff/troff/env.cc (environment::add_char): Use it.
9687         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9688         (get_copy, token::next, transparent_translate, asciify): Use it.
9690         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9691         doc/groff.texinfo: Updated.
9692         * man/groff.man: Small reorderings.
9694 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9696         * NEWS: Fixes.
9697         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9698         option.
9699         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9700         `safer_macro_path' to -M option.
9701         * src/roff/troff/troff.man: Fixes.
9703 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9705         Use safer path (except for config files) if -U isn't specified.  Add
9706         a special macro path (without home and current directory) for config
9707         files.  Add home directory to unsafe path for consistency.  Don't
9708         include the home directory in the font path.
9710         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9711         `macro_path'.
9712         * src/include/macropath.h: Add `config_macrp_path'.
9713         * src/libs/libgroff/fontfile.cc: Fix font path.
9714         * src/roff/troff/input.cc (process_startup_file): Use
9715         `config_macro_path'.
9716         (main): Select unsafe path if -U is given.
9718         * src/preproc/eqn/main.cc (main): Fixing search path for
9719         configuration file.
9720         * src/preproc/eqn/eqn.man: Updated.
9722         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9723         Updated.
9725         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9726         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9727         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9728         src/devices/grotty/grotty.man: Updated.
9730         * Makefile.in: Fix comments.
9732 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9734         * tmac/safer.tmac: Empty file added (again) for compatibility
9735         reasons.
9736         * tmac/Makefile.sub: Updated.
9738 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9740         * src/devices/grodvi/dvi.cc (main),
9741         src/devices/grohtml2/post-html.cc (main),
9742         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9743         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9744         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9745         (main), src/preproc/html2/pre-html.cc (main),
9746         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9747         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9748         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9749         (main), src/utils/hpftodit/hpftodit.cc (main),
9750         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9751         (main), src/utils/lookbib/lookbib.cc (main),
9752         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9753         (main): Use stdout for -v.
9754         * src/roff/groff/groff.cc (run_commands),
9755         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9756         to make direct printing to stdout possible.
9757         * src/roff/groff/pipeline.h: Updated.
9759         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9760         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9761         * src/utils/afmtodit/afmtodit.man: Updated.
9763         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9764         (version): New function.
9765         (usage): Updated.
9766         * src/utils/addftinfo/addftinfo.man: Updated.
9768         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9769         Fixing copyright dates.
9771         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9772         replacing it.
9774         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9775         version_string.
9777         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9779 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9781         In all programs, make -v return immediately with exit status 0 to
9782         be compliant with the GNU standard.
9784         * src/devices/grodvi/dvi.cc (main),
9785         src/devices/grohtml2/post-html.cc (main),
9786         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9787         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9788         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9789         (main), src/preproc/html2/pre-html.cc (main),
9790         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9791         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9792         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9793         (main): Implement it.
9794         * NEWS: Updated.
9796         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9797         and postprocessors to the -v option.
9799         * src/roff/grog/grog.pl: Implement -v.
9800         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9801         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9803         * src/roff/nroff/nroff.sh: Implement -v.
9804         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9805         * src/roff/nroff/nroff.man: Updated.
9806         
9807         * src/preproc/eqn/main.cc (main): Fix comment typo.
9809         * MORE.STUFF: Added info about djgpp port of grap.
9811 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9813         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9814         mode (or rather, implemented non-compatibility mode).
9815         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9817         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9818         replacing it -- we don't find gxditview otherwise.
9819         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9821         * src/preproc/pic/depend: Removed.  Unnecessary.
9823         Implemented dummy keyword `solid' in pic for compatibility with
9824         AT&T pic.
9826         * lex.cc (lookup_keyword): Added `solid'.
9827         * pic.y: Added SOLID with dummy rule.
9828         * pic.cc, pic_tab.h: Regenerated.
9829         * doc/pic.ms: Updated.
9831 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9833         For security reasons, don't use the current directory but the home
9834         directory while searching and scanning troffrc and troffrc-end.
9835         Similarly, replace the current directory with the home directory
9836         in the font path.
9838         * Makefile.in (fontpath, tmacpath): Remove current directory.
9840         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9841         two parameters `add_home' and `add_current'.
9842         (search_path::~search_path, search_path::command_line_dir,
9843         search_path::open_file): Remove tests for `dirs' being zero.
9844         * src/include/searchpath.h: Adjust.
9845         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9846         `safer_macro_path'.
9847         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9849         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9850         * src/roff/troff/input.cc: Use `mac_path', initialized with
9851         `macro_path'.
9852         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9853         * src/roff/troff/env.cc: Use `mac_path'.
9855         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9857         * NEWS, man/roff.man, src/roff/troff/troff.man,
9858         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9859         Updated.
9861 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9863         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9865         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9866         * configure.in: Fix typo in comment.
9867         * configure: Regenerated.
9869         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9870         copyright dates.
9872 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9874         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9876         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9877         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9878         $(systemtmacdir).
9879         Use @libdir@.
9880         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9881         * tmac/Makefile.sub (install_data): Create
9882         $(systemtmacdir) and $(localtmacdir).
9883         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9884         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9885         NEWS, doc/groff.texinfo: Updated and minor fixes.
9887         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9888         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9889         $(systemtmacdir) since the wrapper files are platform-dependent.
9891 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9893         * doc/groff.texinfo: Fix typo.
9895 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9897         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9898           tmac.doc.old -> doc-old.tmac
9899           tmac.an.old  -> an-old.tmac
9901         * tmac/tmac.*: Moved to ...
9902         * tmac/*.tmac: this.
9903         * tmac/man.local: Fix comment.
9904         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9905         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9906         Added some `FILES' sections.  More use of @...@ directives.  Other
9907         minor updates.
9908         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9909         * doc/homepage.ms, doc/groff.texinfo: Updated.
9910         * man/groff.man, man/roff.man: Updated.
9911         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9912         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9913         src/devices/grotty/grotty.man: Updated.
9914         * src/preproc/pic/pic.man: Updated.
9915         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9916         instead of -mdoc.old.
9917         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9918         * src/roff/nroff/nroff.man: Updated.
9919         * NEWS: Updated.
9921         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9923         * tmac/mm.diff: Removed -- it has no use now since the mm package
9924         is part of groff.
9926         * tmac/*: Removed trailing spaces.
9928         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9929         the tmac subdirectory also).
9931         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9932         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9933         stuff since it is no longer needed.
9935         * README, PROBLEMS: Updated.
9937 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9939         Invert current behaviour: Search first FOOBAR.tmac, then
9940         tmac.FOOBAR.
9942         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9943         (open_mac_file, macro_source): Implement it.
9944         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9945         doc/groff.texinfo, NEWS: Document it.
9947         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9948         Small documentation improvements.
9950         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9951         subdirectory also).
9953         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9955 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9957         Add local tmac directory (groff/site-tmac).
9959         * Makefile.in: Add $(localtmacdir).
9960         (uninstall_dirs): Add $(localtmacdir).
9961         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9962         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9963         in $(localtmacdir).  Create $(localtmacdir).
9964         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9965         Updated and minor fixes.
9967         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9969         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9971 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9973         Move hyphen.us to tmac directory.
9975         * src/roff/troff/hyphen.us: Removed.
9976         * src/tmac/hyphen.us: Added.
9977         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9979         Change installation structure for data files from .../groff/... to
9980         .../groff/<version><revision>/... to be conform with other GNU
9981         programs.
9983         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9984         doc/Makefile: Implement it.
9985         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9986         * configure: Updated.
9987         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9988         * NEWS: Document it.
9989         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9990         @MACRODIR@ instead of hard-coded directories.
9992 2000-10-22  Werner LEMBERG  <wl@gnu.org>
9994         Implement $GROFF_BIN_PATH environment variable (which defaults to
9995         $bindir) used for child programs of groff and similar wrappers.
9997         * gendefs.sh: Improve documentation.
9998         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9999         src/preproc/eqn/Makefile.sub (neqn),
10000         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10001         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10002         $GROFF_BIN_PATH.
10003         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10004         $GROFF_PATH__ (the latter for communication with troff).
10005         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10006         set.
10007         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10008         doc/groff.texinfo: Document it.
10010         * doc/groff.texinfo: Improve documentation of troff's -a option.
10012 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10014         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10015         non-intrusive eol marker.
10016         (troff_output_file::determine_line_limits): New function.
10017         (troff_output_file::draw): Use it.
10018         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10019         output_pending_lines() instead of output_line().
10020         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10021         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10022         createImage): Small fixes.
10023         
10024 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10026         Replace tmac.safer with a real secure solution.
10028         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10029         system_request, pipe_output): Disable requests if in safer mode.
10030         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10031         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10032         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10033         doc/groff.texinfo, src/roff/groff/groff.man,
10034         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10036         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10037         (resource_manager::output_prolog): Replace setenv() with putenv().
10039 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10041         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10042         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10043         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10044         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10045         compilation errors with some compilers.  It seems that this code
10046         is no longer necessary -- if yes, it is easy to add some #ifdef's
10047         for that particular old-fashioned compiler.
10049         * MORE.STUFF: Added info about Meta-tbl.
10051         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10053 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10055         Adding a new escape sequence \B'...': If the string between
10056         the delimiters is a valid numeric expression, return the character
10057         `1', and `0' otherwise.  This is an analogon to \A.
10059         * src/roff/troff/input.cc (do_expr_test): Implement it.
10060         (token::next): Use it.
10061         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10063         * tmac/tmac.trace: Made independent from escape character.
10065 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10067         Adding a new request .dei: define indirect.  The first and second
10068         parameter of .dei are taken from string registers instead directly;
10069         this very special request is needed to make tmac.trace independent
10070         from the escape character (which might even be disabled).
10072         * src/roff/troff/input.cc (do_define_macro): Implement it.
10073         (define_macro_indirect): New function.
10074         (init_input_requests): Use it.
10076         Adding two requests .ecs and .ecr: Save and restore the escape
10077         character.  These two requests are needed to make tmac.trace
10078         independent from the escape character (which might even be
10079         disabled).
10081         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10082         Implement it.
10083         (init_input_requests): Use it.
10085         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10087 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10089         Adding a new option -P and new environment variable GROPS_PROLOGUE
10090         to grops, selecting a different prologue file (minor modifications
10091         by WL).
10093         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10094         src/devices/grops/ps.cc (main): Implement it.
10095         * src/devices/grops/grops.man, NEWS: Document it.
10097 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10099         * INSTALL: Add info about selecting paper format.
10101 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10103         * src/roff/troff/input.cc (main): Fixing compiler warning.
10104         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10105         strings.h from the former to the latter.
10106         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10107         stuff from the former to the latter.
10109 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10111         Implementing two new requests .tm1 and .tmc: The former is similar
10112         to .tm but can output leading spaces; its syntax is similar to
10113         defining a string, i.e., a `"' can be used to mark the beginning of
10114         the string to be written to stderr: `.tm1 " test'.  The latter is
10115         similar to .tm1 but doesn't write out a final newline character.
10117         * src/roff/troff/input.cc (terminal1, terminal_continue,
10118         do_terminal): New functions.
10119         (init_input_requests): Use them.
10120         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10122 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10124         * tmac/groff_mdoc.samples.man: Small fixes.
10126 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10128         * tmac/groff_mdoc.man: Fixing typo.
10130 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10132         Implementing a .nop request which does nothing.
10134         * src/roff/troff/input.cc (nop_request): New function.
10135         (init_input_requests): Use it.
10136         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10138 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10140         * doc/groff.texinfo: Added some comments.
10142 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10144         * src/roff/troff/TODO: Updated.
10146 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10148         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10150 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10152         * font/devps/generate/Makefile (SHELL): Define explicitly to
10153         "/bin/sh", for non-Unix platforms.
10154         (extraclean): Use a more portable "" quoting instead of a
10155         backslash (which doesn't work on DOS/Windows).
10156         
10157         * font/devlj4/generate/Makefile (extraclean): Ditto.
10159         * font/devdvi/generate/Makefile (extraclean): Ditto.
10161 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10163         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10164         src/roff/troff/troff.man: Document Eli's latest changes.
10166 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10168         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10169         macro file names of the form NAME.tmac as well as tmac.NAME.
10171 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10173         * src/include/posix.h: Remove definition of FILENAME_MAX.
10175         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10176         `sys_fatal' and `stop' function().
10178         * test-groff: Updated.
10180 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10182         Added the new troff command .output <arg> to suppress output (while
10183         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10184         registers (for passing the output dimensions to the output device).
10186         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10187         parameter.
10188         * src/roff/troff/node.h, src/roff/troff/node.cc
10189         (troff_output_file::really_print_line,
10190         ascii_output_file::really_print_line,
10191         supress_output_file::really_print_line): Use `width' parameter.
10192         (troff_output_file::really_on, troff_output_file::really_off,
10193         output_file::on, output_file::off, real_output_file::on,
10194         real_output_file::off, real_output_file::really_on,
10195         real_output_file::really_off): New functions.
10196         (real_output_file:public output_file): New variable `output_on'.
10197         (real_output_file::begin_page, real_output_file::copy_file,
10198         real_output_file::transparent_char, real_output_file::print_line):
10199         Use it.
10200         (real_output_file::print_line): Use check_output_limits.
10201         * src/roff/troff/reg.h, src/roff/troff/request.h,
10202         src/roff/troff/input.cc (assign_registers): New function to remove
10203         two `goto's.
10204         (do_ps_file): Use it.
10205         (check_output_limits, reset_output_registers, output_request,
10206         init_output_requests): New functions.
10207         (init_input_requests): Updated.
10209         Added new grohtml2 device and html2 preprocessor (coding
10210         not yet finished) which will eventually replace grohtml.
10212         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10213         Updated.
10214         * src/include/htmlindicate.h, src/include/htmlindicate
10215         (html_begin_suppress, html_end_suppress): New functions.
10216         * src/preproc/tbl/main.cc: Use it.
10217         * src/roff/groff/groff.cc: Add support for html2 device (which will
10218         automatically invoke the html2 preprocessor).
10219         * src/roff/troff/input.cc (is_html2): New variable.
10220         * src/roff/troff/troff.h, src/roff/troff/env.h,
10221         src/roff/troff/env.cc (environment::add_html_tag): New function
10222         (uses `is_html2').
10223         (environment::do_break): Use it.
10224         * font/devhtml2/*: New files.
10225         * src/devices/grohtml2: New device.
10226         * src/preproc/html2: New preprocessor.
10227         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10229 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10231         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10233 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10235         * src/include/lib.h: Provide a fix for IRIX to not include
10236         groff-getopt.h.
10238 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10240         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10241         since some non-GNU sed programs can't handle null regexps.
10242         * configure, src/preproc/eqn/Makefile.sub,
10243         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10245         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10246         bug (string.h and strings.h are both needed according to latest
10247         POSIX standard).
10249         * MORE.STUFF: Added info about unroff and troffcvt.
10251 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10253         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10254         used before -ms.
10256         * tmac/tmac.man.old: Remove unused number register.
10258         * tmac.doc: Minor documentation fix.
10260 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10262         * src/roff/groff/pipeline.c (is_system_shell):
10263         Fix typo: "monocased_shell" no longer exists.
10265 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10267         Remove FILENAME_MAX limits.
10269         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10270         that the argument length is less than FILENAME_MAX.
10271         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10272         Use struct hack to allocate and free file name.
10273         (struct xtmpfile_list): fname is now part of the structure,
10274         not a pointer to another string.
10276 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10278         * src/include/posix.h: Add a default value for FILENAME_MAX.
10280 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10282         Add support for new BSD-style man pages (with ".Dd" instead of
10283         ".TH"), so that "groff -man" understands both styles, even
10284         when running "groff -man" on a host whose system man page
10285         macros don't support ".Dd".
10287         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10288         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10289         in case the system man macros don't define Dd or TH.
10291         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10292         * tmac/tmac.an: New one-line file.
10293         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10295 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10297         * src/roff/troff/troff.man: Fixing typos.
10299 Version 1.16.1 released
10300 =======================
10302 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10304         Preparing release 1.16.1.
10306         * REVISION: Revision number set to 1.
10307         * MORE.STUFF: Added info about port to DOS.
10308         * NEWS, win32-diffs: Updated.
10310         * src/include/nonposix.h: Remove first line -- this file is used
10311         in C also.
10313         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10314         link to it.
10316 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10318         * doc/texinfo.tex: Update to latest version.
10320 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10322         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10323         commands that fail.  Don't assume that "export a=b" is valid shell
10324         syntax.  This is needed for Solaris 2.5.1.
10326         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10327         comment about missing Solaris headers.
10329         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10331 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10333         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10334         SET_BINARY().
10336         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10338         * win32-diffs: Updated.
10339         * README.WIN32: Added CRs to make all Windows editors happy.
10341         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10342         src/roff/groff/pipeline.c).
10344 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10346         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10347         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10349 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10351         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10352         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10353         are binary files.
10354         (main): Support non-Posix systems with several different styles of
10355         slash characters in file names.
10357         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10358         (main) [SET_BINARY]: Switch stdin into binary mode.
10360         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10361         (main): Support file names with several possible slash-type
10362         characters, as given by DIR_SEPS[] in nonposix.h.
10363         (main) [__MSDOS__]: If renaming the temporary index file fails
10364         because it has more than one dot in its trunk, replace the dot
10365         with an underscore and try again.
10366         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10367         Newline.
10368         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10370         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10371         (File::File): Open the input file in binary mode.  Strip CR
10372         characters from each CR-LF pair.
10373         (xbasename): Support file names with several possible slash-type
10374         characters, as given by DIR_SEPS[] in nonposix.h.
10376         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10378         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10379         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10380         [!_POSIX_VERSION]: Define for traditional Unix systems.
10381         (real_output_file::real_output_file): Remove the MSVC-specific
10382         call to popen, use instead POPEN_WT, appropriately defined on
10383         nonposix.h.  #include nonposix.h.
10384         (real_output_file::~real_output_file): Remove the MSVC-specific
10385         call to pclose, a suitable macro is now defined on nonposix.h.
10386         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10387         and WEXITSTATUS instead of assuming traditional Unix
10388         interpretation of the status returned by pclose.
10390         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10391         call to popen, use POPEN_RT instead (appropriately defined on
10392         nonposix.h).  #include nonposix.h.
10393         (ps_bbox_request): Open the PostScript file in binary mode.
10394         Close the file after processing it.
10395         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10396         nonposix.h.
10398         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10399         A version of run_pipeline that doesn't use `fork'.
10400         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10401         (system_shell_name, system_shell_dash_c)
10402         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10403         the ugliness of testing DOS/Windows file names for equality, and
10404         support both stock shells and ports of Unix shells.
10406         * src/roff/groff/groff.cc: #include nonposix.h.
10407         (BSHELL): Definition moved to nonposix.h.
10408         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10409         instead of a literal "-c".
10410         (xbasename): Support file names with several possible slash-type
10411         characters, as given by DIR_SEPS[] in nonposix.h.
10412         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10413         of literal strings.
10415         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10416         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10418         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10419         pic_tab.h.
10421         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10423         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10424         eqn_tab.h.
10426         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10428         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10429         P_tmpdir is defined, use it instead of the literal "/tmp".
10430         (remove_tmp_files, add_tmp_file): New functions.
10431         (xtmpfile): Record temporary files and register an atexit function
10432         to delete them explicitly, instead of relying on the OS to do
10433         that, which doesn't work on non-Unix systems.
10435         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10436         (search_path::search_path): Use PATH_SEP instead of a literal
10437         colon.
10438         (search_path::command_line_dir): Ditto.
10439         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10440         to support non-Posix systems.
10442         * src/libs/libbib/search.cc: #include nonposix.h.
10443         (search_list::add_file): Open the file in binary mode.
10445         * src/libs/libbib/linear.cc: #include nonposix.h.
10446         (file_buffer::load): Remove \r characters preceding \n from the
10447         loaded buffer.
10449         * src/libs/libbib/index.cc: #include nonposix.h.
10450         (make_index_search_item): Open index_filename in O_BINARY mode.
10451         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10452         characters before \n characters.
10453         (index_search_item::check_files): Open files in binary mode.
10454         (index_search_item::munge_filename): Support DOS-style file names
10455         with backslashes and drive letters, use IS_ABSOLUTE.
10457         * src/devices/grops/ps.cc: #include nonposix.h.
10458         (main) [SET_BINARY]: Switch stdout to binary mode.
10460         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10461         (main) [SET_BINARY]: Switch stdout to binary mode.
10463         * src/devices/grolbp/lbp.cc: #include nonposix.h
10464         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10466         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10467         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10468         nonposix.h).
10469         (main) [SET_BINARY]: Switch stdout to binary mode.
10470         [_MSC_VER]: Remove an explicit call to _setmode.
10472         * src/include/nonposix.h: New file.
10474         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10475         operation when building with DJGPP.
10476         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10477         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10478         ENVSETUP.
10480         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10481         MS-DOS.
10482         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10483         etc. can include a semi-colon on DOS/Windows.
10484         (depend.temp): Use depend1.temp instead of depend.temp1, to
10485         prevent files from overerwiting each other on 8+3 filesystems.
10487         * gendef.sh (t): Change definition to work with DOS/Windows.
10489         doc/groff.texinfo: Apart of some typo corrections, I also changed
10490         some index entris, to make them more non-ambiguous, and also put
10491         @ignore around some parts that are not yet written, to allow the
10492         Info output be readable.
10494 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10496         Replaced specific checks for function declarations with a generic
10497         routine taken from GNU bfd.
10499         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10500         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10501         * configure.in: Use it.
10502         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10503         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10504         src/roff/groff/groff.cc: Use it.
10505         * Makefile.in, configure: Updated.
10507 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10509         * src/devides/grolbp/lbp.h: Removed unused variables.
10511 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10513         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10514         strncasecmp().
10516 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10518         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10519         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10520         * configure.in: Use it.
10521         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10522         * configure, Makefile.in: Updated.
10524         * configure.in: Add test for strncasecmp().
10525         * src/include/lib.h: Use it.
10527 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10529         * src/preproc/grn/Makefile.sub: Add MLIB.
10531 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10533         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10535 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10537         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10539         * PROBLEMS: Small update.
10541         * src/devices/grolbp/lbp.cc: Various small fixes.
10543 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10545         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10547         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10549 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10551         * man/roff.man: Removed unused macro.
10553 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10555         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10556         This is needed e.g. if you do
10557         `make distclean; ./configure; make dist'.
10559 Version 1.16 released
10560 =====================
10562 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10564         Adding font CWI (constant width italic) to devdvi.
10566         * font/devdvi/CWI: New file.
10567         * font/devdvi/generate/Makefile: Add generating rule.
10568         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10569         tmac/tmac.dvi: Use it.
10570         * NEWS: Announce it.
10572         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10573         * font/devlj4/generate/Makefile: Cosmetic changes only.
10575         * man/groff.man: Removed most of the redundant description of
10576         special characters (which is in groff_char.man).  Added font
10577         translation CB->CR for devdvi.  Other minor fixes.
10579         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10580         (registered) symbols.
10582 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10584         * doc/Makefile: Added rule for creating info files.
10586         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10587         AMS font metrics.
10588         * font/devdvi/generate/Makefile: Fixed dependencies.
10590         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10591         NewCentury Schoolbook!
10592         * font/devps/generate/afmname: Will now run with GNU awk.
10593         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10594         * font/devps/generate/Makefile: Cosmetic changes only.
10596 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10598         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10599         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10600         `.SS' now produces a heading with a smaller size than `.SH'. 
10601         Completely formatted.
10602         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10604         * man/groff.man: Improved table appearance.  Use of `eo' request
10605         to reduce number of doubled backslashes in macro definitions.
10606         Replacing `\e' with `\(rs'.  Other minor fixes.
10608         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10609         to have correct line number.
10611         * INSTALL: Small improvement.
10613 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10615         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10616         WL).
10618 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10620         * man/groff.man: Complete update (with a lot of corrections by WL).
10622 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10624         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10626         * font/*/*: Implement it.
10627         * man/groff_char.man, NEWS: Document it.
10629         * src/include/unix.h: Removed.  It isn't used.
10631         * doc/groff.texinfo: Slight improvements.
10633 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10635         * README, win32-diffs: Small fixes and improvements.
10637 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10639         * FDL: New file (the Free Documentation License version 1.1).
10641         * doc/groff.texinfo: Added many start-up values for gtroff.
10642         Some structural improvements of the source code.
10644 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10646         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10647         * src/roff/troff/troff.man: Added info about troffrc-end.
10649 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10651         * Makefile.in (EXTRADIRS): Fix typos.
10652         (dist): Handle deletion of old .tar.gz file correctly.
10653         (DISTDIRS): Include all tty output devices.
10655         * doc/groff.texinfo: Adding more cross references; countless other
10656         fixes.
10658 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10660         * MORE.STUFF: Added Robert Marks's utilities.
10662 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10664         Added win32 port contributed by Blake McBride
10665         <blake@florida-software.com>.
10667         * README.WIN32, win32-diffs: New files.
10668         * NEWS: Updated.
10670         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10671         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10672         (change): Removed unused variables.
10674         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10675         (savebounds): Changed return value from `int' to `void'.
10676         * src/preproc/grn/hdb.cc: Ditto.
10678         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10679         final backslash in comment to avoid compiler warning.
10681         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10683         * doc/groff.texinfo: More fixes.
10685 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10687         * tmac/tmac.doc: Documentation fix.
10689 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10691         * doc/groff.texinfo: Reading the source code shows up a lot of
10692         omissions and incorrect data...  More conversion to @Deffn macros.
10694 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10696         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10697         dependency.
10699         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10701 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10703         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10704         improvements.
10706         * doc/groff.texinfo: Extended history section.  More conversion to
10707         @Deffn macros.  More .tr documentation.
10709 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10711         * doc/groff.texinfo: Completed tab section.  Added info about
10712         fields.
10714 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10716         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10718 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10720         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10721         LaTeX 2e).
10722         * NEWS: Document it.
10724         * man/troff.man: Minor optical improvements.
10726 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10728         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10730         * font/*/*: Implement it.
10731         * man/groff_char.man, NEWS: Document it.
10733 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10735         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10736         expansion.
10737         * NEWS: Document the three new man pages.
10739         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10740         * configure: Updated.
10742         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10744 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10746         Added grap support to grog.
10748         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10749         * src/roff/grog/grog.man: Document it.
10751         * doc/groff.texinfo, NEWS: Add info about grap support.
10753         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10754         (with slight fixes by me).
10756         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10757         * tmac/Makefile.sub: Add groff_tmac.man.
10758         * man/roff.man: New file giving overview of roff system.
10759         * man/troff.man: A short reference of troff.
10760         * man/Makefile.sub: Add roff.man and troff.man.
10762 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10764         Added grap support to groff.
10766         * src/roff/groff/groff.cc: Implement it.
10767         * src/roff/groff/groff.man: Document it.
10769         * src/devices/grotty/grotty.man: Add cp1047 device.
10770         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10771         Ditto.
10772         * src/roff/groff/groff.man: Ditto.
10773         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10774         * doc/groff.texinfo: Ditto.
10776         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10777         for cp1047.
10779 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10781         * man/groff_char.man: Add `pc' glyph.
10782         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10783         * tmac/tmac.tty: Add `pc' glyph.
10784         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10785         we use cp1047 output device.
10787         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10788         there are still hardcoded latin1->unicode values in utf8's font
10789         definition files.
10790         * configure: Updated.
10791         * NEWS: Minor clarification.  Updated.
10793         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10794         Unix.
10796 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10798         Adding EBCDIC code page 1047.
10800         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10801         font/devcp1047/DESC.proto: New files.
10803         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10804         either ascii/latin1 or cp1047.
10805         * Makefile.in: Use it.
10806         * configure: Updated.
10808         Replacing and/or adding `md' (mathdot) glyph with `pc'
10809         (periodcentered) in all text fonts.
10811         * font/*/*: Change it.
10813 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10815         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10817         * configure.in: Add check for strings.h.
10818         * src/include/driver.h: Use HAVE_STRINGS_H.
10819         * src/devices/grolbp/lpb.cc: Remove string.h.
10821         * src/include/groff-getopt.h: New file.  It will be used instead of
10822         getopt.h (to be included in lib.h) to avoid endless problems with
10823         picky C++ compilers.
10824         * src/include/lib.h: Use groff-getopt.h.
10825         * src/include/Makefile.sub: Updated.
10827         * configure: Updated.
10828         * Makefile.in: Updated.
10830         * NEWS: Mention EBCDIC support.
10832 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10834         * TODO: Some additions.
10836 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10838         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10839         of mso request.
10841 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10843         * src/roff/troff/troff.man: Minor fixes.
10845 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10847         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10848         `.T' string register and the incompatible definition of the `.T'
10849         number register (compared to Unix troff).
10851         * man/groff_char.man: Add some missing characters.
10852         * font/devutf8/NOTES: Update.
10854 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10856         * src/include/htmlindicate.h, src/include/lib.h,
10857         src/include/posix.h: Fix copyright.
10859         * src/include/Makefile.sub: Update.
10861 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10863         * src/roff/troff/input.cc (input_char_description): Removing
10864         superfluous space char.
10866         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10868         * doc/groff.texinfo: Document EBCDIC.
10870 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10872         Introducing `shc' as the glyph name for the soft hyphen character.
10874         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10875         font/devlatin1/R.proto: Use it.
10877         * NEWS: Updated.
10879 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10881         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10882         dependency on ASCII order.
10884 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10886         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10887         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10889         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10890         to increase portability.
10892 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10894         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10895         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10896         the generic `\n' if under OS/390 Unix.
10898         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10900         * configure: Regenerated.
10902 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10904         * doc/groff.texinfo: More conversions to @Deffn.
10906 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10908         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10909         with `:'.
10911         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10913 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10915         * doc/groff.texinfo: More conversions to @Deffn.
10917 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10919         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10920         Updated to latest version (glibc 2.1.3).
10922 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10924         * doc/Makefile (clean): Include more index files.
10925         Add rule texinfo->dvi.
10927 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10929         * doc/groff.texinfo: Added new index `op' for operators.  More
10930         info on end of sentence characters.  More use of @Deffn.
10932 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10934         * */*.man: Adding a note that a whitespace can be inserted between
10935         a command line option and its parameter -- we are using GNU getopt.
10937         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10939 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10941         Correct anachronism of calling the man macro file with `-man'
10942         instead of `-m man' etc.
10944         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10945         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10946         load tmac.<package>.
10948         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10950         * NEWS: Updated.
10952         * doc/groff.texinfo: Updated.
10954         * tmac/groff_man.man: Copyright added.
10956 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10958         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10959         typeset the request resp. escape name with a tt font -- due to a
10960         bug in texinfo.tex it is necessary to use the `-e' switch with
10961         texi2dvi.
10963         Improving info about usage of groff units.
10965         Other minor fixes.
10967 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10969         * doc/groff.texinfo: Added section about man macro package
10970         (I've basically taken groff_man.man).  Introducing new indices `ma'
10971         for macros/strings and `gl' for glyph names.  Other minor fixes.
10973         * tmac/groff_man.man: Fixed some typos.
10975 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10977         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10978         Other minor fixes.
10980         * doc/texinfo.tex: New file.
10982 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10984         * doc/groff.texinfo: Improved section on number registers.  Other
10985         minor updates.
10987 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10989         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10990         synopsis.
10992         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10993         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10994         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10995         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10997         * src/preproc/grn/grn.man: Better synopsis; added copyright.
10999         * src/roff/grog/grog.man: Updated copyright date.
11001 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11003         * configure.in: Added test for strdup.
11005         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11006         is available.
11008         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11010         Other minor fixes.
11012 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11014         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11016 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11018         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11019         compilers silent.
11020         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11021         * src/include/lib.h: Remove some spaces.
11023 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11025         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11026         initializers from arguments (some compilers don't like this).
11028 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11030         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11031         used by pic and eqn to tell grohtml where the graphic regions start
11032         and end.
11033         * src/libs/libgroff/Makefile.sub: Use it.
11034         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11035         graphic_start() and graphic_end() from htmlindicate.cc.
11037 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11039         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11040         * tmac/groff_man.man: More fixes.
11042 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11044         * doc/Makefile: Added texput.log to the `clean' target.
11045         * doc/groff.texinfo: Added info about delimiters for escapes.
11047 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11049         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11050         other graphic formats.
11052 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11054         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11055         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11056         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11057         files.
11059 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11061         * doc/groff.texinfo: Spelling fixes.
11063 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11065         * tmac/groff_man.man: Completely revised to cover everything in
11066         tmac.an.
11068         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11069         Other minor fixings.
11070         * src/roff/troff/env.cc (environment_copy): Improve error message and
11071         fix itoa->i_to_a.
11072         * src/roff/troff/TODO: Updated.
11074         * doc/Makefile: Bug fixes -- this is still provisional, though...
11076         * tmac/eqnrc: Small fixes.
11078 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11080         Adding a request `evc' to copy environments.
11082         * src/roff/troff/env.cc (environment::copy, environment_copy):
11083         Implement it.
11084         * src/roff/troff/env.h: Add prototype.
11086 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11088         Adding strsep() -- Solaris 8 doesn't have it.
11090         * configure.in: Test it.
11091         * src/devices/grolbp/lbp.cc: Add code.
11093 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11095         * src/roff/troff/div.cc (macro_diversion::output,
11096         top_level_diversion::output): Fixing an incompatibility with
11097         original troff: \x'0' updates the .a register also.  Thanks to
11098         <Andries.Brouwer@cwi.nl> for pointing this out.
11099         * doc/groff.texinfo: Document it.
11101         * Makefile.in: Create Makefile.dep if necessary before calling the
11102         submake process to avoid warning about nonexistent file.
11104         * NEWS, PROJECTS: Updated.
11106 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11108         * tmac/troffrc: Add tmac.lbp.
11110 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11112         * tmac/tmac.lbp: New file.
11113         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11114         command.
11116 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11118         * Makefile.in: Fixing $(subdir).
11120         * README, NEWS: Small fixes.
11122         * test-groff: Adding path to grolbp.
11124         * configure.in: The (new) file src/xditview/Imakefile.in will be
11125         also configured -- it is now possible to build gxditview in a
11126         directory different from $srcdir.
11128 2000-03-02  Blake McBride  <blake@florida-software.com>
11130         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11132         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11134 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11136         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11137         files.
11139 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11141         Adding GNU getopt to the groff distribution.
11143         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11144         New files.
11145         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11146         * aclocal.a4: Remove GROFF_GETOPT function.
11147         * configure.in, Makefile.in, PROBLEMS: Update.
11148         * src/include/lib.h: Replace getopt tests with getopt.h.
11149         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11151         * doc/groff.texinfo: Further checking/updating.  Adding more index
11152         entries.
11154         * man/groff_out.man: Fix nroff mode activation (for emacs).
11155         * man/groff_font.man: Add missing ligature.
11157 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11159         * doc/groff.texinfo: Further checking/updating.  Adding more index
11160         entries.
11162         * src/devices/grolbp/grolbp.man: Added a comment line at the
11163         beginning of the file (similar to shell scripts) which indicates
11164         that `tbl' should be used as a preprocessor.
11166 2000-02-27  Blake McBride  <blake@florida-software.com>
11168         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11169         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11171         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11172         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11173         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11174         src/include/lib.h, src/libs/libgroff/errarg.cc,
11175         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11176         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11177         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11178         src/roff/troff/div.cc, src/roff/troff/env.cc,
11179         src/roff/troff/input.cc, src/roff/troff/node.cc,
11180         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11181         if_to_a() to avoid name clashes.
11182         * src/include/posix.h: Don't use unistd.h.
11183         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11184         clause for integrating non-Unix xtmpfile() code.
11185         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11186         structure; use "rt" for popen() in pipe_source(); add getpid()
11187         dummy function.
11188         * src/roff/troff/node.cc: Use special versions of popen() in
11189         real_output_file() and pclose() in ~real_output_file().
11191 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11193         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11194         LBP-8 series laser printers).  This code has been contributed by
11195         Francisco Andrés Verdú <pandres@dragonet.es>.
11197         * src/devices/grolbp/*: The grolbp output device.
11198         * font/devlpb/*: The font description files.
11199         * Makefile.in: Add grolpb and devlbp subdirectories.
11201         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11202         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11203         typographic fixes.
11205         * doc/groff.texinfo: Further checking/updating.  Adding more index
11206         entries.
11208         * NEWS: Updated.
11210         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11212         * man/groff_font.man: Adding info about obsolete DESC keywords.
11213         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11214         keywords.
11216 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11218         * src/preproc/grn/grn.man: Added info about the gremlin file format
11219         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11221 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11223         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11224         friends to be non-integer.
11226         * src/preproc/grn/grn.man: Document it.
11228         * doc/groff.texinfo: Further checking/updating.  Adding more index
11229         entries.
11231 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11233         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11234         line thicknesses to be integer multiples of this value.
11236         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11237         corresponding code doesn't work (yet).
11239         * doc/groff.texinfo: Further checking/updating.  Adding more index
11240         entries.
11242 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11244         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11245         specify line thickness instead of base units.  The new default
11246         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11247         thick lines respectively.
11249         Removed unused variable `prevval'.
11251         * src/preproc/grn/grn.man: Updated.
11253 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11255         * src/preproc/grn/main.cc: Slight formatting.
11257         * src/roff/groff/groff.man: Formatting fix.
11258         * src/preproc/grn/grn.man: Ditto.
11260         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11262         * doc/groff.texinfo: Further checking/updating.
11264 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11266         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11268         * test-groff: Added grn subdir to path.
11270         * doc/groff.texinfo: Some restructing and other small improvements.
11272         * src/roff/groff/groff.cc (help): Fixed info string.
11274 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11276         * doc/meref.me: Fix description of .GS request.
11278         * src/roff/troff/troff.man: Fixing typo.
11280         Adding the `grn' preprocessor for gremlin graphic files.
11282         * src/preproc/grn/*: This is the Berkeley distribution written by
11283         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11284         Senderowicz and Werner Lemberg.
11286         * doc/grnexampl.{me,g}: A sample for grn.
11288         * Makefile.in: Added subdirectory entry for grn.
11290         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11291         called with the switch `-g'.
11293         * src/roff/groff/groff.man: Updated.
11295         * src/roff/grog/grog.{man,pl,sh}: Updated.
11297         * NEWS: Updated.
11299 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11301         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11302         parametrically polymorphic.
11304         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11305         and the alterations to xtmpfile.
11306         xtmpfile can be requested to return the filename created
11307         and asked not to unlink the temp file.  The default behaviour
11308         if parameters are absent is exactly the same as before.
11310 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11312         A new request `length' is available which returns the length of a
11313         string in a number register:
11315         * src/roff/troff/input.cc (length_macro): Implement it.
11316         * src/roff/troff/input.cc (init_input_requests): Register it.
11318 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11320         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11321         of the `substring' request.
11323         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11324         request.
11326         * src/roff/troff/TODO, NEWS: Updated.
11328 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11330         * src/roff/groff/groff.man: Added an example.
11332 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11334         I've considerably modified the directory structure of the
11335         distribution to get a more vertical layout.  For example, the number
11336         of top level directories has been reduced from 42 to 6.
11338         As a consequence, many changes, especially to the makefiles, were
11339         necessary:
11341         * The makefile variables `top_builddir' and `top_srcdir' have been
11342         introduced.  Virtually all relative paths have been replaced with
11343         absolute ones using these two variables.
11345         * Dependencies (in the files `Makefile.dep') are no longer part of
11346         the distribution.  Instead, they are created during a `make install'
11347         in the build directory.
11349         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11350         make `top_srcdir' and `top_builddir' absolute.
11352         Some other changes:
11354         * Man pages now depend on the files `VERSION' and `REVISION'.
11356         * The added shell script `mkinstalldirs' will replace `mkdir' in
11357         almost all cases.
11359         * VERSION: Version number increased to 1.16.
11361 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11363         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11365         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11366         (after an update of the mm stuff).
11368         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11370 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11372         The .psbb request will now also accept Mac PS images (i.e. using LF
11373         as the EOL character).
11375         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11376         (with slight modifications).
11377         * troff/input.cc (do_ps_file): Use it.
11379         * test-groff: Add grohtml and grolj4 output devices to PATH.
11381 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11383         * NEWS, MORE.STUFF: Updated.
11385 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11387         Add the `srand' command to pic.
11389         * pic/lex.cc, pic/pic.y: Implement it.
11390         * pic/pic.man: Document it.
11391         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11393 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11395         Add a new request `.psbb'.  This does exactly what the external
11396         program psbb did.  It scans a PostScript image file for a
11397         %%BoundingBox comment and extracts the bounding box values (in
11398         PostScript units) which are then stored in the four new (read-only)
11399         number registers `llx', `lly', `urx', and `ury'.
11401         This will allow the usage of the .PSPIC macro without worrying
11402         about unsafe behaviour of groff, i.e., it will work without the
11403         `-U' switch of groff.
11405         * troff/input.cc: Implement it.
11406         * tmac/tmac.pspic: Use it.
11407         * troff/troff.man, grops/grops.man, NEWS: Document it.
11408         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11410         This is bloody C code simply adapted from psbb.c!  Any improvements
11411         welcome.
11413 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11415         * man/groff_font.man: Minor clarifications.
11417         * NEWS: Updated.
11419 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11421         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11423 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11425         * man/groff_font.man: Brought up to date regarding tcommand
11426         extensions.
11427         * libgroff/font.cc: Handle everything after `--' as a comment
11428         in the font files.
11429         * devps/*: Added comment delimiter inside devps font files.
11431 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11433         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11434         \fC...\fP (which now works as expected).
11436         * troff/troff.man: Fix typo.
11438 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11440         Completed the pass_filenames implementation in troff.
11442         * libdriver/input.cc: Will read the new `F' tcommand.
11443         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11444         * troff/input.cc: Use it.
11446 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11448         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11449         font will now be updated even if an invalid font is selected.
11451 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11453         * doc/homepage.ms: Updated for new tmac.arkup.
11455         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11457         * tmac/tmac.arkup: Cleanup.
11459         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11461         Removed obsolete .LINK macro completely.
11463         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11464         will be immediately appended to the second argument (to be used with
11465         punctuation, for example).
11467         Disabled .CDFTP macro temporarily for security reasons.
11469         * tmac/groff_markup.man: Complete revision for latest changes in
11470         tmac.arkup -- note that it does not yet format correctly with
11471         grohtml :-(
11473 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11475         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11476         * devutf8/R.proto: Add mappings for wp, lh, rh.
11477         * devutf8/NOTES: Updated.
11479 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11481         * doc/groff.texinfo: Updated version/copyright info.
11483 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11485         Added support for two new directives in device descriptions:
11486         `pass_filenames' (to pass the input file name to the output device)
11487         and `use_charnames_in_special' (to support e.g. accented characters
11488         in the `X' request).
11490         * include/font.h, troff/charinfo.h: Declare it.
11492         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11494         * devhtml/DESC: Use it.
11496         * troff/input.cc: New function encoded_char.
11498         * troff/token.h: Add test for `specialness'.
11500 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11502         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11503         mistake from the list of files to be installed.
11505 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11507         * README: Added info how to apply patches.
11509 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11511         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11513 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11515         * troff/input.cc: Add support for troffrc-end.
11517         * tbl/main.cc: Altered to issue table-start and table-end special
11518         characters if using the html device.
11520         * devhtml/*: Modified font files to incorporate html encoding of
11521         characters.
11523         * tmac/groff_markup.man: New file documenting tmac.arkup.
11525         * tmac/troffrc-end: New file.  This is invoked after all user
11526         specified macros.  Currently used by the html device to include
11527         tmac.html.  Thus no need for users to specify -mhtml anymore.
11529         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11530         (MAN7): Add groff_markup.man.
11532         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11534         * tmac/troffrc: tmac.arkup will now be called for the html device.
11536         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11537         extra device specific information about fonts.
11539         * doc/homepage.ms: New file.  It is an example how an HTML home page
11540         could look like with grohtml.
11542         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11544 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11546         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11547         of Im, Re.
11549         * devutf8/NOTES: Updated.
11551 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11553         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11554         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11555         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11556         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11557         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11558         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11559         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11560         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11561         warnings.
11563         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11565 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11567         grolj4: Paper size will be searched case-insensitively.
11569         * include/lib.h: Add check for strcasecmp().
11570         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11571         * configure.in: Check for strcasecmp().
11573 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11575         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11576         `REVISION'.
11578 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11580         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11581         revision scheme.
11583         Add a new read-only register, `.Y', which contains the groff
11584         revision.
11586         * troff/input.cc (init_input_requests): Define it.
11587         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11588         * doc/groff.texinfo, troff/troff.man: Document it.
11590         * libgroff/Makefile.sub (version.cc): Add definition of
11591         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11592         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11593         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11594         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11595         troff/input.cc, pfbtops/pfbtops.c: Use it.
11597 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11599         Add a revision scheme to the groff package.
11601         * REVISION: New file.
11602         * libgroff/Makefile.sub (version.cc): Use it to define
11603         `revision_string[]'.
11604         * grops/psrm.cc: Use revision_string (converted to an unsigned
11605         integer) in constructor of resource_manager.
11607 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11609         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11610         files.
11611         * Makefile.in (DEVDIRS): Add devutf8.
11612         * grotty/tty.cc: Include device.h.
11613         (glyph): Change type of `code' to `unsigned int'.
11614         (tty_printer): New field is_utf8.  Constructor takes device argument.
11615         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11616         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11617         (tty_printer::put_char): New function.
11618         (tty_printer::end_page): Use put_char() instead of ::putchar().
11619         (make_printer): Pass device to tty_printer constructor.
11620         * nroff.sh: Determine default device by calling 'locale'.  As a
11621         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11622         Recognize UTF-8 locales.
11623         * tmac/eqnrc: Recognize utf8 like latin1.
11624         * tmac/troffrc: Device utf8 needs tmac.tty.
11626 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11628         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11630 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11632         Add a new predefined writeable number register, `year',
11633         which contains the current year.
11635         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11636         * tmac/tmac.s: Use it.
11637         * troff/input.cc (init_registers): Initialize it.
11639 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11641         * PROBLEMS: Fixed typo.
11643 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11645         * PROBLEMS: Add Y2k advice for the yr number register.
11647 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11649         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11651 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11653         * tmac/tmac.arkup: Slight modification of macros to provide better
11654         appearance for non-HTML formats.
11656 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11658         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11659         does not automatically translate to malloc(n) on all OSes
11660         (e.g., SunOS) so do it explicitly.  Also, check the returned
11661         value.
11663 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11665         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11667         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11668         expects this variable
11670 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11672         * doc/Makefile: Added instructions to create HTML and text
11673         versions of some files.
11675 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11677         * Updated INSTALL.gen.
11679         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11680         better resp. correctly with non-HTML devices.
11682 Version 1.15 released
11683 =====================
11685 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11687         * NEWS, VERSION: Changed to 1.15
11689 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11691         * nroff/nroff.man: -S is safer, not safe.
11693         * groff/groff.cc (main): Use `safer', not `safe', in variable
11694         names.  This does not change the behavior.
11696         * troff/input.cc (main): Likewise.
11698         * nroff/nroff.sh: Likewise.
11700         * troff/input.cc (prepend_string): New function.
11701         (main): Prepend -msafer, so that we check macro libraries for
11702         safety.
11704         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11706 Version 1.14 released
11707 =====================
11709 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11711         * NEWS, VERSION: Changed to 1.14.
11713 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11715         * refer/refer.cc: Fixing the last fix.
11717 Version 1.13 released
11718 =====================
11720 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11722         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11723         number disappear.
11725         * NEWS: Updated.
11727         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11729         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11730         document conventions, the version number must be a real.
11732 Version 1.12.1 released
11733 =======================
11735 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11737         * VERSION: Changed to 1.12.1.
11739 1999-12-22  Alan Rooks  <arooks@istar.ca>
11741         * refer/refer.cc (do_file): Slight modification to satisfy the
11742         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11743         UnixWare 7.1.
11745 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11747         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11748         notices.
11750         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11751         list of unsafe requests.
11753         * pic/pic.man: Fixed a typo.
11755         * man/groff_out.man: Fixed a typo.
11757 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11759         * Makefile.in: Doc fixes.
11761 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11763         * groff/groff.cc: Missing `U' option added to getopt().
11765         * troff/troff.man: Missing `U' option added to synopsis.
11767 Version 1.12 released
11768 =====================
11770 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11772         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11773         to the synopsis.
11775         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11776         with the more appropriate terms `safer' and `unsafe'.
11778         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11779         sys_nerr and sys_errlist[].
11781         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11783         * pic/pic.y, pic/pic.cc: Added check for fmod().
11785 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11787         * VERSION: Changed to 1.12.
11789         Here some patches from various sources; most of them taken from
11790         the Debian distribution.
11792         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11793         tmac/Makefile.sub: New files copied directly from the NetBSD
11794         distribution.  Probably, some additional adaptation later on is
11795         necessary...
11797         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11798         of unsafe requests.
11800         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11801         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11802         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11803         (`-S') is now the default.
11805         * README, NEWS: Updated.
11807 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11809         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11811         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11813 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11815         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11816         grief than relief today.  Additionally, it is against the GNU
11817         coding standards.
11819         * configure: Recreated.
11821 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11823         * configure.in: Added GROFF_LIBM.
11825         * configure: Recreated.
11827         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11828         necessary.
11830         * Makefile.in: Added definition of $(LIBM).
11832         * Makefile.comm (LIBM): Removed.
11834         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11836 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11838         * doc/Makefile: Added rule for generation pic.html.
11840         (clean): Files produced by grohtml will be removed also.
11842         * doc/pic.ms: Small fix.
11844         * tmac/tmac.html: Fixed suppression of headers.
11846 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11848         * tmac/tmac.html: Fixing horizontal arrows.
11850         Turning off hyphenation.
11852         * tmac/tmac.an: Improved support for grohtml; better indentation,
11853         no footers/headers.
11855 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11857         * tmac/tmac.arkup: Added CDFTP macro
11859         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11860         macros.
11862         * tmac/troffrc: Some additions for HTML stuff.
11864 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11866         * tmac/tmac.html: Small changes.
11868 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11870         * doc/groff.texinfo: Minor fixes.
11872 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11874         * devhtml/TR: Changed spacewidth to 3.
11876         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11878         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11880         * tmac/tmac.arkup: New file.
11882         * grohtml/ChangeLog: New file.
11884 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11886         * doc/groff.texinfo (Common Features): Added Copying chapter.
11887         Changed format to @smallbook.
11889 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11891         * NEWS: Added info about groff.texinfo.
11893         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11894         warning messages.
11896 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11898         * groff/groff.man: More updates.
11900 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11902         * doc/groff.texinfo: New file.  This manual is still very
11903         rudimentary.  It has been originally contributed by Trent
11904         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11905         additions by me.
11907         * INSTALL: Added information about the `doc' subdir
11909         * troff/troff.man: Minor fixes.
11911         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11912         reordered options.
11914         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11916         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11917         also, otherwise it is included itself in another call of `make
11918         dist'.
11920         * groff/groff.cc (synopsis): Removed superfluous space.
11922         * PROJECTS, PROBLEMS, NEWS: Updated.
11924         * VERSION: Updated to 1.12beta.
11926         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11928         * README: Updated: Included documentation about CVS repository,
11929         mailing lists, and daily snapshots.
11931         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11933 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11935         * tmac/tmac.an: If the tag didn't fit into the space that the
11936         macro `TP' specifies, the rest of the tag went into the space for
11937         the next line.
11939 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11941         * grolj4/lj4.cc: Added duplex printing (option `-d').
11943         * grolj4/grolj4.man: Document duplex printing.
11945 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11947         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11948         non-GNUish sed programs.
11950         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11951         definition.
11953         * configure.in (LIBS): Added `-lc'
11955         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11957         * pic/tex.cc (solid_arc): Casting M_PI to double.
11959         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11961         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11962         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11963         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11965         * groff/groff_man.man: New file.  This manual page was originally
11966         written for the Debian GNU/Linux system by Susan G. Kleinmann
11967         <sgk@debian.org>.
11969         * eqn/list.cc (list_box::compute_metrics,
11970         list_box::compute_sublist_width): Removed variable declaration to
11971         avoid shadowing warnings.
11973         * grops/psrm.cc (resource_manager::process_file): Ditto.
11975         * tfmtodit/tfmtodit.cc (main): Ditto.
11977         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11978         to avoid shadowing warnings.
11980         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11981         shadowing loop variable.
11983         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11985 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11987         New grohtml frontend to convert groff input to html.
11989         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11991         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11993         * tmac/eqnrc: Added html device.
11995         * tmac/tmac.html: New file.
11997         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11998         (troff_output::start_picture, troff_output::finish_picture),
11999         tbl/main.cc (process_input_file):
12000         Surrounded output with `graphics_start' and `graphics_end' so that
12001         the html driver can identify non-text portions.
12003         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12004         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12005         grotty/tty.ps (tty_printer::set_char): Additional parameter
12006         `name'.
12008         * include/printer.h: Class printer: New function
12009         set_char_and_width; new variables (is_char_named, is_named_set,
12010         named_command, named_char_s, named_char_n) to hold information
12011         about named characters -- needed by the html driver.
12013         * libdriver/printer.cc (printer::set_ascii_char,
12014         printer::set_special_char): Use set_char_and_width.
12016         * devhtml/*: New device files for html driver.
12018         * grohtml/*: New driver grohtml.
12020 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12022         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12023         default strings.
12025 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12027         * libgroff/string.cc (search): Small fix to test against NULL
12028         pointer.
12030 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12032         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12033         \b'abc') were stacked in reverse order when processed in a
12034         diversion.
12036         * troff/node.h: Added `*last' to struct `node' to make the above
12037         fix work.
12039         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12040         The default scale for the 'f' and 't' graphics functions were 'm'
12041         rather than 'u' (i.e., no scaling).
12043 1999-09-11  Peter Miller  <peterm@jna.com.au>
12045         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12046         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12047         defining include paths.
12049         * soelim/soelim.cc (include_path_append): New function.
12051 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12053         * tbl/main.cc (process_options): Unix (at least Documenter's
12054         Workbench) tbl allows arbitrary non-alpha characters between
12055         options.
12057 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12059         Y2k fixes.  Don't assume that the current year precedes 2000.
12061         * doc/meref.me: Add \n(y2, \n(y4.
12063         * tmac/doc-common (Yr): New number register.
12064         (Dd): Don't assume current year precedes 2000.
12066         * tmac/tmac.e (td): Likewise.
12067         (y2, y4): New number registers.
12069         * pic/pic.man: Update reference for pic paper to May, 1991
12070         version.
12072 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12074         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12075         Removed quotation marks which prevented correct expansion of
12076         $(tmac_wrap).
12078         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12080 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12082         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12083         `config.cache'.
12085         * Removed configure.old.
12087 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12089         * VERSION: Updated to 1.11.1
12091 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12093         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12095         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12096         added quotations around $(tmac_wrap) to avoid syntax error if
12097         variable is empty.
12099         * configure: Newly generated using autoconf 2.13.
12101         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12103 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12105         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12106         doc/Makefile. doc/pic.ms, groff/groff.man:
12107         Prepare for 1.11 release.  No code changes.
12108         Documentation for pic added (doc/pic.ms).
12110 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12112         * Version 1.10 released.
12114 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12116         * afmtodit/afmtodit.pl: Avoid comment on first line.
12118 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12120         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12121         * configure.in: Call it.
12123         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12124         (distfiles): Doesn't depend on config.log or config.cache.
12126 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12128         * grog/grog.sh: Use print "" rather than print in END rule.
12130 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12132         * tbl/main.cc (process_data): Don't give error for excess data
12133         entries that are comments.
12135 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12137         * tbl/main.cc (process_data): Fix case where new for-scope rules
12138         silently change meaning of code.
12140 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12142         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12143         of non-zero hyphenation codes.
12145 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12147         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12149 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12151         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12153 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12155         * tmac/tmac.andoc: Make it work in compatibility mode.
12157         * refer/token.h (token_info::is_range_sep): New function.
12158         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12159         * refer/ref.cc (reference::output): More sophisticated check for
12160         multiple pages.
12162         * devps/prologue.ps (MANUAL): New procedure.
12163         * grops/ps.cc (main): New -m option.
12164         (usage): Include -m.
12165         (ps_printer::~ps_printer): Implement -m.
12167         * aclocal.m4 (GROFF_G): New macro.
12168         * configure.in: Call it.
12169         * Makefile.in (g): Provided by configure.
12171         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12173         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12174         translations.
12176         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12177         (tmac_m, tmac_s): Deleted.
12178         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12179         tmac_s_prefix): New variables.
12180         (MDEFINES): Change accordingly.
12181         * Makefile.comm (.man.n): Use new TMAC_* variables.
12182         * configure.in (GROFF_TMAC): Call.
12183         * aclocal.m4 (GROFF_TMAC): Define.
12184         * tmac/Makefile.sub (stamp_wrap): New target.
12185         (install_data, uninstall_sub): Handle macro wrapping.
12187 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12189         * tbl/main.cc (main): Ignore -T option.
12191 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12193         * devlj4/generate/special.map: Add definition of \(nb.
12195         * tmac/tmac.dvi: Add definition of \(nb.
12197         * troff/dictionary.c (dictionary::dictionary): association::v gets
12198         initialized by association::association.
12200         * tmac/Makefile.sub: Avoid using temporary files when installing.
12202         * troff/env.cc (environment::set_font): Make bad font number a
12203         warning.
12205         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12207         * Makefile.in (datadir): Use share rather than lib.
12209         * groff/groff.cc (basename): Rename to xbasename.
12211 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12213         * Makefile (CCLIBS): Don't use.
12214         * Makefile.ccpg: Likewise.
12216         * acgroff.m4: Rename to...
12217         * aclocal.m4: Modify extensively for autoconf 2.
12218         * configure.in: Likewise.
12219         * Makefile.in: Likewise.
12221         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12222         defined.
12223         (xstrsignal): Check for definition of NSIG. Conditionalize
12224         on SYS_SIGLIST_DECLARED.  Make return type const.
12226 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12228         * troff/input.cc (interpolate_macro): Rephrase missing space
12229         warning.
12231 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12233         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12234         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12235         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12236         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12237         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12238         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12239         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12240         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12241         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12242         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12243         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12244         Fix 'for' scoping.
12246 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12248         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12249         string_iterator.
12250         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12251         file.
12252         (macro_iterator::macro_iterator): Add additional argument.
12254 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12256         * troff/div.cc (vertical_size::vertical_size): In place of integer
12257         specifying line spacing use cunits specifying post vertical
12258         space.
12259         (macro_diversion::output, top_level_diversion::output): Likewise.
12260         * troff/div.h: Change declarations accordingly.
12261         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12262         field.
12263         (pending_output_line::pending_output_line,
12264         pending_output_line::output, environment::output,
12265         environment::output_line, environment::output_title,
12266         environment::hyphenate_line):  In place of
12267         integer specifying line spacing use cunits specifying post vertical
12268         space.
12269         (environment::environment): Add post_vertical_spacing and
12270         prev_post_vertical_spacing arguments.
12271         (environment::get_post_vertical_spacing): New function.
12272         (environment::total_post_vertical_spacing): New function.
12273         (environment::post_vertical_spacing): New function.
12274         (init_env_requests): Initialize pvs request and .pvs register.
12275         * troff/env.h: Change declarations.
12277 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12279         * tmac/tmac.pspic: Immediately remove the temporary file.
12281 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12283         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12284         height is specified.
12286 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12288         * tbl/table.c (struct vertical rule, class table_entry): Use int
12289         not short for start_row and end_row.
12291 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12293         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12294         functions.
12295         (diverted_space_node::reread, process_input_stack): Call
12296         trapping_blank_line() rather than blank_line().
12297         (init_input_requests): Bind "blm" to blank_line_macro().
12299         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12301 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12303         * troff/env.cc (environment::possibly_break_line): Require that
12304         width total excluding width of final space node be greater than
12305         the target text length.
12307 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12309         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12311 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12313         * troff/node.cc (charinfo_node): New class.
12314         (glyph_node, composite_node): Derive from charinfo_node.  Change
12315         member functions accordingly.
12317 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12319         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12321 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12323         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12325         * devps/generate/textmap (notsubset): Add.
12327         * tmac/tmac.a4: New file.
12329 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12331         * pic/main.cc (had_parse_error): New variable.
12332         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12333         returns non-zero.
12334         (main): Return 1 if had_parse_error is true.
12336 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12338         * grolj4/lj4.cc (main): Avoid use of strtoul.
12340 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12342         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12343         iso_8859_1 or $LESSCHARSET is latin1.
12345 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12347         * hpftodit: New directory.
12348         * Makefile.in (CCPROGDIRS): Add hpftodit.
12349         * devlj4/generate: New directory.
12351 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12353         * configure.in: Don't use AC_VFORK.
12354         * groff/pipeline.c (run_pipeline): Use fork() always.
12356 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12358         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12360         * Makefile.in (CCPROGDIRS): Add grolj4.
12361         (DEVDIRS): Add devlj4.
12362         * grolj4, devlj4: New directories.
12363         * tmac/troffrc: Handle lj4.
12364         * tmac/tmac.lj4: New file.
12366 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12368         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12370 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12372         * troff/input.cc (do_if_request): At end of second string, switch
12373         environments before getting next token.
12375 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12377         * devps/psstrip.sed: Split rule that strips whitespace on either
12378         side of delimiters.
12380 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12382         * troff/node.h (font_family::make_definition): Add return value to
12383         declaration.  * troff/symbol.h (symbol::operator==,
12384         symbol::operator!=): Likewise.
12386 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12388         * groff/groff.cc (main, help, synopsis): Handle -S.
12389         (possible_command::insert_arg): New function.
12391         * tmac/tmac.safer: New file.
12392         * tmac/msafer.man: New file.
12393         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12395 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12397         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12398         * pic/pic.y (placeless_element): Avoid unsafe operations if
12399         `safer_flag' is set.
12400         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12402 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12404         * eqn/lex.cc (get_token): Put call to add_context() in block to
12405         work around Sun C++ 4.0 bug.
12407         * include/stringclass.h (operator +): Use ?: instead of `if' to
12408         work around Sun C++ 4.0 bug.
12410 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12412         * tbl/main.cc (process_format): Accept - as a synonym for the _
12413         key letter.
12415         * libbib/index.cc (minus_one): Don't declare as const.
12417 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12419         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12421 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12423         * troff/input.cc (write_macro_request): New function.
12424         (init_input_requests): Bind write_macro_request to writem.
12426 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12428         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12429         equation.
12431         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12433         * tmac/tmac.s (@TS): Renamed from TS.
12434         (TS): Call LP then TS again.
12435         (cov*ab-init): Alias @TS to TS.
12437         * tmac/tmac.s: Allow QP or RS to initialize.
12439         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12440         Move initializations of PS and LL here.
12441         (par@init): Don't initialize HY.  Avoid changing environment 0.
12442         (par*env-init): Don't all par@reset.
12444 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12446         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12448 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12450         * Makefile.in (MDEFINES): Add LDFLAGS.
12451         (LDFLAGS): Add definition line.
12453 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12455         * troff/input.cc (get_optional_char): Split off error check into...
12456         (check_missing_character): New function.
12457         * troff/token.h: Declare it.
12458         * troff/env.cc (margin_character): Don't call get_optional_char.
12459         Only call tok.next() after making the node.
12461         * include/lib.h (getopt): Make 2nd argument char *const *.
12463 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12465         * nroff/conftest.sh: Deleted.
12467 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12469         * pic/make-dos-dist: Deleted.
12471 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12473         * devps/psstrip.sed: Strip comments before stripping trailing
12474         white space.
12476 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12478         * Version 1.09 released.
12480 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12482         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12484 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12486         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12488 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12490         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12491         about returning without a value.
12493         * troff/charinfo.h (charinfo::get_special_translation): Cast
12494         TRANSLATE_NONE to int.
12496         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12497         test.  Fix test so that it works with n unsigned.
12499         * pic/pic.y (defaults_table): Fully bracket initializer.
12500         * pic/lex.cc (lookup_keyword): Likewise.
12501         * eqn/lex.cc (token_table, def_table): Likewise.
12502         * eqn/box.cc (param_table): Likewise.
12503         * troff/input.cc (warning_table): Likewise.
12504         * libgroff/font.cc (table): Likewise.
12505         * grops/ps.cc (ps_printer::special): Likewise.
12506         * grops/psrm.cc (resource_manager::process_file): Likewise.
12507         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12508         * refer/command.cc (command_table): Likewise.
12509         * addftinfo/addftinfo.cc (param_table): Likewise.
12511         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12512         about temp's being unused.
12513         (unused): New function.
12515         * groff/pipeline.cc: Declare c_fatal.
12517         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12518         uchar.
12520         * libbib/index.cc (index_search_item::load): Prevent compiler
12521         warnings about fd_closer's being unused.
12522         (unused): New function.
12524 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12526         * troff/input.cc (copy_mode_error): Make `prefix' static.
12527         Fix typo.
12529         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12530         defined.
12531         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12532         HAVE_CC_OSFCN_H and modify accordingly.
12534         * troff/input.cc (init_charset_table): radicalex overlaps
12535         horizontally.
12537         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12538         udodo!hans@relay.NL.net).
12539         * groff/configure.in: Call it.
12541         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12542         * groff/configure.in: Call it.
12543         * include/lib.h: Conditionalize declaration of pclose.
12545         * troff/div.cc (last_page_number): New global variable.
12546         (top_level_diversion::begin_page): Exit if we just printed the
12547         last page.
12548         * troff/div.h (last_page_number): Declare it.
12549         * troff/input.cc (parse_output_page_list): Set last_page_number.
12551         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12552         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12553         tmac/tmac.X: Likewise.
12554         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12555         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12557 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12559         * tmac/doc-ditroff (hK): Remove groff specific code which
12560         prevented page-breaks between separate manual entries.  If this is
12561         the first page, don't set the page number to 1.
12563         * acgroff.m4 (GROFF_POSIX): New macro.
12564         * configure.in: Use it.
12566         * troff/node.cc (class real_output_file,
12567         real_output_file::real_output_file,
12568         real_output_file::~real_output_file): Conditionalize use of
12569         popen/pclose on POPEN_MISSING.
12570         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12571         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12572         (pipe_source): Similarily.
12574         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12576         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12577         presence of declarations by trying to compile example with
12578         conflicting declarations.  (gcc only gives a warning for missing
12579         declarations.)
12581 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12583         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12584         (from Ulrich Lauther).
12586 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12588         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12590 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12592         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12593         pointers and ints have different sizes.
12595 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12597         * tmac/tmac.s (par*env-init): Call par@reset.
12599 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12601         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12602         tag.
12603         (par*push-tag-env, par*pop-tag-env): New macros.
12605 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12607         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12608         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12610         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12611         comment.  Include <time.h>.
12613 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12615         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12616         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12617         lines.
12619 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12621         * troff/input.cc (read_request): Only print a prompt if reading
12622         from the terminal.  Also clearerr on EOF if reading from the
12623         terminal.  Declare isatty.
12625 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12627         * refer/label.y: Rename map_t to map_func and extractor_t to
12628         extractor_func.
12630 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12632         * include/assert.h: Don't use volatile.
12633         * libgroff/assert.cc: Likewise.
12635 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12637         * troff/input.cc (abort_request): Look at character in tok before
12638         calling get_copy().
12640 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12642         * troff/troff.h (NO_RETURN): Deleted.
12643         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12644         * troff/input.cc (exit_troff): Likewise
12646         * Makefile.in: Remove `Making ...' messages since GNU make now
12647         gives these. 
12649         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12651 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12653         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12654         to constant 1 inch.
12656 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12658         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12660 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12662         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12663         MARK_REG if there was no left delimiter.
12665 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12667         * pic/troff.cc (troff_output::text): Set line thickness to
12668         relative before outputting text.
12670         * tmac/tmac.e (@k): Don't zero ?T.
12671         ((z): Likewise.
12673 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12675         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12677 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12679         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12680         Paul Eggert).
12682 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12684         * troff/input.cc (ignoring): New variable.
12685         (ignore): Set ignoring during call to do_define_macro.
12686         (do_define_macro): Clear ignoring before interpolating terminating
12687         macro.
12688         (copy_mode_error): New function.
12689         (get_char_for_escape_name, read_long_escape_name,
12690         interpolate_arg): Use copy_mode_error.
12691         (warning_table): Add WARN_IG.
12692         * troff/troff.h (WARN_IG): Declare.
12693         (WARN_TOTAL): Change accordingly.
12695         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12696         * groff/groff.cc (strsignal): Delete declaration.
12698 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12700         * troff/div.cc (page_offset): Use 'm' as default scaling.
12702 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12704         * nroff/nroff.sh: Ignore -u.
12706 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12708         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12710 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12712         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12713         drawing box.
12714         (B2): With -Tascii, leave additional vertical space before
12715         and after. Ensure that the left and right indent is restored to
12716         what it was even if the point size changes.  Don't call
12717         par@finish. Change the indent, line length and title length
12718         directly.  With -Tascii, make the width of the box 1n less.
12719         (B1): Remember 1n at the current point size.  Don't call
12720         par@reset.  Change the indent, line length and title length
12721         directly.  Ensure that the temporary indent is preserved.
12722         (par*box-mark-top): Turn off no spacing mode.
12724 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12726         * Makefile.in (dist): Use .gz suffix.
12728 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12730         * troff/input.cc (main): Add return 0.
12731         * pic/main.cc (main): Use return instead of exit.
12732         * tbl/main.cc (main): Likewise.
12733         * eqn/main.cc (main): Likewise.
12734         * grops/ps.cc (main): Likewise.
12735         * grotty/tty.cc (main): Likewise.
12736         * groff/groff.cc (main): Likewise.
12737         * grodvi/dvi.cc (main): Likewise.
12738         * refer/refer.cc (main): Likewise.
12739         * indxbib/indxbib.cc (main): Likewise.
12740         * lkbib/lkbib.cc (main): Likewise.
12741         * soelim/soelim.cc (main): Likewise.
12742         * addftinfo/addftinfo.cc (main): Likewise.
12743         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12744         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12746         * troff/token.h (process_input_stack): Don't declare as static.
12747         * troff/input.cc: Likewise.
12749         * troff/node.c (invalidate_fontno): Make it a static member of
12750         class font_family.  Change callers.
12751         * troff/node.c: Change declaration.
12753         * tbl/main.cc (struct input_entry_format): Add explicit public
12754         specifier.
12755         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12756         struct double_hline_stuff): Likewise.
12757         * tbl/table.h (struct entry_format): Likewise.
12758         * pic/object.h (struct saved_state): Likewise.
12760         * include/stringclass.h: Add forward declarations of friend
12761         functions that are later declared as inline.  Don't include inline
12762         specifier in friend declaration.
12764         * libgroff/lib.h: Declare popen and pclose.
12765         * acgroff.m4 (GROFF_POPEN): New macro.
12766         * configure.in: Call it.
12768         * include/lib.h (PI): New constant. Undef first if necessary.
12769         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12770         * grops/ps.cc (degrees, radians): Likewise.
12771         * libgroff/font.cc (font::get_skew): Likewise.
12773         * grops/ps.cc (is_ascii): New function.
12774         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12775         isprint.
12776         (ps_printer::define_encoding): Use csspace.
12777         * libgroff/strtol.c (ISASCII): New macro.
12778         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12779         Use ISASCII rather than isascii.
12780         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12781         * libgroff/cset.cc: Likewise.
12782         * libdriver/input.cc: Include cset.h.
12783         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12784         than isdigit().
12786         * refer/refer.cc (main): Use %ld rather than %d for longs.
12788         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12789         S_ISREG macro.
12791         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12793 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12795         * troff/input.cc (hyphenation_code): Skip white space between
12796         char/code pairs.
12798 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12800         * tbl/table.h (table::entry_list_tailp): New member.
12801         (table::table): Initialize it.
12802         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12803         behaviour.
12805 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12807         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12808         with negative horizontal positions. Remove casts of glyph::hpos to
12809         int.
12810         (USHRT_MAX): Delete definition.
12811         (SHRT_MAX, SHRT_MIN): New definitions.
12812         (glyph::hpos): Change type to short.
12813         (tty_printer::end_page): Output multiple backspaces if necessary.
12814          Remove casts of glyph::hpos to int.
12815         
12816 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12818         * tmac/tmac.s (@RT): New definition.
12820 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12822         * refer/refer.cc (do_file): Make sure current_filename is set when
12823         filename is "-".
12825         * pic/common.cc (common_output::dot_line): Handle zero length
12826         lines.
12828 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12830         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12831         (par@init): Initialize \n[HY].
12833 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12835         * troff/dictionary.cc (dictionary::remove): Continue when
12836         r < j < i.
12838 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12840         * Makefile.com (.y.cc): Avoid ending up with two versions of
12841         $(YTABH).
12843 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12845         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12846         (\(,C): Likewise.  Also fix typo.
12848 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12850         * lib.h: Delete extraneous semi-colon.
12852         * Add pso request: `so' from a pipe.
12853         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12854         (file_iterator::close): New function.
12855         (file_iterator::~file_iterator, file_iterator::next_file): Use
12856         file_iterator::close.
12857         (file_iterator::backtrace): Say `process' rather than `file' when
12858         the stream is popened.
12859         (pipe_source): New function.
12860         (init_input_requests): Bind ".pso" to pipe_source.
12862 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12864         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12866         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12867         digits in lower case.
12869 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12871         * Version 1.08 released.
12873         * Makefile.in (dist): Insert || true after ln -s commands that
12874         might fail.
12876         * mm: Update to mm 1.16.
12878         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12879         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12880         SH_SCRIPT_SED_CMD.
12881         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12882         MDEFINES.
12883         * nroff/Makefile.sub (nroff): New target.
12884         (install_data): Install nroff.
12885         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12886         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12888 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12890         * eqn/Makefile.sub (neqn): Add chmod +x.
12892         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12894 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12896         * troff/input.cc (string_iterator::string_iterator()): Initialize
12897         lineno and count.
12899 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12901         * troff/div.cc (macro_diversion::space,
12902         top_level_diversion::space): Don't set high_water_mark.
12903         (macro_diversion::output, top_level_diversion::output): Don't
12904         include post line space in high water mark.
12906 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12908         * eqn/eqn.y: Don't define YYDEBUG.
12909         * pic/pic.y: Likewise.
12911 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12913         * tmac/tmac.e ([3): Add space after comma following editors.
12914         Change double spaces to single spaces.
12915         ([4): Change double spaces to single spaces.
12917         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12918         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12919         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12920         after %!PS-Adobe- (for Newsprint).
12922         * troff/div.cc (top_level_diversion::begin_page): When
12923         before_first_page is 1, set page_number to 1.
12925 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12927         * eqn/box.cc (box::top_level): Protect equation with \&.
12929 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12931         * groff/groff.cc (possible_command::set_name): Delete old name.
12933         * groff/groff.cc (possible_command::~possible_command): Use
12934         a_delete.
12936         * troff/node.cc (troff_output_file::begun_page): New member.
12937         (troff_output_file::troff_output_file): Initialize it.
12938         (troff_output_file::really_begin_page): Only output V command if a
12939         page has been begun.
12941         * pic/pic.y (placeless_element): Delete argument to PRINT after
12942         use.
12944 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12946         * Make wrapman work.
12947         * troff/div.h (class top_level_diversion): Replace
12948         first_page_begun by before_first_page (with opposite sense).
12949         * Change first_page_begun to before_first_page inverting sense.
12950         * troff/div.cc (class nl_reg): New class.
12951         (init_div_requests): Use class nl_reg for \n(nl.
12952         (top_level_diversion::begin_page): Don't call
12953         output_file::begin_page if before_first_page is 2;
12954         reset before_first_page afterwards.  If have_next_page_number is
12955         false, then always increment page_number.
12956         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12957         Restore compatibility mode after loading, and then disable
12958         compatibility mode in TH.
12960 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12962         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12963         past last line.
12964         * troff/node.h (output_file::trailer): Declare.
12965         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12966         * troff/node.cc (output_file::trailer): New function.
12967         (troff_output_file::~troff_output_file): Move most code into...
12968         (troff_output_file::trailer): New function.
12969         (class troff_output_file): Delete page_length member. Declare
12970         trailer().
12971         (troff_output_file::really_begin_page): Use current page length
12972         for final V command.
12974         * tbl/main.cc (struct options): New decimal_point_char member.
12975         (options::options): Initialize this.
12976         (process_options): Implement decimalpoint option.
12977         (process_data): Pass decimal_point_char option to table::table.
12978         * tbl/table.h (class table): New decimal_point_char member.
12979         (table::table): Add additional argument.
12980         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12981         second argument specifying decimal point character.  Use this
12982         instead of '.'.
12983         (table::table): Initialize decimal_point_char.
12984         (table::add_entry): Change call to find_dot.
12986         * troff/input.cc (get_copy, token::next): Implement \V.
12987         (interpolate_environment_variable): New function.
12989 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12991         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12992         * pic/pic.y: Likewise.
12994         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12995         Add casts to int.
12996         * refer/ref.cc (reference::insert_field, reference::delete_field):
12997         Likewise.
12998         * troff/number.cc (parse_term): Likewise.
13000         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13001         * configure.in: Use GROFF_PROG_YACC.
13003         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13004         and g++.
13005         * Makefile.in (OPTIMIZE): New define.
13006         (DEBUG): Empty by default.
13007         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13009         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13010         (GROFF_ARRAY_DELETE): Likewise.
13011         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13013         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13015         * devps/psstrip.sed: Use different delimiter on last line (so that
13016         it works with BSD 4.4 sed.)
13018 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13020         * devps/psstrip.sed: Delete comments.
13022         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13023         optind, opterr, optarg.
13024         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13025         opterr, optarg.
13027 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13029         * Makefile.in (check): Dummy target.
13031 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13033         * Version 1.07 released.
13035         * Integrate mm 1.11.
13037         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13038         where start_col was meant.
13040 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13042         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13044 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13046         * troff/input.cc (token::next): Make \z\o'...' and similar things
13047         work.
13049         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13050         constants.
13051         (environment): Add margin_character_flags member.
13052         * env.cc (environment::environment(symbol),
13053         environment::environment(const environment *): Initialize
13054         margin_character_flags.
13055         (margin_character): Rewrite.
13056         (environment::output_line): Add a margin character if
13057         margin_character_flags is non-zero.  Turn off the
13058         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13059         zero, use margin_character_node without copying and then set
13060         margin_character_node to 0.
13062         * devps/DESC.in: Change minimum size to 1000.
13064 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13066         * troff/symbol.h (symbol::hash): Change return type to unsigned
13067         long.
13068         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13069         Add casts to int.
13071         * test-groff: Use -r rather than -x.
13073         * grops/psfig.diff: Include in distribution again.
13075 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13077         * Makefile.in (dist): Use gzip.
13079 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13081         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13082         unistd.h as well as in stdlib.h.
13083         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13084         defined; otherwise include <sys/types.h> and <unistd.h> if
13085         UNISTD_H_DECLARES_GETOPT is defined.
13087         * configure.in: use builtin(include, ... rather than include(...
13088         * configure: Regenerate with autoconf 1.3.
13090         * libdriver/print.cc (printer::adjust_arc_center): Use new
13091         algorithm suggested by Andy Fyfe.
13093         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13094         * include/printer.h: Declare this.
13095         * grops/ps.cc (ps_printer::draw): Use it.
13096         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13098 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13100         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13102 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13104         * eqn/main.cc (main): Handle "eqn -".
13106 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13108         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13110         * mm: Integrate version 1.08.
13112         * pic/troff.cc (troff_output::finish_picture): Set
13113         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13114         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13115         if it's not defined. Check whether the register is non-zero rather
13116         than whether it's not defined.
13117         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13119         * indxbib/indxbib.cc: Move all signal handling into...
13120         * indxbib/signal.c: New file.
13121         * configure.in: Call AC_RETSIGTYPE.
13123         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13124         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13125         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13127         * troff/input.cc (token::token, token::operator=): Work round SGI
13128         C++ bug.
13129         * pic/object.cc (position::position): Likewise.
13131 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13133         * pic/pic.h: Move declaration of hypot().
13135 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13137         * pic/pic.h: Declare hypot().
13139         * pic/pic.h: Define M_PI if necessary.
13141 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13143         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13144         `.ta T' feature.
13146         * devps/prologue.ps (RE): Handle the possibility that the old font
13147         doesn't have a FontName entry.
13149 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13151         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13152         (@C): Use @fam not fam.
13154 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13156         * lookbib/lookbib.cc (main): Change type of start to const char *.
13157         * lkbib/lkbib.cc (main): Likewise.
13159         * eqn/lex.cc (definition::definition): Don't use member
13160         initializer syntax for members of anonymous unions.
13162         * troff/input.cc (input_stack::backtrace): Change type of to const
13163         char *.
13165 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13167         * include/stringclass.h (class string): Declare inline friend
13168         functions as inline in class declaration.
13169         * troff/hvunits.h (class hunits, class vunits): Likewise.
13170         * include/refid.h (class reference_id): Likewise
13171         * troff/troff.h (points_to_units(units), scale(units, double)):
13172         Delete declarations.
13173         * libdriver/input.cc (get_char): Delete declaration.
13174         * include/lib.h: Change 2nd argument of getopt from const char **
13175         to char **.
13176         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13177         char **' before assigning to a `const char **'.
13178         * tbl/table.cc: Delete extra declarations of prints().
13180 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13182         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13183         char **' before assigning to a `const char **'.
13185         * libgroff/errarg.cc (errarg::errarg): Don't use member
13186         initializer syntax for members of anonymous unions.
13188 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13190         * mm: Integrate version 1.07.
13192 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13194         * troff/input.c (translate2): Rename to
13195         (translate_no_transparent).
13196         (init_input_requests): Rename tr2 to trnt.
13198 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13200         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13201         (charinfo::set_translation, charinfo::set_special_translation):
13202         Add second argument that specifies value for
13203         transparent_translate.
13204         (charinfo::get_translation, charinfo::get_special_translation):
13205         Add optional second argument that specifies whether translation is
13206         being used for transparent throughput.
13207         * troff/input.cc (charinfo::set_translation,
13208         charinfo::set_special_translation): Handle second argument.
13209         (charinfo::charinfo): Initialize transparent_translate.
13210         (translate): Split main part off into
13211         (do_translate): New function.  Pass argument saying whether
13212         translation applies to transparent throughput.
13213         (translate2): New request.
13214         (init_input_requests): Bind translate2 to `tr2'.
13216 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13218         * tbl/table.h (class table): Add `nokeep' flag.
13219         * tbl/main.cc (process_options): Handle `nokeep' option.
13220         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13221         table::do_bottom): Don't output keep/release macro definitions or
13222         calls when `nokeep' option has been specified.
13224 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13226         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13228 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13230         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13231         block_entry::divert, alphabetic_block_entry::divert): Add extra
13232         argument giving column separation.
13233         (table::compute_widths): Pass column separation to
13234         table_entry::divert().
13235         (block_entry::do_divert): If an entry spans multiple columns and a
13236         minimumum width has been specified for each column, then set the
13237         line length to the sum of the widths (plus possibly the column
13238         separations).
13240         * troff/input.cc (set_escape_char): Don't set the escape_char
13241         until after calling has_arg().
13243 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13245         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13246         case.
13248         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13249         in case where r > nrows - 1.
13251         * tbl/table.cc (BODY_HEIGHT): Deleted.
13252         (LINE_SEP): New definition.
13253         (table::print_single_hline, table::print_double_hline,
13254         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13255         table::do_row, table::do_top): Use LINE_SEP space before a line
13256         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13258         * tbl/table.cc (text_entry::print_contents): New function.
13259         (text_string_name, right_text_string_name): Deleted.
13260         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13261         (simple_text_entry::do_width, numeric_text_entry::do_width,
13262         alphabetic_text_entry::do_width): Don't store the contents of the
13263         entry in a string.
13264         (left_text_entry::simple_print, right_text_entry::simple_print,
13265         center_text_entry::simple_print,
13266         alphabetic_text_entry::simple_print,
13267         numeric_text_entry::simple_print): Print the entry directly
13268         instead of using the stored string.
13270 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13272         * devps/Makefile: Strip PostScript files.
13273         * devps/prologue: Rename to...
13274         * devps/prologue.ps.
13275         * devps/psstrip.sed: New file.
13276         * devps/download: Use .pfa rather than .ps for installed versions
13277         of fonts.
13279 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13281         * troff/env.cc (input_trap): Give a warning if the argument is out
13282         of range.
13284         * troff/env.cc (adjust): Treat negative argument as missing. Round
13285         argument > 5 down to 5.
13287         * troff/env.cc (center, right_justify): Make negative argument zero.
13289         * troff/div.cc (page_offset, vertical_position_traps): Treat
13290         invalid argument as missing.
13291         * troff/env.cc (line_spacing, line_length, title_length, indent,
13292         underline, hyphen_line_max_request, control_char,
13293         no_break_control_char, widow_control_request, adjust, input_trap,
13294         point_size): Likewise.
13295         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13296         constant_space): Likewise.
13297         * troff/input.cc (compatible, shift, warn_request,
13298         set_escape_char): Likewise.
13300         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13301         * tbl/table.cc (table::table): Likewise.
13303         * Makefile.dev (install_dev): depends on $(DEVFILES).
13305 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13307         * devX75, devX75-12, devX100, devX100-12: New directories.
13308         * Makefile.in: Add these to DEVDIRS.
13310         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13311         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13312         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13313         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13314         targets.
13315         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13316         (uninstall): New target.
13317         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13318         uninstall_prog, uninstall_dev): New targets.
13320         * troff/div.cc (return_request): Treat an invalid argument as
13321         missing.
13323 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13325         * tmac/tmac.e ((f): Set up the environment even when there's a
13326         current diversion.  Transperently throughput a call to @N.
13327         (@N): New macro.
13329 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13331         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13332         up to vertical resolution.
13334         * tbl/table.cc (table::do_row): Change row number after printing
13335         stuff list.
13337         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13339 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13341         * Rename CHANGES to NEWS.
13343 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13345         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13347 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13349         * man.ultrix: Removed.
13351 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13353         * Makefile.comm (extraclean): Delete files whose names begin with
13354         `='.
13356         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13357         aligned text.
13359 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13361         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13362         * troff/div.cc (page_length, need_space, space_request): Treat
13363         invalid optional argument as missing.
13364         * troff/env.cc (number_lines): If the first argument is present
13365         but not a number, turn on line numbering, don't change the next
13366         line number and parse the remaining arguments.
13368         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13370 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13372         * eqn/box.h: Change declaration accordingly.
13373         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13374         the specified size was bad but don't give an error.  Check for
13375         overflow.
13376         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13377         * eqn/lex (do_size): Likewise.
13379 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13381         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13382         compatible headers.
13384 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13386         * tbl/table.cc (table::init_output): Improve error message when
13387         table won't fit on one page.
13389 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13391         * pic/troff.cc (troff_output::start_picture): Generate line
13392         containing a horizontal motion equal to the width of the picture.
13394         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13395         using GROFF_COMMAND_PREFIX environment variable.
13397 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13399         * mdate.sh: Use $NF rather than $(NF).
13401 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13403         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13405         * eqn/main.cc (main): Output code to check that geqn was given the
13406         correct -T option.
13408 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13410         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13411         `ln -s ../Makefile .; make; rm -f Makefile'.
13413         * troff/hyphen: Rename to...
13414         * troff/hyphen.us:
13415         * troff/input.cc (main): Delete -H option. Don't call
13416         read_hyphen_file().
13417         * troff/env.cc: Include searchpath.h and macropath.h.
13418         (exception_dictionary): Deleted.
13419         (ht): Deleted.
13420         (read_hyphen_file): Deleted.
13421         (hyphenation_language): New struct.
13422         (class trie, class hyphen_trie): Move declarations up.
13423         (trie_node::~trie_node): Deleted.
13424         (trie::delete_trie_node): New function.
13425         (trie::do_delete): New pure virtual function.
13426         (hyphen_trie::do_delete): New function.
13427         (trie::~trie): New function.
13428         (hyphen_trie::~hyphen_trie): New function.
13429         (trie::clear): No need to chcek that tp is not 0.
13430         (current_language, language_dictionary): New variables.
13431         (hyphen_word): Give an error if no current language.  Use
13432         exceptions dictionary in current language.
13433         (hyphen_trie::read_patterns_file): Find file using macro_path.
13434         Allow comments (starting with %) in patterns file.  Don't make it
13435         a fatal error if the file can't be found.
13436         (hyphenate): Return if no current language.  Get the exceptions
13437         dictionary and the hyphenation patterns from the current language.
13438         (set_hyphenation_language): New variable.
13439         (hyphenation_patterns_file): New function.
13440         (hyphenation_language_reg): New class.
13441         (hyphenation_language_reg::get_string): New function.
13442         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13443         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13444         register.
13445         * groff/groff.cc (main, help, synopsis): Delete -H option.
13446         * include/Makefile.sub: Don't define HYPHENFILE.
13447         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13448         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13449         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13450         hyphenation patterns.
13452 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13454         * eqn/neqn.sh: New file.
13455         * eqn/Makefile.sub: Handle neqn.sh.
13457         * eqn/eqn.h: Declare `nroff' variable.
13458         * eqn/box.cc (param_table): Add `nroff' param.
13459         (nroff): Define it.
13460         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13461         variable.
13462         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13464         * troff/troff.h (WARN_FONT): New warning.
13465         (WARN_TOTAL): Change accordingly.
13466         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13467         (warning_table): Add WARN_FONT.
13468         * troff/node.cc (mount_font_no_translate): Pass argument to
13469         font::load_font.  If this is non-zero, give a warning.
13470         Don't give an error message when accessing a font that has already
13471         been found to be invalid.
13472         * include/font.h (font::load, font::load_font): Add additional
13473         optional argument which suppresses error message if the font is
13474         not found.
13475         * libgroff/font.cc (font::load_font): Handle additional argument.
13476         (font::load): Add additional argument. If this is non-null, set it
13477         to 1 and don't give error message.
13479         * include/printer.h (printer::end_page): Add argument giving
13480         length of page.
13481         * libdriver/input.cc (do_file): Pass this.
13482         * grops/ps.cc (ps_printer::end_page): Add argument.
13483         * grodvi/dvi.cc (dvi_printer::end_page,
13484         draw_dvi_printer::end_page): Add argument.
13485         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13486         columns_per_page members. New member nlines.
13487         (DEFAULT_LINES_PER_PAGE): Deleted.
13488         (tty_printer::tty_printer): Don't compute lines_per_page from
13489         font::paperlength. Don't compute columns_per_page from
13490         font::paperwidth.
13491         (tty_printer::add_char): Don't check horizontal position against
13492         columns_per_page. Grow glyphs vector if neccessary.
13493         (tty_printer::end_page): Add argument giving page_length in units.
13494         Discard lines past end of page.
13496 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13498         * tmac/tmac.tty-char: Fix definition of \(/l.
13500         * tmac/tmac.X: Define \(en.
13502 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13504         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13505         lpq, then use lp rather than lpr.
13507         * tmac/tmac.s (par@reset): Don't call `ad'.
13508         (par*env-init): Call `ad'.
13510 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13512         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13513         date.
13515         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13516         * indxbib/indxbib.cc: Likewise.
13518 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13520         * libgroff/putenv.c: New file.
13521         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13522         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13523         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13524         stdlib.h with AC_HAVE_HEADERS.
13526 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13528         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13529         does not exist.
13531 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13533         * eqn/box.cc (gsize): Make it an int.
13534         (set_gsize): Parse argument handling increment or decrement.
13535         (box::top_level): Convert gsize to a string.
13537         * troff/input.cc (exit_troff): Make buf unsigned char [].
13538         Call to make_temp_iterator casts buf to char*.
13540         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13542         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13543         * Makefile.cpg (depend.temp): Likewise.
13545         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13547         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13549 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13551         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13553 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13555         * Version 1.06 released.
13557         * Integrate mm 1.04.
13559 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13561         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13563 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13565         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13566         ligatures command.
13567         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13568         afmtodit. Regenerate.
13570         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13571         @f back past the current position.
13573         * tmac/tmac.e: Change calls to @R so that comments are not part of
13574         arguments.
13576 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13578         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13580         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13581         check that we can link a call to a function declared in <stdio.h>.
13582         (GROFF_UNISTD_H): New macro.
13583         * configure.in: Call it.
13584         * Makefile.in: Document it.
13585         * include/posix.h: New file.
13586         * troff/troff.h: Don't include <osfcn.h>
13587         * troff/input.cc: Include posix.h.
13588         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13589         osfcn.h.
13590         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13591         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13592         <fcntl.h>.
13593         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13594         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13595         * libbib/search.cc (O_RDONLY): Delete definition.
13596         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13597         Don't include <osfcn.h>.
13599         * acgroff.m4 (GROFF_TIME_T): New macro.
13600         * configure.in: Call it.
13601         * Makefile.in: Document it.
13603         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13604         * configure.in: Call it.
13605         * Makefile.in: Document -DTRADITIONAL_CPP.
13606         * include/ptable.h: Don't include generic.h.
13607         (name2): Define it.
13609         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13610         Afterwards remove [T1 and [T2.
13611         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13612         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13613         (ref*add-T2): Renamed from ref*add-T.
13614         (ref*add-T1): New macro.
13616 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13618         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13620         * libbib/index.cc: Include <fcntl.h>.
13621         (O_RDONLY): Define if necessary.
13622         (make_index_search_item, index_search_item_iterator::get_tag,
13623         index_search_item::check_files): Use O_RDONLY.
13624         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13625         (O_RDONLY): Define if necessary.
13626         (search_list::add_file): Use O_RDONLY.
13627         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13628         <sys/stat.h>.
13629         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13630         (main): Use these.
13632         * libbib/index.cc (S_ISREG): Define it if necessary.
13633         (index_search_item::load): Use S_ISREG.
13635         * include/driver.h: Include <errno.h>.
13637 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13639         * eqn/box.cc (body_height): Increase default value to 85.
13640         (body_depth): Increase default value to 35.
13642 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13644         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13645         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13646         protected from expansion with \E.
13648         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13650         * Makefile (Makefile): New target.
13652         * Makefile.sub (configure, distfiles): New targets.
13654         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13655         construct.
13657 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13659         * eqn/box.cc (param_table): Add body_height and body_depth.
13661         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13663 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13665         * psbb/Makefile.sub: Don't link with libgroff.a.
13667         * acgroff.m4 (GROFF_PUTENV): New macro.
13668         * configure.in: Call GROFF_PUTENV.
13669         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13670         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13671         is defined.
13673         * troff/env.cc (distribute_space): Rename force_forward argument
13674         to force_reverse.  Reverse the list if force_reverse is true.
13676 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13678         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13680         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13681         height or depth to be negative.  Guard against SUP_RAISE quantity
13682         being negative.
13684 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13686         * devps/generate/textmap: Add `an' (arrowhorizex).
13687         * tmac/tmac.ps: \(an overlaps horizontally.
13688         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13690         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13691         * devps/textmap: Add arrowvertex.
13692         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13693         updownarrow delimiters.
13694         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13696         * tbl/table.cc (simple_entry::position_vertically,
13697         block_entry::position_vertically):  For a centered entry, perform
13698         the motion in two stages.
13700         * refer/refer.cc (split_punct): Don't call lookup_token if there
13701         is no token.
13703 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13705         * troff/input.cc (token::next): Delete token_node after copying
13706         token.
13708         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13709         cur_point_size.
13711         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13713         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13715 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13717         * grops/ps.cc (usage): -b option takes an argument.
13719         * devps/prologue (PLG): New procedure.
13720         * grops/ps.cc (main, usage): New -g option.
13721         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13722         length using PLG.
13724 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13726         * include/cset.h: Include <limits.h> if we have it.
13728         * libgroff/illegal.cc: New file.
13729         * include/lib.h (illegal_input_char): Use table.
13730         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13731         * pic/lex.cc (ARG1): Renumber to 14.
13732         * eqn/lex.cc (ARG1): Likewise.
13734         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13735         (eg 1.05.90) correctly.
13737 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13739         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13740         Rename $r and $R registers to $v and $V.
13741         ($r, $R): Initialize to 0.
13742         (@v, @V): New macros.
13743         (sz): Call @v.
13744         (@M): Call @V.
13746         * troff/input.cc (main, usage): Add -R option that says not to
13747         load troffrc.
13748         * eqn/main.cc (main, usage): Rename -n to -R.
13750 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13752         * devps/DESC.in: Leave font positions 5-9 blank.
13753         * devdvi/DESC.in: Likewise.
13755         * grog/grog.pl: Handle `.PS <file' correctly.
13757         * troff/input.cc (input_stack::push): Improve error message when
13758         input stack limit exceeded.
13760 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13762         * refer/refer.cc (main): Fix typo in handling of `a' option.
13764         * refer/refer.cc (do_bib): In state START after a newline remain
13765         in state START.
13767         * groff/groff.sh: Deleted.
13768         * groff/Makefile.sub: Delete handling of groff.sh.
13770         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13771         to determine whether to use \X'ps:...'.
13772         * tmac/troffrc: Set 0p register to 0.
13773         * tmac/tmac.ps: Set 0p register to 1.
13775         * groff/groff.cc: Support -X option. Give warning for -TXps and
13776         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13777         * tmac/troffrc: Support -r.X=1.
13779         * pic/troff.cc (troff_output::dot): Don't test
13780         zero_length_line_flag.
13782 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13784         * include/lib.h: Declare getopt() and friends unless
13785         STDLIB_H_DECLARES_GETOPT is defined.
13787         * doc/chars.tr: Delete.
13788         * man/groff_char.man: New file.
13790 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13792         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13793         user has changed register format.
13795 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13797         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13798         `postpro' command in DESC file.  Get spooler command from `print'
13799         command in DESC file.  Execute spooler command with /bin/sh.
13801         * groff/groff.cc: Split Unix-specific parts into...
13802         * groff/pipeline.c: New file.
13804         * LICENSE: Delete.
13805         * COPYING: New file.
13806         * all files: Update copyright notices.
13808         * Rearrange files.  Redo Makefiles.  Use autoconf.
13810 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13812         * troff/input.c (charinfo_to_node_list): Interpret character
13813         definition with escape_char of `\'.
13815 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13817         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13818         Define INT_DIGITS as big enough for 64-bit integer.
13819         * lib/strtol.c: Don't include lib.h.
13820         * lib/lib.h: Delete ifdef __cplusplus stuff.
13822 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13824         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13825         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13826         get DESC from current directory.
13828 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13830         * tbl/main.c (main): Always reset the line number when reading
13831         from stdin.
13833         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13834         table::define_bottom_macro, table::do_row, table::do_top): Round
13835         vertical spacing up to vertical resolution.
13837 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13839         * ps/ps.h (enum resource_type): Avoid comma at end of
13840         enumerator-list.
13841         * dvi/dvi.c (class dvi_printer): Likewise.
13842         * dvi/tfmtodit.c (gf::load): Likewise.
13843         * refer/label.y (struct expression): Likewise.
13844         * refer/refer.c (class label_processing_state): Likewise.
13845         * refer/indxbib.c (do_file): Likewise.
13846         * troff/troff.c (enum warning_type): Likewise.
13847         * tbl/main.c (process_data): Likewise.
13848         * troff/charinfo.h (class charinfo):
13850 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13852         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13854 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13856         * groff.c: Move to new groff subdirectory.
13857         * groff/Makefile: New file.
13858         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13860         * man/mdate.sh: Use ls -L if supported.
13862         * Consolidate all header files produced by gendef into lib/defs.h.
13863         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13864         Don't include path.h.
13865         * lib/Makefile (path.h): Don't generate.
13866         * troff/input.c: Include defs.h. Don't include config.h.
13867         * troff/Makefile (config.h): Don't generate.
13868         * refer/index.h: Don't include suffix.h.
13869         * refer/index.c: Include defs.h.
13870         * refer/indxbib.c: Include defs.h.
13871         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13872         defs.h.
13873         * refer/Makefile (suffix.h, path.h): Don't generate.
13874         * groff.c: Don't include config.h. Include defs.h.
13875         * Makefile (config.h): Don't generate.
13876         (lib/defs.h): Generate.
13877         (topclean): Remove lib/defs.h.
13879 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13881         * lib/malloc.c, lib/getpagesize.h: Deleted.
13882         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13883         related stuff.
13884         * lib/Makefile: Delete malloc-related stuff.
13885         * lib/new.c: Workaround COOKIE_BUG if necessary.
13887         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13888         needed header files directly.
13889         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13890         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13892 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13894         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13895         argument.
13896         * lib/font (font::load_desc, font::load): Don't split argument of
13897         unknown command.
13898         (font::handle_unknown_font_command): Change type.
13899         * ps/ps.c (ps_font::handle_unknown_font_command,
13900         handle_unknown_desc_command): Change type.
13901         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13903 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13905         * lib/font.h (font::handle_unknown_font_command): Add file and
13906         line arguments.
13907         * lib/font.c (font::handle_unknown_font_command):
13908         * ps/ps.c (ps_font::handle_unknown_font_command):
13909         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13910         lineno arguments.  Use _with_file_and_line functions for error
13911         reporting.
13913         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13914         data member.
13915         * lib/font.c (font::set_unknown_desc_command_handler): New
13916         function.
13917         (font::load_desc): For unknown commands, call
13918         unknown_desc_command_handler if not null.
13919         * lib/font.h (class font): Declare them.
13920         (FONT_COMMAND_HANDLER): New typedef.
13921         * ps/ps.c (handle_unknown_desc_command): New function.
13922         (main): Set bflag if we had a -b option. Call
13923         font::set_unknown_desc_command_handler.
13924         (broken.h): Don't include.
13925         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13926         submake 
13927         * ps/devps/Makefile: Add `broken' command to DESC file using
13928         BROKEN_SPOOLER_FLAGS.
13930         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13932         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13934         * macros/tmac.e (@R, @S): New macros.
13935         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13936         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13937         Declare $H, $[0-9], .. macros with @S.
13938         Declare |0, |1, |2, |3 strings with @S.
13940         * macros/tmac.e (@S): Rename to @U.
13942         * macros/tmac.e (@z): Define @b and bp as empty instead of
13943         deleting them,
13945         * macros/tmac.e (@m): Deleted.
13946         (@h): Don't call @m.
13947         (@z): Don't set @m trap.
13949         * macros/tmac.e ($h, $f): Define |z as empty string.
13951         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13952         (@q): Likewise.
13954         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13955         removing them.
13956         ()f): Likewise for * register.
13958         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13959         argument is missing, don't change $R.  Call sr with three
13960         arguments when initializing.
13962 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13964         * macros/tmac.e (sr): New macro.
13965         Initialize $r and $R using sr.
13967         * macros/tmac.e (,): Delete \*(#[.
13969         * troff/env.c (set_tabs): Read the tab type even if the position
13970         is bad.  Allow the position of the first tab stop to be negative.
13972 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13974         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13975         _POSIX_VERSION.
13976         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13977         rather than -DPATHCONF_MISSING.
13978         * Makefile: Get rid of PATHCONF_MISSING.
13980         * refer/map.c: New file.
13981         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13982         to map_len.
13983         * refer/Makefile: Handle map.c.
13984         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13986 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13988         * Makefile: RANLIB should be `true' if there is no ranlib.
13989         * lib/Makefile (libgroff.a): Simplify.
13990         * driver/Makefile (libdriver.a): Simplify.
13992         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13993         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
13994         defined.
13996 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
13998         * troff/env.c (compare_ranges): Declare as extern "C".
14000         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14002         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14004 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14006         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14007         but conditionalize use of \X based on \*(.T.
14008         (grops_output::*): Deleted.
14009         * pic/output.h: Delete declaration of make_grops_output.
14010         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14011         by default. -n sets it to 0.
14012         (usage): Corresponding changes.
14013         * groff.c (main): Don't pass -x or -p to pic.
14014         * groff.sh: Likewise.
14016         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14017         to be non-zero.
14019         * ps/devps/afmtodit: Change calculation of asc_boundary and
14020         desc_boundary.  Make these bounds inclusive.
14021         * ps/devps: Regenerate font files.
14023 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14025         * macros/tmac.latin1: New file.
14026         * macros/tmac.tty-char: Use tmac.latin1.
14027         (tmac.tty-tr): Deleted.
14028         * macros/Makefile: Install tmac.latin1.
14029         * macros/tmac.dvi: Use tmac.latin1.
14030         * macros/troffrc: Translate \[char160] onto no-break space here.
14031         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14033 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14035         * macros/tmac.Xps: Use `do' request.
14037         * macros/tmac.ps: Use `do' request.
14039         * macros/tmac.e (@C): Use `do' request.
14041         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14042         * macros/Makefile: Install tmac.X*.
14044         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14045         * tty/Makefile: Don't install tmac.tty*.
14046         * macros/Makefile: Install tmac.tty*.
14048         * dvi/tmac.dvi: Move to macros.
14049         * dvi/Makefile: Don't install tmac.dvi.
14050         * macros/Makefile: Install tmac.dvi.
14052         * ps/tmac.ps*: Move to macros.
14053         * ps/Makefile: Don't install tmac.ps*.
14054         * macros/Makefile: Install tmac.ps*.
14056         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14057         option.
14058         * macros/eqnrc: Set draw_lines parameter based on device.
14059         * groff.c: Don't pass -D flag to eqn.
14060         * groff.sh: Likewise.
14061         * eqn/main.c: Warn about use of -D.
14063         * troff/input.c (process_startup_file): New function.
14064         (main): Call process_startup_file().
14065         * macros/troffrc: New file.
14066         * macros/Makefile: Install troffrc.
14067         * groff.c (main): Don't pass extra -m option to troff. For a 
14068         pseudo device pass the name of the pseudo device to troff using
14069         -d.
14070         * groff.sh: Likewise.
14071         * groff.c (possible_command::prepend_arg): Deleted.
14073         * troff/input.c (do_request): New function.
14074         (init_input_requests): Bind "do" to do_request.
14076         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14077         load eqnrc from macro directory.
14078         * macros/eqnrc: New file.
14079         * macros/Makefile: Install eqnrc.
14080         * ps/devps/eqnchar: Deleted.
14081         * ps/devps/Makefile: Don't install eqnchar.
14082         * dvi/devdvi/eqnchar: Deleted.
14083         * dvi/devdvi/Makefile: Don't install eqnchar.
14084         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14085         variable optM.
14087         * lib/device.[ch]: New files.
14088         * lib/font.h (font::set_device_name, font::get_device_name):
14089         Deleted.
14090         * lib/fontfile.c: Use device.h.
14091         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14092         * troff/input.c: Delete definition of `device'.
14093         (main): Don't initialize device.
14094         * troff/troff.h: Include device.h rather than declaring device.
14095         * troff/Makefile: No need to handle DEVICE.
14096         * driver/input.c: Include device.h. Don't use
14097         font::{set,get}_device_name.
14098         * groff.c, Makefile: Rename device.h to config.h.
14099         * groff.c: Use library device variable.
14100         * eqn/main.c: Use library device variable.
14101         * eqn/Makefile: No need to handle DEVICE.
14103         * lib/searchpath.[ch]: New files.
14104         * lib/Makefile: Handle searchpath.[ch].
14105         * troff/input.c (open_file, init_dirs): Deleted.
14106         (macro_dirs): Deleted.
14107         (open_mac_file, macro_source): Use class search_path.
14108         (add_string, struct string_list): Move definition.
14109         (main): Change -M option to use macro_path. Delete call to
14110         init_dirs().
14111         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14112         Rewrite to use class search_path.
14113         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14114         * lib/Makefile: fontfile.c depends on searchpath.h.
14115         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14116         MACROPATH.
14117         * lib/macropath.[ch]: New files.
14118         * troff/Makefile: No need to handle MACROPATH.
14120         * troff/input.c: Delete DUMP code.
14121         * lib/fontfile.c, lib/font.h: Delete
14122         font::forget_command_line_font_dirs.
14124         * troff/input.c (push_token): New function.
14125         (handle_first_page_transition): Use push_token().
14126         (process_input_stack): Change handling of a space at the beginning
14127         of the line.
14129 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14131         * troff/input.c (font_dirs): Delete unused variable.
14133         * eqn/lex.c (do_set): Correct error messages.
14135 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14137         * troff/input.c (do_define_string): Allow the string name to be
14138         followed immediately by a tab.
14139         (define_character): Likewise.
14141 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14143         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14144         be negative.
14146         * troff/input.c (input_iterator::is_file): New virtual function.
14147         (file_iterator::is_file): New function.
14148         (input_stack::end_file): New function.
14149         (input_stack::next_file): Handle the situation where there is no
14150         file on the input stack correctly.  Avoid making two passes over
14151         the input stack.
14152         (next_file): Make the filename optional; in this case call
14153         input_stack::end_file().
14155 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14157         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14158         produce a real _ charater when the current font is CW and _
14159         otherwise.
14161         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14162         expression to work around gcc 2.2 bug.
14164 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14166         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14168         * troff/env.c (environment::add_padding): New function.
14169         (environment::add_char): Use add_padding().
14170         (environment::space): Likewise.
14171         (environment::wrap_up_field): Add some padding if there is none
14172         and there's no current tab.
14173         * troff/env.h: Declare environment::add_padding.
14175 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14177         * pic/pic.y: undef fmod and rand before declaring them.
14179 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14181         * troff/input.c (main): If the DESC file specifies a font name of
14182         0, then leave the corresponding font position empty.
14184         * nroff.sh: New file.
14185         * Makefile (install.nobin): Install nroff.sh.
14187         * tty/devlatin1/R.proto: Add ao as synonym for de.
14188         * tty/tmac.tty-char: Define ao as o.
14190         * tty/dev{ascii,latin1}/R.proto: Add aq.
14191         * tty/tmac.tty-char: Delete definition of aq.
14193 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14195         * troff/input.c (init_charset_table): Don't translate 0240.
14196         * ps/tmac.ps: Translate char160 to space.
14197         * dvi/tmac.dvi: Likewise.
14198         * tty/tmac.tty: Likewise.
14200 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14202         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14204         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14205         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14206         \(oe, \(r?, \(r!.
14208         * tty/tmac.tty-char: Add \(ah.
14210         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14211         No need to define \(FM and \(!/. Conditionalize all character
14212         definitions.
14214         * ps/devps/lgreekmap: Add +h, +f, +p.
14216         * ps/tmac.psnew: New file.
14217         * ps/Makefile: Install tmac.psnew.
14219         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14220         character definitions in compatible mode.
14222         * troff/input.c (remove_character): New function.
14223         (init_input_requests): Bind remove_character to "rchar".
14225         * ps/tmac.psold: New file.
14226         * ps/Makefile: Install tmac.psold.
14227         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14228         characters into tmac.psold.  Make these definitions unconditional.
14230         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14232         * ps/tmac.ps: Don't define \('c and \('C.
14234         * ps/devps/textmap: Move Greek characters to...
14235         * ps/devps/symbolchars:
14237 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14239         * ps/devps/text.enc: Add quotesingle.
14240         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14241         * tty/tmac.tty-char: Likewise.
14242         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14243         * dvi/devdvi/texi.map: Add Fn.
14244         * dvi/devdvi/msam.map: Add lz.
14245         * dvi/tmac.dvi: Handle Bq, bq, aq.
14247         * pic/lex.c (get_token): Recognize 'th.
14248         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14250 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14252         * ps/devps/textmap: Move di, mu, +- to...
14253         * ps/devps/symbolchars:
14255         * macros/tmac.s (@XS): Don't call par@reset or fi.
14256         (XA): Call LP. Turn off adjustment. Reduce line length.
14258         * macros/tmac.s: Initially alias XS to LP.
14259         (XS): Rename to @XS.
14260         (cov*ab-init): Alias XS to @XS.
14262 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14264         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14265         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14266         (token::is_size, token::changes_env): Deleted.
14267         * troff/number.c (parse_term): No need to process \s explicitly.
14268         Call tok.next() only after scale indicator has been processed.
14269         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14270         \f etc explicitly.
14271         (token::next): Handle \s, \f, \S, \H immediately rather than
14272         returning them as tokens.
14273         (token::operator==, token::description, token::add_to_node_list,
14274         token::process): Remove handling of deleted tokens.
14276         * troff/env.c (environment::add_char): When adding padding
14277         indicator character, call start_line() if necessary.
14279 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14281         * ps/devps/afmtodit: Don't output 0 kerns.
14283         * ps/devps/afmtodit: Remove directory from name of encoding in
14284         font description file.
14286         * ps/devps/afmtodit: Improve error messages.
14288         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14290         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14291         * ps/devps/FontMakefile: Deleted.
14292         * ps/devps/afmname: New file.
14294         * ps/devps/symbol.sed: New file.
14295         * ps/devps/symbol.diff: Deleted.
14296         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14297         Generate zapfdr.afm from zapfd.afm.
14299         * tty/tmac.tty (tty-char): Prefix definition with ".
14301         * macros/tmac.an (TP): Don't start a diversion if one has already
14302         been started.
14304         * tty/tmac.tty-char: Add Latin-1 characters.
14306         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14308 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14310         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14311         Move declaration of struct horizontal_span.
14313         * tbl/table.c (table::table): Initialize span_list.
14314         (table::~table): Delete span_list.
14316         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14318         * ps/devps/Makefile: Avoid dependency on GNU make.
14320         * ps/tmac.ps: Check that character does not already exist before
14321         defining it.
14323         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14324         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14325         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14326         files.
14328         * tty/tmac.tty-char: New file.
14329         * tty/Makefile: Install tmac.tty-char.
14330         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14331         tmac.tty-char.
14333         * tty/tmac.tty: Fix definition of \(34.
14335         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14336         bracket-drawing characters onto |. Add *o.
14338         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14339         only if current_field.
14341         * troff/dictionary.c (dictionary::lookup): Free old_table after
14342         rehashing. 
14344 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14346         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14347         whose glyphs are identical to glyphs of some Roman character.
14349         * tty/devlatin1/R.proto (bu): Deleted.
14350         * tty/devascii/R.proto (bu): Deleted.
14351         * tty/tmac.tty: Add definition of \(bu.
14353         * eqn/main.c (do_file): Pass FILE as argument.
14354         (main): Automatically load eqnchar.  New options -F and -n.
14355         Pass do_file an opened FILE.
14356         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14357         No need to include font.h.
14358         * groff.sh: Likewise.  Don't need to use - for standard input.
14359         Prefix files with -- if first file starts with -.
14361         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14363         * troff/env.c (environment::possibly_break_line): Don't set line
14364         to 0 across call to output_line().  Don't call output_line() until
14365         after discarding nodes after break.
14367 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14369         * request.h (macro::empty): Declare it.
14370         * input.c (macro::empty): New method.
14371         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14372         macro is empty.
14374 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14376         * troff/env.c (environment::start_field): Decrement space_total
14377         when a space is frozen.
14379 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14381         * macros/tmac.an (R): Delete macro.
14383         * troff/input.c (get_copy, token::next): Support \# (like \" but
14384         newline is ignored).
14386         * troff/input.c (token::next): Fix error message in 'Y' case.
14388 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14390         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14391         a delimiter name.
14393 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14395         * c++test.c: Include <osfcn.h>.
14397         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14398         <errno.h> doesn't.
14400 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14402         * tbl/table.c (table::divide_span): Don't count column separation
14403         if expand was specified.
14405         * tbl/main.c (process_format): Don't ignore width specs in
14406         continued format.  Give warning for changing equal widths or
14407         column separation in continued format.
14408         (process_data): Set column separation, minimum width, equal
14409         columns at end of table.
14411 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14413         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14414         node::add_discretionary_hyphen): Use soft_hyphen_char.
14415         (set_soft_hyphen_char): New function.
14416         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14418         * Makefile (c++tested): Give more helpful message if test fails.
14420 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14422         * troff/input.c (init_charset_table): Translate 0240 to
14423         an unbreakable space.
14425         * troff/token.h (token::hyphen_indicator): New function.
14426         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14427         translation.
14428         * troff/input.c (translate): Allow translation to \%.
14429         * troff/node.c (node::add_char): Handle
14430         TRANSLATE_HYPHEN_INDICATOR.     
14431         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14433         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14434         for \(hy.
14436         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14438 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14440         * groff.c (run_commands): If the last command gets a SIGPIPE send
14441         a SIGPIPE to all children than haven't yet terminated.  When
14442         command terminates, set pid field to -1.
14444 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14446         * groff.c (main): Pass an appropriate -filename option to gxditview.
14448 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14450         * Makefile.bd (install): Remove existing program before copying.
14452         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14453         programs which have Unix counterparts to be installed with
14454         user-specified prefix.
14456         * troff/input.c (exit_troff): Don't check if exit_started.
14457         (exit_request): Don't call exit_troff if exit_started.
14459         * Makefile.bd (install.mm): Rename to install.dwbmm.
14461 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14463         * driver/input.c (do_file): Add missing break for '#' case.
14465 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14467         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14468         then add the boundaries back.
14470         * troff/input.c (exit_troff): Return immediately if already
14471         exiting.
14473         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14474         end macro.
14475         (pg*end-page): If the text has ended and there are no more
14476         footnotes or keeps, exit.
14478         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14480         * troff/input.c (init_charset_table): Make \(rq transparent by
14481         default.
14483         * macros/tmac.an: Define lq and rq strings.
14485         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14487 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14489         * troff/env.c (environment::final_break): New function.
14490         (environment::newline): Set prev_line_interrupted to 2 if
14491         exit_started.
14492         * troff/env.h: Declare environment::final_break.
14493         * troff/input.c (exit_troff): Call environment::final_break()
14494         instead of environment::do_break().
14496         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14497         doesn't already exist.
14498         * macros/man.local: New file.
14499         * macros/tmac.an: Load man.local.
14500         * macros/man.ultrix: New file.
14502 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14504         * troff/input.c (exit_groff): Rename to...
14505         (exit_troff): New function.
14507         * troff/div.c (exit_started, done_end_macro,
14508         seen_last_page_ejector): New global variables.
14509         (began_page_in_end_macro): New static variable.
14510         (exit_flag): Deleted.
14511         (top_level_diversion::top_level_diversion): Initialize
14512         last_page_count.
14513         (top_level_diversion): More elaborate test for whether
14514         cleanup_and_exit() should be called.
14515         Set began_page_in_end_macro if the end macro isn't yet finished.
14516         * troff/div.h (top_level_diversion::last_page_count): New data
14517         member.
14518         (top_level_diversion::set_last_page): New function.
14519         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14520         * troff/env.c (do_break): Zero prev_line_interrupted.
14521         * troff/input.c (exit_flag): Delete declaration.
14522         (LAST_PAGE_EJECTOR): New magic cookie.
14523         (token::next): Handle LAST_PAGE_EJECTOR.
14524         (exit_groff): Set exit_started and done_end_macro instead of
14525         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14526         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14527         another ejection after setting seen_last_page_ejector.
14529 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14531         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14533         * macros/tmac.e (TH): Make sure there's room for the initial
14534         header.
14536         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14537         Set FVS in points rather than units.
14539 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14541         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14542         position of empty slots.
14544 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14546         * ps/devps/S: Fix height and depth of parenrightex.
14547         * ps/devps/symbol.diff: Regenerate.
14549 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14551         * tmac.e (u): Do underlining as in -mgs.
14553 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14555         * tty/tty.c (tty_printer::end_page): If overstriking is
14556         suppressed, still turn overstruck horizontal and vertical lines
14557         into +.
14559         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14560         2.1.
14562         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14564 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14566         * Version 1.05 released.
14568 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14570         * tty/tty.c: Instead of keeping an array of glyphs and then
14571         sorting it, keep a ordered linked list of glyphs for each line.
14573         * driver/driver.h: Include stddef.h.
14575         * tty/tty.c (compare_glyph):
14576         * refer/refer.c (rcompare):
14577         * troff/env.c (compare_ranges): Arguments of qsort comparison
14578         function should be const void *.
14580         * troff/number.c (parse_term):
14581         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14582         switch statement.
14584         * refer/label.y (consider_authors): Don't access variables
14585         constructed under a condition outside that condition: put braces
14586         round for statement containing declaration; redeclare use of same
14587         variable later.
14589         * pic/pic.y (text_expr): Delete production that allows
14590         parenthesised text_expr.
14591         (expr): Allow a conditional_expr to appear in parentheses.
14592         (conditional_expr): Rename to any_expr.
14594         * mm: Install new version 1.01 from jh.
14596         * lib/font.c (font::get_width): Cache scaled widths.
14597         (font::font): Initialize widths_cache.
14598         (font::~font): Destroy widths_cache.
14599         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14601 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14603         * c++test.c, c++test.ref: New files.
14604         * Makefile: Check that the C++ compiler works.
14606         * ps/tmac.pspic (PSPIC): Do a break.
14608         * ps/tmac.ps: Move definition of PSPIC into...
14609         * ps/tmac.pspic: New file.
14610         (PSPIC): Draw box around picture, but make it invisible to grops.
14611         * ps/tmac.ps: Load tmac.pspic.
14612         * ps/Makefile: Install tmac.pspic.
14614 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14616         * lib/font.c (scale_round): If n is negative,
14617         subtract .5 before truncating floating point result.
14619         * lib/fontfile.c: Include <errno.h>.
14621 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14623         * driver/input.c (get_char): Inline. Don't update current_lineno.
14624         Change callers to up date current_lineno if necessary.
14625         Use get_char() instead of getc(current_file).
14627 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14629         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14631 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14633         * tty/tty.c (tmac.tty): Define \(rg as (R).
14635 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14637         * lib/lib.h: New define a_delete.
14638         * Use a_delete instead of delete when deleting an array of objects
14639         without destructors.
14641         * lib/lib.h: Rename adelete to ad_delete.
14642         * Change uses of adelete.
14644 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14646         * eqn/eqn.y: Include lib.h.
14648         * troff/node.c (grow_font_table): Delete old_font_table.
14650         * mm: Install new version from jh.
14652 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14654         * tbl/table.h (format_type): Make global instead of local to class
14655         entry_format.  Prefix enumerators with FORMAT_.
14656         * tbl/table.c, tbl/main.c: Corresponding changes.
14657         * refer/token.h (token_type): Make global.  Prefix enumerators
14658         with TOKEN_.
14659         * refer/token.[ch]: Corresponding changes.
14660         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14662         * troff/div.c (node::set_vertical_size): Don't name argument.
14664 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14666         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14667         * lib/lib.h: Define adelete accordingly.
14668         * pic/object.c (graphic_object::graphic_object):
14669         * tbl/main.c (format::~format):
14670         * tbl/table.c (table::~table):
14671         * refer/ref.c (reference::~reference, reference::merge,
14672         reference::insert_field, reference::delete_field): Use adelete.
14674         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14675         * refer/token.h:
14676         * tbl/table.h: Corresponding changes.
14678         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14679         Ensure total_angle is positive.
14681 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14683         * refer/ref.c (reference::merge, reference::insert_field,
14684         reference::delete_field): Avoid delete[0].
14686         * refer/token.c (init_special_chars): Move calls to cmupper
14687         outside calls to init_two_char_letter to work around bug in gcc
14688         2.0.
14690 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14692         * lib/new.c (operator new): Use __builtin_new for g++.
14694         * pic/object.c (graphic_object::~graphic_object):  Don't use
14695         delete [] on 0.
14697         * pic/object.c (output::compute_scale): Initialize max_width and
14698         max_height.
14700 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14702         * troff/input.c (write_request): Call fflush.
14704         * troff/node.h (class composite_node): Move declaration to node.c
14705         * troff/input.c (charinfo_to_node): Rename to ...
14706         (charinfo_to_node_list): Return node list rather than composite
14707         node.
14708         * troff/node.c (make_composite_node): New function.
14709         (make_node, add_char): Call make_composite_node instead of
14710         charinfo_to_node.
14711         (class composite_node): Add a tfont * member.  Delete font_size
14712         member.
14713         (composite_node::composite_node, composite_node::copy,
14714         composite_node::size): Corresponding changes.
14715         (composite_node::tprint): Provide constant spacing, emboldening
14716         and track kerning as specified in tfont.
14717         (composite_node::width): Change width calculation accordingly.
14718         * troff/env.h (environment::composite): New member.
14719         (environment::is_composite, environment::set_composite): New
14720         functions.
14721         * troff/env.c (environment::environment): Initialize composite.
14722         * troff/input.c (charinfo_to_node): Call
14723         environment::set_composite.
14724         * troff/node.c (make_composite_node, make_glyph_node): Use the
14725         plain version of the tfont if the environment is composite.
14727         * troff/node.c (font_info::get_space_width): Additional argument
14728         giving space_size.  Handle constant space correctly. Scale by
14729         space_size unless constant spaced.
14730         (env_sentence_space_width): New function.
14731         * troff/node.h: Declare it.
14732         * troff/env.h (environment::get_space_size,
14733         environment::get_sentence_space_size,
14734         environment::get_narrow_space_width,
14735         environment::get_half_narrow_space_width): Make inline.
14736         (environment::get_space_width): Make inline.  Just call
14737         env_space_width.
14738         * troff/env.c: Delete definitions for funtions made inline.
14739         (environment::space_newline, environment::space): Use
14740         env_sentence_space_width(). Don't scale by space_size.
14741         * troff/node.h: Move declarations of env*space_width() functions
14742         into env.h.
14744 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14746         * macros/tmac.s (PS): Don't try to set negative indent.
14748 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14750         * pic/pic.y: Fix min function.
14752 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14754         * man/mdate.sh: Clear LANGUAGE.
14756 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14758         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14759         * pic/lex.c: New COMMAND keyword.
14760         * pic/pic.y (print_args, print_arg): New rules.
14761         (placeless_element): Use print_args for PRINT.
14762         New COMMAND element.
14764 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14766         * troff/input.c (terminal): Handle missing argument correctly.
14768         * pic/pic.y (text_expr): New rule.
14770         * pic/pic.y: Implement := operator.
14772 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14774         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14775         mdoc.
14777 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14779         * ps/devps/dingbatsrmap: Include this in the distribution.
14781         * macros/tmac.doc: Replace with new version from 2nd Networking
14782         Release. Fix loading of doc-* files.
14783         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14784         * macros/tmac.doc.old: New file.  Apply fixes that had been
14785         applied to old tmac.doc.
14786         * macros/tmac.andoc: Check that we're running under groff.
14787         * macros/Makefile: Rework.
14789 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14791         * tbl/table.h (format_type): 
14792         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14793         typedef to make these types visible at file scope.
14794         * Makefile: Add NESTED_TYPES configuration option.
14796         * troff/div.c (mark): At the top level use the value of
14797         nl_reg_contents rather than the current vertical position.
14799 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14801         * tty/tty.c: Implement \D for horizontal or vertical lines.
14802         (tty_printer::set_char): Use vec_used+2 as serial number.
14803         Don't allow size of vector to exceed USHRT_MAX-2.
14804         Split off part into...
14805         (tty_printer::add_char): New function.
14806         (tty_printer::draw): New function.
14807         (compare_glyph): Handle equal serial numbers.
14808         (tty_printer::end_page): Handle overstruck characters from \D.
14809         (main, usage): Implement -d option.
14811 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14813         * tbl/main.c (process_format):
14814         * eqn/text.c (split_text):
14815         * troff/input.c (token::next): Use inner block for declarations
14816         with initializers in switch statement.
14818 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14820         * pic/common.c (common_output::dash_line): Cope with zero-length
14821         lines.
14823 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14825         * Version 1.04 released.
14827 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14829         * macros/tmac.an (TH): Define a macro an-init to define variables
14830         based on command line arguments.
14831         (an-header): Call it.
14833 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14835         * Makefile (install.mm): Rename to install.dwbmm.
14837         * Makefile: Integrate mm.
14838         * mm: New directory.
14840 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14842         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14843         <sys/types.h>.
14845         * pic/troff.c (troff_output::simple_spline,
14846         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14847         shadowing parameter.
14849         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14851         * lib/ptable.h: Add explicit casts when converting from unsigned
14852         long to unsigned.
14854         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14855         * dvi/devdvi/Makefile: Install SA, SB.
14857         * refer/indxbib.c: Add declaration of mktemp.
14859         * refer/lookbib.c: Add declaration of isatty.
14861 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14863         * pic/lex.c (interpolate_macro_with_args):  While collecting
14864         arguments, keep track of whether we're in a string.
14866 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14868         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14869         down with \v, so as to avoid problems with top of page trap
14870         setting no space mode.
14872 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14874         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14876 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14878         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14879         Improve error message.
14881 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14883         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14884         printf("%03o");
14886 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14888         * groff.c (possible_command::execp): Always use _exit() after a
14889         failed exec.
14891         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14892         NO_SYS_WAIT_H   configuration options.
14893         * groff.c: Use these options.  Use POSIX-style macros to extract
14894         fields from the status returned by wait().
14896 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14898         * tbl/table.c (table::compute_separation_factor): Allow the
14899         separation factor to drop to 0.
14901 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14903         * refer/search.c: Include <errno.h>.
14905 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14907         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14909         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14910         C++. 
14912         * pic/lex.c (input_stack::bol): Move definition out of class body.
14914         * pic/main.c: On MSDOS munge argv[0].
14916         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14918         * lib/ptable.c (hash_string): Use unsigned long rather than
14919         unsigned.
14920         (next_ptable_size): Use unsigned rather than int.  Give an error
14921         message if we've hit the largest table size.
14922         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14923         table size.
14925         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14926         flags as const unisgned long rather than as enums.
14928         * pic/output.c: Deleted.
14930         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14932         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14933         Add additional argument.
14934         (line_entry::note_double_vrule_on_{left,right}): Set value of
14935         douvle_vrule_on_{right,left} flag according to argument.
14936         (simple_line_entry::simple_print,
14937         simple_line_entry::double_line_print): If adjacent to double vrule
14938         on a corner extend rather than shorten the rule by half the double
14939         vrule sep.
14941         * troff/number.c (parse_term): In checking for overflow, handle the
14942         case where the current horizontal position is negative.
14944 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14946         * pic/object.c (draw_arrow): Check for object having zero length.
14948 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14950         * eqn/main.c (do_file): Split off inline equation handling into...
14951         (inline_equation): New function.  Search for starting delimiter
14952         using...
14953         (delim_search): New function. Don't recognize a delimiter that
14954         occurs in the name of an escape sequence, number register, string
14955         etc.
14957 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14959         * eqn/delim.c (delim_box::compute_metrics): Don't call
14960         define_extensible_string if left is 0.
14961         (delim_box::output):  Don't print the left delimiter if left is 0.
14962         (delim_box::debug_print): Check for left == 0 before calling printf.
14964 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14966         * troff/Makefile (majorminor.c): Include only digits in
14967         minor_version.
14969 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14971         * refer/dirnamemax.c: new file.
14972         * refer/genlimits.c: Deleted.
14973         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14974         Don't check path length.
14975         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14976         * Makefile: Add PATHCONF_MISSING option.
14978         * refer/indxbib.c (get_cwd): New function.
14979         (main): Use get_cwd().
14980         * lib/getcwd.c: New file.
14981         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14982         GETCWD in SUBFLAGS.
14983         * lib/Makefile: Compile getcwd.o.
14985         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14986         userdict.
14988         * refer/indxbib.c (main): Check success of mktemp.
14990         * lib/tmpfile.c: New file.
14991         * lib/Makefile: Add tmpfile.c.
14992         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14993         * ps/ps.h: Delete declaration of mktemp().
14994         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14995         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14996         * driver/driver.h: No need now to include errno.h.
14998         * everywhere: Set errno to 0 before calling fopen().
15000         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15001         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15002         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15004 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15006         * troff/env.h (translate_space_to_dummy): Declare it.
15007         * troff/env.c (environment::space_newline, environment::space):
15008         If translate_space_to_dummy is set then make the width of spaces 0.
15009         * troff/input.c (translate): If the second character of a
15010         translation is a space, translate to unbreakable space.  If the
15011         first character is a space, set or clear translate_space_to_dummy
15012         according to whether the second character is \&.  Weird!
15014 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15016         * groff.c (run_commands): Don't use non-zero exit code because a
15017         command gets SIGPIPE.
15019         * groff.c, groff.sh: Use -mXps with -TXps.
15021         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15022         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15023         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15024         (ps_printer::special): New specials invis and endinvis.
15025         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15026         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15027         (ps_printer::end_page): Check that invis_count == 0.
15028         (ps_printer::invis_count): New member.
15029         (ps_printer::ps_printer): Initialize invis_count to 0.
15031         * troff/env.c (environment::hyphenate_line): Hyphenation
15032         indicator at beginning of word inhibits splitting after -, \(em
15033         etc.
15035         * pic/pic.y (element): Allow another element to follow } without
15036         any intervening separator.
15038 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15040         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15042 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15044         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15045         declaration of wait() in header files.
15046         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15048         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15050         * lib/lib.h: Declare return type of strerror as char *.
15052         * man/Makefile: Add g flag to sed substitutions.
15053         * Makefile (shgroff, bindist): Likewise.
15055 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15057         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15058         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15059         userdict.
15061 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15063         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15064         userdict.
15066 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15068         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15069         group.
15071 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15073         * troff/input.c (define_number_reg):  If currently undefined,
15074         don't define it if the argument is an invalid expression.
15076         * Makefile: Ignore return value of `if' commands without `else'
15077         parts.
15079         * Makefile: Split up CPPDEFINES into a series of separate
15080         configuration options.
15082         * troff/input.c (init_registers): Use time_t instead of long
15083         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15084         than passing pointer.
15085         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15087         * lib/Makefile (fontpath.h): Use gendef.
15089 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15091         * troff/input.c (input_iterator::shift): Delete argument name.
15092         * troff/node.c (suppress_output_file::really_begin_page,
15093         suppress_output_file::really_transparent_char, node::ascii_print,
15094         node::tprint): Delete names of unused arguments.
15096 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15098         * refer/label.y (string):  Pass $4 to command_error.
15100 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15102         * Version 1.03 released.
15104 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15106         * Makefile: Pass definition of SHELL in SUBFLAGS.
15108         * gendef: New file.
15109         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15110         ps/Makefile: Use gendef to construct header files that are
15111         constructed from the Makefile.
15113         * macros/Makefile: make all should build stripped version of tmac.e.
15115         * refer/Makefile (clean): Remove y.output.
15117 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15119         * ps/pfbtops.c (main): Add -v option which prints out a version
15120         number.
15121         * ps/Makefile (pfbtops): Link with libgroff.a.
15123 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15125         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15126         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15128         * refer/lkbib.c (main): Always terminate reference with blank
15129         line.
15130         * refer/lookbib.c (main): Likewise.
15132         * refer/linear.c (file_buffer::load): Check that the file is not a
15133         binary file.
15135         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15136         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15137         Delete second inclusion of <sys/param.h>.
15139 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15141         * troff/token.h (token::special): Deleted.
15143         * tbl/main.c (process_format): Rework so that opt->tab_char is
15144         recognized only when appropriate.
15146         * ps/Makefile (clean): Remove pfbtops.
15148 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15150         * lib/font.c (text_file::next): Don't return if we have got a
15151         blank line.
15153 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15155         * refer/refer.c (store_reference): Get hash code from old_table[i]
15156         when rehashing the table.
15158 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15160         * eqn/box.c (box::top_level): Save size and prev size using \R and
15161         restore it afterwards. Set the size to the size at the beginning
15162         of the line.
15163         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15164         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15166         * refer/Makefile (limits.h): Use ./genlimits.
15168 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15170         * refer/index.c: Delete declarations of stat() and fstat().
15172 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15174         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15176 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15178         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15180 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15182         * troff/input.c (token::get_char): Handle \e.
15184         * refer/linear.c: Delete declarations of fstat() and stat().
15186 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15188         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15189         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15191 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15193         * troff/input.c (do_define_macro): Improve error handling for end
15194         of file while defining macro.
15196 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15198         * eqn/box.h: Fix declaration of set_gsize.
15199         * eqn/box.c (set_gsize): Make argument const char *.
15200         (gsize): Declare as char *.
15201         * eqn/main.c (main): Don't convert gsize to int.
15202         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15204         * Version 1.02 released.
15206 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15208         * macros/tmac.andoc: New file.
15209         * macros/Makefile: Install tmac.andoc.
15211         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15212         operator new and delete on OP_DELETE_BROKEN not being defined.
15213         * Makefile: Mention OP_DELETE_BROKEN.
15215 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15217         * Makefile (bindist): Pass SUBFLAGS.
15219 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15221         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15223         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15224         parameter.
15226         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15228         * ps/ps.h, ps/psrm.c: Make comment_table and
15229         header_comment_table local to resource_manager::process_file.
15231         * groff.sh: With -TXps pass -printCommand option to gxditview.
15233         * groff.c (possible_command::print): Implement using
15234         append_arg_to_string.
15236         * xditview: Merge in new implementation with own ChangeLog.
15238 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15240         * groff.c (main): Implement PRINT_OPTION.
15241         (append_arg_to_string): New command.
15242         (device_table): Set PRINT_OPTION flag for Xps.
15244 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15246         * troff/groff.h: Rename to troff.h.
15248         * pic/lex.c (lookup_keyword, docmp): New functions.
15249         (get_token): Use new lookup_keyword.
15250         Don't include key.h.
15251         * pic/key.[ch], pic/pic.gperf: Deleted.
15252         * pic/Makefile: Remove gperf stuff.
15254         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15255         into output.h.
15256         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15258         * troff/Makefile, troff/node.c: Move definition of
15259         STORE_WIDTH into node.c.
15261         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15263 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15265         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15266         dvi/devdvi/texb.map: Add lq and rq.
15267         dvi/devdvi: Regenerate fonts.
15268         * ps/devps/textmap: Add lq and rq.
15269         * ps/devps: Regenerate fonts.
15270         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15271         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15273         * pic/object.c (position_rectangle): When checking radius
15274         cope with possiblity that width or height is negative.
15275         (box_object::box_object): Have separate xrad and yrad with
15276         signs matching signs of dim components.
15277         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15278         (box_object::print): With rounded boxes use absolute values
15279         for dim and rad arguments.
15281         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15282         in fontpath.h.
15284         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15286         * various files: Add explicit destructors to keep Saber CC +d
15287         happy.
15289 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15291         * eqn/box.c (box::top_level): Restore fonts correctly after
15292         font changes in line containing inline equation.  Also
15293         restore previous font as well as current font.
15294         * eqn/pbox.h: Define necessary string and register names.
15296         * troff/input.c (token::next): Case 'R' calls do_register.
15297         (do_register): New function.
15299 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15301         * groff.c, groff.sh: Support Xps device.  Allow each device
15302         to have a pseudo_name and a real_name.
15304         * groff.c (run_commands): Don't print `Broken pipe' messages.
15306         * ps/pfbtops.c: New file.
15307         * ps/Makefile: Add pfbtops.
15309         * troff/number.c (parse_term): Improved error message.
15311 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15313         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15315         * Makefile: Integrate refer.
15316         * refer: New directory.
15317         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15318         man/lkbib.man: New files.
15319         * man/Makefile: Support refer man pages.
15321         * lib/lib.h: Declare is_prime.
15322         * lib/prime.c: New file.
15324         * troff/input.c (macro_source): New function.
15325         (init_input_requests): Bind "mso" to macro_source.
15327         * troff/env.c (environment::possibly_break_line): Maintain
15328         pointer to pointer to node to be split in ndp so as to avoid
15329         using address of freed node.
15331         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15332         pointer to first node to be hyphenated in startp so as to
15333         avoid using address of freed node.
15335         * troff/env.c (class trie, class hyphen_trie): Make the
15336         elements of the trie be of type char not unsigned char.
15337         Declare arguments to be const char* instead of unsigned char *.
15338         
15339         * troff/env.c (hyphenate): Initialize hbuf[0].
15341         * troff/input.c (set_string): Declare p to be char * and cast
15342         *p to unsigned char when necessary.
15344         * troff/input.c (do_define_macro): Declare s to be const
15345         char*. Cast element to unisgned char when necessary, Declare
15346         d to be an int.  Handle EOF better.
15348         * troff/Makefile, troff/input.c: Different scheme for passing
15349         definitions of MACROPATH, HYPHENFILE and DEVICE.
15351 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15353         * tty/devascii/R.proto: Delete entry for em.
15354         * tty/devlatin1/R.proto: Likewise.
15356 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15358         * troff/input.c (translate): Stop when we get a space. Treat eof
15359         like newline.
15361         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15363 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15365         * tbl/main.c (process_format): A font name following a `f'
15366         modifier that starts with a digit can be only one character long.
15367         Also deal with EOF on the second character of the font name.
15369 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15371         * troff/input.c (token::next): Turn \~ into an
15372         unbreakable_space_node.
15373         * troff/node.c (unbreakable_space_node): New class.
15374         * troff/node.h: Declare it.
15376 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15378         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15379         it's >= 0, before outputting it as a single byte.
15381 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15383         * lib/font.c: Make font_char_metric::code an int.
15384         (font::get_code): Change return type to int.
15385         (font::load): Allow code to be arbitrary integer.
15386         * lib/font.h (font::get_code): Change return type to int.
15387         (font::number_to_index): Change argument type to int.
15388         * troff/input.c (token::next):  In case 'N', allow any value.
15389         Store value in token::val.
15390         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15391         (token::get_char, token::add_to_node_list, token::process): Get
15392         number from val.
15393         (charinfo::set_number): Change argument to int.
15394         (charinfo::get_number):  Require that NUMBERED flag be set.
15395         (get_charinfo_by_number): Store numbered characters not between 0
15396         and 255 in a dictionary.
15397         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15398         to int.
15399         (charinfo::number): Change type to int.
15400         (charinfo::set_number): Change type of set_number to int.
15401         * troff/node.c (troff_output_file::put_char_width,
15402         troff_output_file::put_char): Test whether character is numbered
15403         using charinfo::numbered().
15404         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15405         values of num.
15406         * lib/nametoindex.c: New implementation to cope with arbitrary
15407         number characters.
15409         * troff/input.c (token::operator==): Test val for
15410         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15411         TOKEN_SIZE.
15413         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15414         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15416 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15418         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15419         variable.
15421         * all Makefiles: rm targets of cp and >.
15423         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15424         it.
15426         * eqn/lex.c (def_table): Add dollar.
15428 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15430         * troff/input.c (do_width): Push back newline before closing delim
15431         like do_bracket.
15433 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15435         * groff.c (possible_command::prepend_arg): New function.
15436         (main): Prepend device -m option.
15437         * groff.sh: Put device -m options before command-line options.
15439 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15441         * macros/tmac.an (IP): Quote argument to TP.
15443         * ps/ps.c (main): New option -b, which sets...
15444         (broken_flags): New variable.
15445         (ps_printer::~ps_printer): Incorporate the setup section in the
15446         prolog if (broken_flags & NO_SETUP_SECTION).
15447         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15448         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15449         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15450         ps_printer::print_needed_font_comment,
15451         ps_printer::print_supplied_font_comment,
15452         ps_printer::print_include_font_comments,
15453         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15454         ps_printer::read_download_file, read_document_fonts, add_font,
15455         skip_line, parse_fonts_arg, document_font::document_font,
15456         document_font::~document_font, document_font::download,
15457         ps_output::include_file):  Deleted.
15458         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15459         rather than %!PS-Adobe-2.0.  Make calls to
15460         resource_manager::need_font for each font that we used. Replace
15461         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15462         print_supplied_font_comment, print_needed_font_comment by call to
15463         resource_manager::print_header_comments. Output %%Orientation
15464         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15465         Don't output the prolog directly.  Instead call
15466         resource_manager::output_prolog.  Only define #copies when ncopies
15467         > 1.  Delete calls to print_include_font_comments  and
15468         download_fonts.  Add call to resource_manager::document_setup.
15469         (ps_printer::do_file): Call resource_manager::import_file instead
15470         of including it ourselves.
15471         (ps_printer::do_import): Likewise.  Also don't call
15472         merge_import_fonts. Push userdict on the dictionary stack before
15473         and pop it afterwards.
15474         Move declaration of ps_output into ps.h.
15475         * ps/psrm.c: New file implementing resource_manager class.
15476         * ps/ps.h: New file declaring ps_output and resource_manager
15477         classes.
15478         * ps/devps/zapfdr.ps:
15479         * ps/devps/symbolsl.ps:
15480         * ps/devps/prologue:  Use 3.0 conventions.
15481         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15482         Add default definition of BROKEN_SPOOLER_FLAGS.
15483         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15484         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15486 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15488         * etc/grog.pl: New file.
15489         * Makefile (GROG): New variable.
15490         Add GROG to SUBFLAGS.
15491         * etc/Makefile (GROG): New variable.
15492         (install.nobin): Install $(GROG) rather than grog.sh.
15494 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15496         * eqn/special.c (special_box::compute_metrics): Make the input and
15497         output strings the same.  Get the new height and depth from the
15498         predefined height and depth registers.  Also make subscript kern
15499         and skew available.
15500         (special_box::compute_subscript_kern, special_box::compute_skew):
15501         New functions.
15503         * eqn/box.c (pointer_box::compute_skew,
15504         simple_box::compute_metrics, box::top_level)
15505         * eqn/text.c (prime_box::compute_metrics,
15506         prime_box::comput_subscript_kern)
15507         * eqn/limit.c (limit_box::compute_metrics):
15508         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15509         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15510         negative numbers in `nr' requests with a leading 0.
15512 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15514         * eqn/special.c: New file.
15515         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15516         Add new rule for simple.
15517         * eqn/lex.c (token_table): Add SPECIAL.
15518         * eqn/box.h: Declare make_special_box.
15519         * eqn/Makefile: Add special.[co].
15521 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15523         * ps/devps/prologue: Possibly set packing to true while defining.
15524         Create grops dictionary here.  Initialize local variables before
15525         defining procedures.
15526         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15527         the dictionary stack. Set strokeadjust and overprint to false if
15528         the relevant operators are defined.
15529         (PEND): New procedure.
15530         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15531         prologue.  Do everything else in the setup section.
15532         (ps_printer::do_import): Just call PBEGIN and PEND around the
15533         picture. Also push userdict before, and pop it afterwards.
15535 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15537         * troff/node.c (bracket_node::tprint): Brackets were being printed
15538         1m too low.
15540         * macros/tmac.an (SH, SS): Set fill mode.
15542 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15544         * troff/div.c (top_level_diversion::begin_page): Set
15545         high_water_mark to 0.
15547 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15549         * man/mdate.sh: New file.
15550         * man/mdate.c: Deleted.
15551         * man/Makefile: Use mdate.sh instead of mdate.
15552         (mdate): Deleted.
15554         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15556 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15558         * man/mdate.c: New file.
15559         * man/*.man: Replace modification date by @MDATE@.
15560         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15561         (mdate): New target.
15563         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15564         Remove illegal input characters.
15566 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15568         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15570 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15572         * troff/div.c (begin_page): Change behaviour when
15573         !first_page_begun and !break_flag.
15575         * troff/input.c (do_name_test): Return 0 if argument is empty.
15577         * troff/input.c (read_long_escape_name): Require closing ] to be
15578         at same input level as opening [.
15580         * troff/input.c (read_increment_and_escape_name): New function.
15581         (get_copy, process_input_stack): Use this for \n.
15583 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15585         * troff/div.c (top_level_diversion::begin_page): Ignore the
15586         current value of page_number if !first_page_begun.
15588         * groff.c (main): Fix declaration of buf.
15590         * troff/input.c (do_name_test): New function.
15591         (token::next): Implement \A.
15592         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15593         (token::description, token::add_to_node_list, token::process):
15594         Handle TOKEN_ESCAPE.
15595         * troff/token.h: New token TOKEN_ESCAPE.
15597 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15599         * pic/main.c (do_picture): Allow space before and after filename
15600         following `<'.  Check that the filename is not empty.
15602 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15604         * Version 1.01 released. 
15606         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15608         * dvi/tmac.dvi: ftr HR to H.
15610         * macros/tmac.e: Round up computation of $r.
15612         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15613         Use \n(.s instead of \n[.s].
15615         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15616         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15617         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15618         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15619         short names in the char definitions.
15621         * ps/tmac.ps: Don't give up completely in compatibility mode.
15622         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15623         quote in front of \n(.s. Add u to factors inside \s[...].
15625 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15627         * tty/tmac.tty: Call the nroff request.
15629         * macros/tmac.e ((x, )x):  Better definitions that work properly
15630         in a diversion.
15631         (@0, @1): Helper macros for (x.
15633         * macros/tmac.e ($s, hl): Use \l rather than \D.
15635         * tty/tmac.tty: Make it work better in compatibility mode.
15636         (pchar): Rename to tty-char.
15638         * macros/tmac.e (@E): New macro.
15639         (r, i, b, rb, bi): Use @E.
15641         * macros/tmac.e (@F): Don't use (;...) syntax.
15643         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15644         it was modified for groff.
15646         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15648         * macros/tmac.e (<., .>): Removed.
15649         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15651         * macros/tmac.e: Remove check that groff is being used.
15653         * macros/tmac.e (@C): Change families only if using groff; turn
15654         compatibility mode off while changing familes. Save compatibility
15655         mode before changing families and restore it afterwards.
15657         * macros/tmac.e (@h): Remove test for offset + line length.
15659         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15660         (lo, th, ac): Define to call @S instead of using als.
15662         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15663         the ratio of the vertical spacing to the point size in units
15664         expressed as a percentage.  Use these instead of $10r and $10R,
15665         Delete $10r and $10R.
15667         * lib/font.c (font::load): In default computation of space_width,
15668         divide by sizescale.  Use scale_round.
15670         * macros/tmac.an (TP): Don't call `nf'.
15671         (an-do-tag): Don't call `fi'.
15673 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15675         * troff/input.c (process_input_stack): Handle the case where
15676         spaces at the beginning of an input line are followed by a
15677         newline.
15679 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15681         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15682         * groff.sh: Use pic -x with the dvi device.
15684         * dvi/devdvi/FontMakefile (H): Don't use -s.
15686         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15687         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15688         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15689         in FONTS.
15691 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15693         * ps/psfig.diff: New file.
15694         * ps/tmac.psfig: New file.
15696 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15698         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15699         (]-): Don't call ref*do-tl.
15701         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15703         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15704         (fn@do-FS): Rename to fn*do-FS.
15706         * troff/input.c (transparent_translate): New function.
15707         (process_input_stack): Apply transparent_translate before calling
15708         diversion::transparent_output(unsigned char).
15710 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15712         * troff/input.c (do_define_macro): Define the macro before calling
15713         skip_line.
15715         * xditview/Makefile: Add DEVICES variable.  Change install target
15716         to use this.
15718 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15720         * groff.c (run_commands): Handle the possibility that there are
15721         child processes other than those forked by us.
15723 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15725         * lib/string.c (string::append): New function.
15726         * lib/stringclass.h: Declare it.
15728 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15730         * eqn/main.c (main): New option -N which sets
15731         no_newline_in_delim_flag. 
15732         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15733         in delimiters.
15734         * groff.c (main): Pass -N on to eqn.
15735         (help, synopsis): Mention -N.
15736         * groff.sh: Implement -N.
15738 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15740         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15741         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15742         (XP): Allow as initializer.
15744 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15746         * troff/env.c (environment::wrap_up_field): If field_spaces are
15747         non-zero and we have a current_tab, subtract padding from
15748         tab_distance.  If this makes tab_distance <= 0, use the next tab
15749         stop instead.  If there isn't any next tab or it's a left tab,
15750         wrap up the current tab.
15751         (environment::start_field): Initialize tab_precedes_field.
15752         (environment::wrap_up_tab): If there's a current field, update
15753         pre_field_width, field_distance and tab_precedes_field.
15754         * troff/env.h (environment::tab_precedes_field): New member.
15756 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15758         * ps/ps.c (ps_printer::do_file): New function.
15759         (ps_printer::special): Bind to `file' special.
15760         (ps_printer::do_exec): Set ndefined_styles to 0.
15762 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15764         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15765         Avoid stripping first character from the start of unrecognized
15766         escapes.  Use lex_error instead of error to report errors.
15767         * eqn/lex.c (get_token): Rework handling of escapes.
15768         (lex_error): Move declaration into...
15769         * eqn/eqn.h.
15771         * xditview/xditview.c (main): Make -page option work.
15773         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15775 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15777         * macros/tmac.s (B2): Correct size of box.
15779 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15781         * macros/tmac.s (B2): Postpone drawing the box until in the
15782         top-level diversion.
15784         * tty/tmac.tty: Add font translations for C, CR, CW.
15786         * groff.c (synopsis, help): Document -i.
15787         * groff.sh: Implement -i.
15789         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15790         Simplify the construction of SN.
15792         * troff/number.c (parse_term): Give `|' a higher precedence.
15793         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15794         accordingly.
15796         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15798 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15800         * lib/string.c (string::move): New function.
15801         * lib/stringclass.h: Declare it.
15803 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15805         * troff/env.c (distribute_space): Add optional argument
15806         `force_forward'.
15807         (environment::wrap_up_field): Call distribute_space with
15808         `force_forward' argument of 1.
15810 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15812         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15813         Inline it.  Move reallocation into...
15814         (string::grow1): New function.
15815         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15816         dependencies to include library header files.
15817         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15819 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15821         * macros/tmac.s (@NH): Use the same number registers than -ms does
15822         for the heading level counters.  Use the same string that -ms does
15823         for the number for this heading.
15825 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15827         * lib/new.c (operator new): Cast result of malloc to char *.
15829         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15830         is not null.
15832 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15834         * groff.c (main): Support -i.
15836 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15838         * pic/pic.h: Include <osfcn.h>.
15840         * ps/ps.c: Add declaration of mktemp.
15842         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15843         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15844         argument as union wait *.
15845         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15846         argument to union wait *.
15848 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15850         * tty/tmac.tty: Add definition of \(co.
15852         * pic/object.c (make_arc): Only increase radius when radius
15853         strictly less than d.
15854         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15855         more than once.
15857         * troff/env.c (environment::environment(symbol),
15858         environment::environment(const environment *)):  Initialize
15859         input_trap_count.
15861 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15863         * tbl/main.c (main): Add exit(0).
15865         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15867         * pic/main.c (main):
15868         * eqn/main.c (main):
15869         * tbl/main.c (main):
15870         * etc/soelim.c (main):
15871         * driver/printer.c (printer::~printer):
15872         * troff/node.c (real_output_file::~real_output_file,
15873         real_output_file::flush):  Check for errors on stdout.
15875         * most files: Add 1991 to copyright notice.
15877         * macros/tmac.s: Don't test \n(.x and \n(.y.
15879         * troff/input.c (token::next): Rename `escape_char' label to
15880         `handle_escape_char' and `normal_char' label to
15881         `handle_normal_char'.
15883 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15885         * groff.c (main, synopsis, help): Support -a option.
15886         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15887         to trflags while parsing options.
15889 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15891         * troff/number.c (parse_term): With `m', `M' and `n' scale
15892         indicators, convert scale factor to hunits before scaling.
15894 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15896         * lib/font.c (scale_round): Better test for overflow when n is
15897         negative.
15899 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15901         * tbl/main.c (process_format): Add second argument of type
15902         options*. Change callers.  Allow opt->tab_char as well as '\t'
15903         between format items.
15905 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15907         * macros/tmac.an (PD): With no arguments, make sure register PD is
15908         at least \n[.V].
15909         (TH): Call PD with no argument, instead of setting register PD
15910         directly.
15912 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15914         * Version 1.00 released.
15916 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15918         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15920         * dvi/devdvi/DESC: Mount CW instead of CR.
15922         * dvi/tmac.dvi: Add definition of \(tm.
15924         * dvi/devdvi/texsy.map: Add lh, and rh.
15925         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15926         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15928         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15929         * dvi/devdvi/Makefile: Install H.
15930         * dvi/devdvi/H: New file.
15932 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15934         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15935         be 0.
15937 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15939         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15941         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15943         * macros/tmac.s (@EN): Handle the case where the equation is empty
15944         but the label is not.
15946 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15948         * troff/groff.h: New warning category WARN_SPACE.
15949         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15950         WARN_SPACE to warning_table.
15951         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15952         is longer than two characters and is not defined, but the first
15953         two characters do make a defined name.
15955         * PROBLEMS: New file.
15957         * CHANGES: New file.
15958         * README-0.6, README-1.00: Deleted.
15960         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15961         * xditview/devX75/Makefile: Make devX75-12.
15962         * xditview/devX100/Makefile: Make devX100-12.
15964         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15965         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15967 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15969         * README-0.7: Rename to README-1.00.
15971         * macros/tmac.pic: New file.
15972         * macros/Makefile (install.nobin): Install tmac.pic.
15974 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15976         * troff/env.c (hyphen_word): Correct the test for whether the
15977         token is a hyphen.  Reset npos to 0.
15979         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15981 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15983         * macros/tmac.s (ds*common-end): Call par*reset.
15984         (PE): Likewise.
15985         (par@reset-indent): Deleted.
15987         * macros/tmac.s (@IP): Divert the label.
15989 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15991         * xditview/draw.c (setGC): Use a line width of .1m rather than
15992         .04m by default; round rather than truncate value.
15994         * tbl/table.c (class empty_entry): New class.
15995         (empty_entry::empty_entry, empty_entry::line_type): New functions.
15996         (table::add_entry): Represent empty entries by objects of type
15997         empty_entry.
15998         (table_entry::line_type): Return -1.
15999         (table::determine_row_type): Ignore entries with line_type 0.
16000         Treat type -1 as non-lines.
16002 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16004         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16005         macros/tmac.s: Rename \(-d to \(Sd.
16007 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16009         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16010         * xditview/libXdvi/DviChar.c: Likewise.
16011         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16013 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16015         * troff/div.c (top_level_diversion::begin_page): Call
16016         init_output() if the_output is 0.
16018 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16020         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16021         ESCAPE_c.
16022         (get_copy): Turn \E into ESCAPE_E.
16023         (token::process, asciify): Handle ESCAPE_E.
16025         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16026         (RD): New macro.
16027         (DS): Implement `.DS R'.
16029 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16031         * macros/tmac.s (FS): New macro.
16033         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16035         * macros/tmac.s (cov*tl-init): Remove after first execution
16036         instead of aliasing to @nop.  Call top of page macro explicitly
16037         instead of setting trap; call @init first.  Set pg@top as top of
16038         page macro.
16039         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16040         cov*auto-init as top of page trap. 
16041         (TL, LP): Do a break instead of calling cov*tl-init.
16042         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16043         @FE; in this case also give a warning and always start another
16044         page. No need to set pg@top here.
16045         (cov*tl-init): Rename to cov*first-page-init.
16047         * macros/tmac.s (RP): Do `.pn 0'.
16048         (cov*tl-init): With RP format don't do `.pn 0'.
16050         * macros/tmac.s (pg@cs-top): Set no space mode.
16052         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16053         (cov*ab-init): Alias TL, AU and AI to these.
16055 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16057         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16058         (@EN): Do nothing unless \n[dl] is > 0.
16060 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16062         * pic/object.c (ellipse_object::radius): New function.
16064         * VERSION: Change version to 0.7.
16066         * tbl/table.c (block_entry::do_divert): Declare return type as
16067         void.
16068         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16070 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16072         * troff/column.c: New file.
16073         * troff/Makefile: Corresponding changes.
16075         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16076         Friend of vunits.
16078         * troff/div.c (top_level_diversion::space): If the space causes
16079         the first-page transition and springs a trap, truncate the space
16080         to 0.
16082 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16084         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16085         the document.
16087         * pic/troff.c (troff_output::line_thickness,
16088         troff_output::set_fill): Do a horizontal motion to compensate for
16089         the width of the \D escape sequence.
16091 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16093         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16094         (not X75).
16096         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16097         to printf.
16099         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16100         Supply empty definition.
16101         (text_entry::simple_print, simple_text_entry::simple_print):
16102         Delete declarations.
16103         (table::add_entry): Represent empty entries by objects of type
16104         `simple_entry'.
16106 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16108         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16110         * tbl/table.c (left_text_entry::add_tab): New function.
16112         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16113         initialize like LP.
16115 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16117         * troff/env.c (environment::start_field): Give an error message if
16118         there is no next tab.
16120 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16122         * troff/env.c (hyphenate): Skip initial elements with zero
16123         hyphenation code.
16125         * macros/tmac.s (par@init): Keep VS in points rather than units.
16127 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16129         * pic/main.c (main): Implement `-c' option.
16130         * pic/output.h: Declare make_tpic_output().
16131         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16132         protected.
16133         (tpic_output): New class.
16134         (tpic_output::tpic_output, tpic_output::set_pen_size,
16135         tpic_output::command, make_tpic_output): New functions.
16137 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16139         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16140         if they're not already defined.
16141         * tbl/table.c (init_output): Don't test \n(.g.
16143         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16144         `d', `r' and `c' conditions even in compatibility mode.
16146 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16148         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16149         box.
16151 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16153         * troff/env.h (environment::prev_line_interrupted): New member.
16154         (environment::get_prev_line_interrupted): New function.
16155         * troff/env.c (environment::newline): Set prev_line_interrupted.
16156         (environment::environment(const environment *),
16157         environment::environment(symbol)): Initialize
16158         prev_line_interrupted.
16159         * troff/input.c (process_input_stack): Don't give special
16160         treatment to space and newline at the beginning of the line if the
16161         previous line was interrupted.
16163 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16165         * eqn/eqn.y: Disallow PRIME by itself.
16166         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16167         PRIME.
16168         (def_table): Remove definition of '.  Define prime to be `.
16170         * eqn/eqn.y: Split off part of rule `script' into a new rule
16171         `nonsup'.
16173 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16175         * macros/tmac.s ({, }): New string aliases.
16177 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16179         * README-0.7: New file.
16181 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16183         * macros/tmac.s: New file.
16184         * man/groff_ms.man: New file.
16185         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16186         * Makefile.bd: Similarily.
16187         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16188         definition of TMAC_S.
16189         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16190         * macros/TODO: New file.
16192 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16194         * troff/env.c (right_justify): New function.
16195         (init_env_requests): Bind this to request "rj".
16196         (center_lines): Set right_justify_lines to 0. If we get a bad
16197         integer, center 1 line.
16198         (environment::environment(symbol), environment::environment(const
16199         environment *)): Initialize right_justify_lines.
16200         (environment::get_right_justify_lines): New function.
16201         (init_env_requests): Bind this to number_register ".rj".
16203         * troff/env.c (environment::choose_breakpoint): Implement
16204         hyphenation_margin and hyphenation_space.
16205         (environment::get_hyphenation_space,
16206         environment::get_hyphenation_margin): New functions.
16207         (init_env_requests): Bind these to .hys and .hym.
16208         (hyphenation_space_request, hyphenation_margin_request): New
16209         functions
16210         (init_env_requests): Bind these to hys and hym.
16211         (environment::environment(symbol), environment::environment(const
16212         environment *)): Initialize hyphenation_margin and
16213         hyphenation_space.
16214         * troff/env.h: Corresponding changes to class environment.
16216 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16218         * troff/div.c (blank_line): Always do a break.
16220         * eqn/box.c (do_text): Turn off escapes while appending text to
16221         string.
16223 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16225         * troff/input.c (while_break_request, while_continue_request): New
16226         functions.
16227         (init_input_requests): Bind these to "break" and "continue".
16228         (while_depth, while_break_flag): New variables.
16229         (while_request): Update while_depth.  Break out of loop if
16230         while_break_flag is set.
16232 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16234         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16235         rather than 0.
16237 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16239         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16241         * stringify: New file.
16242         * Makefile (groff.o): Use stringify.
16244         * xditview/tmac.X: Remove definition of \(rn.
16245         * xditview/libXdvi/DviChar.c: Remove radicalex from
16246         Adobe_symbol_map.
16248 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16250         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16251         (alphabetic_block_entry::alphabetic_block_entry,
16252         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16253         New functions.
16254         (block_entry::divert): Split off body into ...
16255         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16256         from the line length; also update the span width to dl+2n, and the
16257         alphabetic span width to dl.
16259         * driver/input.c (do_file):  While reading argument to D command,
16260         when expanding buffer, multiply szp by sizeof(int) rather than 2
16261         in the argument to memcpy.
16263         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16264         width of alphabetic columns.
16266 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16268         * troff/node.c (lookup_family): Supply second argument to lookup.
16270         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16271         search, return immediately if v is 0.
16273         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16274         (troff_output::start_picture): Set this reg.
16275         (troff_output::end_picture): Remove this reg
16276         * eqn/box.c (box::extra_space): Don't produce `\x's if
16277         EQN_NO_EXTRA_SPACE_REG is defined.
16279         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16280         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16281         character.
16283 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16285         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16286         requests.
16288         * troff/div.c (top_level_diversion::top_level_diversion):
16289         Initialize page_number to 0.
16291 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16293         * groff/troff (environment::environment(const environment *)):
16294         Initialize name to e->name, rather than "anonymous".
16296 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16298         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16299         requested_page.  Split middle part into ...
16300         (FindPage): New function.
16301         (SetValues): If we don't yet know the last page, and the requested
16302         page is greater than the current page, call FindPage.
16303         Update the font_map_string before doing this.
16305         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16306         Translate \(lh and \(rh into left and right double arrows.
16308         * troff/node.c (class hyphen_inhibitor_node): New class.
16309         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16310         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16311         hyphen_inhibitor_node::type,
16312         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16313         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16314         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16315         word.
16317 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16319         * troff/node.h (dummy_node::get_hyphenation_type,
16320         transparent_dummy_node::get_hyphenation_type):  Declare them.
16321         * troff/node.c: (dummy_node::get_hyphenation_type,
16322         transparent_dummy_node::get_hyphenation_type): New functions.
16324 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16326         * xditview/libXdvi/draw.c: If M_PI not defined after including
16327         math.h, then define it.
16329         * xditview/Makefile: Add definition of AR. Pass it to the submake
16330         in libXdvi.
16331         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16333 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16335         * troff/dictionary.h (object_dictionary::alias): Declare return
16336         value as int.
16337         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16338         if the old name was defined.
16339         * troff/input.c (alias_macro): Give a warning if the old name was
16340         not defined.
16341         * troff/reg.c (alias_reg): Likewise.
16343 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16345         * troff/input.c (token::next): Delete implementation of \R.
16347         * macros/Makefile: Strip comments from tmac.e while installing it.
16349         * troff/input.c: New variable `nroff_mode'.
16350         (troff_request, nroff_request): New functions.
16351         (init_input_requests): Bind `troff' and `nroff' to troff_request
16352         and nroff_request.
16353         (do_if_request): Compute results of t and n conditions from
16354         nroff_mode.
16356         * text/text.c (split_text): Fix typo in >=.
16358         * eqn/lex.c: Add definition of `==' to def_table.
16360 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16362         * pic/tex.c (tex_output::start_picture): Change the definitions of
16363         \graph and \graphtemp so that they work properly with Plain TeX.
16365         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16366         argument to `ar' is not less than the first.
16368         * pic/pic.y: Allow a comma between elements of the variable list
16369         in the argument to `reset'.
16371         * pic/object.c (arc_object::arc_object): Fix computation of
16372         radius.
16374         * eqn/main.c (main): Add exit(0).
16376 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16378         * troff/div.c (begin_page): Test no_space_mode after doing the
16379         break, but still push the page ejector cookie before doing the
16380         break.  Also set the next page number after doing the break.
16381         
16382         * xditview/xditview.c (NewFile): Don't set the title and icon name
16383         if this is the first file and its name is `-'.
16384         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16385         the X75 and X100 devices.
16386         (main): If a device has the XT_OPTION flag set and there's exactly
16387         one file argument, pass the driver -xrm and -title options to set
16388         the icon name and window title to the name of the file.
16390         * troff/env.c (environment_switch): If there was an argument but
16391         it wasn't a valid number or name, then pop an environment but
16392         don't give an error message on underflow.
16394         * troff/number.c (start_number): Correct spelling in error message.
16396         * troff/input.c (token::delimiter): Don't print an error message
16397         if err is false.
16399         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16400         ParseDrawFunction if dw->display_enable is true.
16402 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16404         * pic/pic.y: Parse text positioning like normal attributes, so as
16405         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16406         positioning attribute.
16408 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16410         * tbl/main.c (process_data): When in state START while reading a
16411         text block, don't change to state MIDDLE if c is a newline.
16413 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16415         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16416         so as to avoid shadowing parameter.
16418 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16420         * tbl/table.c (trim_space): Deleted.
16421         (table::add_entry): Don't call trim_space.
16423 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16425         * VERSION: Change version to 0.6.
16427         * troff/number.c (parse_expr): Make == work.
16429 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16431         * man/grog.man: New file.
16432         * man/Makefile: Add grog.n to MAN1PAGES.
16433         * etc/grog.sh: New file.
16434         * etc/Makefile: Install grog.sh as grog.
16436 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16438         * troff/input.c (token::next): Implement \E.
16440 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16442         * xditview/tmac.X: Change font translations to match tmac.ps.
16444         * troff/input.c (non_empty_name_warning): Don't give a warning if
16445         `\{' terminates the name.
16447 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16449         * ps/devps/symbol.diff: New file.
16450         * ps/devps/FontMakefile: Mention symbol.diff.
16452 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16454         * troff/node.c (font_position): Use get_long_name to read the
16455         external_name.
16457         * troff/env.c (environment_switch): If we get a number that's < 0
16458         or >= NENVIRONMENTS, treat it like a name.
16459         Change NENVIRONMENTS to 10.
16461         * troff/groff.h: Remove definition of FONTS_MAX.
16462         * troff/node.h (class font_family): Make map a pointer instead of
16463         an array. Add a map_size member. Make it a class. Make nm const
16464         and public. Make invalidate_fontno a friend.
16465         * troff/node.c: Define font_table_size. Make font_info a pointer
16466         rather than an array.
16467         (class troff_output_file): Allocate font_position dynamically. Add
16468         nfont_positions member.
16469         (troff_output_file::set_font): Grow font_position if necessary.
16470         (troff_output_file::~troff_output_file): Delete font_position.
16471         (troff_output_file::troff_output_file): Allocate font_position.
16472         (grow_font_table): New function.
16473         (troff_output_file::really_begin_page,
16474         troff_output_file:really_copy_page): Use nfont_positions rather
16475         than FONTS_MAX.
16476         (mount_font_no_translate, mount_style): Call grow_font_table if
16477         necessary.
16478         (font_family::font_family): Allocate map.
16479         (font_family::make_definite): Grow map if necessary. Use
16480         font_table_size instead of FONTS_MAX.
16481         (font_family::~font_family): New function.
16482         (invalidate_fontno): Use font_family::map_size.
16483         (get_fontno, env_space_width, env_half_narrow_space_width,
16484         env_narrow_space_width, symbol_fotno, is_good_fontno,
16485         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16486         FONTS_MAX.
16487         (next_available_font_position): Never return 0.
16489 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16491         * ps/tmac.ps: Add font translations for compatibility with dpost.
16493 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16495         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16496         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16497         Move definitions baseline_sep, shift_down, column_sep,
16498         matrix_side_sep into...
16499         * eqn/box.c: Add them to param_table.
16500         * eqn/pbox.h: Add declarations to pbox.h.
16502         * troff/input.c (set_string): Cast value to unsigned char *.
16504         * troff/token.h (process_input_stack): Declare it static before
16505         declaring it a friend.
16507 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16509         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16510         and bottom.
16511         * dvi/devdvi/EX: Regenerate.
16513         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16514         transparent.
16516 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16518         * eqn/lex.c: In defaults_table, make definition of `dot' call
16519         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16520         accents.
16522         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16523         argument.
16524         (for_input::get, for_input::peek): Use this.
16525         (do_for): Add by_is_multiplicative argument.
16526         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16527         Change semantic value of optional_by to be a double plus a flag
16528         saying whethet the by clause is multiplicative.
16530         * eqn/lex.c (get_delimited_text): Remember location of start of
16531         definition.  Improve error handling when EOF is encountered.
16533         * lib/font.h: Rename handle_x_command to
16534         handle_unknown_font_command.
16535         * lib/font.c (font::load): Call handle_unknown_font_command for
16536         any unknown command in the font description file.  Don't call
16537         handle_x_command. Include the name of the command in the argv.
16538         Improve message for unknown command after kernpairs or charset
16539         command.
16540         * ps/ps.c (ps_font::handle_x_command): Rename to
16541         handle_unknown_font_command.  Remove message about `x download'
16542         command.  Give error message for wrong number of arguments.
16543         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16544         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16545         handle_unknown_font_command. Give an error message for wrong
16546         number of arguments.  Rename design_size to designsize.
16547         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16548         checksum', `designsize' instead of `design_size'.
16550 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16552         * eqn/*.[chy]: Change underaccent to uaccent.
16554         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16555         give it the same precedence as ACCENT.
16556         * eqn/other.c (make_underaccent_box): New function.
16557         * eqn/box.h: Declare it.
16558         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16559         def_table.
16561 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16563         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16564         (parse_init): Call reset_all.
16565         (define_variable): When defining scale reset only those
16566         pre-defined variables that are scaled.
16567         (defaults_table): Add `scale' as non-scaled value.
16569         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16570         together with the text; allow any number of positioning words;
16571         allow center as a positioning word.
16573         * pic/object.c (output::compute_scale): Get picture maximum height
16574         and width from variables called maxpswid and maxpsht.
16575         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16577 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16579         * pic/object.c (object_spec::make_text): Multiply textht by number
16580         of text items.
16582         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16583         occur.
16584         (do_sprintf): New function.
16585         (pic.gperf): Add sprintf token.
16586         (text, sprintf): New rules.
16588         * pic/pic.y: `rand()' with no arguments returns a random number
16589         in the range [0,1).
16591         * pic/pic.y: Allow a bare expression to be an attribute: change
16592         precedences to support this.  Change optional_ordinal rule to
16593         optional_ordinal_last to avoid reduce/reduce conflict.
16594         * pic/object.c (object_spec::object_spec): Initialize direction.
16596         * pic/pic.y: Implement ^ operator meaning exponentiation.
16598         * troff/node.h: Add default argument to mount_font.
16599         * troff/node.c (font_position): Read an optional third argument
16600         giving the external_name.
16601         (mount_font): Add optional argument giving the external_name.
16602         (mount_font_not_translate): Have additional argument giving
16603         external name.  Use this name to load the font.  Pass both names
16604         to font_info::font_info.
16605         (font_info::font_info): Have additional argument giving
16606         external_name.
16607         (class tfont): New member external_name.
16608         (font_info::get_tfont): Use external name to construct tfont_spec.
16610 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16612         * eqn/lex.c (init_table): Add argument giving device.  Define
16613         name of device to be "1".
16614         (do_ifdef): Counts as true if the argument has been defined with
16615         `define'.
16616         * eqn/main.c (main): Call init_table with device argument. Make
16617         device local to main.
16618         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16619         of device.
16621         * pic/lex.c (get_delimited): Allow text to be delimited by
16622         matching {}s.  Don't recognize ending delimiter within a string.
16624         * troff/input.c (get_delim_name): New function.
16625         (token::next): Implement \C.
16627         * lib/font.c (font::load): Grok ---.  Add an alias for each
16628         character based on its code.
16629         (font::get_code_width): Deleted.
16630         * lib/font.h (class font): Declare font::number_to_index().
16631         Remove declaration of font::get_code_width.
16632         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16633         to indices of named characters.
16634         (font::number_to_index): New function.
16635         * troff/input.c (font::number_to_index): New function.
16636         (get_charinfo_by_number, charinfo::get_number,
16637         charinfo::set_number): New functions.
16638         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16639         (token::process, token::description, token::get_char,
16640         token::add_to_node_list, token::operator==): Handle
16641         TOKEN_NUMBERED_CHAR.
16642         * troff/charinfo.h: Declare get_charinfo_by_number,
16643         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16644         charinfo class.
16645         (charinfo::numbered): New function.
16646         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16647         * troff/env.h (class environment): Remove declaration of ...
16648         * troff/env.c (environment::make_numbered_char_node): Deleted.
16649         * troff/node.c (make_numbered_node): Deleted.
16650         (class numbered_glyph_node): Remove.
16651         (troff_output_file::put_char_width, troff_output_file::put_char):
16652         Handle numbered chars.
16653         (troff_output_file::numbered_char): Removed.
16654         (tfont::get_code_width): Removed.
16655         (make_glyph_node): Don't search special fonts for numbered
16656         characters.
16657         * troff/node.h: Remove declaration of make_numbered_node.
16658         * driver/input.c (do_file): Handle N command.
16659         * driver/printer.h: Add declaration of ...
16660         * driver/printer.c (printer::set_numbered_char): New function.
16661         * dvi/tfmtodit.c (main): Generate unnamed entries.
16662         * ps/devps/afmtodit: Likewise.
16663         * xditview/xtotroff.c (MapFont): Likewise.
16664         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16666         * tbl/main.c (process_format): If multiple widths are specified
16667         for a column but all the widths are the same, don't give an error
16668         message.
16670         * tbl/table.c (table::do_row): If the current row is all lines and
16671         the stuff doesn't contains a line, mark the top of the row after
16672         printing stuff before the row.  If the current row is not all
16673         lines and the stuff doesn't contain a line, don't unnecessarily
16674         mark the top of the row before printing the stuff.
16675         
16676 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16678         * troff/groff.h: Remove MAX_PATH.
16679         * troff/input.c (open_file): Dynamically allocate space for the
16680         path.
16681         (open_mac_file, process_macro_file): Corresponding changes.
16683 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16685         * troff/node.h (class output_file): Make copy_file pure.  Add
16686         vspace method ifdef COLUMN. Add is_printing method.
16687         * troff/node.c: Add class printing_reg. Add class
16688         real_output_file. Derive other output_file classes from
16689         real_output_file; in these classes rename begin_page to
16690         really_begin_page, print_line to really_print_line, copy_file to
16691         really_copy_file, transparent_char to really_transparent_char.
16692         Move output_file::flush to real_output_file. Add printing member
16693         to class output_file.
16694         * troff/div.h: Remove printing member from top_level_diversion.
16695         Add vspace member function to class diversion ifdef COLUMN. Add
16696         some declarations ifdef COLUMN.
16697         * troff/div.c (top_level_diversion::copy_file,
16698         top_level_diversion::transparent_output,
16699         top_level_diversion::output): Don't test printing member before
16700         output.
16701         * troff/input.c: Handle initial variable_space_request ifdef
16702         COLUMN.
16703         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16704         but comment it out.
16706 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16708         * troff/div.c (diversion::need): Make any space forced.  If we
16709         sprung a trap, set truncated_space to minus the distance to the
16710         trap and set needed_space to the amount that was needed.
16711         (top_level_diversion::space): A forced space turns no_space_mode
16712         off.
16713         (class constant_vunits_reg): New class.
16714         (init_div_requests): Implement number registers .trunc and .ne
16715         using constant_vunits_reg.
16716         (class truncated_space_reg): Deleted.   
16718         * troff/div.h: Don't have a no_space_mode member in diversion.
16719         Instead have it in top_level_diversion.
16720         * troff/div.c (diversion::diversion): Don't initialize
16721         no_space_mode.
16722         (top_level_diversion::top_level_diversion): Initialize
16723         no_space_mode.
16724         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16725         (macro_diversion::output): Don't clear no_space_mode.
16727         * troff/input.c (diverted_space_node::reread): Don't call
16728         environment::do_break.  In fill mode, act like a blank line.
16729         (diverted_copy_file_node::reread): Don't call
16730         environment::do_break.
16732         * troff/div.c (blank_line): New function.
16733         * troff/div.h: Declare it.
16734         * troff/input.c (process_input_stack): Call it.
16736         * troff/div.c (truncated_space_reg::get_string): New function.
16737         (init_div_requests): Bind to .trunc.
16738         (space_request, top_level_diversion::space,
16739         top_level_diversion::output, macro_diversion::space,
16740         macro_diversion::output): Update truncated_space.
16741         (macro_diversion::output): Redo calculations when trap sprung.
16742         (macro_diversion::output, macro_diversion::space): No need for
16743         trap_flag.
16745         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16746         after truncating post line spacing.
16748 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16750         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16751         defined as a procedure rather than as an operator.
16753 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16755         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16757 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16759         * troff/div.c (top_level_diversion::output): Merge
16760         output_file::print_line and output_file::end_of_line member
16761         functions.
16762         * troff/div.h (class output_file):
16763         * troff/node.c (troff_output_file::print_line,
16764         troff_output_file::end_of_line, output_file::end_of_line,
16765         ascii_output_file::print_line, suppress_output_file::print_line):
16766         Corresponding changes.  
16768 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16770         * troff/input.c (token::next): Don't give a warning for `\.'.
16772         * troff/env.c (environment::get_center_lines): New function.
16773         (init_env_requests): Bind number register .ce to it.
16774         * troff/env.h: Declare it.
16775         * tbl/table.c (table::init_output): Define reset macro to restore
16776         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16777         Then do .ce 0.
16778         (table::print): If center option not given, then imply center
16779         option if SAVED_CENTER_REG > 0.
16781 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16783         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16784         Troff.ps from DOWNLOAD.
16785         
16786         * troff/Makefile: Change comment in DEFINES to avoid confusing
16787         System V make.
16789         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16790         code.  Don't try to catch errors with stopped.
16791         (check_line_lengths): New function.
16792         * ps/devps/prologue (EXEC): Deleted.
16793         (EBEGIN, EEND): New procedures.
16795 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16797         * troff/input.c: Include request.h before node.h.
16798         * troff/node.c: Likewise.
16799         * troff/env.c: Likewise.
16800         * troff/div.c: Likewise.
16801         * troff/node.h (class special_node): Store argument as a macro
16802         rather than a char *.
16803         * troff/node.c (special_node::special_node, special_node::copy):
16804         Grok this.
16805         (special_node::~special_node): Deleted.
16806         (special_node::tprint): Deleted.
16807         (special_node::tprint_start, special_node::tprint_end,
16808         special_node::tprint_char): New functions.
16809         (troff_output_file::special): Deleted.
16810         (troff_output_file::start_special, troff_output_file::end_special,
16811         troff_output_file::special_char): New functions.
16812         * troff/input.c (special_node::tprint): New function.
16813         (do_special): Use macro not char *.
16814         (do_transparent_macro): Deleted.
16815         (token::next): Don't call do_transparent_macro.
16817         * troff/input.c (token::next): Add 'Y' case.
16818         (do_transparent_macro): New function.
16819         * troff/node.c (troff_output_file::special): Handle newlines with
16820         argument using new continuation convention.
16821         * driver/input.c (get_string): Cope with continuation convention.
16822         (do_file): Don't call skip_line after calling get_string(1).
16823         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16824         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16825         arg.
16826         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16827         with +.
16829 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16831         * troff/input.c (asciify): By default, illegal input characters
16832         should return empty string.
16834         * troff/input.c (copy_file): Handle first page transition like title.
16835         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16837         * troff/input.c (token::next): Improve error message for EOF after
16838         escape character.
16839         (input_char_description): New function.
16840         (get_char_for_escape_name): Use input_char_description.
16841         (token::next): Warn about unrecognized escape sequences.
16842         (warning_table): Add WARN_ESCAPE.
16843         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16844         accordingly.
16846         * troff/token.h: Remove declaration of process_input_stack.
16848         * troff/input.c: Remove declaration of init_hyphen_requests.
16849         * troff/request.h: Correct spelling in declaration of same.
16851         * troff/input.c (token::next): Check whether escape_char is 0.
16853 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16855         * groff.c (main, usage, help): Implement -P and -L options.
16856         * groff.sh: Likewise.
16858         * troff/input.c (token::next): Use some gotos to avoid code
16859         duplication.
16861         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16862         Avoid calling symbol::symbol if name empty.
16864 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16866         * troff/input.c (init_input_requests): Make \n(.x return the major
16867         version number and \n(.y return the minor version number.
16868         * troff/Makefile: Construct file majorminor.c defining
16869         major_version and minor_version automatically from ../VERSION.
16871         * troff/node.c (class glyph_node): Make operator new and operator
16872         delete public.
16873         (class ligature_node): Similarily.
16875         * troff/input.c (operator==(const macro &, const macro &)): New
16876         function.
16877         (non_interpreted_node::same): Use this.
16878         (string_iterator::string_iterator): Make macro& argument const.
16880         * troff/input.c (input_iterator::get): New function. Don't make
16881         asciify_macro or class non_interpreted_node friends of class
16882         input_iterator.
16883         (non_interpreted_node::interpret): Use input_iterator::get.
16884         (asciify_macro): Likewise.
16886         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16887         ~non_interpreted_node): Deleted.
16888         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16889         Deleted.
16891         * troff/symbol.h: Make all symbol member functions const.
16893         * lib/strtol.c: New file.
16894         * lib/Makefile: Add strtol.c.
16895         * Makefile: Define STRTOL as strtol.o to include strtol in
16896         libgroff.a.
16898 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16900         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16902 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16904         * troff/input.c (do_special): Use input_level.
16906         * troff/token.h (TOKEN_BACKSPACE): New token.
16907         (token::backspace): New function.
16908         * troff/input.c (token::description, token::next, token::process):
16909         Grok TOKEN_BACKSPACE.
16910         (do_special): Turn TOKEN_BACKSPACE back into \b.
16912         * troff/token.h (token::leader): New function.
16913         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16915         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16917         * troff/input.c (do_special): Use token::description in error
16918         message.
16920 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16922         * troff/input.c (decode_args): Combine quoted and
16923         quote_input_level variables. Make it a for (;;) loop.
16925         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16927         * troff/input.c (read_long_escape_name): The test for whether to
16928         expand buffer was off by 1.
16929         (read_string): Similarily.
16931 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16933         * troff/input.c: Use `const int' rather than `static const int'.
16935         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16936         (macro_diversion::copy_file): New function.
16937         * troff/node.h: New class diverted_copy_file_node.
16938         * troff/node.c: Implement it.
16939         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16940         first page transition by pushing a diverted_copy_file_node.
16941         * troff/input.c (token::next, process_input_stack): Don't handle
16942         COPY_FILE_REQUEST.
16944 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16946         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16947         whether space widths need adjusting.
16949         * troff/charinfo.h: Generalize translated_to_space to
16950         special_translation so as to allow translation to \&.
16951         * troff/input.c (translate): Allow translation to \&.
16952         (charinfo::*): Corresponding changes.
16953         * troff/node.c (make_node, node::add_char): Corresponding changes.
16954         * troff/node.h (dummy_node::dummy_node): Allow optional first
16955         argument.
16957         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16958         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16959         TOKEN_REQUEST.
16960         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16961         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16962         (token::process): Grok that.
16963         * troff/input.c (copy_file): Handle first page transition like
16964         title by pushing a COPY_FILE_REQUEST cookie.
16965         (token::next, process_input_stack): Grok that.
16966         * troff/node.h (output_file::copy_file): Add x and y arguments.
16967         Make it non-pure.
16968         * troff/div.c (top_level_diversion::copy_file): Supply them.
16969         * troff/node.c (troff_output_file::copy_file): Add x and y
16970         arguments; moveto specified position.  Invalidate font_position
16971         array after copying file.
16972         (output_file::copy_file): New function.
16973         (suppressed_output_file::copy_file, ascii_output::copy_file):
16974         Removed.
16975         * troff/input.c (transparent_file): New function.
16976         (init_input_requests): Bind to "trf".
16977         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16978         (process_input_stack): Likewise.
16980         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16982         * troff/node.c (init_node_requests): New number registers .kern
16983         pointing to global_kern_mode, and .lg pointing to
16984         global_ligature_mode.
16986         * troff/node.c (ligature): Don't change it if we get a bad
16987         integer.
16989         * troff/input.c (do_define_string): Don't strip tabs.
16991         * troff/input.c (asciify_macro): Make the string_iterator auto.
16993         * troff/node.c (init_font_requests): Rename to...
16994         (init_node_requests):
16995         * troff/node.h: Change declaration.
16996         * troff/input.c (main): Change call.
16998         * troff/input.c (node::reread, diverted_space_node::reread): New
16999         methods.
17000         (process_input_stack): Call reread rather than
17001         get_diverted_space_node.
17002         * troff/node.c (node::get_diverted_space_node,
17003         diverted_space_node::get_diverted_space_node): Removed.
17004         * troff/node.h: Declare reread methods instead of
17005         get_diverted_space_node methods. Make `n' member private.
17006         * troff/input.c: (token::diverted_space): Removed.
17007         * troff/token.h: Removed declaration.
17008         
17010 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17012         * eqn/script.c (script_box::compute_metrics): Don't let
17013         SUP_RAISE_FORMAT become negative.
17015         * tbl/table.c (table::do_row): Entries that don't end in the
17016         this row shouldn't make the row non-blank.
17017         
17018         * tbl/table.c (table::make_columns_equal): Only set the width of
17019         columns which are marked as equal.
17020         
17021         * tbl/main.c (process_data): Before issuing excess data error,
17022         if last character was a newline unget it; then get it again after
17023         the error.  Also include the contents of the entry in the message.
17025         * groff.c: New file.
17026         * Makefile: Build groff from groff.c.  Make it possible to use
17027         either groff.sh or groff.c as groff.
17028         * Makefile.bd: Similarily.
17030 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17032         * groff.sh: Don't delay expansion of $@ in assignment to files.
17033         Remove occurrences of \".
17035 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17037         * all Makefiles: Simplify and rearrange.
17039         * Makefile: Handle fmod like malloc.
17040         * lib/Makefile: Similarily.
17041         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17043         * Makefile: Rename OPTIMISE to OPTIMIZE.
17045         * groff.sh: Remove assignment to PATH.
17046         * Makefile: Remove SHPATH variable.
17047         * Makefile.bd: Similarily.
17049         * groff.sh: Add -V option to print the pipeline instead of
17050         executing it.
17052 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17054         * lib/font.c: Split off file searching into ...
17055         * lib/fontfile.c: New file.
17057         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17059 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17061         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17062         Also change misleading comment.
17063         (table::do_vspan): Change similarily misleading comment.
17064         * tbl/main.c (process_data): A format row with an explicit `s'
17065         uses up a data line, even if all the other columns are `_' or `='.
17067         * troff/input.c (token::description): Fix description of
17068         TOKEN_DUMMY and TOKEN_EMPTY.
17070 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17072         * groff.sh: Fix description of -Z in help message.
17074 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17076         * pic/object.c (object_spec::make_object): Allow negative and zero
17077         line thicknesses.
17078         * pic/pic.y: Give linethick default value of -1.0.
17079         * pic/troff.c (troff_output::troff_output): Initialize
17080         last_line_thickness to BAD_THICKNESS.
17081         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17082         (troff_output::line_thickness): Canonicalize negative thicknesses
17083         to RELATIVE_THICKNESS.
17084         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17085         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17086         to -1.0.
17087         (tex_output::start_picture): Set pen_size to -2.0.
17089         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17090         0, then use 0 linewidth.
17091         (ps_printer::ps_printer): Initialize line_thickness to -1.
17093         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17095         * ps/devps/symbolchars: Remove `or'.
17096         * ps/tmac.ps: Implement \(or with .char.
17098         * ps/devps/symbolchars: Move most characters into textmap.
17099         * ps/devps/textmap: Add names for troff bracket characters. Remove
17100         ul, ru, br, bv.
17102         * ps/devps/TSymbol.ps: Removed.
17103         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17104         * ps/tmac.ps: Do with .char what TSymbol did.
17105         * ps/devps/download: Remove TSymbol.
17107         * ps/devps/T: Removed.
17108         * ps/devps/Troff.ps: Removed.
17109         * ps/devps/Troff.afm: Removed.
17110         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17111         * ps/devps/download: Remove Troff.
17112         * ps/devps/FontMakefile: Remove T target.
17113         * ps/devps/DESC-A4: Remove T from font list.
17114         * ps/devps/DESC-letter: Likewise.
17116         * troff/input.c (macro_to_node): Rename to ...
17117         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17118         character's definition while processing it.
17119         * troff/node.c (node::add_char, make_node): Change calls to
17120         macro_to_node accordingly.
17122         * troff/input.c (token::next): Translate \_ to \(ul.
17124         * tty/devascii/R.proto: Add `|'.
17125         * tty/devlatin1/R.proto: Likewise.
17127 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17129         * man: Put the version number in all the man pages.
17131 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17133         * Makefile.bd: New file.
17134         * README.bd: New file.
17136         * VERSION: New file.
17137         * lib/version.c: Removed.
17138         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17139         in clean target.
17141         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17142         environment variable.
17144         * all Makefiles: Split install target into install.bin for
17145         binaries, and install.nobin for everything else.
17146         * Makefile: Add bindist target.
17148         * man/afmtodit.man: New file.
17149         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17150         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17151         in BINDIR.
17152         * ps/Makefile: Pass BINDIR to make install in devps.
17154         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17155         the space character.
17157         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17159 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17161         * ps/ps.c: Redo font downloading.
17162         * ps/devps/download: New file.
17163         * ps/devps/Makefile: Add download to DEVICEFILES.
17164         * ps/devps/afmtodit: Remove -d option.
17165         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17166         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17167         * ps/devps/zapfdr.ps: Likewise.
17168         * ps/devps/TSymbol.ps: Likewise.
17170 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17172         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17174 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17176         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17177         then strip the first line if it starts with %.
17178         * Makefile: Add a comment about this.
17180         * man/tfmtodit.man: New file.
17181         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17182         * dvi/Makefile: Install tfmtodit in BINDIR.
17184         * dvi/tfmtodit.c (usage): Mention -v option.
17186 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17188         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17189         * troff/node.c (troff_output_file::transparent_char): Don't call
17190         flush_tbuf.
17192         * eqn: Add check_tabs method to most box classes.
17193         * eqn/box.c (box::top_level): Call check_tabs.
17195         * eqn/script.c (script_box::output): Use \Z.
17196         * eqn/limit.c (limit_box::output): Use \Z.
17198         * eqn/box.c (box::top_level): Use itoa.
17200 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17202         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17203         * dvi/devdvi/Makefile: Don't make links to CW.
17205         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17206         HX, HD.
17207         * xditview/tmac.X: Likewise.
17209         * troff/node.c: Add font translation feature.
17210         (get_font_translation): New function.
17211         (symbol_fontno): Translate the font name.
17212         (mount_font_no_translate): Rename to mount_font to this.
17213         (mount_font): New function.
17214         (font_family::make_definite): Call mount_font_no_translate instead
17215         of mount_font.
17216         (mount_style): Translate the font name.
17217         (font_translate): New function.
17218         (init_font_requests): Bind "ftr" to font_translate.
17220         * ps/devps/prologue (SN): New procedure that rounds a position to
17221         the nearest (pixel + (.25,.25)).
17222         (DL): Use SN to round endpoints.
17224         * lib/version.c: Changed version to 0.5.
17226 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17228         * Makefile: Move definition of PAGE to the very beginning, so that
17229         people are less likely to miss it.
17231 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17233         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17235         * troff/env.c (environment::choose_breakpoint): Make `can't find
17236         breakpoint' error a warning of type WARN_BREAK.  Change message to
17237         `can't break line'.
17238         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17239         code 040000.
17240         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17241         WARN_BREAK in DEFAULT_WARNING_MASK.
17243         * tty/tmac.tty: Add definition of \(+-.
17245         * groff.sh: Remove `--' option to set command.
17247         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17249         * ps/devps/eqnchar: Better definition of cdot using md.
17250         * dvi/devdvi/eqnchar:  Likewise.
17251         * xditview/devX100/eqnchar:  Likewise.
17252         * xditview/devX75/eqnchar: Likewise.
17253         * eqn/lex.c: Add definition of cdot.
17255 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17257         * troff/input.c (get_optional_char): New function.
17258         * troff/input.c (set_page_character): Use get_optional_char(),
17259         rather than has_arg() and tok.get_char(1).
17260         * troff/env.c (tab_character, leader_character, hyphen_char,
17261         field_characters): Likewise.
17262         (margin_character): Likewise.  Also always delete the
17263         margin_character_node.
17265         * troff/input.c (token::get_char): Use token::description.
17267         * troff/input.c (has_arg): Don't skip over tab and \}.
17268         * troff/number.c (start_number): Give a warning if the number
17269         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17271 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17273         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17274         functions.
17275         (get_name, get_long_name): Use these.  Rename `warn' argument to
17276         `required'.
17278         * troff/node.c (get_fontno): Test that the symbol is not null.
17280         * troff/input.c (token::description): New function.
17281         * troff/number.c (parse_term): Use token::description in `numeric
17282         expression expected' message.
17283         * troff/groff.h: Add WARN_MISSING.
17284         * troff/number.c (start_number): New function.
17285         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17286         get_incr_number): Use start_number().
17287         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17288         default.
17289         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17290         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17291         token::descripion.
17292         * troff/input.c (token::get_char): Use WARN_MISSING.
17293         * troff/input.c (token::delimiter): Use token::description.
17294         * troff/env.c (environment_switch): Back out Aug 3 change.
17295         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17296         warning.
17297         * troff/token.h (token::tab): New function.
17298         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17299         * troff/reg.c (alter_format): Likewise.
17300         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17302 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17304         * troff (most files): Redo warnings. Divide warnings into various
17305         categories; warning() has an additional first argument indicating
17306         the category it falls into.
17307         * troff/input.c (main): -w now takes an argument. New option -W.
17308         (enable_warning, disable_warning): New functions.
17310         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17311         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17313 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17315         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17316         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17317         * xditview/devX75/eqnchar: Likewise.
17318         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17320         * eqn/other.c: When bar or over applies to a single character
17321         don't produce an overline_box or an underline_box. Instead produce
17322         an accent_box or an underaccent_box, with the accent a line
17323         whose width is accent_width.  New classes underaccent_box,
17324         overline_char_box and underline_char_box.
17325         * eqn/box.h: Move overline_box, underline_box, accent_box class
17326         declarations into eqn/other.c. Add declarations of
17327         make_underline_box, make_overline_box, make_accent_box.
17328         * eqn/eqn.y: Call make_overline_box, make_underline_box
17329         make_accent_box instead of constructors.
17330         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17332         * eqn/other.c: Add accent_box::~accent_box.
17333         * eqn/box.h: Declare it.
17335         * groff.sh: With -Tps, use eqn -D.
17337         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17338         rather than \l.
17339         (underline_box::output): Similarily.
17340         (accent_box::output): Use \Z.
17342         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17343         bit smaller.)
17345 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17347         * troff/div.c (top_level_diversion::transparent_output(unsigned
17348         char)): Use asciify.
17349         * troff/input.c (asciify): Don't make it static.
17350         * troff/token.h (asciify): Declare it.
17351         
17352         * troff/input.c (get_name, get_long_name, token::get_char,
17353         token::delimiter): Add an extra default argument which says
17354         whether a warning should be printed.
17355         * troff: Pass a non-zero argument to one of these rather than
17356         printing a warning directly.
17358 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17360         * troff: Consistently use symbol::is_null.
17362         * troff/dictionary.h: Move some inline functions into
17363         dictionary.c.
17365         * troff/request.h: Move inline functions into input.c.
17366         (request_or_macro::invoke): Make it pure.
17368         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17369         * troff/input.c (init_input_requests): Use class constant_int_reg.
17370         (class compatible_reg): Deleted.
17371         * troff/div.c (init_div_requests): Use class constant_int_reg.
17372         (class last_post_line_extra_space_reg): Deleted.
17374         * troff/env.c (tab_character): Don't change the tab character if
17375         we get an invalid argument.
17376         (hyphen_char): Similarily.
17378         * troff/reg.c (alter_format): Check that nm is not null.
17380         * Makefile, groff.sh: Make it possible to customize the commands
17381         used for printing PostScript and dvi files. Also make it possible
17382         to customize the path used by groff.sh.
17384         * eqn/eqn.y: Make `left' right associative.
17386 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17388         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17389         don't have it.
17391         * pic/pic.h: Removed definition of INT_MAX.
17393         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17394         `return'.
17396         * troff/input.c (token::next):  Handle \R like \n.
17398 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17400         * ps/tmac.pc (PSPIC): Simplify.
17402         * troff/env.c (tab_stops::to_string):
17403         * pic/pic.y (object_type_name):
17404         * pic/troff.c (simple_output::line):
17405         * pic/tex.c (tex_output::spline):
17406         * pic/object.c (object_spec::make_object):
17407         * tbl/main.c (process_data):  Add cases to switch statements to
17408         avoid cfront warnings. (Some of these are spurious, since the
17409         switch already has a default case.)
17411         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17412         `ps-'.  Don't test systat; instead check number of arguments to
17413         ps-bb.
17415 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17417         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17419         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17420         Unlink the file as soon as we have opened it, so that we don't
17421         have to bother with signal handlers.
17422         (handler): Deleted.
17423         (fatal_error_exit): Deleted.
17424         (main): Don't call signal.
17426         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17427         can be ignored.
17428         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17430         * pic/pic.y:  If there is a label, or an nth construction before
17431         the first `.' in the argument to `with', ignore it and generate a
17432         warning.
17433         * pic/lex.c (lex_warning): New function.
17435         * tbl/table.c (table::init_output): In section keep and release
17436         macro, use 0 indent when diverting and the correct indent when
17437         rereading.
17439         * troff/input.c (interpolate_number_format): Do not interpolate
17440         anything if the number register is not defined.
17442         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17444 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17446         * ps/devps/prologue (PICTURE): Set components of graphics state to
17447         their default values.
17449         * ps/devps/text.enc: Add trademark
17450         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17451         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17452         * ps/devps/symbolchars: Add names for summation and product.
17454         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17455         suchthat. Add pp. Add upper-case letters.
17457         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17458         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17459         Upsilon.
17461         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17462         rA (right angle bracket) to ra.  Introduce names for double-headed
17463         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17464         * ps/devps/textmap: Likewise for ps device.
17465         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17466         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17467         * tty/devascii/R.proto: Likewise.
17468         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17469         \(uA, \(dA.
17470         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17472         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17474         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17475         def_table.
17477 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17479         * troff/div.c (when_request): Use symbol::is_null rather than
17480         has_arg to determine whether we have an argument.
17481         (change_trap): Remove the trap if we get an invalid number. Give
17482         an error if we don't get at least the macro name.
17483         (diversion_trap): Remove trap if we get an invalid name or number.
17485         * troff/env.c (environment_switch): Pop if we get an invalid
17486         symbol or numeric expression.
17488         * troff/input.c (do_define_macro):  If EOF is encoutered while
17489         defining the macro, do tok.next() before returning.
17491         * troff/token.h (has_arg): Move definition from here, to ...
17492         * troff/input.c (has_arg): ... here
17494         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17495         * troff/input.c (shift): Likewise.
17497         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17498         for `.c'.
17500         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17501         `..'.
17503         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17504         interpret_lf_args succeeds.
17506         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17507         \\.  This avoids problems with \$N.
17509         * groff.sh: Pass -C to preprocessors.
17511         * lib/lf.c (interpret_lf_args):  Be more flexible.
17513         * tbl/main.c (main): Add -C option.
17514         (table_input::get): Do not recognize TE if followed by character
17515         other than a space or newline unless -C option given.
17516         (process_input_file): Likewise for lf, TS.
17517         (process_data): Likewise for lf in text blocks.
17519         * eqn/main.c (main): Add -C option.
17520         (do_file): Don't recognize EQ, EN or lf if followed by character
17521         other than space or newline unless -C option given.
17522         * eqn/lex.c (file_input::read_line): Similarily.
17523         * eqn/eqn.h: Declare compatible_flag.
17525         * etc/soelim.c (main): Add -C option.
17526         (interpret_lf_args): Use version in libgroff.
17527         (do_file):
17529         * pic/main.c (main): Add -C option, which sets compatible_flag.
17530         (top_input::get), (top_input::peek):  If -C option not given,
17531         do not recognize .PS/.PE/.PF/.lf if followed by a character
17532         other than space or newline.
17533         * pic/lex.c (file_input::read_line): Similarily.
17534         * pic/pic.h: Add declaration of compatible_flag.
17536 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17538         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17540         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17541         derived from node.  New class space_char_hmotion_node.
17542         * troff/input.c (asciify_macro): New function.
17543         * troff/input.c (init_input_requests): New request `asciify' bound
17544         to asciify_macro.
17545         * macros/mm.diff: New file.
17546         * Makefile:  In install.mm target use `patch' to apply
17547         macros/mm.diff.
17549         * troff/input.c (macro::print_size): Just print the size in bytes.
17551         * troff/div.c (return_request): Correct the argument
17552         interpretation.
17554 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17556         * troff/node.h (class composite_node): Add sz member.
17557         * troff/node.c (composite_node::size): Return sz.
17558         * troff/input.c (macro_to_node):  Use the initial size in the
17559         environment as the size of the composite_node.
17561         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17562         default.
17564 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17566         * troff/div.c (change_trap): If we get a bad number expression,
17567         do nothing.
17569 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17571         * lib/matherr.c (matherr): Define this only if math.h defines
17572         TLOSS.
17574 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17576         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17577         no diversion trap return vunits(INT_MAX - vresolution).
17579 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17581         * troff/input.c (do_zero_width): New implementation that doesn't
17582         use a temporary environment. Use instead:
17583         (token::add_to_node_list): New function.
17584         * troff/env.c (environment::get_prev_char_height),
17585         (environment::get_prev_char_height),
17586         (environment::get_prev_char_skew): New functions.
17587         (environment::get_prev_char): New function.
17588         (environment::get_prev_char_width): Change to use get_prev_char.
17589         (init_env_request): Implement new registers .cht, .cdp, .csk.
17590         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17591         \Z being processed in a separate environment.
17593 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17595         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17597         * tbl/table.c (table::init_output): In the section release macro,
17598         give a warning message if the section won't fit on one page.
17600         * tbl/table.c (table::do_top): Emit table keep only if table is
17601         boxed.
17602         (table::do_bottom): Likewise for table release.
17603         (table::table), (table::add_vertical_rule):  Remove reference to
17604         keep member.
17605         * tbl/table.h: Remove keep member.
17607         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17608         SECTION_RELEASE_MACRO, if there's not enough space before the next
17609         trap to output the diversion, call T# ourselves, set
17610         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17611         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17612         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17613         vertical position and return to it before turning traps on again.
17614         
17615 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17617         * troff/node.c, troff/node.h: In classes derived from node,
17618         replace prev_char_width method by last_char_node method.
17619         * troff/env.c (environment::get_prev_char_width): Use
17620         node::last_char_node rather than node::get_prev_char_width.
17622         * Makefile: Added comment about -fno-inline on 68030-based
17623         Apollos.
17625         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17626         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17627         expressions using sizeof to int.
17628         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17630         * macros/tmac.e (TS):  Don't move @f back past the current
17631         position.
17633 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17635         * ps/ps.c (main): Buffer stderr.
17636         * dvi/dvi.c (main): Likewise.
17637         * tty/tty.c (main): Likewise.
17639         * ps/ps.c (ps_printer::do_import): Improve error handling.
17641         * troff/input.c (abort_request): Use asciify.
17643         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17644         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17645         type of first argument int rather than char.  This works around a
17646         bug on the 68030 based Apollo using g++ 1.37.1.
17648         * tbl/table.h (class table): Add `keep' member.
17649         * tbl/table.c (table::table): Initialize `keep'.
17650         (table::add_vertical_rule): Set `keep' to 1.
17651         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17652         (table::do_bottom): Likewise for table release macro.
17653         (table::do_row): Emit section keep macro even if the row is 0.
17655 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17657         * macros/tmac.e (@C): Preserve the font family across the change
17658         in environments.
17660 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17662         * lib/font.c: Initialize font::hor and font::vert to 1.
17663         (font::load_desc): Check the values of font::hor and font::vert.
17665         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17666         be included in a C compilation.
17667         (iftoa): Use INT_DIGITS. Include lib.h.
17668         (itoa): Likewise.
17669         (as_string): Likewise.
17670         * tbl/table.c: Removed definition of INT_DIGITS.
17671         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17672         * troff/input.c (input_input_requests): Likewise.
17673         * ps/ps.c (make_encoding_name): Likewise.
17674         (ps_printer::set_style): Likewise.
17675         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17677         * tty/devascii/R.proto: Map fm onto '.
17678         * tty/devlatin1/R.proto: Likewise.
17680 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17682         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17683         argument to \w is at a different input level.
17685         * tbl/table.c (table::init_output): Define a new macro
17686         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17687         transparently outputs itself.
17688         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17689         vpt.
17690         (table::do_row): Likewise.
17692         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17693         TRANSPARENT_STRING_NAME.
17695         * tbl/table.c (table::init_output): In the table release macro
17696         print an error message and don't produce any output if after
17697         issuing the need request the table still will not fit.  Also
17698         remove the diversion after bringing it back.
17700         * tbl/table.c (table::init_output): Define a new macro
17701         REPEATED_MARK_MACRO, like mk but if in a diversion also
17702         transparently outputs itself.
17703         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17704         is necessary because .TH might not call .T#.
17705         (table::do_top): Likewise TOP_REG.
17706         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17707         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17708         table header might contain just the two top rules.
17710 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17712         * troff/div.c: Implement new request `ptr' to print all traps.
17714         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17715         init_string_env_reg.
17716         * troff/env.c (class tab_reg): Deleted.
17718 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17720         * troff/div.c: New number register .pn returns the number of the
17721         next page as set by the pn request.
17723         * macros/tmac.an: Redid headers and footers.  Number each manual
17724         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17725         optional 5th argument to .TH which specifies the manual name and
17726         appears in the center of the header.  Understand the X, P and D
17727         registers like Sun.
17729 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17731         * troff/env.c (init_env_requests): New number register `.lt' to
17732         return the title length.
17734         * troff/node.h (class transparent_dummy_node): New class.
17735         * troff/node.c (class transparent_dummy_node): Provide member
17736         functions. 
17737         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17738         than a dummy_node.
17740         * troff/input.c (token::next): New escape sequence \).
17741         * troff/input.c (get_copy): Recognize \) in copy mode.
17743         * troff/input.c (input_stack::clear): New function.
17744         * troff/input.c (exit_request): Use input_stack::clear.
17746         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17747         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17749         * troff/env.c: Move set_page_character to input.c.  Move
17750         page_character to input.c also.
17751         * troff/env.c (title): Split off the reading of the parts of the
17752         title into read_title_parts.
17753         * troff/input.c (read_title_parts): New function.  Check the
17754         input_level when testing whether a token matches the delimiter.
17756         * troff/input.c (exit_request): New function.
17757         * troff/input.c (init_input_requests): Bind ex request to
17758         exit_request rather than exit_groff.
17760         * troff/input.c (exit_groff): Call tok.next() before
17761         process_input_stack().
17763 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17765         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17766         * troff/env.h: ditto.
17767         * troff/input.c: ditto.
17769         * troff/env.c (environment::is_empty): Test pending_lines.
17771         * troff/env.c (environment::have_pending_lines): Removed.
17773         * troff/input.c: Add request to flush pending lines from the
17774         environment.
17776         * troff/env.c, troff/env.h: Add automatic widow control feature.
17778         * troff/input.c (exit_groff):  Do process_input_stack() after
17779         do_break() but before setting exit_flag to 2.
17781         * troff/input.c: Remove FLUSH_PENDING_LINES and
17782         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17783         environment after END_TRAP token seen, but only if there aren't
17784         any more traps still unfinished.
17785         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17787 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17789         * troff/env.c: Rename the `retain_size' member of class
17790         pending_output_line to `no_fill'.
17792         * troff/env.c (title): When the line is output, make the
17793         retain_size argument !fill.
17795         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17796         * troff/node.c (space_node::get_breakpoints),
17797         (dbreak_node::get_breakpoints):  Fill this in.
17798         * troff/env.c:  Allow specification of maximum number of
17799         consecutive hyphenated lines.
17801         * troff/env.c (environment::is_empty): Add test for !current_tab.
17803 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17805         * troff/env.c (environment::hyphenate_line): Don't completely give
17806         up if the word is not to be hyphenated; continue so that breaks
17807         can be made at break_char_node's.
17809         * lib/lib.h: Only define INT_MAX if it's not already defined;
17810         undef INT_MIN if it's already defined.
17812         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17814         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17815         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17816         compiler.
17817         
17818         * macros/tmac.an (an-header): Set no-space mode.
17820         * macros/tmac.an (TH): Start a new page if necessary.
17822         * Started using ChangeLog at version 0.4.
17824 Local Variables:
17825 version-control: never
17826 coding: latin-1
17827 End: