Import Keith's `pdfmark' package. Integration is very preliminary.
[s-roff.git] / ChangeLog
blob6b32226a3567067f3a7a86f8cc46d9be91c39a24
1 2004-12-08  Werner LEMBERG  <wl@gnu.org>
3         Import Keith's `pdfmark' package.  Integration is very preliminary.
5         * contrib/pdfmark/*: New files.
6         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
7         * NEWS: Updated.
9 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
11         Fix a bug with title handling in HTML.
13         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
14         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
15         length.
16         (html_printer::handle_tag_within_title): New function.
17         (html_printer::do_title): Use it.
19         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
20         (cov*tl-au-print): Emit `.eo.tl' tag.
22 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
24         * man/groff_char.man: Minor imrovements.
26 2004-12-04  Werner LEMBERG  <wl@gnu.org>
28         * src/preproc/eqn/eqn.man: Revised.
30 2004-11-25  Werner LEMBERG  <wl@gnu.org>
32         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
33         groff source files.
34         Include config.h.
35         Include limits.h.
36         Remove X_NOT_STDC_ENV conditional.
37         (Version_string, program_name): New global variables.
38         (groff_flag): Removed.
39         (MapFont): Updated.
40         (usage): Take a stream as argument.
41         Use `program_name'.
42         Update all callers.
43         (main): Add `long_options' array for `--help' and `--version'.
44         Make `-g' a dummy option.
45         Handle `-v' and unknown options.
46         Remove unused `position' variable.
48         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
49         (XLIBS): Add LIBGROFF.
51         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
52         New files.
54         * src/devices/xditview/Dvi.c (default_font_map): Split into three
55         parts to avoid compiler warning.
56         (resources): Don't initialize with `default_font_map'.
57         (ClassInitialize): Initialize first element of `resources'.
59         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
60         Removed.
62         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
63         src/utils/pfbtops/pfbtops.man: Revised, updated.
65         * configure.ac: Generate src/utils/xtotroff/Makefile.
66         * configure: Regenerated.
68 2004-11-24  Werner LEMBERG  <wl@gnu.org>
70         First fixes to get produce HTML.
72         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
73         attribute.
75         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
76         (HR, LI): Use `HTML</p>', not `HTML'.
78         * doc/webpage.ms: Minor updates.
80 2004-11-23  Larry Kollar  <kollar@alltel.net>
82         Add option -S grohtml to determine the file split level.
84         * src/devices/grohtml/post-html.cpp (split_level): New global
85         variable.
86         (html_header::determine_header_level): Use split_level.
87         (main): Handle `-S' command line option.
88         Sort options.
90         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
92         * src/devices/grohtml/grohtml.man: Document it.
93         Sort options.
95         * NEWS: Document it.
97 2004-11-23  Y T  <doarhop@hotmail.com>
99         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
100         the volume and number refer entries.
102 2004-11-22  Werner LEMBERG  <wl@gnu.org>
104         * src/devices/grohtml/html-table.cpp
105         (html_table::emit_table_header): Don't emit `cols' attribute which
106         doesn't exist in HTML 4.0 and is thus invalid.
108         * NEWS: More minor fixes and updates.
110 2004-11-18  Werner LEMBERG  <wl@gnu.org>
112         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
113         (HTML</p>): Minor clean-up.
115         * tmac/groff_www.man: Updated.
117         * src/devices/grohtml/grohtml.man: Revised and updated.
119         * NEWS: Updated.
121 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
123         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
124         Fix space insertion.
125         (html_printer::do_links): Fix rules generation around automatic
126         heading links.
128         * tmac/www.tmac (LK): Use HTML-TAG-NS.
129         (HR): Simplify.
130         No longer emit empty line for non-HTML devices.
132 2004-11-17  Werner LEMBERG  <wl@gnu.org>
134         * doc/Makefile.in (prepare_examples, webpage.html): Handle
135         `groff.css'.
137         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
138         prepare_examples, webpage.html): Handle `groff.css'.
140 2004-11-15  Werner LEMBERG  <wl@gnu.org>
142         * NEWS, README, doc/webpage.ms: Updated.
144         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
146 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
148         * src/include/printer.h (printer): Remove virtual function
149         `round_width'.
150         Update all source files.
152         * src/devices/grohtml/post-html.cpp (html_printer): New member
153         function `round_width'.
155 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
157         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
158         column key letter suffix.
160 2004-10-14  Werner LEMBERG  <wl@gnu.org>
162         * Makefile.in (check): Depend on `site.exp' and `docheck'.
163         (docheck): Run dejagnu's `runtest' if it exists.
164         (site.exp): Create dejagnu configuration file.
166         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
168 2004-10-13  Werner LEMBERG  <wl@gnu.org>
170         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
171         src/devices/grohtml/post-html.cpp (make_val,
172         html_printer::handle_state_assertion): Fix compiler warnings.
174         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
175         (diversion::diversion): Fix order of initializers.
177         * src/roff/troff/div.h: Don't include `mtsm.h'.
179         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
180         (environment::environment): Fix order of initializers.
181         (environment::make_tag, environment::construct_format_state): Fix
182         compiler warnings.
184         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
185         (input_iterator::input_iterator, macro::macro): Fix order of
186         initializers.
188         * src/roff/troff/mtsm.cpp: Include only necessary header files.
189         (state_set::add, state_set::val): Fix compiler warnings.
191         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
192         (bool_value_state, int_value_state, units_value_state,
193         string_value_state): Remove comma after last element which causes
194         an error with g++ 3.3.3.
196         * src/roff/troff/node.cpp: Include `stringclass.h'.
197         (hline_node::hline_node, vline_node::vline_node,
198         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
199         warnings.
200         (zero_width_node::zero_width_node): Fix order of initializers.
202         * src/roff/troff/node.h: Don't include `mtsm.h'.
203         (hmotion_node): Fix compiler warnings.
205         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
207 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
209         * doc/groff.css: New file.
211         * doc/webpage.ms: Use `groff.css'.
212         Other small fixes.
214         * tmac/an-old.tmac (need_eo_h): New number register.
215         (TH): Emit `.eo.tl' tag after title.
216         (SH): Set `need_eo_h'.
217         (an-trap): Handle `need_eo_h'.
218         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
220         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
221         (TL): Always start diversion.
222         Updated.
223         (@AI): Always call `par@reset'.
224         (@AB): Update code for -Thtml.
225         (cov*tl-au-print): Handle -Thtml.
226         (par@reset): Handle `need_eo_tl', `need_eo_h'.
227         (@IP): Simplified.
228         (@IT-html): Removed.
229         (@SH): Set `need_eo_h' for -Thtml.
230         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
231         Set `need_eo_tl'.
232         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
233         Set `need_eo_h' for -Thtml.
234         (@EQ, @EN): Don't handle -Thtml specially.
235         (par@load-init): Don't handle -Thtml specially.
237         * tmac/www.tmac (www:paraspace): New macro.
238         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
239         (HTML</p>, HTML-TAG-NEXT): New macros.
240         (HnE): Emit tag `.eo.h' instead of break.
241         (HR): s/HTML-NS/HTML/.
242         (www-end-nowhere): End diversion only if `www-html' not set.
243         Emit `.eo.tl' tag.
244         (ULS, ULE): s|HTML|HTML</p>|.
245         (LI): Call `www:paraspace'.
246         (HEAD): New macro.
248 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
250         * src/roff/troff/request.h (macro): Make `p' public.
251         New variable `is_a_diversion'.
252         New member function `is_diversion'.
255         * src/devices/grohtml/html.h (simple_output): New member function
256         `force_nl'.
258         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
259         computation of `total'.
260         (tabs::check_init): New function.
261         (html_table::emit_table_header): Emit style data.
262         (html_table::insert_column): Improved.
264         * src/devices/grohtml/html-table.h: Updated.
266         * src/devices/grohtml/html-text.cpp (html_text::html_text):
267         Initialize `start_space' with TRUE.
268         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
269         cases.
270         (html_text::flush_text): Set `start_space' flag.
271         (html_text::uses_indent, html_text::remove_para_space,
272         html_text::get_alignment): New functions.
273         (html_text::push_para): Updated.
274         (html_text::do_para): Check for empty argument.
275         Don't set `space_emitted'.
276         (html_text::do_space, html_text::emit_space): Updated.
278         * src/devices/grohtml/html-text.h (tag_definition): New variable
279         `really_issued'.
280         (html_text): New member function `uses_indent', `remove_para_space',
281         `get_alignment'.
283         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
284         function.
285         (simple_output:nl): Always emit `\n'.
287         * src/devices/grohtml/post-html.cpp: Include `string.h'.
288         (BASE_POINT_SIZE): Removed.
289         (base_point_size, head_info): New global variables.
290         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
291         `is_eo_h'.
292         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
293         tags, respectively.
294         (page::add_and_encode): Pass additional parameter for tag flag.
295         (assert_pos): New structure.
296         (assert_state): New class.
297         (html_printer): Remove `indentation', `prev_indent'.
298         Add variables `troff_indent', `device_indent', `temp_indent'.
299         Add variables `seen_indent', `next_indent', `seen_pageoffset',
300         `next_pageoffset', `seen_linelenght', `next_linelength',
301         `seen_center', `next_center', `seen_space', `seen_break', `as'.
302         Add member functions `do_check_center', `do_space', `do_head',
303         `get_troff_indent', `restore_troff_indent', `handle_assertion',
304         `handle_state_assertion', `do_end_para', `set_char_and_width'.
305         Change argument to `do_fill' to `char *'.
306         Update constructor.
307         (html_printer::emit_raw): Call `shutdown_table'.
308         Use new functions.
309         (html_printer::do_center): Simplified.
310         (html_printer::do_title): Improved.
311         (html_printer::write_header): Emit one more newline.
312         Use new functions.
313         (html_printer::do_heading, html_printer::do_indent,
314         html_printer::do_eol, html_printer::do_tab_ts,
315         html_printer::do_tab, html_printer::do_tab0,
316         html_printer::calc_po_in, html_printer::next_horiz_pos,
317         html_printer::remove_courier_tabs,
318         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
319         Updated.
320         (html_printer::do_linelength, html_printer::do_pageoffset,
321         html_printer::do_indentation, html_printer::do_tempindent,
322         html_printer::do_tab_te): Simplified.
323         (html_printer::do_pointsize): Check whether point size is really
324         associated a `.tl' tag.
325         (html_printer::do_break): Rewritten.
326         (html_printer::troff_tag): Improved.
327         (html_printer::flush_globs): Updated.
328         (html_printer::lookahead_for_tables): Handle `is_br'.
329         Use new functions.
330         (html_printer::set_char): Check `sbuf_style.f'.
331         (html_printer::write_navigation): Use string comparison.
332         (html_printer::~html_printer): Emit `head_info'.
333         (html_printer::special): Rewritten.
334         (get_str, make_val): New functions.
335         (main): New option `s' to set the base point size.
337         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
339 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
341         * src/roff/troff/node.cpp: New extern `debug_state'.
342         Include `stringclass.h' and `mtsm.h'.
343         Implement new classes and class members from `node.h'.
344         (real_output_file): Make `fp' public.
345         (troff_output_file): New variables `cur_div_level' and `tag_list'.
346         Update constructors.
347         (troff_output_file::really_print_line): Check whether we should push
348         the current troff state and use the state at the start of the
349         invocation of this diversion.
350         (troff_output_file::add_to_tag_list): New member function.
351         (node::add_char): Handle `glyph_comp_np'.
353         * src/roff/troff/node.h: Include `mtsm.h'.
354         (node): New variables `state', `push_state', `div_nest_level',
355         `is_special'.  Update constructors, all descendants.
356         Pass additional argument to `add_char' member function.
357         New virtual member functions `is_tag', `debug_node',
358         `debug_node_list'.  Update all descendants.
359         (tag_node): New class for handling tags.
360         (output_file): Add variable `state'.
362 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
364         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
365         providing a minimal troff state machine to emit meta tags for the
366         post-grohtml device driver.
368         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
369         files.
371 2004-10-09  Werner LEMBERG  <wl@gnu.org>
373         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
375 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
377         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
379         * src/roff/troff/div.h: Include `mtsm.h'.
380         (diversion): New variables `any_chars_added', `needs_push',
381         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
382         `saved_suppress_next_eol', `modified_tag'.
383         New virtual member function `is_diversion'.  Update all descendants.
385         * src/roff/troff/div.cpp (diversion::diversion,
386         macro_diversion::macro_diversion): Updated.
387         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
388         `suppress_next_eol'.
389         (top_level_diversion::space): Handle `curenv->seen_space'.
390         (page_offset): Update tag handling.
391         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
393         * src/roff/troff/env.h (environment): Make `tabs' public.
394         Remove `ignore_next_eol', `emitted_node'.
395         Update `output_line', `output'.
396         New variables `seen_space', `seen_eol', `suppress_next_eol',
397         `seen_break'.
398         New member functions `construct_state', `make_tag',
399         `construct_format_state, `construct_new_line_state,
400         `dump_troff_state'.
401         Remove `add_html_tag', `make_html_tag'.
403         * src/roff/troff/env.cpp: New externs `suppress_push',
404         `get_diversion_state', `global_diverted_space'.
405         (pending_output_line): New variable `was_centered'.
406         Update constructor and all callers.
407         (pending_output_line::output): Call `curenv->construct_format_state'.
408         (environment::environment, environment::copy): Updated.
409         (environment::output): Handle `was_centered'.
410         (environment::add_char): Handle construct and diversion state.
411         (environment::add_node): Handle construct state.
412         (environment::newline): Handle `was_centered'.
413         (environment::output_line): Updated.
414         (environment::possibly_break_line): Updated.
415         Update tag handling.
416         (environment::add_html_tag): Replaced with...
417         (environment::make_tag): New function.
418         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
419         (environment::dump_troff_state): New debugging function.
420         (environment::construct_state, environment::construct_format_state,
421         environment::construct_new_line_state): New functions.
422         (environment::do_break): Updated.
423         Handle `global_diverted_space'.
424         (environment::handle_tag): Update tag handling.
425         (point_size, fill, do_break_request): Don't call `add_html_tag'.
426         (no_fill): Don't call `add_html_tag'.
427         Set `suppress_next_eol'.
428         (center, right_justify, line_length, indent, temporary_indent,
429         set_tabs):
430         Update tag handling.
432         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
433         (input_iterator): New variables `is_diversion', `diversion_state'.
434         Update constructors.
435         (input_stack): New member functions `get_div_level',
436         `get_diversion_state', `check_end_diversion'.
437         New variables `div_level', `diversion_state'.  Initialize them.
438         (suppress_push, global_diverted_space): New global variables.
439         (input_stack::finish_get, input_stack::finish_peek,
440         input_stack::remove_boundary, input_stack::end_file,
441         input_stack::clear, input_stack::pop_macro): Call
442         `check_end_diversion'.
443         (input_stack::push): Handle `div_level' and `diversion_state'.
444         (get_diversion_state): New function.
445         (diverted_space_node::reread): Handle `global_diverted_space'.
446         (macro::macro): Update constructors.
447         (macro::is_diversion): New function.
448         (macro::operator=): Set `is_a_diversion'.
449         (string_iterator): New member function `is_diversion'.
450         (string_iterator::string_iterator): Update constructors.
451         (string_iterator::fill): Set `div_nest_level'.
452         (macro_iterator): New member function `is_diversion'.
453         (do_if_request): Handle `suppress_push'.
454         (tag, taga): New functions.
455         (init_input_requests): Add `tag' and `taga' requests.
457 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
459         * src/include/font.h (font): New member function
460         `get_image_generator'.
461         New variables `unscaled_charwidths' and `image_generator'.
463         * src/libs/libgroff/font.cpp (font::get_width): Always return the
464         character's unscaled width if `font::unscaled_charwidths' is set.
465         (font::get_image_generator): New function.
466         (font::load_desc): Check the `unscaled_charwidths' and
467         `image_generator' keywords.
469         * src/libs/libgroff/fontfile.cpp: Initialize
470         `font::unscaled_charwidths' and `font::image_generator'.
472         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
474         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
476         * man/groff_font.man: Document `unscaled_charwidths' and
477         `image_generator'.
479         * src/preproc/html/pre-html.cpp: Include `device.h'.
480         (image_gen): New global variable.
481         (imageList::createPage): Use `image_gen'.
482         (main): Use `image_generator' keyword.
484 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
486         * tmac/html.tmac: Handle \[sqrtex].
488 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
490         * src/include/printer.h (printer): New virtual method `round_width'.
492         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
493         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
494         src/devices/grotty/tty.cpp (printer::round_width): New function
495         member.
497         * src/devices/grohtml/post-html.cpp (printer::round_width): New
498         function member.
499         (html_printer::set_numbered_char): Use it.
501 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
503         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
505         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
507         * configure: Regenerated.
509         * Makefile.in (GHOSTSCRIPT): New variable.
510         (MDEFINES): Add GHOSTSCRIPT.
512 2004-10-03  Werner LEMBERG  <wl@gnu.org>
514         * INSTALL.gen: Updated (taken from texinfo CVS).
516 2004-09-28  Werner LEMBERG  <wl@gnu.org>
518         * NEWS: Updated.
520 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
522         * tmac/groff_www.man: Revised and updated.
524 2004-09-26  Werner LEMBERG  <wl@gnu.org>
526         Fix \$@ and \$* to handle any number of arguments.
528         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
529         characters.
531         * src/roff/troff/input.cpp (input_iterator::internal_level):
532         Removed.
533         (input_stack): New member functions `increase_level' and
534         `decrease_level'.
535         (input_stack::get_level): Don't use `internal_level'.
536         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
537         (end_quote_iterator): Completely removed.
538         (interpolate_arg): Build string for \$@ and \$* which is then
539         pushed onto the input stack.
541 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
543         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
544         2004-09-19.
546 2004-09-23  Werner LEMBERG  <wl@gnu.org>
548         * tmac/an-old.tmac (ne): Using default scaling operator.
550 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
552         This change implements the following features:
554         PORPHANS
555           New numeric register: Defines number of lines following LP, PP,
556           QP, IP or XP, which must be kept together, before any automatic
557           page break.  If insufficient space remains on the current page, a
558           page break is forced before the new paragraph begins.
560         HORPHANS
561           New numeric register: Sets number of lines of following paragraph
562           which must be kept with a heading, defined by NH or SH, before any
563           automatic page break.  If insufficient space remains on the
564           current page, a page break is forced before the heading.
566         GROWPS
567           (Thanks to Joerg van den Hoff, for this idea).
569           New numeric register: Sets the first level of heading (set with
570           NH), which will keep the same point size as body text; e.g. if
571           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
572           point size specified by \n[PS], but .NH 2 and .NH 1 will have
573           progressively larger point sizes, determined by \n[PSINCR] (see
574           below).
576         PSINCR
577           New numeric register: Sets the point size increment for each level
578           of heading, (set with NH), below the threshold level set by
579           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
580           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
581           and all other levels will remain at 10pt, (because \n[PS] = 10).
583         SH
584           Existing macro now accepts a numeric argument, to make heading
585           size match that of NH with same argument value, when the
586           GROWPS/PSINCR feature is enabled.
588         SN-DOT
589           New string, set by NH macro, replaces the existing (undocumented)
590           use of SN, to represent the assigned section number.
592         SN-NO-DOT
593           New string, set by NH macro, represents the assigned section
594           number, but omits the terminal period (periods at intermediate
595           levels are retained).
597         SN
598           String set by NH macro, originally undocumented, now implemented
599           as an alias for SN-DOT (which reproduces original behaviour).
601         * tmac/s.tmac (PORPHANS): New register.
602         (par*start): Use it.
603         (HORPHANS, GROWPS, PSINCR): New registers.
604         (SH-NO-TAG, @SH): Use them.
605         (@NH): Improved.
607 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
609         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
610         of `Ds' and `De' macros.
612 2004-09-10  Werner LEMBERG  <wl@gnu.org>
614         In tbl, handle \a as an interpreted leader character if in
615         compatibility mode.
617         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
618         LEADER_CHAR): New macros.
619         (compatible_flag): New declaration.
621         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
622         LEADER_3, and LEADER_4 to `state'.
623         (table_input::get): Handle `\a'.
625         * src/preproc/tbl/table.cpp (PREFIX): Removed.
626         (LEADER_REG): New macro.
627         (table::init_output): Define LEADER_REG string register if in
628         compatibility mode.
630         * src/preproc/tbl/tbl.man: Document it.
632 2004-08-18  Werner LEMBERG  <wl@gnu.org>
634         * tmac/doc.tmac (An): Fix error message.
636 2004-08-06  Werner LEMBERG  <wl@gnu.org>
638         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
639         file can't be opened.  UNIX tbl has the same behaviour.
641 2004-08-05  Y T  <doarhop@hotmail.com>
643         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
644         (DBRead): If in compatibility mode, take into account the text
645         when computing figure boundaries.
647 2004-08-05  Werner LEMBERG  <wl@gnu.org>
649         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
650         from Tadziu Hoffmann.
652 2004-08-03  Werner LEMBERG  <wl@gnu.org>
654         * doc/meref.me: Document `_M' register.
656 2004-08-03  Martin Husemann  <martin@duskware.de>
658         Make hpftodit work correctly on big-endian systems.
660         * src/utils/hpftodit/hpftodit.cpp (File): New method
661         `get_uint32(char *)'.
662         (entry): New member `orig_value'.
663         (read_tags): Use new method.
664         (output_font_name, read_and_output_pcltypeface, dump_ascii):
665         Updated.
667 2004-08-01  Werner LEMBERG  <wl@gnu.org>
669         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
670         are already in X11's `macros.t' file.
672 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
674         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
675         Fix casting bug.
676         (read_and_output_pcltypeface): Handle strings with length <= 4.
678 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
680         * tmac/s.tmac (pg@top): Don't save `PO' register.
681         (pg*end-col, pg*end-page): Directly use `PO' register.
683 2004-07-27  Werner LEMBERG  <wl@gnu.org>
685         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
687         * src/preproc/refer/refer.cpp (output_references): Check for
688         empty hash table.
689         * src/preproc/refer/refer.man: Improve documentation of
690         `bibliography' command.
692 2004-07-26  Werner LEMBERG  <wl@gnu.org>
694         Add requests `fcolor' and `gcolor'.
696         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
697         New functions.
698         (init_env_requests): Add `fcolor' and `gcolor'.
700         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
702         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
703         Document new requests.
705 2004-07-24  Werner LEMBERG  <wl@gnu.org>
707         Add support for fractional point sizes in ms macros.  A value for
708         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
709         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
711         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
712         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
714         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
716 2004-07-19  Werner LEMBERG  <wl@gnu.org>
718         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
719         Update constructor.
720         (do_for, for_input::get, for_input::peek): Handle negative `by'.
721         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
723 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
725         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
726         * tmac/groff_mdoc.man: Updated.
728 2004-07-05  Werner LEMBERG  <wl@gnu.org>
730         * doc/groff.texinfo: Further improve documentation of `hcode'.
732 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
734         Improve appearance of arrows in pic.
736         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
737         arrow head thin.
738         Use two line segments for drawing non-filled arrow head.
739         (line_object::print, spline_object::print): Shorten line length to
740         avoid arrow sticking.
741         (arc_object::print): Take arrow direction into account.
743 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
745         * tmac/groff_www.man: Update documentation of .MPIMG.
747 2004-07-03  Werner LEMBERG  <wl@gnu.org>
749         * tmac/an-old.tmac (RI): Always start with font `R'.
750         (RI, IR): Properly end with font `R'.
752 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
754         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
755         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
756         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
757         Don't pass more than six arguments to .R, .I, .B, etc., for
758         compatibility with traditional troff macros.
760 2004-07-02  Werner LEMBERG  <wl@gnu.org>
762         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
763         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
764         Update all users.
765         (PUSH_COMP_MODE): New internal character constant.
766         Update all users.
768         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
769         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
770         (token::next, macro::append): Handle PUSH_COMP_MODE.
771         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
772         POP_GROFFCOMP after each of the decoded arguments to make them
773         independent from the compatibility mode status.
774         (comp_mode): Add `COMP_ENABLE'.
775         (do_define_string, do_define_macro): Handle COMP_ENABLE.
776         (define_string, append_string, define_macro, define_indirect_macro,
777         append_macro, append_indirect_macro): Handle `compatible_flag'.
778         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
780         * man/groff_diff.man, doc/groff.texinfo: Updated.
782 2004-07-01  Werner LEMBERG  <wl@gnu.org>
784         * doc/groff.texinfo: Improve documentation of `hcode'.
785         Use @documentencoding and convert document to latin-1; to do that
786         make latin characters active and assign proper macros (within a
787         @tex...@end tex environment).
788         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
789         * doc/Makefile.sub (groff): Ditto.
791 2004-06-29  Werner LEMBERG  <wl@gnu.org>
793         Implement two new conditional operators `F <name>' and `S <name>'
794         which check whether <name> is a valid font or style, respectively.
796         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
797         (text_file::text_file): Updated.
798         (text_file::error): Don't emit message if `silent' is set.
799         (font::load_font): Add optional third argument (which is directly
800         passed to `load'.
801         (font::load): Add optional second argument to check the header of
802         a font only, without emitting warning or error messages.
803         * src/include/font.h (font): Updated.
805         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
806         conditionals.
807         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
808         fourth argument to check a font without mounting.
809         (check_font, check_style): New functions.
810         * src/roff/troff/node.h: Updated.
812         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
813         Updated.
815 2004-06-27  Werner LEMBERG  <wl@gnu.org>
817         Implement new string-valued register `.sty' to return the current
818         style name.
820         * env.cpp (environment::get_style_name_string): New function.
821         (init_env_requests): Add `.sty' register.
822         * env.h (environment): Updated.
823         * node.cpp (font_info): Make `get_style_name' a friend.
824         (get_style_name): New function.
825         * node.h: Updated.
827         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
828         Updated.
830 2004-06-15  Werner LEMBERG  <wl@gnu.org>
832         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
833         `nospaces' option.
835 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
837         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
838         and \n[mo] to avoid dependency on current date.
840 2004-06-08  Werner LEMBERG  <wl@gnu.org>
842         * Makefile.sub (install_data): New target.
844 2004-06-04  Werner LEMBERG  <wl@gnu.org>
846         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
848 2004-06-03  Werner LEMBERG  <wl@gnu.org>
850         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
851         order of libraries.
852         (install_data): Add $(srcdir).
854         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
855         libraries.
857 2004-06-02  Werner LEMBERG  <wl@gnu.org>
859         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
860         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
861         Add test for Xmu library.
862         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
863         GROFF_APPRESDIR_DEFAULT): New macros.
865         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
866         and GROFF_APPRESDIR_DEFAULT.
868         * configure: Regenerated.
870         * Makefile.in (appresdir): New variable.
871         (MDEFINES): Add appresdir.
873         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
874         -Xt.
875         (install_data, uninstall_sub): New targets to handle GXditview.ad.
877         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
878         `$(srcdir)/eign', not `eign'.
880         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
882         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
883         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
884         Protect (g)xditview with `\%' to avoid hyphenation.
885         Other minor formatting.
887 2004-06-01  Werner LEMBERG  <wl@gnu.org>
889         Integrate gxditview into groff's standard directory hierarchy.
891         * src/xditview/*: Moved to ...
892         * src/devices/xditview/*: Here.
893         Moved DviChar.h and XFontName.h to src/include.
894         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
895         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
896         Moved xtotroff.c to new directory src/utils/xtotroff.
897         Provide proper Makefile.sub files (reusing the stuff from
898         Imakefile.in).
899         DESC renamed to DESC.in.
900         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
901         Converted everything from K&R to ANSI C.
902         Decorated with const where appropriate.
903         Cast string constants with `String' and `char *' where appropriate.
904         Made it compile with C++ (used as a C compiler).
905         Removed other minor compiler warnings.
907         * src/devices/xditview/device.c: Include config.h, string.h, and
908         defs.h.
909         Don't declare `exit', `strtok', `strchr', and `getenv'.
910         (FONTPATH): Remove.
912         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
913         `XFormatFontName'.
915         * src/devices/xditview/xditview.c: Include config.h.
916         Include stdio.h earlier.
917         Protect declaration of `popen' and `pclose' with
918         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
919         Replace `caddr_t' with `XtPointer'.
920         (MakePromptFunc): New typedef.
921         (DoPrint): Use RETSIGTYPE.
922         (promptfunction): Change type to MakePromptFunc.
923         (MakePrompt): Use MakePromptFunc for third argument.
924         (xmalloc): Removed.
926         * src/devices/xditview/ad2c: Add casts to `String'.
928         * src/include/XFontName.h (XFontNameString): Don't use array
929         notation.
930         Add prototypes for `XParseFontName', `XFormatFontName',
931         `XCompareFontName', and `XCopyFontName'.
933         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
934         `XFontName.h'.
936         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
937         Don't declare `XParseFontName' and `XFormatFontName'.
938         (xmalloc): Removed.
939         (main): Remove `optind' and `optarg'.
941         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
942         (to select programs which need X).
943         Make XDEVIDIRS depend on `FORCE'.
944         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
945         X support).
946         (MDEFINES): Updated.
947         (LIBDIRS): Use XLIBDIRS.
948         (CPROGDIRS): Use XPROGDIRS.
949         (DEVDIRS): Remove font directories for gxditview.
950         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
951         (EXTRADIRS): Remove src/xditview.
953         * Makefile.sub (DISCLEANFILES): Updated.
955         * Makefile.comm (LIBXUTIL): New variable.
956         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
957         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
959         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
961         * aclocal.m4 (GROFF_X11): New function.
963         * configure.ac: Call GROFF_X11.
964         Don't create src/xditview/Imakefile.
965         Don't emit notice how to build gxditview.
967         * configure: Regenerated.
969         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
971 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
973         * Makefile.in (CPPFLAGS): Define.
974         (MDEFINES): Add CPPFLAGS.
976 2004-05-27  Werner LEMBERG  <wl@gnu.org>
978         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
980 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
982         Fix problems with `friend name injections'.
984         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
985         make_script_box), src/roff/troff/div.h (end_diversions),
986         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
987         change 2004-04-08.
989 2004-05-25  Bernd Warken  <bwarken@mayn.de>
991         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
993 2004-05-25  Werner LEMBERG  <wl@gnu.org>
995         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
996         src/libs/libgroff/color.cpp: Include lib.h.
998 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1000         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1001         through Forte 6u1, and for how to get GNU make on Solaris.
1003 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1005         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1006         by Paul Eggert.
1008 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1010         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1011         rule.
1013 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1015         * REVISION: Set to 2.
1017         * aclocal.m4 (GROFF_STDINT_H): Removed.
1018         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1020         * configure.ac: Updated.
1021         * configure, src/include/config.hin: Regenerated.
1023         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1024         inttypes.h conditionally.
1026 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1028 Version 1.19.1 released
1029 =======================
1031 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1033         * src/preproc/refer/label.y (same_author_last_name,
1034         same_author_name): Handle empty sort keys.
1036 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1038         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1039         tmac/TODO: Updated.
1041         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1042         doc-str-Lb-librt): Reset font.
1043         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1044         Provide `doc-str-Lb' to reset font.
1045         * tmac/groff_mdoc.man: Updated.
1047 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1049         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1050         snprintf versions which don't conform to ANSI C 99 (this is,
1051         counting the string's trailing null byte in the return value).
1053 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1055         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1056         that all implementations of sprintf handle null pointers correctly.
1058 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1060         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1061         Document `.U' register.
1063         * src/roff/troff/env.cpp (environment::mark_last_line)
1064         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1066 2004-05-04  Larry Kollar  <kollar@alltel.net>
1068         New read-only register `.U'; it returns 1 in safer mode and 0
1069         otherwise.
1071         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1072         register.
1074 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1076         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1078 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1080         * src/include/font.h (font): Use `int' for ch_index.
1081         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1082         font::compact): Updated.
1084         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1085         warnings.
1087         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1088         (hyphen_word): Fix compiler warnings.
1089         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1090         `char'.
1091         Update all callers.
1092         (get_delim_number, get_line_arg): Change second argument type to
1093         `unsigned char'.
1094         (macro_header::copy, token::next, do_define_string,
1095         do_define_character, substring_request, asciify_macro,
1096         unformat_macro, read_size, non_interpreted_node::interpret,
1097         while_request, main: Fix compiler warnings.
1098         (read_color_draw_node): Initialize `col'.
1100         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1101         `start_col' and `end_col' of type `int'.
1102         (vertical_rule): Make `col' of type `int'.
1104         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1105         for EOF.
1107         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1108         New arrays.
1109         (format_serial): Use them to remove dependency on ASCII.
1111         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1112         compiler warning.
1113         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1114         Ditto.
1116         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1117         compiler warnings.
1118         (glyph): Change type of `hpos' to `int'.
1120         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1121         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1123         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1125         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1127 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1129         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1130         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1131         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1132         `double' instead of `float' everywhere.
1133         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1134         everywhere.
1135         (main): Add return value.
1136         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1137         everywhere.
1138         Update all user functions.
1140         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1141         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1142         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1143         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1144         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1145         src/roff/troff/input.cpp, src/roff/troff/request.h,
1146         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1147         declarations.
1149         * src/utils/indxbib/signal.c: Include stdlib.h.
1151 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1153         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1154         before the first page.
1156 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1158         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1159         (doc-operating-system-*): Updated.
1160         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1161         (doc-str-Lb-*): Add more library names.
1163 2004-04-10  Art Haas  <ahaas@airmail.net>
1165         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1166         use anonymous type.
1168 2004-04-09  Art Haas  <ahaas@airmail.net>
1170         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1172 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1174         * arch/misc/shdeps.sh: Generate better comment for sed script.
1176 2004-04-08  Art Haas  <ahaas@airmail.net>
1178         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1179         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1180         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1181         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1182         (polyfill), src/preproc/grn/main.cpp (polyfill),
1183         src/preproc/refer/command.cpp (command_table),
1184         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1185         gcc 3.5 doesn't like).
1187 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1189         Removing many compiler warnings.  groff should now compile with
1190         a C++ compiler used for C files also.  [Simple variable renamings
1191         to avoid shadowing aren't logged in detail.]
1193         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1194         (draw_dvi_printer::draw) ['c']: Enclose in block.
1196         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1197         (page::add_line): Fix typos.
1198         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1200         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1201         Some local variable renamings.
1202         * src/devices/grolbp/lbp.h: Some local variable renamings.
1204         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1205         variable renamings.
1207         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1208         Remove redundant local variable declaration.
1209         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1210         Don't use `caddr_t' but `void *'.
1211         Enclose functions with `extern "C"' for C++.
1213         * src/libs/libdriver/input.cpp (remember_filename,
1214         remember_source_filename): Use cast for string constant.
1216         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1217         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1218         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1219         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1220         style.
1221         Enclose functions with `extern "C"' for C++.
1222         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1223         (needs_quoting): Return `int'.
1224         (quote_arg): Add proper casts to malloc and realloc.
1225         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1226         various MS Windows environments.
1227         (spawnvp_wrapper): Add proper cast to malloc.
1229         * src/preproc/eqn/box.h: Remove redundant declarations of
1230         `make_script_box', `make_mark_box' and `make_lineup_box'.
1231         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1232         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1233         variable renamings.
1235         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1236         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1237         (dx, dy): Renamed functions to...
1238         (deltax, deltay): This.
1239         * src/preproc/grn/main.cpp: Some local variable renamings.
1240         (deffont): Add `const'.
1241         (initpic, conv): Use cast for string constant.
1243         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1244         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1245         (char_buffer::run_output_filter): Second argument is unused.
1246         * src/preproc/html/pushback.cpp: Some local variable renamings.
1248         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1249         * src/preproc/pic/object.cpp: Some local variable renamings.
1251         * src/preproc/refer/label.y (lookup_label): Remove redundant
1252         declaration of local variable.
1254         * src/preproc/soelim.cpp: Remove redundant declaration of
1255         `interpret_lf_args'.
1257         * src/preproc/tbl/main.cpp: Some local variable renamings.
1259         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1260         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1261         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1262         Don't use C++-style comments.
1264         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1265         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1266         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1267         renamings.
1268         * src/roff/troff/div.h: Remove redundant declaration of
1269         `end_diversions'.
1270         * src/roff/troff/troff.h: Remove redundant declaration of
1271         `cleanup_and_exit'
1272         * src/roff/troff/input.cpp: Remove redundant declaration of
1273         `handle_first_page_transition' and `process_input_stack'.
1275         * src/utils/hpftodit.cpp: Some local variable renamings.
1277         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1278         for C++.
1279         Don't define RETSIGTYPE.
1280         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1282         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1283         (error): Use `const' in argument.
1284         (main): Remove redundant declaration of `optind'.
1285         Move declaration of `Version_string' to top-level.
1287         * PROBLEMS: Document difficulties compiling signal.c if a C++
1288         compiler is used for C.
1290 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1292         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1294 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1296         Make scripts like nroff.sh and neqn.sh portable across various
1297         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1298         non-POSIX path separators.  The idea is to extend those scripts to
1299         decide at run-time (of the script) which path separator to use.
1301         * arch/misc/Makefile.sub: New file.
1302         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1303         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1304         a proper definition of the variable `GROFF_RUNTIME'.
1306         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1307         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1308         (PROGDEPDIRS): New variable.
1309         `FORCE' it.
1310         (PROGDIRS): Add PROGDEPDIRS.
1312         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1313         Don't substitute @SEP@ and @BINDIR@.
1314         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1315         (PATH): Use GROFF_RUNTIME.
1317         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1318         Don't substitute @SEP@ and @BINDIR@.
1319         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1320         (PATH): Use GROFF_RUNTIME.
1322 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1324         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1325         Cygwin which doesn't handle stderr correctly.
1327 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1329         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1330         against empty argument.  Problem reported by <cgd@broadcom.com>.
1332 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1334         * Makefile.in (SEP): Replaced with...
1335         (RT_SEP, SH_SEP): Separators for the target platform's native path
1336         separator and the build environment, respectively.
1337         (fontpath, tmacpath): Use RT_SEP.
1338         (MDEFINES): Updated.
1340         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1341         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1342         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1343         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1345 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1347         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1348         reduce alignment problems with newer printers which use built-in
1349         TrueType fonts (instead of the older Intellifonts).  The ideal
1350         solution is to provide a second set of groff metric files, but this
1351         is extremely time-consuming to produce, given that HP's metric
1352         files are very rudimentary.
1354 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1356         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1357         s/operand/argument/ in error message.
1359 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1361         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1362         is in use.
1364 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1366         * tmac/s.tmac (XE): Fix error message.
1368 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1370         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1371         New macros.
1373         * src/roff/groff/pipeline.c: Declare strcasecmp.
1374         (run_pipeline) [_WIN32]: Use function name variants which don't
1375         start with `_'.
1376         Fix stream handling.
1378 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1380         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1381         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1382         for platforms which use the native Win32 runtime libraries.
1383         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1385         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1386         QUOTE_ARG_REALLOC_ERROR): Fix string.
1388         * src/preproc/html/pre-html.cpp: Remove declaration of
1389         `spawnvp_wrapper'.
1390         Don't use __MINGW32__.
1391         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1392         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1393         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1394         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1395         calls to `set_redirection' and `WAIT'.
1396         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1397         Fix calls to `set_redirection' and `save_and_redirect'.
1398         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1399         to `set_redirection' and `save_and_redirect'.
1400         (usage): Fix message.
1401         (makeTempFiles, main): Use `DEBUG_FILE'.
1403 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1405         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1407 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1409         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1410         quoting for MSVC's spawn* and exec* functions.
1411         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1412         spawnvp with proper quoting for MSVC.
1414         * src/libs/libgroff/assert.cpp (program_name),
1415         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1416         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1418         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1420         * src/include/error.h (program_name): Declare as `extern "C"'.
1421         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1423 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1425         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1426         spawnvp_wrapper.
1427         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1429 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1431         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1432         variable.
1433         (sbasename) [__MSDOS__ || ...]: New function.
1434         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1435         generic algorithm.
1436         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1437         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1438         of XXX.
1439         Use STDOUT_FILENO instead of hardcoded file handle.
1440         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1442 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1444         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1445         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1447 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1449         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1450         new font and mapping files.
1452 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1453             Keith Marshall  <keith.d.marshall@ntlworld.com>
1455         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1456         an input pipe.  This is needed for the MSVC compiler to make troff's
1457         `-o' option work.
1459         * src/roff/troff/div.cpp: Include nonposix.h.
1460         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1462 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1464         * font/devlj4/generate/special.awk: New script.
1465         * font/devlj4/generate/Makefile (S): Use special.awk.
1466         * font/devlj4/*: Regenerated, including the following new files:
1467         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1468         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1469         * NEWS: Document new lj4 fonts and revised hpftodit.
1471 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1473         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1475 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1477         * src/libs/libgroff/progname.cpp: Replaced with...
1478         * src/libs/libgroff/progname.c: New file.
1479         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1481 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1483         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1485 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1487         * font/devlj4/generate/wingdings.map,
1488         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1489         Use groff glyph names where possible.
1490         * src/devices/grolj4/lj4_font.man: Minor updates.
1492 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1494         * tmac/www.tmac (DC): Handle TTY devices.
1496         * doc/webpage.ms: Document viewCVS from ffii.org.
1497         * NEWS, README: Updated.
1499         * src/roff/groff/groff.man: Mention lj4_font man page.
1501         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1502         variables.
1503         (FONTS): Add SYMBOL and WINGDINGS.
1504         (SYMBOL, WINGDINGS): New targets.
1506 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1508         * src/devices/grolj4/lj4_font.man: New man page.
1509         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1510         * src/devices/grolj4.man: Mention lj4_font man page.
1512         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1513         * src/utils/hpftodit/hpftodit.man: Document it.
1514         (CW): New macro.
1515         Remove details about fonts (which are now in lj4_font.man).
1517         * font/devlj4/generate/symbol.map,
1518         font/devlj4/generate/wingdings.map: New files.
1520 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1522         * README: Mention ffii's viewcvs access.
1524 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1526         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1528 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1530         Revert most of the change from 2004-01-03 to better control used
1531         symbol sets.
1533         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1534         (text_symbol_sets, special_symbol_sets): New arrays.
1535         (symbol_set_table): New global variable.
1536         (read_symbol_sets): Use search order given in the text_symbol_sets
1537         and special_symbol_sets arrays.  If command line flag -a is not
1538         given, search both arrays.
1539         (output_charset): Require x_height_tag only for command line flag -i.
1541 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1543         Implement string-valued registers \n[.m] and \n[.M] to return the
1544         name of the current drawing and background color, respectively.
1546         * src/roff/troff/symbol.h: Moved to...
1547         * src/include/symbol.h: Here.
1548         Small fixes to make it work outside of the `troff' directory.
1549         * src/roff/troff/symbol.cpp: Moved to...
1550         * src/libs/libgroff/symbol.cpp: Here.
1551         Small fixes to make it work outside of the `troff' directory.
1553         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1554         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1555         Updated.
1557         * src/include/color.h: Include symbol.h.
1558         (color): Add new field `nm'.
1559         * src/libs/libgroff/color.cpp (color::color): Updated.
1561         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1562         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1563         src/roff/troff/reg.cpp: Don't include symbol.h.
1565         * src/roff/troff/env.cpp: Don't include symbol.h.
1566         (environment::get_glyph_color_string,
1567         environment_get_fill_color_string): New member functions.
1568         (init_env_requests): Handle `.m' and `.M' registers.
1569         * src/roff/troff/input.cpp: Don't include symbol.h.
1570         (default_symbol): Moved to symbol.cpp/symbol.h.
1571         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1572         to color constructor.
1573         * src/roff/troff/env.h: Updated.
1575         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1576         Document new registers.
1578 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1580         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1581         space_node::nbreaks): Protect against zero `next' field.
1583 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1585         In hpftodit, use the symbol sets offered in the TFM.
1587         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1588         (symbol_set, text_symbol_sets, special_symbol_sets,
1589         symbol_set_table): Removed.
1590         (get_printcode): Removed.
1591         (read_symbol_sets): Initialize `symbol_set' field with
1592         `NO_SYMBOL_SET'.
1593         Simplify code to just use the `kind' value.
1594         (output_charset): Improve output formatting.
1595         (dump_symbols): Simplified.
1597 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1599         * font/devlj4/generate/text.map: Add more MSL numbers.
1601 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1603         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1604         (text_symbol_sets): Add more symbol sets.
1605         (debug_flag): New static variable (moved from `main').
1606         (get_printcode, show_symset): New functions.
1607         (main): Remove `debug_flag'.
1608         (output_charset): Use `show_symset'.
1609         (dump_symbols):  Use `show_symset'.
1610         Print symsets for all glyphs.
1611         (read_map): Actually call `unicode_to_ucode_make' but this time
1612         correctly.
1614 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1616         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1617         Fix placement of comments.
1619 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1621         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1622         option `-d' is given.
1623         (output_charset): Improve warning messages to give more information.
1624         (dump_symbols): Make information more precise.
1625         (usage): Updated.
1626         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1627         appear as-is and shouldn't be decomposed.
1629 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1631         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1632         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1633         (FONTS): Add TrueType font families Arial and Times New Roman.
1634         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1635         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1636         `fl'.
1638 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1640         * test-groff.in (SEP): Quote value.
1641         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1642         `tem' to `char*' to avoid deallocation of a pointer to a constant
1643         object which some compilers don't like.
1645 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1647         * font/devlj4/generate (text.map, special.map): Rewritten to work
1648         with the new hpftodit version.
1650 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1652         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1653         set and 8bit character code for all glyphs also.
1655 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1657         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1659 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1661         More fixes for MSVC compiler.
1663         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1664         $(SEP).
1666         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1667         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1668         (getpid) [_MSC_VER]: Remove.
1669         Include direct.h and process.h conditionally.
1671         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1672         parentheses for a_delete.
1674         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1676         * test-groff: Replaced with...
1677         * test-groff.in: This new template to handle path separator
1678         properly.
1680         * configure.ac: Check for direct.h and process.h.
1681         Generate test-groff script.
1682         * configure, src/include/config.hin: Regenerated.
1684 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1686         Add integral extension glyph.
1687         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1689         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1691         * font/devps/generate/textmap: Provide entry for `integralex' to
1692         override (old) PUA value of the AGL.
1693         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1694         * font/devps/*: Regenerated.
1696         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1697         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1699 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1701         Add forgotten `coproduct' symbol (already available for DVI).
1703         * font/devhtml/R.proto, font/devps/generate/textmap,
1704         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1705         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1706         U+2210 (\[coproduct]).
1708 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1710         hpftodit has been extended to handle TrueType metric files and
1711         more glyphs.  See hpftodit.man for more details.
1713         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1714         ctype.h, and unicode.h.
1715         s/msl/charcode/ everywhere since we now handle Unicode values also.
1716         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1717         Use it where appropriate.
1718         (MULTIPLIER): Replaced with...
1719         (multiplier): New global static variable.
1720         (scale): Updated.
1721         (tag_type): Add more TFM tags.
1722         (tag_name): New array.
1723         (ENUM_TYPE, FLOAT_TYPE): Removed.
1724         (BYTE_TYPE): New value assigned.
1725         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1726         (text_symbol_sets, special_symbol_sets): Extended to cover more
1727         sets.
1728         (check_type): Add return value.
1729         (check_units): Add parameters to get ppi and upem values.
1730         Handle TrueType TFM data.
1731         (output_font_name): New function.
1732         (output_charset): Add parameter to handle TFM type.
1733         Handle TrueType TFMs also.
1734         (em_fract): New macro.
1735         (dump_tags): Be much more verbose and handle more tags.
1736         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1737         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1738         functions.
1739         (read_map): Add parameter to handle TFM type.
1740         Handle both MSL and Unicode mappings.
1741         (main): Add two new command line options `-a' and `-q'.
1742         Updated to make use of new functions.
1743         (usage): Updated.
1745         * src/utils/hpftodit/hpuni.cpp: New file.
1747         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1748         Updated.
1750 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1752         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1754 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1756         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1757         by Michail Vidiassov <master@iaas.msu.ru>.
1759 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1761         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1762         and u0049_0307.
1763         Add missing latin-2 glyphs.
1764         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1766         * tmac/troffrc: Load `composite.tmac' earlier.
1768         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1769         u00{53,73}_0327, and u0049_0307.
1770         * tmac/X.tmac: Add u00{47,67}_0306.
1771         * tmac/tty-char.tmac: Use composite glyph names for readability.
1773         * NEWS: Updated.
1775         * src/include/unicode.h: Remove `extern' keywords.
1777 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1779         * tmac/latin5.tmac: New file.
1781 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1783         Add some glyphs needed for Turkish.
1785         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1786         and u0049_0307.
1788         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1789         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1790         u00{53,73}_0327, and u0049_0307.
1792 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1794         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1795         from 2001-10-04.
1796         Remove trailing zeros.
1798 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1800         Make \? transparent to end-of-sentence recognition.
1802         * src/roff/troff/input.cc (non_interpreted_node): Add
1803         `ends_sentence' member function.
1805 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1807         * doc/groff.texinfo: Document `dt' request correctly.
1808         Other minor typographical improvements.
1810 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1812         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1814 2003-12-10  Richard Stallman  <rms@gnu.org>
1816         * LICENSE: Better wording.
1818 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1820         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1821         * configure, NEWS: Updated.
1823 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1825         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1827 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1829         * LICENSE: Updated.
1831 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1833         * INSTALL: Improved.
1835 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1837         Use path separator character of target platform for compiled-in
1838         default paths.
1840         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1841         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1842         * configure: Regenerated.
1843         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1845 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1847         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1848         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1850 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1852         * LICENSE: New file.
1854 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1856         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1857         ligatures present in AFM files since groff currently only
1858         understands some standard ligatures and nothing else.
1860 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1862         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1863         option -v is given.
1865         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1866         messages.
1867         Close stdout copy.
1868         Don't use Unix wait flags.
1870 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1872         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1873         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1874         src/roff/troff/uniuni.cpp: Moved to...
1875         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1876         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1877         src/libs/libgroff/uniuni.cpp: Here.
1879         * src/include/Makefile.sub.old (HDRS),
1880         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1881         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1883 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1885         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1886         `DEBUG_FILE'.
1887         Updated all users.
1889 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1891         * groff.texinfo: Document special behaviour of `.vs 0'.
1892         Improve documentation of `cflags' request.
1893         * NEWS: Updated.
1895 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1897         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1898         * font/devlj4/CORONET: Regenerated.
1900 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1902         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1903         if processing hyphenation patterns in traditional mode.
1904         Improve error messages.
1906 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1908         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1909         troff_output_file::put_char): Fix type of local variable `c'.
1911 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1913         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1914         declarations.
1915         (i_to_a): Removed.  libgroff already provides this function.
1916         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1918 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1920         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1921         HAVE_DECL_SYS_LIST.
1923 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1925         * COPYING: Use correct version.
1927 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1929         LynxOS 4.0.0 doesn't declare vfprintf.
1931         * configure.ac: Check for vfprintf.
1932         * configure: Regenerated.
1933         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1934         * src/include/config.hin: Regenerated.
1936 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1938         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1940         * configure.ac: Check for vsnprintf.
1941         * configure: Regenerated.
1942         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1943         `HAVE_VSNPRINTF'.
1944         * src/include/config.hin: Regenerated.
1946 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1948         * aclocal.m4: Updated syntax to autoconf 2.59.
1949         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1950         Don't check for gsos2.
1951         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1952         working abs_top_srcdir and abs_top_builddir.
1954         * configure.ac: Updated syntax to autoconf 2.59.
1955         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1956         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1957         * configure: Regenerated.
1959         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1960         s/@groff_top_builddir@/@abs_top_builddir@/.
1962         * src/roff/groff/pipeline.c (xstrsignal):
1963         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1965 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1967         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1968         make start angle smaller than end angle to circumvent a bug in tpic
1969         handling of some versions of dvipdfm (and dvipdfmx).
1971 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1973         * src/devices/grops/grops.man: Improve section on creating EPS.
1975 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1977         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1978         -P-pletter).
1980 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1982         * doc/groff.texinfo: Fix documentation of `.if'.
1984 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1986         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1987         the form `uniXXXX' also.
1989 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1991         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1992         contrib/pic2graph/pic2graph.sh: Implement secure management of
1993         temporary files.
1994         Pass `-P-pletter' to groff to avoid data outside of the converted
1995         area -- some versions of `convert' (for example 5.3.8) don't check
1996         the bounding box of the image but always use a fixed image size
1997         (letter paper format).
1998         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1999         contrib/pic2graph/pic2graph.man: Updated.
2001         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2003 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2005         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2006         troff_output::simple_ellipse, troff_output::simple_arc,
2007         troff_output::simple_line, troff_output::simple_spline,
2008         troff_output::simple_polygon): Insert a space before arguments.
2009         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2010         latter doesn't produce a node, so the following `.sp -1' would do
2011         the wrong thing.
2012         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2013         (and we don't have to care about compatibility mode).
2014         (troff_output::set_color, troff_output::reset_color): Don't emit
2015         `.sp -1' after \M and \m.
2017         * src/roff/troff/input.cpp (old_have_input): New global variable.
2018         (input_stack::get): Handle `old_have_input'.
2019         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2020         `trapping_blank_line' depending on `old_have_input', not
2021         `have_input'.
2023 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2025         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2026         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2027         default directory names for temporary files.
2028         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2030         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2031         [__MSDOS__] (run_pipeline): Honour environment variables.
2032         Don't use `tmpnam' but `tempnam' to work around messy
2033         implementation.
2035         * README.MinGW: New file.
2037 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2039         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2040         `(*t)->next' without testing validity of `*t'.
2041         (usage): Make it more readable.
2043 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2045         Make html device run under both MS-DOS and Win32.
2047         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2048         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2049         spawn or fork+exec has to be used, and whether parent must sleep
2050         until the child process terminates.  Used in
2051         `char_buffer::run_output_filter'.
2052         (copyofstdoutfd): Removed.
2053         (char_buffer): Replace `write_file_html' and `write_file_troff'
2054         member functions with `emit_troff_output' and `run_output_filter'.
2055         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2056         macros.
2057         (replaceFd): Replaced with...
2058         (set_redirection): New auxiliary function.
2059         (waitForChild): Replaced with...
2060         (save_and_redirect): New auxiliary function for.
2062         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2063         functions.
2065 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2067         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2068         (GROFF_LIBC): New function.
2069         * configure.ac: Call GROFF_LIBC.
2070         Check for `kill'.
2071         * configure: Regenerated.
2073         * src/include/lib.h: Handle __MINGW32__.
2074         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2075         Add macro for `pipe'.
2076         Define P_tmpdir.
2078         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2079         correctly.
2081         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2082         Implement.
2084 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2086         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2087         <chuq@chuq.com>.
2089         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2090         directory.
2092 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2094         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2095         src/roff/troff/input.cc (usage): Updated.
2097         * NEWS, doc/groff.texinfo: Updated.
2099 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2101         * src/libs/libgroff/searchpath.cpp
2102         (search_path::open_file_cautious): New function which also handles
2103         `-' as stdin and stdout depending on the access mode.
2104         * src/include/searchpath.h (search_path): Updated.
2106         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2107         * src/devices/grops/ps.h: Include `searchpath.h'.
2108         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2109         Open resource file with `include_search_path.open_file_cautious'.
2110         * src/devices/grops/grops.man: Document new `-I' switch.
2112         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2113         (main), src/devices/grolj4/lj4.cpp (main),
2114         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2116         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2117         Replaced with...
2118         (include_search_path): New global variable.
2119         (include_path_append): Removed.
2120         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2121         (do_file): Simplify, using new
2122         `include_search_path.open_file_cautious'.
2124         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2125         parameter.
2126         (main): Pass arguments to `-I' to both troff and devices.
2127         Improve handling of `-V'.
2128         * src/roff/groff/groff.man: Document changes to -I and -V.
2130         * src/roff/troff/input.cpp (include_search_path): New global
2131         variable.
2132         (next_file, source, ps_bbox_request, transparent_file,
2133         process_input_file): Use new
2134         `include_search_path.open_file_cautious'.
2135         (main) Handle `-I' switch.
2136         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2137         Use new `include_search_path.open_file_cautious'.
2138         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2139         * src/roff/troff/troff.man: Document new `-I' switch.
2141 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2143         Support multiple calls of .Lb in LIBRARY section.
2145         * tmac/doc-common (doc-in-library-section): New register.
2146         (doc-section-library): New string.
2147         (Sh): Set `doc-in-library-section'.
2148         (Rd): Updated.
2149         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2150         if in LIBRARY section.
2151         * tmac/doc.tmac (doc-save-global-vars): Updated.
2152         * NEWS, tmac/groff_mdoc.man: Updated.
2154 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2156         * tmac/doc-common (doc-default-operating-system): New variable.
2157         (Os): Use it.
2159 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2161         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2163 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2165         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2166         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2167         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2168         $(DEVFILES) are not empty.
2169         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2171 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2173         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2174         with parallel runs of `make'.
2176 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2178         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2179         insert SORT_SEP.  With certain combinations of sort specifications,
2180         refer sorted entries in the wrong order.  In particular, entries
2181         with a missing field should be be sorted before all entries that
2182         have that field, before refer looks to the next field.
2184 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2186         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2187         g++ linker is used.  Reported by Mark J. Reed
2188         <mark.reed@turner.com>.
2190 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2192         Add key character `x' to tbl which makes tbl call a user-defined
2193         macro on a table cell.
2195         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2196         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2197         `set_modifier' after printing the compatibility request.
2198         (set_modifier): Print call to `m->macro' if not empty.
2199         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2200         `macro'.
2201         (process_format): Implement cases `x' and `X'.
2202         * src/preproc/tbl/tbl.man, NEWS: Updated.
2204 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2206         * doc/groff.texinfo: Minor fixes.
2208 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2210         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2212 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2214         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2215         argument list to nothing if there is no file to match.  Use `ls' as
2216         a protection, similar to autoconf.
2218         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2219         empty argument lists.
2221         * doc/groff.texinfo: Improve documentation how vertical spacing
2222         and line breaks interact.
2223         Other minor fixes.
2225         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2227 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2229         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2230         EPS (using eps2eps or similar programs to compute the bounding box).
2232 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2234         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2235         * doc/texinfo.tex: Updated from texinfo 4.6.
2236         * README.CVS: From now on we need texinfo 4.6.
2238 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2240         Add requests `dei1' and `ami1' for completeness.
2242         * src/roff/troff/input.cc (calling_mode): Remove
2243         CALLING_DISABLE_COMP.
2244         (comp_mode): New enumeration.
2245         (do_define_string, define_string, define_nocomp_string,
2246         append_string, append_nocomp_string): Updated.
2247         (do_define_macro): Add third parameter.
2248         (define_macro, define_nocomp_macro, define_indirect_macro,
2249         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2250         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2251         functions.
2252         (ignore): Updated.
2253         (init_input_requests): Add `dei1' and `ami1'.
2255         * tmac/trace.tmac: Handle de1 and am1.
2256         (de): Improve tracing message.
2257         (am): Add missing `do'.
2258         (return): Use de1.
2260         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2261         Document new requests.
2263 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2265         Add option -G to .MPIMG to insert a gap between text and the image.
2267         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2268         www-finish-left-ll): Updated.
2269         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2270         (MPIMG): Make option -L and -R optional.
2271         Implement option -G.
2273 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2275         * src/devices/grohtml/post-html.cpp
2276         (html_printer::do_file_components): Don't use `stdout' as lvalue
2277         since it can be a macro.
2279 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2281         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2282         the corresponding test in aclocal.m4.
2284 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2286         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2287         names but RGB values directly.  Otherwise pnmtopng depends on
2288         an external file `rgb.txt' which maps colour names to values.
2290 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2292         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2293         * configure, src/include/config.hin: Regenerated.
2295         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2297 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2299         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2301 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2303         * *.man: Switch to non-compatibility mode temporarily if GNU
2304         syntax extensions are used in the particular man page.
2306         * PROBLEMS: Add solutions for SGR problems.
2308 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2310         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2311         used to change the drawing scheme.
2313         * src/devives/grotty/tty.cpp (bold_flag_option,
2314         underline_flag_option, italic_flag_option, reverse_flag_option,
2315         bold_underline_mode_option): New global variables.
2316         (update_options): New function.
2317         (tty_printer::special): Call update_options.
2318         (main): Don't set xxx_flag but xxx_flag_option, then call
2319         update_options.
2321 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2323         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2325         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2326         values.
2327         (hline_char, vline_char): New global variables.
2328         (tty_printer::tty_printer): Initialize them.
2329         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2330         horizontal and vertical lines.
2331         (crossings): New global array.
2332         (tty_printer::end_page): Use it to determine the proper crossing
2333         character for -Tutf8.
2335 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2337         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2338         (HTMLDOCFILES): Revert to `pic.html'.
2339         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2341 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2343         * doc/pic.ms: Improve documentation of absolute coordinates.
2344         Document absolute positioning of pictures.
2346         * NEWS: Add new pic capability.
2348 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2350         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2351         Rewritten.
2353 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2355         Implement support for dashed and dotted ellipses in pic.  Based on
2356         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2358         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2359         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2360         functions.  Ellipse arcs are approximated with circle arcs.
2361         * src/preproc/pic/common.h (common_output): Updated.
2362         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2363         functions.
2364         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2366         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2368 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2370         Make grotty work on platforms which have unsigned char as the
2371         default for char.  Based on a patch by Thomas Klausner
2372         <wiz@netbsd.org>.
2374         * src/devices/grotty/tty.cpp (schar): New typedef.
2375         Updated calls to declare_ptable and implement_ptable.
2376         (glyph): Use schar for back_color_idx and fore_color_idx.
2377         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2378         (tty_printer::tty_color, tty_printer::tty_printer,
2379         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2381 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2383         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2384         * src/roff/nroff/nroff.man: Updated.
2386 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2388         * NEWS, tmac/groff_www.man: Updated.
2389         * doc/Makefile.sub: Updated.
2391 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2393         Implement support for multiple HTML output files.
2395         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2396         -j command line option.
2398         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2399         global variables.
2400         (file): New fields `new_output_file', `require_links',
2401         `output_file_name'.
2402         (file::file): Updated.
2403         (files::set_file_name, files::set_links_required,
2404         files::are_links_required, files::is_new_output_file,
2405         files::file_name, files::next_file_name): New functions.
2406         (header_desc): New fields `no_of_level_one_headings',
2407         `header_filename'.
2408         (header_desc::header_desc): Updated.
2409         (header_desc::write_headings): Handle multiple files.
2410         (html_printer::write_header): Save file name in which header occurs.
2411         (html_printer::determine_header_level): Possibly split files on
2412         level one headings.
2413         (html_printer::do_links, html_printer::troff_tag): Updated.
2414         (html_printer::insert_split_file, html_printer::do_job_name,
2415         html_printer::emit_link, html_printer::write_navigation,
2416         html_printer::do_file_components): New functions.
2417         (html_printer::~html_printer): Handle multiple files.
2418         (main): Handle command line option `-j'.
2420         * src/devices/grohtml/grohtml.man: Updated.
2422         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2423         which splits file.
2425         * tmac/www.tmac (JOBNAME): New macro.
2426         * tmac/s.tmac (SH-NO-TAG): New macro.
2427         (@SH): Call SH-NO-TAG.
2428         (@NH): Updated.
2430 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2432         * tmac/groff_mdoc.man: Improve documentation of punctuation
2433         characters.
2435 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2437         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2439 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2441         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2443 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2445         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2446         after `/*' and `*/'.
2447         Fix spacing.
2448         (Fn, Fo): Reduce indentation in synopsis.
2450         * tmac/doc-common (doc-check-depth): New macro.
2451         (doc-end-macro, Sh, Ss): Use it.
2452         (Cd): Fix behaviour in synopsis.
2453         (In): Make it parsed and callable.
2454         If not in the synopsis, represent the C header file enclosed in
2455         angle brackets.
2456         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2457         Use minus, not hyphen.
2459         * tmc/groff_mdoc.man: Updated.
2461 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2463         Integrated grap2graph, contributed by Eric S. Raymond.
2465         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2466         New files.
2467         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2468         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2470 2003-07-01  Colin Watson  <cjwatson@debian.org>
2472         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2473         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2475 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2477         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2479 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2481         * doc/Makefile.sub (CLEANADD): Remove all files created by
2482         running `make groff.{pdf,dvi}'.
2484         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2485         src/xditview also.
2487 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2489         * Makefile.in (SHELL): Define as @SHELL@.
2490         (mkinstalldirs): Use $(SHELL).
2491         (MDEFINES): Add $(SHELL).
2492         * Makefile.comm (SHELL): Removed.
2494 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2496         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2497         The X11 documentation files use them.
2498         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2500 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2502         * tmac/e.tmac (@C): Handle .ad also.
2504 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2506         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2508         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2509         Assign `n' even here.  It is possible to construct a node
2510         immediately following an escape character:
2512           .di xx
2513           \?\\\?a
2514           .br
2515           .di
2516           .xx
2518 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2520         * README.WIN32: Removed.
2521         * MANIFEST: Updated.
2523 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2525         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2527 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2529         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2530         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2532 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2534         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2535         is done by the calling function.
2537 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2539         * tmac/X.tmac: Fix definition of `em'.
2541 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2543         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2544         argument.
2546 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2548         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2549         to make items work which consist only of a tag.
2551 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2553         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2554         aren't stretched in a tag (this can fail with unformatted boxes).
2555         Instead, insert a break and go back one line.
2557 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2559         * src/roff/troff/input.cc (return_macro_request): If called with
2560         argument pop macro twice.  We need this to trace `return'.
2562         * tmac/trace.tmac: Handle `return'.
2563         Fix typos.
2565         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2566         Document.
2568 2003-05-15  Larry Kollar  <kollar@alltel.net>
2570         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2571         registers `FPS', `FVS', and `FPD'.
2573 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2575         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2576         correctly.
2578 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2580         * tmac/groff_mdoc.man: Slight improvements.
2582 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2584         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2585         `doc-header-space' after header line if register `cR' is set.
2587 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2589         * TODO: Updated.
2591 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2593         * tmac/doc-common (Nd): Use \[em].
2595 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2597         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2598         doc-footer-space): Initialize to 0.5i.
2599         (doc-setup-page-layout): Don't set doc-header-space and
2600         doc-footer-space.
2602 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2604         * REVISION: Set to 1.
2606         * doc/pic.ms: Document possible problems with `figname'.
2608 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2610 Version 1.19 released
2611 =====================
2613         * VERSION: Set to 1.19.
2614         * REVISION: Set to 0.
2615         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2617         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2618         Define charset as `US-ASCII' in html output.
2620         * tmac/www.tmac (ULE): Add missing scaling indicator.
2622         * win32-diffs: Removed.
2624 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2626         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2627         `.da' and `.boxa'.
2628         Document how to insert discardable whitespace with `.ss'.
2630 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2632         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2633         work with plain TeX also.
2635         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2637 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2639         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2640         Use a loose DTD.
2642 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2644         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2645         vbox with positive height and zero depth if in TeX mode.
2647         * NEWS: Document glyph name changes for grodvi and grolj4.
2649 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2651         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2652         * doc/pic.ms: Fixed.
2654 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2656         HP-UX 10.20 has `snprintf' but it isn't declared.
2658         * configure.ac: Add declaration test for snprintf.
2659         * configure: Regenerated.
2660         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2661         * src/include/config.hin: Regenerated.
2663 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2665         Add keyword `figname' to pic, specifying the name of the picture
2666         box in TeX mode.  Based on a patch from William J Poser
2667         <wjposer@unagi.cis.upenn.edu>.
2669         * src/preproc/pic/pic.y: New token `FIGNAME'.
2670         (macro_name): New rule of type <str>.
2671         (placeless_element): Handle `FIGNAME'.
2672         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2673         * src/preproc/pic/main.cpp (graphname): New global variable.
2674         (do_picture): Initialize `graphname'.
2675         * src/preproc/pic/pic.h: Updated.
2676         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2677         `graphname'.
2678         Simplify TeX code.
2679         (tex_output::text): Beautify output.
2680         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2681         `shaded' and `outlined' unconditionally.
2682         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2683         Minor improvements.
2685         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2686         greater is necessary.
2688 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2690         Add option -r to soelim to avoid emission of `.lf' lines.
2691         Add option -t to produces TeX comment lines instead of `.lf' lines.
2693         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2694         and `tex_flag'.
2695         (usage): Updated.
2696         (main): Handle `-r' and `-t'.
2697         (set_location): Handle `raw_flag' and `tex_flag'.
2698         * src/preproc/soelim/soelim.man, NEWS: Updated.
2700 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2702         * tmac/hyphenex.sh: Replaced with...
2703         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2704         nightmares.
2706         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2707         if --quiet is used for the configure script.
2708         * configure: Regenerated.
2710 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2712         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2713         Add `const' to second argument.
2714         (html_printer::add_table_end): Add `const' to argument.
2715         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2716         `const' to arguments.
2717         * src/devices/grohtml/html-text.h: Updated.
2719         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2720         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2721         argument.
2723         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2724         cast for integer constant.
2726         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2727         (writeNbytes): Add `const' to first argument.
2728         (writeString): Add `const' to argument.
2729         (char_buffer::can_see): Add `const' to third argument.
2730         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2731         `const' to argument.
2732         * src/preproc/html/pushback.h: Updated.
2734         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2735         (include_path_append): Add `const' to argument.
2736         (do_file): Updated.
2738         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2739         for `value'.
2740         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2741         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2742         for `value'.
2743         (unicode_decompose_init::unicode_decompose_init): Updated.
2744         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2745         for `value'.
2746         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2747         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2748         argument.
2750         * tmac/hyphenex.sh: Make script more portable by using a here
2751         document.
2753 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2755         Renamed all `*.cc' files to `*.cpp'.
2756         Updated all configuration files, makefiles, and documentation.
2758 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2760         * tmac/hyphenex.sh: Slight improvements.
2762 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2764         * font/devascii/R.proto, font/devcp1037/R.proto,
2765         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2766         character slots with unnamed glyphs.
2768         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2769         (an-first): New global variable.
2770         (an-header): Emit vertical space between multiple man pages.
2772 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2774         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2775         values.
2777 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2779         * PROBLEMS: Revised.
2781 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2783         * doc/webpage.ms: Improved.
2785 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2787         Add register \n[.height] which returns the value of \H.
2788         Add register \n[.slant] which returns the value of \S.
2790         * src/roff/troff/env.cc (init_env_requests): Implement.
2791         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2792         Document.
2794 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2796         * tmac/html.tmac: Move some of the data into html-end.tmac.
2797         Remove most of the character translations for eqn since html fonts
2798         now cover those characters.
2799         Load www.tmac.
2800         * tmac/html-end.tmac: New file.
2801         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2802         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2803         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2805 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2807         * man/groff_out.man: Document negative values of `N' if -Thtml is
2808         used.
2810 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2812         * Makefile.comm (depend.temp): Check location of YTABC.
2814 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2816         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2817         binary path.
2818         (groff_bin_path): Rename to GROFF_BIN_PATH.
2819         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2820         * doc/Makefile.in (TROFFBIN): New variable for troff
2821         binary path.
2822         (GROFFBIN): New variable for groff binary path.
2823         (groff_bin_path): Rename to GROFF_BIN_PATH.
2824         (TROFF): Use TROFFBIN.
2825         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2826         * doc/Makefile.sub (GROFFBIN): New variable for groff
2827         binary path.
2828         (groff_bin_path): Rename to GROFF_BIN_PATH.
2829         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2831         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2832         with INSTALL_SCRIPT.
2833         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2834         * Makefile.dev (all): Depend on DEVSCRIPTS.
2835         (install_dev): Likewise.
2836         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2837         scripts.
2838         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2839         (DEVGENSCRIPTS): New variable to hold generated scripts.
2841 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2843         * src/libs/libdriver/input.cc (IntArray::operator[],
2844         IntArray::get_data): Remove meaningless `const' in return value.
2846         * README.CVS: New file.
2848 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2850         Check for stdint.h in C++, not in C.
2852         * aclocal.m4 (GROFF_STDINT_H): New function,
2853         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2854         AC_CHECK_HEADERS.
2855         * configure, src/include/config.hin: Regenerated.
2856         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2859         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2860         with a negative value, representing the width of the unbreakable
2861         space (only for -Thtml).  grohtml then converts this back to
2862         &nbsp; and uses the value of N as its width.
2864         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2865         unbreakable_space_node::tprint): Emit `N-<width>'.
2866         * src/include/printer.h (printer::set_numbered_char): Make it
2867         virtual.
2868         Make members `font_table' and `nfonts' protected instead of private.
2869         * src/devices/grohtml/post-html.cc
2870         (html_printer::set_numbered_char): New member function.
2873         * src/libs/libgroff/maxfilename.cc:
2874         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2876         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2877         emit word marker.
2879 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2881         * man/roff.man: Small fixes.
2883 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2885         Make groff independent from locale's numeric settings.
2887         * configure.ac: Check for `setlocale'.
2888         * configure, src/include/config.hin: Regenerated.
2890         * src/include/lib.h: Handle HAVE_SETLOCALE.
2892         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2893         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2894         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2897         * doc/groff.texinfo: Change dir category to `Typesetting'.
2898         (Man font macros): Mention that there is no space between arguments
2899         of .BI and friends.
2901         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2902         (*printer::change_color, *printer::change_fill_color): Add missing
2903         `const'.
2905 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2907         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2908         html_table::is_gap): Compute table widths after converting border
2909         positions to avoid rounding errors.
2911 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2913         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2914         `space_emitted' properly.
2916 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2918         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2919         (html_table::set_linelength): Don't add 1.
2920         (html_table::add_indent): Don't subtract 1.
2922         * tmac/html.tmac: Set default page offset to zero.
2924 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2926         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2928         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2929         unbreakable_space_node::tprint): New functions.
2930         (troff_output_file): Make space_char_hmotion_mode::tprint and
2931         unbreakable_space_node::tprint to friends.
2932         * src/roff/troff/node.h: Updated.
2934         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2935         in the HTML standard).
2937 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2939         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2940         Otherwise, the following code
2942           .di xxx
2943           .ps 10
2944           a
2945           .br
2946           .di
2947           x\*[xxx]
2949         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2950         font changes in diversions for -Thtml.
2952         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2953         `HTML-TAG'.
2954         (an-do-tag-html): Merge with ...
2955         (an-do-tag): This macro.
2956         Change code slightly to circumvent grohtml bug.
2957         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2959         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2960         html_table::is_gap): Round `width' properly.
2962         * tmac/html.tmac: Provide some default layout parameters for
2963         grohtml.
2965         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2966         command.
2968 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2970         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2972 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2974         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2975         defined.
2977 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2979         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2980         `.vs'.
2981         * doc/groff.texinfo: Updated.
2983 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2985         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2986         TOKEN_END_TRAP>: Reset `have_input'.
2988 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2990         * src/roff/groff/groff.man: Mention groff_trace man page.
2992 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2994         * Makefile.in (LIBEXT): New variable to indicate the file extension
2995         of library files.  Computed heuristically from $(OBJEXT).
2996         (MDEFINES): Add $(LIBEXT).
2997         * Makefile.lib, Makefile.comm: Use it.
2999         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3000         overlong lines into smaller chunks.
3001         (get_binary): New function.
3002         (main): Use them.
3003         * src/utils/pfbtops/pfbtops.man: Updated.
3005 2003-03-15  Colin Watson  <cjwatson@debian.org>
3007         * src/roff/groff/groff.man: Minor syntax fix.
3009 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3011         * src/devices/grops/ps.cc (ps_printer::media_set,
3012         ps_printer::~ps_printer): Handle zero paper width and length.
3014 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3016         Add options -p and -l to grodvi.
3018         * src/devices/grodvi/dvi.cc: Include paper.h.
3019         (landscape_flag, user_paper_length, user_paper_width): New global
3020         variables.
3021         (dvi_printer::begin_page): Emit `papersize' special.
3022         Set color after initialization of `cur_h' and `cur_v'.
3023         (main): Add options `-l' and `-p'.
3024         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3025         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3027         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3029 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3031         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3032         * man/groff_tmac.man: This man page.
3033         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3034         deprecated.
3036         * tmac/X.tmac: Don't load pspic.tmac.
3038 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3040         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3041         by Bernd Warken <bwarken@mayn.de>.
3043         * src/include/driver.h (pr): Removed.
3045         * src/libs/libdriver/input.cc (pr): New global variable.
3046         (do_file): Deallocate `pr'.
3047         * src/libs/libdriver/printer.cc (pr): Removed.
3049         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3050         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3051         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3052         (main): Don't delete `pr'.
3054 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3056         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3057         * tmac/papersize.tmac: New file.
3058         * tmac/troffrc: Include `papersize.tmac'.
3059         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3060         * tmac/an-old.tmac: Set LT to LL by default.
3062         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3063         doc/groff.texinfo: Updated.
3065         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3066         bug which caused all odd iso papers to have wrong dimensions.
3068         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3069         (main) <'p'>: Set `user_paper_width' also.
3070         (ps_printer::media_width, ps_printer::media_height): Use values
3071         given with option `-p'.
3073 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3075         * src/include/nonposix.h: Provide default for SET_BINARY.
3077         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3078         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3079         unconditionally.
3081         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3082         (main): Treat \r\n as \n.
3084 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3086         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3087         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3089 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3091         Added support to access more than 256 glyphs in Type 1 fonts.
3093         * src/devices/grops/ps.cc (subencoding): New structure.
3094         (style): Add `sub' field.
3095         Updated all users.
3096         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3097         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3098         functions.
3099         Updated all users.
3100         (ps_printer::set_char): Use `set_subencoding'.
3101         (make_subencoding_name): New function.
3102         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3103         (ps_printer::~ps_printer): Emit subencoding definitions.
3105         * src/devices/grops/psrm.cc (valid_input_table): New array to
3106         properly support EBCDIC.
3107         (white_space): Add `\f'.
3108         (ps_get_line): Change first argument to be of type `string &'.
3109         Updated all callers.
3110         This allows to get lines of arbitrary length.
3111         Use `valid_input_table'.
3112         Remove warning about non-conforming PS line length.  This seems
3113         not to be of great importance -- for example, dvips don't emit
3114         a warning either.
3115         (PS_LINE_MAX): Removed.
3116         (matches_comment): Change first argument to be of type `string &'.
3118         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3120         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3121         %AGL_to_unicode, %default_ligatures): New hash tables.
3122         Read all map entries.
3123         Add unencoded characters.
3124         Check for default ligatures if there are no `L' entries.
3125         Print all kern entries.
3126         Print all characters in charset.
3127         * src/utils/afmtodit/afmtodit.man: Updated.
3129         * font/devps/*: Regerated all fonts.
3131         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3132         of characters, just use `.trin'.  Otherwise the mapping depends
3133         on the font encoding.
3134         * tmac/ps.tmac: Add `fi' and `fl'.
3135         Improve `Fi' and `Fl'.
3136         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3137         * tmac/Xps.tmac: Fix `em'.
3139         * NEWS: Updated.
3141 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3143         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3144         `have_input'.
3146 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3148         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3150         * font/devps/generate/textmap: Remove entry `similarequal'.
3151         * font/devps/symbolmap: Updated.
3153 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3155         * src/libs/libgroff/font.cc (font::load): Fix error message for
3156         bad character type.
3158         * src/devices/grops/grops.man: Improve documentation of the -b
3159         flag.
3161         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3162         `ascii' and `cp1047'.
3164 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3166         Document composite glyphs and the `composite' request.
3168         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3170 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3172         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3173         * font/devdvi/*EC: Updated.
3175         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3176         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3177         * tmac/troffrc: Load `composite.tmac'.
3178         * tmac/Makefile.sub (NORMALFILES): Updated.
3180         * doc/groff.texinfo (Input Encodings): New section.
3181         * NEWS: Updated.
3183 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3185         * doc/texinfo.tex: New version 2003-02-11.06.
3187         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3188         * tmac/groff_mdoc.man: Fix description of `Dt'.
3190 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3192         * font/devps/prologue.ps: Fix for included Postscript that does
3193         a setpagedevice -- which is now safely ignored.
3195         * NEWS: Updated.
3197         * src/devices/grops/ps.cc: Now sets the page size in the generated
3198         document.  This is done in two ways: Via a %%-comment for gv and
3199         the like, and via a PageSize and setpagedevice for programs that
3200         understands Postscript proper, like ps2pdf.
3202         * src/devices/grops/ps.h: New broken-flag to avoid page size
3203         definition, if required.
3205         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3207         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3208         Not really necessary due to the fix in prologue.ps, but cleaner:
3209         Such information does not belong in an .eps file.
3211         * doc/Makefile.sub: See doc/Makefile.in.
3213 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3215         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3216         instead of P1 since the latter is broken in some versions of netpbm.
3217         * configure: Updated.
3219 2003-02-26  Larry Kollar  <kollar@alltel.net>
3221         Make man pages more customizable.
3223         * tmac/an-old.tmac (FT): New register holding footer distance from
3224         bottom.
3225         (HF): New string holding the default heading font.
3226         (TH): Handle registers `IN' and `SN' set on the command line.
3227         Use `FT'.
3228         (PT, BT): New strings to customize header and footer lines.
3229         (an-header, an-footer): Use them.
3230         (SH, SS): Use `HF'.
3231         * tmac/groff_man.man: Document changes.
3233         * doc/groff.texinfo: Document man changes.
3234         Document Ultrix extensions of man.
3236 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3238         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3239         `have_input' after changing back to old environment.
3241         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3242         function up to be defined before first call.  This is necessary to
3243         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3245         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3246         the default font directory also.  Based on a patch from James
3247         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3248         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3249         * src/utils/afmtodit/afmtodit.man: Document it.
3251         * NEWS: Updated.
3253         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3255 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3257         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3258         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3259         * configure.ac: Use it.
3260         * configure: Regenerated.
3261         * Makefile.in: Updated.
3263         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3264         (CLEANADD): Add www.tmac-sed.
3265         (pnmtops_nosetpage): Define default.
3266         (install_data): Handle www.tmac-sed and substitute
3267         @PNMTOPS_NOSETPAGE@.
3268         (stamp-sed): Add www.tmac.
3269         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3270         It now breaks URLs at suitable places.
3271         (www:substring_ok): New register set by...
3272         (www:@test_substring): New macro.
3273         (www:error): New alias to www-error.
3274         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3275         New macros.
3276         (URL): Use www:url_breaks.
3277         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3278         (CDS, CDE): New macros.
3280 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3282         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3283         buffer overflow.
3285 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3287         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3288         can be negative also.
3290         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3291         `int16'.
3292         (read_char_table): Avoid negative ascenders.
3293         (output_charset): Add cast.
3294         * font/devlj4/*: Regenerated.
3296         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3297         possible.
3299         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3300         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3301         of `<>'.
3302         * font/devdvi/*: Regenerated.
3304         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3305         normal width, while the previously used characters (U+2329 and
3306         U+232A) are classified as wide due to canonical equivalence with the
3307         CJK punctuation characters U+3008 and U+3009.
3309         * font/devutf8/R.proto: Updated.
3310         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3312         * man/groff_char.man: Simplify handling of table traps by
3313         introducing `start block' and `end block' macros.
3314         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3315         (DL): Make it work with Unix troff also.
3316         Fix code values of `la' and `ra'.
3318         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3320 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3322         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3323         New destructor, fixing a major memory leak.
3325 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3327         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3328         to be in conformance with Unicode 3.0 and newer.
3330         * font/devlj4/generate/text.map: Add `Eu'.
3331         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3332         * font/devlj4/S: Regenerated.
3334         * man/groff_char.man: Completely rewritten.
3336         * doc/groff.texinfo: Fix description of request and macro arguments.
3338 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3340         Valgrind fixes.
3342         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3343         Deallocate `columns' list.
3344         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3345         New destructor.
3346         (text_glob::text_glob_html, text_glob::text_glob_special,
3347         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3348         text_glob::text_glob_tag): Avoid memory leaks.
3349         (text_glob::remember_table): Free memory before reassigning.
3351 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3353         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3354         alias `hbar'), the Planck constant over two pi.
3356         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3357         `+e' for position 34.
3358         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3359         `u2662' and `u2661'.
3360         * font/devdvi/{MI,S}: Regenerated.
3361         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3362         * font/devlbp/*: Add `hbar' alias.
3363         * font/devlj4/generate/special.map: Ditto.
3364         * font/devlj4/S: Regenerated.
3365         * font/devps/generate/symbolchars: Add `+e'.
3366         * font/devps/generate/textmap: Fix PS name for `-h'.
3367         Add `hbar' alias.
3368         * font/devps/symbolmap: Regenerated.
3370         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3372         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3373         `-h', `hbar'.
3374         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3375         `-h'.
3377         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3378         `hbar'.
3379         * tmac/tty-char.tmac: Add `+e'.
3381 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3383         Another round trying to really fix problems with `have_input'.
3385         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3386         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3388         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3389         handling if both foreground and background colors are default.
3391         * doc/groff.texinfo (Debugging): Document .lf differences to
3392         AT&T troff.
3394 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3396         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3397         null-bytes in created string.
3399         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3400         alias_macro, lookup_request): Improve warning messages.
3402         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3403         not `strdup'.
3404         Free `last_image_filename'.
3406         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3407         `buffer'.
3408         (imageList::createPage, imageList::createImage): Use `free', not
3409         `a_delete'.
3410         (imageItem::~imageItem): Free `imageName'.
3411         (addRegDef): Use `strsave', not `strdup'.
3412         (get_resolution): Free `pathp'.
3414 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3416         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3417         to `dummy'.
3419 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3421         Add memory management for colors to deallocate unnamed colors
3422         properly.
3424         * src/include/color.h (color): New members `free_list' and `next'.
3425         New member functions `new' and `delete'.
3426         Add destructor.
3427         * src/libs/libgroff/color.cc: Implement it.
3429         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3430         for array size of new operator.
3432         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3433         redundant comparison.
3435         * src/roff/troff/input.cc (word_space_node::reread,
3436         hmotion_node::reread): Avoid warning about unused parameter.
3437         (reset_output_registers): Remove redundant parameter.
3438         (define_color): Undo change 2003-02-12.
3440         * src/roff/troff/reg.h: Updated.
3442         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3443         output_file::put_filename, real_output_file::really_put_filename,
3444         ascii_output_file::really_print_line,
3445         break_char_node::get_hyphen_list): Avoid warning about unused
3446         parameter.
3447         (suppress_node::tprint): Updated.
3449         * configure.ac: Check declaration for rand() and srand().
3450         * configure: Regenerated.
3452         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3453         conditionally.
3454         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3455         and srand().
3457         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3458         to avoid compiler warnings.
3460         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3461         unused.
3463         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3464         is unused.
3465         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3466         (unused) parameter.
3467         Updated all callers.
3469         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3470         is unused.
3471         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3472         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3474         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3475         Parameter is unused.
3476         (html_printer::add_table_end): Define parameter conditionally.
3477         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3478         is unused.
3480         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3481         (lbp_printer::set_char): Last parameter is unused.
3483         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3485 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3487         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3488         Make \D'f ...' move horizontally again for backwards compatibility.
3489         Replace it with \D'Fg ...' where appropriate to avoid dependency
3490         on horizontal resolution.
3492         * src/roff/troff/input.cc (do_get_long_name): New function.
3493         (get_long_name): Call it.
3495         (read_draw_node): Handle `\D'Fx ...' by calling ...
3496         (read_color_draw_node): New function.
3498         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3499         `end'.
3500         Pass it to `do_get_long_name' which is used instead of
3501         `get_long_name'.
3503         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3504         unnecessary value guard.
3505         (parse_D_command) <'f'>: Add horizontal shift.
3507         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3508         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3509         (FILL_MAX): Removed.
3511         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3512         Updated.
3514 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3516         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3517         do_zero_width): Push `\n' if closing delimiter is missing.
3519         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3520         <'F'>: Make \F non-transparent at the beginning of line.
3521         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3522         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3523         `have_input'.
3525         (define_color): Free color in case of reassignment.
3527         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3528         @DefescListEnd): Use @Var, not @var.
3529         Fix all calls.
3531         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3533         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3534         `shaded' and `outlined' arrays.
3535         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3536         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3537         Use strsave.
3538         (closed_object::set_fill_color): Ditto.
3539         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3540         instead of strdup.
3541         (troff_output::reset_color): Use a_delete instead of free.
3542         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3544 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3546         * doc/groff.texinfo: Improve documentation of `ad'.
3547         Document that \D'f...' is dependent on the horizontal resolution.
3548         * man/groff_diff.man: Improve documentation of \D'f...'.
3550         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3551         compensating \h'...' for \D'f ...' since the latter no longer moves
3552         current position.
3553         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3555 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3557         Improve error messages for `x F' (and `F') commands.
3559         * src/include/error.h: Add declaration for
3560         `current_source_filename'.
3561         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3562         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3563         parameter for source file string.
3564         Updated all callers.
3566         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3567         (remember_source_filename): New function.
3568         (parse_x_command <'F'>, do_file <'F'>): Use it.
3570 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3572         Make grotty not emit warnings about unknown colors more than
3573         necessary.
3575         * src/devices/grotty/tty.cc: Include `ptable.h'.
3576         (TTY_MAX_COLORS): Removed.
3577         (DEFAULT_COLOR_IDX): Defined to -1.
3578         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3579         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3580         Change `tty_colors' to be a ptable.
3581         First arg of `put_color' is now `char'.
3582         New functions `make_rgb_string' and `tty_color'.
3583         (tty_printer::tty_printer): Use `tty_color'.
3584         (tty_printer::color_to_idx): Return value is now `char'.
3585         Use `tty_color'.
3587         * src/include/color.h (color): Add `print_color' member function.
3588         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3590 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3592         Valgrind fixes.
3594         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3595         encoding file.
3597         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3598         assume that value has been allocated with `new[]', thus use
3599         `a_delete' for deallocation.
3601         * src/libs/libdriver/input.cc (get_integer_arg,
3602         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3603         where appropriate.
3605         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3606         * src/libs/libgroff/nametoindex.cc
3607         (character_indexer::named_char_index): Use `new <type>[1]'.
3609         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3610         <type>[1]'.
3611         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3612         (split_text): Use `a_delete'.
3614         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3615         <type>[1]'.
3617         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3618         harmless memory leak.
3619         (hyphen_trie::read_patterns_file): Initialize `buf'.
3620         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3621         Initialize `current_fill_color'and `current_glyph_color'.
3622         * src/roff/troff/glyphuni.cc
3623         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3624         * src/roff/troff/uniuni.cc
3625         (unicode_decompose_init::unicode_decompose_init): Ditto.
3626         * src/roff/troff/uniglyph.cc
3627         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3629 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3631         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3632         `access' before calling `unlink'.
3633         (do_file): Handle __EMX__.
3635         * src/include/nonposix.h: Handle __EMX__.
3637         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3638         (fontpath,tmacpath): Use it.
3639         (MDEFINES): Add it.
3640         Sorted alphabetically.
3642         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3643         @SEP@.
3644         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3645         @SEP@.
3647 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3649         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3650         New files, copied from gnulib.
3651         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3652         * configure.ac: Updated.
3653         * configure: Regenerated.
3655         * src/include/config.hin: Regenerated.
3656         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3657         Don't define `strcasecmp' as `strcmp'.
3658         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3659         Dont define `strncasecmp' as `strncmp'.
3661         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3662         Removed.
3664 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3666         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3667         s/unline/unlink/.
3669 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3671         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3673 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3675         Add US-english hyphenation exceptions (converted from Barbara
3676         Beeton's hyphenation exception log reports which appear irregularly
3677         in TUGBoat).
3679         * tmac/hyphen.us: Updated to latest version.
3680         * tmac/README: Updated.
3681         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3682         * tmac/troffrc: Load `hyphenex.us'.
3683         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3684         * doc/groff.texinfo: Updated.
3686 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3688         Improve hyphenation slightly.  This is a first step in redesigning
3689         the hyphenation algorithm to make it more flexible (e.g. allowing
3690         kerns and ligatures between the hyphenation character and the
3691         following character -- while not used normally in English, other
3692         languages like German would benefit).
3694         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3695         assertion instead of if-clause.
3696         Let `get_hyphen_list' return the number of involved characters in
3697         the hyphenation pattern instead of computing it directly (which
3698         often yields too small values).
3699         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3700         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3701         parameter.
3703 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3705         Fixing a bug which caused groff to hang if the hyphenation exception
3706         dictionary tried to grow.
3708         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3709         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3710         pointer to dictionary.
3712 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3714         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3715         negative left italic correction.
3716         * src/utils/afmtodit/afmtodit.man: Document it.
3718         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3719         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3720         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3722         * NEWS: Updated.
3724 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3726         * NEWS: Updated.
3728 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3730         * src/preproc/refer/refer.man: Mention REFER environment variable.
3732 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3734         Similar to \[is], the square root glyph (\[sr]) and the square root
3735         extension glyph (\[radicalex]) are now text symbols.  The new
3736         mathematical versions are called \[sqrt] and \[sqrtex],
3737         respectively.
3739         * font/devX*/S: Regenerated.
3740         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3741         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3742         * font/devdvi/EX, font/devdvi/S: Regenerated.
3743         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3744         * font/devlj4/generate/special.map: Add `sqrt'.
3745         * font/devlj4/S: Regenerated.
3746         * font/devps/generate/textmap: Add `sqrt'.
3747         * font/devps/S, font/devps/symbolmap: Regenerated.
3749         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3750         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3751         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3752         overlap horizontally.
3754         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3755         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3756         Fix `radicalex'.
3758         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3759         and `sqrtex' are overlapping glyphs.
3761 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3763         * font/devdvi/generate/texsy.map: Add `is'.
3764         * font/devps/symbolmap: Regenerated.
3765         * font/devdvi/*TC, MI, S: Regenerated.
3767         * tmac/dvi.tmac: Remove `is'.
3769 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3771         `is' is now a text symbol (only relevant for dvi).  The math variant
3772         can be accessed with `integral'.
3774         * font/devX*/S: Regenerated.
3775         * font/devdvi/generate/texex.map: Remove `is'.
3776         * font/devdvi/EX: Updated.
3777         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3778         * font/devlj4/generate/special.map: Ditto.
3779         * font/devlj4/S: Regenerated.
3780         * font/devps/generate/textmap: Add `integral'.
3781         * font/devps/S: Regenerated.
3783         * tmac/dvi.tmac: Define `is'.
3785         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3787         * src/preproc/tbl/main.cc (process_format): Fix error message.
3789 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3791         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3792         * font/devps/textmap: Fix entries for `ne' and `nc'.
3793         * font/devps/symbolmap: Regenerated.
3795         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3796         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3797         `38', `58', `78', `-+', `|=', `nc', `ne'.
3799         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3800         Use `schar' for `aq'.
3801         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3802         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3803         * tmac/tty.tmac: Add `ne'.
3805         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3806         for fallback glyphs.
3808 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3810         Add glyph `|='.
3812         * font/devX*/*: Regenerated.
3813         * font/devdvi/generate/ec.map: Remove `eq'.
3814         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3815         Assign `|=' to position 39.
3816         * font/devdvi/*EC, S: Regenerated.
3817         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3818         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3819         Assign `|=' to position 549.
3820         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3821         `equalmath'.
3822         Add `uni2243' for `|='.
3824         * tmac/ec.tmac: Add `eq'.
3825         * tmac/dvi.tmac: Add `=~'.
3826         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3827         `|='.
3829 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3831         * font/devdvi/generate/tc.map: Remove `**'.
3832         * font/devdvi/*TC: Regenerated.
3833         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3834         `78', `<<', `>>'.
3835         * font/devutf8/NOTES: Updated.
3837         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3838         Don't give default parameter to `set_macro'.
3839         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3840         instead of `set_macro'.
3841         (charinfo::setx_macro): Implement it.
3842         (charinfo::set_macro): Don't change `mode'.
3844         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3845         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3846         * tmac/dvi.tmac: Define `!=' with `.schar'.
3848 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3850         * font/devX*/S: Regenerated.
3851         * font/devdvi/generate/ec.map: Remove `pl'.
3852         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3853         * font/devdvi/*{TC,EC}: Regenerated.
3854         * font/devhtml/R.proto: Add `-+'.
3855         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3856         * font/devlbp/*: Remove `or'.
3857         * font/devlj4/generate/special.map: Remove `or'.
3858         * font/devlj4/S: Regenerated.
3859         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3860         `seveneighths', `threeeighths'.
3861         Remove `plusmath'.
3862         Replace `minusplus' with `uni2213'.
3863         * font/devps/symbolmap: Regenerated.
3864         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3865         Add `-+'.
3867         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3868         function.
3869         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3870         Call glyph_color and fill_color even if tcommand_flag isn't set.
3871         (make_node, node::add_char): Check not ci->is_fallback but
3872         ci->is_normal.
3874         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3875         * tmac/ec.tmac: Add .rchar entry for `f/'.
3876         Don't remove `12', `14', `34'.
3877         Define `pl' to be always roman.
3878         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3879         Define `18', `38', `58', `78'.
3880         * tmac/tty.tmac: Add `-+'.
3881         * tmac/dvi.tmac: Define `f/'.
3882         (dvi-frac): Use `f/'.
3883         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3884         Define `18', `38', `58', `78'.
3886 2002-12-15  Colin Watson  <cjwatson@debian.org>
3888         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3890 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3892         Add glyph `tno', a textual variant of `no'.
3894         * font/devX*/*: Regenerated.
3895         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3896         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3897         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3898         * font/devdvi/*: Regenerated.
3899         * font/devlbp/*: Add `tno'.
3900         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3901         * font/devlj4/*: Regenerated.
3902         * font/devps/generate/textmap: Replace `no' with `tno'.
3903         * font/devps/generate/symbolchars: Add `no'.
3904         * font/devps/*: Regenerated.
3906         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3908         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3909         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3911         * NEWS: Updated.
3913         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3914         Add definition for `sd'.
3915         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3917         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3919 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3921         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3922         mode to avoid rounding errors.
3923         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3925         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3926         src/roff/troff/troff.man: Improve documentation of -T.
3928 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3930         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3931         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3933 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3935         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3936         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3937         Scaling Euro.sansserif glyphs down to have the same height as
3938         digits.
3939         Removed unnecessary points; added some extrema.
3941         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3942         Regenerated.
3944 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3946         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3947         and `Euro.symbol.bold.slanted'.
3948         Improve some glyph offsets and widths.
3949         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3950         Regenerated.
3951         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3952         typo.
3953         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3954         direcory.
3956         * tmac/europs.tmac: Updated to new glyph indices.
3957         Use Euro.symbol for font familiy `A'.
3959         * doc/groff.texinfo: Minor improvements.
3961 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3963         * font/devdvi/generate.tc.map: s/%O/%0/.
3964         * font/devdvi/*TC: Regenerated.
3966         * src/roff/troff/div.cc (init_div_requests): Sorted.
3968         * tmac/dvi.tmac: Remove `Ye'.
3969         * tmac/ec.tmac: Remove `Ye'.
3970         Add .rchar entry for `de'.
3972         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3973         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3974         * NEWS: Updated.
3976 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3978         Add PS font for various Euro glyphs.
3980         * font/devps/generate/freeeuro.sfd: New master font file for
3981         pfaedit.
3982         * font/devps/generate/sfdtopfa.pe: New conversion script for
3983         pfaedit.
3984         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3985         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3986         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3987         `freeeuro.sfd'.
3988         * font/devps/EURO: Generated from `freeeuro.afm'.
3989         * font/devps/download: Add `freeuro.pfa'.
3990         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3991         `freeeuro.pfa'.
3993         * tmac/europs.tmac: New file.
3994         * tmac/ps.tmac: Include `europs.tmac'.
3995         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3997 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3999         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4000         * font/devdvi/S: Regenerated.
4001         * font/devhtml/R.proto: Fix `CR' and `ci'.
4002         Add `OK'.
4003         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4004         Remove `bs'.
4005         * font/devps/symbolmap: Regenerated.
4006         * font/devutf8/R.proto: Fix `CR' and `ci'.
4007         Add `OK'.
4008         * font/devutf8/NOTES: Updated.
4010         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4011         `ci'.
4012         Add `OK'.
4013         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4015         * tmac/dvi.tmac: Add `lh' and `rh'.
4016         * tmac/Xps.tmac: Fix `lh' and `rh'.
4017         * tmac/X.tmac: Add `OK'.
4018         * tmac/lj4.tmac: Ditto.
4020 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4022         * font/devX*/S: Regenerated.
4023         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4024         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4025         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4026         * font/devdvi/S: Regenerated.
4027         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4028         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4029         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4030         `bracketleftbt', `bracketrighttp', `bracketrightex',
4031         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4032         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4033         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4034         `rb', and `bv'.
4035         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4036         * font/devutf8/NOTES: Updated.
4037         * font/devlj4/generate/special.map: Add glyph `braceex'.
4038         * font/devlj4/S: Regenerated.
4040         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4042 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4044         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4045         and `vA'.
4046         Fix code for `an'.
4047         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4049         * doc/texinfo.tex: New version from texinfo 4.3.
4050         * doc/groff.texinfo: Updated for texinfo 4.3.
4051         Use @tie{} where appropriate.
4052         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4053         * font/devdvi/generate/tc.map: Remove `rn'.
4054         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4055         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4056         Fix code for `an'.
4057         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4058         font/devX75-12/*: Regenerated.
4060         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4061         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4062         Improve definition of `an'.
4063         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4064         `ru'.
4065         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4066         * tmac/X.tmac: Add definition for `or'.
4067         * tmac/Xps.tmac: Undo change 2002-11-05.
4068         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4070 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4072         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4073         call flush_tbuf.
4075 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4077         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4078         defines a glyph which is searched after the check for fonts declared
4079         with `.special' (and before the check for all mounted special
4080         fonts).  `fschar' defines a glyph for a particular font which is
4081         searched after the check for fonts declared with `.fspecial' (and
4082         before the check for fonts declared with `.special').  `rfschar'
4083         removes glyphs defined with `fschar'.
4085         * src/roff/troff/token.h (char_mode): New enum.
4086         Declare do_define_character.
4087         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4088         `mode'.
4089         (charinfo::is_fallback): Updated.
4090         (charinfo::is_special): New method.
4091         * src/roff/troff/input.cc (do_define_character): Add and use
4092         optional second parameter used as a prefix for font-specific glyph
4093         names.
4094         (define_character, define_fallback_character): Updated.
4095         (define_special_character): New function.
4096         (init_input_requests): Add `schar'.
4097         (charinfo::charinfo, charinfo::set_macro): Updated.
4098         * src/roff/troff/node.cc: Include `stringclass.h'.
4099         (make_glyph_node): Handle special glyphs defined with `.schar' and
4100         `.fschar'.
4101         (define_font_special_character, remove_font_special_character): New
4102         functions.
4103         (init_node_requests): Sorted.
4104         Add `fschar' and `rfschar'.
4105         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4106         Document new requests.
4108         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4109         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4111 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4113         Added new font `SC' (cmtex10) to devdvi.
4115         * devdvi/generate/Makefile (FONTS): Add `SC'.
4116         (SC): New rule.
4117         * devdvi/generate/textex.map: New map file for cmtex.
4118         * devdvi/SC: New.
4119         * devdvi/Makefile.sub (DEVFILES): Updated.
4120         * tmac/dvi.tmac: Add fspecial entries for SC.
4121         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4122         found before `S' since the font position of `SC' is lower due to the
4123         gaps in DESC's `font' line.
4124         * tmac/ec.tmac: Add a `special' call.
4125         * NEWS: Updated.
4127         * font/devhtml/R.proto: Remove double entry for `ti'.
4128         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4129         * tmac/tty-char.tmac: Remove entry for `bq'.
4130         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4131         * tmac/ec.tmac: Don't remove `aq' glyph.
4132         * tmac/X.tmac: Fix entry for `em'.
4133         Add entries for `fo' and `fc'.
4134         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4136         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4137         documentation of `special' and `fspecial' requests.
4139 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4141         * font/devascii/R.proto, font/devcp1047/R.proto,
4142         font/devlatin1/R.proto: Remove entry for `.i'.
4143         * font/devdvi/generate/textt.map: Add entry for `ad'.
4144         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4145         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4146         We need this for getting kerning values to compose `/l' and `/L'.
4147         * font/devdvi: Regenerated font definition files for CM fonts.
4148         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4149         * font/devutf8/R.proto: Ditto.
4150         Remove double entry for `ti'.
4152         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4153         for (groff) ligatures, `la', and `ra'.
4154         Add "'C", "'c", `IJ', and `ij'.
4155         Remove double entry for `ti'.
4156         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4157         double entries.
4158         Add "'C", "'c", `IJ', and `ij'.
4159         Fix entries for (groff) ligatures, `la', and `ra'.
4161         * tmac/ps.tmac (ps-achar): New macro.
4162         Define "'c" and "'C".
4163         * tmac/tty.tmac: Add entry for `.i'.
4164         * tmac/X.tmac (X-achar): New macro.
4165         Define "'c", "'C", and `:Y'.
4166         Add entries for `IJ' and `ij'.
4167         * tmac/Xps.tmac (Xps-achar): New macro.
4168         Define "'c" and "'C".
4169         Add entries for `IJ' and `ij'.
4170         * tmac/lbp.tmac (lbp-achar): New macro.
4171         Add fallback characters for all groff ligatures and many other
4172         glyphs.
4173         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4174         Add entries for `/l' and `/L'.
4175         Define "'c" and "'C".
4176         Add entries for `IJ' and `ij'.
4178 2002-11-02  Larry Kollar  <kollar@alltel.net>
4180         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4182 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4184         Adding support for composite glyphs: \[xxx yyy ...] and the
4185         `composite' request.
4187         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4188         to Unicode-based glyph names.
4189         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4190         glyph names to groff glyph names.
4191         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4192         Unicode-based glyph names.
4193         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4194         for handling Unicode glyph names.
4195         * src/roff/troff/input.cc: Include unicode.h.
4196         (composite_glyph_name): New function.
4197         (token::next) <'['>: Handle Unicode glyph names and composite
4198         glyphs.
4199         (composite_dictionary): New dictionary for the `composite' request.
4200         (composite_request): Implement `composite' request.
4201         (init_input_requests): Add `composite'.
4202         Alphabetically sorted.
4203         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4204         commented out).
4205         (init_env_requests): Alphabetically sorted.
4206         Removed `tas' and `tar' (already commented out).
4207         * src/roff/troff/Makefile.sub: Updated.
4209 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4211         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4212         of options.
4214 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4216         Fix computation of .trunc register.  Additionally, its value (and
4217         the value of the .ne register) is now always set before entering the
4218         trap.
4220         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4221         `needed_space' before calling `space'.
4222         (top_level_diversion::space): Remove special code for 'sp before the
4223         first page.
4224         Call `begin_page' with the discarded space as a parameter.
4225         (top_level_diversion::begin_page): Add optional parameter to set
4226         `truncated_space'.
4227         * src/roff/troff/div.h: Updated.
4229         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4230         \n[.ne].
4232         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4233         (LP): Remove superfluous call to `br'.
4234         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4235         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4237 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4239         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4240         (doc-setup-header): Don't set page register `%'.
4241         * tmac/doc-nroff: Remove variable `C'.
4242         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4243         (doc-setup-header): Don't set page register `%'.
4244         Don't call `bp'.
4245         * tmac/doc-common (doc-header): Call `ns'.
4246         (doc-paragraph): Protect .sp with .br so that it survives traps
4247         possibly set by the user.
4248         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4250         * tmac/doc*: Replace ' with . for consistency if no effect.
4252 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4254         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4255         so that it survives traps possibly set by the user.
4257         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4258         (troff_output_file::set_font): Call flush_tbuf if necessary.
4259         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4260         flush_tbuf and do_motion only if necessary.
4261         (troff_output_file::start_special,
4262         troff_output_file::put_char_width, troff_output_file::put_char,
4263         troff_output_file::draw): Updated.
4264         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4265         vmotion_node::tprint): Undo change 2002-10-23.
4267 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4269         * tmac/www.tmac (DC): Fix case of overlapping images.
4271 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4273         * src/roff/troff/node.cc (troff_output_file::fill_color,
4274         troff_output_file::glyph_color): Set current color before testing
4275         color_flag.
4276         (troff_output_file::put_char_width, troff_output_file::put_char,
4277         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4278         before glyph_color.
4279         (troff_output_file::file_color, troff_output_file::glyph_color):
4280         Call do_motion.
4281         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4282         vmotion_node::tprint): Move first, then call fill_color.
4284 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4286         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4287         possible to use multiple main macro packages.
4289 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4291         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4292         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4293         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4294         is set.
4295         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4296         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4298 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4300         * NEWS, doc/webpage.ms: Updated.
4302 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4304         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4305         troff_output_file::put_char, troff_output_file::fill_color,
4306         troff_output_file::glyph_color): Handle case where color pointer
4307         is null.
4309 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4311         Add the new -r option to grotty.  It is similar to the -i option
4312         except it tells grotty(1) to use the "reverse video" attribute to
4313         render italic fonts.
4315         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4316         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4317         (tty_printer::make_underline, tty_printer::put_color,
4318         tty_printer::end_page): Use it.
4319         (main): Add -r switch.
4320         (usage): Updated.
4321         * src/devices/grotty/grotty.man: Document it.
4323 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4325         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4326         cast to `unsigned char' to properly read patterns with 8bit
4327         characters.
4329 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4331         * REVISION: Increased to 2.
4333 Version 1.18.1 released
4334 =======================
4336 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4338         * doc/webpage.ms, NEWS: Updated.
4340 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4342         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4343         suppress additional whitespace after the header.
4345         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4346         with NetBSD.
4348         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4350 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4352         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4353         (Dt): Use it to improve language localization (especially Russian
4354         and French).
4356 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4358         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4359         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4360         drawing commands.
4361         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4362         curve type.
4363         Call `picurve' for BSPLINE.
4364         (HGPrintElt): Handle BSPLINE.
4365         * src/preproc/grn/README: Document it.
4367 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4369         * src/roff/troff/node.cc (break_char_node::col): New variable.
4370         Updated constructor.
4371         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4372         unconditionally.
4373         (space_node::space_node): Remove assertion.
4374         (break_char_node::add_self): Pass color argument to space node.
4375         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4376         Ditto.
4377         * src/roff/troff/env.cc (environment::do_break,
4378         environment::add_padding): Ditto.
4380 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4382         Redesigning color support in troff.  Colors are no longer
4383         represented as separate nodes but are now part of glyph nodes and
4384         friends.  This fixes the current formatting misbehaviour due to the
4385         changes introduced on 2002-09-20.  Some extra code is necessary for
4386         proper grotty support: Without adding color variables to
4387         space-related nodes, the background color would be changed too late.
4389         * src/roff/troff/node.h, src/roff/troff/node.cc:
4390         s/current_pagecolor/current_fill_color/.
4391         s/current_glyphcolor/current_glyph_color/.
4392         (glyph_color_node, fill_color_node): Removed.
4393         (node::get_glyph_color, node::get_fill_color): New virtual member
4394         functions.
4395         (space_node::col): New variable.
4396         Updated constructors of space_node and derived classes accordingly.
4397         (hmotion_node::col): New variable.
4398         Updated constructors of hmotion_node and space_char_hmotion_node
4399         accordingly.
4400         (vmotion_node::col): New variable.
4401         Updated constructor accordingly.
4402         (draw_node::gcol, draw_node::fcol): New variables.
4403         Updated constructor accordingly.
4404         (special_node::gcol, special_node::fcol): New variables.
4405         Updated constructors accordingly.
4406         (troff_output_file::put_char, troff_output_file::put_charwidth,
4407         troff_output_file::draw): Set glyph and fill color.
4408         (troff_output_file::start_special): Set glyph and fill color.
4409         Always set current font.
4410         (troff_output_file::fill_color, troff_output_file::glyph_color):
4411         Don't call `do_motion'.
4412         (glyph_node::gcol, glyph_node::fcol): New variables.
4413         Updated constructors of glyph_node and ligature_node accordingly.
4414         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4415         member functions.
4416         (glyph_node::merge_glyph_node,
4417         kern_pair_node::add_discretionary_hyphen,
4418         node::add_discretionary_hyphen): Updated.
4419         (break_char_node::merge_self): Updated.
4420         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4421         vmotion_node::tprint): Handle color.
4422         (make_glyph_node, make_node, node::add_char): Updated.
4424         * src/roff/troff/env.cc (environment::space_newline,
4425         environment::space, environment::output_line, environment::do_break,
4426         environment::make_tab_node, environment::add_padding, title):
4427         Updated.
4428         (environment_switch, environment_copy): Don't add color nodes.
4430         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4431         nothing.
4432         (token::next): Updated.
4433         \m and \M now are as transparent as \s.
4434         (process_input_stack, token::add_to_node_list, token::process,
4435         read_draw_node): Updated.
4436         (charinfo_to_node_list): Don't add color nodes.
4438         * doc/groff.texinfo: Updated.
4440 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4442         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4443         strings.
4445 2002-09-27  Colin Watson  <cjwatson@debian.org>
4447         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4449 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4451         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4452         appropriate.
4453         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4454         (linewidth_factor): New global variable.
4455         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4456         linewidth_factor.
4457         (long_options): Add -w/--linewidth option.
4458         (usage): Updated.
4459         (main): Handle -w option to set linewidth_factor.
4460         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4461         line_thickness.
4463         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4465 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4467         Fixed a bug in the line thickness setting code.
4469         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4470         variable.
4471         (lbp_printer::set_line_thickness): Pass environment as second
4472         parameter.
4473         Implement it actually.
4474         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4475         and `set_line_thickness, depending on the current font size.
4477 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4479         Some Debian patches.
4481         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4482         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4483         `list->last'.
4485 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4487         * configure: Regenerated with autoconf 2.54.
4489 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4491         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4492         glyph_color.
4493         Rename cur_fill_color to fill_color.
4494         * src/roff/troff/env.cc: Updated.
4496 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4498         * src/roff/troff/env.cc (title): Copy color status after processing
4499         title.
4500         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4501         fill color nodes to reset colors properly.
4503         * tmac/www.tmac (DC): Fix color handling.
4505         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4506         * doc/groff.texinfo: Fixing documentation of `tl' request.
4507         * doc/webpage.ms: Updated.
4509 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4511         * src/roff/troff/env.cc (environent_switch, environment_copy):
4512         Emit glyph and fill color nodes to initialize colors properly.
4514 2002-09-17  Colin Watson  <cjwatson@debian.org>
4516         * src/roff/troff/env.cc (environment::set_glyph_color,
4517         environment::set_fill_color): Fix typo which prevented \m[] work
4518         correctly.
4520 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4522         Add left and right italic correction to non-slanted PS fonts.  This
4523         is an experimental feature to improve image rendering of grohtml.
4525         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4526         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4527         * font/devps/*: All non-slanted fonts regenerated.
4528         * NEWS: Updated.
4530 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4532         Add a site-specific font directory.
4534         * Makefile.in (localfontdir, legacyfontdir): New variables.
4535         (fontpath): Use them.
4536         (MDEFINES, uninstall_dirs): Updated.
4537         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4538         Remove `FONTPATH' and `MACROPATH'.
4540         * src/roff/troff/troff.man, NEWS: Updated.
4541         * doc/groff.texinfo (Font Directories): New section.
4542         Other minor fixes.
4544         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4545         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4546         src/preproc/grn/grn.man: Minor fixes.
4548         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4549         Remove unused variable.
4551 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4553         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4554         * man/groff_out.man: Fix documentation of 'N'.
4556 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4558         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4559         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4560         set.
4561         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4562         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4563         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4564         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4565         PRE_TAG>: Call `begin' with `FALSE'.
4567 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4569         * src/libs/libgroff/string.cc (string::extract): Fix position of
4570         terminating null byte.
4572 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4574         Add global option `nospaces' to tbl so that leading and trailing
4575         spaces in data items are ignored.
4577         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4578         function to remove leading and trailing spaces.
4579         * src/include/stringclass.h: Updated.
4581         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4583         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4584         option.
4585         Fix typo in error messages.
4586         (process_data): Implement `nospaces' option.
4587         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4589 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4591         * src/include/config.hin: Add `HAVE_ISATTY'.
4592         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4593         `fname' member.
4594         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4595         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4596         `operator!=' for `char'.
4597         * doc/groff.texinfo: Replace @ifnottex block for top node with
4598         @ifhtml block.
4600 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4602         * doc/Makefile.in (.texinfo.html): Add -I switch.
4603         * doc/groff.texinfo: Add @ifnottex block for top node to make
4604         translation to HTML work.
4606 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4608         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4609         (get_papersize, determine_vertical_offset): Removed.
4610         (char_buffer::do_image): Always specify letter size.
4611         (main): Updated.
4612         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4613         -sPAPERSIZE.
4615 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4617         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4618         default indentation.
4620 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4622         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4623         -sPAPERSIZE for gs.
4624         (generateImages): Clean up push-back buffer.
4626 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4628         * doc/groff.texinfo: Minor fixes.
4630 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4632         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4633         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4634         (gsPaper): Removed.
4635         (determine_vertical_offset): Use LETTER_LENGTH.
4636         (createPage): Moved to ...
4637         (imageList::createPage): This.
4638         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4639         (imageList::getMaxX): New function.
4640         (createImage): Moved to ...
4641         (imageList::createImage): This.
4642         (imageList::createImages): New function.
4643         (generateImages): Read `maxx' directly.
4644         Updated.
4645         (scanArguments): Don't specify `gsPaper' for `-o'.
4646         (makeTempFiles): Call `xtmpfile' with the last argument set to
4647         `TRUE'.
4649 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4651         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4652         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4653         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4654         * src/preproc/html/pushback.cc: Include nonposix.h.
4655         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4656         conditionally.
4658 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4660         Use $(OBJEXT) for the object file extension.
4662         * Makefile.comm (.SUFFIXES): Add .obj.
4663         (.cc.obj, .c.obj): New implicit rules.
4664         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4665         (MDEFINES): Add EXEEXT and OBJEXT.
4666         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4668 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4670         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4672 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4674         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4675         the file.
4676         (html_printer::update_min_max, html_printer::add_table_end): New
4677         methods.
4678         (html_printer::lookahead_for_tables): Use them.
4679         Reset page offset correctly.
4680         (html_printer::~html_printer): Add creation of creator comment up.
4682 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4684         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4685         * man/groff_tmac.man: Fix typos.
4686         * man/groff_font.man: Minor reordering.
4687         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4689 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4691         Avoid endless loops while scanning for tables.
4693         * src/devices/grohtml/post-html.cc (list::insert): Set
4694         ptr->right->left.
4695         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4696         all callers.
4697         Return immediately if that argument is NULL.
4698         (html_printer::calc_nf): Don't test if `g' is NULL.
4699         (html_printer::lookahead_for_tables): Use
4700         `glyphs.move_right_get_data'.
4701         Don't test if `g' is NULL.
4703 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4705         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4707         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4708         a pointer.
4709         (char_block::char_block): Allocate `buffer'.
4710         (char_buffer::add_string): Use it.
4712 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4714         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4715         src/devices/grodvi/grodvi.man: Document default line thickness.
4717 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4719         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4720         8192.
4722 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4724         * doc/webpage.ms: Updated.
4726 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4728         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4729         unbreakable space.
4731 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4733         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4734         (&& -> &).
4736 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4738         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4739         tok.next().
4740         (read_gray): Ditto.
4741         Don't push back a space but a newline onto the stack.
4743 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4745         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4746         inadvertently.
4748         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4749         html_printer::start_font): Handle them.
4750         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4751         reset bold and tt.
4752         (html_text::do_bold): Don't reset italic and tt.
4753         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4754         * font/devhtml/DESC.proto: Add those fonts.
4755         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4757 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4759         * MORE.STUFF: Added gpresent.
4761         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4762         whitespace before printing the logging message.
4764 2002-07-31  Colin Watson  <cjwatson@debian.org>
4766         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4767         Initialize `n' to zero.  This fixes a segfault on ARM.
4769 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4771         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4773 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4775         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4776         final semicolon.
4778 2002-07-28  Colin Watson  <cjwatson@debian.org>
4780         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4781         `.ps'.
4782         (html_printer::html_printer): Initialize `pointsize'.
4784 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4786         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4787         gnu.png.
4788         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4789         (gnu.eps): Add -rle switch to pnmtops.
4790         (distfiles): Add gnu.eps and gnu.png.
4792 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4794         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4795         Add `operator!='.
4797 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4799         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4800         ' \+' but '  *' for sed.
4801         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4803 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4805         * doc/groff.texinfo: Document `papersize' keyword.
4806         * NEWS, man/groff_font.man: Updated.
4808 2002-07-23  Colin Watson  <cjwatson@debian.org>
4810         Extend papersize keyword to accept more than a single entry.  The
4811         first valid will be used.
4813         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4814         (font::scan_papersize): Really skip final newline.
4815         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4817 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4819         * configure.ac: Test for isatty.
4820         * configure: Regenerated.
4821         * src/include/posix.h: Check HAVE_ISATTY.
4822         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4823         * src/utils/lookbib/lookbib.cc: Include posix.h.
4824         Don't declare isatty.
4826 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4828         * NEWS: Add `output' request.
4830         * REVISION: Increased to 1.
4832 Version 1.18.0 released
4833 =======================
4835 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4837         Allow internal glyph indices > 0xFF in grohtml for input characters.
4839         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4840         as parameter.
4841         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4842         Updated all callers.
4843         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4844         (html_printer): Updated.
4846 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4848         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4849         * font/devutf8/R.proto: Adding some missing glyphs.
4850         * font/devutf8/NOTES: Updated.
4852         * tmac/dvi.tmac: Add more composite glyphs.
4853         * tmac/html.tmac: Updated.
4855         * man/groff_char.man: Add `sum' and `product' entities.
4857         * NEWS: Updated.
4859 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4861         Improved table, tab, and indenting support.
4863         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4864         string_iterator::suppress_newline_flag): Removed.  Updated all
4865         function which have used it.
4867         * src/roff/troff/env.cc: Include `input.h'.
4868         (environment::add_node): Accept 0 as parameter.
4869         (environment::add_html_tag): Add `force' parameter.
4870         Updated all callers.
4871         (environment::add_html_tag_tabs): Ditto.
4872         For the moment, support left-aligned tabs only.
4873         (environment::make_html_tag): New function.
4874         (fill, no_fill): Set .br html tag additionally.
4875         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4876         (environment::add_html_tag_eol): Removed.
4877         (tab_stops::distance_to_next_tab): Add variant for handling 
4878         nextpos'.
4879         (environment::distance_to_next_tab): Ditto.
4880         Updated all callers.
4881         (environment::handle_tab): Handle tabs for html.
4882         
4883         * src/roff/troff/env.h: Updated.
4885         * src/roff/troff/div.cc: Updated all callers of
4886         `environment::add_html_tag'.
4888         * src/devices/grohtml/html-table.cc,
4889         src/devices/grohtml/html-table.h: New files.
4891         * src/devices/grohtml/html-text.cc (html_text): New members
4892         `blank_para' and `start_space'.
4893         (html_text::issue_tag): Don't emit TABLE_TAG.
4894         Handle indentation for PRE_TAG and P_TAG.
4895         (html_text::end_tag): Updated.
4896         (html_text::table_is_void, html_text::issue_table_begin,
4897         html_text::issue_table_end): Removed.
4898         (html_text::do_push): Simplified.
4899         [DEBUGGING]: Small fix.
4900         (html_text::push_para): Add new parameter for indentation; updated
4901         all callers.
4902         Handle PRE_TAG.
4903         (html_text::do_indent, html_text::do_table, html_text::done_table,
4904         html_text::is_in_table): Removed.
4905         (html_text::do_pre): Handle P_TAG also.
4906         (html_text::shutdown): Handle p->indent.
4907         (html_text::check_emit_text): Simplified.
4908         (html_text::do_emittext): Reset `blank_para'.
4909         (html_text::do_para): Add new parameter for indentation; updated
4910         all callers.
4911         (html_text::remove_indent): New function.
4912         (html_text::do_space): Handle verbatim text properly.
4913         (html_text::ever_emitted_text, html_text::starts_with_space,
4914         html_text::remove_para_align): New functions.
4915         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4917         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4918         Updated.
4920         * src/devices/grohtml/post-html.cc: Include html-table.h.
4921         (INDENTATION): Removed.
4922         (text_glob): Added many `is_<foo>' functions.
4923         Added table description `tab'.
4924         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4925         member functions.
4926         (list): Add `insert' and `move_to' member functions.
4927         (page): Add `insert_tag' member function.
4928         (page::dump_page) [DEBUG_TABLES]: Improved.
4929         (html_printer): Add `table' and `max_linelength' elements.
4930         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4931         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4932         `remove_tabs', `remove_courier_tabs'.
4933         (html_printer::emit_raw): Handle indentation.
4934         (html_printer::do_center, html_printer::write_header): Updated.
4935         (html_printer::is_courier_until_eol): Check for tag.
4936         (html_printer::do_linelength): Handle max_linelength.
4937         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4938         fill_on.
4939         (html_printer::do_tempindent): Updated.
4940         (html_printer::do_indentedparagraph): Removed.
4941         (html_printer::do_indent): Simplified.
4942         (html_printer::do_eol): Use `ever_emitted_text'.
4943         (html_printer::do_flush, html_printer::do_links): Don't call
4944         done_table.
4945         (html_printer::do_break): Handle end_tempindent.
4946         (html_printer::troff_tag): Get argument.
4947         Don't handle `.ip'.
4948         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4949         (html_printer::flush_page): Call `lookahead_for_tables'.
4950         Don't call `done_table'.
4951         (html_printer::add_to_sbuf): Always call do_indent.
4953         * src/devices/grohtml/Makefile.sub: Updated.
4955         * tmac/an-old.tmac (TP): Don't handle html device specially.
4956         (an-do-tag-html): New function which will be used instead of
4957         `an-do-tag' if html device is used.
4959         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4961         * tmac/s.tmac (@IP): Don't handle html device specially.
4962         (@IP-html): New function which will be used instead of `@IP' if
4963         html device is used.
4965         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4966         is a hack which will eventually vanish again.
4967         (PIMG): Handle `-C' option correctly if not html.
4968         (HR): Use HTML-NS.
4970 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4972         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4974 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4976         * contrib/pic2graph/pic2graph.*: Use convert(1).
4977         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4979 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4981         * tmac/groff_trace.man: New file.
4982         * tmac/Makefile.sub: Updated.
4983         * NEWS: Updated.
4985 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4987         * src/roff/groff/groff.man: Add some cross references.
4989 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4991         * src/roff/troff/input.cc (substring_request): Add warnings for
4992         string indices out of range.
4994 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4996         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4997         * font/devdvi/*EC: Regenerated.
4999 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5001         * man/groff_char.man: Updated and extended.
5003 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5005         * src/roff/troff/input.cc (length_macro): Renamed to...
5006         (length_request): This.
5007         Move call of `tok.next()' to the very end, otherwise the register
5008         value hasn't been updated yet.
5009         (init_input_requests): Updated.
5011 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5013         * src/roff/troff/input.cc (substring_macro): Renamed to...
5014         (substring_request): This.
5015         (init_input_requests): Updated.
5016         * src/roff/troff/request.h: Updated.
5018 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5020         * src/roff/grog/grog.sh: Fix typo.
5022 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5024         * win32-diffs: Updated.
5026         Handle `papersize' keyword properly in DESC.
5028         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5029         type.
5030         Updated all callers.
5031         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5032         grolj4.
5033         * src/include/paper.h: Updated.
5035         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5036         Other minor C syntax fixes.
5037         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5038         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5039         members.
5040         (lbp_printer::lbp_printer): Pass three arguments.
5041         Set paper dimensions properly.
5042         (make_printer, main): Updated.
5043         (handle_unknown_desc_command): Fix error messages.
5044         (main): Handle papersize keyword in DESC properly.
5046         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5047         `user_paper_size'.
5048         (lbp_printer::lbp_printer): Pass an argument.
5049         Set paper_size properly.
5050         (handle_unknown_desc_command): Removed.
5051         (make_printer, main): Updated.
5052         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5054         * man/groff_font.man, NEWS: Updated.
5056 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5058         Integrated eqn2graph, contributed by Eric S. Raymond.
5060         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5061         files.
5062         * Makefile.in, NEWS: Updated.
5064 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5066         Changing the substring request to make it fit better with other
5067         string manipulation functions in other programming languages:
5068         Index 0 is now the first character in the string, and index -1
5069         indicates the last character.  Since this request didn't work
5070         properly anyway in the last release, it doesn't harm too much to
5071         change the syntax.
5073         * src/roff/troff/input.cc (substring_macro): Use loops to get
5074         the real string length (ignoring COMPATIBLE_SAVE and
5075         COMPATIBLE_RESTORE) and offsets.
5076         Implement change described above.
5078         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5079         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5081         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5083 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5085         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5086         COMPATIBLE_RESTORE are completely ignored.
5088         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5089         functions.
5090         (macro): `length' field renamed to `len'.
5091         Added new field `empty_macro' (1 if macro is empty), to be used
5092         instead of checking `len'.
5093         Updated all callers.
5094         (macro::empty): Updated.
5095         (macro::length, macro::set, macro::get): New functions.
5096         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5097         Set `empty_macro'.
5098         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5099         COMPATIBLE_RESTORE pairs.
5100         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5101         * src/roff/troff/request.h: Updated.
5103         * doc/groff.texinfo: Document .chop's behaviour better.
5105 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5107         * doc/pic.ms: Fix documentation for the addition of positions.
5109         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5111 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5113         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5115         * src/roff/troff/input.cc (have_string_arg): New global variable.
5116         (read_mode): New enumeration.
5117         (read_escape_name): Use it.  Update all calls.
5118         (read_long_escape_name): Use it.  Update all calls.
5119         Set have_string_arg if appropriate.
5120         (get_char_for_escape_name): Add parameter for handling space
5121         character.
5122         (interpolate_string_with_args, decode_string_args): New functions.
5123         (get_copy, token::next): Call it if necessary.
5124         (interpolate_string): Fix error message.
5126         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5127         Document it.
5129 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5131         * man/groff_tmac.man: Updated and extended.
5133 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5135         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5137 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5139         * doc/pic.ms: Improve documentation of composite block objects.
5141 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5143         * src/roff/troff/input.cc (init_registers): Add three registers
5144         `seconds', `minutes', and `hours' to hold the current time.
5146         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5147         Updated.
5149 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5151         Make \X accept both `\ ' and `\~', converting them to single space
5152         characters.
5154         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5155         (token::unstretchable_space): New inline function.
5156         * src/roff/troff/input.cc (token::next, token::delimiter,
5157         token::description, token::add_to_node_list, token::process): Handle
5158         TOKEN_UNSTRETCHABLE_NODE.
5159         (encode_char): Handle tok.stretchable_space and
5160         tok.unstretchable_space.
5162         * NEWS, doc/groff.texinfo: Document it..
5164 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5166         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5168         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5169         keyword to enable/disable SGR output.
5170         (tty_printer::change_fill_color): New function.
5171         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5173         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5174         call.
5176 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5178         Add a `color' request and a `.color' register to control usage of
5179         colours.
5181         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5182         (color_flag): This (which is the inverse).
5183         (activate_color): New function.
5184         (main, init_input_requests): Updated.
5185         * src/roff/troff/troff.h, src/roff/troff/node.cc
5186         (troff_output_file::fill_color, troff_output_file::glyph_color):
5187         Updated.
5189         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5190         Document the changes.
5192 2002-06-17  Colin Watson  <cjwatson@debian.org>
5194         Circumvent bug in autoconf 2.53 regarding top_builddir.
5196         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5197         * Makefile.in, doc/Makefile.in:
5198         s/@top_builddir@/@groff_top_builddir@/.
5199         * configure: Regenerated (with autoconf 2.53).
5201 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5203         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5204         `paperwidth' and `paperlength' for the `papersize' keyword.
5206 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5208         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5210 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5212         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5213         html_printer::do_linelength, html_printer::do_pageoffset,
5214         html_printer::do_indentation, html_printer::do_tempindent,
5215         html_printer::do_break, html_printer::begin_page): Clear indented
5216         text.
5217         * tmac/html.tmac: Disable hyphenation.
5219 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5221         Don't produce HTML files if utility programs are missing.
5223         * Makefile.in (make_html, make_install_html): New variables.
5224         (MDEFINES): Updated.
5226         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5227         utility programs.
5228         * configure.ac: Use it.
5229         * configure: Regenerated.
5231         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5232         (HTMLEXAMPLESFILES): This new variable.
5233         (EXAMPLESIMAGEFILES): Renamed to...
5234         (HTMLEXAMPLEIMAGEFILES): This.
5235         (CLEANADD): Add HTMLEXAMPLEFILES.
5236         (all): Use `make_html'.
5237         (html): New target.
5238         (install_data): Use `make_install_html'.
5239         Move html stuff to...
5240         (install_html): This new target.
5241         (uninstall_sub): Updated.
5243 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5245         * src/roff/grog/Makefile.sub (grog): Renamed to...
5246         (grog.old): This.
5247         (grog): New rule to always install grog.sh as grog.
5249 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5251         * src/roff/grog/grog.pl: Fix typo.
5253 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5255         * doc/groff.texinfo: Add more info on .tr arguments.
5257 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5259         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5261         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5262         * configure: Regenerated.
5264 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5266         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5268         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5270 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5272         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5273         is not initialized at the time we need it in case `--prefix' hasn't
5274         been set.  Check for `ac_default_prefix' also.
5275         Test for `papersize' keyword also and generalize allowed whitespace.
5276         * configure: Regenerated.
5278         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5279         `paperlength'.
5281         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5282         with...
5283         (src_version, src_revision): New variables to avoid overwriting
5284         from parent make process.
5285         (version.cc): Updated.
5287         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5288         (linebuf, linebufsize): New global variables.
5289         (sys_fatal): Use `fatal' to abort properly.
5290         (get_line): New function.
5291         (get_resolution): Use it.
5292         Improve error messages.
5293         (get_papersize): Check `papersize' also.
5294         Use `get_line'.
5295         Improve error messages.
5297 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5299         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5300         should be removed only if builddir is not srcdir.
5301         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5302         (clean): Depend on `mostlyclean'.
5303         (distclean): Depend on `clean'.
5304         (realclean, extraclean): Depend on `distclean'.
5305         (.y.cc, .y.o): Simplified.  The output files are no longer written
5306         to srcdir but to builddir.
5307         * Makefile.in (MDEFINES): Add `version' and `revision'.
5308         (uninstall_dirs): Fix order of directories.
5309         * doc/Makefile.sub (version, revision): Removed.
5310         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5311         Added `HTMLDOCFILES'.
5312         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5313         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5314         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5315         as prefix.
5317         * doc/texinfo.tex (\authortt): New macro.
5318         (\shortcontt): Define.
5319         (\titlepage): Set \tt to \authortt while defining \authorfont.
5320         (\appendixbox): New macro.
5321         (\chapmacro, \appendixentry): Use \appendixbox to get even
5322         indentation for letters.
5323         (\summarycontents): Set \tt.
5324         (\internalpagesize): Add two arguments for real paper width and
5325         height as needed by pdfTeX.
5326         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5327         Updated.
5328         (\tempdima, \tempdimb): New temporary dimensions.
5329         (\pagesizesyyy): Updated.
5331 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5333         Adding a new keyword `papersize' to the DESC file format (similar
5334         but not completely identical to grolbp's extension).  grops now has
5335         a -p command line option to override `papersize'.  Finally, grolbp
5336         has been adapted to the new syntax.
5338         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5339         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5340         elements.
5341         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5342         (CCSRCS): Add `paper.cc'.
5344         * src/include/font.h (font): Add `papersize' element.
5345         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5346         (font::scan_papersize): New function.
5347         (font::load_desc): Use it for handling `papersize' keyword.
5348         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5350         * src/devices/grops/ps.cc: Include paper.h.
5351         (user_paper_length): New global variable.
5352         (ps_printer): Use paper length as initializer.
5353         (make_printer): Updated.
5354         (main): Handle new `-p' option.
5355         * src/devices/grops/grops.man: Updated.
5357         * src/devices/grolbp/lbp.cc: Include paper.h.
5358         s/papersizes/lbp_papersizes/.
5359         (set_papersize): Use new `papersizes' array.
5360         (handle_unknown_desc_command): Don't handle `papersize'.
5361         (main): Use `font::scan_papersize' for handling `-p' option.
5362         * src/devices/grolbp/grolbp.man: Updated.
5364         * man/groff_font.man: Document `papersize'.
5365         * NEWS: Updated.
5367 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5369         * src/devices/grops/TODO: Updated.
5370         * src/devices/grops/grops.man: More info on paper formats.
5371         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5373 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5375         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5376         to list only if srcdir != currdir.
5377         (distfiles): New target.
5379         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5380         (NOMAKEDIRS): New variable.
5381         (DISTDIRS): Use it.
5383 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5385         Add .output request, similar to \! at top-level.
5387         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5388         (output_request): New function.
5389         (init_input_requests): Add it.
5390         Sorted.
5391         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5392         Document it.
5394         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5395         (prepare_examples): Fix typo.
5396         * doc/groff.texinfo (@direntry): Fix it.
5398 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5400         Including the doc subdir into groff's Makefile system.
5402         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5403         * configure.ac: Use it.
5404         Generate `doc/Makefile'.
5405         * configure: Regenerated.
5407         * Makefile.in (infodir, INSTALL_INFO): New variables.
5408         (MDEFINES, uninstall_dirs): Updated.
5409         (OTHERDIRS): Add `doc'.
5410         * Makefile.comm (CLEANDIRADD): New variable.
5411         (mostlyclean): Use it.
5413         * doc/Makefile.sub, doc/Makefile.in: New files.
5414         * doc/Makefile: Removed.
5416         * NEWS, INSTALL: Updated.
5418 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5420         * doc/homepage.ms: Renamed to ...
5421         * doc/webpage.ms: This.
5422         Use `.NHR'.
5424 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5426         Integrating the `mom' macro package, contributed by Peter Schaffter
5427         <df191@ncf.ca>.
5429         * contrib/mom/*: New subdirectory tree.
5430         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5431         be used for documentation files.
5432         (MDEFINES, uninstall_dirs): Use them.
5433         (OTHERDIRS): Add contrib/mom.
5434         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5435         @HTMLDOCDIR@.
5436         * MANIFEST, NEWS: Updated.
5438 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5440         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5441         if at outer level; at start-up we are at outer level.
5443         * src/roff/troff/input.cc (do_suppress): Implement it.
5444         Simplify \O[3].
5446         Add option -p to show progress information.
5447         pre-grohtml will now render only one page at a time, reducing the
5448         size of needed disk resources enormously.
5450         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5451         (imagePageName): New global variable.
5452         (psPageName, show_progress, currentPageNo): New global variables.
5453         (html_system): Close saved stderr and stdout handles.
5454         (write_end_image): Accept a parameter to control \O escape.
5455         (write_start_image): Adapted to new \O meaning.
5456         (char_buffer::write_upto_newline): Updated.
5457         (createAllPages): Replaced with...
5458         (createPage): This new function to create a single page for images.
5459         It uses `psselect' from the psutils package.
5460         (removeAllPages): Removed.
5461         (createImage): Updated.
5462         Handle progress display.
5463         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5464         (scanArguments): Add option -p.
5465         (makeTempFiles): Updated to create temp files for psPageName and
5466         imagePageName.
5467         (removeTempFiles): Removed.
5468         (main): Updated.
5470         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5471         html_printer::write_header): Append `\0' to `buffer'.
5472         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5473         (main): Handle -p.
5474         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5475         Handle `text_emitted'.
5476         (html_text::table_is_void): Slightly rewritten.
5477         (stop): New external symbol.
5478         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5479         (html_text::shutdown): Call `dump_stack'.
5480         (html_text::do_space): Rewritten.
5481         * src/devices/grohtml/grohtml.man: Document -p and the need of
5482         `psselect'.
5484         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5485         new \O syntax.
5486         Call \O[0] if `ps4html' is active.
5487         * tmac/s.tmac (@EQ, @EN): Handle html better.
5488         (@TS, TE): Ditto.
5489         * tmac/html.tmac: Don't use black for background colour.
5491         * src/roff/troff/node.cc: Include `div.h'.
5492         (troff_output_file::really_print_line): Don't use `is_on'. 
5493         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5494         troff_output_file::check_charinfo,
5495         troff_output_file::put_char_width, troff_output_file::put_char,
5496         troff_output_file::determine_line_limits, troff_output_file::draw,
5497         real_output_file::begin_page, glyph_color_node::tprintf,
5498         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5499         Use `is_on'.
5500         (troff_output_file::really_on): Call `do_motion'.
5501         (suppress_node::tprint): Use `get_page_number' instead of `%'
5502         register.
5503         Call `reset_output_registers' conditionally on `is_on'.
5505         * doc/groff.texinfo: Document new syntax of \O.
5506         * NEWS, man/groff_diff.man: Updated.
5508 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5510         * MORE.STUFF: Add info about David Frey's deroff implementation.
5511         Mention troff.org.
5513 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5515         Pic's `with' attribute now accepts positions.
5517         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5518         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5519         conflicts.
5520         (object_spec): Add rule for `WITH' and `position'.
5521         (relative_path): Give `corner' the precedence of `CHOP'.
5522         * src/preproc/pic/object.h (path): New members `pos' and
5523         `is_position'.
5524         * src/preproc/pic/object.cc: Updated initializers of `path'.
5525         (path::follow): Handle `is_position'.
5527         * doc/pic.ms: Completely updated grammar description.
5528         Many typographical improvements.
5530 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5532         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5533         code of x in range 0-127) also.
5534         * doc/groff.texinfo, man/groff_diff.man: Updated.
5536         Added keywords `north', `south', `east', and `west' for corners
5537         in pic.
5539         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5540         and WEST.
5541         (yylex): Handle them.
5542         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5543         (corner): Handle them.
5545 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5547         * src/devices/grops/grops.man: Clarify handling of `download' file.
5549 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5551         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5552         Jeffrey Friedl <jfriedl@yahoo.com>.
5554         * src/roff/troff/input.cc (spread_limit, warn_scale,
5555         warn_scaling_indicator): New global variables.
5556         (warnscale_request, spreadwarn_requests): New functions.
5557         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5558         (init_input_requests): Updated.
5559         (error_type): Add `OUTPUT_WARNING'.
5560         (do_error): Handle it.
5561         (output_warning): New warning function which shows output location.
5562         * src/roff/troff/env.h (spread_limit): New external variable.
5563         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5564         `output_warning'.
5565         (distribute_space): Emit warning if added space is larger than
5566         `spread_limit'.
5567         (environment::possibly_break_line): Emit warning if a line can't
5568         be adjusted on both sides.
5570         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5572 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5574         * src/roff/troff/node.cc (special_node::special_node): Use
5575         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5576         \X''\% crashes, for example.
5578         * doc/groff.texinfo: Document \! and \? used at top-level.
5580 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5582         * src/preproc/pic/pic.man: Fix some keyword syntax.
5583         Other minor typographical fixes.
5585         * src/roff/groff/groff.man: Fix typos.
5587 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5589         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5590         (ShortOpt[]): This to avoid problems with refer.
5592         * doc/pic.ms: Fix typo.
5593         Fix pic grammar description.
5595         * tmac/an-old.tmac (ne): Use de1, not de.
5597 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5599         * doc/groff.texinfo: Finished separation of glyphs and characters.
5600         Don't use the string `Appendix' for appendix headers (both in
5601         the text and the table of contents).
5602         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5603         directories.
5605         Use registers LL and LT (similar to -ms) for controlling the
5606         length of title and line, respectively, in the -man and -mdoc
5607         macro packages.
5609         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5610         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5611         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5612         (TH): Use \n[LL].
5613         (an-header, an-p-footer): Use \n[LT].
5614         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5615         doc/groff.texinfo: Document it.
5617 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5619         * doc/fdl.texi: New file.
5620         * doc/groff.texinfo: Include it.
5621         Define and use @copying.
5622         Starting with separating glyph, symbol, and character.
5624 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5626         * Makefile.in (EXEEXT): Set it.
5627         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5628         programs.
5630         * src/include/nonposix.h: Define GS_NAME.
5631         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5633         Some preliminary changes for EMX support under OS/2.
5635         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5636         __EMX__ similar to __MSDOS__.
5637         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5639 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5641         * doc/groff.texinfo: Integrated groff_out.man.
5642         Some macro fixes.
5644 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5646         * man/groff_out.man: Minor fixes.
5648 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5650         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5651         correct page references.
5652         Fixed many index entries.
5654 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5656         * man/roff.man: Enlarged.
5658 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5660         * doc/groff.texinfo: More examples, other fixes.
5662 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5664         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5665         will now form a chain, e.g.
5667           .pi foo
5668           .pi bar
5670         is now the same as
5672           .pi foo | bar
5674         This is for compatibility with plan 9's troff.
5676         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5677         with UNIX troff.
5678         * NEWS: Updated.
5680         * doc/groff.texinfo: Add documentation of remaining requests and
5681         registers.
5683 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5685         * doc/groff.texinfo: Add documentation of remaining escapes.
5687         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5688         * font/devdvi/*TC: Regenerated.
5690 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5692         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5693         if not in compatibility mode, i.e., increment relative to the
5694         previous height.
5695         * doc/groff.texinfo: Updated accordingly.
5697 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5699         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5701 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5703         * src/roff/groff/groff.man: Improve documentation of -P option.
5704         Other minor fixes.
5706 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5708         Add new escape \F to switch font family.
5710         * src/roff/troff/input.cc (token::next): Handle \F.
5711         * src/roff/troff/env.cc (environment::set_family): Handle
5712         `interrupted' flag.
5713         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5714         Document it.
5716 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5718         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5719         spaces in tags.
5721 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5723         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5724         \m[] and \M[], respectively.
5726         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5727         (symbol::symbol): Handle NULL string and empty string differently.
5728         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5729         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5730         Add optional parameter.
5731         Updated calling functions.
5732         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5733         `symbol::is_empty'.
5734         * src/roff/troff/env.cc (environment::set_font): Ditto.
5736         * src/preproc/pic/troff.cc (troff_output::set_fill,
5737         troff_output::reset_color: Updated.
5739         * tmac/www.tmac: Updated.
5741         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5742         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5743         Updated.
5745         * tmac/Xps.tmac: Remove some redundant code.
5747         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5748         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5749         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5750         \f[].
5752 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5754         * src/include/printer.h, src/libs/libdriver/printer.cc
5755         (printer::change_fill_color): New member function.
5756         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5758 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5760         * doc/groff.texinfo: Completed pass on gtroff reference.
5762 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5764         * doc/groff.texinfo: More fixes.
5766 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5768         * src/include/color.h: Decorate with `const'.
5769         Use `size_t'.
5770         Include `stddef.h'.
5771         * src/libs/libgroff.color.cc: Decorate with `const'.
5772         Use `size_t'.
5773         (color::color): Initialize members.
5774         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5775         command according to the documentation.
5777         * man/groff_out.man: Updated.
5778         Minor fixes.
5780 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5782         * src/preproc/html/pre-html.cc (write_start_image): Remove
5783         redundant output.
5784         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5786         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5787         \C'hy' caused an assertion failure.
5789         * src/roff/troff/env.cc (environment::environment): Initialize
5790         `emitted_node'.
5791         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5793 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5795         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5796         Document pvs request and .pvs register.
5798 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5800         * doc/groff.texinfo: Improve and fix documentation of diversions
5801         and environments.
5803 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5805         * doc/groff.texinfo: Fix documentation of drawing functions.
5806         Other minor fixes.
5808 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5810         * doc/groff.texinfo: Better documentation of double quotes as
5811         arguments.
5812         Other minor fixes.
5814 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5816         * man/groff_font.man: Document names of special characters better.
5817         * doc/groff.texinfo: Minor improvements.
5819         * tmac/lbp.tmac: Load latin1.tmac.
5820         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5822         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5824 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5826         * tmac/tty.tmac: Don't use shc request.
5827         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5828         * NEWS: Updated.
5830         * man/groff_diff.man: Minor fixes.
5832         * font/devlbp/*: Remove all `charXXX' entities.
5834         * src/libs/libgroff/font.cc (font::~font): Deallocate
5835         `special_device_coding'.
5836         (font::load): Use `new' for allocating `special_device_coding'.
5837         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5838         Removed unused member.
5840 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5842         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5843         (resource_manager::do_begin_binary,
5844         resource_manager::do_begin_data): Use it.
5846         * doc/texinfo.tex: Updated to version 4.2.
5848         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5849         (token::zero_width_break): New inline function.
5850         * src/roff/troff/input.cc (token::next): Use it.
5851         (token::description): Updated.
5852         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5853         (token::add_to_node_list, token::process): Use it.
5854         * NEWS, doc/groff.texinfo: Updated.
5856         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5857         * tmac/tty.tmac: Add missing backslash.
5859 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5861         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5862         `.ps' register instead of `.s' to handle fractional point sizes.
5863         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5864         limit_box::output): Ditto.
5865         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5866         size_box::output): Ditto.
5867         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5868         over_box::output): Ditto.
5869         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5870         script_box::output): Ditto.
5871         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5872         sqrt_box::output): Ditto.
5874 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5876         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5877         Fix typo.
5879 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5881         * doc/homepage.ms: Reduce title size.
5882         * doc/groff.texinfo: Fix documentation of .t register.
5883         Fix handling of colon.
5884         Fix `\' vs. `\\'.
5886         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5887         only if page length is positive to avoid a loop.
5889         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5890         tbl.
5892 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5894         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5895         s/__CYGWIN32__/__CYGWIN__/.
5897 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5899         * doc/gnu.xpm: New image contributed by Emily Mulley.
5900         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5901         (homepage.html): Be dependent on gnu.eps.
5902         * doc/homepage.ms: Updated to new image.
5904         * src/devices/grohtml/post-html.cc (html_printer): New member
5905         `sbuf_prev_hpos'.
5906         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5907         (html_printer::sbuf_continuation): Use it.
5909 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5911         * src/libs/libgroff/getopt.c: Updated to latest version.
5913         * tmac/README: More on hyphen.tex license.
5915 2002-03-26  Larry Kollar  <kollar@alltel.net>
5917         * doc/groff.texinfo: Add documentation of most missing requests.
5919 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5921         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5922         of `+-', `mu', and `di', respectively.
5924         * font/devascii/R.proto, font/devutf8/R.proto,
5925         font/devlatin1/R.proto, font/devhtml/R.proto,
5926         font/devcp1047/R.proto, font/devlpb/*: Add them.
5927         * font/devps/generate/textmap: Ditto.
5928         * font/devps/*: Regenerated.
5929         * font/devlj4/generate/text.map: Add them.
5930         * font/devlj4/*: Regenerated.
5931         * font/devdvi/generate/tc.map: Use them.
5932         * font/devdvi/generate/texsy.map: Add them.
5933         * font/devdvi/*: Regenerated.
5934         * font/devX*/*: Regenerated.
5936         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5937         tmac/tty-char.tmac: Updated.
5939         * NEWS, man/groff_char.man: Updated.
5941 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5943         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5944         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5945         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5946         we use `.fchar' in dvi.tmac.
5947         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5948         * tmac/Xps.tmac: Simplify some char definitions.
5949         Add definition for \[f/].
5950         * man/groff_char.man: Updated for new X.tmac.
5952         * tmac/README: New file.
5954 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5956         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5957         internal .y.o rule took precendence over the .y.cc rule, compiling
5958         the yacc files with gcc instead of g++.
5960 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5962         * tmac/dvi.tmac: Add replacement font for `CB'.
5964         * tmac/doc.tmac: s/request/macro/ in messages.
5965         (doc-generic-macro): Improve error message.
5966         * tmac/groff_mdoc.man: Minor improvements.
5968 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5970         * doc/groff.texinfo: Document possible conflict between `tr' and
5971         `char' requests.
5973 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5975         Improve handling of hyphenation patterns.  It is now possible to
5976         use most of TeX's pattern files unmodified.  To make the process
5977         more flexible, a new request `hpfcode' has been added which
5978         provides a character code mapping for the `hpf' request.  See
5979         comment before hpf_getc() for more details.
5981         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5982         functions.
5983         (read_patterns_file): Additional parameter for exception dictionary.
5984         Extended to recognize \pattern, \hyphenation, and \endinput.
5985         (do_hyphenation_patterns_file): Updated.
5986         * src/roff/troff/env.h (hpf_code_table): New extern.
5988         * src/roff/troff/input.cc (hpf_code_table): New array.
5989         (init_hpf_code_table, hyphenation_patterns_file_code): New
5990         functions.
5991         (hyphenation_code): Handle translation from `trin' correctly.
5992         (main, init_input_requests): Updated.
5993         (charinfo::set_translation): Handle hyphenation code also.
5995         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5996         inline function.
5998         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5999         char' is used for offsets in hyphenation exceptions.
6001         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6003         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6005 2002-03-20  Larry Kollar  <kollar@alltel.net>
6007         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6008         requests.
6010 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6012         * tmac/html.tmac: Fix serious typo.
6014 2002-03-17  Larry Kollar  <kollar@alltel.net>
6016         * doc/groff.texinfo: Add documentation for `writec' request.
6018 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6020         Added request `hpfa' to append hyphenation patterns.
6022         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6023         parameter `append'.
6024         (hyphenation_patterns_file): Renamed to...
6025         (do_hyphenation_patterns_file): This.
6026         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6027         functions.
6028         (init_hyphen_requests): Updated.
6029         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6031 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6033         Added request `writec' in analogy to `tmc'.
6035         * src/roff/troff/input.cc (write_request): Renamed to...
6036         (do_write_request): This.
6037         Added one parameter.
6038         (write_request, write_request_continue): New functions.
6039         (init_input_requests): Updated.
6040         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6042         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6043         5-10000pt.
6044         * NEWS: Document it.
6046 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6048         * man/groff.man: Add writem request.
6050         Add request `trin' (translate input) to make `.asciify' work
6051         correctly.  This is necessary since `charXXX' entity names are no
6052         longer hardcoded in font definition files.
6054         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6055         `translate_input' members.
6056         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6057         charinfo::set_translation_input): New methods.
6058         (charinfo::set_translation): Add third argument.
6059         * src/roff/troff/input.cc (charinfo:set_translation): Set
6060         `asciify_code'.
6061         (do_translate): Add second argument.
6062         (translate_input): New function.
6063         (init_input_requests): Updated.
6064         * src/roff/troff/node.cc (glyph_node::asciify,
6065         composite_node::asciify): Use `get_asciify_code'.
6067         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6069         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6071 2002-03-14  Larry Kollar  <kollar@alltel.net>
6073         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6075 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6077         Add a new request `sizes' similar to the `sizes' command in DESC
6078         files.
6080         * src/roff/troff/env.cc (override_sizes): New function.
6081         (init_env_requests): Use it.
6082         * src/roff/troff/token.h: Export `read_string'.
6083         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6085 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6087         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6089 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6091         * tmac/pspic.tmac: Add support for -Tdvi.
6092         * tmac/dvi.tmac: Include pspic.tmac.
6093         * src/devices/grodvi/grodvi.man: Document it.
6094         * NEWS: Updated.
6096         * font/devlj4/generate/Makefile: Fix URL of metric files.
6098 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6100         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6102 2002-03-09  Larry Kollar  <kollar@alltel.net>
6104         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6106 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6108         * doc/groff.texinfo: Fixes for texinfo 4.1.
6110 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6112         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6113         included.
6114         Handle CYGWIN properly.
6116 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6118         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6119         * tmac/lbp.tmac: Add some font translations.
6121 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6123         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6124         font/devhtml/R.proto: Remove `charXXX'  entries.
6125         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6126         where appropriate.
6128         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6129         * font/devlj4/*: Regenerated all font definition files.
6130         * tmac/lj4.tmac: Load latin1.tmac.
6132         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6133         from 2000-06-17: LJ4 metric files are *not* text files.
6135         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6136         register to test for EBCDIC.
6138 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6140         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6141         files (as grops already does).
6142         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6143         files.
6144         * src/devices/grops/grops.man: Document comment lines in encoding
6145         files.
6147         * tmac/cp1047.tmac: New file.
6148         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6149         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6150         * tmac/Makefile.sub (NORMALFILES): Updated.
6152         * tmac/ec.tmac: Don't load latin1.tmac again.
6154         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6155         font/devps/generate/dingbats.map,
6156         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6157         font/devps/generate/Makefile (symbolmap): Add header comment.
6158         * font/devps/generate/textmap: Ditto.
6159         Remove `charXXX' entries.
6160         * font/devps/symbolmap: Regenerated.
6161         * font/devps/*: Regenerated all font definition files.
6163 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6165         Add color support to grodvi (for drawing colors are currently
6166         translated to gray values).
6168         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6169         (dvi_printer): Add `cur_color' member.
6170         (dvi_printer::set_color): New function.
6171         (draw_dvi_printer): Remove `fill'.
6172         (draw_dvi_printer::fill_next): Pass environment as parameter.
6173         Update code for new color support translated to gray.
6174         (dvi_printer::set_char): Updated.
6175         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6176         changes crossing the page border.
6177         (dvi_printer::draw): Updated.
6178         Remove cases `f' and `F'.
6179         * tmac/dvi.tmac: Add color definitions.
6180         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6182         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6183         used incorrectly.
6185         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6186         versions of autoconf.
6187         * configure: Updated.
6189         * doc/homepage.ms: Use `.blm'.
6190         * tmac/www.tmac (www-depth): New auxiliary variable.
6191         (www-pop-level): Don't issue HTML tag.
6192         (ULS, ULE, LI): Use absolute indentation.
6194         * src/devices/grops/ps.cc (ps_printer::begin_page,
6195         ps_printer::end_page): Switch forth and back to default color while
6196         starting a new page.
6198 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6200         Add EC and TC fonts to devdvi.
6202         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6203         * font/devdvi/generate/cork.map: Renamed to...
6204         * font/devdvi/generate/ec.map: This.
6205         Remove entry for `aq'.
6206         * font/devdvi/generate/tc.map: New file.
6207         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6208         EC and TC fonts.
6209         (FONTS): Updated.
6210         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6211         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6212         * tmac/ec.tmac: New file.
6213         * tmac/Makefile.sub (NORMALFILES): Updated.
6214         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6215         * man/groff_char.man: Check `ECFONTS' register.
6217         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6219 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6221         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6222         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6223         * font/devdvi/*: Updated.
6224         * tmac/dvi.tmac: Formatting.
6226         Add font `HBI' for the dvi output.
6227         Add support for font families `T' and `H'.
6229         * font/devdvi/HBI: New file.
6230         * font/devdvi/B: Renamed to ...
6231         * font/devdvi/TB: This.
6232         * font/devdvi/BI: Renamed to ...
6233         * font/devdvi/TBI: This.
6234         * font/devdvi/I: Renamed to ...
6235         * font/devdvi/TI: This.
6236         * font/devdvi/R: Renamed to ...
6237         * font/devdvi/TR: This.
6238         * font/devdvi/H: Renamed to ...
6239         * font/devdvi/HR: This.
6240         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6241         * font/devdvi/generate/Makefile (HBI): New rule.
6242         (FONTS): Updated.
6243         (R, I, B, BI, H): Renamed to ...
6244         (TR, TI, TB, TBI, HR): This, respectively.
6245         (srcdir): Fixed.
6246         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6247         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6248         Add `styles' and `family' keywords.
6249         * tmac/dvi.tmac: Alias `H' to `HR'.
6250         Add some fspecial requests for italic fonts.
6251         Add TR and TI as special.
6252         Add support for `_' with font CWI.
6254         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6255         operator `:'.  Until now, the expression `0:1' would return 2
6256         instead of 1.
6258 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6260         * man/groff_char.man: Added some missing PS glyph names (from the
6261         Adobe Glyph List).
6262         * font/devps/generate/textmap, font/devps/symbolmap: Add
6263         `arrowupdn'.
6265         * doc/groff.texinfo: Minor additions and fixes.
6266         * man/groff_diff.man: Remove documentation of fp request.  This
6267         is already covered in the original troff manual.
6268         Updated to be consistent with other doc files.
6269         * NEWS: Updated.
6271 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6273         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6274         TTYDEVDIRS.
6275         Define new variable OTHERDEVDIRS (containing `font/devlj4
6276         font/devlbp' if not EBCDIC).
6277         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6278         (OTHERDEVDIRS): New variable.
6279         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6280         * configure: Regenerated.
6282         * NEWS, src/devices/grotty/grotty.man: Updated.
6284 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6286         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6287         get_line_arg): Honour input level.
6289         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6291         * font/*/*: Implement it in all font files.
6292         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6293         * font/devps/symbolmap: Updated.
6294         * font/devlj4/generate/text.map: Updated.
6295         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6296         * font/devdvi/generate/texmi.map: Updated.
6298         * font/devutf8/R.proto: Remove all `charXXX' entries.
6299         * font/devutf8/NOTES: Updated.
6301         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6302         version 4.1.0.
6304         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6306         * NEWS, man/groff_char.man: Updated.
6308 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6310         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6312 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6314         * src/roff/grog/grog.pl: Fix computation of $refer.
6316 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6318         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6319         `snprintf' and `vsnprintf'.
6321         * src/include/htmlindicate.h: Renamed to...
6322         * src/include/htmlhint.h: This.
6323         * src/include/Makefile.sub: Updated.
6324         * src/preproc/eqn/main.cc: Updated.
6326 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6328         * man/roff.man, man/groff_out.man, man/groff.man,
6329         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6330         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6332         * win32-diffs: Updated.
6334 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6336         * doc/Makefile (clean): Add *.eps.
6337         (MEMACROS): Removed.
6338         (TFLAG): New variable.
6339         (TROFF): Use it.
6340         Add -ww.
6341         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6342         (.me.dit): Fixed.
6343         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6345         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6346         `.tl'.
6347         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6348         unstripped.
6349         * src/roff/troff/troff.man: Fix order of parameter description.
6351         * NEWS: Updated.
6353 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6355         Simplify image handling for grohtml.
6356         Fix <p> bug.
6358         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6359         comment out.
6360         (html_text::dump_stack): Don't emit newline while debugging.
6361         (html_text::do_push) [DEBUGGING]: Print more info.
6362         (html_text::check_emit_text): Fix handling of <p>.
6363         * src/devices/grohtml/html.h: Updated.
6364         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6365         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6366         send its data to stderr also.
6367         Update all callers.
6368         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6369         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6370         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6372         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6373         Removed.
6374         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6375         is_inline_image): Removed.
6376         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6377         (graphic_start, graphic_end): Removed.
6378         * src/include/htmlindicate.h: Updated.
6379         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6380         (macroset_template): New global variable.
6381         (makeFileName): Use `macroset_template'.
6382         (write_end_image): Don't take a parameter.
6383         Don't emit newline.
6384         (write_start_image: Don't emit newline.
6385         (char_buffer::write_upto_newline): Updated.
6386         (char_buffer::skip_to_newline): Renamed to ...
6387         (char_buffer::skip_until_newline): This.
6388         Fix code.
6389         (char_buffer::write_file_troff, char_buffer::write_file_html):
6390         Simplified.
6391         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6392         (removeAllPages): Remove `DEBUGGING' conditionals.
6393         (addRegDef, dump_args): New functions.
6394         (char_buffer::do_html, char_buffer::do_image): Handle
6395         `www-image-template' command line variable.
6396         Add more debugging code.
6397         (addps4html): Removed.
6398         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6400         * src/preproc/eqn/main.cc: Include `ctype.h'.
6401         (suppress_html): Removed.
6402         (do_file): Updated.
6403         (inline_equation): Use `html_begin_suppress' and
6404         `html_end_suppress'.
6405         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6406         (troff_output::start_picture, troff_output::finish_picture):
6407         Updated.
6408         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6409         (process_input_file): Updated.
6411         * src/roff/troff/div.cc (page_number): Set page number only if the
6412         `ps4html' register isn't defined.
6413         * src/roff/troff/input.cc (image_no): New external variable.
6414         (do_suppress): Use it.
6415         * src/roff/troff/node.h (suppress_node::image_id): New member.
6416         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6417         (suppress_node::suppress_node): Initialize `image_id' member.
6418         (suppress_node::same): Handle `image_id' also.
6419         (suppress_node::copy): Updated.
6420         (last_image_id): New global variable.
6421         (suppress_node::tprint): Use it.
6423         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6424         HTML-IMAGE-END.
6425         * tmac/pspic.mac (PSPIC): Fix html support.
6426         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6427         * tmac/www.tmac (www-image-template): Set up.
6428         (HTMLINDEX): Renamed to...
6429         (HX): This.
6430         (BODYCOLOR): Renamed to...
6431         (BCL): This.
6432         (BACKGROUND): Renamed to...
6433         (BGIMG): This.
6434         (URL): Change order of parameters for consistency.
6435         (MAILTO): Renamed to...
6436         (MTO): This.
6437         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6438         (IMG, PIMG, MPIMG): This.
6439         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6440         (HnS, HnE): This.
6441         (LINKS): Renamed to...
6442         (LK): This.
6443         (LINE): Renamed to...
6444         (HR): This.
6445         (NO-AUTO-RULE): Renamed to...
6446         (NHR): This.
6447         (HTML-TL): Renamed to...
6448         (HTL): This.
6449         (UL-BEGIN, UL-END): Renamed to...
6450         (ULS, ULE): This.
6451         (DROPCAP): Renamed to...
6452         (DC): This.
6453         (TS, TE, EQ, EN): Provide default definitions.
6454         (www-make-unique-name): Updated.
6455         (HTML-IMAGE-INLINE): Fix typo.
6456         * tmac/groff_www.man: Updated.
6458         * doc/Makefile (homepage.html): Add option -r to grohtml.
6459         Use shortened image name.
6460         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6461         * doc/homepage.ms: Updated and extended.
6463 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6465         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6467         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6468         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6469         (tty_printer::put_color): Use it.
6470         (ttr_printer::end_page): Simplify.
6472 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6474         * tmac/groff_tmac.man: Moved to...
6475         * man/groff_tmac.man: This place.
6476         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6478 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6480         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6481         $(COMPILE.c) to not include groff's assert.h.
6483         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6484         variable.
6485         * NEWS, src/drivers/grotty/grotty.man: Document it.
6487 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6489         * src/libs/snprintf/snprintf.c: Updated to latest version
6490         (2002-02-11).
6492         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6493         test whether there is `.]' also.
6494         Don't check for spaces after `.['.
6495         * src/roff/grog/grog.sh: Do the same.
6497 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6499         Illegal -> Invalid.
6501         * src/libs/libgroff/illegal.cc: Renamed to ...
6502         * src/libs/libgroff/invalid.cc: This.
6503         (illegal_char_table): Renamed to ...
6504         (invalid_char_table): This.
6505         * src/libs/libgroff/Makefile.sub: Updated.
6506         * win32-diffs: Updated.
6508         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6509         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6510         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6511         font::load), src/preproc/eqn/main.cc (read_line, main),
6512         src/preproc/eqn/lex.cc (file_input::read_line),
6513         src/preproc/pic/lex.cc (file_input::read_line,
6514         simple_file_input::get, simple_file_input::peek),
6515         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6516         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6517         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6518         do_bib), src/preproc/tbl/main.cc (table_input::get),
6519         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6520         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6521         do_zero_width, read_request, encode_char, ps_get_line,
6522         transparent_file, get_char_for_escape_name, transparent_translate,
6523         asciify, input_char_description, read_string, set_string),
6524         src/roff/troff/env.cc (environment::add_html_tag),
6525         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6527         * src/include/lib.h: Updated.
6529         * src/preproc/eqn/eqn.cc: Removed.
6531         * NEWS: Updated.
6533         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6535 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6537         * doc/gnu.xpm: New image.
6538         * doc/Makefile (DOCS): Add homepage.ps.
6539         Add rules for converting xpm->png and xpm->eps.
6540         Use `gnu.{xpm,eps}' as image names.
6541         * doc/homepage.ms: Updated.
6543 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6545         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6546         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6547         Remove calls to `B1' and `B2'
6548         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6549         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6550         auxiliary variables for MARGIN-PNG-IMAGE.
6551         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6552         auxiliary macros for MARGIN-PNG-IMAGE.
6553         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6554         the margin.
6555         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6556         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6557         (DROPCAP): New macro to produce dropcap characters.
6558         (www-do-image): Renamed back to...
6559         (HTML-DO-IMAGE): This.
6560         Updated all callers.
6562         * doc/Makefile (gnubw.eps): Updated.
6563         * doc/homepage.ms: Updated.
6565 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6567         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6568         Added `linethick' to table in section `Style Variables'.
6570 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6572         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6574 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6576         Adding options -C (compatibility mode) and -c (grotty's old output
6577         scheme) to nroff.
6579         * src/roff/nroff/nroff.sh: Implement it.
6580         Remove `-Wall'.
6581         * NEWS, src/roff/nroff/nroff.man: Updated.
6583         * PROBLEMS: Document bison 1.32 bug.
6585         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6587         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6588         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6589         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6590         * src/roff/troff/env.h: Add prototype for `title'.
6592         Adding EBCDIC support to grotty.
6594         * src/devices/grotty/tty.cc (CSI): New macro.
6595         (SGR_*, tty_printer::put_color): Use it.
6597 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6599         Implementing color support in grotty.  The new switch -c activates
6600         the old drawing scheme, disabling color at the same time.  The new
6601         switch `-i' selects italic instead of underlining (SGR only).
6603         * src/devices/grotty/tty.cc (putstring): New define instead of
6604         `fputs'.  Updated all callers.
6605         (old_drawing_scheme): New global variable.
6606         (COLOR_CHANGE): New enum value.
6607         (SGR_*): New defines containing color handling escape sequences.
6608         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6609         (glyph): New members `back_color_idx' and `fore_color_idx'.
6610         (glyph::order): Add COLOR_CHANGE.
6611         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6612         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6613         New methods `make_underline', `make_bold', `color_to_idx',
6614         `change_color', `put_color'.
6615         (cu_flag): Moved into `tty_printer' class.
6616         (tty_printer::tty_printer): Initialize colors.
6617         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6618         tty_printer::draw, tty_printer::end_page): Handle colors also.
6619         (main): Add options `-c' and `-i'.
6620         (usage): Updated.
6621         * NEWS, src/devices/grotty/grotty.man: Updated.
6623         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6624         * src/libs/libgroff/errarg.c: Implement it.
6626         * src/include/printer.h (printer): Add `change_color' method
6627         (currently used by grotty only).
6628         * src/libs/libdriver/printer.cc: Implement it.
6629         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6630         call to `pr->change_color'.
6632         * src/roff/troff/node.cc (troff_output_file::fill_color,
6633         troff_output_file::glyph_color): Call `do_motion'.
6635         * tmac/tty.tmac: Add color definitions.
6637         * src/roff/groff/groff.man: Minor fixes.
6639 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6641         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6642         it.  This is a preparation for future changes.
6644 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6646         * src/roff/troff/input.cc (process_input_stack): Fix the case
6647         where leading spaces are followed by \f or \s; previously, an
6648         incorrect space width has been used.
6650         * doc/roff.man (quoted_char): Fix argument.
6651         (comment): Define string.
6653 2002-02-04  Larry Kollar  <kollar@alltel.net>
6655         * doc/groff.texinfo: More fixes.
6657 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6659         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6660         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6661         `restore_compatibility' before `output_string' -- the LINE_STRING
6662         register now already contains proper switches from and to
6663         compatibility mode.
6665         * man/groff_char.man: Add Euro symbol.
6666         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6667         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6668         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6669         Other minor fixes.
6671         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6672         texinfo->pdf.
6673         (.texinfo.html): Add support for texinfo->html.
6675 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6677         Added three new requests `ds1', `as1', and `ami'.  The former two
6678         are equivalent to `ds' and `as' with the difference that
6679         compatibility mode is saved on entry, switched off during string
6680         expansion, and restored on exit.  The latter is the pendant to `dei'
6681         for `am'.
6683         (do_define_string): Use `define_mode' and `calling mode'.
6684         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6685         end of string, respectively.
6686         (define_string, append_string): Use `calling_mode'.
6687         (define_nocomp_string, append_nocomp_string,
6688         define_string_indirect): New functions.
6689         (init_input_requests): Updated.
6690         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6692         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6693         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6694         mm macro package accesses this string register directly.
6695         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6697         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6698         compatibility mode.
6700 2002-02-02  Larry Kollar  <kollar@alltel.net>
6702         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6704 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6706         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6708 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6710         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6711         * man/groff_out.man: Revised and updated.
6713 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6715         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6716         out the unused `{' and `}' commands.  Undefined by default.
6717         (IntArray): Make `data' private.
6718         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6719         new methods instead.
6720         (skip_line_D, skip_to_end_of_line): New functions.
6721         (get_D_fixed_args): Use `skip_line_D'.
6722         Changed to handle dummy odd arguments by ...
6723         (get_D_fixed_args_odd_dummy): This new function.
6724         (get_D_variable_args): Split some code into ...
6725         (get_possibly_integer_args): This new function.
6726         (send_draw): Use more `const'.
6727         (delete_current_env): New function.
6728         (position_to_end_of_args): Use `size_t'.
6729         Updated.
6730         (send_draw): Updated.
6731         (parse_D_command): Handle `c', `C', and `t' better.
6732         Updated.
6733         (do_file): Updated.
6735 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6737         * NEWS: Revised.
6738         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6739         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6740         proper HTML output -- see the comment in the file for more
6741         information.
6742         Updated all calls.
6744 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6746         Fixes to make color changes of 2002-01-21 work with grohtml.
6748         * src/devices/grohtml/post-html.cc (style): Updated.
6749         (html_printer): Remove unused methods.
6750         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6751         html_printer::special): Updated.
6752         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6753         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6754         Added some debugging code.
6755         (html_text::start_tag): Updated.
6756         (html_text::do_push): New method.
6757         (html_text::push_para): Call it.
6758         Add method for handling color.
6759         (html_text::do_color): Updated.
6760         (html_text::shutdown): Handle color.
6761         * src/devices/grohtml/html-text.h (tag_definition): New member
6762         `col'.
6763         Updated.
6765 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6767         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6769 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6771         Add two switches -a and -g to control the antialiasing bits for
6772         text and graphics, respectively.
6774         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6775         `-g'.
6776         * src/devices/grohtml/grohtml.man: Document them.
6777         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6778         New macros.
6779         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6780         (setupAntiAlias): New function.
6781         (createAllPages): Updated.
6782         (scanArguments): Handle `-a' and `-g'.
6783         (main): Call `setupAntiAlias'.
6784         * NEWS: Updated.
6786 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6788         * doc/groff.texinfo (Def*): Call index function after deffn.
6790         * tmac/html.tmac: Call `nroff' request.
6792 2002-01-26  Larry Kollar  <kollar@alltel.net>
6794         * tmac/groff_ms.man: Add some omissions.
6796 2002-01-25  Larry Kollar  <kollar@alltel.net>
6798         * tmac/groff_ms.man: Typographical improvements.
6800 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6802         * doc/groff.texinfo: Updated version and copyright.
6803         * src/devices/grops/grops.man: Updated.
6805         * tmac/groff_tmac.man: Fix `ig' macro.
6807         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6808         nroff mode.
6809         Use `.ne' unconditionally everywhere.
6810         (TS): Only insert some vertical space.  Doing a page break is no
6811         longer necessary due to the redefinition of the `ne' request.
6813         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6814         warning for unknown subcommands but parse and pass them to the
6815         device driver.
6817 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6819         * tmac/groff_www.man, NEWS: Fix typos.
6821 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6823         Complete revision of color support:
6825           Adapt programs to the new libdriver/input.cc.
6827           Color spaces are no longer converted to RGB but transferred as-is
6828           in the troff intermediate output format.
6830           Handle default color gracefully.  troff now supports a `default'
6831           color (which can't be changed).
6833           grops will now use the proper color space functions if available.
6835           Update pic.
6837         Note that currently grohtml doesn't handle colors properly.  This
6838         has to be fixed.
6840         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6841         (ui_to_a): New function.
6842         * src/include/lib.h: Updated.
6844         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6845         (color): Simplified; removed all `double' members and methods.
6846         A new array `components' now holds the color parameters.
6847         (color::is_default, color::get_components): New methods.
6848         (color::operator==, color:operator!=): New.
6849         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6850         to make access to the `components' array more comprehensible.
6851         * src/libs/libgroff/color.cc: Implement new color support.
6852         (atoh): Small fixes.
6853         (color::read_encoding): Simplified for new troff intermediate color
6854         output format.
6855         (default_color): New global variable.
6857         * src/roff/troff/input.cc (default_symbol): New global variable.
6858         (lookup_color): Use it.
6859         (default_black): Removed.
6860         (do_glyph_color, do_fill_color): Simplified.
6861         (define_color): Handle default color.
6862         Improve warnings.
6863         (do_if_request): Handle default color.
6864         * src/roff/troff/env.cc (environment::environment): Initialize
6865         colors with `default_color'.
6866         * src/roff/troff/node.cc (troff_output_file::put): Add method
6867         for `unsigned int'.
6868         (troff_output_file::hex): Removed.
6869         (troff_output_file::fill_color, troff_output_file::glyph_color):
6870         Updated to include/color.h and libdriver/input.cc.
6872         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6873         fill color properly (identically to the outline color).  \D'f...'
6874         doesn't work any more.
6875         All function calls to it updated.
6877         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6878         Updated.
6879         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6880         Updated.
6882         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6883         (ps_printer::sbuf_color): Make a real member instead of pointer.
6884         (ps_printer::fill_color, ps_printer::output_color): Removed.
6885         (ps_printer::ps_printer): Updated.
6886         (ps_printer::set_char): Ditto.
6887         (ps_printer::set_color): Use various color schemes.
6888         Use `put_color' method.
6889         (ps_printer::flush_sbuf): Don't set color.
6890         (ps_printer::fill_path): Take `environment' as parameter.
6891         Simplify color handling.
6892         (ps_printer::set_line_thickness): Renamed to ...
6893         (ps_printer::set_line_thickness_and_color): This (and updated).
6894         (ps_printer::set_color): Change second parameter from `complete'
6895         to `fill' which better describes what it does.
6896         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6897         and text in the right order.
6898         Updated.
6899         Remove branches for `f' and `F'; this is handled by
6900         libdriver/input.cc.
6901         * src/devices/grops/ps.h: Updated.
6902         * font/devps/prologue (FL): Redefined.
6903         ({F,C}r,k,g: New color functions (with and without filling).
6905         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6906         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6907         doc/groff.texinfo, NEWS: Updated.
6909 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6911         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6912         in this file for what has been changed.
6914 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6916         * test-groff: Fix GROFF_FONT_PATH.
6917         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6918         is read before .TH or .Dd is parsed.
6920 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6922         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6923         quadrant boundaries.
6925 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6927         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6928         applied last patch.
6930 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6932         * tmac/doc.common: Initialize %I register for the %I macro to
6933         avoid (harmless) warning.
6934         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6935         when in the SYNOPSIS section.
6937 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6939         * src/preproc/pic/lex.cc (get_token): Fix typo.
6941 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6943         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6945 2002-01-17  Larry Kollar  <kollar@alltel.net>
6947         * tmac/groff_ms.man: Completely rewritten.
6949 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6951         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6953 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6955         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6956         fill colors.
6957         (ps_printer::draw): Ditto.
6959 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6961         * tmac/groff_mdoc.man: Minor fixes.
6963 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6965         * man/groff_out.man: Some fixes.
6967 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6969         * doc/pic.ms: Fix typos.
6971 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6973         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6975 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6977         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6978         symbols.
6979         * NEWS: Updated.
6981 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6983         * man/groff_out.man: Revised.
6984         * man/roff.man: Minor fixes.
6985         * src/roff/troff/troff.man: Some reordering.
6987 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6989         * tmac/an-old.tmac: Add dummy macros for equation support.
6991 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6993         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6995         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6996         man pages.
6997         * tmac/groff_man.man: Small improvements.
6999 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7001         * man/groff_diff.man: Revised.
7003 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7005         * tmac/www.tmac: Remove extraneous backslash.
7007 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7009         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7011 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7013         Integrated groffer, contributed by Bernd Warken.
7015         * contrib/groffer/*: New.       
7016         * Makefile.in, NEWS: Updated.
7018 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7020         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7021         registers defined in macro packages.
7022         Revising the ms part.
7024 2002-01-04  Larry Kollar  <kollar@alltel.net>
7026         * doc/groff.texinfo: Add documentation for ms macros.
7028 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7030         First step in adding PS support for the Euro symbol.  `eu' is the
7031         official Euro logo, `Eu' is a font-specific glyph variant.
7033         * font/devps/text.enc: Add `Euro' at position 9.
7034         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7035         * font/devps/symbolmap: Regenerated.
7037         * NEWS: Updated.
7039 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7041         * man/roff.man: Revised.
7043 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7045         * src/roff/groff/groff.man: Completely rewritten.
7047 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7049         * doc/Makefile: Updated.
7051 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7053         * tmac/www.tmac: Make all names of internal macros/registers/strings
7054         lowercase, and prepend `www-'.
7055         Other minor changes.
7056         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7058 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7060         Implement option `-b' in grohtml to set the HTML background colour.
7062         * src/devices/grohtml/post-html.cc (default_background): New global
7063         variable.
7064         (html_printer::html_printer): Initialize `background' to
7065         `default_background'.
7066         (main): Implement option `-b'.
7067         (usage): Updated.
7068         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7069         of `-b' option.
7070         * src/devices/grohtml/grohtml.man: Updated.
7071         * doc/Makefile (.ms.html): Use `-b'.
7072         * tmac/html.tmac: Don't set background color.
7074         Add new grohtml tag `.html-tl'.
7076         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7077         member variable.
7078         (title_desc::title_desc): Updated.
7079         (html_printer::troff_tag): Handle `.html-tl'.
7080         (html_printer::write_title): Use `with_h1'.
7081         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7082         (HTML-TL): New macro.
7084         Add support for unordered lists in HTML.
7086         * tmac/www.tmac (www-level): New auxiliary register.
7087         (www-level1, www-level2, www-level3): New auxiliary strings.
7088         (www-push-level, www-pop-level): New auxiliary macros
7089         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7091         Miscellaneous.
7093         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7094         (DEFAULT_VERTICAL_OFFSET): Removed.
7095         (IMAGE_BOARDER_PIXELS): Set to 0.
7096         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7097         (vertical_offset): Initialize with 0.
7098         (gsPaper): New global variable.
7099         (get_resolution): Scan for and return unsigned int.
7100         (get_papersize): New function to get paper length from devps/DESC.
7101         (determine_vertical_offset): New function.
7102         (createAllPages): Produce gray-level images and use proper page
7103         length.
7104         (createImage): Use `-quiet' option of pnmcrop.
7105         (addZ): Fix passing of `-Z'.
7106         (scanArguments): Fix handling of `-o'.
7107         (main): Call `determine_vertical_offset'.
7108         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7109         code for `l'.
7111         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7112         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7113         glyph descenders properly.
7115         * doc/homepage.ms: Include `gnubw.eps'.
7116         * doc/Makefile (gnubw.eps): New rule.
7117         (homepage.html): Depend on `gnubw.eps'.
7119 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7121         * src/roff/troff/input.cc (default_black): Fix return value.
7123 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7125         * tmac/doc-common (Dt): Change output of architecture strings.
7126         Do some syntax cleanup.
7127         * tmac/groff_mdoc.man: Updated.
7129 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7131         Adding an `itc' request (input line trap accepting \c).
7133         * src/roff/troff/env.h (environment): New member
7134         `continued_input_trap'.
7135         Make `do_input_trap' a friend function instead of `input_trap'.
7136         * src/roff/troff/env.cc (environment::environment,
7137         environment::copy): Updated.
7138         (environment::newline): Implement it.
7139         (do_input_trap): New function.
7140         (input_trap): Call `do_input_trap'.
7141         (input_trap_continued): New function.
7142         (init_env_requests): Updated.
7143         * src/roff/troff/TODO: Updated.
7145         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7146         `.it'.
7148         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7150 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7152         * tmac/doc-common, tmac/doc-syms: Small updates.
7154 2001-12-22  Colin Watson  <cjwatson@debian.org>
7156         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7158 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7160         * MANIFEST: New file.
7162 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7164         * src/preproc/grn/grn.man: Updated.
7166 2001-12-22  Solar Designer  <solar@openwall.com>
7168         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7169         (DBRead): Use it.
7171 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7173         Implement a fallback character request `.fchar'.
7175         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7176         (is_fallback): New inline function.
7177         * src/roff/troff/input.cc (do_define_character): New function.
7178         (define_character): Call `do_define_character'.
7179         (define_fallback_character): New function.
7180         (init_input_requests): Add `fchar'.
7181         (charinfo::charinfo): Updated.
7182         (charinfo::set_macro): New argument to set `fallback' flag.
7183         * src/roff/troff/node.cc (make_glyph_node, make_node,
7184         node::add_char): Check `fallback' flag.
7185         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7187 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7189         * groff.texinfo: Document exact search algorithm for glyphs.
7191 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7193         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7194         the left side of $(MANPAGES) rule to make it always non-empty.
7196 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7198         * src/roff/troff/input.cc (default_black): Define default color
7199         `black' if not yet defined.
7201 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7203         Implement new string-valued register `.fn' to return the current
7204         real (internal) font name.
7206         * env.cc (environment::get_font_name_string): New function.
7207         (init_env_requests): Add `.fn' register.
7208         * env.h (environment): Updated.
7209         * node.cc (font_info): Make `get_font_name' a friend.
7210         (get_font_name): New function.
7211         * node.h: Updated.
7213         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7215 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7217         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7219 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7221         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7223 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7225         * man/groff_diff.man: Adding documentation for \O.
7227 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7229         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7230         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7232 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7234         * man/roff.man: Revised.
7235         * src/roff/groff/groff.man: Replace man page references with a
7236         pointer to roff.man.
7238 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7240         * man/roff.man: Completely rewritten.
7242 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7244         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7246 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7248         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7249         longer used.
7250         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7251         order of initializers.
7252         * NEWS: Updated.
7254 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7256         * doc/groff.texinfo: Fix documentation of \O.
7258         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7259         html_text::do_table, html_text::do_emittext, html_text::do_para):
7260         Use `const' for first argument.
7261         (html_text::do_table): Use cast.
7262         * src/devices/grohtml/html-text.h: Updated.
7263         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7264         method for `const string &s'.
7265         * src/devices/grohtml/html.h: Updated.
7266         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7267         (ANCHOR_TEMPLATE): Modified.
7268         (manufacture_headings): New global variable to handle `-h' option.
7269         (is_subsection): Removed.
7270         (char_buffer::add_string): Add `const' to first argument.
7271         Protect against invalid string argument.
7272         Add method for `const string &s'.
7273         (text_glob): Completely redesigned.
7274         (page): Use `const' for strings and remove string length variable.
7275         (page::add_html): Removed.
7276         (page::add_end_encode): New member function.
7277         (to_unicode): Moved upwards.
7278         (title_desc, header_desc): Updated.
7279         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7280         definition.
7281         (html_printer::is_bold, html_printer::make_bold): New member
7282         functions.
7283         (html_printer::end_of_line): Updated.
7284         (generate_img_src, html_printer::do_auto_image,
7285         html_printer::do_title, html_printer::write_header,
7286         html_printer::determine_header_level, html_printer::do_heading,
7287         html_printer::do_linelength, html_printer::do_pageoffset,
7288         html_printer::do_indentation, html_printer::do_tempindent,
7289         html_printer::do_indentedparagraph, html_printer::do_break,
7290         html_printer::flush_sbuf, get_html_translation,
7291         html_printer::begin_page, html_printer::special): Rewritten to get
7292         rid of static string length limit.
7293         (html_printer::troff_tag): Added `.no-auto-rule'.
7294         (html_printer::flush_globs): Small fix.
7295         (html_printer::determine_space): Don't compute `space_width'.
7296         (html_printer::translate_to_html): Renamed to ...
7297         (html_printer::emit_html): This (with updates).
7298         (html_printer::write_header): Implement `-h' option.
7299         (html_printer::draw): Remove commented-out code.  Handle `F'
7300         command.
7301         (html_printer::add_char_to_sbuf): Removed.
7302         (html_printer::add_to_sbuf): Rewritten.
7303         (html_printer::sbuf_continuation): Fixed.
7304         (html_printer::seen_backwards_escape, reverse,
7305         html_printer::remove_last_char_from_sbuf): Removed.
7306         (char_translate_to_html, str_translate_to_html): Removed.
7307         (html_printer::overstrike): New function member.
7308         (html_printer::set_char): Use it.
7309         (html_printer::do_body): New function member.
7310         (html_printer::~html_printer): Use it.
7311         (main): Handle `-h' option.
7312         (usage): Updated.
7313         * src/devices/grohtml/grohtml.man: Document -h switch.
7315         * src/preproc/html/pre-html.cc: Include searchpath.h
7316         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7317         (get_resolution): New function.
7318         (checkImageDir): Use `0777' permissions in mkdir()
7319         (write_start_image): Rewritten to use `\O[5...]'.
7320         (createImage, generateImages): Updated.
7321         (main): Handle `F' and `h' options.
7322         Use `get_resolution'.
7324         * src/roff/troff/input.cc (begin, end, image): Removed.
7325         (do_suppress): Take parameter.
7326         Handle modified syntax of `\O'.
7327         (token::next): Updated.
7328         (init_markup_requests): Removed.
7329         (main): Updated.
7331         * src/roff/troff/div.h: Add declaration for begin_page().
7333         * tmac/color-html.tmac: Removed.  Contents moved to...
7334         * tmac/html.tmac: Here.  Set background color.
7335         * tmac/color.tmac: Removed.  Contents moved to...
7336         * tmac/ps.tmac: Here.
7337         * tmac/www.tmac: Remove the title command when generating images
7338         for html.
7339         (NO_AUTO_RULE): New macro.
7340         (HTML_DO_IMAGE): Use revised `\O' escapes.
7341         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7343 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7345         * tmac/groff_mdoc.man: Fix typo.
7347 2001-12-01  Colin Watson  <cjwatson@debian.org>
7349         * man/roff.man: Fix typo.
7351 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7353         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7354         stdlib.h.
7356         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7357         more than one argument to \D'f ...'.
7359         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7361 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7363         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7364         loaded only once.
7366         * tmac/groff_man.man: Minor cosmetic fix.
7368 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7370         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7371         tmac/groff_www.man: s/mwww/www/.
7373 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7375         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7376         * configure: Regenerated.
7377         * win32-diffs: Updated.
7379         * tmac/groff_mwww.tmac: Renamed to ...
7380         * tmac/groff_www.tmac: This.
7381         * tmac/mwww.tmac: Removed.
7382         * NEWS, tmac/Makefile.sub: Updated.
7384 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7386         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7387         Fix explanation of `\D' and `rt'.
7389 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7391         * tmac/an-old.tmac (an-header): Set header length equal to page
7392         width.
7393         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7394         minor fixes.
7395         * NEWS: Small fix.
7397 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7399         * NEWS, man/Makefile.sub: Updated.
7401 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7403         * man/ditroff.man: New file.
7405 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7407         * man/groff_differences.man: Renamed to ...
7408         * man/groff_diff.man: This.  Updated.
7409         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7411         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7412         * src/preproc/html/pushback.cc: This.  Updated.
7413         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7414         * src/preproc/html/pushback.h: This.
7415         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7416         Updated.
7418         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7419         * src/libs/libgroff/htmlhint.cc: This.
7420         * src/libs/libgroff/Makefile.sub: Updated.
7422         * tmac/an-old.tmac (an-end): Fix page length.
7424 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7426         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7427         * man/Makefile.sub: Include groff_differences.man.
7428         * VERSION: Set to 1.18.
7429         * REVISION: Set to 0.
7431 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7433         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7434         the second dot (or ending macro name) to end a macro.
7435         * doc/groff.texinfo: Doc fix.
7437 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7439         * tmac/doc-common (doc-header): Handle very long document titles
7440         better.
7442 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7444         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7446 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7448         * src/roff/troff/troff.man: Revised and split into troff.man and...
7449         * man/groff_differences.man: New file.
7450         * NEWS: Updated.
7452 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7454         * tmac/an-old.tmac (TS, TE): New macros for table support.
7456 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7458         * src/include/lib.h: Provide a fix for emx to not include
7459         groff-getopt.h.
7461 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7463         * src/roff/troff/input.cc (substring_macro): Fix computation of
7464         boundary values.
7466 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7468         Undo change from 2001-08-28.
7470         * src/roff/troff/input.cc (have_input): New global variable.
7471         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7472         in compatibility mode.
7473         (process_input_stack): Use it.
7475 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7477         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7478         being handled as end-of-sentence characters,
7480 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7482         * src/roff/troff/input.cc (file_iterator): New members
7483         `suppress_newline_flag' and `seen_escape'.
7484         (file_iterator::next_file): Updated.
7485         (file_iterator::fill): Use it.
7486         (string_iterator): New member `suppress_newline_flag'.
7487         (string_iterator::fill): Set it.
7488         (get_color_element): Use MAX_COLOR_VAL.
7489         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7490         (no_fill): Don't set `env->ignore_next_eol'.
7491         (environment::newline): Handle `eol' tag properly.
7492         Emit `eol.ce'.
7493         (environment::add_html_tag): Set `env->ignore_next_eol'.
7494         Don't handle `.ce'.
7495         * src/roff/troff/env.h (environment): Updated.
7497         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7498         member function.
7499         (html_printer::outstanding_eol): New member function.
7500         (html_printer::do_title): Use new functions.
7501         (html_printer::troff_tag): Test `id_eol_ce'.
7503 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7505         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7506         files work with -C also.
7508 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7510         * doc/pic.ms: Minor fix.
7511         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7512         as a valid command line switch.
7513         * src/devices/grohtml/post-html.cc (main): Ditto.
7514         (usage): Updated.
7515         * src/devices/grohtml/grohtml.man: Updated.
7516         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7518 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7520         Implementing color support in troff, pic, grops, and grohtml.  These
7521         changes are based on a major patch provided by Gaius Mulley
7522         <gaius@glam.ac.uk>.
7524         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7525         definitions with both hex values and fractions.
7527         New escapes: \m and \M for drawing and background color,
7528         respectively.  This corresponds to the troff output commands `m'
7529         and `DF'.
7531         groff and troff accept command line switch `-c' to disable color
7532         output (which is automatically disabled in compatibility mode).
7534         New scaling indicator `f' for fractions (1f = 65536u).
7536         New conditional operator `m' to test for defined colors with `if'
7537         and `ie'.
7539         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7540         (or `outlined'), and `shaded' added to pic.
7542         * src/include/color.h: New file.
7543         * src/include/driver.h: Include it.
7544         * src/include/printer.h: Include color.h.
7545         (environment): New members `col' and `fill'.
7546         (printer): Remove `adjust_arc_center' member function.
7547         * src/include/Makefile.sub: Updated.
7549         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7550         `env.fill'.
7551         Handle `m' and `DF' troff commands.
7552         * src/libs/libgroff/color.cc: New file.
7553         * src/libs/libgroff/Makefile.sub: Updated.
7555         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7556         (stop): Removed.
7557         (createImage): Fix computation of `y2'.
7558         Use `pnmcrop' also.
7559         (buffer::write_file_html): Remove calls to `stop'.
7561         * src/preproc/pic/common.h (common_output): New abstract function
7562         members `set_color', `reset_color', `get_last_filled', and
7563         `get_outline_color'.
7564         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7565         (object_spec): Add members `shaded' and `outlined'.
7566         * src/preproc/pic/output.h (output): `command' is now abstract.
7567         New function members `set_color', `reset_color', `get_last_filled',
7568         and `get_outline_color'.
7569         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7570         `outline[d]', and `shaded'.
7571         * src/preproc/pic/object.cc (output::command): Removed.
7572         (output::set_location): Moved to output.h.
7573         (graphic_object): Add protected members `outline_color' and
7574         `color_fill'.
7575         Add member functions `set_outline_color', `get_outline_color', and
7576         `set_fill_color'.
7577         (closed_object): Add member function `set_fill_color'.
7578         Add member `color_fill'.
7579         (graphic_object::print_text): Use `out->set_color' and
7580         `out->reset_color'.
7581         (box_object::print, ellipse_object::print, circle_object::print,
7582         line_object::print, spline_object::print, arc_object::print): Ditto.
7583         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7584         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7585         `SHADED', making them `%left'.
7586         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7587         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7588         `set_color', `reset_color', `get_last_filled', and
7589         `get_outline_color'.
7590         * src/preproc/pic/troff.cc (simple_output): New abstract function
7591         members `set_color', `reset_color', and `get_last_filled'.
7592         (simple_output::polygon, simple_output::circle,
7593         simple_output::ellipse): Use `get_last_filled'.
7594         (troff_output): New members `last_filled' and `last_outlined'.
7595         New function members `set_color', `reset_color', `get_last_filled',
7596         and `get_outline_color'.
7597         (troff_output::finish_picture): Use `reset_color'.
7598         (troff_output::set_fill): Test `last_filled'.
7599         * src/preproc/pic/pic.man: Updated.
7601         * src/roff/groff/groff.cc (main): Implement `-c' option.
7602         (synopsis, help): Updated.
7603         src/roff/groff/groff.man: Updated.
7605         * src/roff/troff/troff.h: Include color.h.
7606         (warning_type): Add WARN_COLOR.
7607         * src/roff/troff/env.h (environment): New members
7608         `{cur,prev}_{glyph,fill}_color'.
7609         New member functions `get_{prev_,}{glyph,fill}_color'.
7610         * src/roff/troff/env.cc: Initialize and implement them.
7611         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7612         Replace `NULL' with `0' everywhere for consistency.
7613         (lookup_color, default_black, do_glyph_color, do_fill_color,
7614         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7615         define_color): New functions.
7616         (token::next): Implement \M and \m escapes.
7617         (do_if_request): Implement `m' operator.
7618         (usage): Updated.
7619         (main): Implement `-c' option.
7620         (init_markup_requests): Add `defcolor' request.
7621         (warning_table): Add `color' warning.
7622         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7623         classes.
7624         * src/roff/troff/node.cc (troff_output_file): New members
7625         `current_{page,glyph}color'.  New member functions `put_hex',
7626         `glyph_color', and `fill_color'.
7627         (glyph_color_node::*, fill_color_node::*): Implement it.
7628         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7629         (parse_term): Add support for `f'.
7630         * src/roff/troff/troff.man: Updated.
7632         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7633         entry for `F'.
7634         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7635         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7637         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7638         (tag_definition): Use `void *' for arg1.
7639         (html_text): New member functions `do_color' and `done_color'.
7640         Use `void *' for second parameter of `push_para' member function.
7641         New `push_para' member function with a single parameter.
7642         Use `char *' for parameter of `issue_table_begin' member funtion.
7643         New `issue_color_begin' member function.
7644         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7645         COLOR_TAG.
7646         (html_text::issue_color_begin): New function.
7647         (html_text::issue_table_begin): Use `char *' for parameter.
7648         (html_text::start_tag, html_text::shutdown,
7649         html_text::check_emit_text): Updated.
7650         (html_text::push_para): Use `void *' for second parameter.
7651         Add same function with only one parameter.
7652         (html_text::do_*): Updated.
7653         (html_text::do_color, html_text::done_color): New functions.
7654         * src/devices/grohtml/post-html.cc (style): New member `col'.
7655         Mew member `style' with 6 parameters.
7656         (style::style, style::operator==): Updated.
7657         (html_printer::do_font): Use it.
7658         (html_printer::draw): Add dummy entry for `F'.
7659         (html_printer::set_char): Updated.
7660         * src/devices/grohtml/grohtml.man: Updated.
7662         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7663         trailing zeroes removed.
7664         (ps_printer): New members `sbuf_color', `fill_color', and
7665         `output_color'.
7666         Removed member `fill'.
7667         New member function `set_color'.
7668         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7669         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7670         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7672         * tmac/color-html.tmac, tmac/color.tmac: New files.
7673         * tmac/troffrc: Include them.
7674         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7675         * tmac/Makefile.sub: Updated.
7677         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7678         man/groff.man: Updated.
7679         * font/devps/prologue.ps: Define FC and CO functions.
7681 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7683         Fix incorrect cropping of images and incorrect handling of special
7684         characters.  Fix handling of file names in \O.
7686         * src/include/geometry.h: New file.
7687         * src/libs/libgroff/geometry.cc: New file.
7688         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7689         to `geometry.cc'.
7690         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7691         initial spaces.
7692         (do_suppress): Updated.
7693         * src/roff/troff/node.cc: Include geometry.h.
7694         (troff_output_file::flush_tbuf): Fixed parameters to
7695         `check_output_limits'.
7696         (troff_output_file::check_charinfo): Ditto.
7697         (troff_output_file::determine_line_limits): Add support for `Da'
7698         and `Dl' commands.
7700         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7701         Add new parameter `is_special' to decode special characters from
7702         escape sequences.
7703         (html_printer::do_title, html_printer::do_heading,
7704         html_printer::do_indentedparagraph,
7705         html_printer::translate_to_html, html_printer::special): Updated.
7707 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7709         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7710         Fix entry for config.h.
7711         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7712         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7713         * src/preproc/eqn/eqn.man: Document -d command line option.
7715 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7717         * man/groff.man: Use
7719           .ev xxx
7720           .na
7721           .nh
7722           <table>
7723           .ev
7725         instead of the old code (`.ad .hy' after the table) to suppress
7726         incorrect hyphenation for grohtml output.
7728 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7730         * man/groff_font.man, man/groff_out.man: Minor fixes.
7732 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7734         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7735         Arnold Robbins <arnold@skeeve.com>).
7737 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7739         * configure: Regenerated with autoconf 2.52.
7741         * doc/groff.texinfo: Complete revision of indices.
7743 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7745         * doc/Makefile (clean): Updated to delete all indices.
7747 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7749         * src/roff/troff/troff.man: Remove superfluous line.
7751         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7752         given on the command line (or rather, if only the default warnings
7753         are set).
7755 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7757         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7758         use .ne for TTY devices.
7760 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7762         * src/roff/troff/token.h, src/roff/troff/input.cc:
7763         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7765 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7767         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7768         * src/roff/troff/input.cc (token::next): Return
7769         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7770         compatibility mode.
7771         (token::description): Updated.
7772         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7773         (token::add_to_node_list, token::process): Ignore
7774         TOKEN_TRANSPARENT_ESCAPE.
7776 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7778         * tmac/an-old.tmac: Fix `S' string.
7780 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7782         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7784 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7786         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7787         backslashes).
7788         Many other minor fixes.
7790         * configure.ac: Add message at end to inform how to compile
7791         xditview.
7792         * configure: Regenerated.
7794 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7796         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7797         Updated to latest version of libc.
7799 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7801         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7802         Autoconf 2.50 and newer can handle this.
7803         * configure: Regenerated.
7805 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7807         * doc/pic.ms: Fix typo.
7808         * src/preproc/tbl/tbl.man: Document case of global options.
7810 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7812         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7813         handling of `CR' font.
7815 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7817         Use a config.h file.
7819         * src/include/lib.h: Include config.h.
7820         * All C files: Ditto (if necessary).
7821         * All C++ source and header files: Include lib.h first (if
7822         necessary).
7824         * src/include/config.hin: New file (autogenerated by autoheader).
7825         * stamp-h.in: New file.
7826         * configure.ac: Updated.
7827         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7828         (GROFF_ARRAY_DELETE): Simplified.
7829         * Makefile.sub (DISTCLEANFILES): Updated.
7830         Added targets for remaking config.status, config.hin, config.h,
7831         stamp-h.in, and stamp-h.
7832         * configure: Regenerated.
7834 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7836         * NEWS: Updated.
7838 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7840         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7841         (do_sprintf): Use snprintf().
7843 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7845         * src/libs/snprintf/*: Added an snprintf module written by Mark
7846         Martinec.
7847         * src/libs/libgroff/Makefile.sub: Updated.
7848         * configure.ac: Add test for snprintf().
7849         * Makefile.in: Updated.
7850         * configure: Regenerated.
7852         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7853         uses snprintf().
7855 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7857         * tmac/doc.tmac (Ex): New implementation.
7858         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7860 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7862         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7863         argument.
7864         * tmac/groff_tmac.man: Updated.
7866 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7868         * src/preproc/tbl/tbl.man: Minor documentation update.
7870 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7872         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7873         * configure.ac: Add declaration test for gettimeofday().
7874         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7875         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7876         * configure: Regenerated.
7878 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7880         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7881         * configure.ac: Add declaration test for strcasecmp().
7882         * Makefile.in: Updated.
7883         * configure: Regenerated.
7884         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7885         this is necessary because groff's mkstemp.cc is C++.
7886         Add declaration conditionally for strcasecmp().
7888 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7890         Integrated pic2graph, contributed by Eric S. Raymond.
7892         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7893         files.
7894         * Makefile.in, NEWS: Updated.
7896         * src/preproc/tbl/tbl.man: Revised.
7898 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7900         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7902 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7904         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7905         requests.
7907 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7909         * Makefile.sub (configure): Depend on configure.ac, not
7910         configure.in.
7911         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7913 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7915         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7916         fixes.
7918 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7920         * src/roff/troff/troff.man: Improve documentation of -E option.
7922 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7924         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7925         Simplified.
7927 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7929         * src/preproc/refer/refer.cc: Undo last change.
7930         * src/devices/grohtml/post-html.cc: Ditto.
7932 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7934         * src/preproc/refer/refer.cc: Include `lib.h'.
7935         * src/devices/grohtml/post-html.cc: Ditto.
7937 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7939         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7940         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7941         * Makefile.in: Comment updated.
7942         * configure: Regenerated.
7944 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7946         * src/preproc/pic/pic.cc: Removed.
7947         * src/preproc/pic/pic_tab.h: Removed.
7948         * src/preproc/refer/label.cc: Removed.
7950         * doc/Makefile (.ms.html): Don't use a file name extension in
7951         argument to grohtml's -I option.
7952         * Makefile.in (dist): Remove CVS directories.
7953         Call `distfiles' target.
7955         * src/devices/grohtml/grohtml.man: Add information about valid
7956         versions of pnmtopng.
7957         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7958         name instead of number.
7960 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7962         * doc/groff.texinfo: Minor fixes.
7964 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7966         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7967         (clean): Updated.
7969 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7971         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7972         * src/libs/libgroff/mkstemp.cc: New file.
7973         * src/libs/libgroff/mksdir.cc: New file.
7974         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7975         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7976         * src/libs/libgroff/Makefile.sub: Updated.
7977         * src/include/lib.h: Add mksdir() prototype.
7978         * src/include/posix.h: Define S_IXUSR if not yet defined.
7980         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7981         (createAllPages): Use mksdir() instead of current code.
7982         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7983         (main): [!HAVE_MKSTEMP]: Removed.
7985         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7986         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7987         macros.
7988         * configure.ac: Add tests for stdint.h, sys/time.h, and
7989         gettimeofday().
7990         Call new GROFF_xxx macros.
7991         * configure: Regenerated.
7992         * Makefile.in: Comments updated.
7994 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7996         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7997         instead of current code.
7998         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7999         * src/roff/groff/groff.cc (possible_command::insert_args): New
8000         function.
8001         (main): Use it for predriver handling instead of insert_arg().
8003 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8005         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8006         groff also.
8008         * src/include/posix.h: Define S_IWUSR if not yet defined.
8010 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8012         * NEWS: Updated.
8014 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8016         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8017         Some other minor fixes.
8018         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8020 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8022         Replace call to `troff' with `groff -Z' to make it aware of
8023         GROFF_BIN_PATH.
8025         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8026         (troff_command, command_prefix): Removed.
8027         (alterDeviceTo): Use groff.
8028         (addZ): New function.
8029         (char_buffer::do_html): Use it.
8030         (scanArguments): Use TROFF_COMMAND.
8031         (findPrefix): Removed.
8032         (main): Updated.
8033         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8035 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8037         * doc/pic.ms: Documentation fixes.
8039 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8041         Replace atexit() with global destructor.
8043         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8044         (xtmpfile_list_init): New global structure to deallocate
8045         xtmpfile_list on exit.  Its destructor inherits most code from
8046         remove_tmp_files().
8047         (remove_tmp_files): Deleted.
8048         (add_tmp_file): Simplified.
8050 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8052         Replace strdup() with strsave().
8054         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8055         (set_papersize): Use strsave() and a_delete.
8056         (main): Use strsave().
8057         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8058         removeAllPages): Use strsave() and a_delete.
8060         * configure.ac: Remove test for strdup.
8061         * Makefile.in: Comment updated.
8062         * configure: Regenerated.
8064 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8066         * win32-diffs: Updated.
8068 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8070         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8071         removing the old one.
8072         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8074 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8076         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8078 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8080         Merge -xwidth into -width.  Add -xwidth functionality to -column
8081         also.
8083         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8084         avoid warning.
8085         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8086         string immediately following a leading dot starts with a valid mdoc
8087         argument.
8088         Add similar code to the -column branch.
8089         (doc-Bl-usage): Updated.
8090         * groff_mdoc.man: s/-xwidth/-width/.
8092 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8094         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8095         running into centered or non-formatted text.
8097 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8099         Introduce short and long prefixes to have the selection at run-time
8100         whether there is a 8+3 limit for names of temporary files.
8102         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8103         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8104         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8105         variables.
8106         (temp_init): New global structure to initialize above three
8107         variables.
8108         (xtmptemplate): Use two parameters for long and short prefix.
8109         Simplify code use above three variables.
8110         (xtmpfile): Use long and short prefixes as parameters.
8111         * src/include/lib.h: Updated.
8113         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8114         with ...
8115         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8116         (createAllPages, makeTempFiles): Updated.
8118 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8120         * REVISION: Increased to 3.
8122 Version 1.17.2 released
8123 =======================
8125 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8127         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8128         to size_t.
8130 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8132         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8133         Fix synopsis.
8134         * tmac/groff_mdoc.man: Fix synopsis.
8136 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8138         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8139         Restore `doc-Pa-font'.
8141 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8143         * src/utils/indxbib/dirnamemax.c: Moved to ...
8144         * src/libs/libgroff/maxfilename.cc: Here.
8145         s/dir_name_max/file_name_max/.
8146         Add copyright.
8147         * src/include/lib.h: Add file_name_max.
8148         * src/utils/indxbib/indxbib.cc: Updated.
8149         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8150         Updated.
8152         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8153         as empty.
8154         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8156         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8157         REGION_TEMPLATE): New macros.
8158         (createAllPages, makeTempFiles): Use them.
8159         Include `nonposix.h'.
8160         (html_system): New function.
8161         (createAllPages, createImage): Use it.
8162         Use EXE_EXT.
8164         * tmac/www.tmac: Fix typos.
8166 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8168         * tmac/www.tmac: Disable hyphenation in normal text only if output
8169         device is html.
8170         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8171         * tmac/groff_mwww.man, NEWS: Updated.
8173 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8175         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8176         image location.
8178 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8180         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8181         doc-display-ps-stack): Implement font and font size stack for
8182         displays.
8184 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8186         * REVISION: Increased to 2.
8187         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8189         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8190         beginning of a line.
8191         * src/groff/grog/grog.sh: Ditto.
8193 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8195         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8196         make it portable.
8198 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8200         Fix problems with preprocessor string for `man' program.
8202         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8203         Updated/added copyright.
8204         Moved Emacs's local variable to identify nroff mode to the end of
8205         the file; add local variable if missing.
8207 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8209         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8210         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8211         * configure: Regenerated.
8213 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8215         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8216         * configure: Regenerated.
8218 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8220         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8221         but www.tmac.
8222         * doc/pic.ms: Fix typos.
8224 Version 1.17.1 released
8225 =======================
8227 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8229         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8230         * configure: Updated.
8232 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8234         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8235         image names.
8236         * src/roff/troff/dic.cc (blank_line): Add html tag.
8238 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8240         * src/roff/troff/input.cc (do_suppress): Fix typo.
8242 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8244         Added two new options (-D and -I) to specify image names and a
8245         subdirectory to place the images in.
8247         Change syntax from \\Ox to \\O[x].
8249         * src/devices/grohtml/post-html.cc (main): Add options.
8250         (usage): Updated.
8251         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8252         Use `NULL' instead of `0' for null string pointers.
8253         (MAX_RETRIES): New macro.
8254         (lengthOfintToStr, intToStr, make_message): New functions.
8255         (makeFileName): Make function static.
8256         Implement -D and -I options.
8257         (checkImageDir): New function.
8258         (write_end_image, write_start_image): Use new syntax of \O.
8259         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8260         make_message().
8261         (createImage): Use make_message().
8262         (addps4html): Add guard for malloc().
8263         (usage, scanArguments): Updated.
8264         (makeTempFiles): Use mkstemp().
8265         (removeTempFiles): Use unlink().
8266         (findPrefix): Add guard for malloc().
8267         (main): Updated.
8268         * src/roff/troff/input.cc (get_delim_file_name): New function to
8269         parse \O.
8270         (do_suppress): Updated to parse new syntax.
8271         * src/devices/grohtml/grohtml.man: Updated.
8272         * tmac/www.tmac: Updated to new syntax.
8274         * NEWS: Updated.
8276 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8278         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8280         * src/devices/grohtml/grohtml.man: Minor improvements.
8282 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8284         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8286 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8288         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8289         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8290         the former.
8291         * src/preproc/grn/grn.man: Add proper '\" string.
8293 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8295         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8297 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8299         Updated to autoconf 2.50.
8301         * configure.in: Renamed to...
8302         * configure.ac: This.
8303         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8304         (GROFF_OS390): Updated.
8305         * configure: Regenerated.
8307 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8309         * src/roff/troff/env.c, src/roff/troff/env.h,
8310         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8311         from 2000-12-21.
8313 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8315         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8317 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8319         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8320         less than or equal zero; set it to 1 then.
8321         * src/roff/troff/node.h (node::node): Initialize `last'.
8323 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8325         * tmac/an-old.tmac: Make predefined strings work in compatibility
8326         mode.
8327         Add troff version guard.
8328         * tmac/doc.tmac: Simplify version guard.
8330 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8332         The .ns and .rs requests are now honoured not only in the top-level
8333         but in all diversions (similar to UNIX troff).
8335         This change is based on a patch from Tadziu Hoffmann
8336         <hoffmann@usm.uni-muenchen.de>.
8338         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8339         (top_level_diversion): Remove `no_space_mode' member.
8340         * src/roff/troff/div.cc (diversion::diversion,
8341         top_level_diversion::top_level_diversion): Updated.
8342         (macro_diversion::output): Reset `no_space_mode'.
8343         (no_space, restore_spacing): Use `curdiv' unconditionally.
8344         (space_request, blank_line): Check `curdiv->no_space_mode'.
8345         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8346         `curdiv' unconditionally.
8347         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8348         Updated.
8350 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8352         Added two new requests `de1' and `am1' which are similar to `de' and
8353         `am' with the difference that compatibility mode is saved on entry,
8354         switched off during macro execution, and restored on exit.
8356         * src/roff/troff/input.h: Added two new special characters
8357         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8358         * src/roff/troff/input.cc (input_iterator): Added two member
8359         functions `save_compatible_flag' and `get_compatible_flag'.
8360         (input_stack): Ditto.
8361         (string_iterator): Ditto.  Also add private member
8362         `saved_compatible_flag'.
8363         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8364         (calling_mode): New enumeration.
8365         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8366         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8367         (define_macro, define_indirect_macro, append_macro, ignore): Use
8368         `calling_mode'.
8369         (define_nocomp_macro, append_nocomp_macro): New functions.
8370         (init_input_requests): Updated.
8371         (do_request): Rename local variable `saved_compatible_flag' to
8372         `old_compatible_flag'.
8373         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8375         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8376         public and trap-invoked macros.  As a consequence, the man macros
8377         work in compatibility mode also.
8379 2001-05-06  Solar Designer  <solar@openwall.com>
8381         * Makefile.in: Use $(mandir).
8383 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8385         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8387 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8389         Added `.ns' number register: Returns 1 in no-space mode (if in
8390         top-level diversion), 0 otherwise.
8392         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8393         (init_div_requests): Updated.
8394         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8395         Document it.
8397 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8399         * src/roff/nroff/nroff.man: Improved documentation (especially
8400         locales).
8402 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8404         Added `brp' request: This is \p as a request.
8406         * src/roff/troff/env.cc (environment::do_break): Add parameter
8407         `spread'.
8408         (do_break_request): New function (was `break_request').
8409         (break_request): Calls `do_break_request'.
8410         (break_spread_request): New; calls `do_break_request'.
8411         (init_env_requests): Updated.
8412         * src/roff/troff/env.h: Updated.
8413         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8415         * REVISION: Increased to 1.
8416         * win32-diffs: Updated.
8418 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8420         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8421         * tmac/troffrc-end: Make it really work in compatibility mode.
8423 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8425         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8426         stdlib.h.
8428 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8430         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8431         latest versions from glibc CVS archive.
8433         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8434         <c.zeelenberg@hccnet.nl>.
8436 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8438         * configure.in: Move check for mkstemp() to...
8439         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8440         * configure: Regenerated.
8442         * src/include/groff-getopt.h: Don't use variable names in
8443         declarations.
8445         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8446         * src/devices/grohtml/Makefile.sub,
8447         src/devices/grohtml/post-html.cc: Updated.
8449 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8451         * configure.in: Add special check for mkstemp().
8452         * src/libs/libgroff/tmpfile.cc: Use it.
8453         * src/utils/indxbib/indxbib.cc: Ditto.
8454         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8455         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8456         `const'.
8458 2001-04-20  Bruce Lilly  <blilly@erols.com>
8460         `Version_string' as C++ object was not visible to linker from C
8461         object files.
8462         Add `const' to `Version_string'.
8464         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8465         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8466         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8467         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8468         (scanArguments), src/preproc/refer/refer.cc (main),
8469         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8470         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8471         (main), src/devices/grohtml/post-html.cc (main),
8472         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8473         (main), src/utils/hpftodit/hpftodit.cc (main),
8474         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8475         (main), src/utils/lkbib/lkbib.cc (main),
8476         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8478         * src/roff/groff/pipeline.c: Add _UWIN.
8479         * src/include/nonposix.h: Ditto.
8481 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8483         * src/include/lib.h: Use HAVE_STRERROR.
8484         * src/roff/groff/pipeline.c: Ditto.
8485         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8486         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8487         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8488         * win32-diffs: Updated.
8489         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8491 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8493         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8494         instead of hardwired `"troff"'.
8495         (char_buffer::read_file): Remove unused variables.
8496         (char_buffer::write_file_troff): Ditto.
8497         (char_buffer::write_file_html): Ditto.
8498         (generateImages): Ditto.
8499         (abs): Removed.
8500         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8502         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8504         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8505         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8506         index_search_item::search1): Ditto.
8507         * src/roff/troff/node.h (width_list): Reorder members.
8508         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8509         (lookup_warning): Ditto.
8510         (prepend_string): Commented out.
8511         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8512         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8513         * src/preproc/tbl/main.cc (process_format): Ditto.
8514         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8515         compiler warnings.
8516         * src/preproc/pic/pic.cc: Updated.
8517         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8518         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8519         * src/preproc/refer/command.cc (execute_command): Ditto.
8520         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8521         * src/preproc/refer/token.cc (lookup_token): Ditto.
8522         * src/preproc/soelim/soelim.cc: Ditto.
8523         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8524         (isHexDigit): Commented out.
8525         (pushBackBuffer::isString): Remove unused variable.
8526         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8527         warning.
8528         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8529         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8530         Ditto.
8531         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8532         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8533         lookup_paper_size): Ditto.
8534         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8535         (text_glob, element_list): Reorder members.
8536         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8537         compiler warning.
8538         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8539         return value to `void'.
8540         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8541         of initializers.
8542         * src/devices/grohtml/html.h (simple_output::check_newline,
8543         simple_output::space_or_newline, simple_output::enable_newlines):
8544         Add return value.
8545         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8546         compiler warnings.
8547         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8548         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8549         output_ligatures, output_charset, read_map): Ditto.
8550         * src/utils/lookbib/lookbib.cc (main): Ditto.
8551         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8552         (do_file): Fix typo (`=' -> `==').
8553         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8554         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8556 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8558         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8559         Fix usage of GROFF_BIN_PATH.
8560         * src/roff/nroff/nroff.man: Updated.
8562 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8564         * NEWS: Fixing typos.
8565         Updated.
8567 Version 1.17 released
8568 =====================
8570 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8572         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8573         directory, not in $(srcdir).
8575 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8577         * doc/groff.texinfo: More info on conditionals.
8579 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8581         * doc/groff.texinfo: Added some info about groff internals.
8583         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8584         about missing special character only if the name is non-null.
8586 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8588         Removing the grohtml-old device driver which is now obsolete.
8590         * src/devices/grohtml-old/*: Removed.
8591         * font/devhtml-old/*: Removed.
8592         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8593         Remove comments.
8594         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8595         * test-groff (PATH): Updated.
8596         * tmac/Makefile.sub (NORMALFILES): Updated.
8597         * tmac/an-old.tmac: Remove special code for html-old device.
8598         Replace `html-or-html-old' register with `an-html'.
8599         * tmac/eqnrc: Updated.
8600         * tmac/html-old.tmac: Removed.
8601         * tmac/troffrc, tmac/troffrc-end: Updated.
8602         * tmac/www.tmac: Remove special code for html-old device.
8603         Replace `html-or-html-old' register with `www-html'.
8605         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8606         src/libs/libgroff/htmlindicate.cc (graphic_end),
8607         include/htmlindicate.h, src/preproc/grn/*.cc,
8608         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8609         single argument for consistency with rest of source code.
8611         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8613 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8615         * src/roff/troff/troff.man: Fixing typos.
8617 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8619         * doc/pic.ms: Fixing many font switches.
8620         * doc/groff.texinfo: Fixes, additions.
8621         * MORE.STUFF: Updated.
8623 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8625         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8626         simple anchor.
8627         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8628         cropping of images.
8629         (removeTempFiles): New function to tidy up temporary files.
8630         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8631         Many fixes to do with the new inline suppress node and image regions
8632         are much tighter.
8633         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8634         (generate_img_src): New function.
8635         (html_printer::do_auto_image): Utilizes it.
8636         (do_heading, do_title): Include inline images within their contents.
8637         (html_printer::begin_page): Tidied up comments that are issued to
8638         the html output file.
8639         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8640         than courier.
8641         (text_glob::is_br): New method used by do_heading.
8642         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8643         equivalent diversion.
8644         * src/include/html-strings.h: Altered image tags to reflect the
8645         inline image node.
8646         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8647         parameter.
8648         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8649         it is already inside a pic image.  Only emit tags if the argument
8650         `-Tps:html' is present.
8651         * src/preproc/tbl/main.cc: Changes to reflect additional
8652         `html_end_suppress' parameter.
8653         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8654         emitted since the last eol tag was written.
8655         * src/roff/troff/env.h: New boolean `emitted_node'.
8656         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8657         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8658         * src/roff/troff/node.cc (check_charinfo): New method. 
8659         (troff_output_file::determine_line_limits): Alterations to limit
8660         checking.
8661         * tmac/www.tmac: Changes to reflect new suppress nodes.
8662           
8663 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8665         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8666         Escape the html_glyph in the buffer.
8667         (str_translate_to_html): Output the unescaped escaped_char.
8668         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8669         `frame=void', not `frame=none'.  Add `border=0'.
8671 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8673         * PROBLEMS: Add some words on how to avoid wrapper macros.
8675 2001-04-11  Blake McBride  <blake@florida-software.com>
8677         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8679 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8681         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8682         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8683         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8684         * Makefile.sub (DISTCLEANFILES): Here.
8686         * libs/libgroff/new.cc: Include `nonposix.h'.
8687         * win32-diffs: Updated.
8689 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8691         Added skeleton macro for defunct macros.
8693         Updated documentation.
8695         When inside displays, an empty input line warning should be
8696         suppressed.  If another macro call is put inside a display,
8697         all subsequent empty lines found in that display caused a
8698         warning to be emitted.
8700         * tmac/doc.tmac (doc-defunct-macro): New macro.
8701         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8702         (doc-restore-global-vars): Fixed typo.
8703         (doc-empty-line): Check the `doc-display-depth' register to
8704         determine whether we are inside display or not.
8706         * tmac/doc-common: Removed `Or' and `Sf' registers.
8707         Moved obsolete `Ds' macro to doc.tmac.
8709         * tmac/groff_mdoc.man: Bump document date.
8710         Document `.Vt' under ``Variable Types''.
8711         Removed documentation for obsolete `.Or' macro.
8713 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8715         * NEWS: Updated.
8716         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8718 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8720         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8721         (usage): Add stream argument. Don't exit.
8722         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8723         Write --version output to stdout, not stderr.
8724         (usage): Add stream argument. Don't exit.
8725         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8726         (usage): Add stream argument. Don't exit.
8727         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8728         constants.
8729         (usage): Add stream argument. Don't exit.
8730         (main): Write --help output to stdout, not stderr.
8731         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8732         (usage): Add stream argument. Don't exit.
8733         * src/devices/grops/ps.cc (main): Accept --help and --version.
8734         (usage): Add stream argument. Don't exit.
8735         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8736         (usage): Add stream argument. Don't exit.
8737         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8738         (main): Accept --help and --version.
8739         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8740         (main): Accept --help and --version.
8741         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8742         (scanArguments): Accept --help and --version.
8743         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8744         (main): Accept --help and --version.
8745         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8746         (usage): Add stream argument. Don't exit.
8747         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8748         exit.
8749         (main): Accept --help and --version.
8750         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8751         (main): Accept --help and --version.
8752         * src/roff/groff/groff.cc (main): Accept --help and --version.
8753         (synopsis): Add stream argument.
8754         (help): Write --help output to stdout, not stderr.
8755         (usage): Add stream argument. Don't exit.
8756         * src/roff/grog/grog.pl: Accept --help and --version.
8757         (help): New sub.
8758         * src/roff/grog/grog.sh: Accept --help and --version.
8759         * src/roff/nroff/nroff.sh: Accept --help and --version.
8760         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8761         (usage): Add stream argument. Don't exit.
8762         (main): Accept --help and --version.
8763         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8764         (usage): New function with stream argument, doesn't exit.
8765         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8766         (usage): New function with stream argument, doesn't exit.
8767         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8768         (usage): Add stream argument. Don't exit.
8769         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8770         (main): Accept --help and --version.
8771         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8772         exit.
8773         (main): Accept --help and --version.
8774         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8775         (main): Accept --help and --version.
8776         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8777         (usage): Add stream argument. Don't exit.
8779 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8781         Fix indentation in SYNOPSIS.
8783         Updated to include changes of latest BSD mdoc version (basically,
8784         the only change is that `.Fn' and `.Fc' put a final semicolon after
8785         a function declaration in the SYNOPSIS section).
8787         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8788         (doc-in-synopsis-section): New variable.  Updated all related
8789         functions.
8790         (doc-indent-synopsis-active): New register.
8791         (Nd, Fn, Fo): Use it.
8792         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8793         `.Cd' with long argument line produces indented wrapped lines. 
8794         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8795         undesirable line break to be output.
8796         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8797         `.rs'.
8798         (Fn, Fc): Add final `;' to output.
8799         (doc-save-global-vars, doc-restore-global-vars): Updated.
8800         * tmac/doc-common: Remove `Ex' register.
8801         Updated.
8802         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8803         copyright.
8805 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8807         * tmac/doc.tmac (Cd): Simplify code.
8808         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8810 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8812         Implement continuous underlining for nroff mode.  To do that, a new
8813         request in the ditroff language has been added: `x u N' (N is 0
8814         or 1).
8816         \X and \Y are now transparent to end-of-sentence recognition.
8818         * src/include/printer.h (printer): Add `type' parameter to `special'
8819         method.
8820         * src/libs/libdriver/printer.cc (printer::special): Updated.
8821         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8823         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8824         specials of type `p'.
8825         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8826         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8827         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8828         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8829         (glyph::order): New method.
8830         (tty_printer::add_char): Use it.
8831         (tty_printer::special): New method.
8832         (tty_printer::end_page): Implement it.
8834         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8835         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8836         to set `no_init_string'.
8837         (special_node::tprint_start): Use it.
8838         (special_node::same, special_node::copy): Updated.
8839         (special_node::ends_sentence): New method.
8840         (troff_output_file::start_special): Add parameter to include
8841         inititialization of special conditionally.
8843         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8844         * src/roff/troff/env.cc (do_underline_special): New function.
8845         (environment::set_font): Use it.
8846         (do_underline): Use it.  This was `underline()'.
8847         (underline): Call `do_underline()'.
8848         (continuous_underline): New function which calls `do_underline()'.
8849         (environment::newline): Use `do_underline_special()'.
8850         (init_env_requests): Updated.
8852         * NEWS, man/troff_out.man: Updated.
8854 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8856         * font/devutf8/R.proto: Fix code of 'shc'.
8858 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8860         Many fixes.  Diag lists can now be nested also; additionally,
8861         `-compact' and `-offset' are supported.
8863         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8864         (doc-list-have-indent-stackXXX): A new register stack.
8865         (doc-have-diag-list): Removed.
8866         (Bl): Use `doc-list-have-indent-stackXXX'.
8867         (El): Updated.
8868         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8869         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8870         (doc-set-vertical-and-indent): Ditto.
8871         (doc-next-list-depth): Removed.
8872         (doc-increment-list-stack): Updated.
8873         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8874         `doc-next-list-depth'.
8875         (doc-end-list, doc-end-column-list): Don't use
8876         `doc-increment-list-stack'.
8877         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8878         (doc-save-global-vars, doc-restore-global-vars): Updated.
8879         * tmac/doc-common: Updated.
8880         * tmac/groff_mdoc.man: Updated.
8881         * NEWS: Fix typo.
8883 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8885         * src/devices/grotty/grotty.man: Fix grammatical error.
8887 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8889         Remove .Ld from mdoc package; replace it with special handling of
8890         `...'.
8892         * tmac/doc-common: Remove `Ld' register.
8893         Uncomment `doc-volume-ds-*' strings.
8894         Remove `doc-operating-system-default'.
8895         (Os): Updated.
8896         * tmac/doc-syms (Ld): Removed.
8897         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8898         `...' specially.
8899         * NEWS: Updated.
8901         * tmac/groff_mdoc.man: Many fixes and updates.
8903 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8905         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8906         Bond <tkb@tkb.mpl.com>.
8907         * tmac/www.tmac: Save compatibility mode.
8909 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8911         * tmac/groff_mdoc.man: Many fixes.
8913 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8915         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8916         isn't recognized.
8918 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8920         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8921         diversion.  This fixes overlong tags.
8923 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8925         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8926         * tmac/doc-syms: Fix error messages.
8927         * tmac/an-old.tmac: Remove incorrect double backslashes.
8929 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8931         * tmac/Makefile.sub: Strip mdoc.local also
8932         * tmac/strip.sed: Fixed.
8934 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8936         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8937         selecting the font size.
8938         * tmac/groff_mdoc.man, NEWS: Document it.
8940 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8942         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8943         to `sv' request.
8944         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8945         argument to restore previous font family.
8946         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8948         * doc/groff.texinfo: More fixes and additions (mainly for font
8949         manipulating commands).
8951         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8952         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8953         * tmac/Makefile.sub, NEWS: Updated.
8955 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8957         Replaced mdoc implementation.  The new version is `state of the
8958         art', using almost all new features of groff 1.17 -- it won't run
8959         with older versions.
8961         * tmac/doc.tmac: Completely rewritten.
8962         * tmac/doc-common: Ditto.
8963         * tmac/doc-nroff: Ditto.
8964         * tmac/doc-ditroff: Ditto.
8965         * tmac/doc-syms: Ditto.
8966         * tmac/mdoc.local: New file.
8967         * tmac/groff_mdoc.samples.man: Replaced with ...
8968         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8969         * tmac/strip.sed: Updated.
8970         * tmac/Makefile.sub: Updated.
8971         * INSTALL: Updated.
8973         * tmac/groff_man.man: Add `man.local' to the FILES section.
8975 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8977         * doc/groff.texinfo: Added many @noindent.
8978         Replaced @end_Example -> @endExample.
8979         Added info whether registers are r/o.
8980         Many other additions and fixes.
8982 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8984         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8985         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8986         Improved @Def* macros: Now the exact syntax of request, register,
8987         and escapes is shown.
8988         Added macros for parentheses and brackets to be used in @Def*.
8989         Many fixes and improvements of the documentation.
8991 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8993         * doc/groff.texinfo: Added new index: `st' (for strings).
8994         Added macros @Defstr(x).
8995         Added macro @Example (adding @group).
8996         Other minor improvements.
8998 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9000         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9001         `rq' for requests.  `fn' is no longer used.
9002         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9003         Removed @Deffn(x).
9005         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9006         number with name of man page.
9008 2001-03-19  Larry Kollar  <kollar@alltel.net>
9010         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9011         consistency.
9013 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9015         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9016         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9017         * src/devices/grohtml/grohtml.man: Fixing typos.
9019 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9021         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9022         * tmac/groff_mwww.man: Remove .LINE macro
9023         * tmac/www.tmac (LINE): Add `.ti'.
9025         * src/devices/grohtml/post-html.cc (html_printer): New member
9026         `indent'.
9027         (html_printer::emit_raw): Use it.
9028         (html_printer::do_linelength): Ditto.
9029         (html_printer::do_pageoffset): Ditto.
9030         (html_printer::do_indentation): Ditto.
9031         (html_printer::do_tempindent): Ditto.
9032         (html_printer::do_break): Ditto.
9033         (html_printer::begin_page): Ditto.
9034         (html_printer::do_indentedparagraph): New function.
9035         (html_printer::troff_tag): Handle `.ip'.
9036         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9037         Add `<td width=...>' handling.
9038         (html_text::do_table): Add parameter.
9039         (html_text::do_indent): Updated.
9040         * src/devices/groohtml/html-text.h: Updated.
9042 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9044         Introduced simple html tables to implement indentation.
9046         * src/devices/grohtml/html.h (word, word_list): New structures.
9047         (simple_output): Use it.
9048         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9049         (html_printer): Improve indentation handling.
9050         (html_printer::emit_raw): Set `in_table' element.  Handle
9051         indentation if set.
9052         (html_printer::write_header): Move conditional downwards.
9053         Don't allow whitespace in tags.
9054         (html_printer::do_linelength): Handle line length and indentation
9055         conditionally.
9056         (html_printer::do_pageoffset): Handle indentation conditionally.
9057         (html_printer::do_indentation): Ditto.
9058         (html_printer::do_tempindent): New function member.
9059         (html_printer::do_fill): Take care of indentation.
9060         (html_printer::do_flush): Finish table.
9061         (html_printer::do_links): Ditto.
9062         (html_printer::do_break): New function for handling `.br' and `.ti'.
9063         (html_printer::troff_tag): Use it.
9064         Handle `.ti'.
9065         (html_printer::flush_globs): Fix.
9066         (html_printer::flush_page): Finish table.
9067         (html_printer::html_printer): Fix error message.  Set up
9068         `linelength'.
9069         (html_printer::add_to_sbuf): Remove special handling of character
9070         code 255.
9071         (to_unicode): Remove `stop()'.
9072         (html_printer::write_title): Cleanup.
9073         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9074         (html_printer::~html_printer): Flush text and end the line.
9075         Use `put_string()'.
9076         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9077         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9078         emission of tags.
9079         (html_text::start_tag): Disable newlines.
9080         (html_text::table_is_void): New function.
9081         (html_text::issue_table_begin): Ditto.
9082         (html_text::issue_table_end): Ditto.
9083         (html_text::push_para): Better table handling.
9084         (html_text::do_indent): New function.
9085         (html_text::do_table): Ditto.
9086         (html_text::done_table): Ditto.
9087         (html_text::do_tt): Handle PRE_TAG.
9088         (html_text::is_in_table): New function.
9089         (html_text::check_emit_text): Handle tables.
9090         (html_text::do_emittext): Use `nl()'.
9091         (html_text::do_para): Handle table.
9092         (html_text::remove_def): New function.
9093         * src/devices/grohtml/output.cc (word, word_list): Implement
9094         methods.
9095         (simple_output::end_line): Flush last word.
9096         (simple_output::simple_comment): Ditto.
9097         (simple_output::begin_comment): Recoded.
9098         (simple_output::end_comment): Ditto.
9099         (simple_output::comment_arg): Removed.
9100         (simple_output::check_newline): Improve test and flush last word.
9101         (simple_output::space_or_newline): Improved.
9102         (simple_output::write_newline): Replaced with...
9103         (simple_output::nl): This.
9104         (simple_output::put_raw_char): Flush last word.
9105         (simple_output::check_space): Removed.
9106         (simple_output::put_translated_string): Ditto.
9107         (simple_output::put_string): Simplified.
9108         (simple_output::put_number): Updated.
9109         (simple_output::put_float): Ditto.
9110         (simple_output::put_symbol): Removed.
9111         (simple_output::enable_newlines): Add `check_newline()'.
9112         (simple_output::flush_last_word): New function.
9114         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9115         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9117         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9118         * tmac/an-old.tmac (TP): Ditto.
9120 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9122         * mdate.sh: Make it POSIX compliant.
9124 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9126         Added the `return' request to end a macro immediately.  It simply
9127         pops iterators from the input stack until a macro iterator is found.
9129         * src/roff/troff/input.cc (input_iterator::is_macro,
9130         macro_iterator::is_macro): New member.
9131         (input_return_boundary): New class to signal an immediate return
9132         to while_request().
9133         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9134         New functions.
9135         (input_stack::clear): Use it.
9136         (input_stack::pop_macro): New function.
9137         (while_request): Use `is_return_boundary()'.
9138         (return_macro_request): New function.
9139         (init_input_requests): Use it.
9141         * src/roff/troff/TODO: Updated.
9142         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9144 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9146         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9147         cleanup.
9149 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9151         Make `\B' more rigid.
9153         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9154         parameter.
9155         (get_number_rigidly): New function.
9156         * src/roff/troff/input.cc (do_expr_test): Use it.
9157         * src/roff/troff/token.h: Updated.
9159         * src/roff/troff/request.h: Fix typo (init_html_request ->
9160         init_markup_request).
9162 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9164         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9165         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9166         are now `.begin', `.end', `.image'.
9168         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9169         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9170         Use add_char_to_sbuf().
9171         (to_unicode): New function.
9172         (char_translate_to_html): Changing type of `ch' parameter.
9173         Use `to_unicode()'.
9174         (html_printer::~html_printer): Comment out doctype string.
9175         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9176         instead of `.html-end'.
9177         (write_start_image): Use `.begin' and `.image' instead of
9178         `.html-begin' and `.html-image'.
9179         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9180         (html_begin): Renamed to ...
9181         (begin): This.
9182         (html_end): Renamed to ...
9183         (end): This.
9184         (html_image): Renamed to ...
9185         (image): This.
9186         (init_html_requests): Renamed to ...
9187         (init_markup_requests): This.
9188         * tmac/www.tmac: Updated.
9190 2001-02-28  Bram  <bram@avontuur.org>
9192         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9193         constructor.
9195 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9197         * doc/meref.me: Fixing some typos.
9199 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9201         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9202         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9203         * src/roff/troff/node.h: Updated.
9205 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9207         * tmac/groff_tmac.man: Fix typo.
9209 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9211         Fixing a bug which prevented proper end-of-sentence recognition
9212         between an `unformatted' box and the following text.  As a
9213         consequence, vertical line distances are no longer preserved in
9214         boxes after a call to `.unformat' -- because boxes aren't
9215         line-oriented (contrary to diversions), this doesn't make sense
9216         anyway.
9218         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9219         value.
9220         (vertical_size_node::set_unformat_flag): New method.
9221         * src/roff/troff/node.hh: Updated.
9222         * src/roff/troff/input.cc (word_space_node::reread,
9223         hmotion_node::reread): Reset `unformat' flag after usage.
9224         (unformat_macro): Append only if `set_unformat_flag()' returns
9225         non-zero.
9226         * src/roff/troff/troff.man: Updated.
9228 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9230         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9231         documentation of `asciify' and `unformat' requests.
9233 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9235         Redesigned the `unformat' request.  It is no longer connected with
9236         `asciify' but rather uses new `reread()' methods if the `unformat'
9237         flag is set.  Additionally, the handling of space characters after
9238         unformatting has been fixed so that they retain their width.
9240         * src/roff/troff/node.h (width_list): New structure to store
9241         original widths of spaces.
9242         (node): Added `unformat' member.
9243         Replaced `num_spaces' variable with `orig_width' list.
9244         * src/roff/troff/node.cc (*node::asciify,
9245         asciify_reverse_node_list): Removed `unformat_only' flag and related
9246         code.
9247         (word_space_node::asciify, word_space_node::word_space_node): Use
9248         `orig_width'.
9249         (word_space_node::~word_space_node): New destructor.
9250         (word_space_node::copy): Updated to handle `orig_width'.
9251         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9252         (*node::merge_space): Update `orig_width' list if necessary.
9253         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9254         * src/roff/troff/enc.cc (environment::space_newline): Use
9255         `width_list'.
9256         (environment::space): Added method to handle space width and
9257         sentence space width as parameters.  Use `width_list'.
9258         (environment::make_tab_node): Updated.
9259         * src/roff/troff/env.h: Updated.
9260         * src/roff/troff/input.cc (word_space_node::reread,
9261         unbreakable_space_node::reread, hmotion_node::reread): New methods
9262         to handle nodes specially if `unformat' flag is set.
9263         (do_asciify_macro): Renamed back to ...
9264         (asciify_macro): This.
9265         (unformat_macro): New implementation to simply set the `unformat'
9266         flag.
9268         * MORE.STUFF: Added more info about deroff.
9270 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9272         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9273         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9274         and `add_self()' methods to avoid hyphenation.  For example, the
9275         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9276         soft hyphen after `foo'.  Now the hyphen list is correctly
9277         `foo<ignore><ignore>bar'.
9279 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9281         * tmac/groff_tmac.man: Fix `BIR' macro.
9283 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9285         A new escape sequence `\:', inserting a zero-width break point.
9287         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9288         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9289         Implement it.
9290         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9291         method.
9292         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9293         and `asciify()' methods.
9294         * src/roff/troff/node.cc (space_node::space_node): Updated.
9295         (space_node::asciify): Handle `was_escape_colon'.
9296         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9298         Handle `\~' similar to other comparable requests.
9300         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9301         label.
9302         (token::next): Move creation of an unbreakable_space_node to...
9303         (token::add_to_node_list): Here.
9305         Fix a bug which sometimes prevented hyphenation of words connected
9306         with `\~' or `\ ' (and other escape sequences handled as
9307         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9308         (after a call to the `unformat' request).
9310         * src/roff/troff/env.h (environment::possibly_break_line,
9311         environment::hyphenate_line): Introducing `start_here' parameter.
9312         * src/roff/troff/env.cc (environment::space_newline,
9313         environment::space): Use it.
9314         (environment::possibly_break_line, environment::hyphenate_line):
9315         Implement it.
9316         * src/roff/troff/input.cc (process_input_stack): Use it.
9317         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9318         space_char_hmotion_node, overstrike_node): Add
9319         `get_hyphenation_type()' method.
9320         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9321         if `unformat_only' is active.
9323 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9325         Implemented new read-only number register `.linetabs' which
9326         returns 1 if in line-tabs mode, 0 otherwise.
9328         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9329         * src/roff/troff/env.cc (get_line_tabs): New function.
9330         (init_env_requests): Use it.
9331         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9333         * VERSION, REVISION: Changing to 1.17.0.
9335 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9337         Fixed a bug which prevented hyphenation of words which are finished
9338         with `\)'.
9340         * src/roff/troff/token.h (token): Add enum type
9341         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9342         * src/roff/troff/input.cc (token::next, token::description,
9343         get_line_arg, token::add_to_node_list, token::process): Use it.
9345 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9347         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9348         * src/roff/troff/div.cc (do_divert): Use it.
9350         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9352 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9354         Adding the `linetabs' request.  If set, tab distances are not
9355         computed relative to the input line but relative to the output line.
9357         * src/roff/troff/env.h (environment): New member `line_tabs'.
9358         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9359         (environment::environment, environment::copy): Updated.
9360         (environment::distance_to_next_tab): Use `line_tabs'.
9361         (init_env_requests): Register request.
9362         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9363         fixes.
9365 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9367         Introducing a new read-only register `.int' which is set to a
9368         positive value if the last output line is interrupted (i.e., if it
9369         contains `\c').
9371         * src/roff/troff/env.cc (init_env_requests): Add it.
9372         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9374 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9376         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9377         * src/preproc/html/pre-html.cc (findPrefix): New function which
9378         generates the troff executable name via the system prefix.
9379         * src/preproc/eqn/main.cc: Modified warning message.
9381 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9383         troff's `box' and `boxa' requests didn't preserve temporary
9384         indentation.
9386         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9387         `saved_target_text_length' members.
9388         * src/roff/troff/div.cc (do_divert): Use them.
9390         Tabs (but not yet leaders and fields) are now handled correctly by
9391         `asciify' request.
9393         * node.h (hmotion_node): Add field `was_tab'.
9394         * env.cc (environment::make_tab_node): Set it.
9395         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9397         Added new request `unformat' which will, contrary to `asciify',
9398         preserve font information after unformatting (i.e., only nodes
9399         dealing with horizontal space are converted back to input
9400         characters).
9402         * input.cc (asciify_macro): Renamed to ...
9403         (do_asciify_macro): this, having a new parameter `unformat_only'.
9404         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9405         (init_input_requests): Added `unformat'.
9406         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9407         parameter to control asciification process.
9408         * node.h (*_node::asciify): Ditto.
9409         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9411 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9413         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9415 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9417         * tmac/ps.tmac: Remove call of psold.tmac.
9418         * tmac/psold.tmac: Comment updated.
9419         * tmac/psnew.tmac: Removed since no longer needed.
9420         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9422         * font/devutf8/R.proto: Adding `shc' glyph.
9423         * font/devutf8/NOTES: Updated.
9425         * test-groff: Updated.
9427 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9429         First cut of the new html device driver.  Changes to pre-html and
9430         the new grohtml are too numerous to be documented here.
9432         Stuff related to `html' has been renamed to `html-old' and `html2'
9433         stuff has been renamed to `html' (including directories).  The new
9434         html device driver is therefore invoked as `-Thtml'.
9436         Added new `\O' escape to suppress output (needed by html driver).
9438         Added functions and code to pass info about input-level commands
9439         (`.in', `.fl', etc.) to html driver.
9441         Three new functions (.html-begin, .html-end, and .html-image) for
9442         better html handling: `html-begin' will execute the remaining line
9443         if at the outermost nesting level, increasing an internal counter.
9444         `html-end' does the same but decreases the internal counter.
9445         `html_image' puts its arguments into a special node (suppress_node)
9446         to define an image region.
9448         The `output' request has been removed.
9450         * tmac/html-tags.tmac: Removed.
9451         * tmac/arkup.tmac: Updated and renamed to ...
9452         * tmac/www.tmac: New file.
9453         * tmac/markup.tmac Updated and renamed to ...
9454         * tmac/mwww.tmac: New file.
9455         * tmac/Makefile.sub: Updated.
9456         * tmac/an-old.tmac: Updated.
9457         * tmac/eqnrc: Updated.
9458         * tmac/groff_man.man
9459         * tmac/groff_markup.man: Updated and renamed to ...
9460         * tmac/groff_mwww.man: New file.
9461         * tmac/groff_tmac.man: Updated.
9462         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9463         * tmac/html.tmac: Updated and renamed from html2.tmac.
9464         * tmac/pspic.tmac: Updated html support.
9465         * tmac/s.tmac: Added html output support.
9466         * tmac/troffrc, tmac/troffrc-end: Updated.
9468         * Makefile.in, doc/Makefile: Updated.
9469         * doc/groff.texinfo: Added info about new `\O' escape.
9470         * doc/homepage.ms: Use `MAILTO' macro.
9472         * font/devhtml/DESC.proto: Add `C' font.
9473         * font/devhtml/Makefile.sub: Updated.
9474         * font/devhtml/R.proto: Minor fixes.
9475         * font/devhtml-old/Makefile.sub: Updated.
9477         * src/devices/grohtml-old/Makefile.sub: Updated.
9479         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9480         method.
9481         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9482         graphic_start): Add `inline' parameter.  Update.
9483         (html_end_suppress, graphic_end): Update.
9485         * src/include/html-strings.h: New file.
9486         * src/include/htmlindicate.h: Comments updated.
9487         * src/include/printer.h: Updated.
9489         * src/preproc/eqn/main.cc (do_file, main): Updated.
9490         * src/preproc/pic/troff.cc (troff_output::start_picture,
9491         troff_output::finish_picture): Updated.
9492         * src/preproc/tbl/main.cc (process_input_file): Updated.
9494         * src/roff/groff/groff.cc (main): Updated.
9495         Pass device arguments to predrivers also.
9496         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9497         * src/roff/troff/env.h (environment): Updated.
9498         New elements `need_eol' and `ignore_next_eol' (for html output).
9499         * src/roff/troff/env.cc (environment::environment): Add initializers
9500         for `need_eol' and `ignore_next_eol'.
9501         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9502         functions.
9503         (point_size, fill, no_fill, center, right_justify, line_length,
9504         indent, temporary_indent, break_request, handle_tab): Use
9505         `add_html_tag()'.
9506         (set_tabs): Use `add_html_tag_tabs()'.
9507         (environment::add_html_tag): Updated.
9508         (environment::do_break): Updated.
9509         * src/roff/troff/div.cc (space_request, flush_output): Use
9510         `environment::add_html_tag()'.
9511         * src/roff/troff/input.cc: Updated.
9512         New variable `html_level' to indicate nested `html-begin' requests.
9513         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9514         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9515         `force_tprint()' method.
9516         (token::next): Handle `\O'.
9517         (do_suppress): Implement it.
9518         (html_begin, html_end, html_image): New functions.
9519         (init_output_requests): Renamed to ...
9520         (init_html_requests): this.
9521         (main): Use it.
9522         (macro::append_str, macro::append_unsigned, macro::append_int): New
9523         methods.
9524         New variable `output_low_mark_miny' to limit minimal value of y.
9525         (reset_output_registers): Use it.
9526         (output_request): Removed.
9527         (get_output_registers): New function.
9528         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9529         (*_node): Added `force_tprint()' if necessary.
9530         (special_node): New elements `tf' and `get_tfont()'.
9531         (suppress_node): New class.
9532         * src/roff/troff/node.cc:
9533         New global variables `image_no' and `suppress_start_page'.
9534         (real_output_file): New method `is_on()'.
9535         (troff_output_file): New method `start_special(tfont)'.
9536         (troff_output_file::really_print_line): Use `tprint' conditionally.
9537         (real_output_file::print_line): Updated.
9538         (real_output_file::on): Updated.
9539         (*_node): Added `force_tprint()'.
9540         (special_node::special_node): Initializer updated.
9541         (special_node::same, special_node::copy, special_node::tprint_start):
9542         Updated.
9543         (get_reg_int, get_reg_str): New functions.
9544         (suppress_node::*): New methods.
9545         New global variables last_position, last_image_filename;
9546         (min): New inline function.
9547         * src/roff/troff/reg.h, src/roff/troff/request.h,
9548         src/roff/troff/troff.h: Updated.
9550 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9552         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9553         documentation of `asciify' request.
9555 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9557         * src/roff/troff/input.cc: Move definition of special characters
9558         like `ESCAPE_TILDE' to ...
9559         * src/roff/troff/input.h: New file.
9560         * src/roff/troff/Makefile.sub (HDRS): Add it.
9562         Extending the .asciify request to `unformat' space characters also.
9564         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9565         to count input space characters.
9566         Update constructors to take care of it.
9567         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9568         `ESCAPE_SPACE' instead of normal space.
9569         (word_space_node::asciify): New method.
9570         (unbreakable_space_node::asciify): New method.
9571         (word_space_node::merge_space): New method.
9572         * src/roff/troff/env.cc (environment::space_newline,
9573         environment::space): Add code to initialize `num_spaces' (using the
9574         constructor of `word_space_node').
9575         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9576         Document it.
9578 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9580         * man/groff_char.man: Use table header traps only conditionally.
9582 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9584         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9586 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9588         Introducing the `box' and `boxa' requests which are similar to
9589         `di' resp. `da' but omitting a partially filled line (which is
9590         restored after ending the diversion).
9592         * src/roff/troff/div.h (diversion): Add elements to save partially
9593         filled line.
9594         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9595         partially filled line.
9596         (divert, divert_append): Updated.
9597         (box, box_append): New functions.
9598         (init_div_requests): Use them.
9599         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9600         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9602         * doc/groff.texinfo: Fix documentation of `lf' request.
9604 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9606         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9608 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9610         Ignore `ss' request if in compatibility mode.
9612         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9613         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9614         * src/roff/troff/env.cc (space_size): Use it.
9616         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9617         `ss' request in nroff mode.
9619         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9620         changes.
9622 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9624         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9626 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9628         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9629         * src/preproc/eqn/neqn.man: Small fixes and additions.
9631 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9633         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9634         Fixing typo.
9636         * src/preproc/eqn/neqn.man: New file.
9638         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9639         negative' warning.
9641         * tmac/e.tmac: Add `T&' macro.
9642         Fix `indent cannot be negative' warning.
9643         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9645 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9647         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9649 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9651         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9652         `alloca' symbol .
9654         * MORE.STUFF: Added info about deroff for djgpp.
9656         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9657         documentation of -rcR switch.
9659 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9661         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9662         if -rcR=1 (which is now the default in nroff mode), a single, very
9663         long page is created instead of multiple pages: All `ne' and `wh'
9664         requests are put into conditionals; a new macro `an-end' is added to
9665         be called with `em'.
9667         Some other minor cleanups.
9669         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9671 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9673         Fixing a bug which prevented hyphenation in words followed
9674         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9676         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9677         Adding possibly_break_line().
9678         * src/roff/troff/env.h (environment): Make possibly_break_line()
9679         public.
9681         Make `\~' usable in .tr request.
9683         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9684         (token): Add stretchable_space().
9685         * src/roff/troff/input.cc (token::next, token::delimiter,
9686         token::description, process_input_stack, do_translate,
9687         add_to_node_list, token::process): Use it.
9688         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9689         for adjusting the space.
9690         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9691         for stretchable space.
9692         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9693         (make_node): Add code for stretchable space.
9694         * src/roff/troff/env.cc (environment::add_char): Use it.
9695         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9696         (get_copy, token::next, transparent_translate, asciify): Use it.
9698         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9699         doc/groff.texinfo: Updated.
9700         * man/groff.man: Small reorderings.
9702 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9704         * NEWS: Fixes.
9705         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9706         option.
9707         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9708         `safer_macro_path' to -M option.
9709         * src/roff/troff/troff.man: Fixes.
9711 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9713         Use safer path (except for config files) if -U isn't specified.  Add
9714         a special macro path (without home and current directory) for config
9715         files.  Add home directory to unsafe path for consistency.  Don't
9716         include the home directory in the font path.
9718         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9719         `macro_path'.
9720         * src/include/macropath.h: Add `config_macrp_path'.
9721         * src/libs/libgroff/fontfile.cc: Fix font path.
9722         * src/roff/troff/input.cc (process_startup_file): Use
9723         `config_macro_path'.
9724         (main): Select unsafe path if -U is given.
9726         * src/preproc/eqn/main.cc (main): Fixing search path for
9727         configuration file.
9728         * src/preproc/eqn/eqn.man: Updated.
9730         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9731         Updated.
9733         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9734         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9735         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9736         src/devices/grotty/grotty.man: Updated.
9738         * Makefile.in: Fix comments.
9740 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9742         * tmac/safer.tmac: Empty file added (again) for compatibility
9743         reasons.
9744         * tmac/Makefile.sub: Updated.
9746 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9748         * src/devices/grodvi/dvi.cc (main),
9749         src/devices/grohtml2/post-html.cc (main),
9750         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9751         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9752         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9753         (main), src/preproc/html2/pre-html.cc (main),
9754         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9755         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9756         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9757         (main), src/utils/hpftodit/hpftodit.cc (main),
9758         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9759         (main), src/utils/lookbib/lookbib.cc (main),
9760         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9761         (main): Use stdout for -v.
9762         * src/roff/groff/groff.cc (run_commands),
9763         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9764         to make direct printing to stdout possible.
9765         * src/roff/groff/pipeline.h: Updated.
9767         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9768         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9769         * src/utils/afmtodit/afmtodit.man: Updated.
9771         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9772         (version): New function.
9773         (usage): Updated.
9774         * src/utils/addftinfo/addftinfo.man: Updated.
9776         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9777         Fixing copyright dates.
9779         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9780         replacing it.
9782         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9783         version_string.
9785         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9787 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9789         In all programs, make -v return immediately with exit status 0 to
9790         be compliant with the GNU standard.
9792         * src/devices/grodvi/dvi.cc (main),
9793         src/devices/grohtml2/post-html.cc (main),
9794         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9795         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9796         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9797         (main), src/preproc/html2/pre-html.cc (main),
9798         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9799         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9800         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9801         (main): Implement it.
9802         * NEWS: Updated.
9804         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9805         and postprocessors to the -v option.
9807         * src/roff/grog/grog.pl: Implement -v.
9808         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9809         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9811         * src/roff/nroff/nroff.sh: Implement -v.
9812         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9813         * src/roff/nroff/nroff.man: Updated.
9814         
9815         * src/preproc/eqn/main.cc (main): Fix comment typo.
9817         * MORE.STUFF: Added info about djgpp port of grap.
9819 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9821         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9822         mode (or rather, implemented non-compatibility mode).
9823         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9825         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9826         replacing it -- we don't find gxditview otherwise.
9827         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9829         * src/preproc/pic/depend: Removed.  Unnecessary.
9831         Implemented dummy keyword `solid' in pic for compatibility with
9832         AT&T pic.
9834         * lex.cc (lookup_keyword): Added `solid'.
9835         * pic.y: Added SOLID with dummy rule.
9836         * pic.cc, pic_tab.h: Regenerated.
9837         * doc/pic.ms: Updated.
9839 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9841         For security reasons, don't use the current directory but the home
9842         directory while searching and scanning troffrc and troffrc-end.
9843         Similarly, replace the current directory with the home directory
9844         in the font path.
9846         * Makefile.in (fontpath, tmacpath): Remove current directory.
9848         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9849         two parameters `add_home' and `add_current'.
9850         (search_path::~search_path, search_path::command_line_dir,
9851         search_path::open_file): Remove tests for `dirs' being zero.
9852         * src/include/searchpath.h: Adjust.
9853         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9854         `safer_macro_path'.
9855         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9857         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9858         * src/roff/troff/input.cc: Use `mac_path', initialized with
9859         `macro_path'.
9860         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9861         * src/roff/troff/env.cc: Use `mac_path'.
9863         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9865         * NEWS, man/roff.man, src/roff/troff/troff.man,
9866         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9867         Updated.
9869 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9871         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9873         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9874         * configure.in: Fix typo in comment.
9875         * configure: Regenerated.
9877         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9878         copyright dates.
9880 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9882         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9884         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9885         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9886         $(systemtmacdir).
9887         Use @libdir@.
9888         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9889         * tmac/Makefile.sub (install_data): Create
9890         $(systemtmacdir) and $(localtmacdir).
9891         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9892         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9893         NEWS, doc/groff.texinfo: Updated and minor fixes.
9895         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9896         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9897         $(systemtmacdir) since the wrapper files are platform-dependent.
9899 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9901         * doc/groff.texinfo: Fix typo.
9903 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9905         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9906           tmac.doc.old -> doc-old.tmac
9907           tmac.an.old  -> an-old.tmac
9909         * tmac/tmac.*: Moved to ...
9910         * tmac/*.tmac: this.
9911         * tmac/man.local: Fix comment.
9912         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9913         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9914         Added some `FILES' sections.  More use of @...@ directives.  Other
9915         minor updates.
9916         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9917         * doc/homepage.ms, doc/groff.texinfo: Updated.
9918         * man/groff.man, man/roff.man: Updated.
9919         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9920         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9921         src/devices/grotty/grotty.man: Updated.
9922         * src/preproc/pic/pic.man: Updated.
9923         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9924         instead of -mdoc.old.
9925         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9926         * src/roff/nroff/nroff.man: Updated.
9927         * NEWS: Updated.
9929         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9931         * tmac/mm.diff: Removed -- it has no use now since the mm package
9932         is part of groff.
9934         * tmac/*: Removed trailing spaces.
9936         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9937         the tmac subdirectory also).
9939         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9940         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9941         stuff since it is no longer needed.
9943         * README, PROBLEMS: Updated.
9945 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9947         Invert current behaviour: Search first FOOBAR.tmac, then
9948         tmac.FOOBAR.
9950         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9951         (open_mac_file, macro_source): Implement it.
9952         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9953         doc/groff.texinfo, NEWS: Document it.
9955         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9956         Small documentation improvements.
9958         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9959         subdirectory also).
9961         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9963 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9965         Add local tmac directory (groff/site-tmac).
9967         * Makefile.in: Add $(localtmacdir).
9968         (uninstall_dirs): Add $(localtmacdir).
9969         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9970         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9971         in $(localtmacdir).  Create $(localtmacdir).
9972         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9973         Updated and minor fixes.
9975         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9977         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9979 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9981         Move hyphen.us to tmac directory.
9983         * src/roff/troff/hyphen.us: Removed.
9984         * src/tmac/hyphen.us: Added.
9985         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9987         Change installation structure for data files from .../groff/... to
9988         .../groff/<version><revision>/... to be conform with other GNU
9989         programs.
9991         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9992         doc/Makefile: Implement it.
9993         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9994         * configure: Updated.
9995         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9996         * NEWS: Document it.
9997         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9998         @MACRODIR@ instead of hard-coded directories.
10000 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10002         Implement $GROFF_BIN_PATH environment variable (which defaults to
10003         $bindir) used for child programs of groff and similar wrappers.
10005         * gendefs.sh: Improve documentation.
10006         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10007         src/preproc/eqn/Makefile.sub (neqn),
10008         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10009         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10010         $GROFF_BIN_PATH.
10011         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10012         $GROFF_PATH__ (the latter for communication with troff).
10013         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10014         set.
10015         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10016         doc/groff.texinfo: Document it.
10018         * doc/groff.texinfo: Improve documentation of troff's -a option.
10020 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10022         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10023         non-intrusive eol marker.
10024         (troff_output_file::determine_line_limits): New function.
10025         (troff_output_file::draw): Use it.
10026         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10027         output_pending_lines() instead of output_line().
10028         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10029         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10030         createImage): Small fixes.
10031         
10032 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10034         Replace tmac.safer with a real secure solution.
10036         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10037         system_request, pipe_output): Disable requests if in safer mode.
10038         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10039         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10040         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10041         doc/groff.texinfo, src/roff/groff/groff.man,
10042         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10044         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10045         (resource_manager::output_prolog): Replace setenv() with putenv().
10047 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10049         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10050         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10051         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10052         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10053         compilation errors with some compilers.  It seems that this code
10054         is no longer necessary -- if yes, it is easy to add some #ifdef's
10055         for that particular old-fashioned compiler.
10057         * MORE.STUFF: Added info about Meta-tbl.
10059         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10061 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10063         Adding a new escape sequence \B'...': If the string between
10064         the delimiters is a valid numeric expression, return the character
10065         `1', and `0' otherwise.  This is an analogon to \A.
10067         * src/roff/troff/input.cc (do_expr_test): Implement it.
10068         (token::next): Use it.
10069         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10071         * tmac/tmac.trace: Made independent from escape character.
10073 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10075         Adding a new request .dei: define indirect.  The first and second
10076         parameter of .dei are taken from string registers instead directly;
10077         this very special request is needed to make tmac.trace independent
10078         from the escape character (which might even be disabled).
10080         * src/roff/troff/input.cc (do_define_macro): Implement it.
10081         (define_macro_indirect): New function.
10082         (init_input_requests): Use it.
10084         Adding two requests .ecs and .ecr: Save and restore the escape
10085         character.  These two requests are needed to make tmac.trace
10086         independent from the escape character (which might even be
10087         disabled).
10089         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10090         Implement it.
10091         (init_input_requests): Use it.
10093         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10095 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10097         Adding a new option -P and new environment variable GROPS_PROLOGUE
10098         to grops, selecting a different prologue file (minor modifications
10099         by WL).
10101         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10102         src/devices/grops/ps.cc (main): Implement it.
10103         * src/devices/grops/grops.man, NEWS: Document it.
10105 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10107         * INSTALL: Add info about selecting paper format.
10109 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10111         * src/roff/troff/input.cc (main): Fixing compiler warning.
10112         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10113         strings.h from the former to the latter.
10114         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10115         stuff from the former to the latter.
10117 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10119         Implementing two new requests .tm1 and .tmc: The former is similar
10120         to .tm but can output leading spaces; its syntax is similar to
10121         defining a string, i.e., a `"' can be used to mark the beginning of
10122         the string to be written to stderr: `.tm1 " test'.  The latter is
10123         similar to .tm1 but doesn't write out a final newline character.
10125         * src/roff/troff/input.cc (terminal1, terminal_continue,
10126         do_terminal): New functions.
10127         (init_input_requests): Use them.
10128         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10130 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10132         * tmac/groff_mdoc.samples.man: Small fixes.
10134 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10136         * tmac/groff_mdoc.man: Fixing typo.
10138 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10140         Implementing a .nop request which does nothing.
10142         * src/roff/troff/input.cc (nop_request): New function.
10143         (init_input_requests): Use it.
10144         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10146 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10148         * doc/groff.texinfo: Added some comments.
10150 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10152         * src/roff/troff/TODO: Updated.
10154 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10156         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10158 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10160         * font/devps/generate/Makefile (SHELL): Define explicitly to
10161         "/bin/sh", for non-Unix platforms.
10162         (extraclean): Use a more portable "" quoting instead of a
10163         backslash (which doesn't work on DOS/Windows).
10164         
10165         * font/devlj4/generate/Makefile (extraclean): Ditto.
10167         * font/devdvi/generate/Makefile (extraclean): Ditto.
10169 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10171         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10172         src/roff/troff/troff.man: Document Eli's latest changes.
10174 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10176         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10177         macro file names of the form NAME.tmac as well as tmac.NAME.
10179 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10181         * src/include/posix.h: Remove definition of FILENAME_MAX.
10183         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10184         `sys_fatal' and `stop' function().
10186         * test-groff: Updated.
10188 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10190         Added the new troff command .output <arg> to suppress output (while
10191         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10192         registers (for passing the output dimensions to the output device).
10194         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10195         parameter.
10196         * src/roff/troff/node.h, src/roff/troff/node.cc
10197         (troff_output_file::really_print_line,
10198         ascii_output_file::really_print_line,
10199         supress_output_file::really_print_line): Use `width' parameter.
10200         (troff_output_file::really_on, troff_output_file::really_off,
10201         output_file::on, output_file::off, real_output_file::on,
10202         real_output_file::off, real_output_file::really_on,
10203         real_output_file::really_off): New functions.
10204         (real_output_file:public output_file): New variable `output_on'.
10205         (real_output_file::begin_page, real_output_file::copy_file,
10206         real_output_file::transparent_char, real_output_file::print_line):
10207         Use it.
10208         (real_output_file::print_line): Use check_output_limits.
10209         * src/roff/troff/reg.h, src/roff/troff/request.h,
10210         src/roff/troff/input.cc (assign_registers): New function to remove
10211         two `goto's.
10212         (do_ps_file): Use it.
10213         (check_output_limits, reset_output_registers, output_request,
10214         init_output_requests): New functions.
10215         (init_input_requests): Updated.
10217         Added new grohtml2 device and html2 preprocessor (coding
10218         not yet finished) which will eventually replace grohtml.
10220         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10221         Updated.
10222         * src/include/htmlindicate.h, src/include/htmlindicate
10223         (html_begin_suppress, html_end_suppress): New functions.
10224         * src/preproc/tbl/main.cc: Use it.
10225         * src/roff/groff/groff.cc: Add support for html2 device (which will
10226         automatically invoke the html2 preprocessor).
10227         * src/roff/troff/input.cc (is_html2): New variable.
10228         * src/roff/troff/troff.h, src/roff/troff/env.h,
10229         src/roff/troff/env.cc (environment::add_html_tag): New function
10230         (uses `is_html2').
10231         (environment::do_break): Use it.
10232         * font/devhtml2/*: New files.
10233         * src/devices/grohtml2: New device.
10234         * src/preproc/html2: New preprocessor.
10235         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10237 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10239         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10241 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10243         * src/include/lib.h: Provide a fix for IRIX to not include
10244         groff-getopt.h.
10246 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10248         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10249         since some non-GNU sed programs can't handle null regexps.
10250         * configure, src/preproc/eqn/Makefile.sub,
10251         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10253         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10254         bug (string.h and strings.h are both needed according to latest
10255         POSIX standard).
10257         * MORE.STUFF: Added info about unroff and troffcvt.
10259 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10261         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10262         used before -ms.
10264         * tmac/tmac.man.old: Remove unused number register.
10266         * tmac.doc: Minor documentation fix.
10268 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10270         * src/roff/groff/pipeline.c (is_system_shell):
10271         Fix typo: "monocased_shell" no longer exists.
10273 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10275         Remove FILENAME_MAX limits.
10277         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10278         that the argument length is less than FILENAME_MAX.
10279         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10280         Use struct hack to allocate and free file name.
10281         (struct xtmpfile_list): fname is now part of the structure,
10282         not a pointer to another string.
10284 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10286         * src/include/posix.h: Add a default value for FILENAME_MAX.
10288 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10290         Add support for new BSD-style man pages (with ".Dd" instead of
10291         ".TH"), so that "groff -man" understands both styles, even
10292         when running "groff -man" on a host whose system man page
10293         macros don't support ".Dd".
10295         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10296         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10297         in case the system man macros don't define Dd or TH.
10299         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10300         * tmac/tmac.an: New one-line file.
10301         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10303 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10305         * src/roff/troff/troff.man: Fixing typos.
10307 Version 1.16.1 released
10308 =======================
10310 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10312         Preparing release 1.16.1.
10314         * REVISION: Revision number set to 1.
10315         * MORE.STUFF: Added info about port to DOS.
10316         * NEWS, win32-diffs: Updated.
10318         * src/include/nonposix.h: Remove first line -- this file is used
10319         in C also.
10321         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10322         link to it.
10324 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10326         * doc/texinfo.tex: Update to latest version.
10328 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10330         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10331         commands that fail.  Don't assume that "export a=b" is valid shell
10332         syntax.  This is needed for Solaris 2.5.1.
10334         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10335         comment about missing Solaris headers.
10337         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10339 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10341         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10342         SET_BINARY().
10344         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10346         * win32-diffs: Updated.
10347         * README.WIN32: Added CRs to make all Windows editors happy.
10349         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10350         src/roff/groff/pipeline.c).
10352 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10354         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10355         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10357 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10359         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10360         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10361         are binary files.
10362         (main): Support non-Posix systems with several different styles of
10363         slash characters in file names.
10365         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10366         (main) [SET_BINARY]: Switch stdin into binary mode.
10368         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10369         (main): Support file names with several possible slash-type
10370         characters, as given by DIR_SEPS[] in nonposix.h.
10371         (main) [__MSDOS__]: If renaming the temporary index file fails
10372         because it has more than one dot in its trunk, replace the dot
10373         with an underscore and try again.
10374         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10375         Newline.
10376         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10378         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10379         (File::File): Open the input file in binary mode.  Strip CR
10380         characters from each CR-LF pair.
10381         (xbasename): Support file names with several possible slash-type
10382         characters, as given by DIR_SEPS[] in nonposix.h.
10384         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10386         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10387         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10388         [!_POSIX_VERSION]: Define for traditional Unix systems.
10389         (real_output_file::real_output_file): Remove the MSVC-specific
10390         call to popen, use instead POPEN_WT, appropriately defined on
10391         nonposix.h.  #include nonposix.h.
10392         (real_output_file::~real_output_file): Remove the MSVC-specific
10393         call to pclose, a suitable macro is now defined on nonposix.h.
10394         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10395         and WEXITSTATUS instead of assuming traditional Unix
10396         interpretation of the status returned by pclose.
10398         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10399         call to popen, use POPEN_RT instead (appropriately defined on
10400         nonposix.h).  #include nonposix.h.
10401         (ps_bbox_request): Open the PostScript file in binary mode.
10402         Close the file after processing it.
10403         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10404         nonposix.h.
10406         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10407         A version of run_pipeline that doesn't use `fork'.
10408         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10409         (system_shell_name, system_shell_dash_c)
10410         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10411         the ugliness of testing DOS/Windows file names for equality, and
10412         support both stock shells and ports of Unix shells.
10414         * src/roff/groff/groff.cc: #include nonposix.h.
10415         (BSHELL): Definition moved to nonposix.h.
10416         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10417         instead of a literal "-c".
10418         (xbasename): Support file names with several possible slash-type
10419         characters, as given by DIR_SEPS[] in nonposix.h.
10420         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10421         of literal strings.
10423         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10424         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10426         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10427         pic_tab.h.
10429         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10431         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10432         eqn_tab.h.
10434         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10436         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10437         P_tmpdir is defined, use it instead of the literal "/tmp".
10438         (remove_tmp_files, add_tmp_file): New functions.
10439         (xtmpfile): Record temporary files and register an atexit function
10440         to delete them explicitly, instead of relying on the OS to do
10441         that, which doesn't work on non-Unix systems.
10443         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10444         (search_path::search_path): Use PATH_SEP instead of a literal
10445         colon.
10446         (search_path::command_line_dir): Ditto.
10447         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10448         to support non-Posix systems.
10450         * src/libs/libbib/search.cc: #include nonposix.h.
10451         (search_list::add_file): Open the file in binary mode.
10453         * src/libs/libbib/linear.cc: #include nonposix.h.
10454         (file_buffer::load): Remove \r characters preceding \n from the
10455         loaded buffer.
10457         * src/libs/libbib/index.cc: #include nonposix.h.
10458         (make_index_search_item): Open index_filename in O_BINARY mode.
10459         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10460         characters before \n characters.
10461         (index_search_item::check_files): Open files in binary mode.
10462         (index_search_item::munge_filename): Support DOS-style file names
10463         with backslashes and drive letters, use IS_ABSOLUTE.
10465         * src/devices/grops/ps.cc: #include nonposix.h.
10466         (main) [SET_BINARY]: Switch stdout to binary mode.
10468         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10469         (main) [SET_BINARY]: Switch stdout to binary mode.
10471         * src/devices/grolbp/lbp.cc: #include nonposix.h
10472         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10474         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10475         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10476         nonposix.h).
10477         (main) [SET_BINARY]: Switch stdout to binary mode.
10478         [_MSC_VER]: Remove an explicit call to _setmode.
10480         * src/include/nonposix.h: New file.
10482         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10483         operation when building with DJGPP.
10484         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10485         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10486         ENVSETUP.
10488         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10489         MS-DOS.
10490         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10491         etc. can include a semi-colon on DOS/Windows.
10492         (depend.temp): Use depend1.temp instead of depend.temp1, to
10493         prevent files from overerwiting each other on 8+3 filesystems.
10495         * gendef.sh (t): Change definition to work with DOS/Windows.
10497         doc/groff.texinfo: Apart of some typo corrections, I also changed
10498         some index entris, to make them more non-ambiguous, and also put
10499         @ignore around some parts that are not yet written, to allow the
10500         Info output be readable.
10502 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10504         Replaced specific checks for function declarations with a generic
10505         routine taken from GNU bfd.
10507         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10508         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10509         * configure.in: Use it.
10510         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10511         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10512         src/roff/groff/groff.cc: Use it.
10513         * Makefile.in, configure: Updated.
10515 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10517         * src/devides/grolbp/lbp.h: Removed unused variables.
10519 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10521         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10522         strncasecmp().
10524 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10526         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10527         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10528         * configure.in: Use it.
10529         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10530         * configure, Makefile.in: Updated.
10532         * configure.in: Add test for strncasecmp().
10533         * src/include/lib.h: Use it.
10535 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10537         * src/preproc/grn/Makefile.sub: Add MLIB.
10539 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10541         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10543 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10545         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10547         * PROBLEMS: Small update.
10549         * src/devices/grolbp/lbp.cc: Various small fixes.
10551 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10553         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10555         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10557 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10559         * man/roff.man: Removed unused macro.
10561 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10563         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10564         This is needed e.g. if you do
10565         `make distclean; ./configure; make dist'.
10567 Version 1.16 released
10568 =====================
10570 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10572         Adding font CWI (constant width italic) to devdvi.
10574         * font/devdvi/CWI: New file.
10575         * font/devdvi/generate/Makefile: Add generating rule.
10576         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10577         tmac/tmac.dvi: Use it.
10578         * NEWS: Announce it.
10580         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10581         * font/devlj4/generate/Makefile: Cosmetic changes only.
10583         * man/groff.man: Removed most of the redundant description of
10584         special characters (which is in groff_char.man).  Added font
10585         translation CB->CR for devdvi.  Other minor fixes.
10587         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10588         (registered) symbols.
10590 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10592         * doc/Makefile: Added rule for creating info files.
10594         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10595         AMS font metrics.
10596         * font/devdvi/generate/Makefile: Fixed dependencies.
10598         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10599         NewCentury Schoolbook!
10600         * font/devps/generate/afmname: Will now run with GNU awk.
10601         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10602         * font/devps/generate/Makefile: Cosmetic changes only.
10604 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10606         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10607         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10608         `.SS' now produces a heading with a smaller size than `.SH'. 
10609         Completely formatted.
10610         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10612         * man/groff.man: Improved table appearance.  Use of `eo' request
10613         to reduce number of doubled backslashes in macro definitions.
10614         Replacing `\e' with `\(rs'.  Other minor fixes.
10616         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10617         to have correct line number.
10619         * INSTALL: Small improvement.
10621 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10623         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10624         WL).
10626 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10628         * man/groff.man: Complete update (with a lot of corrections by WL).
10630 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10632         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10634         * font/*/*: Implement it.
10635         * man/groff_char.man, NEWS: Document it.
10637         * src/include/unix.h: Removed.  It isn't used.
10639         * doc/groff.texinfo: Slight improvements.
10641 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10643         * README, win32-diffs: Small fixes and improvements.
10645 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10647         * FDL: New file (the Free Documentation License version 1.1).
10649         * doc/groff.texinfo: Added many start-up values for gtroff.
10650         Some structural improvements of the source code.
10652 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10654         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10655         * src/roff/troff/troff.man: Added info about troffrc-end.
10657 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10659         * Makefile.in (EXTRADIRS): Fix typos.
10660         (dist): Handle deletion of old .tar.gz file correctly.
10661         (DISTDIRS): Include all tty output devices.
10663         * doc/groff.texinfo: Adding more cross references; countless other
10664         fixes.
10666 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10668         * MORE.STUFF: Added Robert Marks's utilities.
10670 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10672         Added win32 port contributed by Blake McBride
10673         <blake@florida-software.com>.
10675         * README.WIN32, win32-diffs: New files.
10676         * NEWS: Updated.
10678         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10679         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10680         (change): Removed unused variables.
10682         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10683         (savebounds): Changed return value from `int' to `void'.
10684         * src/preproc/grn/hdb.cc: Ditto.
10686         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10687         final backslash in comment to avoid compiler warning.
10689         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10691         * doc/groff.texinfo: More fixes.
10693 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10695         * tmac/tmac.doc: Documentation fix.
10697 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10699         * doc/groff.texinfo: Reading the source code shows up a lot of
10700         omissions and incorrect data...  More conversion to @Deffn macros.
10702 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10704         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10705         dependency.
10707         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10709 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10711         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10712         improvements.
10714         * doc/groff.texinfo: Extended history section.  More conversion to
10715         @Deffn macros.  More .tr documentation.
10717 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10719         * doc/groff.texinfo: Completed tab section.  Added info about
10720         fields.
10722 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10724         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10726 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10728         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10729         LaTeX 2e).
10730         * NEWS: Document it.
10732         * man/troff.man: Minor optical improvements.
10734 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10736         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10738         * font/*/*: Implement it.
10739         * man/groff_char.man, NEWS: Document it.
10741 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10743         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10744         expansion.
10745         * NEWS: Document the three new man pages.
10747         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10748         * configure: Updated.
10750         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10752 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10754         Added grap support to grog.
10756         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10757         * src/roff/grog/grog.man: Document it.
10759         * doc/groff.texinfo, NEWS: Add info about grap support.
10761         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10762         (with slight fixes by me).
10764         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10765         * tmac/Makefile.sub: Add groff_tmac.man.
10766         * man/roff.man: New file giving overview of roff system.
10767         * man/troff.man: A short reference of troff.
10768         * man/Makefile.sub: Add roff.man and troff.man.
10770 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10772         Added grap support to groff.
10774         * src/roff/groff/groff.cc: Implement it.
10775         * src/roff/groff/groff.man: Document it.
10777         * src/devices/grotty/grotty.man: Add cp1047 device.
10778         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10779         Ditto.
10780         * src/roff/groff/groff.man: Ditto.
10781         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10782         * doc/groff.texinfo: Ditto.
10784         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10785         for cp1047.
10787 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10789         * man/groff_char.man: Add `pc' glyph.
10790         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10791         * tmac/tmac.tty: Add `pc' glyph.
10792         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10793         we use cp1047 output device.
10795         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10796         there are still hardcoded latin1->unicode values in utf8's font
10797         definition files.
10798         * configure: Updated.
10799         * NEWS: Minor clarification.  Updated.
10801         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10802         Unix.
10804 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10806         Adding EBCDIC code page 1047.
10808         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10809         font/devcp1047/DESC.proto: New files.
10811         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10812         either ascii/latin1 or cp1047.
10813         * Makefile.in: Use it.
10814         * configure: Updated.
10816         Replacing and/or adding `md' (mathdot) glyph with `pc'
10817         (periodcentered) in all text fonts.
10819         * font/*/*: Change it.
10821 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10823         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10825         * configure.in: Add check for strings.h.
10826         * src/include/driver.h: Use HAVE_STRINGS_H.
10827         * src/devices/grolbp/lpb.cc: Remove string.h.
10829         * src/include/groff-getopt.h: New file.  It will be used instead of
10830         getopt.h (to be included in lib.h) to avoid endless problems with
10831         picky C++ compilers.
10832         * src/include/lib.h: Use groff-getopt.h.
10833         * src/include/Makefile.sub: Updated.
10835         * configure: Updated.
10836         * Makefile.in: Updated.
10838         * NEWS: Mention EBCDIC support.
10840 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10842         * TODO: Some additions.
10844 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10846         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10847         of mso request.
10849 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10851         * src/roff/troff/troff.man: Minor fixes.
10853 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10855         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10856         `.T' string register and the incompatible definition of the `.T'
10857         number register (compared to Unix troff).
10859         * man/groff_char.man: Add some missing characters.
10860         * font/devutf8/NOTES: Update.
10862 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10864         * src/include/htmlindicate.h, src/include/lib.h,
10865         src/include/posix.h: Fix copyright.
10867         * src/include/Makefile.sub: Update.
10869 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10871         * src/roff/troff/input.cc (input_char_description): Removing
10872         superfluous space char.
10874         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10876         * doc/groff.texinfo: Document EBCDIC.
10878 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10880         Introducing `shc' as the glyph name for the soft hyphen character.
10882         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10883         font/devlatin1/R.proto: Use it.
10885         * NEWS: Updated.
10887 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10889         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10890         dependency on ASCII order.
10892 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10894         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10895         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10897         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10898         to increase portability.
10900 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10902         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10903         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10904         the generic `\n' if under OS/390 Unix.
10906         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10908         * configure: Regenerated.
10910 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10912         * doc/groff.texinfo: More conversions to @Deffn.
10914 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10916         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10917         with `:'.
10919         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10921 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10923         * doc/groff.texinfo: More conversions to @Deffn.
10925 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10927         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10928         Updated to latest version (glibc 2.1.3).
10930 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10932         * doc/Makefile (clean): Include more index files.
10933         Add rule texinfo->dvi.
10935 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10937         * doc/groff.texinfo: Added new index `op' for operators.  More
10938         info on end of sentence characters.  More use of @Deffn.
10940 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10942         * */*.man: Adding a note that a whitespace can be inserted between
10943         a command line option and its parameter -- we are using GNU getopt.
10945         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10947 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10949         Correct anachronism of calling the man macro file with `-man'
10950         instead of `-m man' etc.
10952         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10953         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10954         load tmac.<package>.
10956         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10958         * NEWS: Updated.
10960         * doc/groff.texinfo: Updated.
10962         * tmac/groff_man.man: Copyright added.
10964 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10966         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10967         typeset the request resp. escape name with a tt font -- due to a
10968         bug in texinfo.tex it is necessary to use the `-e' switch with
10969         texi2dvi.
10971         Improving info about usage of groff units.
10973         Other minor fixes.
10975 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10977         * doc/groff.texinfo: Added section about man macro package
10978         (I've basically taken groff_man.man).  Introducing new indices `ma'
10979         for macros/strings and `gl' for glyph names.  Other minor fixes.
10981         * tmac/groff_man.man: Fixed some typos.
10983 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10985         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10986         Other minor fixes.
10988         * doc/texinfo.tex: New file.
10990 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10992         * doc/groff.texinfo: Improved section on number registers.  Other
10993         minor updates.
10995 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10997         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10998         synopsis.
11000         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11001         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11002         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11003         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11005         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11007         * src/roff/grog/grog.man: Updated copyright date.
11009 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11011         * configure.in: Added test for strdup.
11013         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11014         is available.
11016         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11018         Other minor fixes.
11020 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11022         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11024 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11026         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11027         compilers silent.
11028         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11029         * src/include/lib.h: Remove some spaces.
11031 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11033         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11034         initializers from arguments (some compilers don't like this).
11036 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11038         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11039         used by pic and eqn to tell grohtml where the graphic regions start
11040         and end.
11041         * src/libs/libgroff/Makefile.sub: Use it.
11042         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11043         graphic_start() and graphic_end() from htmlindicate.cc.
11045 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11047         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11048         * tmac/groff_man.man: More fixes.
11050 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11052         * doc/Makefile: Added texput.log to the `clean' target.
11053         * doc/groff.texinfo: Added info about delimiters for escapes.
11055 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11057         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11058         other graphic formats.
11060 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11062         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11063         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11064         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11065         files.
11067 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11069         * doc/groff.texinfo: Spelling fixes.
11071 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11073         * tmac/groff_man.man: Completely revised to cover everything in
11074         tmac.an.
11076         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11077         Other minor fixings.
11078         * src/roff/troff/env.cc (environment_copy): Improve error message and
11079         fix itoa->i_to_a.
11080         * src/roff/troff/TODO: Updated.
11082         * doc/Makefile: Bug fixes -- this is still provisional, though...
11084         * tmac/eqnrc: Small fixes.
11086 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11088         Adding a request `evc' to copy environments.
11090         * src/roff/troff/env.cc (environment::copy, environment_copy):
11091         Implement it.
11092         * src/roff/troff/env.h: Add prototype.
11094 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11096         Adding strsep() -- Solaris 8 doesn't have it.
11098         * configure.in: Test it.
11099         * src/devices/grolbp/lbp.cc: Add code.
11101 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11103         * src/roff/troff/div.cc (macro_diversion::output,
11104         top_level_diversion::output): Fixing an incompatibility with
11105         original troff: \x'0' updates the .a register also.  Thanks to
11106         <Andries.Brouwer@cwi.nl> for pointing this out.
11107         * doc/groff.texinfo: Document it.
11109         * Makefile.in: Create Makefile.dep if necessary before calling the
11110         submake process to avoid warning about nonexistent file.
11112         * NEWS, PROJECTS: Updated.
11114 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11116         * tmac/troffrc: Add tmac.lbp.
11118 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11120         * tmac/tmac.lbp: New file.
11121         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11122         command.
11124 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11126         * Makefile.in: Fixing $(subdir).
11128         * README, NEWS: Small fixes.
11130         * test-groff: Adding path to grolbp.
11132         * configure.in: The (new) file src/xditview/Imakefile.in will be
11133         also configured -- it is now possible to build gxditview in a
11134         directory different from $srcdir.
11136 2000-03-02  Blake McBride  <blake@florida-software.com>
11138         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11140         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11142 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11144         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11145         files.
11147 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11149         Adding GNU getopt to the groff distribution.
11151         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11152         New files.
11153         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11154         * aclocal.a4: Remove GROFF_GETOPT function.
11155         * configure.in, Makefile.in, PROBLEMS: Update.
11156         * src/include/lib.h: Replace getopt tests with getopt.h.
11157         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11159         * doc/groff.texinfo: Further checking/updating.  Adding more index
11160         entries.
11162         * man/groff_out.man: Fix nroff mode activation (for emacs).
11163         * man/groff_font.man: Add missing ligature.
11165 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11167         * doc/groff.texinfo: Further checking/updating.  Adding more index
11168         entries.
11170         * src/devices/grolbp/grolbp.man: Added a comment line at the
11171         beginning of the file (similar to shell scripts) which indicates
11172         that `tbl' should be used as a preprocessor.
11174 2000-02-27  Blake McBride  <blake@florida-software.com>
11176         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11177         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11179         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11180         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11181         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11182         src/include/lib.h, src/libs/libgroff/errarg.cc,
11183         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11184         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11185         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11186         src/roff/troff/div.cc, src/roff/troff/env.cc,
11187         src/roff/troff/input.cc, src/roff/troff/node.cc,
11188         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11189         if_to_a() to avoid name clashes.
11190         * src/include/posix.h: Don't use unistd.h.
11191         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11192         clause for integrating non-Unix xtmpfile() code.
11193         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11194         structure; use "rt" for popen() in pipe_source(); add getpid()
11195         dummy function.
11196         * src/roff/troff/node.cc: Use special versions of popen() in
11197         real_output_file() and pclose() in ~real_output_file().
11199 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11201         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11202         LBP-8 series laser printers).  This code has been contributed by
11203         Francisco Andrés Verdú <pandres@dragonet.es>.
11205         * src/devices/grolbp/*: The grolbp output device.
11206         * font/devlpb/*: The font description files.
11207         * Makefile.in: Add grolpb and devlbp subdirectories.
11209         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11210         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11211         typographic fixes.
11213         * doc/groff.texinfo: Further checking/updating.  Adding more index
11214         entries.
11216         * NEWS: Updated.
11218         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11220         * man/groff_font.man: Adding info about obsolete DESC keywords.
11221         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11222         keywords.
11224 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11226         * src/preproc/grn/grn.man: Added info about the gremlin file format
11227         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11229 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11231         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11232         friends to be non-integer.
11234         * src/preproc/grn/grn.man: Document it.
11236         * doc/groff.texinfo: Further checking/updating.  Adding more index
11237         entries.
11239 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11241         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11242         line thicknesses to be integer multiples of this value.
11244         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11245         corresponding code doesn't work (yet).
11247         * doc/groff.texinfo: Further checking/updating.  Adding more index
11248         entries.
11250 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11252         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11253         specify line thickness instead of base units.  The new default
11254         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11255         thick lines respectively.
11257         Removed unused variable `prevval'.
11259         * src/preproc/grn/grn.man: Updated.
11261 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11263         * src/preproc/grn/main.cc: Slight formatting.
11265         * src/roff/groff/groff.man: Formatting fix.
11266         * src/preproc/grn/grn.man: Ditto.
11268         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11270         * doc/groff.texinfo: Further checking/updating.
11272 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11274         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11276         * test-groff: Added grn subdir to path.
11278         * doc/groff.texinfo: Some restructing and other small improvements.
11280         * src/roff/groff/groff.cc (help): Fixed info string.
11282 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11284         * doc/meref.me: Fix description of .GS request.
11286         * src/roff/troff/troff.man: Fixing typo.
11288         Adding the `grn' preprocessor for gremlin graphic files.
11290         * src/preproc/grn/*: This is the Berkeley distribution written by
11291         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11292         Senderowicz and Werner Lemberg.
11294         * doc/grnexampl.{me,g}: A sample for grn.
11296         * Makefile.in: Added subdirectory entry for grn.
11298         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11299         called with the switch `-g'.
11301         * src/roff/groff/groff.man: Updated.
11303         * src/roff/grog/grog.{man,pl,sh}: Updated.
11305         * NEWS: Updated.
11307 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11309         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11310         parametrically polymorphic.
11312         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11313         and the alterations to xtmpfile.
11314         xtmpfile can be requested to return the filename created
11315         and asked not to unlink the temp file.  The default behaviour
11316         if parameters are absent is exactly the same as before.
11318 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11320         A new request `length' is available which returns the length of a
11321         string in a number register:
11323         * src/roff/troff/input.cc (length_macro): Implement it.
11324         * src/roff/troff/input.cc (init_input_requests): Register it.
11326 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11328         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11329         of the `substring' request.
11331         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11332         request.
11334         * src/roff/troff/TODO, NEWS: Updated.
11336 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11338         * src/roff/groff/groff.man: Added an example.
11340 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11342         I've considerably modified the directory structure of the
11343         distribution to get a more vertical layout.  For example, the number
11344         of top level directories has been reduced from 42 to 6.
11346         As a consequence, many changes, especially to the makefiles, were
11347         necessary:
11349         * The makefile variables `top_builddir' and `top_srcdir' have been
11350         introduced.  Virtually all relative paths have been replaced with
11351         absolute ones using these two variables.
11353         * Dependencies (in the files `Makefile.dep') are no longer part of
11354         the distribution.  Instead, they are created during a `make install'
11355         in the build directory.
11357         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11358         make `top_srcdir' and `top_builddir' absolute.
11360         Some other changes:
11362         * Man pages now depend on the files `VERSION' and `REVISION'.
11364         * The added shell script `mkinstalldirs' will replace `mkdir' in
11365         almost all cases.
11367         * VERSION: Version number increased to 1.16.
11369 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11371         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11373         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11374         (after an update of the mm stuff).
11376         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11378 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11380         The .psbb request will now also accept Mac PS images (i.e. using LF
11381         as the EOL character).
11383         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11384         (with slight modifications).
11385         * troff/input.cc (do_ps_file): Use it.
11387         * test-groff: Add grohtml and grolj4 output devices to PATH.
11389 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11391         * NEWS, MORE.STUFF: Updated.
11393 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11395         Add the `srand' command to pic.
11397         * pic/lex.cc, pic/pic.y: Implement it.
11398         * pic/pic.man: Document it.
11399         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11401 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11403         Add a new request `.psbb'.  This does exactly what the external
11404         program psbb did.  It scans a PostScript image file for a
11405         %%BoundingBox comment and extracts the bounding box values (in
11406         PostScript units) which are then stored in the four new (read-only)
11407         number registers `llx', `lly', `urx', and `ury'.
11409         This will allow the usage of the .PSPIC macro without worrying
11410         about unsafe behaviour of groff, i.e., it will work without the
11411         `-U' switch of groff.
11413         * troff/input.cc: Implement it.
11414         * tmac/tmac.pspic: Use it.
11415         * troff/troff.man, grops/grops.man, NEWS: Document it.
11416         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11418         This is bloody C code simply adapted from psbb.c!  Any improvements
11419         welcome.
11421 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11423         * man/groff_font.man: Minor clarifications.
11425         * NEWS: Updated.
11427 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11429         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11431 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11433         * man/groff_font.man: Brought up to date regarding tcommand
11434         extensions.
11435         * libgroff/font.cc: Handle everything after `--' as a comment
11436         in the font files.
11437         * devps/*: Added comment delimiter inside devps font files.
11439 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11441         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11442         \fC...\fP (which now works as expected).
11444         * troff/troff.man: Fix typo.
11446 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11448         Completed the pass_filenames implementation in troff.
11450         * libdriver/input.cc: Will read the new `F' tcommand.
11451         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11452         * troff/input.cc: Use it.
11454 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11456         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11457         font will now be updated even if an invalid font is selected.
11459 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11461         * doc/homepage.ms: Updated for new tmac.arkup.
11463         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11465         * tmac/tmac.arkup: Cleanup.
11467         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11469         Removed obsolete .LINK macro completely.
11471         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11472         will be immediately appended to the second argument (to be used with
11473         punctuation, for example).
11475         Disabled .CDFTP macro temporarily for security reasons.
11477         * tmac/groff_markup.man: Complete revision for latest changes in
11478         tmac.arkup -- note that it does not yet format correctly with
11479         grohtml :-(
11481 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11483         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11484         * devutf8/R.proto: Add mappings for wp, lh, rh.
11485         * devutf8/NOTES: Updated.
11487 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11489         * doc/groff.texinfo: Updated version/copyright info.
11491 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11493         Added support for two new directives in device descriptions:
11494         `pass_filenames' (to pass the input file name to the output device)
11495         and `use_charnames_in_special' (to support e.g. accented characters
11496         in the `X' request).
11498         * include/font.h, troff/charinfo.h: Declare it.
11500         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11502         * devhtml/DESC: Use it.
11504         * troff/input.cc: New function encoded_char.
11506         * troff/token.h: Add test for `specialness'.
11508 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11510         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11511         mistake from the list of files to be installed.
11513 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11515         * README: Added info how to apply patches.
11517 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11519         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11521 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11523         * troff/input.cc: Add support for troffrc-end.
11525         * tbl/main.cc: Altered to issue table-start and table-end special
11526         characters if using the html device.
11528         * devhtml/*: Modified font files to incorporate html encoding of
11529         characters.
11531         * tmac/groff_markup.man: New file documenting tmac.arkup.
11533         * tmac/troffrc-end: New file.  This is invoked after all user
11534         specified macros.  Currently used by the html device to include
11535         tmac.html.  Thus no need for users to specify -mhtml anymore.
11537         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11538         (MAN7): Add groff_markup.man.
11540         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11542         * tmac/troffrc: tmac.arkup will now be called for the html device.
11544         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11545         extra device specific information about fonts.
11547         * doc/homepage.ms: New file.  It is an example how an HTML home page
11548         could look like with grohtml.
11550         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11552 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11554         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11555         of Im, Re.
11557         * devutf8/NOTES: Updated.
11559 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11561         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11562         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11563         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11564         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11565         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11566         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11567         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11568         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11569         warnings.
11571         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11573 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11575         grolj4: Paper size will be searched case-insensitively.
11577         * include/lib.h: Add check for strcasecmp().
11578         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11579         * configure.in: Check for strcasecmp().
11581 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11583         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11584         `REVISION'.
11586 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11588         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11589         revision scheme.
11591         Add a new read-only register, `.Y', which contains the groff
11592         revision.
11594         * troff/input.cc (init_input_requests): Define it.
11595         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11596         * doc/groff.texinfo, troff/troff.man: Document it.
11598         * libgroff/Makefile.sub (version.cc): Add definition of
11599         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11600         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11601         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11602         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11603         troff/input.cc, pfbtops/pfbtops.c: Use it.
11605 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11607         Add a revision scheme to the groff package.
11609         * REVISION: New file.
11610         * libgroff/Makefile.sub (version.cc): Use it to define
11611         `revision_string[]'.
11612         * grops/psrm.cc: Use revision_string (converted to an unsigned
11613         integer) in constructor of resource_manager.
11615 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11617         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11618         files.
11619         * Makefile.in (DEVDIRS): Add devutf8.
11620         * grotty/tty.cc: Include device.h.
11621         (glyph): Change type of `code' to `unsigned int'.
11622         (tty_printer): New field is_utf8.  Constructor takes device argument.
11623         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11624         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11625         (tty_printer::put_char): New function.
11626         (tty_printer::end_page): Use put_char() instead of ::putchar().
11627         (make_printer): Pass device to tty_printer constructor.
11628         * nroff.sh: Determine default device by calling 'locale'.  As a
11629         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11630         Recognize UTF-8 locales.
11631         * tmac/eqnrc: Recognize utf8 like latin1.
11632         * tmac/troffrc: Device utf8 needs tmac.tty.
11634 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11636         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11638 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11640         Add a new predefined writeable number register, `year',
11641         which contains the current year.
11643         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11644         * tmac/tmac.s: Use it.
11645         * troff/input.cc (init_registers): Initialize it.
11647 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11649         * PROBLEMS: Fixed typo.
11651 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11653         * PROBLEMS: Add Y2k advice for the yr number register.
11655 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11657         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11659 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11661         * tmac/tmac.arkup: Slight modification of macros to provide better
11662         appearance for non-HTML formats.
11664 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11666         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11667         does not automatically translate to malloc(n) on all OSes
11668         (e.g., SunOS) so do it explicitly.  Also, check the returned
11669         value.
11671 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11673         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11675         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11676         expects this variable
11678 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11680         * doc/Makefile: Added instructions to create HTML and text
11681         versions of some files.
11683 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11685         * Updated INSTALL.gen.
11687         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11688         better resp. correctly with non-HTML devices.
11690 Version 1.15 released
11691 =====================
11693 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11695         * NEWS, VERSION: Changed to 1.15
11697 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11699         * nroff/nroff.man: -S is safer, not safe.
11701         * groff/groff.cc (main): Use `safer', not `safe', in variable
11702         names.  This does not change the behavior.
11704         * troff/input.cc (main): Likewise.
11706         * nroff/nroff.sh: Likewise.
11708         * troff/input.cc (prepend_string): New function.
11709         (main): Prepend -msafer, so that we check macro libraries for
11710         safety.
11712         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11714 Version 1.14 released
11715 =====================
11717 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11719         * NEWS, VERSION: Changed to 1.14.
11721 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11723         * refer/refer.cc: Fixing the last fix.
11725 Version 1.13 released
11726 =====================
11728 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11730         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11731         number disappear.
11733         * NEWS: Updated.
11735         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11737         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11738         document conventions, the version number must be a real.
11740 Version 1.12.1 released
11741 =======================
11743 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11745         * VERSION: Changed to 1.12.1.
11747 1999-12-22  Alan Rooks  <arooks@istar.ca>
11749         * refer/refer.cc (do_file): Slight modification to satisfy the
11750         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11751         UnixWare 7.1.
11753 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11755         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11756         notices.
11758         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11759         list of unsafe requests.
11761         * pic/pic.man: Fixed a typo.
11763         * man/groff_out.man: Fixed a typo.
11765 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11767         * Makefile.in: Doc fixes.
11769 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11771         * groff/groff.cc: Missing `U' option added to getopt().
11773         * troff/troff.man: Missing `U' option added to synopsis.
11775 Version 1.12 released
11776 =====================
11778 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11780         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11781         to the synopsis.
11783         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11784         with the more appropriate terms `safer' and `unsafe'.
11786         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11787         sys_nerr and sys_errlist[].
11789         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11791         * pic/pic.y, pic/pic.cc: Added check for fmod().
11793 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11795         * VERSION: Changed to 1.12.
11797         Here some patches from various sources; most of them taken from
11798         the Debian distribution.
11800         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11801         tmac/Makefile.sub: New files copied directly from the NetBSD
11802         distribution.  Probably, some additional adaptation later on is
11803         necessary...
11805         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11806         of unsafe requests.
11808         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11809         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11810         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11811         (`-S') is now the default.
11813         * README, NEWS: Updated.
11815 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11817         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11819         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11821 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11823         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11824         grief than relief today.  Additionally, it is against the GNU
11825         coding standards.
11827         * configure: Recreated.
11829 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11831         * configure.in: Added GROFF_LIBM.
11833         * configure: Recreated.
11835         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11836         necessary.
11838         * Makefile.in: Added definition of $(LIBM).
11840         * Makefile.comm (LIBM): Removed.
11842         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11844 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11846         * doc/Makefile: Added rule for generation pic.html.
11848         (clean): Files produced by grohtml will be removed also.
11850         * doc/pic.ms: Small fix.
11852         * tmac/tmac.html: Fixed suppression of headers.
11854 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11856         * tmac/tmac.html: Fixing horizontal arrows.
11858         Turning off hyphenation.
11860         * tmac/tmac.an: Improved support for grohtml; better indentation,
11861         no footers/headers.
11863 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11865         * tmac/tmac.arkup: Added CDFTP macro
11867         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11868         macros.
11870         * tmac/troffrc: Some additions for HTML stuff.
11872 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11874         * tmac/tmac.html: Small changes.
11876 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11878         * doc/groff.texinfo: Minor fixes.
11880 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11882         * devhtml/TR: Changed spacewidth to 3.
11884         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11886         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11888         * tmac/tmac.arkup: New file.
11890         * grohtml/ChangeLog: New file.
11892 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11894         * doc/groff.texinfo (Common Features): Added Copying chapter.
11895         Changed format to @smallbook.
11897 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11899         * NEWS: Added info about groff.texinfo.
11901         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11902         warning messages.
11904 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11906         * groff/groff.man: More updates.
11908 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11910         * doc/groff.texinfo: New file.  This manual is still very
11911         rudimentary.  It has been originally contributed by Trent
11912         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11913         additions by me.
11915         * INSTALL: Added information about the `doc' subdir
11917         * troff/troff.man: Minor fixes.
11919         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11920         reordered options.
11922         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11924         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11925         also, otherwise it is included itself in another call of `make
11926         dist'.
11928         * groff/groff.cc (synopsis): Removed superfluous space.
11930         * PROJECTS, PROBLEMS, NEWS: Updated.
11932         * VERSION: Updated to 1.12beta.
11934         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11936         * README: Updated: Included documentation about CVS repository,
11937         mailing lists, and daily snapshots.
11939         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11941 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11943         * tmac/tmac.an: If the tag didn't fit into the space that the
11944         macro `TP' specifies, the rest of the tag went into the space for
11945         the next line.
11947 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11949         * grolj4/lj4.cc: Added duplex printing (option `-d').
11951         * grolj4/grolj4.man: Document duplex printing.
11953 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11955         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11956         non-GNUish sed programs.
11958         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11959         definition.
11961         * configure.in (LIBS): Added `-lc'
11963         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11965         * pic/tex.cc (solid_arc): Casting M_PI to double.
11967         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11969         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11970         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11971         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11973         * groff/groff_man.man: New file.  This manual page was originally
11974         written for the Debian GNU/Linux system by Susan G. Kleinmann
11975         <sgk@debian.org>.
11977         * eqn/list.cc (list_box::compute_metrics,
11978         list_box::compute_sublist_width): Removed variable declaration to
11979         avoid shadowing warnings.
11981         * grops/psrm.cc (resource_manager::process_file): Ditto.
11983         * tfmtodit/tfmtodit.cc (main): Ditto.
11985         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11986         to avoid shadowing warnings.
11988         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11989         shadowing loop variable.
11991         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11993 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11995         New grohtml frontend to convert groff input to html.
11997         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11999         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12001         * tmac/eqnrc: Added html device.
12003         * tmac/tmac.html: New file.
12005         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12006         (troff_output::start_picture, troff_output::finish_picture),
12007         tbl/main.cc (process_input_file):
12008         Surrounded output with `graphics_start' and `graphics_end' so that
12009         the html driver can identify non-text portions.
12011         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12012         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12013         grotty/tty.ps (tty_printer::set_char): Additional parameter
12014         `name'.
12016         * include/printer.h: Class printer: New function
12017         set_char_and_width; new variables (is_char_named, is_named_set,
12018         named_command, named_char_s, named_char_n) to hold information
12019         about named characters -- needed by the html driver.
12021         * libdriver/printer.cc (printer::set_ascii_char,
12022         printer::set_special_char): Use set_char_and_width.
12024         * devhtml/*: New device files for html driver.
12026         * grohtml/*: New driver grohtml.
12028 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12030         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12031         default strings.
12033 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12035         * libgroff/string.cc (search): Small fix to test against NULL
12036         pointer.
12038 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12040         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12041         \b'abc') were stacked in reverse order when processed in a
12042         diversion.
12044         * troff/node.h: Added `*last' to struct `node' to make the above
12045         fix work.
12047         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12048         The default scale for the 'f' and 't' graphics functions were 'm'
12049         rather than 'u' (i.e., no scaling).
12051 1999-09-11  Peter Miller  <peterm@jna.com.au>
12053         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12054         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12055         defining include paths.
12057         * soelim/soelim.cc (include_path_append): New function.
12059 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12061         * tbl/main.cc (process_options): Unix (at least Documenter's
12062         Workbench) tbl allows arbitrary non-alpha characters between
12063         options.
12065 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12067         Y2k fixes.  Don't assume that the current year precedes 2000.
12069         * doc/meref.me: Add \n(y2, \n(y4.
12071         * tmac/doc-common (Yr): New number register.
12072         (Dd): Don't assume current year precedes 2000.
12074         * tmac/tmac.e (td): Likewise.
12075         (y2, y4): New number registers.
12077         * pic/pic.man: Update reference for pic paper to May, 1991
12078         version.
12080 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12082         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12083         Removed quotation marks which prevented correct expansion of
12084         $(tmac_wrap).
12086         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12088 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12090         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12091         `config.cache'.
12093         * Removed configure.old.
12095 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12097         * VERSION: Updated to 1.11.1
12099 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12101         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12103         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12104         added quotations around $(tmac_wrap) to avoid syntax error if
12105         variable is empty.
12107         * configure: Newly generated using autoconf 2.13.
12109         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12111 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12113         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12114         doc/Makefile. doc/pic.ms, groff/groff.man:
12115         Prepare for 1.11 release.  No code changes.
12116         Documentation for pic added (doc/pic.ms).
12118 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12120         * Version 1.10 released.
12122 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12124         * afmtodit/afmtodit.pl: Avoid comment on first line.
12126 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12128         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12129         * configure.in: Call it.
12131         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12132         (distfiles): Doesn't depend on config.log or config.cache.
12134 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12136         * grog/grog.sh: Use print "" rather than print in END rule.
12138 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12140         * tbl/main.cc (process_data): Don't give error for excess data
12141         entries that are comments.
12143 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12145         * tbl/main.cc (process_data): Fix case where new for-scope rules
12146         silently change meaning of code.
12148 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12150         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12151         of non-zero hyphenation codes.
12153 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12155         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12157 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12159         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12161 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12163         * tmac/tmac.andoc: Make it work in compatibility mode.
12165         * refer/token.h (token_info::is_range_sep): New function.
12166         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12167         * refer/ref.cc (reference::output): More sophisticated check for
12168         multiple pages.
12170         * devps/prologue.ps (MANUAL): New procedure.
12171         * grops/ps.cc (main): New -m option.
12172         (usage): Include -m.
12173         (ps_printer::~ps_printer): Implement -m.
12175         * aclocal.m4 (GROFF_G): New macro.
12176         * configure.in: Call it.
12177         * Makefile.in (g): Provided by configure.
12179         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12181         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12182         translations.
12184         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12185         (tmac_m, tmac_s): Deleted.
12186         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12187         tmac_s_prefix): New variables.
12188         (MDEFINES): Change accordingly.
12189         * Makefile.comm (.man.n): Use new TMAC_* variables.
12190         * configure.in (GROFF_TMAC): Call.
12191         * aclocal.m4 (GROFF_TMAC): Define.
12192         * tmac/Makefile.sub (stamp_wrap): New target.
12193         (install_data, uninstall_sub): Handle macro wrapping.
12195 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12197         * tbl/main.cc (main): Ignore -T option.
12199 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12201         * devlj4/generate/special.map: Add definition of \(nb.
12203         * tmac/tmac.dvi: Add definition of \(nb.
12205         * troff/dictionary.c (dictionary::dictionary): association::v gets
12206         initialized by association::association.
12208         * tmac/Makefile.sub: Avoid using temporary files when installing.
12210         * troff/env.cc (environment::set_font): Make bad font number a
12211         warning.
12213         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12215         * Makefile.in (datadir): Use share rather than lib.
12217         * groff/groff.cc (basename): Rename to xbasename.
12219 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12221         * Makefile (CCLIBS): Don't use.
12222         * Makefile.ccpg: Likewise.
12224         * acgroff.m4: Rename to...
12225         * aclocal.m4: Modify extensively for autoconf 2.
12226         * configure.in: Likewise.
12227         * Makefile.in: Likewise.
12229         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12230         defined.
12231         (xstrsignal): Check for definition of NSIG. Conditionalize
12232         on SYS_SIGLIST_DECLARED.  Make return type const.
12234 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12236         * troff/input.cc (interpolate_macro): Rephrase missing space
12237         warning.
12239 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12241         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12242         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12243         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12244         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12245         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12246         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12247         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12248         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12249         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12250         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12251         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12252         Fix 'for' scoping.
12254 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12256         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12257         string_iterator.
12258         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12259         file.
12260         (macro_iterator::macro_iterator): Add additional argument.
12262 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12264         * troff/div.cc (vertical_size::vertical_size): In place of integer
12265         specifying line spacing use cunits specifying post vertical
12266         space.
12267         (macro_diversion::output, top_level_diversion::output): Likewise.
12268         * troff/div.h: Change declarations accordingly.
12269         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12270         field.
12271         (pending_output_line::pending_output_line,
12272         pending_output_line::output, environment::output,
12273         environment::output_line, environment::output_title,
12274         environment::hyphenate_line):  In place of
12275         integer specifying line spacing use cunits specifying post vertical
12276         space.
12277         (environment::environment): Add post_vertical_spacing and
12278         prev_post_vertical_spacing arguments.
12279         (environment::get_post_vertical_spacing): New function.
12280         (environment::total_post_vertical_spacing): New function.
12281         (environment::post_vertical_spacing): New function.
12282         (init_env_requests): Initialize pvs request and .pvs register.
12283         * troff/env.h: Change declarations.
12285 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12287         * tmac/tmac.pspic: Immediately remove the temporary file.
12289 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12291         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12292         height is specified.
12294 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12296         * tbl/table.c (struct vertical rule, class table_entry): Use int
12297         not short for start_row and end_row.
12299 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12301         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12302         functions.
12303         (diverted_space_node::reread, process_input_stack): Call
12304         trapping_blank_line() rather than blank_line().
12305         (init_input_requests): Bind "blm" to blank_line_macro().
12307         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12309 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12311         * troff/env.cc (environment::possibly_break_line): Require that
12312         width total excluding width of final space node be greater than
12313         the target text length.
12315 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12317         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12319 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12321         * troff/node.cc (charinfo_node): New class.
12322         (glyph_node, composite_node): Derive from charinfo_node.  Change
12323         member functions accordingly.
12325 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12327         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12329 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12331         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12333         * devps/generate/textmap (notsubset): Add.
12335         * tmac/tmac.a4: New file.
12337 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12339         * pic/main.cc (had_parse_error): New variable.
12340         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12341         returns non-zero.
12342         (main): Return 1 if had_parse_error is true.
12344 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12346         * grolj4/lj4.cc (main): Avoid use of strtoul.
12348 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12350         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12351         iso_8859_1 or $LESSCHARSET is latin1.
12353 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12355         * hpftodit: New directory.
12356         * Makefile.in (CCPROGDIRS): Add hpftodit.
12357         * devlj4/generate: New directory.
12359 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12361         * configure.in: Don't use AC_VFORK.
12362         * groff/pipeline.c (run_pipeline): Use fork() always.
12364 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12366         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12368         * Makefile.in (CCPROGDIRS): Add grolj4.
12369         (DEVDIRS): Add devlj4.
12370         * grolj4, devlj4: New directories.
12371         * tmac/troffrc: Handle lj4.
12372         * tmac/tmac.lj4: New file.
12374 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12376         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12378 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12380         * troff/input.cc (do_if_request): At end of second string, switch
12381         environments before getting next token.
12383 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12385         * devps/psstrip.sed: Split rule that strips whitespace on either
12386         side of delimiters.
12388 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12390         * troff/node.h (font_family::make_definition): Add return value to
12391         declaration.  * troff/symbol.h (symbol::operator==,
12392         symbol::operator!=): Likewise.
12394 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12396         * groff/groff.cc (main, help, synopsis): Handle -S.
12397         (possible_command::insert_arg): New function.
12399         * tmac/tmac.safer: New file.
12400         * tmac/msafer.man: New file.
12401         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12403 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12405         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12406         * pic/pic.y (placeless_element): Avoid unsafe operations if
12407         `safer_flag' is set.
12408         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12410 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12412         * eqn/lex.cc (get_token): Put call to add_context() in block to
12413         work around Sun C++ 4.0 bug.
12415         * include/stringclass.h (operator +): Use ?: instead of `if' to
12416         work around Sun C++ 4.0 bug.
12418 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12420         * tbl/main.cc (process_format): Accept - as a synonym for the _
12421         key letter.
12423         * libbib/index.cc (minus_one): Don't declare as const.
12425 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12427         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12429 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12431         * troff/input.cc (write_macro_request): New function.
12432         (init_input_requests): Bind write_macro_request to writem.
12434 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12436         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12437         equation.
12439         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12441         * tmac/tmac.s (@TS): Renamed from TS.
12442         (TS): Call LP then TS again.
12443         (cov*ab-init): Alias @TS to TS.
12445         * tmac/tmac.s: Allow QP or RS to initialize.
12447         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12448         Move initializations of PS and LL here.
12449         (par@init): Don't initialize HY.  Avoid changing environment 0.
12450         (par*env-init): Don't all par@reset.
12452 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12454         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12456 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12458         * Makefile.in (MDEFINES): Add LDFLAGS.
12459         (LDFLAGS): Add definition line.
12461 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12463         * troff/input.cc (get_optional_char): Split off error check into...
12464         (check_missing_character): New function.
12465         * troff/token.h: Declare it.
12466         * troff/env.cc (margin_character): Don't call get_optional_char.
12467         Only call tok.next() after making the node.
12469         * include/lib.h (getopt): Make 2nd argument char *const *.
12471 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12473         * nroff/conftest.sh: Deleted.
12475 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12477         * pic/make-dos-dist: Deleted.
12479 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12481         * devps/psstrip.sed: Strip comments before stripping trailing
12482         white space.
12484 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12486         * Version 1.09 released.
12488 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12490         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12492 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12494         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12496 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12498         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12499         about returning without a value.
12501         * troff/charinfo.h (charinfo::get_special_translation): Cast
12502         TRANSLATE_NONE to int.
12504         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12505         test.  Fix test so that it works with n unsigned.
12507         * pic/pic.y (defaults_table): Fully bracket initializer.
12508         * pic/lex.cc (lookup_keyword): Likewise.
12509         * eqn/lex.cc (token_table, def_table): Likewise.
12510         * eqn/box.cc (param_table): Likewise.
12511         * troff/input.cc (warning_table): Likewise.
12512         * libgroff/font.cc (table): Likewise.
12513         * grops/ps.cc (ps_printer::special): Likewise.
12514         * grops/psrm.cc (resource_manager::process_file): Likewise.
12515         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12516         * refer/command.cc (command_table): Likewise.
12517         * addftinfo/addftinfo.cc (param_table): Likewise.
12519         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12520         about temp's being unused.
12521         (unused): New function.
12523         * groff/pipeline.cc: Declare c_fatal.
12525         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12526         uchar.
12528         * libbib/index.cc (index_search_item::load): Prevent compiler
12529         warnings about fd_closer's being unused.
12530         (unused): New function.
12532 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12534         * troff/input.cc (copy_mode_error): Make `prefix' static.
12535         Fix typo.
12537         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12538         defined.
12539         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12540         HAVE_CC_OSFCN_H and modify accordingly.
12542         * troff/input.cc (init_charset_table): radicalex overlaps
12543         horizontally.
12545         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12546         udodo!hans@relay.NL.net).
12547         * groff/configure.in: Call it.
12549         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12550         * groff/configure.in: Call it.
12551         * include/lib.h: Conditionalize declaration of pclose.
12553         * troff/div.cc (last_page_number): New global variable.
12554         (top_level_diversion::begin_page): Exit if we just printed the
12555         last page.
12556         * troff/div.h (last_page_number): Declare it.
12557         * troff/input.cc (parse_output_page_list): Set last_page_number.
12559         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12560         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12561         tmac/tmac.X: Likewise.
12562         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12563         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12565 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12567         * tmac/doc-ditroff (hK): Remove groff specific code which
12568         prevented page-breaks between separate manual entries.  If this is
12569         the first page, don't set the page number to 1.
12571         * acgroff.m4 (GROFF_POSIX): New macro.
12572         * configure.in: Use it.
12574         * troff/node.cc (class real_output_file,
12575         real_output_file::real_output_file,
12576         real_output_file::~real_output_file): Conditionalize use of
12577         popen/pclose on POPEN_MISSING.
12578         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12579         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12580         (pipe_source): Similarily.
12582         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12584         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12585         presence of declarations by trying to compile example with
12586         conflicting declarations.  (gcc only gives a warning for missing
12587         declarations.)
12589 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12591         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12592         (from Ulrich Lauther).
12594 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12596         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12598 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12600         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12601         pointers and ints have different sizes.
12603 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12605         * tmac/tmac.s (par*env-init): Call par@reset.
12607 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12609         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12610         tag.
12611         (par*push-tag-env, par*pop-tag-env): New macros.
12613 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12615         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12616         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12618         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12619         comment.  Include <time.h>.
12621 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12623         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12624         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12625         lines.
12627 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12629         * troff/input.cc (read_request): Only print a prompt if reading
12630         from the terminal.  Also clearerr on EOF if reading from the
12631         terminal.  Declare isatty.
12633 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12635         * refer/label.y: Rename map_t to map_func and extractor_t to
12636         extractor_func.
12638 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12640         * include/assert.h: Don't use volatile.
12641         * libgroff/assert.cc: Likewise.
12643 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12645         * troff/input.cc (abort_request): Look at character in tok before
12646         calling get_copy().
12648 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12650         * troff/troff.h (NO_RETURN): Deleted.
12651         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12652         * troff/input.cc (exit_troff): Likewise
12654         * Makefile.in: Remove `Making ...' messages since GNU make now
12655         gives these. 
12657         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12659 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12661         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12662         to constant 1 inch.
12664 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12666         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12668 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12670         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12671         MARK_REG if there was no left delimiter.
12673 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12675         * pic/troff.cc (troff_output::text): Set line thickness to
12676         relative before outputting text.
12678         * tmac/tmac.e (@k): Don't zero ?T.
12679         ((z): Likewise.
12681 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12683         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12685 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12687         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12688         Paul Eggert).
12690 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12692         * troff/input.cc (ignoring): New variable.
12693         (ignore): Set ignoring during call to do_define_macro.
12694         (do_define_macro): Clear ignoring before interpolating terminating
12695         macro.
12696         (copy_mode_error): New function.
12697         (get_char_for_escape_name, read_long_escape_name,
12698         interpolate_arg): Use copy_mode_error.
12699         (warning_table): Add WARN_IG.
12700         * troff/troff.h (WARN_IG): Declare.
12701         (WARN_TOTAL): Change accordingly.
12703         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12704         * groff/groff.cc (strsignal): Delete declaration.
12706 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12708         * troff/div.cc (page_offset): Use 'm' as default scaling.
12710 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12712         * nroff/nroff.sh: Ignore -u.
12714 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12716         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12718 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12720         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12721         drawing box.
12722         (B2): With -Tascii, leave additional vertical space before
12723         and after. Ensure that the left and right indent is restored to
12724         what it was even if the point size changes.  Don't call
12725         par@finish. Change the indent, line length and title length
12726         directly.  With -Tascii, make the width of the box 1n less.
12727         (B1): Remember 1n at the current point size.  Don't call
12728         par@reset.  Change the indent, line length and title length
12729         directly.  Ensure that the temporary indent is preserved.
12730         (par*box-mark-top): Turn off no spacing mode.
12732 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12734         * Makefile.in (dist): Use .gz suffix.
12736 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12738         * troff/input.cc (main): Add return 0.
12739         * pic/main.cc (main): Use return instead of exit.
12740         * tbl/main.cc (main): Likewise.
12741         * eqn/main.cc (main): Likewise.
12742         * grops/ps.cc (main): Likewise.
12743         * grotty/tty.cc (main): Likewise.
12744         * groff/groff.cc (main): Likewise.
12745         * grodvi/dvi.cc (main): Likewise.
12746         * refer/refer.cc (main): Likewise.
12747         * indxbib/indxbib.cc (main): Likewise.
12748         * lkbib/lkbib.cc (main): Likewise.
12749         * soelim/soelim.cc (main): Likewise.
12750         * addftinfo/addftinfo.cc (main): Likewise.
12751         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12752         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12754         * troff/token.h (process_input_stack): Don't declare as static.
12755         * troff/input.cc: Likewise.
12757         * troff/node.c (invalidate_fontno): Make it a static member of
12758         class font_family.  Change callers.
12759         * troff/node.c: Change declaration.
12761         * tbl/main.cc (struct input_entry_format): Add explicit public
12762         specifier.
12763         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12764         struct double_hline_stuff): Likewise.
12765         * tbl/table.h (struct entry_format): Likewise.
12766         * pic/object.h (struct saved_state): Likewise.
12768         * include/stringclass.h: Add forward declarations of friend
12769         functions that are later declared as inline.  Don't include inline
12770         specifier in friend declaration.
12772         * libgroff/lib.h: Declare popen and pclose.
12773         * acgroff.m4 (GROFF_POPEN): New macro.
12774         * configure.in: Call it.
12776         * include/lib.h (PI): New constant. Undef first if necessary.
12777         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12778         * grops/ps.cc (degrees, radians): Likewise.
12779         * libgroff/font.cc (font::get_skew): Likewise.
12781         * grops/ps.cc (is_ascii): New function.
12782         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12783         isprint.
12784         (ps_printer::define_encoding): Use csspace.
12785         * libgroff/strtol.c (ISASCII): New macro.
12786         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12787         Use ISASCII rather than isascii.
12788         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12789         * libgroff/cset.cc: Likewise.
12790         * libdriver/input.cc: Include cset.h.
12791         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12792         than isdigit().
12794         * refer/refer.cc (main): Use %ld rather than %d for longs.
12796         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12797         S_ISREG macro.
12799         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12801 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12803         * troff/input.cc (hyphenation_code): Skip white space between
12804         char/code pairs.
12806 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12808         * tbl/table.h (table::entry_list_tailp): New member.
12809         (table::table): Initialize it.
12810         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12811         behaviour.
12813 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12815         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12816         with negative horizontal positions. Remove casts of glyph::hpos to
12817         int.
12818         (USHRT_MAX): Delete definition.
12819         (SHRT_MAX, SHRT_MIN): New definitions.
12820         (glyph::hpos): Change type to short.
12821         (tty_printer::end_page): Output multiple backspaces if necessary.
12822          Remove casts of glyph::hpos to int.
12823         
12824 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12826         * tmac/tmac.s (@RT): New definition.
12828 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12830         * refer/refer.cc (do_file): Make sure current_filename is set when
12831         filename is "-".
12833         * pic/common.cc (common_output::dot_line): Handle zero length
12834         lines.
12836 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12838         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12839         (par@init): Initialize \n[HY].
12841 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12843         * troff/dictionary.cc (dictionary::remove): Continue when
12844         r < j < i.
12846 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12848         * Makefile.com (.y.cc): Avoid ending up with two versions of
12849         $(YTABH).
12851 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12853         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12854         (\(,C): Likewise.  Also fix typo.
12856 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12858         * lib.h: Delete extraneous semi-colon.
12860         * Add pso request: `so' from a pipe.
12861         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12862         (file_iterator::close): New function.
12863         (file_iterator::~file_iterator, file_iterator::next_file): Use
12864         file_iterator::close.
12865         (file_iterator::backtrace): Say `process' rather than `file' when
12866         the stream is popened.
12867         (pipe_source): New function.
12868         (init_input_requests): Bind ".pso" to pipe_source.
12870 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12872         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12874         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12875         digits in lower case.
12877 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12879         * Version 1.08 released.
12881         * Makefile.in (dist): Insert || true after ln -s commands that
12882         might fail.
12884         * mm: Update to mm 1.16.
12886         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12887         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12888         SH_SCRIPT_SED_CMD.
12889         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12890         MDEFINES.
12891         * nroff/Makefile.sub (nroff): New target.
12892         (install_data): Install nroff.
12893         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12894         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12896 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12898         * eqn/Makefile.sub (neqn): Add chmod +x.
12900         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12902 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12904         * troff/input.cc (string_iterator::string_iterator()): Initialize
12905         lineno and count.
12907 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12909         * troff/div.cc (macro_diversion::space,
12910         top_level_diversion::space): Don't set high_water_mark.
12911         (macro_diversion::output, top_level_diversion::output): Don't
12912         include post line space in high water mark.
12914 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12916         * eqn/eqn.y: Don't define YYDEBUG.
12917         * pic/pic.y: Likewise.
12919 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12921         * tmac/tmac.e ([3): Add space after comma following editors.
12922         Change double spaces to single spaces.
12923         ([4): Change double spaces to single spaces.
12925         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12926         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12927         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12928         after %!PS-Adobe- (for Newsprint).
12930         * troff/div.cc (top_level_diversion::begin_page): When
12931         before_first_page is 1, set page_number to 1.
12933 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12935         * eqn/box.cc (box::top_level): Protect equation with \&.
12937 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12939         * groff/groff.cc (possible_command::set_name): Delete old name.
12941         * groff/groff.cc (possible_command::~possible_command): Use
12942         a_delete.
12944         * troff/node.cc (troff_output_file::begun_page): New member.
12945         (troff_output_file::troff_output_file): Initialize it.
12946         (troff_output_file::really_begin_page): Only output V command if a
12947         page has been begun.
12949         * pic/pic.y (placeless_element): Delete argument to PRINT after
12950         use.
12952 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12954         * Make wrapman work.
12955         * troff/div.h (class top_level_diversion): Replace
12956         first_page_begun by before_first_page (with opposite sense).
12957         * Change first_page_begun to before_first_page inverting sense.
12958         * troff/div.cc (class nl_reg): New class.
12959         (init_div_requests): Use class nl_reg for \n(nl.
12960         (top_level_diversion::begin_page): Don't call
12961         output_file::begin_page if before_first_page is 2;
12962         reset before_first_page afterwards.  If have_next_page_number is
12963         false, then always increment page_number.
12964         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12965         Restore compatibility mode after loading, and then disable
12966         compatibility mode in TH.
12968 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12970         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12971         past last line.
12972         * troff/node.h (output_file::trailer): Declare.
12973         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12974         * troff/node.cc (output_file::trailer): New function.
12975         (troff_output_file::~troff_output_file): Move most code into...
12976         (troff_output_file::trailer): New function.
12977         (class troff_output_file): Delete page_length member. Declare
12978         trailer().
12979         (troff_output_file::really_begin_page): Use current page length
12980         for final V command.
12982         * tbl/main.cc (struct options): New decimal_point_char member.
12983         (options::options): Initialize this.
12984         (process_options): Implement decimalpoint option.
12985         (process_data): Pass decimal_point_char option to table::table.
12986         * tbl/table.h (class table): New decimal_point_char member.
12987         (table::table): Add additional argument.
12988         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12989         second argument specifying decimal point character.  Use this
12990         instead of '.'.
12991         (table::table): Initialize decimal_point_char.
12992         (table::add_entry): Change call to find_dot.
12994         * troff/input.cc (get_copy, token::next): Implement \V.
12995         (interpolate_environment_variable): New function.
12997 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12999         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13000         * pic/pic.y: Likewise.
13002         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13003         Add casts to int.
13004         * refer/ref.cc (reference::insert_field, reference::delete_field):
13005         Likewise.
13006         * troff/number.cc (parse_term): Likewise.
13008         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13009         * configure.in: Use GROFF_PROG_YACC.
13011         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13012         and g++.
13013         * Makefile.in (OPTIMIZE): New define.
13014         (DEBUG): Empty by default.
13015         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13017         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13018         (GROFF_ARRAY_DELETE): Likewise.
13019         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13021         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13023         * devps/psstrip.sed: Use different delimiter on last line (so that
13024         it works with BSD 4.4 sed.)
13026 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13028         * devps/psstrip.sed: Delete comments.
13030         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13031         optind, opterr, optarg.
13032         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13033         opterr, optarg.
13035 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13037         * Makefile.in (check): Dummy target.
13039 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13041         * Version 1.07 released.
13043         * Integrate mm 1.11.
13045         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13046         where start_col was meant.
13048 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13050         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13052 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13054         * troff/input.cc (token::next): Make \z\o'...' and similar things
13055         work.
13057         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13058         constants.
13059         (environment): Add margin_character_flags member.
13060         * env.cc (environment::environment(symbol),
13061         environment::environment(const environment *): Initialize
13062         margin_character_flags.
13063         (margin_character): Rewrite.
13064         (environment::output_line): Add a margin character if
13065         margin_character_flags is non-zero.  Turn off the
13066         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13067         zero, use margin_character_node without copying and then set
13068         margin_character_node to 0.
13070         * devps/DESC.in: Change minimum size to 1000.
13072 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13074         * troff/symbol.h (symbol::hash): Change return type to unsigned
13075         long.
13076         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13077         Add casts to int.
13079         * test-groff: Use -r rather than -x.
13081         * grops/psfig.diff: Include in distribution again.
13083 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13085         * Makefile.in (dist): Use gzip.
13087 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13089         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13090         unistd.h as well as in stdlib.h.
13091         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13092         defined; otherwise include <sys/types.h> and <unistd.h> if
13093         UNISTD_H_DECLARES_GETOPT is defined.
13095         * configure.in: use builtin(include, ... rather than include(...
13096         * configure: Regenerate with autoconf 1.3.
13098         * libdriver/print.cc (printer::adjust_arc_center): Use new
13099         algorithm suggested by Andy Fyfe.
13101         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13102         * include/printer.h: Declare this.
13103         * grops/ps.cc (ps_printer::draw): Use it.
13104         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13106 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13108         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13110 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13112         * eqn/main.cc (main): Handle "eqn -".
13114 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13116         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13118         * mm: Integrate version 1.08.
13120         * pic/troff.cc (troff_output::finish_picture): Set
13121         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13122         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13123         if it's not defined. Check whether the register is non-zero rather
13124         than whether it's not defined.
13125         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13127         * indxbib/indxbib.cc: Move all signal handling into...
13128         * indxbib/signal.c: New file.
13129         * configure.in: Call AC_RETSIGTYPE.
13131         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13132         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13133         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13135         * troff/input.cc (token::token, token::operator=): Work round SGI
13136         C++ bug.
13137         * pic/object.cc (position::position): Likewise.
13139 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13141         * pic/pic.h: Move declaration of hypot().
13143 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13145         * pic/pic.h: Declare hypot().
13147         * pic/pic.h: Define M_PI if necessary.
13149 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13151         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13152         `.ta T' feature.
13154         * devps/prologue.ps (RE): Handle the possibility that the old font
13155         doesn't have a FontName entry.
13157 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13159         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13160         (@C): Use @fam not fam.
13162 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13164         * lookbib/lookbib.cc (main): Change type of start to const char *.
13165         * lkbib/lkbib.cc (main): Likewise.
13167         * eqn/lex.cc (definition::definition): Don't use member
13168         initializer syntax for members of anonymous unions.
13170         * troff/input.cc (input_stack::backtrace): Change type of to const
13171         char *.
13173 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13175         * include/stringclass.h (class string): Declare inline friend
13176         functions as inline in class declaration.
13177         * troff/hvunits.h (class hunits, class vunits): Likewise.
13178         * include/refid.h (class reference_id): Likewise
13179         * troff/troff.h (points_to_units(units), scale(units, double)):
13180         Delete declarations.
13181         * libdriver/input.cc (get_char): Delete declaration.
13182         * include/lib.h: Change 2nd argument of getopt from const char **
13183         to char **.
13184         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13185         char **' before assigning to a `const char **'.
13186         * tbl/table.cc: Delete extra declarations of prints().
13188 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13190         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13191         char **' before assigning to a `const char **'.
13193         * libgroff/errarg.cc (errarg::errarg): Don't use member
13194         initializer syntax for members of anonymous unions.
13196 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13198         * mm: Integrate version 1.07.
13200 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13202         * troff/input.c (translate2): Rename to
13203         (translate_no_transparent).
13204         (init_input_requests): Rename tr2 to trnt.
13206 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13208         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13209         (charinfo::set_translation, charinfo::set_special_translation):
13210         Add second argument that specifies value for
13211         transparent_translate.
13212         (charinfo::get_translation, charinfo::get_special_translation):
13213         Add optional second argument that specifies whether translation is
13214         being used for transparent throughput.
13215         * troff/input.cc (charinfo::set_translation,
13216         charinfo::set_special_translation): Handle second argument.
13217         (charinfo::charinfo): Initialize transparent_translate.
13218         (translate): Split main part off into
13219         (do_translate): New function.  Pass argument saying whether
13220         translation applies to transparent throughput.
13221         (translate2): New request.
13222         (init_input_requests): Bind translate2 to `tr2'.
13224 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13226         * tbl/table.h (class table): Add `nokeep' flag.
13227         * tbl/main.cc (process_options): Handle `nokeep' option.
13228         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13229         table::do_bottom): Don't output keep/release macro definitions or
13230         calls when `nokeep' option has been specified.
13232 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13234         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13236 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13238         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13239         block_entry::divert, alphabetic_block_entry::divert): Add extra
13240         argument giving column separation.
13241         (table::compute_widths): Pass column separation to
13242         table_entry::divert().
13243         (block_entry::do_divert): If an entry spans multiple columns and a
13244         minimumum width has been specified for each column, then set the
13245         line length to the sum of the widths (plus possibly the column
13246         separations).
13248         * troff/input.cc (set_escape_char): Don't set the escape_char
13249         until after calling has_arg().
13251 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13253         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13254         case.
13256         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13257         in case where r > nrows - 1.
13259         * tbl/table.cc (BODY_HEIGHT): Deleted.
13260         (LINE_SEP): New definition.
13261         (table::print_single_hline, table::print_double_hline,
13262         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13263         table::do_row, table::do_top): Use LINE_SEP space before a line
13264         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13266         * tbl/table.cc (text_entry::print_contents): New function.
13267         (text_string_name, right_text_string_name): Deleted.
13268         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13269         (simple_text_entry::do_width, numeric_text_entry::do_width,
13270         alphabetic_text_entry::do_width): Don't store the contents of the
13271         entry in a string.
13272         (left_text_entry::simple_print, right_text_entry::simple_print,
13273         center_text_entry::simple_print,
13274         alphabetic_text_entry::simple_print,
13275         numeric_text_entry::simple_print): Print the entry directly
13276         instead of using the stored string.
13278 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13280         * devps/Makefile: Strip PostScript files.
13281         * devps/prologue: Rename to...
13282         * devps/prologue.ps.
13283         * devps/psstrip.sed: New file.
13284         * devps/download: Use .pfa rather than .ps for installed versions
13285         of fonts.
13287 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13289         * troff/env.cc (input_trap): Give a warning if the argument is out
13290         of range.
13292         * troff/env.cc (adjust): Treat negative argument as missing. Round
13293         argument > 5 down to 5.
13295         * troff/env.cc (center, right_justify): Make negative argument zero.
13297         * troff/div.cc (page_offset, vertical_position_traps): Treat
13298         invalid argument as missing.
13299         * troff/env.cc (line_spacing, line_length, title_length, indent,
13300         underline, hyphen_line_max_request, control_char,
13301         no_break_control_char, widow_control_request, adjust, input_trap,
13302         point_size): Likewise.
13303         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13304         constant_space): Likewise.
13305         * troff/input.cc (compatible, shift, warn_request,
13306         set_escape_char): Likewise.
13308         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13309         * tbl/table.cc (table::table): Likewise.
13311         * Makefile.dev (install_dev): depends on $(DEVFILES).
13313 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13315         * devX75, devX75-12, devX100, devX100-12: New directories.
13316         * Makefile.in: Add these to DEVDIRS.
13318         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13319         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13320         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13321         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13322         targets.
13323         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13324         (uninstall): New target.
13325         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13326         uninstall_prog, uninstall_dev): New targets.
13328         * troff/div.cc (return_request): Treat an invalid argument as
13329         missing.
13331 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13333         * tmac/tmac.e ((f): Set up the environment even when there's a
13334         current diversion.  Transperently throughput a call to @N.
13335         (@N): New macro.
13337 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13339         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13340         up to vertical resolution.
13342         * tbl/table.cc (table::do_row): Change row number after printing
13343         stuff list.
13345         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13347 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13349         * Rename CHANGES to NEWS.
13351 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13353         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13355 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13357         * man.ultrix: Removed.
13359 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13361         * Makefile.comm (extraclean): Delete files whose names begin with
13362         `='.
13364         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13365         aligned text.
13367 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13369         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13370         * troff/div.cc (page_length, need_space, space_request): Treat
13371         invalid optional argument as missing.
13372         * troff/env.cc (number_lines): If the first argument is present
13373         but not a number, turn on line numbering, don't change the next
13374         line number and parse the remaining arguments.
13376         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13378 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13380         * eqn/box.h: Change declaration accordingly.
13381         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13382         the specified size was bad but don't give an error.  Check for
13383         overflow.
13384         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13385         * eqn/lex (do_size): Likewise.
13387 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13389         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13390         compatible headers.
13392 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13394         * tbl/table.cc (table::init_output): Improve error message when
13395         table won't fit on one page.
13397 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13399         * pic/troff.cc (troff_output::start_picture): Generate line
13400         containing a horizontal motion equal to the width of the picture.
13402         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13403         using GROFF_COMMAND_PREFIX environment variable.
13405 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13407         * mdate.sh: Use $NF rather than $(NF).
13409 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13411         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13413         * eqn/main.cc (main): Output code to check that geqn was given the
13414         correct -T option.
13416 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13418         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13419         `ln -s ../Makefile .; make; rm -f Makefile'.
13421         * troff/hyphen: Rename to...
13422         * troff/hyphen.us:
13423         * troff/input.cc (main): Delete -H option. Don't call
13424         read_hyphen_file().
13425         * troff/env.cc: Include searchpath.h and macropath.h.
13426         (exception_dictionary): Deleted.
13427         (ht): Deleted.
13428         (read_hyphen_file): Deleted.
13429         (hyphenation_language): New struct.
13430         (class trie, class hyphen_trie): Move declarations up.
13431         (trie_node::~trie_node): Deleted.
13432         (trie::delete_trie_node): New function.
13433         (trie::do_delete): New pure virtual function.
13434         (hyphen_trie::do_delete): New function.
13435         (trie::~trie): New function.
13436         (hyphen_trie::~hyphen_trie): New function.
13437         (trie::clear): No need to chcek that tp is not 0.
13438         (current_language, language_dictionary): New variables.
13439         (hyphen_word): Give an error if no current language.  Use
13440         exceptions dictionary in current language.
13441         (hyphen_trie::read_patterns_file): Find file using macro_path.
13442         Allow comments (starting with %) in patterns file.  Don't make it
13443         a fatal error if the file can't be found.
13444         (hyphenate): Return if no current language.  Get the exceptions
13445         dictionary and the hyphenation patterns from the current language.
13446         (set_hyphenation_language): New variable.
13447         (hyphenation_patterns_file): New function.
13448         (hyphenation_language_reg): New class.
13449         (hyphenation_language_reg::get_string): New function.
13450         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13451         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13452         register.
13453         * groff/groff.cc (main, help, synopsis): Delete -H option.
13454         * include/Makefile.sub: Don't define HYPHENFILE.
13455         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13456         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13457         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13458         hyphenation patterns.
13460 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13462         * eqn/neqn.sh: New file.
13463         * eqn/Makefile.sub: Handle neqn.sh.
13465         * eqn/eqn.h: Declare `nroff' variable.
13466         * eqn/box.cc (param_table): Add `nroff' param.
13467         (nroff): Define it.
13468         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13469         variable.
13470         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13472         * troff/troff.h (WARN_FONT): New warning.
13473         (WARN_TOTAL): Change accordingly.
13474         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13475         (warning_table): Add WARN_FONT.
13476         * troff/node.cc (mount_font_no_translate): Pass argument to
13477         font::load_font.  If this is non-zero, give a warning.
13478         Don't give an error message when accessing a font that has already
13479         been found to be invalid.
13480         * include/font.h (font::load, font::load_font): Add additional
13481         optional argument which suppresses error message if the font is
13482         not found.
13483         * libgroff/font.cc (font::load_font): Handle additional argument.
13484         (font::load): Add additional argument. If this is non-null, set it
13485         to 1 and don't give error message.
13487         * include/printer.h (printer::end_page): Add argument giving
13488         length of page.
13489         * libdriver/input.cc (do_file): Pass this.
13490         * grops/ps.cc (ps_printer::end_page): Add argument.
13491         * grodvi/dvi.cc (dvi_printer::end_page,
13492         draw_dvi_printer::end_page): Add argument.
13493         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13494         columns_per_page members. New member nlines.
13495         (DEFAULT_LINES_PER_PAGE): Deleted.
13496         (tty_printer::tty_printer): Don't compute lines_per_page from
13497         font::paperlength. Don't compute columns_per_page from
13498         font::paperwidth.
13499         (tty_printer::add_char): Don't check horizontal position against
13500         columns_per_page. Grow glyphs vector if neccessary.
13501         (tty_printer::end_page): Add argument giving page_length in units.
13502         Discard lines past end of page.
13504 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13506         * tmac/tmac.tty-char: Fix definition of \(/l.
13508         * tmac/tmac.X: Define \(en.
13510 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13512         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13513         lpq, then use lp rather than lpr.
13515         * tmac/tmac.s (par@reset): Don't call `ad'.
13516         (par*env-init): Call `ad'.
13518 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13520         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13521         date.
13523         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13524         * indxbib/indxbib.cc: Likewise.
13526 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13528         * libgroff/putenv.c: New file.
13529         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13530         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13531         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13532         stdlib.h with AC_HAVE_HEADERS.
13534 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13536         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13537         does not exist.
13539 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13541         * eqn/box.cc (gsize): Make it an int.
13542         (set_gsize): Parse argument handling increment or decrement.
13543         (box::top_level): Convert gsize to a string.
13545         * troff/input.cc (exit_troff): Make buf unsigned char [].
13546         Call to make_temp_iterator casts buf to char*.
13548         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13550         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13551         * Makefile.cpg (depend.temp): Likewise.
13553         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13555         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13557 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13559         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13561 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13563         * Version 1.06 released.
13565         * Integrate mm 1.04.
13567 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13569         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13571 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13573         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13574         ligatures command.
13575         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13576         afmtodit. Regenerate.
13578         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13579         @f back past the current position.
13581         * tmac/tmac.e: Change calls to @R so that comments are not part of
13582         arguments.
13584 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13586         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13588         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13589         check that we can link a call to a function declared in <stdio.h>.
13590         (GROFF_UNISTD_H): New macro.
13591         * configure.in: Call it.
13592         * Makefile.in: Document it.
13593         * include/posix.h: New file.
13594         * troff/troff.h: Don't include <osfcn.h>
13595         * troff/input.cc: Include posix.h.
13596         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13597         osfcn.h.
13598         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13599         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13600         <fcntl.h>.
13601         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13602         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13603         * libbib/search.cc (O_RDONLY): Delete definition.
13604         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13605         Don't include <osfcn.h>.
13607         * acgroff.m4 (GROFF_TIME_T): New macro.
13608         * configure.in: Call it.
13609         * Makefile.in: Document it.
13611         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13612         * configure.in: Call it.
13613         * Makefile.in: Document -DTRADITIONAL_CPP.
13614         * include/ptable.h: Don't include generic.h.
13615         (name2): Define it.
13617         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13618         Afterwards remove [T1 and [T2.
13619         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13620         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13621         (ref*add-T2): Renamed from ref*add-T.
13622         (ref*add-T1): New macro.
13624 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13626         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13628         * libbib/index.cc: Include <fcntl.h>.
13629         (O_RDONLY): Define if necessary.
13630         (make_index_search_item, index_search_item_iterator::get_tag,
13631         index_search_item::check_files): Use O_RDONLY.
13632         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13633         (O_RDONLY): Define if necessary.
13634         (search_list::add_file): Use O_RDONLY.
13635         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13636         <sys/stat.h>.
13637         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13638         (main): Use these.
13640         * libbib/index.cc (S_ISREG): Define it if necessary.
13641         (index_search_item::load): Use S_ISREG.
13643         * include/driver.h: Include <errno.h>.
13645 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13647         * eqn/box.cc (body_height): Increase default value to 85.
13648         (body_depth): Increase default value to 35.
13650 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13652         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13653         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13654         protected from expansion with \E.
13656         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13658         * Makefile (Makefile): New target.
13660         * Makefile.sub (configure, distfiles): New targets.
13662         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13663         construct.
13665 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13667         * eqn/box.cc (param_table): Add body_height and body_depth.
13669         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13671 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13673         * psbb/Makefile.sub: Don't link with libgroff.a.
13675         * acgroff.m4 (GROFF_PUTENV): New macro.
13676         * configure.in: Call GROFF_PUTENV.
13677         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13678         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13679         is defined.
13681         * troff/env.cc (distribute_space): Rename force_forward argument
13682         to force_reverse.  Reverse the list if force_reverse is true.
13684 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13686         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13688         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13689         height or depth to be negative.  Guard against SUP_RAISE quantity
13690         being negative.
13692 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13694         * devps/generate/textmap: Add `an' (arrowhorizex).
13695         * tmac/tmac.ps: \(an overlaps horizontally.
13696         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13698         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13699         * devps/textmap: Add arrowvertex.
13700         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13701         updownarrow delimiters.
13702         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13704         * tbl/table.cc (simple_entry::position_vertically,
13705         block_entry::position_vertically):  For a centered entry, perform
13706         the motion in two stages.
13708         * refer/refer.cc (split_punct): Don't call lookup_token if there
13709         is no token.
13711 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13713         * troff/input.cc (token::next): Delete token_node after copying
13714         token.
13716         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13717         cur_point_size.
13719         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13721         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13723 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13725         * grops/ps.cc (usage): -b option takes an argument.
13727         * devps/prologue (PLG): New procedure.
13728         * grops/ps.cc (main, usage): New -g option.
13729         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13730         length using PLG.
13732 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13734         * include/cset.h: Include <limits.h> if we have it.
13736         * libgroff/illegal.cc: New file.
13737         * include/lib.h (illegal_input_char): Use table.
13738         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13739         * pic/lex.cc (ARG1): Renumber to 14.
13740         * eqn/lex.cc (ARG1): Likewise.
13742         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13743         (eg 1.05.90) correctly.
13745 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13747         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13748         Rename $r and $R registers to $v and $V.
13749         ($r, $R): Initialize to 0.
13750         (@v, @V): New macros.
13751         (sz): Call @v.
13752         (@M): Call @V.
13754         * troff/input.cc (main, usage): Add -R option that says not to
13755         load troffrc.
13756         * eqn/main.cc (main, usage): Rename -n to -R.
13758 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13760         * devps/DESC.in: Leave font positions 5-9 blank.
13761         * devdvi/DESC.in: Likewise.
13763         * grog/grog.pl: Handle `.PS <file' correctly.
13765         * troff/input.cc (input_stack::push): Improve error message when
13766         input stack limit exceeded.
13768 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13770         * refer/refer.cc (main): Fix typo in handling of `a' option.
13772         * refer/refer.cc (do_bib): In state START after a newline remain
13773         in state START.
13775         * groff/groff.sh: Deleted.
13776         * groff/Makefile.sub: Delete handling of groff.sh.
13778         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13779         to determine whether to use \X'ps:...'.
13780         * tmac/troffrc: Set 0p register to 0.
13781         * tmac/tmac.ps: Set 0p register to 1.
13783         * groff/groff.cc: Support -X option. Give warning for -TXps and
13784         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13785         * tmac/troffrc: Support -r.X=1.
13787         * pic/troff.cc (troff_output::dot): Don't test
13788         zero_length_line_flag.
13790 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13792         * include/lib.h: Declare getopt() and friends unless
13793         STDLIB_H_DECLARES_GETOPT is defined.
13795         * doc/chars.tr: Delete.
13796         * man/groff_char.man: New file.
13798 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13800         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13801         user has changed register format.
13803 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13805         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13806         `postpro' command in DESC file.  Get spooler command from `print'
13807         command in DESC file.  Execute spooler command with /bin/sh.
13809         * groff/groff.cc: Split Unix-specific parts into...
13810         * groff/pipeline.c: New file.
13812         * LICENSE: Delete.
13813         * COPYING: New file.
13814         * all files: Update copyright notices.
13816         * Rearrange files.  Redo Makefiles.  Use autoconf.
13818 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13820         * troff/input.c (charinfo_to_node_list): Interpret character
13821         definition with escape_char of `\'.
13823 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13825         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13826         Define INT_DIGITS as big enough for 64-bit integer.
13827         * lib/strtol.c: Don't include lib.h.
13828         * lib/lib.h: Delete ifdef __cplusplus stuff.
13830 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13832         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13833         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13834         get DESC from current directory.
13836 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13838         * tbl/main.c (main): Always reset the line number when reading
13839         from stdin.
13841         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13842         table::define_bottom_macro, table::do_row, table::do_top): Round
13843         vertical spacing up to vertical resolution.
13845 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13847         * ps/ps.h (enum resource_type): Avoid comma at end of
13848         enumerator-list.
13849         * dvi/dvi.c (class dvi_printer): Likewise.
13850         * dvi/tfmtodit.c (gf::load): Likewise.
13851         * refer/label.y (struct expression): Likewise.
13852         * refer/refer.c (class label_processing_state): Likewise.
13853         * refer/indxbib.c (do_file): Likewise.
13854         * troff/troff.c (enum warning_type): Likewise.
13855         * tbl/main.c (process_data): Likewise.
13856         * troff/charinfo.h (class charinfo):
13858 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13860         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13862 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13864         * groff.c: Move to new groff subdirectory.
13865         * groff/Makefile: New file.
13866         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13868         * man/mdate.sh: Use ls -L if supported.
13870         * Consolidate all header files produced by gendef into lib/defs.h.
13871         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13872         Don't include path.h.
13873         * lib/Makefile (path.h): Don't generate.
13874         * troff/input.c: Include defs.h. Don't include config.h.
13875         * troff/Makefile (config.h): Don't generate.
13876         * refer/index.h: Don't include suffix.h.
13877         * refer/index.c: Include defs.h.
13878         * refer/indxbib.c: Include defs.h.
13879         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13880         defs.h.
13881         * refer/Makefile (suffix.h, path.h): Don't generate.
13882         * groff.c: Don't include config.h. Include defs.h.
13883         * Makefile (config.h): Don't generate.
13884         (lib/defs.h): Generate.
13885         (topclean): Remove lib/defs.h.
13887 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13889         * lib/malloc.c, lib/getpagesize.h: Deleted.
13890         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13891         related stuff.
13892         * lib/Makefile: Delete malloc-related stuff.
13893         * lib/new.c: Workaround COOKIE_BUG if necessary.
13895         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13896         needed header files directly.
13897         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13898         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13900 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13902         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13903         argument.
13904         * lib/font (font::load_desc, font::load): Don't split argument of
13905         unknown command.
13906         (font::handle_unknown_font_command): Change type.
13907         * ps/ps.c (ps_font::handle_unknown_font_command,
13908         handle_unknown_desc_command): Change type.
13909         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13911 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13913         * lib/font.h (font::handle_unknown_font_command): Add file and
13914         line arguments.
13915         * lib/font.c (font::handle_unknown_font_command):
13916         * ps/ps.c (ps_font::handle_unknown_font_command):
13917         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13918         lineno arguments.  Use _with_file_and_line functions for error
13919         reporting.
13921         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13922         data member.
13923         * lib/font.c (font::set_unknown_desc_command_handler): New
13924         function.
13925         (font::load_desc): For unknown commands, call
13926         unknown_desc_command_handler if not null.
13927         * lib/font.h (class font): Declare them.
13928         (FONT_COMMAND_HANDLER): New typedef.
13929         * ps/ps.c (handle_unknown_desc_command): New function.
13930         (main): Set bflag if we had a -b option. Call
13931         font::set_unknown_desc_command_handler.
13932         (broken.h): Don't include.
13933         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13934         submake 
13935         * ps/devps/Makefile: Add `broken' command to DESC file using
13936         BROKEN_SPOOLER_FLAGS.
13938         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13940         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13942         * macros/tmac.e (@R, @S): New macros.
13943         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13944         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13945         Declare $H, $[0-9], .. macros with @S.
13946         Declare |0, |1, |2, |3 strings with @S.
13948         * macros/tmac.e (@S): Rename to @U.
13950         * macros/tmac.e (@z): Define @b and bp as empty instead of
13951         deleting them,
13953         * macros/tmac.e (@m): Deleted.
13954         (@h): Don't call @m.
13955         (@z): Don't set @m trap.
13957         * macros/tmac.e ($h, $f): Define |z as empty string.
13959         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13960         (@q): Likewise.
13962         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13963         removing them.
13964         ()f): Likewise for * register.
13966         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13967         argument is missing, don't change $R.  Call sr with three
13968         arguments when initializing.
13970 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13972         * macros/tmac.e (sr): New macro.
13973         Initialize $r and $R using sr.
13975         * macros/tmac.e (,): Delete \*(#[.
13977         * troff/env.c (set_tabs): Read the tab type even if the position
13978         is bad.  Allow the position of the first tab stop to be negative.
13980 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13982         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13983         _POSIX_VERSION.
13984         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13985         rather than -DPATHCONF_MISSING.
13986         * Makefile: Get rid of PATHCONF_MISSING.
13988         * refer/map.c: New file.
13989         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13990         to map_len.
13991         * refer/Makefile: Handle map.c.
13992         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13994 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13996         * Makefile: RANLIB should be `true' if there is no ranlib.
13997         * lib/Makefile (libgroff.a): Simplify.
13998         * driver/Makefile (libdriver.a): Simplify.
14000         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14001         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14002         defined.
14004 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14006         * troff/env.c (compare_ranges): Declare as extern "C".
14008         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14010         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14012 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14014         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14015         but conditionalize use of \X based on \*(.T.
14016         (grops_output::*): Deleted.
14017         * pic/output.h: Delete declaration of make_grops_output.
14018         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14019         by default. -n sets it to 0.
14020         (usage): Corresponding changes.
14021         * groff.c (main): Don't pass -x or -p to pic.
14022         * groff.sh: Likewise.
14024         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14025         to be non-zero.
14027         * ps/devps/afmtodit: Change calculation of asc_boundary and
14028         desc_boundary.  Make these bounds inclusive.
14029         * ps/devps: Regenerate font files.
14031 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14033         * macros/tmac.latin1: New file.
14034         * macros/tmac.tty-char: Use tmac.latin1.
14035         (tmac.tty-tr): Deleted.
14036         * macros/Makefile: Install tmac.latin1.
14037         * macros/tmac.dvi: Use tmac.latin1.
14038         * macros/troffrc: Translate \[char160] onto no-break space here.
14039         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14041 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14043         * macros/tmac.Xps: Use `do' request.
14045         * macros/tmac.ps: Use `do' request.
14047         * macros/tmac.e (@C): Use `do' request.
14049         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14050         * macros/Makefile: Install tmac.X*.
14052         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14053         * tty/Makefile: Don't install tmac.tty*.
14054         * macros/Makefile: Install tmac.tty*.
14056         * dvi/tmac.dvi: Move to macros.
14057         * dvi/Makefile: Don't install tmac.dvi.
14058         * macros/Makefile: Install tmac.dvi.
14060         * ps/tmac.ps*: Move to macros.
14061         * ps/Makefile: Don't install tmac.ps*.
14062         * macros/Makefile: Install tmac.ps*.
14064         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14065         option.
14066         * macros/eqnrc: Set draw_lines parameter based on device.
14067         * groff.c: Don't pass -D flag to eqn.
14068         * groff.sh: Likewise.
14069         * eqn/main.c: Warn about use of -D.
14071         * troff/input.c (process_startup_file): New function.
14072         (main): Call process_startup_file().
14073         * macros/troffrc: New file.
14074         * macros/Makefile: Install troffrc.
14075         * groff.c (main): Don't pass extra -m option to troff. For a 
14076         pseudo device pass the name of the pseudo device to troff using
14077         -d.
14078         * groff.sh: Likewise.
14079         * groff.c (possible_command::prepend_arg): Deleted.
14081         * troff/input.c (do_request): New function.
14082         (init_input_requests): Bind "do" to do_request.
14084         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14085         load eqnrc from macro directory.
14086         * macros/eqnrc: New file.
14087         * macros/Makefile: Install eqnrc.
14088         * ps/devps/eqnchar: Deleted.
14089         * ps/devps/Makefile: Don't install eqnchar.
14090         * dvi/devdvi/eqnchar: Deleted.
14091         * dvi/devdvi/Makefile: Don't install eqnchar.
14092         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14093         variable optM.
14095         * lib/device.[ch]: New files.
14096         * lib/font.h (font::set_device_name, font::get_device_name):
14097         Deleted.
14098         * lib/fontfile.c: Use device.h.
14099         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14100         * troff/input.c: Delete definition of `device'.
14101         (main): Don't initialize device.
14102         * troff/troff.h: Include device.h rather than declaring device.
14103         * troff/Makefile: No need to handle DEVICE.
14104         * driver/input.c: Include device.h. Don't use
14105         font::{set,get}_device_name.
14106         * groff.c, Makefile: Rename device.h to config.h.
14107         * groff.c: Use library device variable.
14108         * eqn/main.c: Use library device variable.
14109         * eqn/Makefile: No need to handle DEVICE.
14111         * lib/searchpath.[ch]: New files.
14112         * lib/Makefile: Handle searchpath.[ch].
14113         * troff/input.c (open_file, init_dirs): Deleted.
14114         (macro_dirs): Deleted.
14115         (open_mac_file, macro_source): Use class search_path.
14116         (add_string, struct string_list): Move definition.
14117         (main): Change -M option to use macro_path. Delete call to
14118         init_dirs().
14119         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14120         Rewrite to use class search_path.
14121         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14122         * lib/Makefile: fontfile.c depends on searchpath.h.
14123         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14124         MACROPATH.
14125         * lib/macropath.[ch]: New files.
14126         * troff/Makefile: No need to handle MACROPATH.
14128         * troff/input.c: Delete DUMP code.
14129         * lib/fontfile.c, lib/font.h: Delete
14130         font::forget_command_line_font_dirs.
14132         * troff/input.c (push_token): New function.
14133         (handle_first_page_transition): Use push_token().
14134         (process_input_stack): Change handling of a space at the beginning
14135         of the line.
14137 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14139         * troff/input.c (font_dirs): Delete unused variable.
14141         * eqn/lex.c (do_set): Correct error messages.
14143 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14145         * troff/input.c (do_define_string): Allow the string name to be
14146         followed immediately by a tab.
14147         (define_character): Likewise.
14149 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14151         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14152         be negative.
14154         * troff/input.c (input_iterator::is_file): New virtual function.
14155         (file_iterator::is_file): New function.
14156         (input_stack::end_file): New function.
14157         (input_stack::next_file): Handle the situation where there is no
14158         file on the input stack correctly.  Avoid making two passes over
14159         the input stack.
14160         (next_file): Make the filename optional; in this case call
14161         input_stack::end_file().
14163 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14165         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14166         produce a real _ charater when the current font is CW and _
14167         otherwise.
14169         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14170         expression to work around gcc 2.2 bug.
14172 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14174         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14176         * troff/env.c (environment::add_padding): New function.
14177         (environment::add_char): Use add_padding().
14178         (environment::space): Likewise.
14179         (environment::wrap_up_field): Add some padding if there is none
14180         and there's no current tab.
14181         * troff/env.h: Declare environment::add_padding.
14183 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14185         * pic/pic.y: undef fmod and rand before declaring them.
14187 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14189         * troff/input.c (main): If the DESC file specifies a font name of
14190         0, then leave the corresponding font position empty.
14192         * nroff.sh: New file.
14193         * Makefile (install.nobin): Install nroff.sh.
14195         * tty/devlatin1/R.proto: Add ao as synonym for de.
14196         * tty/tmac.tty-char: Define ao as o.
14198         * tty/dev{ascii,latin1}/R.proto: Add aq.
14199         * tty/tmac.tty-char: Delete definition of aq.
14201 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14203         * troff/input.c (init_charset_table): Don't translate 0240.
14204         * ps/tmac.ps: Translate char160 to space.
14205         * dvi/tmac.dvi: Likewise.
14206         * tty/tmac.tty: Likewise.
14208 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14210         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14212         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14213         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14214         \(oe, \(r?, \(r!.
14216         * tty/tmac.tty-char: Add \(ah.
14218         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14219         No need to define \(FM and \(!/. Conditionalize all character
14220         definitions.
14222         * ps/devps/lgreekmap: Add +h, +f, +p.
14224         * ps/tmac.psnew: New file.
14225         * ps/Makefile: Install tmac.psnew.
14227         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14228         character definitions in compatible mode.
14230         * troff/input.c (remove_character): New function.
14231         (init_input_requests): Bind remove_character to "rchar".
14233         * ps/tmac.psold: New file.
14234         * ps/Makefile: Install tmac.psold.
14235         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14236         characters into tmac.psold.  Make these definitions unconditional.
14238         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14240         * ps/tmac.ps: Don't define \('c and \('C.
14242         * ps/devps/textmap: Move Greek characters to...
14243         * ps/devps/symbolchars:
14245 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14247         * ps/devps/text.enc: Add quotesingle.
14248         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14249         * tty/tmac.tty-char: Likewise.
14250         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14251         * dvi/devdvi/texi.map: Add Fn.
14252         * dvi/devdvi/msam.map: Add lz.
14253         * dvi/tmac.dvi: Handle Bq, bq, aq.
14255         * pic/lex.c (get_token): Recognize 'th.
14256         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14258 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14260         * ps/devps/textmap: Move di, mu, +- to...
14261         * ps/devps/symbolchars:
14263         * macros/tmac.s (@XS): Don't call par@reset or fi.
14264         (XA): Call LP. Turn off adjustment. Reduce line length.
14266         * macros/tmac.s: Initially alias XS to LP.
14267         (XS): Rename to @XS.
14268         (cov*ab-init): Alias XS to @XS.
14270 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14272         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14273         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14274         (token::is_size, token::changes_env): Deleted.
14275         * troff/number.c (parse_term): No need to process \s explicitly.
14276         Call tok.next() only after scale indicator has been processed.
14277         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14278         \f etc explicitly.
14279         (token::next): Handle \s, \f, \S, \H immediately rather than
14280         returning them as tokens.
14281         (token::operator==, token::description, token::add_to_node_list,
14282         token::process): Remove handling of deleted tokens.
14284         * troff/env.c (environment::add_char): When adding padding
14285         indicator character, call start_line() if necessary.
14287 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14289         * ps/devps/afmtodit: Don't output 0 kerns.
14291         * ps/devps/afmtodit: Remove directory from name of encoding in
14292         font description file.
14294         * ps/devps/afmtodit: Improve error messages.
14296         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14298         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14299         * ps/devps/FontMakefile: Deleted.
14300         * ps/devps/afmname: New file.
14302         * ps/devps/symbol.sed: New file.
14303         * ps/devps/symbol.diff: Deleted.
14304         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14305         Generate zapfdr.afm from zapfd.afm.
14307         * tty/tmac.tty (tty-char): Prefix definition with ".
14309         * macros/tmac.an (TP): Don't start a diversion if one has already
14310         been started.
14312         * tty/tmac.tty-char: Add Latin-1 characters.
14314         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14316 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14318         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14319         Move declaration of struct horizontal_span.
14321         * tbl/table.c (table::table): Initialize span_list.
14322         (table::~table): Delete span_list.
14324         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14326         * ps/devps/Makefile: Avoid dependency on GNU make.
14328         * ps/tmac.ps: Check that character does not already exist before
14329         defining it.
14331         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14332         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14333         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14334         files.
14336         * tty/tmac.tty-char: New file.
14337         * tty/Makefile: Install tmac.tty-char.
14338         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14339         tmac.tty-char.
14341         * tty/tmac.tty: Fix definition of \(34.
14343         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14344         bracket-drawing characters onto |. Add *o.
14346         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14347         only if current_field.
14349         * troff/dictionary.c (dictionary::lookup): Free old_table after
14350         rehashing. 
14352 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14354         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14355         whose glyphs are identical to glyphs of some Roman character.
14357         * tty/devlatin1/R.proto (bu): Deleted.
14358         * tty/devascii/R.proto (bu): Deleted.
14359         * tty/tmac.tty: Add definition of \(bu.
14361         * eqn/main.c (do_file): Pass FILE as argument.
14362         (main): Automatically load eqnchar.  New options -F and -n.
14363         Pass do_file an opened FILE.
14364         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14365         No need to include font.h.
14366         * groff.sh: Likewise.  Don't need to use - for standard input.
14367         Prefix files with -- if first file starts with -.
14369         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14371         * troff/env.c (environment::possibly_break_line): Don't set line
14372         to 0 across call to output_line().  Don't call output_line() until
14373         after discarding nodes after break.
14375 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14377         * request.h (macro::empty): Declare it.
14378         * input.c (macro::empty): New method.
14379         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14380         macro is empty.
14382 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14384         * troff/env.c (environment::start_field): Decrement space_total
14385         when a space is frozen.
14387 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14389         * macros/tmac.an (R): Delete macro.
14391         * troff/input.c (get_copy, token::next): Support \# (like \" but
14392         newline is ignored).
14394         * troff/input.c (token::next): Fix error message in 'Y' case.
14396 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14398         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14399         a delimiter name.
14401 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14403         * c++test.c: Include <osfcn.h>.
14405         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14406         <errno.h> doesn't.
14408 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14410         * tbl/table.c (table::divide_span): Don't count column separation
14411         if expand was specified.
14413         * tbl/main.c (process_format): Don't ignore width specs in
14414         continued format.  Give warning for changing equal widths or
14415         column separation in continued format.
14416         (process_data): Set column separation, minimum width, equal
14417         columns at end of table.
14419 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14421         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14422         node::add_discretionary_hyphen): Use soft_hyphen_char.
14423         (set_soft_hyphen_char): New function.
14424         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14426         * Makefile (c++tested): Give more helpful message if test fails.
14428 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14430         * troff/input.c (init_charset_table): Translate 0240 to
14431         an unbreakable space.
14433         * troff/token.h (token::hyphen_indicator): New function.
14434         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14435         translation.
14436         * troff/input.c (translate): Allow translation to \%.
14437         * troff/node.c (node::add_char): Handle
14438         TRANSLATE_HYPHEN_INDICATOR.     
14439         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14441         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14442         for \(hy.
14444         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14446 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14448         * groff.c (run_commands): If the last command gets a SIGPIPE send
14449         a SIGPIPE to all children than haven't yet terminated.  When
14450         command terminates, set pid field to -1.
14452 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14454         * groff.c (main): Pass an appropriate -filename option to gxditview.
14456 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14458         * Makefile.bd (install): Remove existing program before copying.
14460         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14461         programs which have Unix counterparts to be installed with
14462         user-specified prefix.
14464         * troff/input.c (exit_troff): Don't check if exit_started.
14465         (exit_request): Don't call exit_troff if exit_started.
14467         * Makefile.bd (install.mm): Rename to install.dwbmm.
14469 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14471         * driver/input.c (do_file): Add missing break for '#' case.
14473 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14475         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14476         then add the boundaries back.
14478         * troff/input.c (exit_troff): Return immediately if already
14479         exiting.
14481         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14482         end macro.
14483         (pg*end-page): If the text has ended and there are no more
14484         footnotes or keeps, exit.
14486         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14488         * troff/input.c (init_charset_table): Make \(rq transparent by
14489         default.
14491         * macros/tmac.an: Define lq and rq strings.
14493         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14495 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14497         * troff/env.c (environment::final_break): New function.
14498         (environment::newline): Set prev_line_interrupted to 2 if
14499         exit_started.
14500         * troff/env.h: Declare environment::final_break.
14501         * troff/input.c (exit_troff): Call environment::final_break()
14502         instead of environment::do_break().
14504         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14505         doesn't already exist.
14506         * macros/man.local: New file.
14507         * macros/tmac.an: Load man.local.
14508         * macros/man.ultrix: New file.
14510 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14512         * troff/input.c (exit_groff): Rename to...
14513         (exit_troff): New function.
14515         * troff/div.c (exit_started, done_end_macro,
14516         seen_last_page_ejector): New global variables.
14517         (began_page_in_end_macro): New static variable.
14518         (exit_flag): Deleted.
14519         (top_level_diversion::top_level_diversion): Initialize
14520         last_page_count.
14521         (top_level_diversion): More elaborate test for whether
14522         cleanup_and_exit() should be called.
14523         Set began_page_in_end_macro if the end macro isn't yet finished.
14524         * troff/div.h (top_level_diversion::last_page_count): New data
14525         member.
14526         (top_level_diversion::set_last_page): New function.
14527         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14528         * troff/env.c (do_break): Zero prev_line_interrupted.
14529         * troff/input.c (exit_flag): Delete declaration.
14530         (LAST_PAGE_EJECTOR): New magic cookie.
14531         (token::next): Handle LAST_PAGE_EJECTOR.
14532         (exit_groff): Set exit_started and done_end_macro instead of
14533         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14534         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14535         another ejection after setting seen_last_page_ejector.
14537 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14539         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14541         * macros/tmac.e (TH): Make sure there's room for the initial
14542         header.
14544         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14545         Set FVS in points rather than units.
14547 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14549         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14550         position of empty slots.
14552 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14554         * ps/devps/S: Fix height and depth of parenrightex.
14555         * ps/devps/symbol.diff: Regenerate.
14557 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14559         * tmac.e (u): Do underlining as in -mgs.
14561 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14563         * tty/tty.c (tty_printer::end_page): If overstriking is
14564         suppressed, still turn overstruck horizontal and vertical lines
14565         into +.
14567         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14568         2.1.
14570         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14572 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14574         * Version 1.05 released.
14576 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14578         * tty/tty.c: Instead of keeping an array of glyphs and then
14579         sorting it, keep a ordered linked list of glyphs for each line.
14581         * driver/driver.h: Include stddef.h.
14583         * tty/tty.c (compare_glyph):
14584         * refer/refer.c (rcompare):
14585         * troff/env.c (compare_ranges): Arguments of qsort comparison
14586         function should be const void *.
14588         * troff/number.c (parse_term):
14589         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14590         switch statement.
14592         * refer/label.y (consider_authors): Don't access variables
14593         constructed under a condition outside that condition: put braces
14594         round for statement containing declaration; redeclare use of same
14595         variable later.
14597         * pic/pic.y (text_expr): Delete production that allows
14598         parenthesised text_expr.
14599         (expr): Allow a conditional_expr to appear in parentheses.
14600         (conditional_expr): Rename to any_expr.
14602         * mm: Install new version 1.01 from jh.
14604         * lib/font.c (font::get_width): Cache scaled widths.
14605         (font::font): Initialize widths_cache.
14606         (font::~font): Destroy widths_cache.
14607         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14609 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14611         * c++test.c, c++test.ref: New files.
14612         * Makefile: Check that the C++ compiler works.
14614         * ps/tmac.pspic (PSPIC): Do a break.
14616         * ps/tmac.ps: Move definition of PSPIC into...
14617         * ps/tmac.pspic: New file.
14618         (PSPIC): Draw box around picture, but make it invisible to grops.
14619         * ps/tmac.ps: Load tmac.pspic.
14620         * ps/Makefile: Install tmac.pspic.
14622 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14624         * lib/font.c (scale_round): If n is negative,
14625         subtract .5 before truncating floating point result.
14627         * lib/fontfile.c: Include <errno.h>.
14629 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14631         * driver/input.c (get_char): Inline. Don't update current_lineno.
14632         Change callers to up date current_lineno if necessary.
14633         Use get_char() instead of getc(current_file).
14635 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14637         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14639 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14641         * tty/tty.c (tmac.tty): Define \(rg as (R).
14643 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14645         * lib/lib.h: New define a_delete.
14646         * Use a_delete instead of delete when deleting an array of objects
14647         without destructors.
14649         * lib/lib.h: Rename adelete to ad_delete.
14650         * Change uses of adelete.
14652 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14654         * eqn/eqn.y: Include lib.h.
14656         * troff/node.c (grow_font_table): Delete old_font_table.
14658         * mm: Install new version from jh.
14660 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14662         * tbl/table.h (format_type): Make global instead of local to class
14663         entry_format.  Prefix enumerators with FORMAT_.
14664         * tbl/table.c, tbl/main.c: Corresponding changes.
14665         * refer/token.h (token_type): Make global.  Prefix enumerators
14666         with TOKEN_.
14667         * refer/token.[ch]: Corresponding changes.
14668         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14670         * troff/div.c (node::set_vertical_size): Don't name argument.
14672 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14674         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14675         * lib/lib.h: Define adelete accordingly.
14676         * pic/object.c (graphic_object::graphic_object):
14677         * tbl/main.c (format::~format):
14678         * tbl/table.c (table::~table):
14679         * refer/ref.c (reference::~reference, reference::merge,
14680         reference::insert_field, reference::delete_field): Use adelete.
14682         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14683         * refer/token.h:
14684         * tbl/table.h: Corresponding changes.
14686         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14687         Ensure total_angle is positive.
14689 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14691         * refer/ref.c (reference::merge, reference::insert_field,
14692         reference::delete_field): Avoid delete[0].
14694         * refer/token.c (init_special_chars): Move calls to cmupper
14695         outside calls to init_two_char_letter to work around bug in gcc
14696         2.0.
14698 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14700         * lib/new.c (operator new): Use __builtin_new for g++.
14702         * pic/object.c (graphic_object::~graphic_object):  Don't use
14703         delete [] on 0.
14705         * pic/object.c (output::compute_scale): Initialize max_width and
14706         max_height.
14708 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14710         * troff/input.c (write_request): Call fflush.
14712         * troff/node.h (class composite_node): Move declaration to node.c
14713         * troff/input.c (charinfo_to_node): Rename to ...
14714         (charinfo_to_node_list): Return node list rather than composite
14715         node.
14716         * troff/node.c (make_composite_node): New function.
14717         (make_node, add_char): Call make_composite_node instead of
14718         charinfo_to_node.
14719         (class composite_node): Add a tfont * member.  Delete font_size
14720         member.
14721         (composite_node::composite_node, composite_node::copy,
14722         composite_node::size): Corresponding changes.
14723         (composite_node::tprint): Provide constant spacing, emboldening
14724         and track kerning as specified in tfont.
14725         (composite_node::width): Change width calculation accordingly.
14726         * troff/env.h (environment::composite): New member.
14727         (environment::is_composite, environment::set_composite): New
14728         functions.
14729         * troff/env.c (environment::environment): Initialize composite.
14730         * troff/input.c (charinfo_to_node): Call
14731         environment::set_composite.
14732         * troff/node.c (make_composite_node, make_glyph_node): Use the
14733         plain version of the tfont if the environment is composite.
14735         * troff/node.c (font_info::get_space_width): Additional argument
14736         giving space_size.  Handle constant space correctly. Scale by
14737         space_size unless constant spaced.
14738         (env_sentence_space_width): New function.
14739         * troff/node.h: Declare it.
14740         * troff/env.h (environment::get_space_size,
14741         environment::get_sentence_space_size,
14742         environment::get_narrow_space_width,
14743         environment::get_half_narrow_space_width): Make inline.
14744         (environment::get_space_width): Make inline.  Just call
14745         env_space_width.
14746         * troff/env.c: Delete definitions for funtions made inline.
14747         (environment::space_newline, environment::space): Use
14748         env_sentence_space_width(). Don't scale by space_size.
14749         * troff/node.h: Move declarations of env*space_width() functions
14750         into env.h.
14752 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14754         * macros/tmac.s (PS): Don't try to set negative indent.
14756 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14758         * pic/pic.y: Fix min function.
14760 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14762         * man/mdate.sh: Clear LANGUAGE.
14764 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14766         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14767         * pic/lex.c: New COMMAND keyword.
14768         * pic/pic.y (print_args, print_arg): New rules.
14769         (placeless_element): Use print_args for PRINT.
14770         New COMMAND element.
14772 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14774         * troff/input.c (terminal): Handle missing argument correctly.
14776         * pic/pic.y (text_expr): New rule.
14778         * pic/pic.y: Implement := operator.
14780 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14782         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14783         mdoc.
14785 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14787         * ps/devps/dingbatsrmap: Include this in the distribution.
14789         * macros/tmac.doc: Replace with new version from 2nd Networking
14790         Release. Fix loading of doc-* files.
14791         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14792         * macros/tmac.doc.old: New file.  Apply fixes that had been
14793         applied to old tmac.doc.
14794         * macros/tmac.andoc: Check that we're running under groff.
14795         * macros/Makefile: Rework.
14797 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14799         * tbl/table.h (format_type): 
14800         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14801         typedef to make these types visible at file scope.
14802         * Makefile: Add NESTED_TYPES configuration option.
14804         * troff/div.c (mark): At the top level use the value of
14805         nl_reg_contents rather than the current vertical position.
14807 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14809         * tty/tty.c: Implement \D for horizontal or vertical lines.
14810         (tty_printer::set_char): Use vec_used+2 as serial number.
14811         Don't allow size of vector to exceed USHRT_MAX-2.
14812         Split off part into...
14813         (tty_printer::add_char): New function.
14814         (tty_printer::draw): New function.
14815         (compare_glyph): Handle equal serial numbers.
14816         (tty_printer::end_page): Handle overstruck characters from \D.
14817         (main, usage): Implement -d option.
14819 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14821         * tbl/main.c (process_format):
14822         * eqn/text.c (split_text):
14823         * troff/input.c (token::next): Use inner block for declarations
14824         with initializers in switch statement.
14826 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14828         * pic/common.c (common_output::dash_line): Cope with zero-length
14829         lines.
14831 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14833         * Version 1.04 released.
14835 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14837         * macros/tmac.an (TH): Define a macro an-init to define variables
14838         based on command line arguments.
14839         (an-header): Call it.
14841 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14843         * Makefile (install.mm): Rename to install.dwbmm.
14845         * Makefile: Integrate mm.
14846         * mm: New directory.
14848 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14850         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14851         <sys/types.h>.
14853         * pic/troff.c (troff_output::simple_spline,
14854         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14855         shadowing parameter.
14857         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14859         * lib/ptable.h: Add explicit casts when converting from unsigned
14860         long to unsigned.
14862         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14863         * dvi/devdvi/Makefile: Install SA, SB.
14865         * refer/indxbib.c: Add declaration of mktemp.
14867         * refer/lookbib.c: Add declaration of isatty.
14869 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14871         * pic/lex.c (interpolate_macro_with_args):  While collecting
14872         arguments, keep track of whether we're in a string.
14874 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14876         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14877         down with \v, so as to avoid problems with top of page trap
14878         setting no space mode.
14880 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14882         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14884 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14886         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14887         Improve error message.
14889 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14891         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14892         printf("%03o");
14894 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14896         * groff.c (possible_command::execp): Always use _exit() after a
14897         failed exec.
14899         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14900         NO_SYS_WAIT_H   configuration options.
14901         * groff.c: Use these options.  Use POSIX-style macros to extract
14902         fields from the status returned by wait().
14904 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14906         * tbl/table.c (table::compute_separation_factor): Allow the
14907         separation factor to drop to 0.
14909 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14911         * refer/search.c: Include <errno.h>.
14913 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14915         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14917         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14918         C++. 
14920         * pic/lex.c (input_stack::bol): Move definition out of class body.
14922         * pic/main.c: On MSDOS munge argv[0].
14924         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14926         * lib/ptable.c (hash_string): Use unsigned long rather than
14927         unsigned.
14928         (next_ptable_size): Use unsigned rather than int.  Give an error
14929         message if we've hit the largest table size.
14930         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14931         table size.
14933         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14934         flags as const unisgned long rather than as enums.
14936         * pic/output.c: Deleted.
14938         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14940         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14941         Add additional argument.
14942         (line_entry::note_double_vrule_on_{left,right}): Set value of
14943         douvle_vrule_on_{right,left} flag according to argument.
14944         (simple_line_entry::simple_print,
14945         simple_line_entry::double_line_print): If adjacent to double vrule
14946         on a corner extend rather than shorten the rule by half the double
14947         vrule sep.
14949         * troff/number.c (parse_term): In checking for overflow, handle the
14950         case where the current horizontal position is negative.
14952 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14954         * pic/object.c (draw_arrow): Check for object having zero length.
14956 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14958         * eqn/main.c (do_file): Split off inline equation handling into...
14959         (inline_equation): New function.  Search for starting delimiter
14960         using...
14961         (delim_search): New function. Don't recognize a delimiter that
14962         occurs in the name of an escape sequence, number register, string
14963         etc.
14965 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14967         * eqn/delim.c (delim_box::compute_metrics): Don't call
14968         define_extensible_string if left is 0.
14969         (delim_box::output):  Don't print the left delimiter if left is 0.
14970         (delim_box::debug_print): Check for left == 0 before calling printf.
14972 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14974         * troff/Makefile (majorminor.c): Include only digits in
14975         minor_version.
14977 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14979         * refer/dirnamemax.c: new file.
14980         * refer/genlimits.c: Deleted.
14981         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14982         Don't check path length.
14983         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14984         * Makefile: Add PATHCONF_MISSING option.
14986         * refer/indxbib.c (get_cwd): New function.
14987         (main): Use get_cwd().
14988         * lib/getcwd.c: New file.
14989         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14990         GETCWD in SUBFLAGS.
14991         * lib/Makefile: Compile getcwd.o.
14993         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14994         userdict.
14996         * refer/indxbib.c (main): Check success of mktemp.
14998         * lib/tmpfile.c: New file.
14999         * lib/Makefile: Add tmpfile.c.
15000         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15001         * ps/ps.h: Delete declaration of mktemp().
15002         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15003         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15004         * driver/driver.h: No need now to include errno.h.
15006         * everywhere: Set errno to 0 before calling fopen().
15008         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15009         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15010         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15012 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15014         * troff/env.h (translate_space_to_dummy): Declare it.
15015         * troff/env.c (environment::space_newline, environment::space):
15016         If translate_space_to_dummy is set then make the width of spaces 0.
15017         * troff/input.c (translate): If the second character of a
15018         translation is a space, translate to unbreakable space.  If the
15019         first character is a space, set or clear translate_space_to_dummy
15020         according to whether the second character is \&.  Weird!
15022 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15024         * groff.c (run_commands): Don't use non-zero exit code because a
15025         command gets SIGPIPE.
15027         * groff.c, groff.sh: Use -mXps with -TXps.
15029         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15030         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15031         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15032         (ps_printer::special): New specials invis and endinvis.
15033         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15034         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15035         (ps_printer::end_page): Check that invis_count == 0.
15036         (ps_printer::invis_count): New member.
15037         (ps_printer::ps_printer): Initialize invis_count to 0.
15039         * troff/env.c (environment::hyphenate_line): Hyphenation
15040         indicator at beginning of word inhibits splitting after -, \(em
15041         etc.
15043         * pic/pic.y (element): Allow another element to follow } without
15044         any intervening separator.
15046 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15048         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15050 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15052         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15053         declaration of wait() in header files.
15054         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15056         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15058         * lib/lib.h: Declare return type of strerror as char *.
15060         * man/Makefile: Add g flag to sed substitutions.
15061         * Makefile (shgroff, bindist): Likewise.
15063 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15065         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15066         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15067         userdict.
15069 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15071         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15072         userdict.
15074 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15076         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15077         group.
15079 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15081         * troff/input.c (define_number_reg):  If currently undefined,
15082         don't define it if the argument is an invalid expression.
15084         * Makefile: Ignore return value of `if' commands without `else'
15085         parts.
15087         * Makefile: Split up CPPDEFINES into a series of separate
15088         configuration options.
15090         * troff/input.c (init_registers): Use time_t instead of long
15091         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15092         than passing pointer.
15093         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15095         * lib/Makefile (fontpath.h): Use gendef.
15097 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15099         * troff/input.c (input_iterator::shift): Delete argument name.
15100         * troff/node.c (suppress_output_file::really_begin_page,
15101         suppress_output_file::really_transparent_char, node::ascii_print,
15102         node::tprint): Delete names of unused arguments.
15104 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15106         * refer/label.y (string):  Pass $4 to command_error.
15108 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15110         * Version 1.03 released.
15112 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15114         * Makefile: Pass definition of SHELL in SUBFLAGS.
15116         * gendef: New file.
15117         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15118         ps/Makefile: Use gendef to construct header files that are
15119         constructed from the Makefile.
15121         * macros/Makefile: make all should build stripped version of tmac.e.
15123         * refer/Makefile (clean): Remove y.output.
15125 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15127         * ps/pfbtops.c (main): Add -v option which prints out a version
15128         number.
15129         * ps/Makefile (pfbtops): Link with libgroff.a.
15131 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15133         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15134         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15136         * refer/lkbib.c (main): Always terminate reference with blank
15137         line.
15138         * refer/lookbib.c (main): Likewise.
15140         * refer/linear.c (file_buffer::load): Check that the file is not a
15141         binary file.
15143         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15144         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15145         Delete second inclusion of <sys/param.h>.
15147 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15149         * troff/token.h (token::special): Deleted.
15151         * tbl/main.c (process_format): Rework so that opt->tab_char is
15152         recognized only when appropriate.
15154         * ps/Makefile (clean): Remove pfbtops.
15156 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15158         * lib/font.c (text_file::next): Don't return if we have got a
15159         blank line.
15161 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15163         * refer/refer.c (store_reference): Get hash code from old_table[i]
15164         when rehashing the table.
15166 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15168         * eqn/box.c (box::top_level): Save size and prev size using \R and
15169         restore it afterwards. Set the size to the size at the beginning
15170         of the line.
15171         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15172         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15174         * refer/Makefile (limits.h): Use ./genlimits.
15176 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15178         * refer/index.c: Delete declarations of stat() and fstat().
15180 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15182         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15184 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15186         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15188 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15190         * troff/input.c (token::get_char): Handle \e.
15192         * refer/linear.c: Delete declarations of fstat() and stat().
15194 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15196         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15197         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15199 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15201         * troff/input.c (do_define_macro): Improve error handling for end
15202         of file while defining macro.
15204 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15206         * eqn/box.h: Fix declaration of set_gsize.
15207         * eqn/box.c (set_gsize): Make argument const char *.
15208         (gsize): Declare as char *.
15209         * eqn/main.c (main): Don't convert gsize to int.
15210         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15212         * Version 1.02 released.
15214 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15216         * macros/tmac.andoc: New file.
15217         * macros/Makefile: Install tmac.andoc.
15219         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15220         operator new and delete on OP_DELETE_BROKEN not being defined.
15221         * Makefile: Mention OP_DELETE_BROKEN.
15223 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15225         * Makefile (bindist): Pass SUBFLAGS.
15227 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15229         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15231         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15232         parameter.
15234         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15236         * ps/ps.h, ps/psrm.c: Make comment_table and
15237         header_comment_table local to resource_manager::process_file.
15239         * groff.sh: With -TXps pass -printCommand option to gxditview.
15241         * groff.c (possible_command::print): Implement using
15242         append_arg_to_string.
15244         * xditview: Merge in new implementation with own ChangeLog.
15246 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15248         * groff.c (main): Implement PRINT_OPTION.
15249         (append_arg_to_string): New command.
15250         (device_table): Set PRINT_OPTION flag for Xps.
15252 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15254         * troff/groff.h: Rename to troff.h.
15256         * pic/lex.c (lookup_keyword, docmp): New functions.
15257         (get_token): Use new lookup_keyword.
15258         Don't include key.h.
15259         * pic/key.[ch], pic/pic.gperf: Deleted.
15260         * pic/Makefile: Remove gperf stuff.
15262         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15263         into output.h.
15264         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15266         * troff/Makefile, troff/node.c: Move definition of
15267         STORE_WIDTH into node.c.
15269         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15271 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15273         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15274         dvi/devdvi/texb.map: Add lq and rq.
15275         dvi/devdvi: Regenerate fonts.
15276         * ps/devps/textmap: Add lq and rq.
15277         * ps/devps: Regenerate fonts.
15278         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15279         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15281         * pic/object.c (position_rectangle): When checking radius
15282         cope with possiblity that width or height is negative.
15283         (box_object::box_object): Have separate xrad and yrad with
15284         signs matching signs of dim components.
15285         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15286         (box_object::print): With rounded boxes use absolute values
15287         for dim and rad arguments.
15289         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15290         in fontpath.h.
15292         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15294         * various files: Add explicit destructors to keep Saber CC +d
15295         happy.
15297 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15299         * eqn/box.c (box::top_level): Restore fonts correctly after
15300         font changes in line containing inline equation.  Also
15301         restore previous font as well as current font.
15302         * eqn/pbox.h: Define necessary string and register names.
15304         * troff/input.c (token::next): Case 'R' calls do_register.
15305         (do_register): New function.
15307 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15309         * groff.c, groff.sh: Support Xps device.  Allow each device
15310         to have a pseudo_name and a real_name.
15312         * groff.c (run_commands): Don't print `Broken pipe' messages.
15314         * ps/pfbtops.c: New file.
15315         * ps/Makefile: Add pfbtops.
15317         * troff/number.c (parse_term): Improved error message.
15319 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15321         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15323         * Makefile: Integrate refer.
15324         * refer: New directory.
15325         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15326         man/lkbib.man: New files.
15327         * man/Makefile: Support refer man pages.
15329         * lib/lib.h: Declare is_prime.
15330         * lib/prime.c: New file.
15332         * troff/input.c (macro_source): New function.
15333         (init_input_requests): Bind "mso" to macro_source.
15335         * troff/env.c (environment::possibly_break_line): Maintain
15336         pointer to pointer to node to be split in ndp so as to avoid
15337         using address of freed node.
15339         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15340         pointer to first node to be hyphenated in startp so as to
15341         avoid using address of freed node.
15343         * troff/env.c (class trie, class hyphen_trie): Make the
15344         elements of the trie be of type char not unsigned char.
15345         Declare arguments to be const char* instead of unsigned char *.
15346         
15347         * troff/env.c (hyphenate): Initialize hbuf[0].
15349         * troff/input.c (set_string): Declare p to be char * and cast
15350         *p to unsigned char when necessary.
15352         * troff/input.c (do_define_macro): Declare s to be const
15353         char*. Cast element to unisgned char when necessary, Declare
15354         d to be an int.  Handle EOF better.
15356         * troff/Makefile, troff/input.c: Different scheme for passing
15357         definitions of MACROPATH, HYPHENFILE and DEVICE.
15359 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15361         * tty/devascii/R.proto: Delete entry for em.
15362         * tty/devlatin1/R.proto: Likewise.
15364 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15366         * troff/input.c (translate): Stop when we get a space. Treat eof
15367         like newline.
15369         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15371 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15373         * tbl/main.c (process_format): A font name following a `f'
15374         modifier that starts with a digit can be only one character long.
15375         Also deal with EOF on the second character of the font name.
15377 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15379         * troff/input.c (token::next): Turn \~ into an
15380         unbreakable_space_node.
15381         * troff/node.c (unbreakable_space_node): New class.
15382         * troff/node.h: Declare it.
15384 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15386         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15387         it's >= 0, before outputting it as a single byte.
15389 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15391         * lib/font.c: Make font_char_metric::code an int.
15392         (font::get_code): Change return type to int.
15393         (font::load): Allow code to be arbitrary integer.
15394         * lib/font.h (font::get_code): Change return type to int.
15395         (font::number_to_index): Change argument type to int.
15396         * troff/input.c (token::next):  In case 'N', allow any value.
15397         Store value in token::val.
15398         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15399         (token::get_char, token::add_to_node_list, token::process): Get
15400         number from val.
15401         (charinfo::set_number): Change argument to int.
15402         (charinfo::get_number):  Require that NUMBERED flag be set.
15403         (get_charinfo_by_number): Store numbered characters not between 0
15404         and 255 in a dictionary.
15405         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15406         to int.
15407         (charinfo::number): Change type to int.
15408         (charinfo::set_number): Change type of set_number to int.
15409         * troff/node.c (troff_output_file::put_char_width,
15410         troff_output_file::put_char): Test whether character is numbered
15411         using charinfo::numbered().
15412         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15413         values of num.
15414         * lib/nametoindex.c: New implementation to cope with arbitrary
15415         number characters.
15417         * troff/input.c (token::operator==): Test val for
15418         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15419         TOKEN_SIZE.
15421         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15422         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15424 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15426         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15427         variable.
15429         * all Makefiles: rm targets of cp and >.
15431         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15432         it.
15434         * eqn/lex.c (def_table): Add dollar.
15436 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15438         * troff/input.c (do_width): Push back newline before closing delim
15439         like do_bracket.
15441 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15443         * groff.c (possible_command::prepend_arg): New function.
15444         (main): Prepend device -m option.
15445         * groff.sh: Put device -m options before command-line options.
15447 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15449         * macros/tmac.an (IP): Quote argument to TP.
15451         * ps/ps.c (main): New option -b, which sets...
15452         (broken_flags): New variable.
15453         (ps_printer::~ps_printer): Incorporate the setup section in the
15454         prolog if (broken_flags & NO_SETUP_SECTION).
15455         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15456         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15457         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15458         ps_printer::print_needed_font_comment,
15459         ps_printer::print_supplied_font_comment,
15460         ps_printer::print_include_font_comments,
15461         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15462         ps_printer::read_download_file, read_document_fonts, add_font,
15463         skip_line, parse_fonts_arg, document_font::document_font,
15464         document_font::~document_font, document_font::download,
15465         ps_output::include_file):  Deleted.
15466         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15467         rather than %!PS-Adobe-2.0.  Make calls to
15468         resource_manager::need_font for each font that we used. Replace
15469         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15470         print_supplied_font_comment, print_needed_font_comment by call to
15471         resource_manager::print_header_comments. Output %%Orientation
15472         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15473         Don't output the prolog directly.  Instead call
15474         resource_manager::output_prolog.  Only define #copies when ncopies
15475         > 1.  Delete calls to print_include_font_comments  and
15476         download_fonts.  Add call to resource_manager::document_setup.
15477         (ps_printer::do_file): Call resource_manager::import_file instead
15478         of including it ourselves.
15479         (ps_printer::do_import): Likewise.  Also don't call
15480         merge_import_fonts. Push userdict on the dictionary stack before
15481         and pop it afterwards.
15482         Move declaration of ps_output into ps.h.
15483         * ps/psrm.c: New file implementing resource_manager class.
15484         * ps/ps.h: New file declaring ps_output and resource_manager
15485         classes.
15486         * ps/devps/zapfdr.ps:
15487         * ps/devps/symbolsl.ps:
15488         * ps/devps/prologue:  Use 3.0 conventions.
15489         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15490         Add default definition of BROKEN_SPOOLER_FLAGS.
15491         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15492         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15494 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15496         * etc/grog.pl: New file.
15497         * Makefile (GROG): New variable.
15498         Add GROG to SUBFLAGS.
15499         * etc/Makefile (GROG): New variable.
15500         (install.nobin): Install $(GROG) rather than grog.sh.
15502 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15504         * eqn/special.c (special_box::compute_metrics): Make the input and
15505         output strings the same.  Get the new height and depth from the
15506         predefined height and depth registers.  Also make subscript kern
15507         and skew available.
15508         (special_box::compute_subscript_kern, special_box::compute_skew):
15509         New functions.
15511         * eqn/box.c (pointer_box::compute_skew,
15512         simple_box::compute_metrics, box::top_level)
15513         * eqn/text.c (prime_box::compute_metrics,
15514         prime_box::comput_subscript_kern)
15515         * eqn/limit.c (limit_box::compute_metrics):
15516         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15517         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15518         negative numbers in `nr' requests with a leading 0.
15520 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15522         * eqn/special.c: New file.
15523         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15524         Add new rule for simple.
15525         * eqn/lex.c (token_table): Add SPECIAL.
15526         * eqn/box.h: Declare make_special_box.
15527         * eqn/Makefile: Add special.[co].
15529 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15531         * ps/devps/prologue: Possibly set packing to true while defining.
15532         Create grops dictionary here.  Initialize local variables before
15533         defining procedures.
15534         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15535         the dictionary stack. Set strokeadjust and overprint to false if
15536         the relevant operators are defined.
15537         (PEND): New procedure.
15538         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15539         prologue.  Do everything else in the setup section.
15540         (ps_printer::do_import): Just call PBEGIN and PEND around the
15541         picture. Also push userdict before, and pop it afterwards.
15543 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15545         * troff/node.c (bracket_node::tprint): Brackets were being printed
15546         1m too low.
15548         * macros/tmac.an (SH, SS): Set fill mode.
15550 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15552         * troff/div.c (top_level_diversion::begin_page): Set
15553         high_water_mark to 0.
15555 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15557         * man/mdate.sh: New file.
15558         * man/mdate.c: Deleted.
15559         * man/Makefile: Use mdate.sh instead of mdate.
15560         (mdate): Deleted.
15562         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15564 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15566         * man/mdate.c: New file.
15567         * man/*.man: Replace modification date by @MDATE@.
15568         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15569         (mdate): New target.
15571         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15572         Remove illegal input characters.
15574 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15576         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15578 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15580         * troff/div.c (begin_page): Change behaviour when
15581         !first_page_begun and !break_flag.
15583         * troff/input.c (do_name_test): Return 0 if argument is empty.
15585         * troff/input.c (read_long_escape_name): Require closing ] to be
15586         at same input level as opening [.
15588         * troff/input.c (read_increment_and_escape_name): New function.
15589         (get_copy, process_input_stack): Use this for \n.
15591 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15593         * troff/div.c (top_level_diversion::begin_page): Ignore the
15594         current value of page_number if !first_page_begun.
15596         * groff.c (main): Fix declaration of buf.
15598         * troff/input.c (do_name_test): New function.
15599         (token::next): Implement \A.
15600         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15601         (token::description, token::add_to_node_list, token::process):
15602         Handle TOKEN_ESCAPE.
15603         * troff/token.h: New token TOKEN_ESCAPE.
15605 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15607         * pic/main.c (do_picture): Allow space before and after filename
15608         following `<'.  Check that the filename is not empty.
15610 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15612         * Version 1.01 released. 
15614         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15616         * dvi/tmac.dvi: ftr HR to H.
15618         * macros/tmac.e: Round up computation of $r.
15620         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15621         Use \n(.s instead of \n[.s].
15623         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15624         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15625         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15626         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15627         short names in the char definitions.
15629         * ps/tmac.ps: Don't give up completely in compatibility mode.
15630         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15631         quote in front of \n(.s. Add u to factors inside \s[...].
15633 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15635         * tty/tmac.tty: Call the nroff request.
15637         * macros/tmac.e ((x, )x):  Better definitions that work properly
15638         in a diversion.
15639         (@0, @1): Helper macros for (x.
15641         * macros/tmac.e ($s, hl): Use \l rather than \D.
15643         * tty/tmac.tty: Make it work better in compatibility mode.
15644         (pchar): Rename to tty-char.
15646         * macros/tmac.e (@E): New macro.
15647         (r, i, b, rb, bi): Use @E.
15649         * macros/tmac.e (@F): Don't use (;...) syntax.
15651         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15652         it was modified for groff.
15654         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15656         * macros/tmac.e (<., .>): Removed.
15657         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15659         * macros/tmac.e: Remove check that groff is being used.
15661         * macros/tmac.e (@C): Change families only if using groff; turn
15662         compatibility mode off while changing familes. Save compatibility
15663         mode before changing families and restore it afterwards.
15665         * macros/tmac.e (@h): Remove test for offset + line length.
15667         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15668         (lo, th, ac): Define to call @S instead of using als.
15670         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15671         the ratio of the vertical spacing to the point size in units
15672         expressed as a percentage.  Use these instead of $10r and $10R,
15673         Delete $10r and $10R.
15675         * lib/font.c (font::load): In default computation of space_width,
15676         divide by sizescale.  Use scale_round.
15678         * macros/tmac.an (TP): Don't call `nf'.
15679         (an-do-tag): Don't call `fi'.
15681 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15683         * troff/input.c (process_input_stack): Handle the case where
15684         spaces at the beginning of an input line are followed by a
15685         newline.
15687 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15689         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15690         * groff.sh: Use pic -x with the dvi device.
15692         * dvi/devdvi/FontMakefile (H): Don't use -s.
15694         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15695         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15696         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15697         in FONTS.
15699 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15701         * ps/psfig.diff: New file.
15702         * ps/tmac.psfig: New file.
15704 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15706         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15707         (]-): Don't call ref*do-tl.
15709         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15711         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15712         (fn@do-FS): Rename to fn*do-FS.
15714         * troff/input.c (transparent_translate): New function.
15715         (process_input_stack): Apply transparent_translate before calling
15716         diversion::transparent_output(unsigned char).
15718 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15720         * troff/input.c (do_define_macro): Define the macro before calling
15721         skip_line.
15723         * xditview/Makefile: Add DEVICES variable.  Change install target
15724         to use this.
15726 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15728         * groff.c (run_commands): Handle the possibility that there are
15729         child processes other than those forked by us.
15731 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15733         * lib/string.c (string::append): New function.
15734         * lib/stringclass.h: Declare it.
15736 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15738         * eqn/main.c (main): New option -N which sets
15739         no_newline_in_delim_flag. 
15740         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15741         in delimiters.
15742         * groff.c (main): Pass -N on to eqn.
15743         (help, synopsis): Mention -N.
15744         * groff.sh: Implement -N.
15746 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15748         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15749         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15750         (XP): Allow as initializer.
15752 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15754         * troff/env.c (environment::wrap_up_field): If field_spaces are
15755         non-zero and we have a current_tab, subtract padding from
15756         tab_distance.  If this makes tab_distance <= 0, use the next tab
15757         stop instead.  If there isn't any next tab or it's a left tab,
15758         wrap up the current tab.
15759         (environment::start_field): Initialize tab_precedes_field.
15760         (environment::wrap_up_tab): If there's a current field, update
15761         pre_field_width, field_distance and tab_precedes_field.
15762         * troff/env.h (environment::tab_precedes_field): New member.
15764 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15766         * ps/ps.c (ps_printer::do_file): New function.
15767         (ps_printer::special): Bind to `file' special.
15768         (ps_printer::do_exec): Set ndefined_styles to 0.
15770 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15772         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15773         Avoid stripping first character from the start of unrecognized
15774         escapes.  Use lex_error instead of error to report errors.
15775         * eqn/lex.c (get_token): Rework handling of escapes.
15776         (lex_error): Move declaration into...
15777         * eqn/eqn.h.
15779         * xditview/xditview.c (main): Make -page option work.
15781         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15783 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15785         * macros/tmac.s (B2): Correct size of box.
15787 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15789         * macros/tmac.s (B2): Postpone drawing the box until in the
15790         top-level diversion.
15792         * tty/tmac.tty: Add font translations for C, CR, CW.
15794         * groff.c (synopsis, help): Document -i.
15795         * groff.sh: Implement -i.
15797         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15798         Simplify the construction of SN.
15800         * troff/number.c (parse_term): Give `|' a higher precedence.
15801         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15802         accordingly.
15804         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15806 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15808         * lib/string.c (string::move): New function.
15809         * lib/stringclass.h: Declare it.
15811 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15813         * troff/env.c (distribute_space): Add optional argument
15814         `force_forward'.
15815         (environment::wrap_up_field): Call distribute_space with
15816         `force_forward' argument of 1.
15818 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15820         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15821         Inline it.  Move reallocation into...
15822         (string::grow1): New function.
15823         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15824         dependencies to include library header files.
15825         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15827 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15829         * macros/tmac.s (@NH): Use the same number registers than -ms does
15830         for the heading level counters.  Use the same string that -ms does
15831         for the number for this heading.
15833 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15835         * lib/new.c (operator new): Cast result of malloc to char *.
15837         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15838         is not null.
15840 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15842         * groff.c (main): Support -i.
15844 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15846         * pic/pic.h: Include <osfcn.h>.
15848         * ps/ps.c: Add declaration of mktemp.
15850         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15851         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15852         argument as union wait *.
15853         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15854         argument to union wait *.
15856 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15858         * tty/tmac.tty: Add definition of \(co.
15860         * pic/object.c (make_arc): Only increase radius when radius
15861         strictly less than d.
15862         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15863         more than once.
15865         * troff/env.c (environment::environment(symbol),
15866         environment::environment(const environment *)):  Initialize
15867         input_trap_count.
15869 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15871         * tbl/main.c (main): Add exit(0).
15873         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15875         * pic/main.c (main):
15876         * eqn/main.c (main):
15877         * tbl/main.c (main):
15878         * etc/soelim.c (main):
15879         * driver/printer.c (printer::~printer):
15880         * troff/node.c (real_output_file::~real_output_file,
15881         real_output_file::flush):  Check for errors on stdout.
15883         * most files: Add 1991 to copyright notice.
15885         * macros/tmac.s: Don't test \n(.x and \n(.y.
15887         * troff/input.c (token::next): Rename `escape_char' label to
15888         `handle_escape_char' and `normal_char' label to
15889         `handle_normal_char'.
15891 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15893         * groff.c (main, synopsis, help): Support -a option.
15894         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15895         to trflags while parsing options.
15897 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15899         * troff/number.c (parse_term): With `m', `M' and `n' scale
15900         indicators, convert scale factor to hunits before scaling.
15902 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15904         * lib/font.c (scale_round): Better test for overflow when n is
15905         negative.
15907 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15909         * tbl/main.c (process_format): Add second argument of type
15910         options*. Change callers.  Allow opt->tab_char as well as '\t'
15911         between format items.
15913 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15915         * macros/tmac.an (PD): With no arguments, make sure register PD is
15916         at least \n[.V].
15917         (TH): Call PD with no argument, instead of setting register PD
15918         directly.
15920 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15922         * Version 1.00 released.
15924 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15926         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15928         * dvi/devdvi/DESC: Mount CW instead of CR.
15930         * dvi/tmac.dvi: Add definition of \(tm.
15932         * dvi/devdvi/texsy.map: Add lh, and rh.
15933         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15934         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15936         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15937         * dvi/devdvi/Makefile: Install H.
15938         * dvi/devdvi/H: New file.
15940 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15942         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15943         be 0.
15945 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15947         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15949         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15951         * macros/tmac.s (@EN): Handle the case where the equation is empty
15952         but the label is not.
15954 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15956         * troff/groff.h: New warning category WARN_SPACE.
15957         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15958         WARN_SPACE to warning_table.
15959         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15960         is longer than two characters and is not defined, but the first
15961         two characters do make a defined name.
15963         * PROBLEMS: New file.
15965         * CHANGES: New file.
15966         * README-0.6, README-1.00: Deleted.
15968         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15969         * xditview/devX75/Makefile: Make devX75-12.
15970         * xditview/devX100/Makefile: Make devX100-12.
15972         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15973         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15975 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15977         * README-0.7: Rename to README-1.00.
15979         * macros/tmac.pic: New file.
15980         * macros/Makefile (install.nobin): Install tmac.pic.
15982 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15984         * troff/env.c (hyphen_word): Correct the test for whether the
15985         token is a hyphen.  Reset npos to 0.
15987         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15989 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15991         * macros/tmac.s (ds*common-end): Call par*reset.
15992         (PE): Likewise.
15993         (par@reset-indent): Deleted.
15995         * macros/tmac.s (@IP): Divert the label.
15997 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15999         * xditview/draw.c (setGC): Use a line width of .1m rather than
16000         .04m by default; round rather than truncate value.
16002         * tbl/table.c (class empty_entry): New class.
16003         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16004         (table::add_entry): Represent empty entries by objects of type
16005         empty_entry.
16006         (table_entry::line_type): Return -1.
16007         (table::determine_row_type): Ignore entries with line_type 0.
16008         Treat type -1 as non-lines.
16010 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16012         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16013         macros/tmac.s: Rename \(-d to \(Sd.
16015 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16017         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16018         * xditview/libXdvi/DviChar.c: Likewise.
16019         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16021 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16023         * troff/div.c (top_level_diversion::begin_page): Call
16024         init_output() if the_output is 0.
16026 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16028         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16029         ESCAPE_c.
16030         (get_copy): Turn \E into ESCAPE_E.
16031         (token::process, asciify): Handle ESCAPE_E.
16033         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16034         (RD): New macro.
16035         (DS): Implement `.DS R'.
16037 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16039         * macros/tmac.s (FS): New macro.
16041         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16043         * macros/tmac.s (cov*tl-init): Remove after first execution
16044         instead of aliasing to @nop.  Call top of page macro explicitly
16045         instead of setting trap; call @init first.  Set pg@top as top of
16046         page macro.
16047         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16048         cov*auto-init as top of page trap. 
16049         (TL, LP): Do a break instead of calling cov*tl-init.
16050         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16051         @FE; in this case also give a warning and always start another
16052         page. No need to set pg@top here.
16053         (cov*tl-init): Rename to cov*first-page-init.
16055         * macros/tmac.s (RP): Do `.pn 0'.
16056         (cov*tl-init): With RP format don't do `.pn 0'.
16058         * macros/tmac.s (pg@cs-top): Set no space mode.
16060         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16061         (cov*ab-init): Alias TL, AU and AI to these.
16063 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16065         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16066         (@EN): Do nothing unless \n[dl] is > 0.
16068 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16070         * pic/object.c (ellipse_object::radius): New function.
16072         * VERSION: Change version to 0.7.
16074         * tbl/table.c (block_entry::do_divert): Declare return type as
16075         void.
16076         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16078 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16080         * troff/column.c: New file.
16081         * troff/Makefile: Corresponding changes.
16083         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16084         Friend of vunits.
16086         * troff/div.c (top_level_diversion::space): If the space causes
16087         the first-page transition and springs a trap, truncate the space
16088         to 0.
16090 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16092         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16093         the document.
16095         * pic/troff.c (troff_output::line_thickness,
16096         troff_output::set_fill): Do a horizontal motion to compensate for
16097         the width of the \D escape sequence.
16099 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16101         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16102         (not X75).
16104         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16105         to printf.
16107         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16108         Supply empty definition.
16109         (text_entry::simple_print, simple_text_entry::simple_print):
16110         Delete declarations.
16111         (table::add_entry): Represent empty entries by objects of type
16112         `simple_entry'.
16114 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16116         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16118         * tbl/table.c (left_text_entry::add_tab): New function.
16120         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16121         initialize like LP.
16123 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16125         * troff/env.c (environment::start_field): Give an error message if
16126         there is no next tab.
16128 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16130         * troff/env.c (hyphenate): Skip initial elements with zero
16131         hyphenation code.
16133         * macros/tmac.s (par@init): Keep VS in points rather than units.
16135 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16137         * pic/main.c (main): Implement `-c' option.
16138         * pic/output.h: Declare make_tpic_output().
16139         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16140         protected.
16141         (tpic_output): New class.
16142         (tpic_output::tpic_output, tpic_output::set_pen_size,
16143         tpic_output::command, make_tpic_output): New functions.
16145 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16147         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16148         if they're not already defined.
16149         * tbl/table.c (init_output): Don't test \n(.g.
16151         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16152         `d', `r' and `c' conditions even in compatibility mode.
16154 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16156         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16157         box.
16159 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16161         * troff/env.h (environment::prev_line_interrupted): New member.
16162         (environment::get_prev_line_interrupted): New function.
16163         * troff/env.c (environment::newline): Set prev_line_interrupted.
16164         (environment::environment(const environment *),
16165         environment::environment(symbol)): Initialize
16166         prev_line_interrupted.
16167         * troff/input.c (process_input_stack): Don't give special
16168         treatment to space and newline at the beginning of the line if the
16169         previous line was interrupted.
16171 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16173         * eqn/eqn.y: Disallow PRIME by itself.
16174         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16175         PRIME.
16176         (def_table): Remove definition of '.  Define prime to be `.
16178         * eqn/eqn.y: Split off part of rule `script' into a new rule
16179         `nonsup'.
16181 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16183         * macros/tmac.s ({, }): New string aliases.
16185 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16187         * README-0.7: New file.
16189 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16191         * macros/tmac.s: New file.
16192         * man/groff_ms.man: New file.
16193         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16194         * Makefile.bd: Similarily.
16195         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16196         definition of TMAC_S.
16197         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16198         * macros/TODO: New file.
16200 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16202         * troff/env.c (right_justify): New function.
16203         (init_env_requests): Bind this to request "rj".
16204         (center_lines): Set right_justify_lines to 0. If we get a bad
16205         integer, center 1 line.
16206         (environment::environment(symbol), environment::environment(const
16207         environment *)): Initialize right_justify_lines.
16208         (environment::get_right_justify_lines): New function.
16209         (init_env_requests): Bind this to number_register ".rj".
16211         * troff/env.c (environment::choose_breakpoint): Implement
16212         hyphenation_margin and hyphenation_space.
16213         (environment::get_hyphenation_space,
16214         environment::get_hyphenation_margin): New functions.
16215         (init_env_requests): Bind these to .hys and .hym.
16216         (hyphenation_space_request, hyphenation_margin_request): New
16217         functions
16218         (init_env_requests): Bind these to hys and hym.
16219         (environment::environment(symbol), environment::environment(const
16220         environment *)): Initialize hyphenation_margin and
16221         hyphenation_space.
16222         * troff/env.h: Corresponding changes to class environment.
16224 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16226         * troff/div.c (blank_line): Always do a break.
16228         * eqn/box.c (do_text): Turn off escapes while appending text to
16229         string.
16231 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16233         * troff/input.c (while_break_request, while_continue_request): New
16234         functions.
16235         (init_input_requests): Bind these to "break" and "continue".
16236         (while_depth, while_break_flag): New variables.
16237         (while_request): Update while_depth.  Break out of loop if
16238         while_break_flag is set.
16240 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16242         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16243         rather than 0.
16245 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16247         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16249         * stringify: New file.
16250         * Makefile (groff.o): Use stringify.
16252         * xditview/tmac.X: Remove definition of \(rn.
16253         * xditview/libXdvi/DviChar.c: Remove radicalex from
16254         Adobe_symbol_map.
16256 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16258         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16259         (alphabetic_block_entry::alphabetic_block_entry,
16260         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16261         New functions.
16262         (block_entry::divert): Split off body into ...
16263         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16264         from the line length; also update the span width to dl+2n, and the
16265         alphabetic span width to dl.
16267         * driver/input.c (do_file):  While reading argument to D command,
16268         when expanding buffer, multiply szp by sizeof(int) rather than 2
16269         in the argument to memcpy.
16271         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16272         width of alphabetic columns.
16274 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16276         * troff/node.c (lookup_family): Supply second argument to lookup.
16278         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16279         search, return immediately if v is 0.
16281         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16282         (troff_output::start_picture): Set this reg.
16283         (troff_output::end_picture): Remove this reg
16284         * eqn/box.c (box::extra_space): Don't produce `\x's if
16285         EQN_NO_EXTRA_SPACE_REG is defined.
16287         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16288         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16289         character.
16291 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16293         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16294         requests.
16296         * troff/div.c (top_level_diversion::top_level_diversion):
16297         Initialize page_number to 0.
16299 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16301         * groff/troff (environment::environment(const environment *)):
16302         Initialize name to e->name, rather than "anonymous".
16304 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16306         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16307         requested_page.  Split middle part into ...
16308         (FindPage): New function.
16309         (SetValues): If we don't yet know the last page, and the requested
16310         page is greater than the current page, call FindPage.
16311         Update the font_map_string before doing this.
16313         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16314         Translate \(lh and \(rh into left and right double arrows.
16316         * troff/node.c (class hyphen_inhibitor_node): New class.
16317         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16318         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16319         hyphen_inhibitor_node::type,
16320         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16321         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16322         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16323         word.
16325 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16327         * troff/node.h (dummy_node::get_hyphenation_type,
16328         transparent_dummy_node::get_hyphenation_type):  Declare them.
16329         * troff/node.c: (dummy_node::get_hyphenation_type,
16330         transparent_dummy_node::get_hyphenation_type): New functions.
16332 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16334         * xditview/libXdvi/draw.c: If M_PI not defined after including
16335         math.h, then define it.
16337         * xditview/Makefile: Add definition of AR. Pass it to the submake
16338         in libXdvi.
16339         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16341 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16343         * troff/dictionary.h (object_dictionary::alias): Declare return
16344         value as int.
16345         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16346         if the old name was defined.
16347         * troff/input.c (alias_macro): Give a warning if the old name was
16348         not defined.
16349         * troff/reg.c (alias_reg): Likewise.
16351 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16353         * troff/input.c (token::next): Delete implementation of \R.
16355         * macros/Makefile: Strip comments from tmac.e while installing it.
16357         * troff/input.c: New variable `nroff_mode'.
16358         (troff_request, nroff_request): New functions.
16359         (init_input_requests): Bind `troff' and `nroff' to troff_request
16360         and nroff_request.
16361         (do_if_request): Compute results of t and n conditions from
16362         nroff_mode.
16364         * text/text.c (split_text): Fix typo in >=.
16366         * eqn/lex.c: Add definition of `==' to def_table.
16368 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16370         * pic/tex.c (tex_output::start_picture): Change the definitions of
16371         \graph and \graphtemp so that they work properly with Plain TeX.
16373         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16374         argument to `ar' is not less than the first.
16376         * pic/pic.y: Allow a comma between elements of the variable list
16377         in the argument to `reset'.
16379         * pic/object.c (arc_object::arc_object): Fix computation of
16380         radius.
16382         * eqn/main.c (main): Add exit(0).
16384 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16386         * troff/div.c (begin_page): Test no_space_mode after doing the
16387         break, but still push the page ejector cookie before doing the
16388         break.  Also set the next page number after doing the break.
16389         
16390         * xditview/xditview.c (NewFile): Don't set the title and icon name
16391         if this is the first file and its name is `-'.
16392         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16393         the X75 and X100 devices.
16394         (main): If a device has the XT_OPTION flag set and there's exactly
16395         one file argument, pass the driver -xrm and -title options to set
16396         the icon name and window title to the name of the file.
16398         * troff/env.c (environment_switch): If there was an argument but
16399         it wasn't a valid number or name, then pop an environment but
16400         don't give an error message on underflow.
16402         * troff/number.c (start_number): Correct spelling in error message.
16404         * troff/input.c (token::delimiter): Don't print an error message
16405         if err is false.
16407         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16408         ParseDrawFunction if dw->display_enable is true.
16410 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16412         * pic/pic.y: Parse text positioning like normal attributes, so as
16413         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16414         positioning attribute.
16416 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16418         * tbl/main.c (process_data): When in state START while reading a
16419         text block, don't change to state MIDDLE if c is a newline.
16421 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16423         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16424         so as to avoid shadowing parameter.
16426 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16428         * tbl/table.c (trim_space): Deleted.
16429         (table::add_entry): Don't call trim_space.
16431 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16433         * VERSION: Change version to 0.6.
16435         * troff/number.c (parse_expr): Make == work.
16437 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16439         * man/grog.man: New file.
16440         * man/Makefile: Add grog.n to MAN1PAGES.
16441         * etc/grog.sh: New file.
16442         * etc/Makefile: Install grog.sh as grog.
16444 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16446         * troff/input.c (token::next): Implement \E.
16448 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16450         * xditview/tmac.X: Change font translations to match tmac.ps.
16452         * troff/input.c (non_empty_name_warning): Don't give a warning if
16453         `\{' terminates the name.
16455 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16457         * ps/devps/symbol.diff: New file.
16458         * ps/devps/FontMakefile: Mention symbol.diff.
16460 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16462         * troff/node.c (font_position): Use get_long_name to read the
16463         external_name.
16465         * troff/env.c (environment_switch): If we get a number that's < 0
16466         or >= NENVIRONMENTS, treat it like a name.
16467         Change NENVIRONMENTS to 10.
16469         * troff/groff.h: Remove definition of FONTS_MAX.
16470         * troff/node.h (class font_family): Make map a pointer instead of
16471         an array. Add a map_size member. Make it a class. Make nm const
16472         and public. Make invalidate_fontno a friend.
16473         * troff/node.c: Define font_table_size. Make font_info a pointer
16474         rather than an array.
16475         (class troff_output_file): Allocate font_position dynamically. Add
16476         nfont_positions member.
16477         (troff_output_file::set_font): Grow font_position if necessary.
16478         (troff_output_file::~troff_output_file): Delete font_position.
16479         (troff_output_file::troff_output_file): Allocate font_position.
16480         (grow_font_table): New function.
16481         (troff_output_file::really_begin_page,
16482         troff_output_file:really_copy_page): Use nfont_positions rather
16483         than FONTS_MAX.
16484         (mount_font_no_translate, mount_style): Call grow_font_table if
16485         necessary.
16486         (font_family::font_family): Allocate map.
16487         (font_family::make_definite): Grow map if necessary. Use
16488         font_table_size instead of FONTS_MAX.
16489         (font_family::~font_family): New function.
16490         (invalidate_fontno): Use font_family::map_size.
16491         (get_fontno, env_space_width, env_half_narrow_space_width,
16492         env_narrow_space_width, symbol_fotno, is_good_fontno,
16493         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16494         FONTS_MAX.
16495         (next_available_font_position): Never return 0.
16497 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16499         * ps/tmac.ps: Add font translations for compatibility with dpost.
16501 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16503         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16504         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16505         Move definitions baseline_sep, shift_down, column_sep,
16506         matrix_side_sep into...
16507         * eqn/box.c: Add them to param_table.
16508         * eqn/pbox.h: Add declarations to pbox.h.
16510         * troff/input.c (set_string): Cast value to unsigned char *.
16512         * troff/token.h (process_input_stack): Declare it static before
16513         declaring it a friend.
16515 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16517         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16518         and bottom.
16519         * dvi/devdvi/EX: Regenerate.
16521         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16522         transparent.
16524 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16526         * eqn/lex.c: In defaults_table, make definition of `dot' call
16527         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16528         accents.
16530         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16531         argument.
16532         (for_input::get, for_input::peek): Use this.
16533         (do_for): Add by_is_multiplicative argument.
16534         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16535         Change semantic value of optional_by to be a double plus a flag
16536         saying whethet the by clause is multiplicative.
16538         * eqn/lex.c (get_delimited_text): Remember location of start of
16539         definition.  Improve error handling when EOF is encountered.
16541         * lib/font.h: Rename handle_x_command to
16542         handle_unknown_font_command.
16543         * lib/font.c (font::load): Call handle_unknown_font_command for
16544         any unknown command in the font description file.  Don't call
16545         handle_x_command. Include the name of the command in the argv.
16546         Improve message for unknown command after kernpairs or charset
16547         command.
16548         * ps/ps.c (ps_font::handle_x_command): Rename to
16549         handle_unknown_font_command.  Remove message about `x download'
16550         command.  Give error message for wrong number of arguments.
16551         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16552         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16553         handle_unknown_font_command. Give an error message for wrong
16554         number of arguments.  Rename design_size to designsize.
16555         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16556         checksum', `designsize' instead of `design_size'.
16558 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16560         * eqn/*.[chy]: Change underaccent to uaccent.
16562         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16563         give it the same precedence as ACCENT.
16564         * eqn/other.c (make_underaccent_box): New function.
16565         * eqn/box.h: Declare it.
16566         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16567         def_table.
16569 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16571         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16572         (parse_init): Call reset_all.
16573         (define_variable): When defining scale reset only those
16574         pre-defined variables that are scaled.
16575         (defaults_table): Add `scale' as non-scaled value.
16577         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16578         together with the text; allow any number of positioning words;
16579         allow center as a positioning word.
16581         * pic/object.c (output::compute_scale): Get picture maximum height
16582         and width from variables called maxpswid and maxpsht.
16583         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16585 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16587         * pic/object.c (object_spec::make_text): Multiply textht by number
16588         of text items.
16590         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16591         occur.
16592         (do_sprintf): New function.
16593         (pic.gperf): Add sprintf token.
16594         (text, sprintf): New rules.
16596         * pic/pic.y: `rand()' with no arguments returns a random number
16597         in the range [0,1).
16599         * pic/pic.y: Allow a bare expression to be an attribute: change
16600         precedences to support this.  Change optional_ordinal rule to
16601         optional_ordinal_last to avoid reduce/reduce conflict.
16602         * pic/object.c (object_spec::object_spec): Initialize direction.
16604         * pic/pic.y: Implement ^ operator meaning exponentiation.
16606         * troff/node.h: Add default argument to mount_font.
16607         * troff/node.c (font_position): Read an optional third argument
16608         giving the external_name.
16609         (mount_font): Add optional argument giving the external_name.
16610         (mount_font_not_translate): Have additional argument giving
16611         external name.  Use this name to load the font.  Pass both names
16612         to font_info::font_info.
16613         (font_info::font_info): Have additional argument giving
16614         external_name.
16615         (class tfont): New member external_name.
16616         (font_info::get_tfont): Use external name to construct tfont_spec.
16618 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16620         * eqn/lex.c (init_table): Add argument giving device.  Define
16621         name of device to be "1".
16622         (do_ifdef): Counts as true if the argument has been defined with
16623         `define'.
16624         * eqn/main.c (main): Call init_table with device argument. Make
16625         device local to main.
16626         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16627         of device.
16629         * pic/lex.c (get_delimited): Allow text to be delimited by
16630         matching {}s.  Don't recognize ending delimiter within a string.
16632         * troff/input.c (get_delim_name): New function.
16633         (token::next): Implement \C.
16635         * lib/font.c (font::load): Grok ---.  Add an alias for each
16636         character based on its code.
16637         (font::get_code_width): Deleted.
16638         * lib/font.h (class font): Declare font::number_to_index().
16639         Remove declaration of font::get_code_width.
16640         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16641         to indices of named characters.
16642         (font::number_to_index): New function.
16643         * troff/input.c (font::number_to_index): New function.
16644         (get_charinfo_by_number, charinfo::get_number,
16645         charinfo::set_number): New functions.
16646         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16647         (token::process, token::description, token::get_char,
16648         token::add_to_node_list, token::operator==): Handle
16649         TOKEN_NUMBERED_CHAR.
16650         * troff/charinfo.h: Declare get_charinfo_by_number,
16651         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16652         charinfo class.
16653         (charinfo::numbered): New function.
16654         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16655         * troff/env.h (class environment): Remove declaration of ...
16656         * troff/env.c (environment::make_numbered_char_node): Deleted.
16657         * troff/node.c (make_numbered_node): Deleted.
16658         (class numbered_glyph_node): Remove.
16659         (troff_output_file::put_char_width, troff_output_file::put_char):
16660         Handle numbered chars.
16661         (troff_output_file::numbered_char): Removed.
16662         (tfont::get_code_width): Removed.
16663         (make_glyph_node): Don't search special fonts for numbered
16664         characters.
16665         * troff/node.h: Remove declaration of make_numbered_node.
16666         * driver/input.c (do_file): Handle N command.
16667         * driver/printer.h: Add declaration of ...
16668         * driver/printer.c (printer::set_numbered_char): New function.
16669         * dvi/tfmtodit.c (main): Generate unnamed entries.
16670         * ps/devps/afmtodit: Likewise.
16671         * xditview/xtotroff.c (MapFont): Likewise.
16672         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16674         * tbl/main.c (process_format): If multiple widths are specified
16675         for a column but all the widths are the same, don't give an error
16676         message.
16678         * tbl/table.c (table::do_row): If the current row is all lines and
16679         the stuff doesn't contains a line, mark the top of the row after
16680         printing stuff before the row.  If the current row is not all
16681         lines and the stuff doesn't contain a line, don't unnecessarily
16682         mark the top of the row before printing the stuff.
16683         
16684 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16686         * troff/groff.h: Remove MAX_PATH.
16687         * troff/input.c (open_file): Dynamically allocate space for the
16688         path.
16689         (open_mac_file, process_macro_file): Corresponding changes.
16691 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16693         * troff/node.h (class output_file): Make copy_file pure.  Add
16694         vspace method ifdef COLUMN. Add is_printing method.
16695         * troff/node.c: Add class printing_reg. Add class
16696         real_output_file. Derive other output_file classes from
16697         real_output_file; in these classes rename begin_page to
16698         really_begin_page, print_line to really_print_line, copy_file to
16699         really_copy_file, transparent_char to really_transparent_char.
16700         Move output_file::flush to real_output_file. Add printing member
16701         to class output_file.
16702         * troff/div.h: Remove printing member from top_level_diversion.
16703         Add vspace member function to class diversion ifdef COLUMN. Add
16704         some declarations ifdef COLUMN.
16705         * troff/div.c (top_level_diversion::copy_file,
16706         top_level_diversion::transparent_output,
16707         top_level_diversion::output): Don't test printing member before
16708         output.
16709         * troff/input.c: Handle initial variable_space_request ifdef
16710         COLUMN.
16711         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16712         but comment it out.
16714 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16716         * troff/div.c (diversion::need): Make any space forced.  If we
16717         sprung a trap, set truncated_space to minus the distance to the
16718         trap and set needed_space to the amount that was needed.
16719         (top_level_diversion::space): A forced space turns no_space_mode
16720         off.
16721         (class constant_vunits_reg): New class.
16722         (init_div_requests): Implement number registers .trunc and .ne
16723         using constant_vunits_reg.
16724         (class truncated_space_reg): Deleted.   
16726         * troff/div.h: Don't have a no_space_mode member in diversion.
16727         Instead have it in top_level_diversion.
16728         * troff/div.c (diversion::diversion): Don't initialize
16729         no_space_mode.
16730         (top_level_diversion::top_level_diversion): Initialize
16731         no_space_mode.
16732         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16733         (macro_diversion::output): Don't clear no_space_mode.
16735         * troff/input.c (diverted_space_node::reread): Don't call
16736         environment::do_break.  In fill mode, act like a blank line.
16737         (diverted_copy_file_node::reread): Don't call
16738         environment::do_break.
16740         * troff/div.c (blank_line): New function.
16741         * troff/div.h: Declare it.
16742         * troff/input.c (process_input_stack): Call it.
16744         * troff/div.c (truncated_space_reg::get_string): New function.
16745         (init_div_requests): Bind to .trunc.
16746         (space_request, top_level_diversion::space,
16747         top_level_diversion::output, macro_diversion::space,
16748         macro_diversion::output): Update truncated_space.
16749         (macro_diversion::output): Redo calculations when trap sprung.
16750         (macro_diversion::output, macro_diversion::space): No need for
16751         trap_flag.
16753         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16754         after truncating post line spacing.
16756 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16758         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16759         defined as a procedure rather than as an operator.
16761 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16763         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16765 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16767         * troff/div.c (top_level_diversion::output): Merge
16768         output_file::print_line and output_file::end_of_line member
16769         functions.
16770         * troff/div.h (class output_file):
16771         * troff/node.c (troff_output_file::print_line,
16772         troff_output_file::end_of_line, output_file::end_of_line,
16773         ascii_output_file::print_line, suppress_output_file::print_line):
16774         Corresponding changes.  
16776 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16778         * troff/input.c (token::next): Don't give a warning for `\.'.
16780         * troff/env.c (environment::get_center_lines): New function.
16781         (init_env_requests): Bind number register .ce to it.
16782         * troff/env.h: Declare it.
16783         * tbl/table.c (table::init_output): Define reset macro to restore
16784         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16785         Then do .ce 0.
16786         (table::print): If center option not given, then imply center
16787         option if SAVED_CENTER_REG > 0.
16789 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16791         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16792         Troff.ps from DOWNLOAD.
16793         
16794         * troff/Makefile: Change comment in DEFINES to avoid confusing
16795         System V make.
16797         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16798         code.  Don't try to catch errors with stopped.
16799         (check_line_lengths): New function.
16800         * ps/devps/prologue (EXEC): Deleted.
16801         (EBEGIN, EEND): New procedures.
16803 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16805         * troff/input.c: Include request.h before node.h.
16806         * troff/node.c: Likewise.
16807         * troff/env.c: Likewise.
16808         * troff/div.c: Likewise.
16809         * troff/node.h (class special_node): Store argument as a macro
16810         rather than a char *.
16811         * troff/node.c (special_node::special_node, special_node::copy):
16812         Grok this.
16813         (special_node::~special_node): Deleted.
16814         (special_node::tprint): Deleted.
16815         (special_node::tprint_start, special_node::tprint_end,
16816         special_node::tprint_char): New functions.
16817         (troff_output_file::special): Deleted.
16818         (troff_output_file::start_special, troff_output_file::end_special,
16819         troff_output_file::special_char): New functions.
16820         * troff/input.c (special_node::tprint): New function.
16821         (do_special): Use macro not char *.
16822         (do_transparent_macro): Deleted.
16823         (token::next): Don't call do_transparent_macro.
16825         * troff/input.c (token::next): Add 'Y' case.
16826         (do_transparent_macro): New function.
16827         * troff/node.c (troff_output_file::special): Handle newlines with
16828         argument using new continuation convention.
16829         * driver/input.c (get_string): Cope with continuation convention.
16830         (do_file): Don't call skip_line after calling get_string(1).
16831         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16832         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16833         arg.
16834         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16835         with +.
16837 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16839         * troff/input.c (asciify): By default, illegal input characters
16840         should return empty string.
16842         * troff/input.c (copy_file): Handle first page transition like title.
16843         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16845         * troff/input.c (token::next): Improve error message for EOF after
16846         escape character.
16847         (input_char_description): New function.
16848         (get_char_for_escape_name): Use input_char_description.
16849         (token::next): Warn about unrecognized escape sequences.
16850         (warning_table): Add WARN_ESCAPE.
16851         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16852         accordingly.
16854         * troff/token.h: Remove declaration of process_input_stack.
16856         * troff/input.c: Remove declaration of init_hyphen_requests.
16857         * troff/request.h: Correct spelling in declaration of same.
16859         * troff/input.c (token::next): Check whether escape_char is 0.
16861 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16863         * groff.c (main, usage, help): Implement -P and -L options.
16864         * groff.sh: Likewise.
16866         * troff/input.c (token::next): Use some gotos to avoid code
16867         duplication.
16869         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16870         Avoid calling symbol::symbol if name empty.
16872 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16874         * troff/input.c (init_input_requests): Make \n(.x return the major
16875         version number and \n(.y return the minor version number.
16876         * troff/Makefile: Construct file majorminor.c defining
16877         major_version and minor_version automatically from ../VERSION.
16879         * troff/node.c (class glyph_node): Make operator new and operator
16880         delete public.
16881         (class ligature_node): Similarily.
16883         * troff/input.c (operator==(const macro &, const macro &)): New
16884         function.
16885         (non_interpreted_node::same): Use this.
16886         (string_iterator::string_iterator): Make macro& argument const.
16888         * troff/input.c (input_iterator::get): New function. Don't make
16889         asciify_macro or class non_interpreted_node friends of class
16890         input_iterator.
16891         (non_interpreted_node::interpret): Use input_iterator::get.
16892         (asciify_macro): Likewise.
16894         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16895         ~non_interpreted_node): Deleted.
16896         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16897         Deleted.
16899         * troff/symbol.h: Make all symbol member functions const.
16901         * lib/strtol.c: New file.
16902         * lib/Makefile: Add strtol.c.
16903         * Makefile: Define STRTOL as strtol.o to include strtol in
16904         libgroff.a.
16906 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16908         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16910 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16912         * troff/input.c (do_special): Use input_level.
16914         * troff/token.h (TOKEN_BACKSPACE): New token.
16915         (token::backspace): New function.
16916         * troff/input.c (token::description, token::next, token::process):
16917         Grok TOKEN_BACKSPACE.
16918         (do_special): Turn TOKEN_BACKSPACE back into \b.
16920         * troff/token.h (token::leader): New function.
16921         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16923         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16925         * troff/input.c (do_special): Use token::description in error
16926         message.
16928 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16930         * troff/input.c (decode_args): Combine quoted and
16931         quote_input_level variables. Make it a for (;;) loop.
16933         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16935         * troff/input.c (read_long_escape_name): The test for whether to
16936         expand buffer was off by 1.
16937         (read_string): Similarily.
16939 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16941         * troff/input.c: Use `const int' rather than `static const int'.
16943         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16944         (macro_diversion::copy_file): New function.
16945         * troff/node.h: New class diverted_copy_file_node.
16946         * troff/node.c: Implement it.
16947         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16948         first page transition by pushing a diverted_copy_file_node.
16949         * troff/input.c (token::next, process_input_stack): Don't handle
16950         COPY_FILE_REQUEST.
16952 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16954         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16955         whether space widths need adjusting.
16957         * troff/charinfo.h: Generalize translated_to_space to
16958         special_translation so as to allow translation to \&.
16959         * troff/input.c (translate): Allow translation to \&.
16960         (charinfo::*): Corresponding changes.
16961         * troff/node.c (make_node, node::add_char): Corresponding changes.
16962         * troff/node.h (dummy_node::dummy_node): Allow optional first
16963         argument.
16965         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16966         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16967         TOKEN_REQUEST.
16968         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16969         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16970         (token::process): Grok that.
16971         * troff/input.c (copy_file): Handle first page transition like
16972         title by pushing a COPY_FILE_REQUEST cookie.
16973         (token::next, process_input_stack): Grok that.
16974         * troff/node.h (output_file::copy_file): Add x and y arguments.
16975         Make it non-pure.
16976         * troff/div.c (top_level_diversion::copy_file): Supply them.
16977         * troff/node.c (troff_output_file::copy_file): Add x and y
16978         arguments; moveto specified position.  Invalidate font_position
16979         array after copying file.
16980         (output_file::copy_file): New function.
16981         (suppressed_output_file::copy_file, ascii_output::copy_file):
16982         Removed.
16983         * troff/input.c (transparent_file): New function.
16984         (init_input_requests): Bind to "trf".
16985         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16986         (process_input_stack): Likewise.
16988         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16990         * troff/node.c (init_node_requests): New number registers .kern
16991         pointing to global_kern_mode, and .lg pointing to
16992         global_ligature_mode.
16994         * troff/node.c (ligature): Don't change it if we get a bad
16995         integer.
16997         * troff/input.c (do_define_string): Don't strip tabs.
16999         * troff/input.c (asciify_macro): Make the string_iterator auto.
17001         * troff/node.c (init_font_requests): Rename to...
17002         (init_node_requests):
17003         * troff/node.h: Change declaration.
17004         * troff/input.c (main): Change call.
17006         * troff/input.c (node::reread, diverted_space_node::reread): New
17007         methods.
17008         (process_input_stack): Call reread rather than
17009         get_diverted_space_node.
17010         * troff/node.c (node::get_diverted_space_node,
17011         diverted_space_node::get_diverted_space_node): Removed.
17012         * troff/node.h: Declare reread methods instead of
17013         get_diverted_space_node methods. Make `n' member private.
17014         * troff/input.c: (token::diverted_space): Removed.
17015         * troff/token.h: Removed declaration.
17016         
17018 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17020         * eqn/script.c (script_box::compute_metrics): Don't let
17021         SUP_RAISE_FORMAT become negative.
17023         * tbl/table.c (table::do_row): Entries that don't end in the
17024         this row shouldn't make the row non-blank.
17025         
17026         * tbl/table.c (table::make_columns_equal): Only set the width of
17027         columns which are marked as equal.
17028         
17029         * tbl/main.c (process_data): Before issuing excess data error,
17030         if last character was a newline unget it; then get it again after
17031         the error.  Also include the contents of the entry in the message.
17033         * groff.c: New file.
17034         * Makefile: Build groff from groff.c.  Make it possible to use
17035         either groff.sh or groff.c as groff.
17036         * Makefile.bd: Similarily.
17038 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17040         * groff.sh: Don't delay expansion of $@ in assignment to files.
17041         Remove occurrences of \".
17043 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17045         * all Makefiles: Simplify and rearrange.
17047         * Makefile: Handle fmod like malloc.
17048         * lib/Makefile: Similarily.
17049         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17051         * Makefile: Rename OPTIMISE to OPTIMIZE.
17053         * groff.sh: Remove assignment to PATH.
17054         * Makefile: Remove SHPATH variable.
17055         * Makefile.bd: Similarily.
17057         * groff.sh: Add -V option to print the pipeline instead of
17058         executing it.
17060 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17062         * lib/font.c: Split off file searching into ...
17063         * lib/fontfile.c: New file.
17065         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17067 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17069         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17070         Also change misleading comment.
17071         (table::do_vspan): Change similarily misleading comment.
17072         * tbl/main.c (process_data): A format row with an explicit `s'
17073         uses up a data line, even if all the other columns are `_' or `='.
17075         * troff/input.c (token::description): Fix description of
17076         TOKEN_DUMMY and TOKEN_EMPTY.
17078 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17080         * groff.sh: Fix description of -Z in help message.
17082 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17084         * pic/object.c (object_spec::make_object): Allow negative and zero
17085         line thicknesses.
17086         * pic/pic.y: Give linethick default value of -1.0.
17087         * pic/troff.c (troff_output::troff_output): Initialize
17088         last_line_thickness to BAD_THICKNESS.
17089         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17090         (troff_output::line_thickness): Canonicalize negative thicknesses
17091         to RELATIVE_THICKNESS.
17092         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17093         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17094         to -1.0.
17095         (tex_output::start_picture): Set pen_size to -2.0.
17097         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17098         0, then use 0 linewidth.
17099         (ps_printer::ps_printer): Initialize line_thickness to -1.
17101         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17103         * ps/devps/symbolchars: Remove `or'.
17104         * ps/tmac.ps: Implement \(or with .char.
17106         * ps/devps/symbolchars: Move most characters into textmap.
17107         * ps/devps/textmap: Add names for troff bracket characters. Remove
17108         ul, ru, br, bv.
17110         * ps/devps/TSymbol.ps: Removed.
17111         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17112         * ps/tmac.ps: Do with .char what TSymbol did.
17113         * ps/devps/download: Remove TSymbol.
17115         * ps/devps/T: Removed.
17116         * ps/devps/Troff.ps: Removed.
17117         * ps/devps/Troff.afm: Removed.
17118         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17119         * ps/devps/download: Remove Troff.
17120         * ps/devps/FontMakefile: Remove T target.
17121         * ps/devps/DESC-A4: Remove T from font list.
17122         * ps/devps/DESC-letter: Likewise.
17124         * troff/input.c (macro_to_node): Rename to ...
17125         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17126         character's definition while processing it.
17127         * troff/node.c (node::add_char, make_node): Change calls to
17128         macro_to_node accordingly.
17130         * troff/input.c (token::next): Translate \_ to \(ul.
17132         * tty/devascii/R.proto: Add `|'.
17133         * tty/devlatin1/R.proto: Likewise.
17135 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17137         * man: Put the version number in all the man pages.
17139 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17141         * Makefile.bd: New file.
17142         * README.bd: New file.
17144         * VERSION: New file.
17145         * lib/version.c: Removed.
17146         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17147         in clean target.
17149         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17150         environment variable.
17152         * all Makefiles: Split install target into install.bin for
17153         binaries, and install.nobin for everything else.
17154         * Makefile: Add bindist target.
17156         * man/afmtodit.man: New file.
17157         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17158         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17159         in BINDIR.
17160         * ps/Makefile: Pass BINDIR to make install in devps.
17162         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17163         the space character.
17165         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17167 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17169         * ps/ps.c: Redo font downloading.
17170         * ps/devps/download: New file.
17171         * ps/devps/Makefile: Add download to DEVICEFILES.
17172         * ps/devps/afmtodit: Remove -d option.
17173         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17174         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17175         * ps/devps/zapfdr.ps: Likewise.
17176         * ps/devps/TSymbol.ps: Likewise.
17178 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17180         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17182 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17184         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17185         then strip the first line if it starts with %.
17186         * Makefile: Add a comment about this.
17188         * man/tfmtodit.man: New file.
17189         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17190         * dvi/Makefile: Install tfmtodit in BINDIR.
17192         * dvi/tfmtodit.c (usage): Mention -v option.
17194 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17196         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17197         * troff/node.c (troff_output_file::transparent_char): Don't call
17198         flush_tbuf.
17200         * eqn: Add check_tabs method to most box classes.
17201         * eqn/box.c (box::top_level): Call check_tabs.
17203         * eqn/script.c (script_box::output): Use \Z.
17204         * eqn/limit.c (limit_box::output): Use \Z.
17206         * eqn/box.c (box::top_level): Use itoa.
17208 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17210         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17211         * dvi/devdvi/Makefile: Don't make links to CW.
17213         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17214         HX, HD.
17215         * xditview/tmac.X: Likewise.
17217         * troff/node.c: Add font translation feature.
17218         (get_font_translation): New function.
17219         (symbol_fontno): Translate the font name.
17220         (mount_font_no_translate): Rename to mount_font to this.
17221         (mount_font): New function.
17222         (font_family::make_definite): Call mount_font_no_translate instead
17223         of mount_font.
17224         (mount_style): Translate the font name.
17225         (font_translate): New function.
17226         (init_font_requests): Bind "ftr" to font_translate.
17228         * ps/devps/prologue (SN): New procedure that rounds a position to
17229         the nearest (pixel + (.25,.25)).
17230         (DL): Use SN to round endpoints.
17232         * lib/version.c: Changed version to 0.5.
17234 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17236         * Makefile: Move definition of PAGE to the very beginning, so that
17237         people are less likely to miss it.
17239 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17241         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17243         * troff/env.c (environment::choose_breakpoint): Make `can't find
17244         breakpoint' error a warning of type WARN_BREAK.  Change message to
17245         `can't break line'.
17246         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17247         code 040000.
17248         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17249         WARN_BREAK in DEFAULT_WARNING_MASK.
17251         * tty/tmac.tty: Add definition of \(+-.
17253         * groff.sh: Remove `--' option to set command.
17255         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17257         * ps/devps/eqnchar: Better definition of cdot using md.
17258         * dvi/devdvi/eqnchar:  Likewise.
17259         * xditview/devX100/eqnchar:  Likewise.
17260         * xditview/devX75/eqnchar: Likewise.
17261         * eqn/lex.c: Add definition of cdot.
17263 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17265         * troff/input.c (get_optional_char): New function.
17266         * troff/input.c (set_page_character): Use get_optional_char(),
17267         rather than has_arg() and tok.get_char(1).
17268         * troff/env.c (tab_character, leader_character, hyphen_char,
17269         field_characters): Likewise.
17270         (margin_character): Likewise.  Also always delete the
17271         margin_character_node.
17273         * troff/input.c (token::get_char): Use token::description.
17275         * troff/input.c (has_arg): Don't skip over tab and \}.
17276         * troff/number.c (start_number): Give a warning if the number
17277         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17279 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17281         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17282         functions.
17283         (get_name, get_long_name): Use these.  Rename `warn' argument to
17284         `required'.
17286         * troff/node.c (get_fontno): Test that the symbol is not null.
17288         * troff/input.c (token::description): New function.
17289         * troff/number.c (parse_term): Use token::description in `numeric
17290         expression expected' message.
17291         * troff/groff.h: Add WARN_MISSING.
17292         * troff/number.c (start_number): New function.
17293         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17294         get_incr_number): Use start_number().
17295         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17296         default.
17297         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17298         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17299         token::descripion.
17300         * troff/input.c (token::get_char): Use WARN_MISSING.
17301         * troff/input.c (token::delimiter): Use token::description.
17302         * troff/env.c (environment_switch): Back out Aug 3 change.
17303         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17304         warning.
17305         * troff/token.h (token::tab): New function.
17306         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17307         * troff/reg.c (alter_format): Likewise.
17308         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17310 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17312         * troff (most files): Redo warnings. Divide warnings into various
17313         categories; warning() has an additional first argument indicating
17314         the category it falls into.
17315         * troff/input.c (main): -w now takes an argument. New option -W.
17316         (enable_warning, disable_warning): New functions.
17318         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17319         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17321 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17323         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17324         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17325         * xditview/devX75/eqnchar: Likewise.
17326         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17328         * eqn/other.c: When bar or over applies to a single character
17329         don't produce an overline_box or an underline_box. Instead produce
17330         an accent_box or an underaccent_box, with the accent a line
17331         whose width is accent_width.  New classes underaccent_box,
17332         overline_char_box and underline_char_box.
17333         * eqn/box.h: Move overline_box, underline_box, accent_box class
17334         declarations into eqn/other.c. Add declarations of
17335         make_underline_box, make_overline_box, make_accent_box.
17336         * eqn/eqn.y: Call make_overline_box, make_underline_box
17337         make_accent_box instead of constructors.
17338         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17340         * eqn/other.c: Add accent_box::~accent_box.
17341         * eqn/box.h: Declare it.
17343         * groff.sh: With -Tps, use eqn -D.
17345         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17346         rather than \l.
17347         (underline_box::output): Similarily.
17348         (accent_box::output): Use \Z.
17350         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17351         bit smaller.)
17353 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17355         * troff/div.c (top_level_diversion::transparent_output(unsigned
17356         char)): Use asciify.
17357         * troff/input.c (asciify): Don't make it static.
17358         * troff/token.h (asciify): Declare it.
17359         
17360         * troff/input.c (get_name, get_long_name, token::get_char,
17361         token::delimiter): Add an extra default argument which says
17362         whether a warning should be printed.
17363         * troff: Pass a non-zero argument to one of these rather than
17364         printing a warning directly.
17366 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17368         * troff: Consistently use symbol::is_null.
17370         * troff/dictionary.h: Move some inline functions into
17371         dictionary.c.
17373         * troff/request.h: Move inline functions into input.c.
17374         (request_or_macro::invoke): Make it pure.
17376         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17377         * troff/input.c (init_input_requests): Use class constant_int_reg.
17378         (class compatible_reg): Deleted.
17379         * troff/div.c (init_div_requests): Use class constant_int_reg.
17380         (class last_post_line_extra_space_reg): Deleted.
17382         * troff/env.c (tab_character): Don't change the tab character if
17383         we get an invalid argument.
17384         (hyphen_char): Similarily.
17386         * troff/reg.c (alter_format): Check that nm is not null.
17388         * Makefile, groff.sh: Make it possible to customize the commands
17389         used for printing PostScript and dvi files. Also make it possible
17390         to customize the path used by groff.sh.
17392         * eqn/eqn.y: Make `left' right associative.
17394 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17396         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17397         don't have it.
17399         * pic/pic.h: Removed definition of INT_MAX.
17401         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17402         `return'.
17404         * troff/input.c (token::next):  Handle \R like \n.
17406 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17408         * ps/tmac.pc (PSPIC): Simplify.
17410         * troff/env.c (tab_stops::to_string):
17411         * pic/pic.y (object_type_name):
17412         * pic/troff.c (simple_output::line):
17413         * pic/tex.c (tex_output::spline):
17414         * pic/object.c (object_spec::make_object):
17415         * tbl/main.c (process_data):  Add cases to switch statements to
17416         avoid cfront warnings. (Some of these are spurious, since the
17417         switch already has a default case.)
17419         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17420         `ps-'.  Don't test systat; instead check number of arguments to
17421         ps-bb.
17423 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17425         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17427         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17428         Unlink the file as soon as we have opened it, so that we don't
17429         have to bother with signal handlers.
17430         (handler): Deleted.
17431         (fatal_error_exit): Deleted.
17432         (main): Don't call signal.
17434         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17435         can be ignored.
17436         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17438         * pic/pic.y:  If there is a label, or an nth construction before
17439         the first `.' in the argument to `with', ignore it and generate a
17440         warning.
17441         * pic/lex.c (lex_warning): New function.
17443         * tbl/table.c (table::init_output): In section keep and release
17444         macro, use 0 indent when diverting and the correct indent when
17445         rereading.
17447         * troff/input.c (interpolate_number_format): Do not interpolate
17448         anything if the number register is not defined.
17450         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17452 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17454         * ps/devps/prologue (PICTURE): Set components of graphics state to
17455         their default values.
17457         * ps/devps/text.enc: Add trademark
17458         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17459         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17460         * ps/devps/symbolchars: Add names for summation and product.
17462         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17463         suchthat. Add pp. Add upper-case letters.
17465         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17466         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17467         Upsilon.
17469         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17470         rA (right angle bracket) to ra.  Introduce names for double-headed
17471         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17472         * ps/devps/textmap: Likewise for ps device.
17473         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17474         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17475         * tty/devascii/R.proto: Likewise.
17476         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17477         \(uA, \(dA.
17478         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17480         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17482         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17483         def_table.
17485 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17487         * troff/div.c (when_request): Use symbol::is_null rather than
17488         has_arg to determine whether we have an argument.
17489         (change_trap): Remove the trap if we get an invalid number. Give
17490         an error if we don't get at least the macro name.
17491         (diversion_trap): Remove trap if we get an invalid name or number.
17493         * troff/env.c (environment_switch): Pop if we get an invalid
17494         symbol or numeric expression.
17496         * troff/input.c (do_define_macro):  If EOF is encoutered while
17497         defining the macro, do tok.next() before returning.
17499         * troff/token.h (has_arg): Move definition from here, to ...
17500         * troff/input.c (has_arg): ... here
17502         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17503         * troff/input.c (shift): Likewise.
17505         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17506         for `.c'.
17508         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17509         `..'.
17511         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17512         interpret_lf_args succeeds.
17514         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17515         \\.  This avoids problems with \$N.
17517         * groff.sh: Pass -C to preprocessors.
17519         * lib/lf.c (interpret_lf_args):  Be more flexible.
17521         * tbl/main.c (main): Add -C option.
17522         (table_input::get): Do not recognize TE if followed by character
17523         other than a space or newline unless -C option given.
17524         (process_input_file): Likewise for lf, TS.
17525         (process_data): Likewise for lf in text blocks.
17527         * eqn/main.c (main): Add -C option.
17528         (do_file): Don't recognize EQ, EN or lf if followed by character
17529         other than space or newline unless -C option given.
17530         * eqn/lex.c (file_input::read_line): Similarily.
17531         * eqn/eqn.h: Declare compatible_flag.
17533         * etc/soelim.c (main): Add -C option.
17534         (interpret_lf_args): Use version in libgroff.
17535         (do_file):
17537         * pic/main.c (main): Add -C option, which sets compatible_flag.
17538         (top_input::get), (top_input::peek):  If -C option not given,
17539         do not recognize .PS/.PE/.PF/.lf if followed by a character
17540         other than space or newline.
17541         * pic/lex.c (file_input::read_line): Similarily.
17542         * pic/pic.h: Add declaration of compatible_flag.
17544 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17546         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17548         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17549         derived from node.  New class space_char_hmotion_node.
17550         * troff/input.c (asciify_macro): New function.
17551         * troff/input.c (init_input_requests): New request `asciify' bound
17552         to asciify_macro.
17553         * macros/mm.diff: New file.
17554         * Makefile:  In install.mm target use `patch' to apply
17555         macros/mm.diff.
17557         * troff/input.c (macro::print_size): Just print the size in bytes.
17559         * troff/div.c (return_request): Correct the argument
17560         interpretation.
17562 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17564         * troff/node.h (class composite_node): Add sz member.
17565         * troff/node.c (composite_node::size): Return sz.
17566         * troff/input.c (macro_to_node):  Use the initial size in the
17567         environment as the size of the composite_node.
17569         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17570         default.
17572 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17574         * troff/div.c (change_trap): If we get a bad number expression,
17575         do nothing.
17577 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17579         * lib/matherr.c (matherr): Define this only if math.h defines
17580         TLOSS.
17582 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17584         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17585         no diversion trap return vunits(INT_MAX - vresolution).
17587 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17589         * troff/input.c (do_zero_width): New implementation that doesn't
17590         use a temporary environment. Use instead:
17591         (token::add_to_node_list): New function.
17592         * troff/env.c (environment::get_prev_char_height),
17593         (environment::get_prev_char_height),
17594         (environment::get_prev_char_skew): New functions.
17595         (environment::get_prev_char): New function.
17596         (environment::get_prev_char_width): Change to use get_prev_char.
17597         (init_env_request): Implement new registers .cht, .cdp, .csk.
17598         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17599         \Z being processed in a separate environment.
17601 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17603         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17605         * tbl/table.c (table::init_output): In the section release macro,
17606         give a warning message if the section won't fit on one page.
17608         * tbl/table.c (table::do_top): Emit table keep only if table is
17609         boxed.
17610         (table::do_bottom): Likewise for table release.
17611         (table::table), (table::add_vertical_rule):  Remove reference to
17612         keep member.
17613         * tbl/table.h: Remove keep member.
17615         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17616         SECTION_RELEASE_MACRO, if there's not enough space before the next
17617         trap to output the diversion, call T# ourselves, set
17618         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17619         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17620         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17621         vertical position and return to it before turning traps on again.
17622         
17623 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17625         * troff/node.c, troff/node.h: In classes derived from node,
17626         replace prev_char_width method by last_char_node method.
17627         * troff/env.c (environment::get_prev_char_width): Use
17628         node::last_char_node rather than node::get_prev_char_width.
17630         * Makefile: Added comment about -fno-inline on 68030-based
17631         Apollos.
17633         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17634         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17635         expressions using sizeof to int.
17636         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17638         * macros/tmac.e (TS):  Don't move @f back past the current
17639         position.
17641 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17643         * ps/ps.c (main): Buffer stderr.
17644         * dvi/dvi.c (main): Likewise.
17645         * tty/tty.c (main): Likewise.
17647         * ps/ps.c (ps_printer::do_import): Improve error handling.
17649         * troff/input.c (abort_request): Use asciify.
17651         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17652         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17653         type of first argument int rather than char.  This works around a
17654         bug on the 68030 based Apollo using g++ 1.37.1.
17656         * tbl/table.h (class table): Add `keep' member.
17657         * tbl/table.c (table::table): Initialize `keep'.
17658         (table::add_vertical_rule): Set `keep' to 1.
17659         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17660         (table::do_bottom): Likewise for table release macro.
17661         (table::do_row): Emit section keep macro even if the row is 0.
17663 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17665         * macros/tmac.e (@C): Preserve the font family across the change
17666         in environments.
17668 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17670         * lib/font.c: Initialize font::hor and font::vert to 1.
17671         (font::load_desc): Check the values of font::hor and font::vert.
17673         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17674         be included in a C compilation.
17675         (iftoa): Use INT_DIGITS. Include lib.h.
17676         (itoa): Likewise.
17677         (as_string): Likewise.
17678         * tbl/table.c: Removed definition of INT_DIGITS.
17679         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17680         * troff/input.c (input_input_requests): Likewise.
17681         * ps/ps.c (make_encoding_name): Likewise.
17682         (ps_printer::set_style): Likewise.
17683         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17685         * tty/devascii/R.proto: Map fm onto '.
17686         * tty/devlatin1/R.proto: Likewise.
17688 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17690         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17691         argument to \w is at a different input level.
17693         * tbl/table.c (table::init_output): Define a new macro
17694         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17695         transparently outputs itself.
17696         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17697         vpt.
17698         (table::do_row): Likewise.
17700         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17701         TRANSPARENT_STRING_NAME.
17703         * tbl/table.c (table::init_output): In the table release macro
17704         print an error message and don't produce any output if after
17705         issuing the need request the table still will not fit.  Also
17706         remove the diversion after bringing it back.
17708         * tbl/table.c (table::init_output): Define a new macro
17709         REPEATED_MARK_MACRO, like mk but if in a diversion also
17710         transparently outputs itself.
17711         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17712         is necessary because .TH might not call .T#.
17713         (table::do_top): Likewise TOP_REG.
17714         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17715         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17716         table header might contain just the two top rules.
17718 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17720         * troff/div.c: Implement new request `ptr' to print all traps.
17722         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17723         init_string_env_reg.
17724         * troff/env.c (class tab_reg): Deleted.
17726 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17728         * troff/div.c: New number register .pn returns the number of the
17729         next page as set by the pn request.
17731         * macros/tmac.an: Redid headers and footers.  Number each manual
17732         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17733         optional 5th argument to .TH which specifies the manual name and
17734         appears in the center of the header.  Understand the X, P and D
17735         registers like Sun.
17737 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17739         * troff/env.c (init_env_requests): New number register `.lt' to
17740         return the title length.
17742         * troff/node.h (class transparent_dummy_node): New class.
17743         * troff/node.c (class transparent_dummy_node): Provide member
17744         functions. 
17745         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17746         than a dummy_node.
17748         * troff/input.c (token::next): New escape sequence \).
17749         * troff/input.c (get_copy): Recognize \) in copy mode.
17751         * troff/input.c (input_stack::clear): New function.
17752         * troff/input.c (exit_request): Use input_stack::clear.
17754         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17755         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17757         * troff/env.c: Move set_page_character to input.c.  Move
17758         page_character to input.c also.
17759         * troff/env.c (title): Split off the reading of the parts of the
17760         title into read_title_parts.
17761         * troff/input.c (read_title_parts): New function.  Check the
17762         input_level when testing whether a token matches the delimiter.
17764         * troff/input.c (exit_request): New function.
17765         * troff/input.c (init_input_requests): Bind ex request to
17766         exit_request rather than exit_groff.
17768         * troff/input.c (exit_groff): Call tok.next() before
17769         process_input_stack().
17771 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17773         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17774         * troff/env.h: ditto.
17775         * troff/input.c: ditto.
17777         * troff/env.c (environment::is_empty): Test pending_lines.
17779         * troff/env.c (environment::have_pending_lines): Removed.
17781         * troff/input.c: Add request to flush pending lines from the
17782         environment.
17784         * troff/env.c, troff/env.h: Add automatic widow control feature.
17786         * troff/input.c (exit_groff):  Do process_input_stack() after
17787         do_break() but before setting exit_flag to 2.
17789         * troff/input.c: Remove FLUSH_PENDING_LINES and
17790         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17791         environment after END_TRAP token seen, but only if there aren't
17792         any more traps still unfinished.
17793         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17795 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17797         * troff/env.c: Rename the `retain_size' member of class
17798         pending_output_line to `no_fill'.
17800         * troff/env.c (title): When the line is output, make the
17801         retain_size argument !fill.
17803         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17804         * troff/node.c (space_node::get_breakpoints),
17805         (dbreak_node::get_breakpoints):  Fill this in.
17806         * troff/env.c:  Allow specification of maximum number of
17807         consecutive hyphenated lines.
17809         * troff/env.c (environment::is_empty): Add test for !current_tab.
17811 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17813         * troff/env.c (environment::hyphenate_line): Don't completely give
17814         up if the word is not to be hyphenated; continue so that breaks
17815         can be made at break_char_node's.
17817         * lib/lib.h: Only define INT_MAX if it's not already defined;
17818         undef INT_MIN if it's already defined.
17820         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17822         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17823         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17824         compiler.
17825         
17826         * macros/tmac.an (an-header): Set no-space mode.
17828         * macros/tmac.an (TH): Start a new page if necessary.
17830         * Started using ChangeLog at version 0.4.
17832 Local Variables:
17833 version-control: never
17834 coding: latin-1
17835 End: