* man/groff_char.man: Minor imrovements.
[s-roff.git] / ChangeLog
blob0113466107d23b8d625712acad506c235414452a
1 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
3         * man/groff_char.man: Minor imrovements.
5 2004-12-04  Werner LEMBERG  <wl@gnu.org>
7         * src/preproc/eqn/eqn.man: Revised.
9 2004-11-25  Werner LEMBERG  <wl@gnu.org>
11         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
12         groff source files.
13         Include config.h.
14         Include limits.h.
15         Remove X_NOT_STDC_ENV conditional.
16         (Version_string, program_name): New global variables.
17         (groff_flag): Removed.
18         (MapFont): Updated.
19         (usage): Take a stream as argument.
20         Use `program_name'.
21         Update all callers.
22         (main): Add `long_options' array for `--help' and `--version'.
23         Make `-g' a dummy option.
24         Handle `-v' and unknown options.
25         Remove unused `position' variable.
27         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
28         (XLIBS): Add LIBGROFF.
30         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
31         New files.
33         * src/devices/xditview/Dvi.c (default_font_map): Split into three
34         parts to avoid compiler warning.
35         (resources): Don't initialize with `default_font_map'.
36         (ClassInitialize): Initialize first element of `resources'.
38         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
39         Removed.
41         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
42         src/utils/pfbtops/pfbtops.man: Revised, updated.
44         * configure.ac: Generate src/utils/xtotroff/Makefile.
45         * configure: Regenerated.
47 2004-11-24  Werner LEMBERG  <wl@gnu.org>
49         First fixes to get produce HTML.
51         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
52         attribute.
54         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
55         (HR, LI): Use `HTML</p>', not `HTML'.
57         * doc/webpage.ms: Minor updates.
59 2004-11-23  Larry Kollar  <kollar@alltel.net>
61         Add option -S grohtml to determine the file split level.
63         * src/devices/grohtml/post-html.cpp (split_level): New global
64         variable.
65         (html_header::determine_header_level): Use split_level.
66         (main): Handle `-S' command line option.
67         Sort options.
69         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
71         * src/devices/grohtml/grohtml.man: Document it.
72         Sort options.
74         * NEWS: Document it.
76 2004-11-23  Y T  <doarhop@hotmail.com>
78         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
79         the volume and number refer entries.
81 2004-11-22  Werner LEMBERG  <wl@gnu.org>
83         * src/devices/grohtml/html-table.cpp
84         (html_table::emit_table_header): Don't emit `cols' attribute which
85         doesn't exist in HTML 4.0 and is thus invalid.
87         * NEWS: More minor fixes and updates.
89 2004-11-18  Werner LEMBERG  <wl@gnu.org>
91         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
92         (HTML</p>): Minor clean-up.
94         * tmac/groff_www.man: Updated.
96         * src/devices/grohtml/grohtml.man: Revised and updated.
98         * NEWS: Updated.
100 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
102         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
103         Fix space insertion.
104         (html_printer::do_links): Fix rules generation around automatic
105         heading links.
107         * tmac/www.tmac (LK): Use HTML-TAG-NS.
108         (HR): Simplify.
109         No longer emit empty line for non-HTML devices.
111 2004-11-17  Werner LEMBERG  <wl@gnu.org>
113         * doc/Makefile.in (prepare_examples, webpage.html): Handle
114         `groff.css'.
116         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
117         prepare_examples, webpage.html): Handle `groff.css'.
119 2004-11-15  Werner LEMBERG  <wl@gnu.org>
121         * NEWS, README, doc/webpage.ms: Updated.
123         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
125 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
127         * src/include/printer.h (printer): Remove virtual function
128         `round_width'.
129         Update all source files.
131         * src/devices/grohtml/post-html.cpp (html_printer): New member
132         function `round_width'.
134 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
136         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
137         column key letter suffix.
139 2004-10-14  Werner LEMBERG  <wl@gnu.org>
141         * Makefile.in (check): Depend on `site.exp' and `docheck'.
142         (docheck): Run dejagnu's `runtest' if it exists.
143         (site.exp): Create dejagnu configuration file.
145         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
147 2004-10-13  Werner LEMBERG  <wl@gnu.org>
149         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
150         src/devices/grohtml/post-html.cpp (make_val,
151         html_printer::handle_state_assertion): Fix compiler warnings.
153         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
154         (diversion::diversion): Fix order of initializers.
156         * src/roff/troff/div.h: Don't include `mtsm.h'.
158         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
159         (environment::environment): Fix order of initializers.
160         (environment::make_tag, environment::construct_format_state): Fix
161         compiler warnings.
163         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
164         (input_iterator::input_iterator, macro::macro): Fix order of
165         initializers.
167         * src/roff/troff/mtsm.cpp: Include only necessary header files.
168         (state_set::add, state_set::val): Fix compiler warnings.
170         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
171         (bool_value_state, int_value_state, units_value_state,
172         string_value_state): Remove comma after last element which causes
173         an error with g++ 3.3.3.
175         * src/roff/troff/node.cpp: Include `stringclass.h'.
176         (hline_node::hline_node, vline_node::vline_node,
177         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
178         warnings.
179         (zero_width_node::zero_width_node): Fix order of initializers.
181         * src/roff/troff/node.h: Don't include `mtsm.h'.
182         (hmotion_node): Fix compiler warnings.
184         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
186 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
188         * doc/groff.css: New file.
190         * doc/webpage.ms: Use `groff.css'.
191         Other small fixes.
193         * tmac/an-old.tmac (need_eo_h): New number register.
194         (TH): Emit `.eo.tl' tag after title.
195         (SH): Set `need_eo_h'.
196         (an-trap): Handle `need_eo_h'.
197         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
199         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
200         (TL): Always start diversion.
201         Updated.
202         (@AI): Always call `par@reset'.
203         (@AB): Update code for -Thtml.
204         (cov*tl-au-print): Handle -Thtml.
205         (par@reset): Handle `need_eo_tl', `need_eo_h'.
206         (@IP): Simplified.
207         (@IT-html): Removed.
208         (@SH): Set `need_eo_h' for -Thtml.
209         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
210         Set `need_eo_tl'.
211         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
212         Set `need_eo_h' for -Thtml.
213         (@EQ, @EN): Don't handle -Thtml specially.
214         (par@load-init): Don't handle -Thtml specially.
216         * tmac/www.tmac (www:paraspace): New macro.
217         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
218         (HTML</p>, HTML-TAG-NEXT): New macros.
219         (HnE): Emit tag `.eo.h' instead of break.
220         (HR): s/HTML-NS/HTML/.
221         (www-end-nowhere): End diversion only if `www-html' not set.
222         Emit `.eo.tl' tag.
223         (ULS, ULE): s|HTML|HTML</p>|.
224         (LI): Call `www:paraspace'.
225         (HEAD): New macro.
227 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
229         * src/roff/troff/request.h (macro): Make `p' public.
230         New variable `is_a_diversion'.
231         New member function `is_diversion'.
234         * src/devices/grohtml/html.h (simple_output): New member function
235         `force_nl'.
237         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
238         computation of `total'.
239         (tabs::check_init): New function.
240         (html_table::emit_table_header): Emit style data.
241         (html_table::insert_column): Improved.
243         * src/devices/grohtml/html-table.h: Updated.
245         * src/devices/grohtml/html-text.cpp (html_text::html_text):
246         Initialize `start_space' with TRUE.
247         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
248         cases.
249         (html_text::flush_text): Set `start_space' flag.
250         (html_text::uses_indent, html_text::remove_para_space,
251         html_text::get_alignment): New functions.
252         (html_text::push_para): Updated.
253         (html_text::do_para): Check for empty argument.
254         Don't set `space_emitted'.
255         (html_text::do_space, html_text::emit_space): Updated.
257         * src/devices/grohtml/html-text.h (tag_definition): New variable
258         `really_issued'.
259         (html_text): New member function `uses_indent', `remove_para_space',
260         `get_alignment'.
262         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
263         function.
264         (simple_output:nl): Always emit `\n'.
266         * src/devices/grohtml/post-html.cpp: Include `string.h'.
267         (BASE_POINT_SIZE): Removed.
268         (base_point_size, head_info): New global variables.
269         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
270         `is_eo_h'.
271         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
272         tags, respectively.
273         (page::add_and_encode): Pass additional parameter for tag flag.
274         (assert_pos): New structure.
275         (assert_state): New class.
276         (html_printer): Remove `indentation', `prev_indent'.
277         Add variables `troff_indent', `device_indent', `temp_indent'.
278         Add variables `seen_indent', `next_indent', `seen_pageoffset',
279         `next_pageoffset', `seen_linelenght', `next_linelength',
280         `seen_center', `next_center', `seen_space', `seen_break', `as'.
281         Add member functions `do_check_center', `do_space', `do_head',
282         `get_troff_indent', `restore_troff_indent', `handle_assertion',
283         `handle_state_assertion', `do_end_para', `set_char_and_width'.
284         Change argument to `do_fill' to `char *'.
285         Update constructor.
286         (html_printer::emit_raw): Call `shutdown_table'.
287         Use new functions.
288         (html_printer::do_center): Simplified.
289         (html_printer::do_title): Improved.
290         (html_printer::write_header): Emit one more newline.
291         Use new functions.
292         (html_printer::do_heading, html_printer::do_indent,
293         html_printer::do_eol, html_printer::do_tab_ts,
294         html_printer::do_tab, html_printer::do_tab0,
295         html_printer::calc_po_in, html_printer::next_horiz_pos,
296         html_printer::remove_courier_tabs,
297         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
298         Updated.
299         (html_printer::do_linelength, html_printer::do_pageoffset,
300         html_printer::do_indentation, html_printer::do_tempindent,
301         html_printer::do_tab_te): Simplified.
302         (html_printer::do_pointsize): Check whether point size is really
303         associated a `.tl' tag.
304         (html_printer::do_break): Rewritten.
305         (html_printer::troff_tag): Improved.
306         (html_printer::flush_globs): Updated.
307         (html_printer::lookahead_for_tables): Handle `is_br'.
308         Use new functions.
309         (html_printer::set_char): Check `sbuf_style.f'.
310         (html_printer::write_navigation): Use string comparison.
311         (html_printer::~html_printer): Emit `head_info'.
312         (html_printer::special): Rewritten.
313         (get_str, make_val): New functions.
314         (main): New option `s' to set the base point size.
316         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
318 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
320         * src/roff/troff/node.cpp: New extern `debug_state'.
321         Include `stringclass.h' and `mtsm.h'.
322         Implement new classes and class members from `node.h'.
323         (real_output_file): Make `fp' public.
324         (troff_output_file): New variables `cur_div_level' and `tag_list'.
325         Update constructors.
326         (troff_output_file::really_print_line): Check whether we should push
327         the current troff state and use the state at the start of the
328         invocation of this diversion.
329         (troff_output_file::add_to_tag_list): New member function.
330         (node::add_char): Handle `glyph_comp_np'.
332         * src/roff/troff/node.h: Include `mtsm.h'.
333         (node): New variables `state', `push_state', `div_nest_level',
334         `is_special'.  Update constructors, all descendants.
335         Pass additional argument to `add_char' member function.
336         New virtual member functions `is_tag', `debug_node',
337         `debug_node_list'.  Update all descendants.
338         (tag_node): New class for handling tags.
339         (output_file): Add variable `state'.
341 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
343         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
344         providing a minimal troff state machine to emit meta tags for the
345         post-grohtml device driver.
347         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
348         files.
350 2004-10-09  Werner LEMBERG  <wl@gnu.org>
352         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
354 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
356         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
358         * src/roff/troff/div.h: Include `mtsm.h'.
359         (diversion): New variables `any_chars_added', `needs_push',
360         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
361         `saved_suppress_next_eol', `modified_tag'.
362         New virtual member function `is_diversion'.  Update all descendants.
364         * src/roff/troff/div.cpp (diversion::diversion,
365         macro_diversion::macro_diversion): Updated.
366         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
367         `suppress_next_eol'.
368         (top_level_diversion::space): Handle `curenv->seen_space'.
369         (page_offset): Update tag handling.
370         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
372         * src/roff/troff/env.h (environment): Make `tabs' public.
373         Remove `ignore_next_eol', `emitted_node'.
374         Update `output_line', `output'.
375         New variables `seen_space', `seen_eol', `suppress_next_eol',
376         `seen_break'.
377         New member functions `construct_state', `make_tag',
378         `construct_format_state, `construct_new_line_state,
379         `dump_troff_state'.
380         Remove `add_html_tag', `make_html_tag'.
382         * src/roff/troff/env.cpp: New externs `suppress_push',
383         `get_diversion_state', `global_diverted_space'.
384         (pending_output_line): New variable `was_centered'.
385         Update constructor and all callers.
386         (pending_output_line::output): Call `curenv->construct_format_state'.
387         (environment::environment, environment::copy): Updated.
388         (environment::output): Handle `was_centered'.
389         (environment::add_char): Handle construct and diversion state.
390         (environment::add_node): Handle construct state.
391         (environment::newline): Handle `was_centered'.
392         (environment::output_line): Updated.
393         (environment::possibly_break_line): Updated.
394         Update tag handling.
395         (environment::add_html_tag): Replaced with...
396         (environment::make_tag): New function.
397         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
398         (environment::dump_troff_state): New debugging function.
399         (environment::construct_state, environment::construct_format_state,
400         environment::construct_new_line_state): New functions.
401         (environment::do_break): Updated.
402         Handle `global_diverted_space'.
403         (environment::handle_tag): Update tag handling.
404         (point_size, fill, do_break_request): Don't call `add_html_tag'.
405         (no_fill): Don't call `add_html_tag'.
406         Set `suppress_next_eol'.
407         (center, right_justify, line_length, indent, temporary_indent,
408         set_tabs):
409         Update tag handling.
411         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
412         (input_iterator): New variables `is_diversion', `diversion_state'.
413         Update constructors.
414         (input_stack): New member functions `get_div_level',
415         `get_diversion_state', `check_end_diversion'.
416         New variables `div_level', `diversion_state'.  Initialize them.
417         (suppress_push, global_diverted_space): New global variables.
418         (input_stack::finish_get, input_stack::finish_peek,
419         input_stack::remove_boundary, input_stack::end_file,
420         input_stack::clear, input_stack::pop_macro): Call
421         `check_end_diversion'.
422         (input_stack::push): Handle `div_level' and `diversion_state'.
423         (get_diversion_state): New function.
424         (diverted_space_node::reread): Handle `global_diverted_space'.
425         (macro::macro): Update constructors.
426         (macro::is_diversion): New function.
427         (macro::operator=): Set `is_a_diversion'.
428         (string_iterator): New member function `is_diversion'.
429         (string_iterator::string_iterator): Update constructors.
430         (string_iterator::fill): Set `div_nest_level'.
431         (macro_iterator): New member function `is_diversion'.
432         (do_if_request): Handle `suppress_push'.
433         (tag, taga): New functions.
434         (init_input_requests): Add `tag' and `taga' requests.
436 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
438         * src/include/font.h (font): New member function
439         `get_image_generator'.
440         New variables `unscaled_charwidths' and `image_generator'.
442         * src/libs/libgroff/font.cpp (font::get_width): Always return the
443         character's unscaled width if `font::unscaled_charwidths' is set.
444         (font::get_image_generator): New function.
445         (font::load_desc): Check the `unscaled_charwidths' and
446         `image_generator' keywords.
448         * src/libs/libgroff/fontfile.cpp: Initialize
449         `font::unscaled_charwidths' and `font::image_generator'.
451         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
453         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
455         * man/groff_font.man: Document `unscaled_charwidths' and
456         `image_generator'.
458         * src/preproc/html/pre-html.cpp: Include `device.h'.
459         (image_gen): New global variable.
460         (imageList::createPage): Use `image_gen'.
461         (main): Use `image_generator' keyword.
463 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
465         * tmac/html.tmac: Handle \[sqrtex].
467 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
469         * src/include/printer.h (printer): New virtual method `round_width'.
471         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
472         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
473         src/devices/grotty/tty.cpp (printer::round_width): New function
474         member.
476         * src/devices/grohtml/post-html.cpp (printer::round_width): New
477         function member.
478         (html_printer::set_numbered_char): Use it.
480 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
482         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
484         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
486         * configure: Regenerated.
488         * Makefile.in (GHOSTSCRIPT): New variable.
489         (MDEFINES): Add GHOSTSCRIPT.
491 2004-10-03  Werner LEMBERG  <wl@gnu.org>
493         * INSTALL.gen: Updated (taken from texinfo CVS).
495 2004-09-28  Werner LEMBERG  <wl@gnu.org>
497         * NEWS: Updated.
499 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
501         * tmac/groff_www.man: Revised and updated.
503 2004-09-26  Werner LEMBERG  <wl@gnu.org>
505         Fix \$@ and \$* to handle any number of arguments.
507         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
508         characters.
510         * src/roff/troff/input.cpp (input_iterator::internal_level):
511         Removed.
512         (input_stack): New member functions `increase_level' and
513         `decrease_level'.
514         (input_stack::get_level): Don't use `internal_level'.
515         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
516         (end_quote_iterator): Completely removed.
517         (interpolate_arg): Build string for \$@ and \$* which is then
518         pushed onto the input stack.
520 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
522         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
523         2004-09-19.
525 2004-09-23  Werner LEMBERG  <wl@gnu.org>
527         * tmac/an-old.tmac (ne): Using default scaling operator.
529 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
531         This change implements the following features:
533         PORPHANS
534           New numeric register: Defines number of lines following LP, PP,
535           QP, IP or XP, which must be kept together, before any automatic
536           page break.  If insufficient space remains on the current page, a
537           page break is forced before the new paragraph begins.
539         HORPHANS
540           New numeric register: Sets number of lines of following paragraph
541           which must be kept with a heading, defined by NH or SH, before any
542           automatic page break.  If insufficient space remains on the
543           current page, a page break is forced before the heading.
545         GROWPS
546           (Thanks to Joerg van den Hoff, for this idea).
548           New numeric register: Sets the first level of heading (set with
549           NH), which will keep the same point size as body text; e.g. if
550           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
551           point size specified by \n[PS], but .NH 2 and .NH 1 will have
552           progressively larger point sizes, determined by \n[PSINCR] (see
553           below).
555         PSINCR
556           New numeric register: Sets the point size increment for each level
557           of heading, (set with NH), below the threshold level set by
558           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
559           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
560           and all other levels will remain at 10pt, (because \n[PS] = 10).
562         SH
563           Existing macro now accepts a numeric argument, to make heading
564           size match that of NH with same argument value, when the
565           GROWPS/PSINCR feature is enabled.
567         SN-DOT
568           New string, set by NH macro, replaces the existing (undocumented)
569           use of SN, to represent the assigned section number.
571         SN-NO-DOT
572           New string, set by NH macro, represents the assigned section
573           number, but omits the terminal period (periods at intermediate
574           levels are retained).
576         SN
577           String set by NH macro, originally undocumented, now implemented
578           as an alias for SN-DOT (which reproduces original behaviour).
580         * tmac/s.tmac (PORPHANS): New register.
581         (par*start): Use it.
582         (HORPHANS, GROWPS, PSINCR): New registers.
583         (SH-NO-TAG, @SH): Use them.
584         (@NH): Improved.
586 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
588         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
589         of `Ds' and `De' macros.
591 2004-09-10  Werner LEMBERG  <wl@gnu.org>
593         In tbl, handle \a as an interpreted leader character if in
594         compatibility mode.
596         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
597         LEADER_CHAR): New macros.
598         (compatible_flag): New declaration.
600         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
601         LEADER_3, and LEADER_4 to `state'.
602         (table_input::get): Handle `\a'.
604         * src/preproc/tbl/table.cpp (PREFIX): Removed.
605         (LEADER_REG): New macro.
606         (table::init_output): Define LEADER_REG string register if in
607         compatibility mode.
609         * src/preproc/tbl/tbl.man: Document it.
611 2004-08-18  Werner LEMBERG  <wl@gnu.org>
613         * tmac/doc.tmac (An): Fix error message.
615 2004-08-06  Werner LEMBERG  <wl@gnu.org>
617         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
618         file can't be opened.  UNIX tbl has the same behaviour.
620 2004-08-05  Y T  <doarhop@hotmail.com>
622         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
623         (DBRead): If in compatibility mode, take into account the text
624         when computing figure boundaries.
626 2004-08-05  Werner LEMBERG  <wl@gnu.org>
628         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
629         from Tadziu Hoffmann.
631 2004-08-03  Werner LEMBERG  <wl@gnu.org>
633         * doc/meref.me: Document `_M' register.
635 2004-08-03  Martin Husemann  <martin@duskware.de>
637         Make hpftodit work correctly on big-endian systems.
639         * src/utils/hpftodit/hpftodit.cpp (File): New method
640         `get_uint32(char *)'.
641         (entry): New member `orig_value'.
642         (read_tags): Use new method.
643         (output_font_name, read_and_output_pcltypeface, dump_ascii):
644         Updated.
646 2004-08-01  Werner LEMBERG  <wl@gnu.org>
648         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
649         are already in X11's `macros.t' file.
651 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
653         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
654         Fix casting bug.
655         (read_and_output_pcltypeface): Handle strings with length <= 4.
657 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
659         * tmac/s.tmac (pg@top): Don't save `PO' register.
660         (pg*end-col, pg*end-page): Directly use `PO' register.
662 2004-07-27  Werner LEMBERG  <wl@gnu.org>
664         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
666         * src/preproc/refer/refer.cpp (output_references): Check for
667         empty hash table.
668         * src/preproc/refer/refer.man: Improve documentation of
669         `bibliography' command.
671 2004-07-26  Werner LEMBERG  <wl@gnu.org>
673         Add requests `fcolor' and `gcolor'.
675         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
676         New functions.
677         (init_env_requests): Add `fcolor' and `gcolor'.
679         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
681         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
682         Document new requests.
684 2004-07-24  Werner LEMBERG  <wl@gnu.org>
686         Add support for fractional point sizes in ms macros.  A value for
687         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
688         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
690         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
691         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
693         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
695 2004-07-19  Werner LEMBERG  <wl@gnu.org>
697         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
698         Update constructor.
699         (do_for, for_input::get, for_input::peek): Handle negative `by'.
700         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
702 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
704         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
705         * tmac/groff_mdoc.man: Updated.
707 2004-07-05  Werner LEMBERG  <wl@gnu.org>
709         * doc/groff.texinfo: Further improve documentation of `hcode'.
711 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
713         Improve appearance of arrows in pic.
715         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
716         arrow head thin.
717         Use two line segments for drawing non-filled arrow head.
718         (line_object::print, spline_object::print): Shorten line length to
719         avoid arrow sticking.
720         (arc_object::print): Take arrow direction into account.
722 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
724         * tmac/groff_www.man: Update documentation of .MPIMG.
726 2004-07-03  Werner LEMBERG  <wl@gnu.org>
728         * tmac/an-old.tmac (RI): Always start with font `R'.
729         (RI, IR): Properly end with font `R'.
731 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
733         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
734         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
735         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
736         Don't pass more than six arguments to .R, .I, .B, etc., for
737         compatibility with traditional troff macros.
739 2004-07-02  Werner LEMBERG  <wl@gnu.org>
741         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
742         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
743         Update all users.
744         (PUSH_COMP_MODE): New internal character constant.
745         Update all users.
747         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
748         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
749         (token::next, macro::append): Handle PUSH_COMP_MODE.
750         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
751         POP_GROFFCOMP after each of the decoded arguments to make them
752         independent from the compatibility mode status.
753         (comp_mode): Add `COMP_ENABLE'.
754         (do_define_string, do_define_macro): Handle COMP_ENABLE.
755         (define_string, append_string, define_macro, define_indirect_macro,
756         append_macro, append_indirect_macro): Handle `compatible_flag'.
757         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
759         * man/groff_diff.man, doc/groff.texinfo: Updated.
761 2004-07-01  Werner LEMBERG  <wl@gnu.org>
763         * doc/groff.texinfo: Improve documentation of `hcode'.
764         Use @documentencoding and convert document to latin-1; to do that
765         make latin characters active and assign proper macros (within a
766         @tex...@end tex environment).
767         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
768         * doc/Makefile.sub (groff): Ditto.
770 2004-06-29  Werner LEMBERG  <wl@gnu.org>
772         Implement two new conditional operators `F <name>' and `S <name>'
773         which check whether <name> is a valid font or style, respectively.
775         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
776         (text_file::text_file): Updated.
777         (text_file::error): Don't emit message if `silent' is set.
778         (font::load_font): Add optional third argument (which is directly
779         passed to `load'.
780         (font::load): Add optional second argument to check the header of
781         a font only, without emitting warning or error messages.
782         * src/include/font.h (font): Updated.
784         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
785         conditionals.
786         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
787         fourth argument to check a font without mounting.
788         (check_font, check_style): New functions.
789         * src/roff/troff/node.h: Updated.
791         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
792         Updated.
794 2004-06-27  Werner LEMBERG  <wl@gnu.org>
796         Implement new string-valued register `.sty' to return the current
797         style name.
799         * env.cpp (environment::get_style_name_string): New function.
800         (init_env_requests): Add `.sty' register.
801         * env.h (environment): Updated.
802         * node.cpp (font_info): Make `get_style_name' a friend.
803         (get_style_name): New function.
804         * node.h: Updated.
806         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
807         Updated.
809 2004-06-15  Werner LEMBERG  <wl@gnu.org>
811         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
812         `nospaces' option.
814 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
816         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
817         and \n[mo] to avoid dependency on current date.
819 2004-06-08  Werner LEMBERG  <wl@gnu.org>
821         * Makefile.sub (install_data): New target.
823 2004-06-04  Werner LEMBERG  <wl@gnu.org>
825         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
827 2004-06-03  Werner LEMBERG  <wl@gnu.org>
829         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
830         order of libraries.
831         (install_data): Add $(srcdir).
833         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
834         libraries.
836 2004-06-02  Werner LEMBERG  <wl@gnu.org>
838         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
839         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
840         Add test for Xmu library.
841         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
842         GROFF_APPRESDIR_DEFAULT): New macros.
844         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
845         and GROFF_APPRESDIR_DEFAULT.
847         * configure: Regenerated.
849         * Makefile.in (appresdir): New variable.
850         (MDEFINES): Add appresdir.
852         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
853         -Xt.
854         (install_data, uninstall_sub): New targets to handle GXditview.ad.
856         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
857         `$(srcdir)/eign', not `eign'.
859         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
861         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
862         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
863         Protect (g)xditview with `\%' to avoid hyphenation.
864         Other minor formatting.
866 2004-06-01  Werner LEMBERG  <wl@gnu.org>
868         Integrate gxditview into groff's standard directory hierarchy.
870         * src/xditview/*: Moved to ...
871         * src/devices/xditview/*: Here.
872         Moved DviChar.h and XFontName.h to src/include.
873         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
874         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
875         Moved xtotroff.c to new directory src/utils/xtotroff.
876         Provide proper Makefile.sub files (reusing the stuff from
877         Imakefile.in).
878         DESC renamed to DESC.in.
879         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
880         Converted everything from K&R to ANSI C.
881         Decorated with const where appropriate.
882         Cast string constants with `String' and `char *' where appropriate.
883         Made it compile with C++ (used as a C compiler).
884         Removed other minor compiler warnings.
886         * src/devices/xditview/device.c: Include config.h, string.h, and
887         defs.h.
888         Don't declare `exit', `strtok', `strchr', and `getenv'.
889         (FONTPATH): Remove.
891         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
892         `XFormatFontName'.
894         * src/devices/xditview/xditview.c: Include config.h.
895         Include stdio.h earlier.
896         Protect declaration of `popen' and `pclose' with
897         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
898         Replace `caddr_t' with `XtPointer'.
899         (MakePromptFunc): New typedef.
900         (DoPrint): Use RETSIGTYPE.
901         (promptfunction): Change type to MakePromptFunc.
902         (MakePrompt): Use MakePromptFunc for third argument.
903         (xmalloc): Removed.
905         * src/devices/xditview/ad2c: Add casts to `String'.
907         * src/include/XFontName.h (XFontNameString): Don't use array
908         notation.
909         Add prototypes for `XParseFontName', `XFormatFontName',
910         `XCompareFontName', and `XCopyFontName'.
912         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
913         `XFontName.h'.
915         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
916         Don't declare `XParseFontName' and `XFormatFontName'.
917         (xmalloc): Removed.
918         (main): Remove `optind' and `optarg'.
920         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
921         (to select programs which need X).
922         Make XDEVIDIRS depend on `FORCE'.
923         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
924         X support).
925         (MDEFINES): Updated.
926         (LIBDIRS): Use XLIBDIRS.
927         (CPROGDIRS): Use XPROGDIRS.
928         (DEVDIRS): Remove font directories for gxditview.
929         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
930         (EXTRADIRS): Remove src/xditview.
932         * Makefile.sub (DISCLEANFILES): Updated.
934         * Makefile.comm (LIBXUTIL): New variable.
935         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
936         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
938         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
940         * aclocal.m4 (GROFF_X11): New function.
942         * configure.ac: Call GROFF_X11.
943         Don't create src/xditview/Imakefile.
944         Don't emit notice how to build gxditview.
946         * configure: Regenerated.
948         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
950 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
952         * Makefile.in (CPPFLAGS): Define.
953         (MDEFINES): Add CPPFLAGS.
955 2004-05-27  Werner LEMBERG  <wl@gnu.org>
957         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
959 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
961         Fix problems with `friend name injections'.
963         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
964         make_script_box), src/roff/troff/div.h (end_diversions),
965         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
966         change 2004-04-08.
968 2004-05-25  Bernd Warken  <bwarken@mayn.de>
970         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
972 2004-05-25  Werner LEMBERG  <wl@gnu.org>
974         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
975         src/libs/libgroff/color.cpp: Include lib.h.
977 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
979         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
980         through Forte 6u1, and for how to get GNU make on Solaris.
982 2004-05-24  Werner LEMBERG  <wl@gnu.org>
984         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
985         by Paul Eggert.
987 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
989         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
990         rule.
992 2005-05-14  Werner LEMBERG  <wl@gnu.org>
994         * REVISION: Set to 2.
996         * aclocal.m4 (GROFF_STDINT_H): Removed.
997         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
999         * configure.ac: Updated.
1000         * configure, src/include/config.hin: Regenerated.
1002         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1003         inttypes.h conditionally.
1005 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1007 Version 1.19.1 released
1008 =======================
1010 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1012         * src/preproc/refer/label.y (same_author_last_name,
1013         same_author_name): Handle empty sort keys.
1015 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1017         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1018         tmac/TODO: Updated.
1020         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1021         doc-str-Lb-librt): Reset font.
1022         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1023         Provide `doc-str-Lb' to reset font.
1024         * tmac/groff_mdoc.man: Updated.
1026 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1028         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1029         snprintf versions which don't conform to ANSI C 99 (this is,
1030         counting the string's trailing null byte in the return value).
1032 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1034         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1035         that all implementations of sprintf handle null pointers correctly.
1037 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1039         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1040         Document `.U' register.
1042         * src/roff/troff/env.cpp (environment::mark_last_line)
1043         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1045 2004-05-04  Larry Kollar  <kollar@alltel.net>
1047         New read-only register `.U'; it returns 1 in safer mode and 0
1048         otherwise.
1050         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1051         register.
1053 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1055         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1057 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1059         * src/include/font.h (font): Use `int' for ch_index.
1060         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1061         font::compact): Updated.
1063         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1064         warnings.
1066         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1067         (hyphen_word): Fix compiler warnings.
1068         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1069         `char'.
1070         Update all callers.
1071         (get_delim_number, get_line_arg): Change second argument type to
1072         `unsigned char'.
1073         (macro_header::copy, token::next, do_define_string,
1074         do_define_character, substring_request, asciify_macro,
1075         unformat_macro, read_size, non_interpreted_node::interpret,
1076         while_request, main: Fix compiler warnings.
1077         (read_color_draw_node): Initialize `col'.
1079         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1080         `start_col' and `end_col' of type `int'.
1081         (vertical_rule): Make `col' of type `int'.
1083         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1084         for EOF.
1086         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1087         New arrays.
1088         (format_serial): Use them to remove dependency on ASCII.
1090         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1091         compiler warning.
1092         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1093         Ditto.
1095         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1096         compiler warnings.
1097         (glyph): Change type of `hpos' to `int'.
1099         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1100         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1102         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1104         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1106 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1108         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1109         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1110         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1111         `double' instead of `float' everywhere.
1112         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1113         everywhere.
1114         (main): Add return value.
1115         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1116         everywhere.
1117         Update all user functions.
1119         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1120         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1121         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1122         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1123         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1124         src/roff/troff/input.cpp, src/roff/troff/request.h,
1125         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1126         declarations.
1128         * src/utils/indxbib/signal.c: Include stdlib.h.
1130 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1132         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1133         before the first page.
1135 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1137         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1138         (doc-operating-system-*): Updated.
1139         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1140         (doc-str-Lb-*): Add more library names.
1142 2004-04-10  Art Haas  <ahaas@airmail.net>
1144         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1145         use anonymous type.
1147 2004-04-09  Art Haas  <ahaas@airmail.net>
1149         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1151 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1153         * arch/misc/shdeps.sh: Generate better comment for sed script.
1155 2004-04-08  Art Haas  <ahaas@airmail.net>
1157         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1158         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1159         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1160         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1161         (polyfill), src/preproc/grn/main.cpp (polyfill),
1162         src/preproc/refer/command.cpp (command_table),
1163         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1164         gcc 3.5 doesn't like).
1166 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1168         Removing many compiler warnings.  groff should now compile with
1169         a C++ compiler used for C files also.  [Simple variable renamings
1170         to avoid shadowing aren't logged in detail.]
1172         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1173         (draw_dvi_printer::draw) ['c']: Enclose in block.
1175         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1176         (page::add_line): Fix typos.
1177         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1179         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1180         Some local variable renamings.
1181         * src/devices/grolbp/lbp.h: Some local variable renamings.
1183         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1184         variable renamings.
1186         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1187         Remove redundant local variable declaration.
1188         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1189         Don't use `caddr_t' but `void *'.
1190         Enclose functions with `extern "C"' for C++.
1192         * src/libs/libdriver/input.cpp (remember_filename,
1193         remember_source_filename): Use cast for string constant.
1195         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1196         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1197         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1198         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1199         style.
1200         Enclose functions with `extern "C"' for C++.
1201         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1202         (needs_quoting): Return `int'.
1203         (quote_arg): Add proper casts to malloc and realloc.
1204         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1205         various MS Windows environments.
1206         (spawnvp_wrapper): Add proper cast to malloc.
1208         * src/preproc/eqn/box.h: Remove redundant declarations of
1209         `make_script_box', `make_mark_box' and `make_lineup_box'.
1210         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1211         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1212         variable renamings.
1214         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1215         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1216         (dx, dy): Renamed functions to...
1217         (deltax, deltay): This.
1218         * src/preproc/grn/main.cpp: Some local variable renamings.
1219         (deffont): Add `const'.
1220         (initpic, conv): Use cast for string constant.
1222         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1223         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1224         (char_buffer::run_output_filter): Second argument is unused.
1225         * src/preproc/html/pushback.cpp: Some local variable renamings.
1227         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1228         * src/preproc/pic/object.cpp: Some local variable renamings.
1230         * src/preproc/refer/label.y (lookup_label): Remove redundant
1231         declaration of local variable.
1233         * src/preproc/soelim.cpp: Remove redundant declaration of
1234         `interpret_lf_args'.
1236         * src/preproc/tbl/main.cpp: Some local variable renamings.
1238         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1239         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1240         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1241         Don't use C++-style comments.
1243         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1244         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1245         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1246         renamings.
1247         * src/roff/troff/div.h: Remove redundant declaration of
1248         `end_diversions'.
1249         * src/roff/troff/troff.h: Remove redundant declaration of
1250         `cleanup_and_exit'
1251         * src/roff/troff/input.cpp: Remove redundant declaration of
1252         `handle_first_page_transition' and `process_input_stack'.
1254         * src/utils/hpftodit.cpp: Some local variable renamings.
1256         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1257         for C++.
1258         Don't define RETSIGTYPE.
1259         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1261         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1262         (error): Use `const' in argument.
1263         (main): Remove redundant declaration of `optind'.
1264         Move declaration of `Version_string' to top-level.
1266         * PROBLEMS: Document difficulties compiling signal.c if a C++
1267         compiler is used for C.
1269 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1271         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1273 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1275         Make scripts like nroff.sh and neqn.sh portable across various
1276         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1277         non-POSIX path separators.  The idea is to extend those scripts to
1278         decide at run-time (of the script) which path separator to use.
1280         * arch/misc/Makefile.sub: New file.
1281         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1282         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1283         a proper definition of the variable `GROFF_RUNTIME'.
1285         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1286         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1287         (PROGDEPDIRS): New variable.
1288         `FORCE' it.
1289         (PROGDIRS): Add PROGDEPDIRS.
1291         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1292         Don't substitute @SEP@ and @BINDIR@.
1293         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1294         (PATH): Use GROFF_RUNTIME.
1296         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1297         Don't substitute @SEP@ and @BINDIR@.
1298         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1299         (PATH): Use GROFF_RUNTIME.
1301 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1303         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1304         Cygwin which doesn't handle stderr correctly.
1306 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1308         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1309         against empty argument.  Problem reported by <cgd@broadcom.com>.
1311 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1313         * Makefile.in (SEP): Replaced with...
1314         (RT_SEP, SH_SEP): Separators for the target platform's native path
1315         separator and the build environment, respectively.
1316         (fontpath, tmacpath): Use RT_SEP.
1317         (MDEFINES): Updated.
1319         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1320         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1321         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1322         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1324 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1326         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1327         reduce alignment problems with newer printers which use built-in
1328         TrueType fonts (instead of the older Intellifonts).  The ideal
1329         solution is to provide a second set of groff metric files, but this
1330         is extremely time-consuming to produce, given that HP's metric
1331         files are very rudimentary.
1333 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1335         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1336         s/operand/argument/ in error message.
1338 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1340         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1341         is in use.
1343 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1345         * tmac/s.tmac (XE): Fix error message.
1347 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1349         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1350         New macros.
1352         * src/roff/groff/pipeline.c: Declare strcasecmp.
1353         (run_pipeline) [_WIN32]: Use function name variants which don't
1354         start with `_'.
1355         Fix stream handling.
1357 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1359         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1360         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1361         for platforms which use the native Win32 runtime libraries.
1362         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1364         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1365         QUOTE_ARG_REALLOC_ERROR): Fix string.
1367         * src/preproc/html/pre-html.cpp: Remove declaration of
1368         `spawnvp_wrapper'.
1369         Don't use __MINGW32__.
1370         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1371         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1372         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1373         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1374         calls to `set_redirection' and `WAIT'.
1375         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1376         Fix calls to `set_redirection' and `save_and_redirect'.
1377         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1378         to `set_redirection' and `save_and_redirect'.
1379         (usage): Fix message.
1380         (makeTempFiles, main): Use `DEBUG_FILE'.
1382 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1384         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1386 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1388         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1389         quoting for MSVC's spawn* and exec* functions.
1390         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1391         spawnvp with proper quoting for MSVC.
1393         * src/libs/libgroff/assert.cpp (program_name),
1394         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1395         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1397         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1399         * src/include/error.h (program_name): Declare as `extern "C"'.
1400         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1402 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1404         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1405         spawnvp_wrapper.
1406         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1408 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1410         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1411         variable.
1412         (sbasename) [__MSDOS__ || ...]: New function.
1413         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1414         generic algorithm.
1415         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1416         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1417         of XXX.
1418         Use STDOUT_FILENO instead of hardcoded file handle.
1419         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1421 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1423         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1424         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1426 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1428         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1429         new font and mapping files.
1431 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1432             Keith Marshall  <keith.d.marshall@ntlworld.com>
1434         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1435         an input pipe.  This is needed for the MSVC compiler to make troff's
1436         `-o' option work.
1438         * src/roff/troff/div.cpp: Include nonposix.h.
1439         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1441 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1443         * font/devlj4/generate/special.awk: New script.
1444         * font/devlj4/generate/Makefile (S): Use special.awk.
1445         * font/devlj4/*: Regenerated, including the following new files:
1446         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1447         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1448         * NEWS: Document new lj4 fonts and revised hpftodit.
1450 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1452         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1454 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1456         * src/libs/libgroff/progname.cpp: Replaced with...
1457         * src/libs/libgroff/progname.c: New file.
1458         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1460 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1462         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1464 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1466         * font/devlj4/generate/wingdings.map,
1467         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1468         Use groff glyph names where possible.
1469         * src/devices/grolj4/lj4_font.man: Minor updates.
1471 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1473         * tmac/www.tmac (DC): Handle TTY devices.
1475         * doc/webpage.ms: Document viewCVS from ffii.org.
1476         * NEWS, README: Updated.
1478         * src/roff/groff/groff.man: Mention lj4_font man page.
1480         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1481         variables.
1482         (FONTS): Add SYMBOL and WINGDINGS.
1483         (SYMBOL, WINGDINGS): New targets.
1485 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1487         * src/devices/grolj4/lj4_font.man: New man page.
1488         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1489         * src/devices/grolj4.man: Mention lj4_font man page.
1491         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1492         * src/utils/hpftodit/hpftodit.man: Document it.
1493         (CW): New macro.
1494         Remove details about fonts (which are now in lj4_font.man).
1496         * font/devlj4/generate/symbol.map,
1497         font/devlj4/generate/wingdings.map: New files.
1499 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1501         * README: Mention ffii's viewcvs access.
1503 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1505         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1507 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1509         Revert most of the change from 2004-01-03 to better control used
1510         symbol sets.
1512         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1513         (text_symbol_sets, special_symbol_sets): New arrays.
1514         (symbol_set_table): New global variable.
1515         (read_symbol_sets): Use search order given in the text_symbol_sets
1516         and special_symbol_sets arrays.  If command line flag -a is not
1517         given, search both arrays.
1518         (output_charset): Require x_height_tag only for command line flag -i.
1520 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1522         Implement string-valued registers \n[.m] and \n[.M] to return the
1523         name of the current drawing and background color, respectively.
1525         * src/roff/troff/symbol.h: Moved to...
1526         * src/include/symbol.h: Here.
1527         Small fixes to make it work outside of the `troff' directory.
1528         * src/roff/troff/symbol.cpp: Moved to...
1529         * src/libs/libgroff/symbol.cpp: Here.
1530         Small fixes to make it work outside of the `troff' directory.
1532         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1533         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1534         Updated.
1536         * src/include/color.h: Include symbol.h.
1537         (color): Add new field `nm'.
1538         * src/libs/libgroff/color.cpp (color::color): Updated.
1540         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1541         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1542         src/roff/troff/reg.cpp: Don't include symbol.h.
1544         * src/roff/troff/env.cpp: Don't include symbol.h.
1545         (environment::get_glyph_color_string,
1546         environment_get_fill_color_string): New member functions.
1547         (init_env_requests): Handle `.m' and `.M' registers.
1548         * src/roff/troff/input.cpp: Don't include symbol.h.
1549         (default_symbol): Moved to symbol.cpp/symbol.h.
1550         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1551         to color constructor.
1552         * src/roff/troff/env.h: Updated.
1554         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1555         Document new registers.
1557 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1559         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1560         space_node::nbreaks): Protect against zero `next' field.
1562 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1564         In hpftodit, use the symbol sets offered in the TFM.
1566         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1567         (symbol_set, text_symbol_sets, special_symbol_sets,
1568         symbol_set_table): Removed.
1569         (get_printcode): Removed.
1570         (read_symbol_sets): Initialize `symbol_set' field with
1571         `NO_SYMBOL_SET'.
1572         Simplify code to just use the `kind' value.
1573         (output_charset): Improve output formatting.
1574         (dump_symbols): Simplified.
1576 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1578         * font/devlj4/generate/text.map: Add more MSL numbers.
1580 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1582         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1583         (text_symbol_sets): Add more symbol sets.
1584         (debug_flag): New static variable (moved from `main').
1585         (get_printcode, show_symset): New functions.
1586         (main): Remove `debug_flag'.
1587         (output_charset): Use `show_symset'.
1588         (dump_symbols):  Use `show_symset'.
1589         Print symsets for all glyphs.
1590         (read_map): Actually call `unicode_to_ucode_make' but this time
1591         correctly.
1593 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1595         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1596         Fix placement of comments.
1598 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1600         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1601         option `-d' is given.
1602         (output_charset): Improve warning messages to give more information.
1603         (dump_symbols): Make information more precise.
1604         (usage): Updated.
1605         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1606         appear as-is and shouldn't be decomposed.
1608 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1610         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1611         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1612         (FONTS): Add TrueType font families Arial and Times New Roman.
1613         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1614         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1615         `fl'.
1617 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1619         * test-groff.in (SEP): Quote value.
1620         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1621         `tem' to `char*' to avoid deallocation of a pointer to a constant
1622         object which some compilers don't like.
1624 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1626         * font/devlj4/generate (text.map, special.map): Rewritten to work
1627         with the new hpftodit version.
1629 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1631         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1632         set and 8bit character code for all glyphs also.
1634 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1636         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1638 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1640         More fixes for MSVC compiler.
1642         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1643         $(SEP).
1645         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1646         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1647         (getpid) [_MSC_VER]: Remove.
1648         Include direct.h and process.h conditionally.
1650         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1651         parentheses for a_delete.
1653         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1655         * test-groff: Replaced with...
1656         * test-groff.in: This new template to handle path separator
1657         properly.
1659         * configure.ac: Check for direct.h and process.h.
1660         Generate test-groff script.
1661         * configure, src/include/config.hin: Regenerated.
1663 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1665         Add integral extension glyph.
1666         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1668         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1670         * font/devps/generate/textmap: Provide entry for `integralex' to
1671         override (old) PUA value of the AGL.
1672         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1673         * font/devps/*: Regenerated.
1675         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1676         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1678 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1680         Add forgotten `coproduct' symbol (already available for DVI).
1682         * font/devhtml/R.proto, font/devps/generate/textmap,
1683         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1684         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1685         U+2210 (\[coproduct]).
1687 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1689         hpftodit has been extended to handle TrueType metric files and
1690         more glyphs.  See hpftodit.man for more details.
1692         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1693         ctype.h, and unicode.h.
1694         s/msl/charcode/ everywhere since we now handle Unicode values also.
1695         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1696         Use it where appropriate.
1697         (MULTIPLIER): Replaced with...
1698         (multiplier): New global static variable.
1699         (scale): Updated.
1700         (tag_type): Add more TFM tags.
1701         (tag_name): New array.
1702         (ENUM_TYPE, FLOAT_TYPE): Removed.
1703         (BYTE_TYPE): New value assigned.
1704         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1705         (text_symbol_sets, special_symbol_sets): Extended to cover more
1706         sets.
1707         (check_type): Add return value.
1708         (check_units): Add parameters to get ppi and upem values.
1709         Handle TrueType TFM data.
1710         (output_font_name): New function.
1711         (output_charset): Add parameter to handle TFM type.
1712         Handle TrueType TFMs also.
1713         (em_fract): New macro.
1714         (dump_tags): Be much more verbose and handle more tags.
1715         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1716         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1717         functions.
1718         (read_map): Add parameter to handle TFM type.
1719         Handle both MSL and Unicode mappings.
1720         (main): Add two new command line options `-a' and `-q'.
1721         Updated to make use of new functions.
1722         (usage): Updated.
1724         * src/utils/hpftodit/hpuni.cpp: New file.
1726         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1727         Updated.
1729 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1731         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1733 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1735         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1736         by Michail Vidiassov <master@iaas.msu.ru>.
1738 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1740         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1741         and u0049_0307.
1742         Add missing latin-2 glyphs.
1743         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1745         * tmac/troffrc: Load `composite.tmac' earlier.
1747         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1748         u00{53,73}_0327, and u0049_0307.
1749         * tmac/X.tmac: Add u00{47,67}_0306.
1750         * tmac/tty-char.tmac: Use composite glyph names for readability.
1752         * NEWS: Updated.
1754         * src/include/unicode.h: Remove `extern' keywords.
1756 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1758         * tmac/latin5.tmac: New file.
1760 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1762         Add some glyphs needed for Turkish.
1764         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1765         and u0049_0307.
1767         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1768         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1769         u00{53,73}_0327, and u0049_0307.
1771 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1773         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1774         from 2001-10-04.
1775         Remove trailing zeros.
1777 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1779         Make \? transparent to end-of-sentence recognition.
1781         * src/roff/troff/input.cc (non_interpreted_node): Add
1782         `ends_sentence' member function.
1784 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1786         * doc/groff.texinfo: Document `dt' request correctly.
1787         Other minor typographical improvements.
1789 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1791         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1793 2003-12-10  Richard Stallman  <rms@gnu.org>
1795         * LICENSE: Better wording.
1797 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1799         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1800         * configure, NEWS: Updated.
1802 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1804         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1806 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1808         * LICENSE: Updated.
1810 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1812         * INSTALL: Improved.
1814 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1816         Use path separator character of target platform for compiled-in
1817         default paths.
1819         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1820         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1821         * configure: Regenerated.
1822         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1824 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1826         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1827         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1829 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1831         * LICENSE: New file.
1833 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1835         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1836         ligatures present in AFM files since groff currently only
1837         understands some standard ligatures and nothing else.
1839 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1841         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1842         option -v is given.
1844         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1845         messages.
1846         Close stdout copy.
1847         Don't use Unix wait flags.
1849 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1851         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1852         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1853         src/roff/troff/uniuni.cpp: Moved to...
1854         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1855         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1856         src/libs/libgroff/uniuni.cpp: Here.
1858         * src/include/Makefile.sub.old (HDRS),
1859         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1860         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1862 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1864         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1865         `DEBUG_FILE'.
1866         Updated all users.
1868 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1870         * groff.texinfo: Document special behaviour of `.vs 0'.
1871         Improve documentation of `cflags' request.
1872         * NEWS: Updated.
1874 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1876         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1877         * font/devlj4/CORONET: Regenerated.
1879 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1881         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1882         if processing hyphenation patterns in traditional mode.
1883         Improve error messages.
1885 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1887         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1888         troff_output_file::put_char): Fix type of local variable `c'.
1890 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1892         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1893         declarations.
1894         (i_to_a): Removed.  libgroff already provides this function.
1895         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1897 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1899         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1900         HAVE_DECL_SYS_LIST.
1902 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1904         * COPYING: Use correct version.
1906 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1908         LynxOS 4.0.0 doesn't declare vfprintf.
1910         * configure.ac: Check for vfprintf.
1911         * configure: Regenerated.
1912         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1913         * src/include/config.hin: Regenerated.
1915 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1917         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1919         * configure.ac: Check for vsnprintf.
1920         * configure: Regenerated.
1921         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1922         `HAVE_VSNPRINTF'.
1923         * src/include/config.hin: Regenerated.
1925 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1927         * aclocal.m4: Updated syntax to autoconf 2.59.
1928         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1929         Don't check for gsos2.
1930         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1931         working abs_top_srcdir and abs_top_builddir.
1933         * configure.ac: Updated syntax to autoconf 2.59.
1934         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1935         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1936         * configure: Regenerated.
1938         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1939         s/@groff_top_builddir@/@abs_top_builddir@/.
1941         * src/roff/groff/pipeline.c (xstrsignal):
1942         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1944 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1946         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1947         make start angle smaller than end angle to circumvent a bug in tpic
1948         handling of some versions of dvipdfm (and dvipdfmx).
1950 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1952         * src/devices/grops/grops.man: Improve section on creating EPS.
1954 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1956         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1957         -P-pletter).
1959 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1961         * doc/groff.texinfo: Fix documentation of `.if'.
1963 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1965         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1966         the form `uniXXXX' also.
1968 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1970         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1971         contrib/pic2graph/pic2graph.sh: Implement secure management of
1972         temporary files.
1973         Pass `-P-pletter' to groff to avoid data outside of the converted
1974         area -- some versions of `convert' (for example 5.3.8) don't check
1975         the bounding box of the image but always use a fixed image size
1976         (letter paper format).
1977         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1978         contrib/pic2graph/pic2graph.man: Updated.
1980         * src/roff/groff/groff.man: Document $TMP and $TEMP.
1982 2003-10-26  Werner LEMBERG  <wl@gnu.org>
1984         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1985         troff_output::simple_ellipse, troff_output::simple_arc,
1986         troff_output::simple_line, troff_output::simple_spline,
1987         troff_output::simple_polygon): Insert a space before arguments.
1988         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1989         latter doesn't produce a node, so the following `.sp -1' would do
1990         the wrong thing.
1991         Don't emit `.sp -1' after \M.  This also doesn't produce a token
1992         (and we don't have to care about compatibility mode).
1993         (troff_output::set_color, troff_output::reset_color): Don't emit
1994         `.sp -1' after \M and \m.
1996         * src/roff/troff/input.cpp (old_have_input): New global variable.
1997         (input_stack::get): Handle `old_have_input'.
1998         (process_input_stack) <token::TOKEN_NEWLINE>: Call
1999         `trapping_blank_line' depending on `old_have_input', not
2000         `have_input'.
2002 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2004         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2005         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2006         default directory names for temporary files.
2007         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2009         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2010         [__MSDOS__] (run_pipeline): Honour environment variables.
2011         Don't use `tmpnam' but `tempnam' to work around messy
2012         implementation.
2014         * README.MinGW: New file.
2016 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2018         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2019         `(*t)->next' without testing validity of `*t'.
2020         (usage): Make it more readable.
2022 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2024         Make html device run under both MS-DOS and Win32.
2026         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2027         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2028         spawn or fork+exec has to be used, and whether parent must sleep
2029         until the child process terminates.  Used in
2030         `char_buffer::run_output_filter'.
2031         (copyofstdoutfd): Removed.
2032         (char_buffer): Replace `write_file_html' and `write_file_troff'
2033         member functions with `emit_troff_output' and `run_output_filter'.
2034         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2035         macros.
2036         (replaceFd): Replaced with...
2037         (set_redirection): New auxiliary function.
2038         (waitForChild): Replaced with...
2039         (save_and_redirect): New auxiliary function for.
2041         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2042         functions.
2044 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2046         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2047         (GROFF_LIBC): New function.
2048         * configure.ac: Call GROFF_LIBC.
2049         Check for `kill'.
2050         * configure: Regenerated.
2052         * src/include/lib.h: Handle __MINGW32__.
2053         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2054         Add macro for `pipe'.
2055         Define P_tmpdir.
2057         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2058         correctly.
2060         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2061         Implement.
2063 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2065         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2066         <chuq@chuq.com>.
2068         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2069         directory.
2071 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2073         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2074         src/roff/troff/input.cc (usage): Updated.
2076         * NEWS, doc/groff.texinfo: Updated.
2078 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2080         * src/libs/libgroff/searchpath.cpp
2081         (search_path::open_file_cautious): New function which also handles
2082         `-' as stdin and stdout depending on the access mode.
2083         * src/include/searchpath.h (search_path): Updated.
2085         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2086         * src/devices/grops/ps.h: Include `searchpath.h'.
2087         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2088         Open resource file with `include_search_path.open_file_cautious'.
2089         * src/devices/grops/grops.man: Document new `-I' switch.
2091         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2092         (main), src/devices/grolj4/lj4.cpp (main),
2093         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2095         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2096         Replaced with...
2097         (include_search_path): New global variable.
2098         (include_path_append): Removed.
2099         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2100         (do_file): Simplify, using new
2101         `include_search_path.open_file_cautious'.
2103         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2104         parameter.
2105         (main): Pass arguments to `-I' to both troff and devices.
2106         Improve handling of `-V'.
2107         * src/roff/groff/groff.man: Document changes to -I and -V.
2109         * src/roff/troff/input.cpp (include_search_path): New global
2110         variable.
2111         (next_file, source, ps_bbox_request, transparent_file,
2112         process_input_file): Use new
2113         `include_search_path.open_file_cautious'.
2114         (main) Handle `-I' switch.
2115         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2116         Use new `include_search_path.open_file_cautious'.
2117         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2118         * src/roff/troff/troff.man: Document new `-I' switch.
2120 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2122         Support multiple calls of .Lb in LIBRARY section.
2124         * tmac/doc-common (doc-in-library-section): New register.
2125         (doc-section-library): New string.
2126         (Sh): Set `doc-in-library-section'.
2127         (Rd): Updated.
2128         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2129         if in LIBRARY section.
2130         * tmac/doc.tmac (doc-save-global-vars): Updated.
2131         * NEWS, tmac/groff_mdoc.man: Updated.
2133 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2135         * tmac/doc-common (doc-default-operating-system): New variable.
2136         (Os): Use it.
2138 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2140         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2142 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2144         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2145         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2146         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2147         $(DEVFILES) are not empty.
2148         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2150 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2152         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2153         with parallel runs of `make'.
2155 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2157         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2158         insert SORT_SEP.  With certain combinations of sort specifications,
2159         refer sorted entries in the wrong order.  In particular, entries
2160         with a missing field should be be sorted before all entries that
2161         have that field, before refer looks to the next field.
2163 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2165         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2166         g++ linker is used.  Reported by Mark J. Reed
2167         <mark.reed@turner.com>.
2169 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2171         Add key character `x' to tbl which makes tbl call a user-defined
2172         macro on a table cell.
2174         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2175         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2176         `set_modifier' after printing the compatibility request.
2177         (set_modifier): Print call to `m->macro' if not empty.
2178         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2179         `macro'.
2180         (process_format): Implement cases `x' and `X'.
2181         * src/preproc/tbl/tbl.man, NEWS: Updated.
2183 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2185         * doc/groff.texinfo: Minor fixes.
2187 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2189         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2191 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2193         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2194         argument list to nothing if there is no file to match.  Use `ls' as
2195         a protection, similar to autoconf.
2197         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2198         empty argument lists.
2200         * doc/groff.texinfo: Improve documentation how vertical spacing
2201         and line breaks interact.
2202         Other minor fixes.
2204         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2206 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2208         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2209         EPS (using eps2eps or similar programs to compute the bounding box).
2211 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2213         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2214         * doc/texinfo.tex: Updated from texinfo 4.6.
2215         * README.CVS: From now on we need texinfo 4.6.
2217 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2219         Add requests `dei1' and `ami1' for completeness.
2221         * src/roff/troff/input.cc (calling_mode): Remove
2222         CALLING_DISABLE_COMP.
2223         (comp_mode): New enumeration.
2224         (do_define_string, define_string, define_nocomp_string,
2225         append_string, append_nocomp_string): Updated.
2226         (do_define_macro): Add third parameter.
2227         (define_macro, define_nocomp_macro, define_indirect_macro,
2228         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2229         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2230         functions.
2231         (ignore): Updated.
2232         (init_input_requests): Add `dei1' and `ami1'.
2234         * tmac/trace.tmac: Handle de1 and am1.
2235         (de): Improve tracing message.
2236         (am): Add missing `do'.
2237         (return): Use de1.
2239         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2240         Document new requests.
2242 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2244         Add option -G to .MPIMG to insert a gap between text and the image.
2246         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2247         www-finish-left-ll): Updated.
2248         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2249         (MPIMG): Make option -L and -R optional.
2250         Implement option -G.
2252 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2254         * src/devices/grohtml/post-html.cpp
2255         (html_printer::do_file_components): Don't use `stdout' as lvalue
2256         since it can be a macro.
2258 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2260         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2261         the corresponding test in aclocal.m4.
2263 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2265         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2266         names but RGB values directly.  Otherwise pnmtopng depends on
2267         an external file `rgb.txt' which maps colour names to values.
2269 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2271         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2272         * configure, src/include/config.hin: Regenerated.
2274         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2276 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2278         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2280 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2282         * *.man: Switch to non-compatibility mode temporarily if GNU
2283         syntax extensions are used in the particular man page.
2285         * PROBLEMS: Add solutions for SGR problems.
2287 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2289         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2290         used to change the drawing scheme.
2292         * src/devives/grotty/tty.cpp (bold_flag_option,
2293         underline_flag_option, italic_flag_option, reverse_flag_option,
2294         bold_underline_mode_option): New global variables.
2295         (update_options): New function.
2296         (tty_printer::special): Call update_options.
2297         (main): Don't set xxx_flag but xxx_flag_option, then call
2298         update_options.
2300 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2302         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2304         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2305         values.
2306         (hline_char, vline_char): New global variables.
2307         (tty_printer::tty_printer): Initialize them.
2308         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2309         horizontal and vertical lines.
2310         (crossings): New global array.
2311         (tty_printer::end_page): Use it to determine the proper crossing
2312         character for -Tutf8.
2314 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2316         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2317         (HTMLDOCFILES): Revert to `pic.html'.
2318         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2320 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2322         * doc/pic.ms: Improve documentation of absolute coordinates.
2323         Document absolute positioning of pictures.
2325         * NEWS: Add new pic capability.
2327 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2329         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2330         Rewritten.
2332 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2334         Implement support for dashed and dotted ellipses in pic.  Based on
2335         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2337         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2338         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2339         functions.  Ellipse arcs are approximated with circle arcs.
2340         * src/preproc/pic/common.h (common_output): Updated.
2341         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2342         functions.
2343         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2345         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2347 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2349         Make grotty work on platforms which have unsigned char as the
2350         default for char.  Based on a patch by Thomas Klausner
2351         <wiz@netbsd.org>.
2353         * src/devices/grotty/tty.cpp (schar): New typedef.
2354         Updated calls to declare_ptable and implement_ptable.
2355         (glyph): Use schar for back_color_idx and fore_color_idx.
2356         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2357         (tty_printer::tty_color, tty_printer::tty_printer,
2358         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2360 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2362         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2363         * src/roff/nroff/nroff.man: Updated.
2365 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2367         * NEWS, tmac/groff_www.man: Updated.
2368         * doc/Makefile.sub: Updated.
2370 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2372         Implement support for multiple HTML output files.
2374         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2375         -j command line option.
2377         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2378         global variables.
2379         (file): New fields `new_output_file', `require_links',
2380         `output_file_name'.
2381         (file::file): Updated.
2382         (files::set_file_name, files::set_links_required,
2383         files::are_links_required, files::is_new_output_file,
2384         files::file_name, files::next_file_name): New functions.
2385         (header_desc): New fields `no_of_level_one_headings',
2386         `header_filename'.
2387         (header_desc::header_desc): Updated.
2388         (header_desc::write_headings): Handle multiple files.
2389         (html_printer::write_header): Save file name in which header occurs.
2390         (html_printer::determine_header_level): Possibly split files on
2391         level one headings.
2392         (html_printer::do_links, html_printer::troff_tag): Updated.
2393         (html_printer::insert_split_file, html_printer::do_job_name,
2394         html_printer::emit_link, html_printer::write_navigation,
2395         html_printer::do_file_components): New functions.
2396         (html_printer::~html_printer): Handle multiple files.
2397         (main): Handle command line option `-j'.
2399         * src/devices/grohtml/grohtml.man: Updated.
2401         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2402         which splits file.
2404         * tmac/www.tmac (JOBNAME): New macro.
2405         * tmac/s.tmac (SH-NO-TAG): New macro.
2406         (@SH): Call SH-NO-TAG.
2407         (@NH): Updated.
2409 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2411         * tmac/groff_mdoc.man: Improve documentation of punctuation
2412         characters.
2414 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2416         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2418 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2420         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2422 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2424         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2425         after `/*' and `*/'.
2426         Fix spacing.
2427         (Fn, Fo): Reduce indentation in synopsis.
2429         * tmac/doc-common (doc-check-depth): New macro.
2430         (doc-end-macro, Sh, Ss): Use it.
2431         (Cd): Fix behaviour in synopsis.
2432         (In): Make it parsed and callable.
2433         If not in the synopsis, represent the C header file enclosed in
2434         angle brackets.
2435         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2436         Use minus, not hyphen.
2438         * tmc/groff_mdoc.man: Updated.
2440 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2442         Integrated grap2graph, contributed by Eric S. Raymond.
2444         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2445         New files.
2446         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2447         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2449 2003-07-01  Colin Watson  <cjwatson@debian.org>
2451         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2452         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2454 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2456         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2458 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2460         * doc/Makefile.sub (CLEANADD): Remove all files created by
2461         running `make groff.{pdf,dvi}'.
2463         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2464         src/xditview also.
2466 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2468         * Makefile.in (SHELL): Define as @SHELL@.
2469         (mkinstalldirs): Use $(SHELL).
2470         (MDEFINES): Add $(SHELL).
2471         * Makefile.comm (SHELL): Removed.
2473 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2475         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2476         The X11 documentation files use them.
2477         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2479 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2481         * tmac/e.tmac (@C): Handle .ad also.
2483 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2485         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2487         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2488         Assign `n' even here.  It is possible to construct a node
2489         immediately following an escape character:
2491           .di xx
2492           \?\\\?a
2493           .br
2494           .di
2495           .xx
2497 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2499         * README.WIN32: Removed.
2500         * MANIFEST: Updated.
2502 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2504         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2506 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2508         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2509         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2511 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2513         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2514         is done by the calling function.
2516 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2518         * tmac/X.tmac: Fix definition of `em'.
2520 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2522         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2523         argument.
2525 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2527         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2528         to make items work which consist only of a tag.
2530 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2532         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2533         aren't stretched in a tag (this can fail with unformatted boxes).
2534         Instead, insert a break and go back one line.
2536 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2538         * src/roff/troff/input.cc (return_macro_request): If called with
2539         argument pop macro twice.  We need this to trace `return'.
2541         * tmac/trace.tmac: Handle `return'.
2542         Fix typos.
2544         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2545         Document.
2547 2003-05-15  Larry Kollar  <kollar@alltel.net>
2549         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2550         registers `FPS', `FVS', and `FPD'.
2552 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2554         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2555         correctly.
2557 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2559         * tmac/groff_mdoc.man: Slight improvements.
2561 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2563         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2564         `doc-header-space' after header line if register `cR' is set.
2566 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2568         * TODO: Updated.
2570 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2572         * tmac/doc-common (Nd): Use \[em].
2574 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2576         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2577         doc-footer-space): Initialize to 0.5i.
2578         (doc-setup-page-layout): Don't set doc-header-space and
2579         doc-footer-space.
2581 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2583         * REVISION: Set to 1.
2585         * doc/pic.ms: Document possible problems with `figname'.
2587 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2589 Version 1.19 released
2590 =====================
2592         * VERSION: Set to 1.19.
2593         * REVISION: Set to 0.
2594         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2596         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2597         Define charset as `US-ASCII' in html output.
2599         * tmac/www.tmac (ULE): Add missing scaling indicator.
2601         * win32-diffs: Removed.
2603 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2605         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2606         `.da' and `.boxa'.
2607         Document how to insert discardable whitespace with `.ss'.
2609 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2611         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2612         work with plain TeX also.
2614         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2616 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2618         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2619         Use a loose DTD.
2621 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2623         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2624         vbox with positive height and zero depth if in TeX mode.
2626         * NEWS: Document glyph name changes for grodvi and grolj4.
2628 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2630         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2631         * doc/pic.ms: Fixed.
2633 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2635         HP-UX 10.20 has `snprintf' but it isn't declared.
2637         * configure.ac: Add declaration test for snprintf.
2638         * configure: Regenerated.
2639         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2640         * src/include/config.hin: Regenerated.
2642 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2644         Add keyword `figname' to pic, specifying the name of the picture
2645         box in TeX mode.  Based on a patch from William J Poser
2646         <wjposer@unagi.cis.upenn.edu>.
2648         * src/preproc/pic/pic.y: New token `FIGNAME'.
2649         (macro_name): New rule of type <str>.
2650         (placeless_element): Handle `FIGNAME'.
2651         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2652         * src/preproc/pic/main.cpp (graphname): New global variable.
2653         (do_picture): Initialize `graphname'.
2654         * src/preproc/pic/pic.h: Updated.
2655         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2656         `graphname'.
2657         Simplify TeX code.
2658         (tex_output::text): Beautify output.
2659         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2660         `shaded' and `outlined' unconditionally.
2661         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2662         Minor improvements.
2664         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2665         greater is necessary.
2667 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2669         Add option -r to soelim to avoid emission of `.lf' lines.
2670         Add option -t to produces TeX comment lines instead of `.lf' lines.
2672         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2673         and `tex_flag'.
2674         (usage): Updated.
2675         (main): Handle `-r' and `-t'.
2676         (set_location): Handle `raw_flag' and `tex_flag'.
2677         * src/preproc/soelim/soelim.man, NEWS: Updated.
2679 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2681         * tmac/hyphenex.sh: Replaced with...
2682         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2683         nightmares.
2685         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2686         if --quiet is used for the configure script.
2687         * configure: Regenerated.
2689 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2691         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2692         Add `const' to second argument.
2693         (html_printer::add_table_end): Add `const' to argument.
2694         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2695         `const' to arguments.
2696         * src/devices/grohtml/html-text.h: Updated.
2698         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2699         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2700         argument.
2702         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2703         cast for integer constant.
2705         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2706         (writeNbytes): Add `const' to first argument.
2707         (writeString): Add `const' to argument.
2708         (char_buffer::can_see): Add `const' to third argument.
2709         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2710         `const' to argument.
2711         * src/preproc/html/pushback.h: Updated.
2713         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2714         (include_path_append): Add `const' to argument.
2715         (do_file): Updated.
2717         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2718         for `value'.
2719         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2720         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2721         for `value'.
2722         (unicode_decompose_init::unicode_decompose_init): Updated.
2723         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2724         for `value'.
2725         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2726         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2727         argument.
2729         * tmac/hyphenex.sh: Make script more portable by using a here
2730         document.
2732 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2734         Renamed all `*.cc' files to `*.cpp'.
2735         Updated all configuration files, makefiles, and documentation.
2737 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2739         * tmac/hyphenex.sh: Slight improvements.
2741 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2743         * font/devascii/R.proto, font/devcp1037/R.proto,
2744         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2745         character slots with unnamed glyphs.
2747         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2748         (an-first): New global variable.
2749         (an-header): Emit vertical space between multiple man pages.
2751 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2753         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2754         values.
2756 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2758         * PROBLEMS: Revised.
2760 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2762         * doc/webpage.ms: Improved.
2764 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2766         Add register \n[.height] which returns the value of \H.
2767         Add register \n[.slant] which returns the value of \S.
2769         * src/roff/troff/env.cc (init_env_requests): Implement.
2770         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2771         Document.
2773 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2775         * tmac/html.tmac: Move some of the data into html-end.tmac.
2776         Remove most of the character translations for eqn since html fonts
2777         now cover those characters.
2778         Load www.tmac.
2779         * tmac/html-end.tmac: New file.
2780         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2781         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2782         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2784 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2786         * man/groff_out.man: Document negative values of `N' if -Thtml is
2787         used.
2789 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2791         * Makefile.comm (depend.temp): Check location of YTABC.
2793 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2795         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2796         binary path.
2797         (groff_bin_path): Rename to GROFF_BIN_PATH.
2798         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2799         * doc/Makefile.in (TROFFBIN): New variable for troff
2800         binary path.
2801         (GROFFBIN): New variable for groff binary path.
2802         (groff_bin_path): Rename to GROFF_BIN_PATH.
2803         (TROFF): Use TROFFBIN.
2804         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2805         * doc/Makefile.sub (GROFFBIN): New variable for groff
2806         binary path.
2807         (groff_bin_path): Rename to GROFF_BIN_PATH.
2808         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2810         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2811         with INSTALL_SCRIPT.
2812         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2813         * Makefile.dev (all): Depend on DEVSCRIPTS.
2814         (install_dev): Likewise.
2815         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2816         scripts.
2817         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2818         (DEVGENSCRIPTS): New variable to hold generated scripts.
2820 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2822         * src/libs/libdriver/input.cc (IntArray::operator[],
2823         IntArray::get_data): Remove meaningless `const' in return value.
2825         * README.CVS: New file.
2827 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2829         Check for stdint.h in C++, not in C.
2831         * aclocal.m4 (GROFF_STDINT_H): New function,
2832         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2833         AC_CHECK_HEADERS.
2834         * configure, src/include/config.hin: Regenerated.
2835         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2838         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2839         with a negative value, representing the width of the unbreakable
2840         space (only for -Thtml).  grohtml then converts this back to
2841         &nbsp; and uses the value of N as its width.
2843         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2844         unbreakable_space_node::tprint): Emit `N-<width>'.
2845         * src/include/printer.h (printer::set_numbered_char): Make it
2846         virtual.
2847         Make members `font_table' and `nfonts' protected instead of private.
2848         * src/devices/grohtml/post-html.cc
2849         (html_printer::set_numbered_char): New member function.
2852         * src/libs/libgroff/maxfilename.cc:
2853         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2855         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2856         emit word marker.
2858 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2860         * man/roff.man: Small fixes.
2862 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2864         Make groff independent from locale's numeric settings.
2866         * configure.ac: Check for `setlocale'.
2867         * configure, src/include/config.hin: Regenerated.
2869         * src/include/lib.h: Handle HAVE_SETLOCALE.
2871         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2872         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2873         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2876         * doc/groff.texinfo: Change dir category to `Typesetting'.
2877         (Man font macros): Mention that there is no space between arguments
2878         of .BI and friends.
2880         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2881         (*printer::change_color, *printer::change_fill_color): Add missing
2882         `const'.
2884 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2886         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2887         html_table::is_gap): Compute table widths after converting border
2888         positions to avoid rounding errors.
2890 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2892         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2893         `space_emitted' properly.
2895 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2897         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2898         (html_table::set_linelength): Don't add 1.
2899         (html_table::add_indent): Don't subtract 1.
2901         * tmac/html.tmac: Set default page offset to zero.
2903 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2905         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2907         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2908         unbreakable_space_node::tprint): New functions.
2909         (troff_output_file): Make space_char_hmotion_mode::tprint and
2910         unbreakable_space_node::tprint to friends.
2911         * src/roff/troff/node.h: Updated.
2913         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2914         in the HTML standard).
2916 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2918         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2919         Otherwise, the following code
2921           .di xxx
2922           .ps 10
2923           a
2924           .br
2925           .di
2926           x\*[xxx]
2928         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2929         font changes in diversions for -Thtml.
2931         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2932         `HTML-TAG'.
2933         (an-do-tag-html): Merge with ...
2934         (an-do-tag): This macro.
2935         Change code slightly to circumvent grohtml bug.
2936         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2938         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2939         html_table::is_gap): Round `width' properly.
2941         * tmac/html.tmac: Provide some default layout parameters for
2942         grohtml.
2944         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2945         command.
2947 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2949         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2951 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2953         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2954         defined.
2956 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2958         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2959         `.vs'.
2960         * doc/groff.texinfo: Updated.
2962 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2964         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2965         TOKEN_END_TRAP>: Reset `have_input'.
2967 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2969         * src/roff/groff/groff.man: Mention groff_trace man page.
2971 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2973         * Makefile.in (LIBEXT): New variable to indicate the file extension
2974         of library files.  Computed heuristically from $(OBJEXT).
2975         (MDEFINES): Add $(LIBEXT).
2976         * Makefile.lib, Makefile.comm: Use it.
2978         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
2979         overlong lines into smaller chunks.
2980         (get_binary): New function.
2981         (main): Use them.
2982         * src/utils/pfbtops/pfbtops.man: Updated.
2984 2003-03-15  Colin Watson  <cjwatson@debian.org>
2986         * src/roff/groff/groff.man: Minor syntax fix.
2988 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
2990         * src/devices/grops/ps.cc (ps_printer::media_set,
2991         ps_printer::~ps_printer): Handle zero paper width and length.
2993 2003-03-13  Werner LEMBERG  <wl@gnu.org>
2995         Add options -p and -l to grodvi.
2997         * src/devices/grodvi/dvi.cc: Include paper.h.
2998         (landscape_flag, user_paper_length, user_paper_width): New global
2999         variables.
3000         (dvi_printer::begin_page): Emit `papersize' special.
3001         Set color after initialization of `cur_h' and `cur_v'.
3002         (main): Add options `-l' and `-p'.
3003         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3004         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3006         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3008 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3010         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3011         * man/groff_tmac.man: This man page.
3012         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3013         deprecated.
3015         * tmac/X.tmac: Don't load pspic.tmac.
3017 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3019         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3020         by Bernd Warken <bwarken@mayn.de>.
3022         * src/include/driver.h (pr): Removed.
3024         * src/libs/libdriver/input.cc (pr): New global variable.
3025         (do_file): Deallocate `pr'.
3026         * src/libs/libdriver/printer.cc (pr): Removed.
3028         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3029         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3030         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3031         (main): Don't delete `pr'.
3033 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3035         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3036         * tmac/papersize.tmac: New file.
3037         * tmac/troffrc: Include `papersize.tmac'.
3038         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3039         * tmac/an-old.tmac: Set LT to LL by default.
3041         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3042         doc/groff.texinfo: Updated.
3044         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3045         bug which caused all odd iso papers to have wrong dimensions.
3047         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3048         (main) <'p'>: Set `user_paper_width' also.
3049         (ps_printer::media_width, ps_printer::media_height): Use values
3050         given with option `-p'.
3052 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3054         * src/include/nonposix.h: Provide default for SET_BINARY.
3056         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3057         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3058         unconditionally.
3060         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3061         (main): Treat \r\n as \n.
3063 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3065         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3066         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3068 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3070         Added support to access more than 256 glyphs in Type 1 fonts.
3072         * src/devices/grops/ps.cc (subencoding): New structure.
3073         (style): Add `sub' field.
3074         Updated all users.
3075         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3076         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3077         functions.
3078         Updated all users.
3079         (ps_printer::set_char): Use `set_subencoding'.
3080         (make_subencoding_name): New function.
3081         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3082         (ps_printer::~ps_printer): Emit subencoding definitions.
3084         * src/devices/grops/psrm.cc (valid_input_table): New array to
3085         properly support EBCDIC.
3086         (white_space): Add `\f'.
3087         (ps_get_line): Change first argument to be of type `string &'.
3088         Updated all callers.
3089         This allows to get lines of arbitrary length.
3090         Use `valid_input_table'.
3091         Remove warning about non-conforming PS line length.  This seems
3092         not to be of great importance -- for example, dvips don't emit
3093         a warning either.
3094         (PS_LINE_MAX): Removed.
3095         (matches_comment): Change first argument to be of type `string &'.
3097         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3099         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3100         %AGL_to_unicode, %default_ligatures): New hash tables.
3101         Read all map entries.
3102         Add unencoded characters.
3103         Check for default ligatures if there are no `L' entries.
3104         Print all kern entries.
3105         Print all characters in charset.
3106         * src/utils/afmtodit/afmtodit.man: Updated.
3108         * font/devps/*: Regerated all fonts.
3110         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3111         of characters, just use `.trin'.  Otherwise the mapping depends
3112         on the font encoding.
3113         * tmac/ps.tmac: Add `fi' and `fl'.
3114         Improve `Fi' and `Fl'.
3115         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3116         * tmac/Xps.tmac: Fix `em'.
3118         * NEWS: Updated.
3120 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3122         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3123         `have_input'.
3125 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3127         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3129         * font/devps/generate/textmap: Remove entry `similarequal'.
3130         * font/devps/symbolmap: Updated.
3132 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3134         * src/libs/libgroff/font.cc (font::load): Fix error message for
3135         bad character type.
3137         * src/devices/grops/grops.man: Improve documentation of the -b
3138         flag.
3140         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3141         `ascii' and `cp1047'.
3143 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3145         Document composite glyphs and the `composite' request.
3147         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3149 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3151         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3152         * font/devdvi/*EC: Updated.
3154         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3155         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3156         * tmac/troffrc: Load `composite.tmac'.
3157         * tmac/Makefile.sub (NORMALFILES): Updated.
3159         * doc/groff.texinfo (Input Encodings): New section.
3160         * NEWS: Updated.
3162 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3164         * doc/texinfo.tex: New version 2003-02-11.06.
3166         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3167         * tmac/groff_mdoc.man: Fix description of `Dt'.
3169 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3171         * font/devps/prologue.ps: Fix for included Postscript that does
3172         a setpagedevice -- which is now safely ignored.
3174         * NEWS: Updated.
3176         * src/devices/grops/ps.cc: Now sets the page size in the generated
3177         document.  This is done in two ways: Via a %%-comment for gv and
3178         the like, and via a PageSize and setpagedevice for programs that
3179         understands Postscript proper, like ps2pdf.
3181         * src/devices/grops/ps.h: New broken-flag to avoid page size
3182         definition, if required.
3184         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3186         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3187         Not really necessary due to the fix in prologue.ps, but cleaner:
3188         Such information does not belong in an .eps file.
3190         * doc/Makefile.sub: See doc/Makefile.in.
3192 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3194         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3195         instead of P1 since the latter is broken in some versions of netpbm.
3196         * configure: Updated.
3198 2003-02-26  Larry Kollar  <kollar@alltel.net>
3200         Make man pages more customizable.
3202         * tmac/an-old.tmac (FT): New register holding footer distance from
3203         bottom.
3204         (HF): New string holding the default heading font.
3205         (TH): Handle registers `IN' and `SN' set on the command line.
3206         Use `FT'.
3207         (PT, BT): New strings to customize header and footer lines.
3208         (an-header, an-footer): Use them.
3209         (SH, SS): Use `HF'.
3210         * tmac/groff_man.man: Document changes.
3212         * doc/groff.texinfo: Document man changes.
3213         Document Ultrix extensions of man.
3215 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3217         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3218         `have_input' after changing back to old environment.
3220         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3221         function up to be defined before first call.  This is necessary to
3222         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3224         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3225         the default font directory also.  Based on a patch from James
3226         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3227         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3228         * src/utils/afmtodit/afmtodit.man: Document it.
3230         * NEWS: Updated.
3232         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3234 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3236         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3237         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3238         * configure.ac: Use it.
3239         * configure: Regenerated.
3240         * Makefile.in: Updated.
3242         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3243         (CLEANADD): Add www.tmac-sed.
3244         (pnmtops_nosetpage): Define default.
3245         (install_data): Handle www.tmac-sed and substitute
3246         @PNMTOPS_NOSETPAGE@.
3247         (stamp-sed): Add www.tmac.
3248         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3249         It now breaks URLs at suitable places.
3250         (www:substring_ok): New register set by...
3251         (www:@test_substring): New macro.
3252         (www:error): New alias to www-error.
3253         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3254         New macros.
3255         (URL): Use www:url_breaks.
3256         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3257         (CDS, CDE): New macros.
3259 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3261         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3262         buffer overflow.
3264 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3266         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3267         can be negative also.
3269         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3270         `int16'.
3271         (read_char_table): Avoid negative ascenders.
3272         (output_charset): Add cast.
3273         * font/devlj4/*: Regenerated.
3275         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3276         possible.
3278         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3279         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3280         of `<>'.
3281         * font/devdvi/*: Regenerated.
3283         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3284         normal width, while the previously used characters (U+2329 and
3285         U+232A) are classified as wide due to canonical equivalence with the
3286         CJK punctuation characters U+3008 and U+3009.
3288         * font/devutf8/R.proto: Updated.
3289         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3291         * man/groff_char.man: Simplify handling of table traps by
3292         introducing `start block' and `end block' macros.
3293         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3294         (DL): Make it work with Unix troff also.
3295         Fix code values of `la' and `ra'.
3297         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3299 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3301         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3302         New destructor, fixing a major memory leak.
3304 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3306         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3307         to be in conformance with Unicode 3.0 and newer.
3309         * font/devlj4/generate/text.map: Add `Eu'.
3310         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3311         * font/devlj4/S: Regenerated.
3313         * man/groff_char.man: Completely rewritten.
3315         * doc/groff.texinfo: Fix description of request and macro arguments.
3317 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3319         Valgrind fixes.
3321         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3322         Deallocate `columns' list.
3323         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3324         New destructor.
3325         (text_glob::text_glob_html, text_glob::text_glob_special,
3326         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3327         text_glob::text_glob_tag): Avoid memory leaks.
3328         (text_glob::remember_table): Free memory before reassigning.
3330 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3332         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3333         alias `hbar'), the Planck constant over two pi.
3335         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3336         `+e' for position 34.
3337         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3338         `u2662' and `u2661'.
3339         * font/devdvi/{MI,S}: Regenerated.
3340         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3341         * font/devlbp/*: Add `hbar' alias.
3342         * font/devlj4/generate/special.map: Ditto.
3343         * font/devlj4/S: Regenerated.
3344         * font/devps/generate/symbolchars: Add `+e'.
3345         * font/devps/generate/textmap: Fix PS name for `-h'.
3346         Add `hbar' alias.
3347         * font/devps/symbolmap: Regenerated.
3349         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3351         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3352         `-h', `hbar'.
3353         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3354         `-h'.
3356         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3357         `hbar'.
3358         * tmac/tty-char.tmac: Add `+e'.
3360 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3362         Another round trying to really fix problems with `have_input'.
3364         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3365         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3367         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3368         handling if both foreground and background colors are default.
3370         * doc/groff.texinfo (Debugging): Document .lf differences to
3371         AT&T troff.
3373 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3375         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3376         null-bytes in created string.
3378         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3379         alias_macro, lookup_request): Improve warning messages.
3381         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3382         not `strdup'.
3383         Free `last_image_filename'.
3385         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3386         `buffer'.
3387         (imageList::createPage, imageList::createImage): Use `free', not
3388         `a_delete'.
3389         (imageItem::~imageItem): Free `imageName'.
3390         (addRegDef): Use `strsave', not `strdup'.
3391         (get_resolution): Free `pathp'.
3393 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3395         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3396         to `dummy'.
3398 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3400         Add memory management for colors to deallocate unnamed colors
3401         properly.
3403         * src/include/color.h (color): New members `free_list' and `next'.
3404         New member functions `new' and `delete'.
3405         Add destructor.
3406         * src/libs/libgroff/color.cc: Implement it.
3408         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3409         for array size of new operator.
3411         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3412         redundant comparison.
3414         * src/roff/troff/input.cc (word_space_node::reread,
3415         hmotion_node::reread): Avoid warning about unused parameter.
3416         (reset_output_registers): Remove redundant parameter.
3417         (define_color): Undo change 2003-02-12.
3419         * src/roff/troff/reg.h: Updated.
3421         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3422         output_file::put_filename, real_output_file::really_put_filename,
3423         ascii_output_file::really_print_line,
3424         break_char_node::get_hyphen_list): Avoid warning about unused
3425         parameter.
3426         (suppress_node::tprint): Updated.
3428         * configure.ac: Check declaration for rand() and srand().
3429         * configure: Regenerated.
3431         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3432         conditionally.
3433         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3434         and srand().
3436         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3437         to avoid compiler warnings.
3439         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3440         unused.
3442         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3443         is unused.
3444         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3445         (unused) parameter.
3446         Updated all callers.
3448         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3449         is unused.
3450         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3451         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3453         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3454         Parameter is unused.
3455         (html_printer::add_table_end): Define parameter conditionally.
3456         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3457         is unused.
3459         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3460         (lbp_printer::set_char): Last parameter is unused.
3462         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3464 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3466         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3467         Make \D'f ...' move horizontally again for backwards compatibility.
3468         Replace it with \D'Fg ...' where appropriate to avoid dependency
3469         on horizontal resolution.
3471         * src/roff/troff/input.cc (do_get_long_name): New function.
3472         (get_long_name): Call it.
3474         (read_draw_node): Handle `\D'Fx ...' by calling ...
3475         (read_color_draw_node): New function.
3477         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3478         `end'.
3479         Pass it to `do_get_long_name' which is used instead of
3480         `get_long_name'.
3482         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3483         unnecessary value guard.
3484         (parse_D_command) <'f'>: Add horizontal shift.
3486         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3487         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3488         (FILL_MAX): Removed.
3490         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3491         Updated.
3493 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3495         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3496         do_zero_width): Push `\n' if closing delimiter is missing.
3498         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3499         <'F'>: Make \F non-transparent at the beginning of line.
3500         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3501         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3502         `have_input'.
3504         (define_color): Free color in case of reassignment.
3506         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3507         @DefescListEnd): Use @Var, not @var.
3508         Fix all calls.
3510         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3512         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3513         `shaded' and `outlined' arrays.
3514         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3515         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3516         Use strsave.
3517         (closed_object::set_fill_color): Ditto.
3518         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3519         instead of strdup.
3520         (troff_output::reset_color): Use a_delete instead of free.
3521         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3523 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3525         * doc/groff.texinfo: Improve documentation of `ad'.
3526         Document that \D'f...' is dependent on the horizontal resolution.
3527         * man/groff_diff.man: Improve documentation of \D'f...'.
3529         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3530         compensating \h'...' for \D'f ...' since the latter no longer moves
3531         current position.
3532         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3534 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3536         Improve error messages for `x F' (and `F') commands.
3538         * src/include/error.h: Add declaration for
3539         `current_source_filename'.
3540         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3541         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3542         parameter for source file string.
3543         Updated all callers.
3545         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3546         (remember_source_filename): New function.
3547         (parse_x_command <'F'>, do_file <'F'>): Use it.
3549 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3551         Make grotty not emit warnings about unknown colors more than
3552         necessary.
3554         * src/devices/grotty/tty.cc: Include `ptable.h'.
3555         (TTY_MAX_COLORS): Removed.
3556         (DEFAULT_COLOR_IDX): Defined to -1.
3557         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3558         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3559         Change `tty_colors' to be a ptable.
3560         First arg of `put_color' is now `char'.
3561         New functions `make_rgb_string' and `tty_color'.
3562         (tty_printer::tty_printer): Use `tty_color'.
3563         (tty_printer::color_to_idx): Return value is now `char'.
3564         Use `tty_color'.
3566         * src/include/color.h (color): Add `print_color' member function.
3567         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3569 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3571         Valgrind fixes.
3573         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3574         encoding file.
3576         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3577         assume that value has been allocated with `new[]', thus use
3578         `a_delete' for deallocation.
3580         * src/libs/libdriver/input.cc (get_integer_arg,
3581         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3582         where appropriate.
3584         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3585         * src/libs/libgroff/nametoindex.cc
3586         (character_indexer::named_char_index): Use `new <type>[1]'.
3588         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3589         <type>[1]'.
3590         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3591         (split_text): Use `a_delete'.
3593         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3594         <type>[1]'.
3596         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3597         harmless memory leak.
3598         (hyphen_trie::read_patterns_file): Initialize `buf'.
3599         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3600         Initialize `current_fill_color'and `current_glyph_color'.
3601         * src/roff/troff/glyphuni.cc
3602         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3603         * src/roff/troff/uniuni.cc
3604         (unicode_decompose_init::unicode_decompose_init): Ditto.
3605         * src/roff/troff/uniglyph.cc
3606         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3608 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3610         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3611         `access' before calling `unlink'.
3612         (do_file): Handle __EMX__.
3614         * src/include/nonposix.h: Handle __EMX__.
3616         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3617         (fontpath,tmacpath): Use it.
3618         (MDEFINES): Add it.
3619         Sorted alphabetically.
3621         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3622         @SEP@.
3623         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3624         @SEP@.
3626 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3628         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3629         New files, copied from gnulib.
3630         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3631         * configure.ac: Updated.
3632         * configure: Regenerated.
3634         * src/include/config.hin: Regenerated.
3635         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3636         Don't define `strcasecmp' as `strcmp'.
3637         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3638         Dont define `strncasecmp' as `strncmp'.
3640         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3641         Removed.
3643 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3645         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3646         s/unline/unlink/.
3648 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3650         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3652 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3654         Add US-english hyphenation exceptions (converted from Barbara
3655         Beeton's hyphenation exception log reports which appear irregularly
3656         in TUGBoat).
3658         * tmac/hyphen.us: Updated to latest version.
3659         * tmac/README: Updated.
3660         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3661         * tmac/troffrc: Load `hyphenex.us'.
3662         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3663         * doc/groff.texinfo: Updated.
3665 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3667         Improve hyphenation slightly.  This is a first step in redesigning
3668         the hyphenation algorithm to make it more flexible (e.g. allowing
3669         kerns and ligatures between the hyphenation character and the
3670         following character -- while not used normally in English, other
3671         languages like German would benefit).
3673         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3674         assertion instead of if-clause.
3675         Let `get_hyphen_list' return the number of involved characters in
3676         the hyphenation pattern instead of computing it directly (which
3677         often yields too small values).
3678         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3679         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3680         parameter.
3682 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3684         Fixing a bug which caused groff to hang if the hyphenation exception
3685         dictionary tried to grow.
3687         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3688         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3689         pointer to dictionary.
3691 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3693         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3694         negative left italic correction.
3695         * src/utils/afmtodit/afmtodit.man: Document it.
3697         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3698         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3699         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3701         * NEWS: Updated.
3703 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3705         * NEWS: Updated.
3707 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3709         * src/preproc/refer/refer.man: Mention REFER environment variable.
3711 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3713         Similar to \[is], the square root glyph (\[sr]) and the square root
3714         extension glyph (\[radicalex]) are now text symbols.  The new
3715         mathematical versions are called \[sqrt] and \[sqrtex],
3716         respectively.
3718         * font/devX*/S: Regenerated.
3719         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3720         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3721         * font/devdvi/EX, font/devdvi/S: Regenerated.
3722         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3723         * font/devlj4/generate/special.map: Add `sqrt'.
3724         * font/devlj4/S: Regenerated.
3725         * font/devps/generate/textmap: Add `sqrt'.
3726         * font/devps/S, font/devps/symbolmap: Regenerated.
3728         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3729         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3730         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3731         overlap horizontally.
3733         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3734         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3735         Fix `radicalex'.
3737         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3738         and `sqrtex' are overlapping glyphs.
3740 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3742         * font/devdvi/generate/texsy.map: Add `is'.
3743         * font/devps/symbolmap: Regenerated.
3744         * font/devdvi/*TC, MI, S: Regenerated.
3746         * tmac/dvi.tmac: Remove `is'.
3748 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3750         `is' is now a text symbol (only relevant for dvi).  The math variant
3751         can be accessed with `integral'.
3753         * font/devX*/S: Regenerated.
3754         * font/devdvi/generate/texex.map: Remove `is'.
3755         * font/devdvi/EX: Updated.
3756         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3757         * font/devlj4/generate/special.map: Ditto.
3758         * font/devlj4/S: Regenerated.
3759         * font/devps/generate/textmap: Add `integral'.
3760         * font/devps/S: Regenerated.
3762         * tmac/dvi.tmac: Define `is'.
3764         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3766         * src/preproc/tbl/main.cc (process_format): Fix error message.
3768 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3770         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3771         * font/devps/textmap: Fix entries for `ne' and `nc'.
3772         * font/devps/symbolmap: Regenerated.
3774         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3775         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3776         `38', `58', `78', `-+', `|=', `nc', `ne'.
3778         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3779         Use `schar' for `aq'.
3780         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3781         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3782         * tmac/tty.tmac: Add `ne'.
3784         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3785         for fallback glyphs.
3787 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3789         Add glyph `|='.
3791         * font/devX*/*: Regenerated.
3792         * font/devdvi/generate/ec.map: Remove `eq'.
3793         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3794         Assign `|=' to position 39.
3795         * font/devdvi/*EC, S: Regenerated.
3796         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3797         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3798         Assign `|=' to position 549.
3799         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3800         `equalmath'.
3801         Add `uni2243' for `|='.
3803         * tmac/ec.tmac: Add `eq'.
3804         * tmac/dvi.tmac: Add `=~'.
3805         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3806         `|='.
3808 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3810         * font/devdvi/generate/tc.map: Remove `**'.
3811         * font/devdvi/*TC: Regenerated.
3812         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3813         `78', `<<', `>>'.
3814         * font/devutf8/NOTES: Updated.
3816         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3817         Don't give default parameter to `set_macro'.
3818         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3819         instead of `set_macro'.
3820         (charinfo::setx_macro): Implement it.
3821         (charinfo::set_macro): Don't change `mode'.
3823         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3824         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3825         * tmac/dvi.tmac: Define `!=' with `.schar'.
3827 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3829         * font/devX*/S: Regenerated.
3830         * font/devdvi/generate/ec.map: Remove `pl'.
3831         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3832         * font/devdvi/*{TC,EC}: Regenerated.
3833         * font/devhtml/R.proto: Add `-+'.
3834         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3835         * font/devlbp/*: Remove `or'.
3836         * font/devlj4/generate/special.map: Remove `or'.
3837         * font/devlj4/S: Regenerated.
3838         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3839         `seveneighths', `threeeighths'.
3840         Remove `plusmath'.
3841         Replace `minusplus' with `uni2213'.
3842         * font/devps/symbolmap: Regenerated.
3843         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3844         Add `-+'.
3846         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3847         function.
3848         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3849         Call glyph_color and fill_color even if tcommand_flag isn't set.
3850         (make_node, node::add_char): Check not ci->is_fallback but
3851         ci->is_normal.
3853         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3854         * tmac/ec.tmac: Add .rchar entry for `f/'.
3855         Don't remove `12', `14', `34'.
3856         Define `pl' to be always roman.
3857         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3858         Define `18', `38', `58', `78'.
3859         * tmac/tty.tmac: Add `-+'.
3860         * tmac/dvi.tmac: Define `f/'.
3861         (dvi-frac): Use `f/'.
3862         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3863         Define `18', `38', `58', `78'.
3865 2002-12-15  Colin Watson  <cjwatson@debian.org>
3867         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3869 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3871         Add glyph `tno', a textual variant of `no'.
3873         * font/devX*/*: Regenerated.
3874         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3875         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3876         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3877         * font/devdvi/*: Regenerated.
3878         * font/devlbp/*: Add `tno'.
3879         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3880         * font/devlj4/*: Regenerated.
3881         * font/devps/generate/textmap: Replace `no' with `tno'.
3882         * font/devps/generate/symbolchars: Add `no'.
3883         * font/devps/*: Regenerated.
3885         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3887         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3888         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3890         * NEWS: Updated.
3892         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3893         Add definition for `sd'.
3894         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3896         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3898 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3900         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3901         mode to avoid rounding errors.
3902         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3904         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3905         src/roff/troff/troff.man: Improve documentation of -T.
3907 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3909         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3910         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3912 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3914         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3915         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3916         Scaling Euro.sansserif glyphs down to have the same height as
3917         digits.
3918         Removed unnecessary points; added some extrema.
3920         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3921         Regenerated.
3923 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3925         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3926         and `Euro.symbol.bold.slanted'.
3927         Improve some glyph offsets and widths.
3928         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3929         Regenerated.
3930         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3931         typo.
3932         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3933         direcory.
3935         * tmac/europs.tmac: Updated to new glyph indices.
3936         Use Euro.symbol for font familiy `A'.
3938         * doc/groff.texinfo: Minor improvements.
3940 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3942         * font/devdvi/generate.tc.map: s/%O/%0/.
3943         * font/devdvi/*TC: Regenerated.
3945         * src/roff/troff/div.cc (init_div_requests): Sorted.
3947         * tmac/dvi.tmac: Remove `Ye'.
3948         * tmac/ec.tmac: Remove `Ye'.
3949         Add .rchar entry for `de'.
3951         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3952         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3953         * NEWS: Updated.
3955 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3957         Add PS font for various Euro glyphs.
3959         * font/devps/generate/freeeuro.sfd: New master font file for
3960         pfaedit.
3961         * font/devps/generate/sfdtopfa.pe: New conversion script for
3962         pfaedit.
3963         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3964         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3965         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3966         `freeeuro.sfd'.
3967         * font/devps/EURO: Generated from `freeeuro.afm'.
3968         * font/devps/download: Add `freeuro.pfa'.
3969         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3970         `freeeuro.pfa'.
3972         * tmac/europs.tmac: New file.
3973         * tmac/ps.tmac: Include `europs.tmac'.
3974         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3976 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3978         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3979         * font/devdvi/S: Regenerated.
3980         * font/devhtml/R.proto: Fix `CR' and `ci'.
3981         Add `OK'.
3982         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3983         Remove `bs'.
3984         * font/devps/symbolmap: Regenerated.
3985         * font/devutf8/R.proto: Fix `CR' and `ci'.
3986         Add `OK'.
3987         * font/devutf8/NOTES: Updated.
3989         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3990         `ci'.
3991         Add `OK'.
3992         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3994         * tmac/dvi.tmac: Add `lh' and `rh'.
3995         * tmac/Xps.tmac: Fix `lh' and `rh'.
3996         * tmac/X.tmac: Add `OK'.
3997         * tmac/lj4.tmac: Ditto.
3999 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4001         * font/devX*/S: Regenerated.
4002         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4003         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4004         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4005         * font/devdvi/S: Regenerated.
4006         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4007         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4008         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4009         `bracketleftbt', `bracketrighttp', `bracketrightex',
4010         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4011         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4012         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4013         `rb', and `bv'.
4014         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4015         * font/devutf8/NOTES: Updated.
4016         * font/devlj4/generate/special.map: Add glyph `braceex'.
4017         * font/devlj4/S: Regenerated.
4019         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4021 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4023         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4024         and `vA'.
4025         Fix code for `an'.
4026         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4028         * doc/texinfo.tex: New version from texinfo 4.3.
4029         * doc/groff.texinfo: Updated for texinfo 4.3.
4030         Use @tie{} where appropriate.
4031         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4032         * font/devdvi/generate/tc.map: Remove `rn'.
4033         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4034         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4035         Fix code for `an'.
4036         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4037         font/devX75-12/*: Regenerated.
4039         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4040         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4041         Improve definition of `an'.
4042         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4043         `ru'.
4044         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4045         * tmac/X.tmac: Add definition for `or'.
4046         * tmac/Xps.tmac: Undo change 2002-11-05.
4047         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4049 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4051         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4052         call flush_tbuf.
4054 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4056         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4057         defines a glyph which is searched after the check for fonts declared
4058         with `.special' (and before the check for all mounted special
4059         fonts).  `fschar' defines a glyph for a particular font which is
4060         searched after the check for fonts declared with `.fspecial' (and
4061         before the check for fonts declared with `.special').  `rfschar'
4062         removes glyphs defined with `fschar'.
4064         * src/roff/troff/token.h (char_mode): New enum.
4065         Declare do_define_character.
4066         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4067         `mode'.
4068         (charinfo::is_fallback): Updated.
4069         (charinfo::is_special): New method.
4070         * src/roff/troff/input.cc (do_define_character): Add and use
4071         optional second parameter used as a prefix for font-specific glyph
4072         names.
4073         (define_character, define_fallback_character): Updated.
4074         (define_special_character): New function.
4075         (init_input_requests): Add `schar'.
4076         (charinfo::charinfo, charinfo::set_macro): Updated.
4077         * src/roff/troff/node.cc: Include `stringclass.h'.
4078         (make_glyph_node): Handle special glyphs defined with `.schar' and
4079         `.fschar'.
4080         (define_font_special_character, remove_font_special_character): New
4081         functions.
4082         (init_node_requests): Sorted.
4083         Add `fschar' and `rfschar'.
4084         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4085         Document new requests.
4087         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4088         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4090 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4092         Added new font `SC' (cmtex10) to devdvi.
4094         * devdvi/generate/Makefile (FONTS): Add `SC'.
4095         (SC): New rule.
4096         * devdvi/generate/textex.map: New map file for cmtex.
4097         * devdvi/SC: New.
4098         * devdvi/Makefile.sub (DEVFILES): Updated.
4099         * tmac/dvi.tmac: Add fspecial entries for SC.
4100         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4101         found before `S' since the font position of `SC' is lower due to the
4102         gaps in DESC's `font' line.
4103         * tmac/ec.tmac: Add a `special' call.
4104         * NEWS: Updated.
4106         * font/devhtml/R.proto: Remove double entry for `ti'.
4107         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4108         * tmac/tty-char.tmac: Remove entry for `bq'.
4109         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4110         * tmac/ec.tmac: Don't remove `aq' glyph.
4111         * tmac/X.tmac: Fix entry for `em'.
4112         Add entries for `fo' and `fc'.
4113         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4115         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4116         documentation of `special' and `fspecial' requests.
4118 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4120         * font/devascii/R.proto, font/devcp1047/R.proto,
4121         font/devlatin1/R.proto: Remove entry for `.i'.
4122         * font/devdvi/generate/textt.map: Add entry for `ad'.
4123         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4124         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4125         We need this for getting kerning values to compose `/l' and `/L'.
4126         * font/devdvi: Regenerated font definition files for CM fonts.
4127         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4128         * font/devutf8/R.proto: Ditto.
4129         Remove double entry for `ti'.
4131         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4132         for (groff) ligatures, `la', and `ra'.
4133         Add "'C", "'c", `IJ', and `ij'.
4134         Remove double entry for `ti'.
4135         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4136         double entries.
4137         Add "'C", "'c", `IJ', and `ij'.
4138         Fix entries for (groff) ligatures, `la', and `ra'.
4140         * tmac/ps.tmac (ps-achar): New macro.
4141         Define "'c" and "'C".
4142         * tmac/tty.tmac: Add entry for `.i'.
4143         * tmac/X.tmac (X-achar): New macro.
4144         Define "'c", "'C", and `:Y'.
4145         Add entries for `IJ' and `ij'.
4146         * tmac/Xps.tmac (Xps-achar): New macro.
4147         Define "'c" and "'C".
4148         Add entries for `IJ' and `ij'.
4149         * tmac/lbp.tmac (lbp-achar): New macro.
4150         Add fallback characters for all groff ligatures and many other
4151         glyphs.
4152         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4153         Add entries for `/l' and `/L'.
4154         Define "'c" and "'C".
4155         Add entries for `IJ' and `ij'.
4157 2002-11-02  Larry Kollar  <kollar@alltel.net>
4159         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4161 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4163         Adding support for composite glyphs: \[xxx yyy ...] and the
4164         `composite' request.
4166         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4167         to Unicode-based glyph names.
4168         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4169         glyph names to groff glyph names.
4170         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4171         Unicode-based glyph names.
4172         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4173         for handling Unicode glyph names.
4174         * src/roff/troff/input.cc: Include unicode.h.
4175         (composite_glyph_name): New function.
4176         (token::next) <'['>: Handle Unicode glyph names and composite
4177         glyphs.
4178         (composite_dictionary): New dictionary for the `composite' request.
4179         (composite_request): Implement `composite' request.
4180         (init_input_requests): Add `composite'.
4181         Alphabetically sorted.
4182         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4183         commented out).
4184         (init_env_requests): Alphabetically sorted.
4185         Removed `tas' and `tar' (already commented out).
4186         * src/roff/troff/Makefile.sub: Updated.
4188 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4190         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4191         of options.
4193 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4195         Fix computation of .trunc register.  Additionally, its value (and
4196         the value of the .ne register) is now always set before entering the
4197         trap.
4199         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4200         `needed_space' before calling `space'.
4201         (top_level_diversion::space): Remove special code for 'sp before the
4202         first page.
4203         Call `begin_page' with the discarded space as a parameter.
4204         (top_level_diversion::begin_page): Add optional parameter to set
4205         `truncated_space'.
4206         * src/roff/troff/div.h: Updated.
4208         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4209         \n[.ne].
4211         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4212         (LP): Remove superfluous call to `br'.
4213         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4214         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4216 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4218         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4219         (doc-setup-header): Don't set page register `%'.
4220         * tmac/doc-nroff: Remove variable `C'.
4221         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4222         (doc-setup-header): Don't set page register `%'.
4223         Don't call `bp'.
4224         * tmac/doc-common (doc-header): Call `ns'.
4225         (doc-paragraph): Protect .sp with .br so that it survives traps
4226         possibly set by the user.
4227         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4229         * tmac/doc*: Replace ' with . for consistency if no effect.
4231 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4233         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4234         so that it survives traps possibly set by the user.
4236         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4237         (troff_output_file::set_font): Call flush_tbuf if necessary.
4238         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4239         flush_tbuf and do_motion only if necessary.
4240         (troff_output_file::start_special,
4241         troff_output_file::put_char_width, troff_output_file::put_char,
4242         troff_output_file::draw): Updated.
4243         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4244         vmotion_node::tprint): Undo change 2002-10-23.
4246 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4248         * tmac/www.tmac (DC): Fix case of overlapping images.
4250 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4252         * src/roff/troff/node.cc (troff_output_file::fill_color,
4253         troff_output_file::glyph_color): Set current color before testing
4254         color_flag.
4255         (troff_output_file::put_char_width, troff_output_file::put_char,
4256         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4257         before glyph_color.
4258         (troff_output_file::file_color, troff_output_file::glyph_color):
4259         Call do_motion.
4260         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4261         vmotion_node::tprint): Move first, then call fill_color.
4263 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4265         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4266         possible to use multiple main macro packages.
4268 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4270         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4271         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4272         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4273         is set.
4274         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4275         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4277 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4279         * NEWS, doc/webpage.ms: Updated.
4281 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4283         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4284         troff_output_file::put_char, troff_output_file::fill_color,
4285         troff_output_file::glyph_color): Handle case where color pointer
4286         is null.
4288 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4290         Add the new -r option to grotty.  It is similar to the -i option
4291         except it tells grotty(1) to use the "reverse video" attribute to
4292         render italic fonts.
4294         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4295         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4296         (tty_printer::make_underline, tty_printer::put_color,
4297         tty_printer::end_page): Use it.
4298         (main): Add -r switch.
4299         (usage): Updated.
4300         * src/devices/grotty/grotty.man: Document it.
4302 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4304         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4305         cast to `unsigned char' to properly read patterns with 8bit
4306         characters.
4308 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4310         * REVISION: Increased to 2.
4312 Version 1.18.1 released
4313 =======================
4315 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4317         * doc/webpage.ms, NEWS: Updated.
4319 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4321         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4322         suppress additional whitespace after the header.
4324         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4325         with NetBSD.
4327         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4329 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4331         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4332         (Dt): Use it to improve language localization (especially Russian
4333         and French).
4335 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4337         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4338         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4339         drawing commands.
4340         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4341         curve type.
4342         Call `picurve' for BSPLINE.
4343         (HGPrintElt): Handle BSPLINE.
4344         * src/preproc/grn/README: Document it.
4346 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4348         * src/roff/troff/node.cc (break_char_node::col): New variable.
4349         Updated constructor.
4350         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4351         unconditionally.
4352         (space_node::space_node): Remove assertion.
4353         (break_char_node::add_self): Pass color argument to space node.
4354         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4355         Ditto.
4356         * src/roff/troff/env.cc (environment::do_break,
4357         environment::add_padding): Ditto.
4359 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4361         Redesigning color support in troff.  Colors are no longer
4362         represented as separate nodes but are now part of glyph nodes and
4363         friends.  This fixes the current formatting misbehaviour due to the
4364         changes introduced on 2002-09-20.  Some extra code is necessary for
4365         proper grotty support: Without adding color variables to
4366         space-related nodes, the background color would be changed too late.
4368         * src/roff/troff/node.h, src/roff/troff/node.cc:
4369         s/current_pagecolor/current_fill_color/.
4370         s/current_glyphcolor/current_glyph_color/.
4371         (glyph_color_node, fill_color_node): Removed.
4372         (node::get_glyph_color, node::get_fill_color): New virtual member
4373         functions.
4374         (space_node::col): New variable.
4375         Updated constructors of space_node and derived classes accordingly.
4376         (hmotion_node::col): New variable.
4377         Updated constructors of hmotion_node and space_char_hmotion_node
4378         accordingly.
4379         (vmotion_node::col): New variable.
4380         Updated constructor accordingly.
4381         (draw_node::gcol, draw_node::fcol): New variables.
4382         Updated constructor accordingly.
4383         (special_node::gcol, special_node::fcol): New variables.
4384         Updated constructors accordingly.
4385         (troff_output_file::put_char, troff_output_file::put_charwidth,
4386         troff_output_file::draw): Set glyph and fill color.
4387         (troff_output_file::start_special): Set glyph and fill color.
4388         Always set current font.
4389         (troff_output_file::fill_color, troff_output_file::glyph_color):
4390         Don't call `do_motion'.
4391         (glyph_node::gcol, glyph_node::fcol): New variables.
4392         Updated constructors of glyph_node and ligature_node accordingly.
4393         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4394         member functions.
4395         (glyph_node::merge_glyph_node,
4396         kern_pair_node::add_discretionary_hyphen,
4397         node::add_discretionary_hyphen): Updated.
4398         (break_char_node::merge_self): Updated.
4399         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4400         vmotion_node::tprint): Handle color.
4401         (make_glyph_node, make_node, node::add_char): Updated.
4403         * src/roff/troff/env.cc (environment::space_newline,
4404         environment::space, environment::output_line, environment::do_break,
4405         environment::make_tab_node, environment::add_padding, title):
4406         Updated.
4407         (environment_switch, environment_copy): Don't add color nodes.
4409         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4410         nothing.
4411         (token::next): Updated.
4412         \m and \M now are as transparent as \s.
4413         (process_input_stack, token::add_to_node_list, token::process,
4414         read_draw_node): Updated.
4415         (charinfo_to_node_list): Don't add color nodes.
4417         * doc/groff.texinfo: Updated.
4419 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4421         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4422         strings.
4424 2002-09-27  Colin Watson  <cjwatson@debian.org>
4426         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4428 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4430         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4431         appropriate.
4432         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4433         (linewidth_factor): New global variable.
4434         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4435         linewidth_factor.
4436         (long_options): Add -w/--linewidth option.
4437         (usage): Updated.
4438         (main): Handle -w option to set linewidth_factor.
4439         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4440         line_thickness.
4442         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4444 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4446         Fixed a bug in the line thickness setting code.
4448         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4449         variable.
4450         (lbp_printer::set_line_thickness): Pass environment as second
4451         parameter.
4452         Implement it actually.
4453         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4454         and `set_line_thickness, depending on the current font size.
4456 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4458         Some Debian patches.
4460         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4461         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4462         `list->last'.
4464 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4466         * configure: Regenerated with autoconf 2.54.
4468 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4470         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4471         glyph_color.
4472         Rename cur_fill_color to fill_color.
4473         * src/roff/troff/env.cc: Updated.
4475 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4477         * src/roff/troff/env.cc (title): Copy color status after processing
4478         title.
4479         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4480         fill color nodes to reset colors properly.
4482         * tmac/www.tmac (DC): Fix color handling.
4484         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4485         * doc/groff.texinfo: Fixing documentation of `tl' request.
4486         * doc/webpage.ms: Updated.
4488 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4490         * src/roff/troff/env.cc (environent_switch, environment_copy):
4491         Emit glyph and fill color nodes to initialize colors properly.
4493 2002-09-17  Colin Watson  <cjwatson@debian.org>
4495         * src/roff/troff/env.cc (environment::set_glyph_color,
4496         environment::set_fill_color): Fix typo which prevented \m[] work
4497         correctly.
4499 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4501         Add left and right italic correction to non-slanted PS fonts.  This
4502         is an experimental feature to improve image rendering of grohtml.
4504         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4505         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4506         * font/devps/*: All non-slanted fonts regenerated.
4507         * NEWS: Updated.
4509 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4511         Add a site-specific font directory.
4513         * Makefile.in (localfontdir, legacyfontdir): New variables.
4514         (fontpath): Use them.
4515         (MDEFINES, uninstall_dirs): Updated.
4516         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4517         Remove `FONTPATH' and `MACROPATH'.
4519         * src/roff/troff/troff.man, NEWS: Updated.
4520         * doc/groff.texinfo (Font Directories): New section.
4521         Other minor fixes.
4523         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4524         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4525         src/preproc/grn/grn.man: Minor fixes.
4527         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4528         Remove unused variable.
4530 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4532         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4533         * man/groff_out.man: Fix documentation of 'N'.
4535 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4537         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4538         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4539         set.
4540         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4541         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4542         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4543         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4544         PRE_TAG>: Call `begin' with `FALSE'.
4546 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4548         * src/libs/libgroff/string.cc (string::extract): Fix position of
4549         terminating null byte.
4551 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4553         Add global option `nospaces' to tbl so that leading and trailing
4554         spaces in data items are ignored.
4556         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4557         function to remove leading and trailing spaces.
4558         * src/include/stringclass.h: Updated.
4560         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4562         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4563         option.
4564         Fix typo in error messages.
4565         (process_data): Implement `nospaces' option.
4566         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4568 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4570         * src/include/config.hin: Add `HAVE_ISATTY'.
4571         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4572         `fname' member.
4573         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4574         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4575         `operator!=' for `char'.
4576         * doc/groff.texinfo: Replace @ifnottex block for top node with
4577         @ifhtml block.
4579 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4581         * doc/Makefile.in (.texinfo.html): Add -I switch.
4582         * doc/groff.texinfo: Add @ifnottex block for top node to make
4583         translation to HTML work.
4585 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4587         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4588         (get_papersize, determine_vertical_offset): Removed.
4589         (char_buffer::do_image): Always specify letter size.
4590         (main): Updated.
4591         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4592         -sPAPERSIZE.
4594 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4596         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4597         default indentation.
4599 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4601         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4602         -sPAPERSIZE for gs.
4603         (generateImages): Clean up push-back buffer.
4605 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4607         * doc/groff.texinfo: Minor fixes.
4609 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4611         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4612         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4613         (gsPaper): Removed.
4614         (determine_vertical_offset): Use LETTER_LENGTH.
4615         (createPage): Moved to ...
4616         (imageList::createPage): This.
4617         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4618         (imageList::getMaxX): New function.
4619         (createImage): Moved to ...
4620         (imageList::createImage): This.
4621         (imageList::createImages): New function.
4622         (generateImages): Read `maxx' directly.
4623         Updated.
4624         (scanArguments): Don't specify `gsPaper' for `-o'.
4625         (makeTempFiles): Call `xtmpfile' with the last argument set to
4626         `TRUE'.
4628 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4630         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4631         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4632         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4633         * src/preproc/html/pushback.cc: Include nonposix.h.
4634         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4635         conditionally.
4637 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4639         Use $(OBJEXT) for the object file extension.
4641         * Makefile.comm (.SUFFIXES): Add .obj.
4642         (.cc.obj, .c.obj): New implicit rules.
4643         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4644         (MDEFINES): Add EXEEXT and OBJEXT.
4645         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4647 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4649         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4651 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4653         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4654         the file.
4655         (html_printer::update_min_max, html_printer::add_table_end): New
4656         methods.
4657         (html_printer::lookahead_for_tables): Use them.
4658         Reset page offset correctly.
4659         (html_printer::~html_printer): Add creation of creator comment up.
4661 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4663         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4664         * man/groff_tmac.man: Fix typos.
4665         * man/groff_font.man: Minor reordering.
4666         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4668 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4670         Avoid endless loops while scanning for tables.
4672         * src/devices/grohtml/post-html.cc (list::insert): Set
4673         ptr->right->left.
4674         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4675         all callers.
4676         Return immediately if that argument is NULL.
4677         (html_printer::calc_nf): Don't test if `g' is NULL.
4678         (html_printer::lookahead_for_tables): Use
4679         `glyphs.move_right_get_data'.
4680         Don't test if `g' is NULL.
4682 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4684         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4686         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4687         a pointer.
4688         (char_block::char_block): Allocate `buffer'.
4689         (char_buffer::add_string): Use it.
4691 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4693         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4694         src/devices/grodvi/grodvi.man: Document default line thickness.
4696 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4698         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4699         8192.
4701 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4703         * doc/webpage.ms: Updated.
4705 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4707         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4708         unbreakable space.
4710 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4712         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4713         (&& -> &).
4715 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4717         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4718         tok.next().
4719         (read_gray): Ditto.
4720         Don't push back a space but a newline onto the stack.
4722 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4724         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4725         inadvertently.
4727         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4728         html_printer::start_font): Handle them.
4729         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4730         reset bold and tt.
4731         (html_text::do_bold): Don't reset italic and tt.
4732         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4733         * font/devhtml/DESC.proto: Add those fonts.
4734         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4736 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4738         * MORE.STUFF: Added gpresent.
4740         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4741         whitespace before printing the logging message.
4743 2002-07-31  Colin Watson  <cjwatson@debian.org>
4745         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4746         Initialize `n' to zero.  This fixes a segfault on ARM.
4748 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4750         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4752 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4754         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4755         final semicolon.
4757 2002-07-28  Colin Watson  <cjwatson@debian.org>
4759         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4760         `.ps'.
4761         (html_printer::html_printer): Initialize `pointsize'.
4763 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4765         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4766         gnu.png.
4767         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4768         (gnu.eps): Add -rle switch to pnmtops.
4769         (distfiles): Add gnu.eps and gnu.png.
4771 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4773         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4774         Add `operator!='.
4776 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4778         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4779         ' \+' but '  *' for sed.
4780         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4782 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4784         * doc/groff.texinfo: Document `papersize' keyword.
4785         * NEWS, man/groff_font.man: Updated.
4787 2002-07-23  Colin Watson  <cjwatson@debian.org>
4789         Extend papersize keyword to accept more than a single entry.  The
4790         first valid will be used.
4792         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4793         (font::scan_papersize): Really skip final newline.
4794         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4796 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4798         * configure.ac: Test for isatty.
4799         * configure: Regenerated.
4800         * src/include/posix.h: Check HAVE_ISATTY.
4801         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4802         * src/utils/lookbib/lookbib.cc: Include posix.h.
4803         Don't declare isatty.
4805 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4807         * NEWS: Add `output' request.
4809         * REVISION: Increased to 1.
4811 Version 1.18.0 released
4812 =======================
4814 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4816         Allow internal glyph indices > 0xFF in grohtml for input characters.
4818         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4819         as parameter.
4820         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4821         Updated all callers.
4822         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4823         (html_printer): Updated.
4825 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4827         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4828         * font/devutf8/R.proto: Adding some missing glyphs.
4829         * font/devutf8/NOTES: Updated.
4831         * tmac/dvi.tmac: Add more composite glyphs.
4832         * tmac/html.tmac: Updated.
4834         * man/groff_char.man: Add `sum' and `product' entities.
4836         * NEWS: Updated.
4838 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4840         Improved table, tab, and indenting support.
4842         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4843         string_iterator::suppress_newline_flag): Removed.  Updated all
4844         function which have used it.
4846         * src/roff/troff/env.cc: Include `input.h'.
4847         (environment::add_node): Accept 0 as parameter.
4848         (environment::add_html_tag): Add `force' parameter.
4849         Updated all callers.
4850         (environment::add_html_tag_tabs): Ditto.
4851         For the moment, support left-aligned tabs only.
4852         (environment::make_html_tag): New function.
4853         (fill, no_fill): Set .br html tag additionally.
4854         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4855         (environment::add_html_tag_eol): Removed.
4856         (tab_stops::distance_to_next_tab): Add variant for handling 
4857         nextpos'.
4858         (environment::distance_to_next_tab): Ditto.
4859         Updated all callers.
4860         (environment::handle_tab): Handle tabs for html.
4861         
4862         * src/roff/troff/env.h: Updated.
4864         * src/roff/troff/div.cc: Updated all callers of
4865         `environment::add_html_tag'.
4867         * src/devices/grohtml/html-table.cc,
4868         src/devices/grohtml/html-table.h: New files.
4870         * src/devices/grohtml/html-text.cc (html_text): New members
4871         `blank_para' and `start_space'.
4872         (html_text::issue_tag): Don't emit TABLE_TAG.
4873         Handle indentation for PRE_TAG and P_TAG.
4874         (html_text::end_tag): Updated.
4875         (html_text::table_is_void, html_text::issue_table_begin,
4876         html_text::issue_table_end): Removed.
4877         (html_text::do_push): Simplified.
4878         [DEBUGGING]: Small fix.
4879         (html_text::push_para): Add new parameter for indentation; updated
4880         all callers.
4881         Handle PRE_TAG.
4882         (html_text::do_indent, html_text::do_table, html_text::done_table,
4883         html_text::is_in_table): Removed.
4884         (html_text::do_pre): Handle P_TAG also.
4885         (html_text::shutdown): Handle p->indent.
4886         (html_text::check_emit_text): Simplified.
4887         (html_text::do_emittext): Reset `blank_para'.
4888         (html_text::do_para): Add new parameter for indentation; updated
4889         all callers.
4890         (html_text::remove_indent): New function.
4891         (html_text::do_space): Handle verbatim text properly.
4892         (html_text::ever_emitted_text, html_text::starts_with_space,
4893         html_text::remove_para_align): New functions.
4894         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4896         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4897         Updated.
4899         * src/devices/grohtml/post-html.cc: Include html-table.h.
4900         (INDENTATION): Removed.
4901         (text_glob): Added many `is_<foo>' functions.
4902         Added table description `tab'.
4903         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4904         member functions.
4905         (list): Add `insert' and `move_to' member functions.
4906         (page): Add `insert_tag' member function.
4907         (page::dump_page) [DEBUG_TABLES]: Improved.
4908         (html_printer): Add `table' and `max_linelength' elements.
4909         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4910         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4911         `remove_tabs', `remove_courier_tabs'.
4912         (html_printer::emit_raw): Handle indentation.
4913         (html_printer::do_center, html_printer::write_header): Updated.
4914         (html_printer::is_courier_until_eol): Check for tag.
4915         (html_printer::do_linelength): Handle max_linelength.
4916         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4917         fill_on.
4918         (html_printer::do_tempindent): Updated.
4919         (html_printer::do_indentedparagraph): Removed.
4920         (html_printer::do_indent): Simplified.
4921         (html_printer::do_eol): Use `ever_emitted_text'.
4922         (html_printer::do_flush, html_printer::do_links): Don't call
4923         done_table.
4924         (html_printer::do_break): Handle end_tempindent.
4925         (html_printer::troff_tag): Get argument.
4926         Don't handle `.ip'.
4927         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4928         (html_printer::flush_page): Call `lookahead_for_tables'.
4929         Don't call `done_table'.
4930         (html_printer::add_to_sbuf): Always call do_indent.
4932         * src/devices/grohtml/Makefile.sub: Updated.
4934         * tmac/an-old.tmac (TP): Don't handle html device specially.
4935         (an-do-tag-html): New function which will be used instead of
4936         `an-do-tag' if html device is used.
4938         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4940         * tmac/s.tmac (@IP): Don't handle html device specially.
4941         (@IP-html): New function which will be used instead of `@IP' if
4942         html device is used.
4944         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4945         is a hack which will eventually vanish again.
4946         (PIMG): Handle `-C' option correctly if not html.
4947         (HR): Use HTML-NS.
4949 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4951         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4953 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4955         * contrib/pic2graph/pic2graph.*: Use convert(1).
4956         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4958 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4960         * tmac/groff_trace.man: New file.
4961         * tmac/Makefile.sub: Updated.
4962         * NEWS: Updated.
4964 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4966         * src/roff/groff/groff.man: Add some cross references.
4968 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4970         * src/roff/troff/input.cc (substring_request): Add warnings for
4971         string indices out of range.
4973 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4975         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4976         * font/devdvi/*EC: Regenerated.
4978 2002-07-10  Bernd Warken  <bwarken@mayn.de>
4980         * man/groff_char.man: Updated and extended.
4982 2002-07-10  Werner LEMBERG  <wl@gnu.org>
4984         * src/roff/troff/input.cc (length_macro): Renamed to...
4985         (length_request): This.
4986         Move call of `tok.next()' to the very end, otherwise the register
4987         value hasn't been updated yet.
4988         (init_input_requests): Updated.
4990 2002-07-09  Werner LEMBERG  <wl@gnu.org>
4992         * src/roff/troff/input.cc (substring_macro): Renamed to...
4993         (substring_request): This.
4994         (init_input_requests): Updated.
4995         * src/roff/troff/request.h: Updated.
4997 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
4999         * src/roff/grog/grog.sh: Fix typo.
5001 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5003         * win32-diffs: Updated.
5005         Handle `papersize' keyword properly in DESC.
5007         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5008         type.
5009         Updated all callers.
5010         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5011         grolj4.
5012         * src/include/paper.h: Updated.
5014         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5015         Other minor C syntax fixes.
5016         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5017         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5018         members.
5019         (lbp_printer::lbp_printer): Pass three arguments.
5020         Set paper dimensions properly.
5021         (make_printer, main): Updated.
5022         (handle_unknown_desc_command): Fix error messages.
5023         (main): Handle papersize keyword in DESC properly.
5025         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5026         `user_paper_size'.
5027         (lbp_printer::lbp_printer): Pass an argument.
5028         Set paper_size properly.
5029         (handle_unknown_desc_command): Removed.
5030         (make_printer, main): Updated.
5031         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5033         * man/groff_font.man, NEWS: Updated.
5035 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5037         Integrated eqn2graph, contributed by Eric S. Raymond.
5039         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5040         files.
5041         * Makefile.in, NEWS: Updated.
5043 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5045         Changing the substring request to make it fit better with other
5046         string manipulation functions in other programming languages:
5047         Index 0 is now the first character in the string, and index -1
5048         indicates the last character.  Since this request didn't work
5049         properly anyway in the last release, it doesn't harm too much to
5050         change the syntax.
5052         * src/roff/troff/input.cc (substring_macro): Use loops to get
5053         the real string length (ignoring COMPATIBLE_SAVE and
5054         COMPATIBLE_RESTORE) and offsets.
5055         Implement change described above.
5057         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5058         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5060         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5062 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5064         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5065         COMPATIBLE_RESTORE are completely ignored.
5067         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5068         functions.
5069         (macro): `length' field renamed to `len'.
5070         Added new field `empty_macro' (1 if macro is empty), to be used
5071         instead of checking `len'.
5072         Updated all callers.
5073         (macro::empty): Updated.
5074         (macro::length, macro::set, macro::get): New functions.
5075         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5076         Set `empty_macro'.
5077         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5078         COMPATIBLE_RESTORE pairs.
5079         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5080         * src/roff/troff/request.h: Updated.
5082         * doc/groff.texinfo: Document .chop's behaviour better.
5084 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5086         * doc/pic.ms: Fix documentation for the addition of positions.
5088         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5090 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5092         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5094         * src/roff/troff/input.cc (have_string_arg): New global variable.
5095         (read_mode): New enumeration.
5096         (read_escape_name): Use it.  Update all calls.
5097         (read_long_escape_name): Use it.  Update all calls.
5098         Set have_string_arg if appropriate.
5099         (get_char_for_escape_name): Add parameter for handling space
5100         character.
5101         (interpolate_string_with_args, decode_string_args): New functions.
5102         (get_copy, token::next): Call it if necessary.
5103         (interpolate_string): Fix error message.
5105         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5106         Document it.
5108 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5110         * man/groff_tmac.man: Updated and extended.
5112 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5114         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5116 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5118         * doc/pic.ms: Improve documentation of composite block objects.
5120 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5122         * src/roff/troff/input.cc (init_registers): Add three registers
5123         `seconds', `minutes', and `hours' to hold the current time.
5125         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5126         Updated.
5128 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5130         Make \X accept both `\ ' and `\~', converting them to single space
5131         characters.
5133         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5134         (token::unstretchable_space): New inline function.
5135         * src/roff/troff/input.cc (token::next, token::delimiter,
5136         token::description, token::add_to_node_list, token::process): Handle
5137         TOKEN_UNSTRETCHABLE_NODE.
5138         (encode_char): Handle tok.stretchable_space and
5139         tok.unstretchable_space.
5141         * NEWS, doc/groff.texinfo: Document it..
5143 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5145         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5147         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5148         keyword to enable/disable SGR output.
5149         (tty_printer::change_fill_color): New function.
5150         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5152         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5153         call.
5155 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5157         Add a `color' request and a `.color' register to control usage of
5158         colours.
5160         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5161         (color_flag): This (which is the inverse).
5162         (activate_color): New function.
5163         (main, init_input_requests): Updated.
5164         * src/roff/troff/troff.h, src/roff/troff/node.cc
5165         (troff_output_file::fill_color, troff_output_file::glyph_color):
5166         Updated.
5168         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5169         Document the changes.
5171 2002-06-17  Colin Watson  <cjwatson@debian.org>
5173         Circumvent bug in autoconf 2.53 regarding top_builddir.
5175         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5176         * Makefile.in, doc/Makefile.in:
5177         s/@top_builddir@/@groff_top_builddir@/.
5178         * configure: Regenerated (with autoconf 2.53).
5180 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5182         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5183         `paperwidth' and `paperlength' for the `papersize' keyword.
5185 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5187         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5189 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5191         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5192         html_printer::do_linelength, html_printer::do_pageoffset,
5193         html_printer::do_indentation, html_printer::do_tempindent,
5194         html_printer::do_break, html_printer::begin_page): Clear indented
5195         text.
5196         * tmac/html.tmac: Disable hyphenation.
5198 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5200         Don't produce HTML files if utility programs are missing.
5202         * Makefile.in (make_html, make_install_html): New variables.
5203         (MDEFINES): Updated.
5205         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5206         utility programs.
5207         * configure.ac: Use it.
5208         * configure: Regenerated.
5210         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5211         (HTMLEXAMPLESFILES): This new variable.
5212         (EXAMPLESIMAGEFILES): Renamed to...
5213         (HTMLEXAMPLEIMAGEFILES): This.
5214         (CLEANADD): Add HTMLEXAMPLEFILES.
5215         (all): Use `make_html'.
5216         (html): New target.
5217         (install_data): Use `make_install_html'.
5218         Move html stuff to...
5219         (install_html): This new target.
5220         (uninstall_sub): Updated.
5222 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5224         * src/roff/grog/Makefile.sub (grog): Renamed to...
5225         (grog.old): This.
5226         (grog): New rule to always install grog.sh as grog.
5228 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5230         * src/roff/grog/grog.pl: Fix typo.
5232 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5234         * doc/groff.texinfo: Add more info on .tr arguments.
5236 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5238         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5240         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5241         * configure: Regenerated.
5243 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5245         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5247         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5249 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5251         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5252         is not initialized at the time we need it in case `--prefix' hasn't
5253         been set.  Check for `ac_default_prefix' also.
5254         Test for `papersize' keyword also and generalize allowed whitespace.
5255         * configure: Regenerated.
5257         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5258         `paperlength'.
5260         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5261         with...
5262         (src_version, src_revision): New variables to avoid overwriting
5263         from parent make process.
5264         (version.cc): Updated.
5266         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5267         (linebuf, linebufsize): New global variables.
5268         (sys_fatal): Use `fatal' to abort properly.
5269         (get_line): New function.
5270         (get_resolution): Use it.
5271         Improve error messages.
5272         (get_papersize): Check `papersize' also.
5273         Use `get_line'.
5274         Improve error messages.
5276 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5278         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5279         should be removed only if builddir is not srcdir.
5280         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5281         (clean): Depend on `mostlyclean'.
5282         (distclean): Depend on `clean'.
5283         (realclean, extraclean): Depend on `distclean'.
5284         (.y.cc, .y.o): Simplified.  The output files are no longer written
5285         to srcdir but to builddir.
5286         * Makefile.in (MDEFINES): Add `version' and `revision'.
5287         (uninstall_dirs): Fix order of directories.
5288         * doc/Makefile.sub (version, revision): Removed.
5289         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5290         Added `HTMLDOCFILES'.
5291         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5292         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5293         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5294         as prefix.
5296         * doc/texinfo.tex (\authortt): New macro.
5297         (\shortcontt): Define.
5298         (\titlepage): Set \tt to \authortt while defining \authorfont.
5299         (\appendixbox): New macro.
5300         (\chapmacro, \appendixentry): Use \appendixbox to get even
5301         indentation for letters.
5302         (\summarycontents): Set \tt.
5303         (\internalpagesize): Add two arguments for real paper width and
5304         height as needed by pdfTeX.
5305         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5306         Updated.
5307         (\tempdima, \tempdimb): New temporary dimensions.
5308         (\pagesizesyyy): Updated.
5310 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5312         Adding a new keyword `papersize' to the DESC file format (similar
5313         but not completely identical to grolbp's extension).  grops now has
5314         a -p command line option to override `papersize'.  Finally, grolbp
5315         has been adapted to the new syntax.
5317         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5318         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5319         elements.
5320         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5321         (CCSRCS): Add `paper.cc'.
5323         * src/include/font.h (font): Add `papersize' element.
5324         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5325         (font::scan_papersize): New function.
5326         (font::load_desc): Use it for handling `papersize' keyword.
5327         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5329         * src/devices/grops/ps.cc: Include paper.h.
5330         (user_paper_length): New global variable.
5331         (ps_printer): Use paper length as initializer.
5332         (make_printer): Updated.
5333         (main): Handle new `-p' option.
5334         * src/devices/grops/grops.man: Updated.
5336         * src/devices/grolbp/lbp.cc: Include paper.h.
5337         s/papersizes/lbp_papersizes/.
5338         (set_papersize): Use new `papersizes' array.
5339         (handle_unknown_desc_command): Don't handle `papersize'.
5340         (main): Use `font::scan_papersize' for handling `-p' option.
5341         * src/devices/grolbp/grolbp.man: Updated.
5343         * man/groff_font.man: Document `papersize'.
5344         * NEWS: Updated.
5346 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5348         * src/devices/grops/TODO: Updated.
5349         * src/devices/grops/grops.man: More info on paper formats.
5350         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5352 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5354         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5355         to list only if srcdir != currdir.
5356         (distfiles): New target.
5358         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5359         (NOMAKEDIRS): New variable.
5360         (DISTDIRS): Use it.
5362 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5364         Add .output request, similar to \! at top-level.
5366         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5367         (output_request): New function.
5368         (init_input_requests): Add it.
5369         Sorted.
5370         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5371         Document it.
5373         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5374         (prepare_examples): Fix typo.
5375         * doc/groff.texinfo (@direntry): Fix it.
5377 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5379         Including the doc subdir into groff's Makefile system.
5381         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5382         * configure.ac: Use it.
5383         Generate `doc/Makefile'.
5384         * configure: Regenerated.
5386         * Makefile.in (infodir, INSTALL_INFO): New variables.
5387         (MDEFINES, uninstall_dirs): Updated.
5388         (OTHERDIRS): Add `doc'.
5389         * Makefile.comm (CLEANDIRADD): New variable.
5390         (mostlyclean): Use it.
5392         * doc/Makefile.sub, doc/Makefile.in: New files.
5393         * doc/Makefile: Removed.
5395         * NEWS, INSTALL: Updated.
5397 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5399         * doc/homepage.ms: Renamed to ...
5400         * doc/webpage.ms: This.
5401         Use `.NHR'.
5403 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5405         Integrating the `mom' macro package, contributed by Peter Schaffter
5406         <df191@ncf.ca>.
5408         * contrib/mom/*: New subdirectory tree.
5409         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5410         be used for documentation files.
5411         (MDEFINES, uninstall_dirs): Use them.
5412         (OTHERDIRS): Add contrib/mom.
5413         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5414         @HTMLDOCDIR@.
5415         * MANIFEST, NEWS: Updated.
5417 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5419         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5420         if at outer level; at start-up we are at outer level.
5422         * src/roff/troff/input.cc (do_suppress): Implement it.
5423         Simplify \O[3].
5425         Add option -p to show progress information.
5426         pre-grohtml will now render only one page at a time, reducing the
5427         size of needed disk resources enormously.
5429         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5430         (imagePageName): New global variable.
5431         (psPageName, show_progress, currentPageNo): New global variables.
5432         (html_system): Close saved stderr and stdout handles.
5433         (write_end_image): Accept a parameter to control \O escape.
5434         (write_start_image): Adapted to new \O meaning.
5435         (char_buffer::write_upto_newline): Updated.
5436         (createAllPages): Replaced with...
5437         (createPage): This new function to create a single page for images.
5438         It uses `psselect' from the psutils package.
5439         (removeAllPages): Removed.
5440         (createImage): Updated.
5441         Handle progress display.
5442         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5443         (scanArguments): Add option -p.
5444         (makeTempFiles): Updated to create temp files for psPageName and
5445         imagePageName.
5446         (removeTempFiles): Removed.
5447         (main): Updated.
5449         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5450         html_printer::write_header): Append `\0' to `buffer'.
5451         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5452         (main): Handle -p.
5453         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5454         Handle `text_emitted'.
5455         (html_text::table_is_void): Slightly rewritten.
5456         (stop): New external symbol.
5457         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5458         (html_text::shutdown): Call `dump_stack'.
5459         (html_text::do_space): Rewritten.
5460         * src/devices/grohtml/grohtml.man: Document -p and the need of
5461         `psselect'.
5463         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5464         new \O syntax.
5465         Call \O[0] if `ps4html' is active.
5466         * tmac/s.tmac (@EQ, @EN): Handle html better.
5467         (@TS, TE): Ditto.
5468         * tmac/html.tmac: Don't use black for background colour.
5470         * src/roff/troff/node.cc: Include `div.h'.
5471         (troff_output_file::really_print_line): Don't use `is_on'. 
5472         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5473         troff_output_file::check_charinfo,
5474         troff_output_file::put_char_width, troff_output_file::put_char,
5475         troff_output_file::determine_line_limits, troff_output_file::draw,
5476         real_output_file::begin_page, glyph_color_node::tprintf,
5477         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5478         Use `is_on'.
5479         (troff_output_file::really_on): Call `do_motion'.
5480         (suppress_node::tprint): Use `get_page_number' instead of `%'
5481         register.
5482         Call `reset_output_registers' conditionally on `is_on'.
5484         * doc/groff.texinfo: Document new syntax of \O.
5485         * NEWS, man/groff_diff.man: Updated.
5487 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5489         * MORE.STUFF: Add info about David Frey's deroff implementation.
5490         Mention troff.org.
5492 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5494         Pic's `with' attribute now accepts positions.
5496         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5497         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5498         conflicts.
5499         (object_spec): Add rule for `WITH' and `position'.
5500         (relative_path): Give `corner' the precedence of `CHOP'.
5501         * src/preproc/pic/object.h (path): New members `pos' and
5502         `is_position'.
5503         * src/preproc/pic/object.cc: Updated initializers of `path'.
5504         (path::follow): Handle `is_position'.
5506         * doc/pic.ms: Completely updated grammar description.
5507         Many typographical improvements.
5509 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5511         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5512         code of x in range 0-127) also.
5513         * doc/groff.texinfo, man/groff_diff.man: Updated.
5515         Added keywords `north', `south', `east', and `west' for corners
5516         in pic.
5518         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5519         and WEST.
5520         (yylex): Handle them.
5521         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5522         (corner): Handle them.
5524 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5526         * src/devices/grops/grops.man: Clarify handling of `download' file.
5528 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5530         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5531         Jeffrey Friedl <jfriedl@yahoo.com>.
5533         * src/roff/troff/input.cc (spread_limit, warn_scale,
5534         warn_scaling_indicator): New global variables.
5535         (warnscale_request, spreadwarn_requests): New functions.
5536         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5537         (init_input_requests): Updated.
5538         (error_type): Add `OUTPUT_WARNING'.
5539         (do_error): Handle it.
5540         (output_warning): New warning function which shows output location.
5541         * src/roff/troff/env.h (spread_limit): New external variable.
5542         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5543         `output_warning'.
5544         (distribute_space): Emit warning if added space is larger than
5545         `spread_limit'.
5546         (environment::possibly_break_line): Emit warning if a line can't
5547         be adjusted on both sides.
5549         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5551 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5553         * src/roff/troff/node.cc (special_node::special_node): Use
5554         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5555         \X''\% crashes, for example.
5557         * doc/groff.texinfo: Document \! and \? used at top-level.
5559 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5561         * src/preproc/pic/pic.man: Fix some keyword syntax.
5562         Other minor typographical fixes.
5564         * src/roff/groff/groff.man: Fix typos.
5566 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5568         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5569         (ShortOpt[]): This to avoid problems with refer.
5571         * doc/pic.ms: Fix typo.
5572         Fix pic grammar description.
5574         * tmac/an-old.tmac (ne): Use de1, not de.
5576 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5578         * doc/groff.texinfo: Finished separation of glyphs and characters.
5579         Don't use the string `Appendix' for appendix headers (both in
5580         the text and the table of contents).
5581         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5582         directories.
5584         Use registers LL and LT (similar to -ms) for controlling the
5585         length of title and line, respectively, in the -man and -mdoc
5586         macro packages.
5588         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5589         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5590         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5591         (TH): Use \n[LL].
5592         (an-header, an-p-footer): Use \n[LT].
5593         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5594         doc/groff.texinfo: Document it.
5596 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5598         * doc/fdl.texi: New file.
5599         * doc/groff.texinfo: Include it.
5600         Define and use @copying.
5601         Starting with separating glyph, symbol, and character.
5603 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5605         * Makefile.in (EXEEXT): Set it.
5606         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5607         programs.
5609         * src/include/nonposix.h: Define GS_NAME.
5610         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5612         Some preliminary changes for EMX support under OS/2.
5614         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5615         __EMX__ similar to __MSDOS__.
5616         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5618 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5620         * doc/groff.texinfo: Integrated groff_out.man.
5621         Some macro fixes.
5623 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5625         * man/groff_out.man: Minor fixes.
5627 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5629         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5630         correct page references.
5631         Fixed many index entries.
5633 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5635         * man/roff.man: Enlarged.
5637 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5639         * doc/groff.texinfo: More examples, other fixes.
5641 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5643         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5644         will now form a chain, e.g.
5646           .pi foo
5647           .pi bar
5649         is now the same as
5651           .pi foo | bar
5653         This is for compatibility with plan 9's troff.
5655         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5656         with UNIX troff.
5657         * NEWS: Updated.
5659         * doc/groff.texinfo: Add documentation of remaining requests and
5660         registers.
5662 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5664         * doc/groff.texinfo: Add documentation of remaining escapes.
5666         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5667         * font/devdvi/*TC: Regenerated.
5669 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5671         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5672         if not in compatibility mode, i.e., increment relative to the
5673         previous height.
5674         * doc/groff.texinfo: Updated accordingly.
5676 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5678         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5680 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5682         * src/roff/groff/groff.man: Improve documentation of -P option.
5683         Other minor fixes.
5685 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5687         Add new escape \F to switch font family.
5689         * src/roff/troff/input.cc (token::next): Handle \F.
5690         * src/roff/troff/env.cc (environment::set_family): Handle
5691         `interrupted' flag.
5692         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5693         Document it.
5695 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5697         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5698         spaces in tags.
5700 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5702         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5703         \m[] and \M[], respectively.
5705         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5706         (symbol::symbol): Handle NULL string and empty string differently.
5707         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5708         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5709         Add optional parameter.
5710         Updated calling functions.
5711         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5712         `symbol::is_empty'.
5713         * src/roff/troff/env.cc (environment::set_font): Ditto.
5715         * src/preproc/pic/troff.cc (troff_output::set_fill,
5716         troff_output::reset_color: Updated.
5718         * tmac/www.tmac: Updated.
5720         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5721         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5722         Updated.
5724         * tmac/Xps.tmac: Remove some redundant code.
5726         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5727         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5728         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5729         \f[].
5731 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5733         * src/include/printer.h, src/libs/libdriver/printer.cc
5734         (printer::change_fill_color): New member function.
5735         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5737 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5739         * doc/groff.texinfo: Completed pass on gtroff reference.
5741 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5743         * doc/groff.texinfo: More fixes.
5745 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5747         * src/include/color.h: Decorate with `const'.
5748         Use `size_t'.
5749         Include `stddef.h'.
5750         * src/libs/libgroff.color.cc: Decorate with `const'.
5751         Use `size_t'.
5752         (color::color): Initialize members.
5753         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5754         command according to the documentation.
5756         * man/groff_out.man: Updated.
5757         Minor fixes.
5759 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5761         * src/preproc/html/pre-html.cc (write_start_image): Remove
5762         redundant output.
5763         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5765         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5766         \C'hy' caused an assertion failure.
5768         * src/roff/troff/env.cc (environment::environment): Initialize
5769         `emitted_node'.
5770         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5772 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5774         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5775         Document pvs request and .pvs register.
5777 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5779         * doc/groff.texinfo: Improve and fix documentation of diversions
5780         and environments.
5782 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5784         * doc/groff.texinfo: Fix documentation of drawing functions.
5785         Other minor fixes.
5787 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5789         * doc/groff.texinfo: Better documentation of double quotes as
5790         arguments.
5791         Other minor fixes.
5793 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5795         * man/groff_font.man: Document names of special characters better.
5796         * doc/groff.texinfo: Minor improvements.
5798         * tmac/lbp.tmac: Load latin1.tmac.
5799         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5801         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5803 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5805         * tmac/tty.tmac: Don't use shc request.
5806         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5807         * NEWS: Updated.
5809         * man/groff_diff.man: Minor fixes.
5811         * font/devlbp/*: Remove all `charXXX' entities.
5813         * src/libs/libgroff/font.cc (font::~font): Deallocate
5814         `special_device_coding'.
5815         (font::load): Use `new' for allocating `special_device_coding'.
5816         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5817         Removed unused member.
5819 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5821         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5822         (resource_manager::do_begin_binary,
5823         resource_manager::do_begin_data): Use it.
5825         * doc/texinfo.tex: Updated to version 4.2.
5827         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5828         (token::zero_width_break): New inline function.
5829         * src/roff/troff/input.cc (token::next): Use it.
5830         (token::description): Updated.
5831         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5832         (token::add_to_node_list, token::process): Use it.
5833         * NEWS, doc/groff.texinfo: Updated.
5835         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5836         * tmac/tty.tmac: Add missing backslash.
5838 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5840         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5841         `.ps' register instead of `.s' to handle fractional point sizes.
5842         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5843         limit_box::output): Ditto.
5844         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5845         size_box::output): Ditto.
5846         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5847         over_box::output): Ditto.
5848         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5849         script_box::output): Ditto.
5850         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5851         sqrt_box::output): Ditto.
5853 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5855         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5856         Fix typo.
5858 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5860         * doc/homepage.ms: Reduce title size.
5861         * doc/groff.texinfo: Fix documentation of .t register.
5862         Fix handling of colon.
5863         Fix `\' vs. `\\'.
5865         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5866         only if page length is positive to avoid a loop.
5868         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5869         tbl.
5871 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5873         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5874         s/__CYGWIN32__/__CYGWIN__/.
5876 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5878         * doc/gnu.xpm: New image contributed by Emily Mulley.
5879         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5880         (homepage.html): Be dependent on gnu.eps.
5881         * doc/homepage.ms: Updated to new image.
5883         * src/devices/grohtml/post-html.cc (html_printer): New member
5884         `sbuf_prev_hpos'.
5885         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5886         (html_printer::sbuf_continuation): Use it.
5888 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5890         * src/libs/libgroff/getopt.c: Updated to latest version.
5892         * tmac/README: More on hyphen.tex license.
5894 2002-03-26  Larry Kollar  <kollar@alltel.net>
5896         * doc/groff.texinfo: Add documentation of most missing requests.
5898 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5900         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5901         of `+-', `mu', and `di', respectively.
5903         * font/devascii/R.proto, font/devutf8/R.proto,
5904         font/devlatin1/R.proto, font/devhtml/R.proto,
5905         font/devcp1047/R.proto, font/devlpb/*: Add them.
5906         * font/devps/generate/textmap: Ditto.
5907         * font/devps/*: Regenerated.
5908         * font/devlj4/generate/text.map: Add them.
5909         * font/devlj4/*: Regenerated.
5910         * font/devdvi/generate/tc.map: Use them.
5911         * font/devdvi/generate/texsy.map: Add them.
5912         * font/devdvi/*: Regenerated.
5913         * font/devX*/*: Regenerated.
5915         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5916         tmac/tty-char.tmac: Updated.
5918         * NEWS, man/groff_char.man: Updated.
5920 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5922         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5923         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5924         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5925         we use `.fchar' in dvi.tmac.
5926         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5927         * tmac/Xps.tmac: Simplify some char definitions.
5928         Add definition for \[f/].
5929         * man/groff_char.man: Updated for new X.tmac.
5931         * tmac/README: New file.
5933 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5935         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5936         internal .y.o rule took precendence over the .y.cc rule, compiling
5937         the yacc files with gcc instead of g++.
5939 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5941         * tmac/dvi.tmac: Add replacement font for `CB'.
5943         * tmac/doc.tmac: s/request/macro/ in messages.
5944         (doc-generic-macro): Improve error message.
5945         * tmac/groff_mdoc.man: Minor improvements.
5947 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5949         * doc/groff.texinfo: Document possible conflict between `tr' and
5950         `char' requests.
5952 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5954         Improve handling of hyphenation patterns.  It is now possible to
5955         use most of TeX's pattern files unmodified.  To make the process
5956         more flexible, a new request `hpfcode' has been added which
5957         provides a character code mapping for the `hpf' request.  See
5958         comment before hpf_getc() for more details.
5960         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5961         functions.
5962         (read_patterns_file): Additional parameter for exception dictionary.
5963         Extended to recognize \pattern, \hyphenation, and \endinput.
5964         (do_hyphenation_patterns_file): Updated.
5965         * src/roff/troff/env.h (hpf_code_table): New extern.
5967         * src/roff/troff/input.cc (hpf_code_table): New array.
5968         (init_hpf_code_table, hyphenation_patterns_file_code): New
5969         functions.
5970         (hyphenation_code): Handle translation from `trin' correctly.
5971         (main, init_input_requests): Updated.
5972         (charinfo::set_translation): Handle hyphenation code also.
5974         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5975         inline function.
5977         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5978         char' is used for offsets in hyphenation exceptions.
5980         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5982         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5984 2002-03-20  Larry Kollar  <kollar@alltel.net>
5986         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5987         requests.
5989 2002-03-18  Werner LEMBERG  <wl@gnu.org>
5991         * tmac/html.tmac: Fix serious typo.
5993 2002-03-17  Larry Kollar  <kollar@alltel.net>
5995         * doc/groff.texinfo: Add documentation for `writec' request.
5997 2002-03-17  Werner LEMBERG  <wl@gnu.org>
5999         Added request `hpfa' to append hyphenation patterns.
6001         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6002         parameter `append'.
6003         (hyphenation_patterns_file): Renamed to...
6004         (do_hyphenation_patterns_file): This.
6005         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6006         functions.
6007         (init_hyphen_requests): Updated.
6008         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6010 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6012         Added request `writec' in analogy to `tmc'.
6014         * src/roff/troff/input.cc (write_request): Renamed to...
6015         (do_write_request): This.
6016         Added one parameter.
6017         (write_request, write_request_continue): New functions.
6018         (init_input_requests): Updated.
6019         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6021         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6022         5-10000pt.
6023         * NEWS: Document it.
6025 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6027         * man/groff.man: Add writem request.
6029         Add request `trin' (translate input) to make `.asciify' work
6030         correctly.  This is necessary since `charXXX' entity names are no
6031         longer hardcoded in font definition files.
6033         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6034         `translate_input' members.
6035         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6036         charinfo::set_translation_input): New methods.
6037         (charinfo::set_translation): Add third argument.
6038         * src/roff/troff/input.cc (charinfo:set_translation): Set
6039         `asciify_code'.
6040         (do_translate): Add second argument.
6041         (translate_input): New function.
6042         (init_input_requests): Updated.
6043         * src/roff/troff/node.cc (glyph_node::asciify,
6044         composite_node::asciify): Use `get_asciify_code'.
6046         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6048         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6050 2002-03-14  Larry Kollar  <kollar@alltel.net>
6052         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6054 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6056         Add a new request `sizes' similar to the `sizes' command in DESC
6057         files.
6059         * src/roff/troff/env.cc (override_sizes): New function.
6060         (init_env_requests): Use it.
6061         * src/roff/troff/token.h: Export `read_string'.
6062         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6064 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6066         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6068 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6070         * tmac/pspic.tmac: Add support for -Tdvi.
6071         * tmac/dvi.tmac: Include pspic.tmac.
6072         * src/devices/grodvi/grodvi.man: Document it.
6073         * NEWS: Updated.
6075         * font/devlj4/generate/Makefile: Fix URL of metric files.
6077 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6079         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6081 2002-03-09  Larry Kollar  <kollar@alltel.net>
6083         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6085 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6087         * doc/groff.texinfo: Fixes for texinfo 4.1.
6089 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6091         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6092         included.
6093         Handle CYGWIN properly.
6095 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6097         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6098         * tmac/lbp.tmac: Add some font translations.
6100 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6102         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6103         font/devhtml/R.proto: Remove `charXXX'  entries.
6104         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6105         where appropriate.
6107         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6108         * font/devlj4/*: Regenerated all font definition files.
6109         * tmac/lj4.tmac: Load latin1.tmac.
6111         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6112         from 2000-06-17: LJ4 metric files are *not* text files.
6114         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6115         register to test for EBCDIC.
6117 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6119         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6120         files (as grops already does).
6121         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6122         files.
6123         * src/devices/grops/grops.man: Document comment lines in encoding
6124         files.
6126         * tmac/cp1047.tmac: New file.
6127         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6128         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6129         * tmac/Makefile.sub (NORMALFILES): Updated.
6131         * tmac/ec.tmac: Don't load latin1.tmac again.
6133         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6134         font/devps/generate/dingbats.map,
6135         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6136         font/devps/generate/Makefile (symbolmap): Add header comment.
6137         * font/devps/generate/textmap: Ditto.
6138         Remove `charXXX' entries.
6139         * font/devps/symbolmap: Regenerated.
6140         * font/devps/*: Regenerated all font definition files.
6142 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6144         Add color support to grodvi (for drawing colors are currently
6145         translated to gray values).
6147         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6148         (dvi_printer): Add `cur_color' member.
6149         (dvi_printer::set_color): New function.
6150         (draw_dvi_printer): Remove `fill'.
6151         (draw_dvi_printer::fill_next): Pass environment as parameter.
6152         Update code for new color support translated to gray.
6153         (dvi_printer::set_char): Updated.
6154         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6155         changes crossing the page border.
6156         (dvi_printer::draw): Updated.
6157         Remove cases `f' and `F'.
6158         * tmac/dvi.tmac: Add color definitions.
6159         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6161         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6162         used incorrectly.
6164         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6165         versions of autoconf.
6166         * configure: Updated.
6168         * doc/homepage.ms: Use `.blm'.
6169         * tmac/www.tmac (www-depth): New auxiliary variable.
6170         (www-pop-level): Don't issue HTML tag.
6171         (ULS, ULE, LI): Use absolute indentation.
6173         * src/devices/grops/ps.cc (ps_printer::begin_page,
6174         ps_printer::end_page): Switch forth and back to default color while
6175         starting a new page.
6177 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6179         Add EC and TC fonts to devdvi.
6181         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6182         * font/devdvi/generate/cork.map: Renamed to...
6183         * font/devdvi/generate/ec.map: This.
6184         Remove entry for `aq'.
6185         * font/devdvi/generate/tc.map: New file.
6186         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6187         EC and TC fonts.
6188         (FONTS): Updated.
6189         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6190         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6191         * tmac/ec.tmac: New file.
6192         * tmac/Makefile.sub (NORMALFILES): Updated.
6193         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6194         * man/groff_char.man: Check `ECFONTS' register.
6196         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6198 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6200         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6201         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6202         * font/devdvi/*: Updated.
6203         * tmac/dvi.tmac: Formatting.
6205         Add font `HBI' for the dvi output.
6206         Add support for font families `T' and `H'.
6208         * font/devdvi/HBI: New file.
6209         * font/devdvi/B: Renamed to ...
6210         * font/devdvi/TB: This.
6211         * font/devdvi/BI: Renamed to ...
6212         * font/devdvi/TBI: This.
6213         * font/devdvi/I: Renamed to ...
6214         * font/devdvi/TI: This.
6215         * font/devdvi/R: Renamed to ...
6216         * font/devdvi/TR: This.
6217         * font/devdvi/H: Renamed to ...
6218         * font/devdvi/HR: This.
6219         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6220         * font/devdvi/generate/Makefile (HBI): New rule.
6221         (FONTS): Updated.
6222         (R, I, B, BI, H): Renamed to ...
6223         (TR, TI, TB, TBI, HR): This, respectively.
6224         (srcdir): Fixed.
6225         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6226         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6227         Add `styles' and `family' keywords.
6228         * tmac/dvi.tmac: Alias `H' to `HR'.
6229         Add some fspecial requests for italic fonts.
6230         Add TR and TI as special.
6231         Add support for `_' with font CWI.
6233         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6234         operator `:'.  Until now, the expression `0:1' would return 2
6235         instead of 1.
6237 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6239         * man/groff_char.man: Added some missing PS glyph names (from the
6240         Adobe Glyph List).
6241         * font/devps/generate/textmap, font/devps/symbolmap: Add
6242         `arrowupdn'.
6244         * doc/groff.texinfo: Minor additions and fixes.
6245         * man/groff_diff.man: Remove documentation of fp request.  This
6246         is already covered in the original troff manual.
6247         Updated to be consistent with other doc files.
6248         * NEWS: Updated.
6250 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6252         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6253         TTYDEVDIRS.
6254         Define new variable OTHERDEVDIRS (containing `font/devlj4
6255         font/devlbp' if not EBCDIC).
6256         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6257         (OTHERDEVDIRS): New variable.
6258         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6259         * configure: Regenerated.
6261         * NEWS, src/devices/grotty/grotty.man: Updated.
6263 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6265         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6266         get_line_arg): Honour input level.
6268         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6270         * font/*/*: Implement it in all font files.
6271         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6272         * font/devps/symbolmap: Updated.
6273         * font/devlj4/generate/text.map: Updated.
6274         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6275         * font/devdvi/generate/texmi.map: Updated.
6277         * font/devutf8/R.proto: Remove all `charXXX' entries.
6278         * font/devutf8/NOTES: Updated.
6280         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6281         version 4.1.0.
6283         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6285         * NEWS, man/groff_char.man: Updated.
6287 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6289         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6291 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6293         * src/roff/grog/grog.pl: Fix computation of $refer.
6295 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6297         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6298         `snprintf' and `vsnprintf'.
6300         * src/include/htmlindicate.h: Renamed to...
6301         * src/include/htmlhint.h: This.
6302         * src/include/Makefile.sub: Updated.
6303         * src/preproc/eqn/main.cc: Updated.
6305 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6307         * man/roff.man, man/groff_out.man, man/groff.man,
6308         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6309         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6311         * win32-diffs: Updated.
6313 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6315         * doc/Makefile (clean): Add *.eps.
6316         (MEMACROS): Removed.
6317         (TFLAG): New variable.
6318         (TROFF): Use it.
6319         Add -ww.
6320         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6321         (.me.dit): Fixed.
6322         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6324         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6325         `.tl'.
6326         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6327         unstripped.
6328         * src/roff/troff/troff.man: Fix order of parameter description.
6330         * NEWS: Updated.
6332 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6334         Simplify image handling for grohtml.
6335         Fix <p> bug.
6337         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6338         comment out.
6339         (html_text::dump_stack): Don't emit newline while debugging.
6340         (html_text::do_push) [DEBUGGING]: Print more info.
6341         (html_text::check_emit_text): Fix handling of <p>.
6342         * src/devices/grohtml/html.h: Updated.
6343         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6344         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6345         send its data to stderr also.
6346         Update all callers.
6347         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6348         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6349         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6351         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6352         Removed.
6353         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6354         is_inline_image): Removed.
6355         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6356         (graphic_start, graphic_end): Removed.
6357         * src/include/htmlindicate.h: Updated.
6358         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6359         (macroset_template): New global variable.
6360         (makeFileName): Use `macroset_template'.
6361         (write_end_image): Don't take a parameter.
6362         Don't emit newline.
6363         (write_start_image: Don't emit newline.
6364         (char_buffer::write_upto_newline): Updated.
6365         (char_buffer::skip_to_newline): Renamed to ...
6366         (char_buffer::skip_until_newline): This.
6367         Fix code.
6368         (char_buffer::write_file_troff, char_buffer::write_file_html):
6369         Simplified.
6370         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6371         (removeAllPages): Remove `DEBUGGING' conditionals.
6372         (addRegDef, dump_args): New functions.
6373         (char_buffer::do_html, char_buffer::do_image): Handle
6374         `www-image-template' command line variable.
6375         Add more debugging code.
6376         (addps4html): Removed.
6377         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6379         * src/preproc/eqn/main.cc: Include `ctype.h'.
6380         (suppress_html): Removed.
6381         (do_file): Updated.
6382         (inline_equation): Use `html_begin_suppress' and
6383         `html_end_suppress'.
6384         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6385         (troff_output::start_picture, troff_output::finish_picture):
6386         Updated.
6387         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6388         (process_input_file): Updated.
6390         * src/roff/troff/div.cc (page_number): Set page number only if the
6391         `ps4html' register isn't defined.
6392         * src/roff/troff/input.cc (image_no): New external variable.
6393         (do_suppress): Use it.
6394         * src/roff/troff/node.h (suppress_node::image_id): New member.
6395         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6396         (suppress_node::suppress_node): Initialize `image_id' member.
6397         (suppress_node::same): Handle `image_id' also.
6398         (suppress_node::copy): Updated.
6399         (last_image_id): New global variable.
6400         (suppress_node::tprint): Use it.
6402         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6403         HTML-IMAGE-END.
6404         * tmac/pspic.mac (PSPIC): Fix html support.
6405         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6406         * tmac/www.tmac (www-image-template): Set up.
6407         (HTMLINDEX): Renamed to...
6408         (HX): This.
6409         (BODYCOLOR): Renamed to...
6410         (BCL): This.
6411         (BACKGROUND): Renamed to...
6412         (BGIMG): This.
6413         (URL): Change order of parameters for consistency.
6414         (MAILTO): Renamed to...
6415         (MTO): This.
6416         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6417         (IMG, PIMG, MPIMG): This.
6418         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6419         (HnS, HnE): This.
6420         (LINKS): Renamed to...
6421         (LK): This.
6422         (LINE): Renamed to...
6423         (HR): This.
6424         (NO-AUTO-RULE): Renamed to...
6425         (NHR): This.
6426         (HTML-TL): Renamed to...
6427         (HTL): This.
6428         (UL-BEGIN, UL-END): Renamed to...
6429         (ULS, ULE): This.
6430         (DROPCAP): Renamed to...
6431         (DC): This.
6432         (TS, TE, EQ, EN): Provide default definitions.
6433         (www-make-unique-name): Updated.
6434         (HTML-IMAGE-INLINE): Fix typo.
6435         * tmac/groff_www.man: Updated.
6437         * doc/Makefile (homepage.html): Add option -r to grohtml.
6438         Use shortened image name.
6439         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6440         * doc/homepage.ms: Updated and extended.
6442 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6444         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6446         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6447         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6448         (tty_printer::put_color): Use it.
6449         (ttr_printer::end_page): Simplify.
6451 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6453         * tmac/groff_tmac.man: Moved to...
6454         * man/groff_tmac.man: This place.
6455         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6457 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6459         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6460         $(COMPILE.c) to not include groff's assert.h.
6462         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6463         variable.
6464         * NEWS, src/drivers/grotty/grotty.man: Document it.
6466 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6468         * src/libs/snprintf/snprintf.c: Updated to latest version
6469         (2002-02-11).
6471         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6472         test whether there is `.]' also.
6473         Don't check for spaces after `.['.
6474         * src/roff/grog/grog.sh: Do the same.
6476 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6478         Illegal -> Invalid.
6480         * src/libs/libgroff/illegal.cc: Renamed to ...
6481         * src/libs/libgroff/invalid.cc: This.
6482         (illegal_char_table): Renamed to ...
6483         (invalid_char_table): This.
6484         * src/libs/libgroff/Makefile.sub: Updated.
6485         * win32-diffs: Updated.
6487         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6488         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6489         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6490         font::load), src/preproc/eqn/main.cc (read_line, main),
6491         src/preproc/eqn/lex.cc (file_input::read_line),
6492         src/preproc/pic/lex.cc (file_input::read_line,
6493         simple_file_input::get, simple_file_input::peek),
6494         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6495         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6496         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6497         do_bib), src/preproc/tbl/main.cc (table_input::get),
6498         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6499         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6500         do_zero_width, read_request, encode_char, ps_get_line,
6501         transparent_file, get_char_for_escape_name, transparent_translate,
6502         asciify, input_char_description, read_string, set_string),
6503         src/roff/troff/env.cc (environment::add_html_tag),
6504         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6506         * src/include/lib.h: Updated.
6508         * src/preproc/eqn/eqn.cc: Removed.
6510         * NEWS: Updated.
6512         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6514 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6516         * doc/gnu.xpm: New image.
6517         * doc/Makefile (DOCS): Add homepage.ps.
6518         Add rules for converting xpm->png and xpm->eps.
6519         Use `gnu.{xpm,eps}' as image names.
6520         * doc/homepage.ms: Updated.
6522 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6524         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6525         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6526         Remove calls to `B1' and `B2'
6527         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6528         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6529         auxiliary variables for MARGIN-PNG-IMAGE.
6530         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6531         auxiliary macros for MARGIN-PNG-IMAGE.
6532         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6533         the margin.
6534         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6535         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6536         (DROPCAP): New macro to produce dropcap characters.
6537         (www-do-image): Renamed back to...
6538         (HTML-DO-IMAGE): This.
6539         Updated all callers.
6541         * doc/Makefile (gnubw.eps): Updated.
6542         * doc/homepage.ms: Updated.
6544 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6546         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6547         Added `linethick' to table in section `Style Variables'.
6549 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6551         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6553 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6555         Adding options -C (compatibility mode) and -c (grotty's old output
6556         scheme) to nroff.
6558         * src/roff/nroff/nroff.sh: Implement it.
6559         Remove `-Wall'.
6560         * NEWS, src/roff/nroff/nroff.man: Updated.
6562         * PROBLEMS: Document bison 1.32 bug.
6564         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6566         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6567         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6568         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6569         * src/roff/troff/env.h: Add prototype for `title'.
6571         Adding EBCDIC support to grotty.
6573         * src/devices/grotty/tty.cc (CSI): New macro.
6574         (SGR_*, tty_printer::put_color): Use it.
6576 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6578         Implementing color support in grotty.  The new switch -c activates
6579         the old drawing scheme, disabling color at the same time.  The new
6580         switch `-i' selects italic instead of underlining (SGR only).
6582         * src/devices/grotty/tty.cc (putstring): New define instead of
6583         `fputs'.  Updated all callers.
6584         (old_drawing_scheme): New global variable.
6585         (COLOR_CHANGE): New enum value.
6586         (SGR_*): New defines containing color handling escape sequences.
6587         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6588         (glyph): New members `back_color_idx' and `fore_color_idx'.
6589         (glyph::order): Add COLOR_CHANGE.
6590         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6591         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6592         New methods `make_underline', `make_bold', `color_to_idx',
6593         `change_color', `put_color'.
6594         (cu_flag): Moved into `tty_printer' class.
6595         (tty_printer::tty_printer): Initialize colors.
6596         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6597         tty_printer::draw, tty_printer::end_page): Handle colors also.
6598         (main): Add options `-c' and `-i'.
6599         (usage): Updated.
6600         * NEWS, src/devices/grotty/grotty.man: Updated.
6602         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6603         * src/libs/libgroff/errarg.c: Implement it.
6605         * src/include/printer.h (printer): Add `change_color' method
6606         (currently used by grotty only).
6607         * src/libs/libdriver/printer.cc: Implement it.
6608         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6609         call to `pr->change_color'.
6611         * src/roff/troff/node.cc (troff_output_file::fill_color,
6612         troff_output_file::glyph_color): Call `do_motion'.
6614         * tmac/tty.tmac: Add color definitions.
6616         * src/roff/groff/groff.man: Minor fixes.
6618 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6620         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6621         it.  This is a preparation for future changes.
6623 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6625         * src/roff/troff/input.cc (process_input_stack): Fix the case
6626         where leading spaces are followed by \f or \s; previously, an
6627         incorrect space width has been used.
6629         * doc/roff.man (quoted_char): Fix argument.
6630         (comment): Define string.
6632 2002-02-04  Larry Kollar  <kollar@alltel.net>
6634         * doc/groff.texinfo: More fixes.
6636 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6638         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6639         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6640         `restore_compatibility' before `output_string' -- the LINE_STRING
6641         register now already contains proper switches from and to
6642         compatibility mode.
6644         * man/groff_char.man: Add Euro symbol.
6645         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6646         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6647         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6648         Other minor fixes.
6650         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6651         texinfo->pdf.
6652         (.texinfo.html): Add support for texinfo->html.
6654 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6656         Added three new requests `ds1', `as1', and `ami'.  The former two
6657         are equivalent to `ds' and `as' with the difference that
6658         compatibility mode is saved on entry, switched off during string
6659         expansion, and restored on exit.  The latter is the pendant to `dei'
6660         for `am'.
6662         (do_define_string): Use `define_mode' and `calling mode'.
6663         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6664         end of string, respectively.
6665         (define_string, append_string): Use `calling_mode'.
6666         (define_nocomp_string, append_nocomp_string,
6667         define_string_indirect): New functions.
6668         (init_input_requests): Updated.
6669         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6671         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6672         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6673         mm macro package accesses this string register directly.
6674         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6676         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6677         compatibility mode.
6679 2002-02-02  Larry Kollar  <kollar@alltel.net>
6681         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6683 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6685         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6687 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6689         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6690         * man/groff_out.man: Revised and updated.
6692 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6694         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6695         out the unused `{' and `}' commands.  Undefined by default.
6696         (IntArray): Make `data' private.
6697         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6698         new methods instead.
6699         (skip_line_D, skip_to_end_of_line): New functions.
6700         (get_D_fixed_args): Use `skip_line_D'.
6701         Changed to handle dummy odd arguments by ...
6702         (get_D_fixed_args_odd_dummy): This new function.
6703         (get_D_variable_args): Split some code into ...
6704         (get_possibly_integer_args): This new function.
6705         (send_draw): Use more `const'.
6706         (delete_current_env): New function.
6707         (position_to_end_of_args): Use `size_t'.
6708         Updated.
6709         (send_draw): Updated.
6710         (parse_D_command): Handle `c', `C', and `t' better.
6711         Updated.
6712         (do_file): Updated.
6714 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6716         * NEWS: Revised.
6717         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6718         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6719         proper HTML output -- see the comment in the file for more
6720         information.
6721         Updated all calls.
6723 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6725         Fixes to make color changes of 2002-01-21 work with grohtml.
6727         * src/devices/grohtml/post-html.cc (style): Updated.
6728         (html_printer): Remove unused methods.
6729         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6730         html_printer::special): Updated.
6731         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6732         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6733         Added some debugging code.
6734         (html_text::start_tag): Updated.
6735         (html_text::do_push): New method.
6736         (html_text::push_para): Call it.
6737         Add method for handling color.
6738         (html_text::do_color): Updated.
6739         (html_text::shutdown): Handle color.
6740         * src/devices/grohtml/html-text.h (tag_definition): New member
6741         `col'.
6742         Updated.
6744 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6746         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6748 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6750         Add two switches -a and -g to control the antialiasing bits for
6751         text and graphics, respectively.
6753         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6754         `-g'.
6755         * src/devices/grohtml/grohtml.man: Document them.
6756         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6757         New macros.
6758         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6759         (setupAntiAlias): New function.
6760         (createAllPages): Updated.
6761         (scanArguments): Handle `-a' and `-g'.
6762         (main): Call `setupAntiAlias'.
6763         * NEWS: Updated.
6765 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6767         * doc/groff.texinfo (Def*): Call index function after deffn.
6769         * tmac/html.tmac: Call `nroff' request.
6771 2002-01-26  Larry Kollar  <kollar@alltel.net>
6773         * tmac/groff_ms.man: Add some omissions.
6775 2002-01-25  Larry Kollar  <kollar@alltel.net>
6777         * tmac/groff_ms.man: Typographical improvements.
6779 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6781         * doc/groff.texinfo: Updated version and copyright.
6782         * src/devices/grops/grops.man: Updated.
6784         * tmac/groff_tmac.man: Fix `ig' macro.
6786         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6787         nroff mode.
6788         Use `.ne' unconditionally everywhere.
6789         (TS): Only insert some vertical space.  Doing a page break is no
6790         longer necessary due to the redefinition of the `ne' request.
6792         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6793         warning for unknown subcommands but parse and pass them to the
6794         device driver.
6796 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6798         * tmac/groff_www.man, NEWS: Fix typos.
6800 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6802         Complete revision of color support:
6804           Adapt programs to the new libdriver/input.cc.
6806           Color spaces are no longer converted to RGB but transferred as-is
6807           in the troff intermediate output format.
6809           Handle default color gracefully.  troff now supports a `default'
6810           color (which can't be changed).
6812           grops will now use the proper color space functions if available.
6814           Update pic.
6816         Note that currently grohtml doesn't handle colors properly.  This
6817         has to be fixed.
6819         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6820         (ui_to_a): New function.
6821         * src/include/lib.h: Updated.
6823         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6824         (color): Simplified; removed all `double' members and methods.
6825         A new array `components' now holds the color parameters.
6826         (color::is_default, color::get_components): New methods.
6827         (color::operator==, color:operator!=): New.
6828         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6829         to make access to the `components' array more comprehensible.
6830         * src/libs/libgroff/color.cc: Implement new color support.
6831         (atoh): Small fixes.
6832         (color::read_encoding): Simplified for new troff intermediate color
6833         output format.
6834         (default_color): New global variable.
6836         * src/roff/troff/input.cc (default_symbol): New global variable.
6837         (lookup_color): Use it.
6838         (default_black): Removed.
6839         (do_glyph_color, do_fill_color): Simplified.
6840         (define_color): Handle default color.
6841         Improve warnings.
6842         (do_if_request): Handle default color.
6843         * src/roff/troff/env.cc (environment::environment): Initialize
6844         colors with `default_color'.
6845         * src/roff/troff/node.cc (troff_output_file::put): Add method
6846         for `unsigned int'.
6847         (troff_output_file::hex): Removed.
6848         (troff_output_file::fill_color, troff_output_file::glyph_color):
6849         Updated to include/color.h and libdriver/input.cc.
6851         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6852         fill color properly (identically to the outline color).  \D'f...'
6853         doesn't work any more.
6854         All function calls to it updated.
6856         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6857         Updated.
6858         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6859         Updated.
6861         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6862         (ps_printer::sbuf_color): Make a real member instead of pointer.
6863         (ps_printer::fill_color, ps_printer::output_color): Removed.
6864         (ps_printer::ps_printer): Updated.
6865         (ps_printer::set_char): Ditto.
6866         (ps_printer::set_color): Use various color schemes.
6867         Use `put_color' method.
6868         (ps_printer::flush_sbuf): Don't set color.
6869         (ps_printer::fill_path): Take `environment' as parameter.
6870         Simplify color handling.
6871         (ps_printer::set_line_thickness): Renamed to ...
6872         (ps_printer::set_line_thickness_and_color): This (and updated).
6873         (ps_printer::set_color): Change second parameter from `complete'
6874         to `fill' which better describes what it does.
6875         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6876         and text in the right order.
6877         Updated.
6878         Remove branches for `f' and `F'; this is handled by
6879         libdriver/input.cc.
6880         * src/devices/grops/ps.h: Updated.
6881         * font/devps/prologue (FL): Redefined.
6882         ({F,C}r,k,g: New color functions (with and without filling).
6884         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6885         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6886         doc/groff.texinfo, NEWS: Updated.
6888 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6890         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6891         in this file for what has been changed.
6893 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6895         * test-groff: Fix GROFF_FONT_PATH.
6896         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6897         is read before .TH or .Dd is parsed.
6899 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6901         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6902         quadrant boundaries.
6904 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6906         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6907         applied last patch.
6909 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6911         * tmac/doc.common: Initialize %I register for the %I macro to
6912         avoid (harmless) warning.
6913         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6914         when in the SYNOPSIS section.
6916 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6918         * src/preproc/pic/lex.cc (get_token): Fix typo.
6920 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6922         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6924 2002-01-17  Larry Kollar  <kollar@alltel.net>
6926         * tmac/groff_ms.man: Completely rewritten.
6928 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6930         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6932 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6934         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6935         fill colors.
6936         (ps_printer::draw): Ditto.
6938 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6940         * tmac/groff_mdoc.man: Minor fixes.
6942 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6944         * man/groff_out.man: Some fixes.
6946 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6948         * doc/pic.ms: Fix typos.
6950 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6952         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6954 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6956         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6957         symbols.
6958         * NEWS: Updated.
6960 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6962         * man/groff_out.man: Revised.
6963         * man/roff.man: Minor fixes.
6964         * src/roff/troff/troff.man: Some reordering.
6966 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6968         * tmac/an-old.tmac: Add dummy macros for equation support.
6970 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6972         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6974         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6975         man pages.
6976         * tmac/groff_man.man: Small improvements.
6978 2002-01-07  Bernd Warken  <bwarken@mayn.de>
6980         * man/groff_diff.man: Revised.
6982 2002-01-06  Werner LEMBERG  <wl@gnu.org>
6984         * tmac/www.tmac: Remove extraneous backslash.
6986 2002-01-06  Bernd Warken  <bwarken@mayn.de>
6988         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6990 2002-01-05  Werner LEMBERG  <wl@gnu.org>
6992         Integrated groffer, contributed by Bernd Warken.
6994         * contrib/groffer/*: New.       
6995         * Makefile.in, NEWS: Updated.
6997 2002-01-04  Werner LEMBERG  <wl@gnu.org>
6999         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7000         registers defined in macro packages.
7001         Revising the ms part.
7003 2002-01-04  Larry Kollar  <kollar@alltel.net>
7005         * doc/groff.texinfo: Add documentation for ms macros.
7007 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7009         First step in adding PS support for the Euro symbol.  `eu' is the
7010         official Euro logo, `Eu' is a font-specific glyph variant.
7012         * font/devps/text.enc: Add `Euro' at position 9.
7013         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7014         * font/devps/symbolmap: Regenerated.
7016         * NEWS: Updated.
7018 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7020         * man/roff.man: Revised.
7022 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7024         * src/roff/groff/groff.man: Completely rewritten.
7026 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7028         * doc/Makefile: Updated.
7030 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7032         * tmac/www.tmac: Make all names of internal macros/registers/strings
7033         lowercase, and prepend `www-'.
7034         Other minor changes.
7035         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7037 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7039         Implement option `-b' in grohtml to set the HTML background colour.
7041         * src/devices/grohtml/post-html.cc (default_background): New global
7042         variable.
7043         (html_printer::html_printer): Initialize `background' to
7044         `default_background'.
7045         (main): Implement option `-b'.
7046         (usage): Updated.
7047         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7048         of `-b' option.
7049         * src/devices/grohtml/grohtml.man: Updated.
7050         * doc/Makefile (.ms.html): Use `-b'.
7051         * tmac/html.tmac: Don't set background color.
7053         Add new grohtml tag `.html-tl'.
7055         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7056         member variable.
7057         (title_desc::title_desc): Updated.
7058         (html_printer::troff_tag): Handle `.html-tl'.
7059         (html_printer::write_title): Use `with_h1'.
7060         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7061         (HTML-TL): New macro.
7063         Add support for unordered lists in HTML.
7065         * tmac/www.tmac (www-level): New auxiliary register.
7066         (www-level1, www-level2, www-level3): New auxiliary strings.
7067         (www-push-level, www-pop-level): New auxiliary macros
7068         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7070         Miscellaneous.
7072         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7073         (DEFAULT_VERTICAL_OFFSET): Removed.
7074         (IMAGE_BOARDER_PIXELS): Set to 0.
7075         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7076         (vertical_offset): Initialize with 0.
7077         (gsPaper): New global variable.
7078         (get_resolution): Scan for and return unsigned int.
7079         (get_papersize): New function to get paper length from devps/DESC.
7080         (determine_vertical_offset): New function.
7081         (createAllPages): Produce gray-level images and use proper page
7082         length.
7083         (createImage): Use `-quiet' option of pnmcrop.
7084         (addZ): Fix passing of `-Z'.
7085         (scanArguments): Fix handling of `-o'.
7086         (main): Call `determine_vertical_offset'.
7087         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7088         code for `l'.
7090         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7091         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7092         glyph descenders properly.
7094         * doc/homepage.ms: Include `gnubw.eps'.
7095         * doc/Makefile (gnubw.eps): New rule.
7096         (homepage.html): Depend on `gnubw.eps'.
7098 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7100         * src/roff/troff/input.cc (default_black): Fix return value.
7102 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7104         * tmac/doc-common (Dt): Change output of architecture strings.
7105         Do some syntax cleanup.
7106         * tmac/groff_mdoc.man: Updated.
7108 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7110         Adding an `itc' request (input line trap accepting \c).
7112         * src/roff/troff/env.h (environment): New member
7113         `continued_input_trap'.
7114         Make `do_input_trap' a friend function instead of `input_trap'.
7115         * src/roff/troff/env.cc (environment::environment,
7116         environment::copy): Updated.
7117         (environment::newline): Implement it.
7118         (do_input_trap): New function.
7119         (input_trap): Call `do_input_trap'.
7120         (input_trap_continued): New function.
7121         (init_env_requests): Updated.
7122         * src/roff/troff/TODO: Updated.
7124         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7125         `.it'.
7127         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7129 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7131         * tmac/doc-common, tmac/doc-syms: Small updates.
7133 2001-12-22  Colin Watson  <cjwatson@debian.org>
7135         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7137 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7139         * MANIFEST: New file.
7141 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7143         * src/preproc/grn/grn.man: Updated.
7145 2001-12-22  Solar Designer  <solar@openwall.com>
7147         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7148         (DBRead): Use it.
7150 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7152         Implement a fallback character request `.fchar'.
7154         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7155         (is_fallback): New inline function.
7156         * src/roff/troff/input.cc (do_define_character): New function.
7157         (define_character): Call `do_define_character'.
7158         (define_fallback_character): New function.
7159         (init_input_requests): Add `fchar'.
7160         (charinfo::charinfo): Updated.
7161         (charinfo::set_macro): New argument to set `fallback' flag.
7162         * src/roff/troff/node.cc (make_glyph_node, make_node,
7163         node::add_char): Check `fallback' flag.
7164         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7166 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7168         * groff.texinfo: Document exact search algorithm for glyphs.
7170 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7172         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7173         the left side of $(MANPAGES) rule to make it always non-empty.
7175 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7177         * src/roff/troff/input.cc (default_black): Define default color
7178         `black' if not yet defined.
7180 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7182         Implement new string-valued register `.fn' to return the current
7183         real (internal) font name.
7185         * env.cc (environment::get_font_name_string): New function.
7186         (init_env_requests): Add `.fn' register.
7187         * env.h (environment): Updated.
7188         * node.cc (font_info): Make `get_font_name' a friend.
7189         (get_font_name): New function.
7190         * node.h: Updated.
7192         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7194 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7196         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7198 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7200         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7202 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7204         * man/groff_diff.man: Adding documentation for \O.
7206 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7208         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7209         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7211 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7213         * man/roff.man: Revised.
7214         * src/roff/groff/groff.man: Replace man page references with a
7215         pointer to roff.man.
7217 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7219         * man/roff.man: Completely rewritten.
7221 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7223         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7225 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7227         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7228         longer used.
7229         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7230         order of initializers.
7231         * NEWS: Updated.
7233 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7235         * doc/groff.texinfo: Fix documentation of \O.
7237         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7238         html_text::do_table, html_text::do_emittext, html_text::do_para):
7239         Use `const' for first argument.
7240         (html_text::do_table): Use cast.
7241         * src/devices/grohtml/html-text.h: Updated.
7242         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7243         method for `const string &s'.
7244         * src/devices/grohtml/html.h: Updated.
7245         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7246         (ANCHOR_TEMPLATE): Modified.
7247         (manufacture_headings): New global variable to handle `-h' option.
7248         (is_subsection): Removed.
7249         (char_buffer::add_string): Add `const' to first argument.
7250         Protect against invalid string argument.
7251         Add method for `const string &s'.
7252         (text_glob): Completely redesigned.
7253         (page): Use `const' for strings and remove string length variable.
7254         (page::add_html): Removed.
7255         (page::add_end_encode): New member function.
7256         (to_unicode): Moved upwards.
7257         (title_desc, header_desc): Updated.
7258         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7259         definition.
7260         (html_printer::is_bold, html_printer::make_bold): New member
7261         functions.
7262         (html_printer::end_of_line): Updated.
7263         (generate_img_src, html_printer::do_auto_image,
7264         html_printer::do_title, html_printer::write_header,
7265         html_printer::determine_header_level, html_printer::do_heading,
7266         html_printer::do_linelength, html_printer::do_pageoffset,
7267         html_printer::do_indentation, html_printer::do_tempindent,
7268         html_printer::do_indentedparagraph, html_printer::do_break,
7269         html_printer::flush_sbuf, get_html_translation,
7270         html_printer::begin_page, html_printer::special): Rewritten to get
7271         rid of static string length limit.
7272         (html_printer::troff_tag): Added `.no-auto-rule'.
7273         (html_printer::flush_globs): Small fix.
7274         (html_printer::determine_space): Don't compute `space_width'.
7275         (html_printer::translate_to_html): Renamed to ...
7276         (html_printer::emit_html): This (with updates).
7277         (html_printer::write_header): Implement `-h' option.
7278         (html_printer::draw): Remove commented-out code.  Handle `F'
7279         command.
7280         (html_printer::add_char_to_sbuf): Removed.
7281         (html_printer::add_to_sbuf): Rewritten.
7282         (html_printer::sbuf_continuation): Fixed.
7283         (html_printer::seen_backwards_escape, reverse,
7284         html_printer::remove_last_char_from_sbuf): Removed.
7285         (char_translate_to_html, str_translate_to_html): Removed.
7286         (html_printer::overstrike): New function member.
7287         (html_printer::set_char): Use it.
7288         (html_printer::do_body): New function member.
7289         (html_printer::~html_printer): Use it.
7290         (main): Handle `-h' option.
7291         (usage): Updated.
7292         * src/devices/grohtml/grohtml.man: Document -h switch.
7294         * src/preproc/html/pre-html.cc: Include searchpath.h
7295         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7296         (get_resolution): New function.
7297         (checkImageDir): Use `0777' permissions in mkdir()
7298         (write_start_image): Rewritten to use `\O[5...]'.
7299         (createImage, generateImages): Updated.
7300         (main): Handle `F' and `h' options.
7301         Use `get_resolution'.
7303         * src/roff/troff/input.cc (begin, end, image): Removed.
7304         (do_suppress): Take parameter.
7305         Handle modified syntax of `\O'.
7306         (token::next): Updated.
7307         (init_markup_requests): Removed.
7308         (main): Updated.
7310         * src/roff/troff/div.h: Add declaration for begin_page().
7312         * tmac/color-html.tmac: Removed.  Contents moved to...
7313         * tmac/html.tmac: Here.  Set background color.
7314         * tmac/color.tmac: Removed.  Contents moved to...
7315         * tmac/ps.tmac: Here.
7316         * tmac/www.tmac: Remove the title command when generating images
7317         for html.
7318         (NO_AUTO_RULE): New macro.
7319         (HTML_DO_IMAGE): Use revised `\O' escapes.
7320         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7322 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7324         * tmac/groff_mdoc.man: Fix typo.
7326 2001-12-01  Colin Watson  <cjwatson@debian.org>
7328         * man/roff.man: Fix typo.
7330 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7332         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7333         stdlib.h.
7335         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7336         more than one argument to \D'f ...'.
7338         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7340 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7342         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7343         loaded only once.
7345         * tmac/groff_man.man: Minor cosmetic fix.
7347 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7349         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7350         tmac/groff_www.man: s/mwww/www/.
7352 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7354         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7355         * configure: Regenerated.
7356         * win32-diffs: Updated.
7358         * tmac/groff_mwww.tmac: Renamed to ...
7359         * tmac/groff_www.tmac: This.
7360         * tmac/mwww.tmac: Removed.
7361         * NEWS, tmac/Makefile.sub: Updated.
7363 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7365         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7366         Fix explanation of `\D' and `rt'.
7368 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7370         * tmac/an-old.tmac (an-header): Set header length equal to page
7371         width.
7372         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7373         minor fixes.
7374         * NEWS: Small fix.
7376 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7378         * NEWS, man/Makefile.sub: Updated.
7380 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7382         * man/ditroff.man: New file.
7384 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7386         * man/groff_differences.man: Renamed to ...
7387         * man/groff_diff.man: This.  Updated.
7388         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7390         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7391         * src/preproc/html/pushback.cc: This.  Updated.
7392         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7393         * src/preproc/html/pushback.h: This.
7394         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7395         Updated.
7397         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7398         * src/libs/libgroff/htmlhint.cc: This.
7399         * src/libs/libgroff/Makefile.sub: Updated.
7401         * tmac/an-old.tmac (an-end): Fix page length.
7403 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7405         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7406         * man/Makefile.sub: Include groff_differences.man.
7407         * VERSION: Set to 1.18.
7408         * REVISION: Set to 0.
7410 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7412         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7413         the second dot (or ending macro name) to end a macro.
7414         * doc/groff.texinfo: Doc fix.
7416 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7418         * tmac/doc-common (doc-header): Handle very long document titles
7419         better.
7421 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7423         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7425 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7427         * src/roff/troff/troff.man: Revised and split into troff.man and...
7428         * man/groff_differences.man: New file.
7429         * NEWS: Updated.
7431 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7433         * tmac/an-old.tmac (TS, TE): New macros for table support.
7435 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7437         * src/include/lib.h: Provide a fix for emx to not include
7438         groff-getopt.h.
7440 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7442         * src/roff/troff/input.cc (substring_macro): Fix computation of
7443         boundary values.
7445 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7447         Undo change from 2001-08-28.
7449         * src/roff/troff/input.cc (have_input): New global variable.
7450         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7451         in compatibility mode.
7452         (process_input_stack): Use it.
7454 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7456         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7457         being handled as end-of-sentence characters,
7459 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7461         * src/roff/troff/input.cc (file_iterator): New members
7462         `suppress_newline_flag' and `seen_escape'.
7463         (file_iterator::next_file): Updated.
7464         (file_iterator::fill): Use it.
7465         (string_iterator): New member `suppress_newline_flag'.
7466         (string_iterator::fill): Set it.
7467         (get_color_element): Use MAX_COLOR_VAL.
7468         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7469         (no_fill): Don't set `env->ignore_next_eol'.
7470         (environment::newline): Handle `eol' tag properly.
7471         Emit `eol.ce'.
7472         (environment::add_html_tag): Set `env->ignore_next_eol'.
7473         Don't handle `.ce'.
7474         * src/roff/troff/env.h (environment): Updated.
7476         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7477         member function.
7478         (html_printer::outstanding_eol): New member function.
7479         (html_printer::do_title): Use new functions.
7480         (html_printer::troff_tag): Test `id_eol_ce'.
7482 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7484         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7485         files work with -C also.
7487 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7489         * doc/pic.ms: Minor fix.
7490         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7491         as a valid command line switch.
7492         * src/devices/grohtml/post-html.cc (main): Ditto.
7493         (usage): Updated.
7494         * src/devices/grohtml/grohtml.man: Updated.
7495         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7497 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7499         Implementing color support in troff, pic, grops, and grohtml.  These
7500         changes are based on a major patch provided by Gaius Mulley
7501         <gaius@glam.ac.uk>.
7503         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7504         definitions with both hex values and fractions.
7506         New escapes: \m and \M for drawing and background color,
7507         respectively.  This corresponds to the troff output commands `m'
7508         and `DF'.
7510         groff and troff accept command line switch `-c' to disable color
7511         output (which is automatically disabled in compatibility mode).
7513         New scaling indicator `f' for fractions (1f = 65536u).
7515         New conditional operator `m' to test for defined colors with `if'
7516         and `ie'.
7518         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7519         (or `outlined'), and `shaded' added to pic.
7521         * src/include/color.h: New file.
7522         * src/include/driver.h: Include it.
7523         * src/include/printer.h: Include color.h.
7524         (environment): New members `col' and `fill'.
7525         (printer): Remove `adjust_arc_center' member function.
7526         * src/include/Makefile.sub: Updated.
7528         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7529         `env.fill'.
7530         Handle `m' and `DF' troff commands.
7531         * src/libs/libgroff/color.cc: New file.
7532         * src/libs/libgroff/Makefile.sub: Updated.
7534         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7535         (stop): Removed.
7536         (createImage): Fix computation of `y2'.
7537         Use `pnmcrop' also.
7538         (buffer::write_file_html): Remove calls to `stop'.
7540         * src/preproc/pic/common.h (common_output): New abstract function
7541         members `set_color', `reset_color', `get_last_filled', and
7542         `get_outline_color'.
7543         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7544         (object_spec): Add members `shaded' and `outlined'.
7545         * src/preproc/pic/output.h (output): `command' is now abstract.
7546         New function members `set_color', `reset_color', `get_last_filled',
7547         and `get_outline_color'.
7548         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7549         `outline[d]', and `shaded'.
7550         * src/preproc/pic/object.cc (output::command): Removed.
7551         (output::set_location): Moved to output.h.
7552         (graphic_object): Add protected members `outline_color' and
7553         `color_fill'.
7554         Add member functions `set_outline_color', `get_outline_color', and
7555         `set_fill_color'.
7556         (closed_object): Add member function `set_fill_color'.
7557         Add member `color_fill'.
7558         (graphic_object::print_text): Use `out->set_color' and
7559         `out->reset_color'.
7560         (box_object::print, ellipse_object::print, circle_object::print,
7561         line_object::print, spline_object::print, arc_object::print): Ditto.
7562         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7563         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7564         `SHADED', making them `%left'.
7565         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7566         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7567         `set_color', `reset_color', `get_last_filled', and
7568         `get_outline_color'.
7569         * src/preproc/pic/troff.cc (simple_output): New abstract function
7570         members `set_color', `reset_color', and `get_last_filled'.
7571         (simple_output::polygon, simple_output::circle,
7572         simple_output::ellipse): Use `get_last_filled'.
7573         (troff_output): New members `last_filled' and `last_outlined'.
7574         New function members `set_color', `reset_color', `get_last_filled',
7575         and `get_outline_color'.
7576         (troff_output::finish_picture): Use `reset_color'.
7577         (troff_output::set_fill): Test `last_filled'.
7578         * src/preproc/pic/pic.man: Updated.
7580         * src/roff/groff/groff.cc (main): Implement `-c' option.
7581         (synopsis, help): Updated.
7582         src/roff/groff/groff.man: Updated.
7584         * src/roff/troff/troff.h: Include color.h.
7585         (warning_type): Add WARN_COLOR.
7586         * src/roff/troff/env.h (environment): New members
7587         `{cur,prev}_{glyph,fill}_color'.
7588         New member functions `get_{prev_,}{glyph,fill}_color'.
7589         * src/roff/troff/env.cc: Initialize and implement them.
7590         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7591         Replace `NULL' with `0' everywhere for consistency.
7592         (lookup_color, default_black, do_glyph_color, do_fill_color,
7593         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7594         define_color): New functions.
7595         (token::next): Implement \M and \m escapes.
7596         (do_if_request): Implement `m' operator.
7597         (usage): Updated.
7598         (main): Implement `-c' option.
7599         (init_markup_requests): Add `defcolor' request.
7600         (warning_table): Add `color' warning.
7601         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7602         classes.
7603         * src/roff/troff/node.cc (troff_output_file): New members
7604         `current_{page,glyph}color'.  New member functions `put_hex',
7605         `glyph_color', and `fill_color'.
7606         (glyph_color_node::*, fill_color_node::*): Implement it.
7607         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7608         (parse_term): Add support for `f'.
7609         * src/roff/troff/troff.man: Updated.
7611         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7612         entry for `F'.
7613         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7614         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7616         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7617         (tag_definition): Use `void *' for arg1.
7618         (html_text): New member functions `do_color' and `done_color'.
7619         Use `void *' for second parameter of `push_para' member function.
7620         New `push_para' member function with a single parameter.
7621         Use `char *' for parameter of `issue_table_begin' member funtion.
7622         New `issue_color_begin' member function.
7623         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7624         COLOR_TAG.
7625         (html_text::issue_color_begin): New function.
7626         (html_text::issue_table_begin): Use `char *' for parameter.
7627         (html_text::start_tag, html_text::shutdown,
7628         html_text::check_emit_text): Updated.
7629         (html_text::push_para): Use `void *' for second parameter.
7630         Add same function with only one parameter.
7631         (html_text::do_*): Updated.
7632         (html_text::do_color, html_text::done_color): New functions.
7633         * src/devices/grohtml/post-html.cc (style): New member `col'.
7634         Mew member `style' with 6 parameters.
7635         (style::style, style::operator==): Updated.
7636         (html_printer::do_font): Use it.
7637         (html_printer::draw): Add dummy entry for `F'.
7638         (html_printer::set_char): Updated.
7639         * src/devices/grohtml/grohtml.man: Updated.
7641         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7642         trailing zeroes removed.
7643         (ps_printer): New members `sbuf_color', `fill_color', and
7644         `output_color'.
7645         Removed member `fill'.
7646         New member function `set_color'.
7647         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7648         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7649         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7651         * tmac/color-html.tmac, tmac/color.tmac: New files.
7652         * tmac/troffrc: Include them.
7653         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7654         * tmac/Makefile.sub: Updated.
7656         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7657         man/groff.man: Updated.
7658         * font/devps/prologue.ps: Define FC and CO functions.
7660 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7662         Fix incorrect cropping of images and incorrect handling of special
7663         characters.  Fix handling of file names in \O.
7665         * src/include/geometry.h: New file.
7666         * src/libs/libgroff/geometry.cc: New file.
7667         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7668         to `geometry.cc'.
7669         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7670         initial spaces.
7671         (do_suppress): Updated.
7672         * src/roff/troff/node.cc: Include geometry.h.
7673         (troff_output_file::flush_tbuf): Fixed parameters to
7674         `check_output_limits'.
7675         (troff_output_file::check_charinfo): Ditto.
7676         (troff_output_file::determine_line_limits): Add support for `Da'
7677         and `Dl' commands.
7679         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7680         Add new parameter `is_special' to decode special characters from
7681         escape sequences.
7682         (html_printer::do_title, html_printer::do_heading,
7683         html_printer::do_indentedparagraph,
7684         html_printer::translate_to_html, html_printer::special): Updated.
7686 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7688         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7689         Fix entry for config.h.
7690         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7691         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7692         * src/preproc/eqn/eqn.man: Document -d command line option.
7694 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7696         * man/groff.man: Use
7698           .ev xxx
7699           .na
7700           .nh
7701           <table>
7702           .ev
7704         instead of the old code (`.ad .hy' after the table) to suppress
7705         incorrect hyphenation for grohtml output.
7707 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7709         * man/groff_font.man, man/groff_out.man: Minor fixes.
7711 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7713         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7714         Arnold Robbins <arnold@skeeve.com>).
7716 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7718         * configure: Regenerated with autoconf 2.52.
7720         * doc/groff.texinfo: Complete revision of indices.
7722 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7724         * doc/Makefile (clean): Updated to delete all indices.
7726 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7728         * src/roff/troff/troff.man: Remove superfluous line.
7730         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7731         given on the command line (or rather, if only the default warnings
7732         are set).
7734 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7736         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7737         use .ne for TTY devices.
7739 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7741         * src/roff/troff/token.h, src/roff/troff/input.cc:
7742         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7744 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7746         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7747         * src/roff/troff/input.cc (token::next): Return
7748         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7749         compatibility mode.
7750         (token::description): Updated.
7751         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7752         (token::add_to_node_list, token::process): Ignore
7753         TOKEN_TRANSPARENT_ESCAPE.
7755 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7757         * tmac/an-old.tmac: Fix `S' string.
7759 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7761         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7763 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7765         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7766         backslashes).
7767         Many other minor fixes.
7769         * configure.ac: Add message at end to inform how to compile
7770         xditview.
7771         * configure: Regenerated.
7773 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7775         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7776         Updated to latest version of libc.
7778 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7780         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7781         Autoconf 2.50 and newer can handle this.
7782         * configure: Regenerated.
7784 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7786         * doc/pic.ms: Fix typo.
7787         * src/preproc/tbl/tbl.man: Document case of global options.
7789 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7791         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7792         handling of `CR' font.
7794 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7796         Use a config.h file.
7798         * src/include/lib.h: Include config.h.
7799         * All C files: Ditto (if necessary).
7800         * All C++ source and header files: Include lib.h first (if
7801         necessary).
7803         * src/include/config.hin: New file (autogenerated by autoheader).
7804         * stamp-h.in: New file.
7805         * configure.ac: Updated.
7806         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7807         (GROFF_ARRAY_DELETE): Simplified.
7808         * Makefile.sub (DISTCLEANFILES): Updated.
7809         Added targets for remaking config.status, config.hin, config.h,
7810         stamp-h.in, and stamp-h.
7811         * configure: Regenerated.
7813 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7815         * NEWS: Updated.
7817 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7819         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7820         (do_sprintf): Use snprintf().
7822 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7824         * src/libs/snprintf/*: Added an snprintf module written by Mark
7825         Martinec.
7826         * src/libs/libgroff/Makefile.sub: Updated.
7827         * configure.ac: Add test for snprintf().
7828         * Makefile.in: Updated.
7829         * configure: Regenerated.
7831         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7832         uses snprintf().
7834 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7836         * tmac/doc.tmac (Ex): New implementation.
7837         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7839 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7841         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7842         argument.
7843         * tmac/groff_tmac.man: Updated.
7845 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7847         * src/preproc/tbl/tbl.man: Minor documentation update.
7849 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7851         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7852         * configure.ac: Add declaration test for gettimeofday().
7853         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7854         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7855         * configure: Regenerated.
7857 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7859         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7860         * configure.ac: Add declaration test for strcasecmp().
7861         * Makefile.in: Updated.
7862         * configure: Regenerated.
7863         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7864         this is necessary because groff's mkstemp.cc is C++.
7865         Add declaration conditionally for strcasecmp().
7867 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7869         Integrated pic2graph, contributed by Eric S. Raymond.
7871         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7872         files.
7873         * Makefile.in, NEWS: Updated.
7875         * src/preproc/tbl/tbl.man: Revised.
7877 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7879         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7881 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7883         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7884         requests.
7886 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7888         * Makefile.sub (configure): Depend on configure.ac, not
7889         configure.in.
7890         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7892 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7894         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7895         fixes.
7897 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7899         * src/roff/troff/troff.man: Improve documentation of -E option.
7901 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7903         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7904         Simplified.
7906 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7908         * src/preproc/refer/refer.cc: Undo last change.
7909         * src/devices/grohtml/post-html.cc: Ditto.
7911 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7913         * src/preproc/refer/refer.cc: Include `lib.h'.
7914         * src/devices/grohtml/post-html.cc: Ditto.
7916 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7918         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7919         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7920         * Makefile.in: Comment updated.
7921         * configure: Regenerated.
7923 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7925         * src/preproc/pic/pic.cc: Removed.
7926         * src/preproc/pic/pic_tab.h: Removed.
7927         * src/preproc/refer/label.cc: Removed.
7929         * doc/Makefile (.ms.html): Don't use a file name extension in
7930         argument to grohtml's -I option.
7931         * Makefile.in (dist): Remove CVS directories.
7932         Call `distfiles' target.
7934         * src/devices/grohtml/grohtml.man: Add information about valid
7935         versions of pnmtopng.
7936         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7937         name instead of number.
7939 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7941         * doc/groff.texinfo: Minor fixes.
7943 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7945         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7946         (clean): Updated.
7948 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7950         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7951         * src/libs/libgroff/mkstemp.cc: New file.
7952         * src/libs/libgroff/mksdir.cc: New file.
7953         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7954         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7955         * src/libs/libgroff/Makefile.sub: Updated.
7956         * src/include/lib.h: Add mksdir() prototype.
7957         * src/include/posix.h: Define S_IXUSR if not yet defined.
7959         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7960         (createAllPages): Use mksdir() instead of current code.
7961         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7962         (main): [!HAVE_MKSTEMP]: Removed.
7964         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7965         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7966         macros.
7967         * configure.ac: Add tests for stdint.h, sys/time.h, and
7968         gettimeofday().
7969         Call new GROFF_xxx macros.
7970         * configure: Regenerated.
7971         * Makefile.in: Comments updated.
7973 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7975         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7976         instead of current code.
7977         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7978         * src/roff/groff/groff.cc (possible_command::insert_args): New
7979         function.
7980         (main): Use it for predriver handling instead of insert_arg().
7982 2001-07-19  Werner LEMBERG  <wl@gnu.org>
7984         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7985         groff also.
7987         * src/include/posix.h: Define S_IWUSR if not yet defined.
7989 2001-07-18  Werner LEMBERG  <wl@gnu.org>
7991         * NEWS: Updated.
7993 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
7995         * tmac/groff_mdoc.man: Document new -width and -column syntax.
7996         Some other minor fixes.
7997         * tmac/an-old.tmac: Add `AT' and `UC' macros.
7999 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8001         Replace call to `troff' with `groff -Z' to make it aware of
8002         GROFF_BIN_PATH.
8004         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8005         (troff_command, command_prefix): Removed.
8006         (alterDeviceTo): Use groff.
8007         (addZ): New function.
8008         (char_buffer::do_html): Use it.
8009         (scanArguments): Use TROFF_COMMAND.
8010         (findPrefix): Removed.
8011         (main): Updated.
8012         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8014 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8016         * doc/pic.ms: Documentation fixes.
8018 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8020         Replace atexit() with global destructor.
8022         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8023         (xtmpfile_list_init): New global structure to deallocate
8024         xtmpfile_list on exit.  Its destructor inherits most code from
8025         remove_tmp_files().
8026         (remove_tmp_files): Deleted.
8027         (add_tmp_file): Simplified.
8029 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8031         Replace strdup() with strsave().
8033         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8034         (set_papersize): Use strsave() and a_delete.
8035         (main): Use strsave().
8036         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8037         removeAllPages): Use strsave() and a_delete.
8039         * configure.ac: Remove test for strdup.
8040         * Makefile.in: Comment updated.
8041         * configure: Regenerated.
8043 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8045         * win32-diffs: Updated.
8047 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8049         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8050         removing the old one.
8051         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8053 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8055         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8057 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8059         Merge -xwidth into -width.  Add -xwidth functionality to -column
8060         also.
8062         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8063         avoid warning.
8064         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8065         string immediately following a leading dot starts with a valid mdoc
8066         argument.
8067         Add similar code to the -column branch.
8068         (doc-Bl-usage): Updated.
8069         * groff_mdoc.man: s/-xwidth/-width/.
8071 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8073         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8074         running into centered or non-formatted text.
8076 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8078         Introduce short and long prefixes to have the selection at run-time
8079         whether there is a 8+3 limit for names of temporary files.
8081         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8082         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8083         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8084         variables.
8085         (temp_init): New global structure to initialize above three
8086         variables.
8087         (xtmptemplate): Use two parameters for long and short prefix.
8088         Simplify code use above three variables.
8089         (xtmpfile): Use long and short prefixes as parameters.
8090         * src/include/lib.h: Updated.
8092         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8093         with ...
8094         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8095         (createAllPages, makeTempFiles): Updated.
8097 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8099         * REVISION: Increased to 3.
8101 Version 1.17.2 released
8102 =======================
8104 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8106         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8107         to size_t.
8109 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8111         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8112         Fix synopsis.
8113         * tmac/groff_mdoc.man: Fix synopsis.
8115 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8117         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8118         Restore `doc-Pa-font'.
8120 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8122         * src/utils/indxbib/dirnamemax.c: Moved to ...
8123         * src/libs/libgroff/maxfilename.cc: Here.
8124         s/dir_name_max/file_name_max/.
8125         Add copyright.
8126         * src/include/lib.h: Add file_name_max.
8127         * src/utils/indxbib/indxbib.cc: Updated.
8128         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8129         Updated.
8131         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8132         as empty.
8133         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8135         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8136         REGION_TEMPLATE): New macros.
8137         (createAllPages, makeTempFiles): Use them.
8138         Include `nonposix.h'.
8139         (html_system): New function.
8140         (createAllPages, createImage): Use it.
8141         Use EXE_EXT.
8143         * tmac/www.tmac: Fix typos.
8145 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8147         * tmac/www.tmac: Disable hyphenation in normal text only if output
8148         device is html.
8149         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8150         * tmac/groff_mwww.man, NEWS: Updated.
8152 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8154         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8155         image location.
8157 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8159         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8160         doc-display-ps-stack): Implement font and font size stack for
8161         displays.
8163 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8165         * REVISION: Increased to 2.
8166         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8168         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8169         beginning of a line.
8170         * src/groff/grog/grog.sh: Ditto.
8172 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8174         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8175         make it portable.
8177 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8179         Fix problems with preprocessor string for `man' program.
8181         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8182         Updated/added copyright.
8183         Moved Emacs's local variable to identify nroff mode to the end of
8184         the file; add local variable if missing.
8186 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8188         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8189         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8190         * configure: Regenerated.
8192 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8194         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8195         * configure: Regenerated.
8197 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8199         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8200         but www.tmac.
8201         * doc/pic.ms: Fix typos.
8203 Version 1.17.1 released
8204 =======================
8206 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8208         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8209         * configure: Updated.
8211 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8213         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8214         image names.
8215         * src/roff/troff/dic.cc (blank_line): Add html tag.
8217 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8219         * src/roff/troff/input.cc (do_suppress): Fix typo.
8221 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8223         Added two new options (-D and -I) to specify image names and a
8224         subdirectory to place the images in.
8226         Change syntax from \\Ox to \\O[x].
8228         * src/devices/grohtml/post-html.cc (main): Add options.
8229         (usage): Updated.
8230         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8231         Use `NULL' instead of `0' for null string pointers.
8232         (MAX_RETRIES): New macro.
8233         (lengthOfintToStr, intToStr, make_message): New functions.
8234         (makeFileName): Make function static.
8235         Implement -D and -I options.
8236         (checkImageDir): New function.
8237         (write_end_image, write_start_image): Use new syntax of \O.
8238         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8239         make_message().
8240         (createImage): Use make_message().
8241         (addps4html): Add guard for malloc().
8242         (usage, scanArguments): Updated.
8243         (makeTempFiles): Use mkstemp().
8244         (removeTempFiles): Use unlink().
8245         (findPrefix): Add guard for malloc().
8246         (main): Updated.
8247         * src/roff/troff/input.cc (get_delim_file_name): New function to
8248         parse \O.
8249         (do_suppress): Updated to parse new syntax.
8250         * src/devices/grohtml/grohtml.man: Updated.
8251         * tmac/www.tmac: Updated to new syntax.
8253         * NEWS: Updated.
8255 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8257         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8259         * src/devices/grohtml/grohtml.man: Minor improvements.
8261 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8263         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8265 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8267         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8268         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8269         the former.
8270         * src/preproc/grn/grn.man: Add proper '\" string.
8272 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8274         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8276 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8278         Updated to autoconf 2.50.
8280         * configure.in: Renamed to...
8281         * configure.ac: This.
8282         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8283         (GROFF_OS390): Updated.
8284         * configure: Regenerated.
8286 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8288         * src/roff/troff/env.c, src/roff/troff/env.h,
8289         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8290         from 2000-12-21.
8292 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8294         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8296 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8298         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8299         less than or equal zero; set it to 1 then.
8300         * src/roff/troff/node.h (node::node): Initialize `last'.
8302 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8304         * tmac/an-old.tmac: Make predefined strings work in compatibility
8305         mode.
8306         Add troff version guard.
8307         * tmac/doc.tmac: Simplify version guard.
8309 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8311         The .ns and .rs requests are now honoured not only in the top-level
8312         but in all diversions (similar to UNIX troff).
8314         This change is based on a patch from Tadziu Hoffmann
8315         <hoffmann@usm.uni-muenchen.de>.
8317         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8318         (top_level_diversion): Remove `no_space_mode' member.
8319         * src/roff/troff/div.cc (diversion::diversion,
8320         top_level_diversion::top_level_diversion): Updated.
8321         (macro_diversion::output): Reset `no_space_mode'.
8322         (no_space, restore_spacing): Use `curdiv' unconditionally.
8323         (space_request, blank_line): Check `curdiv->no_space_mode'.
8324         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8325         `curdiv' unconditionally.
8326         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8327         Updated.
8329 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8331         Added two new requests `de1' and `am1' which are similar to `de' and
8332         `am' with the difference that compatibility mode is saved on entry,
8333         switched off during macro execution, and restored on exit.
8335         * src/roff/troff/input.h: Added two new special characters
8336         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8337         * src/roff/troff/input.cc (input_iterator): Added two member
8338         functions `save_compatible_flag' and `get_compatible_flag'.
8339         (input_stack): Ditto.
8340         (string_iterator): Ditto.  Also add private member
8341         `saved_compatible_flag'.
8342         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8343         (calling_mode): New enumeration.
8344         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8345         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8346         (define_macro, define_indirect_macro, append_macro, ignore): Use
8347         `calling_mode'.
8348         (define_nocomp_macro, append_nocomp_macro): New functions.
8349         (init_input_requests): Updated.
8350         (do_request): Rename local variable `saved_compatible_flag' to
8351         `old_compatible_flag'.
8352         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8354         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8355         public and trap-invoked macros.  As a consequence, the man macros
8356         work in compatibility mode also.
8358 2001-05-06  Solar Designer  <solar@openwall.com>
8360         * Makefile.in: Use $(mandir).
8362 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8364         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8366 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8368         Added `.ns' number register: Returns 1 in no-space mode (if in
8369         top-level diversion), 0 otherwise.
8371         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8372         (init_div_requests): Updated.
8373         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8374         Document it.
8376 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8378         * src/roff/nroff/nroff.man: Improved documentation (especially
8379         locales).
8381 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8383         Added `brp' request: This is \p as a request.
8385         * src/roff/troff/env.cc (environment::do_break): Add parameter
8386         `spread'.
8387         (do_break_request): New function (was `break_request').
8388         (break_request): Calls `do_break_request'.
8389         (break_spread_request): New; calls `do_break_request'.
8390         (init_env_requests): Updated.
8391         * src/roff/troff/env.h: Updated.
8392         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8394         * REVISION: Increased to 1.
8395         * win32-diffs: Updated.
8397 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8399         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8400         * tmac/troffrc-end: Make it really work in compatibility mode.
8402 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8404         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8405         stdlib.h.
8407 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8409         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8410         latest versions from glibc CVS archive.
8412         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8413         <c.zeelenberg@hccnet.nl>.
8415 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8417         * configure.in: Move check for mkstemp() to...
8418         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8419         * configure: Regenerated.
8421         * src/include/groff-getopt.h: Don't use variable names in
8422         declarations.
8424         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8425         * src/devices/grohtml/Makefile.sub,
8426         src/devices/grohtml/post-html.cc: Updated.
8428 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8430         * configure.in: Add special check for mkstemp().
8431         * src/libs/libgroff/tmpfile.cc: Use it.
8432         * src/utils/indxbib/indxbib.cc: Ditto.
8433         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8434         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8435         `const'.
8437 2001-04-20  Bruce Lilly  <blilly@erols.com>
8439         `Version_string' as C++ object was not visible to linker from C
8440         object files.
8441         Add `const' to `Version_string'.
8443         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8444         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8445         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8446         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8447         (scanArguments), src/preproc/refer/refer.cc (main),
8448         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8449         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8450         (main), src/devices/grohtml/post-html.cc (main),
8451         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8452         (main), src/utils/hpftodit/hpftodit.cc (main),
8453         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8454         (main), src/utils/lkbib/lkbib.cc (main),
8455         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8457         * src/roff/groff/pipeline.c: Add _UWIN.
8458         * src/include/nonposix.h: Ditto.
8460 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8462         * src/include/lib.h: Use HAVE_STRERROR.
8463         * src/roff/groff/pipeline.c: Ditto.
8464         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8465         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8466         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8467         * win32-diffs: Updated.
8468         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8470 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8472         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8473         instead of hardwired `"troff"'.
8474         (char_buffer::read_file): Remove unused variables.
8475         (char_buffer::write_file_troff): Ditto.
8476         (char_buffer::write_file_html): Ditto.
8477         (generateImages): Ditto.
8478         (abs): Removed.
8479         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8481         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8483         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8484         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8485         index_search_item::search1): Ditto.
8486         * src/roff/troff/node.h (width_list): Reorder members.
8487         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8488         (lookup_warning): Ditto.
8489         (prepend_string): Commented out.
8490         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8491         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8492         * src/preproc/tbl/main.cc (process_format): Ditto.
8493         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8494         compiler warnings.
8495         * src/preproc/pic/pic.cc: Updated.
8496         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8497         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8498         * src/preproc/refer/command.cc (execute_command): Ditto.
8499         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8500         * src/preproc/refer/token.cc (lookup_token): Ditto.
8501         * src/preproc/soelim/soelim.cc: Ditto.
8502         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8503         (isHexDigit): Commented out.
8504         (pushBackBuffer::isString): Remove unused variable.
8505         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8506         warning.
8507         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8508         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8509         Ditto.
8510         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8511         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8512         lookup_paper_size): Ditto.
8513         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8514         (text_glob, element_list): Reorder members.
8515         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8516         compiler warning.
8517         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8518         return value to `void'.
8519         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8520         of initializers.
8521         * src/devices/grohtml/html.h (simple_output::check_newline,
8522         simple_output::space_or_newline, simple_output::enable_newlines):
8523         Add return value.
8524         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8525         compiler warnings.
8526         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8527         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8528         output_ligatures, output_charset, read_map): Ditto.
8529         * src/utils/lookbib/lookbib.cc (main): Ditto.
8530         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8531         (do_file): Fix typo (`=' -> `==').
8532         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8533         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8535 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8537         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8538         Fix usage of GROFF_BIN_PATH.
8539         * src/roff/nroff/nroff.man: Updated.
8541 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8543         * NEWS: Fixing typos.
8544         Updated.
8546 Version 1.17 released
8547 =====================
8549 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8551         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8552         directory, not in $(srcdir).
8554 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8556         * doc/groff.texinfo: More info on conditionals.
8558 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8560         * doc/groff.texinfo: Added some info about groff internals.
8562         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8563         about missing special character only if the name is non-null.
8565 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8567         Removing the grohtml-old device driver which is now obsolete.
8569         * src/devices/grohtml-old/*: Removed.
8570         * font/devhtml-old/*: Removed.
8571         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8572         Remove comments.
8573         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8574         * test-groff (PATH): Updated.
8575         * tmac/Makefile.sub (NORMALFILES): Updated.
8576         * tmac/an-old.tmac: Remove special code for html-old device.
8577         Replace `html-or-html-old' register with `an-html'.
8578         * tmac/eqnrc: Updated.
8579         * tmac/html-old.tmac: Removed.
8580         * tmac/troffrc, tmac/troffrc-end: Updated.
8581         * tmac/www.tmac: Remove special code for html-old device.
8582         Replace `html-or-html-old' register with `www-html'.
8584         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8585         src/libs/libgroff/htmlindicate.cc (graphic_end),
8586         include/htmlindicate.h, src/preproc/grn/*.cc,
8587         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8588         single argument for consistency with rest of source code.
8590         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8592 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8594         * src/roff/troff/troff.man: Fixing typos.
8596 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8598         * doc/pic.ms: Fixing many font switches.
8599         * doc/groff.texinfo: Fixes, additions.
8600         * MORE.STUFF: Updated.
8602 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8604         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8605         simple anchor.
8606         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8607         cropping of images.
8608         (removeTempFiles): New function to tidy up temporary files.
8609         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8610         Many fixes to do with the new inline suppress node and image regions
8611         are much tighter.
8612         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8613         (generate_img_src): New function.
8614         (html_printer::do_auto_image): Utilizes it.
8615         (do_heading, do_title): Include inline images within their contents.
8616         (html_printer::begin_page): Tidied up comments that are issued to
8617         the html output file.
8618         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8619         than courier.
8620         (text_glob::is_br): New method used by do_heading.
8621         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8622         equivalent diversion.
8623         * src/include/html-strings.h: Altered image tags to reflect the
8624         inline image node.
8625         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8626         parameter.
8627         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8628         it is already inside a pic image.  Only emit tags if the argument
8629         `-Tps:html' is present.
8630         * src/preproc/tbl/main.cc: Changes to reflect additional
8631         `html_end_suppress' parameter.
8632         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8633         emitted since the last eol tag was written.
8634         * src/roff/troff/env.h: New boolean `emitted_node'.
8635         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8636         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8637         * src/roff/troff/node.cc (check_charinfo): New method. 
8638         (troff_output_file::determine_line_limits): Alterations to limit
8639         checking.
8640         * tmac/www.tmac: Changes to reflect new suppress nodes.
8641           
8642 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8644         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8645         Escape the html_glyph in the buffer.
8646         (str_translate_to_html): Output the unescaped escaped_char.
8647         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8648         `frame=void', not `frame=none'.  Add `border=0'.
8650 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8652         * PROBLEMS: Add some words on how to avoid wrapper macros.
8654 2001-04-11  Blake McBride  <blake@florida-software.com>
8656         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8658 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8660         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8661         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8662         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8663         * Makefile.sub (DISTCLEANFILES): Here.
8665         * libs/libgroff/new.cc: Include `nonposix.h'.
8666         * win32-diffs: Updated.
8668 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8670         Added skeleton macro for defunct macros.
8672         Updated documentation.
8674         When inside displays, an empty input line warning should be
8675         suppressed.  If another macro call is put inside a display,
8676         all subsequent empty lines found in that display caused a
8677         warning to be emitted.
8679         * tmac/doc.tmac (doc-defunct-macro): New macro.
8680         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8681         (doc-restore-global-vars): Fixed typo.
8682         (doc-empty-line): Check the `doc-display-depth' register to
8683         determine whether we are inside display or not.
8685         * tmac/doc-common: Removed `Or' and `Sf' registers.
8686         Moved obsolete `Ds' macro to doc.tmac.
8688         * tmac/groff_mdoc.man: Bump document date.
8689         Document `.Vt' under ``Variable Types''.
8690         Removed documentation for obsolete `.Or' macro.
8692 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8694         * NEWS: Updated.
8695         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8697 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8699         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8700         (usage): Add stream argument. Don't exit.
8701         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8702         Write --version output to stdout, not stderr.
8703         (usage): Add stream argument. Don't exit.
8704         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8705         (usage): Add stream argument. Don't exit.
8706         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8707         constants.
8708         (usage): Add stream argument. Don't exit.
8709         (main): Write --help output to stdout, not stderr.
8710         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8711         (usage): Add stream argument. Don't exit.
8712         * src/devices/grops/ps.cc (main): Accept --help and --version.
8713         (usage): Add stream argument. Don't exit.
8714         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8715         (usage): Add stream argument. Don't exit.
8716         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8717         (main): Accept --help and --version.
8718         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8719         (main): Accept --help and --version.
8720         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8721         (scanArguments): Accept --help and --version.
8722         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8723         (main): Accept --help and --version.
8724         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8725         (usage): Add stream argument. Don't exit.
8726         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8727         exit.
8728         (main): Accept --help and --version.
8729         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8730         (main): Accept --help and --version.
8731         * src/roff/groff/groff.cc (main): Accept --help and --version.
8732         (synopsis): Add stream argument.
8733         (help): Write --help output to stdout, not stderr.
8734         (usage): Add stream argument. Don't exit.
8735         * src/roff/grog/grog.pl: Accept --help and --version.
8736         (help): New sub.
8737         * src/roff/grog/grog.sh: Accept --help and --version.
8738         * src/roff/nroff/nroff.sh: Accept --help and --version.
8739         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8740         (usage): Add stream argument. Don't exit.
8741         (main): Accept --help and --version.
8742         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8743         (usage): New function with stream argument, doesn't exit.
8744         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8745         (usage): New function with stream argument, doesn't exit.
8746         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8747         (usage): Add stream argument. Don't exit.
8748         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8749         (main): Accept --help and --version.
8750         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8751         exit.
8752         (main): Accept --help and --version.
8753         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8754         (main): Accept --help and --version.
8755         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8756         (usage): Add stream argument. Don't exit.
8758 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8760         Fix indentation in SYNOPSIS.
8762         Updated to include changes of latest BSD mdoc version (basically,
8763         the only change is that `.Fn' and `.Fc' put a final semicolon after
8764         a function declaration in the SYNOPSIS section).
8766         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8767         (doc-in-synopsis-section): New variable.  Updated all related
8768         functions.
8769         (doc-indent-synopsis-active): New register.
8770         (Nd, Fn, Fo): Use it.
8771         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8772         `.Cd' with long argument line produces indented wrapped lines. 
8773         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8774         undesirable line break to be output.
8775         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8776         `.rs'.
8777         (Fn, Fc): Add final `;' to output.
8778         (doc-save-global-vars, doc-restore-global-vars): Updated.
8779         * tmac/doc-common: Remove `Ex' register.
8780         Updated.
8781         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8782         copyright.
8784 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8786         * tmac/doc.tmac (Cd): Simplify code.
8787         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8789 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8791         Implement continuous underlining for nroff mode.  To do that, a new
8792         request in the ditroff language has been added: `x u N' (N is 0
8793         or 1).
8795         \X and \Y are now transparent to end-of-sentence recognition.
8797         * src/include/printer.h (printer): Add `type' parameter to `special'
8798         method.
8799         * src/libs/libdriver/printer.cc (printer::special): Updated.
8800         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8802         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8803         specials of type `p'.
8804         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8805         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8806         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8807         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8808         (glyph::order): New method.
8809         (tty_printer::add_char): Use it.
8810         (tty_printer::special): New method.
8811         (tty_printer::end_page): Implement it.
8813         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8814         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8815         to set `no_init_string'.
8816         (special_node::tprint_start): Use it.
8817         (special_node::same, special_node::copy): Updated.
8818         (special_node::ends_sentence): New method.
8819         (troff_output_file::start_special): Add parameter to include
8820         inititialization of special conditionally.
8822         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8823         * src/roff/troff/env.cc (do_underline_special): New function.
8824         (environment::set_font): Use it.
8825         (do_underline): Use it.  This was `underline()'.
8826         (underline): Call `do_underline()'.
8827         (continuous_underline): New function which calls `do_underline()'.
8828         (environment::newline): Use `do_underline_special()'.
8829         (init_env_requests): Updated.
8831         * NEWS, man/troff_out.man: Updated.
8833 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8835         * font/devutf8/R.proto: Fix code of 'shc'.
8837 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8839         Many fixes.  Diag lists can now be nested also; additionally,
8840         `-compact' and `-offset' are supported.
8842         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8843         (doc-list-have-indent-stackXXX): A new register stack.
8844         (doc-have-diag-list): Removed.
8845         (Bl): Use `doc-list-have-indent-stackXXX'.
8846         (El): Updated.
8847         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8848         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8849         (doc-set-vertical-and-indent): Ditto.
8850         (doc-next-list-depth): Removed.
8851         (doc-increment-list-stack): Updated.
8852         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8853         `doc-next-list-depth'.
8854         (doc-end-list, doc-end-column-list): Don't use
8855         `doc-increment-list-stack'.
8856         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8857         (doc-save-global-vars, doc-restore-global-vars): Updated.
8858         * tmac/doc-common: Updated.
8859         * tmac/groff_mdoc.man: Updated.
8860         * NEWS: Fix typo.
8862 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8864         * src/devices/grotty/grotty.man: Fix grammatical error.
8866 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8868         Remove .Ld from mdoc package; replace it with special handling of
8869         `...'.
8871         * tmac/doc-common: Remove `Ld' register.
8872         Uncomment `doc-volume-ds-*' strings.
8873         Remove `doc-operating-system-default'.
8874         (Os): Updated.
8875         * tmac/doc-syms (Ld): Removed.
8876         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8877         `...' specially.
8878         * NEWS: Updated.
8880         * tmac/groff_mdoc.man: Many fixes and updates.
8882 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8884         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8885         Bond <tkb@tkb.mpl.com>.
8886         * tmac/www.tmac: Save compatibility mode.
8888 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8890         * tmac/groff_mdoc.man: Many fixes.
8892 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8894         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8895         isn't recognized.
8897 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8899         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8900         diversion.  This fixes overlong tags.
8902 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8904         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8905         * tmac/doc-syms: Fix error messages.
8906         * tmac/an-old.tmac: Remove incorrect double backslashes.
8908 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8910         * tmac/Makefile.sub: Strip mdoc.local also
8911         * tmac/strip.sed: Fixed.
8913 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8915         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8916         selecting the font size.
8917         * tmac/groff_mdoc.man, NEWS: Document it.
8919 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8921         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8922         to `sv' request.
8923         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8924         argument to restore previous font family.
8925         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8927         * doc/groff.texinfo: More fixes and additions (mainly for font
8928         manipulating commands).
8930         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8931         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8932         * tmac/Makefile.sub, NEWS: Updated.
8934 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8936         Replaced mdoc implementation.  The new version is `state of the
8937         art', using almost all new features of groff 1.17 -- it won't run
8938         with older versions.
8940         * tmac/doc.tmac: Completely rewritten.
8941         * tmac/doc-common: Ditto.
8942         * tmac/doc-nroff: Ditto.
8943         * tmac/doc-ditroff: Ditto.
8944         * tmac/doc-syms: Ditto.
8945         * tmac/mdoc.local: New file.
8946         * tmac/groff_mdoc.samples.man: Replaced with ...
8947         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8948         * tmac/strip.sed: Updated.
8949         * tmac/Makefile.sub: Updated.
8950         * INSTALL: Updated.
8952         * tmac/groff_man.man: Add `man.local' to the FILES section.
8954 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8956         * doc/groff.texinfo: Added many @noindent.
8957         Replaced @end_Example -> @endExample.
8958         Added info whether registers are r/o.
8959         Many other additions and fixes.
8961 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8963         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8964         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8965         Improved @Def* macros: Now the exact syntax of request, register,
8966         and escapes is shown.
8967         Added macros for parentheses and brackets to be used in @Def*.
8968         Many fixes and improvements of the documentation.
8970 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8972         * doc/groff.texinfo: Added new index: `st' (for strings).
8973         Added macros @Defstr(x).
8974         Added macro @Example (adding @group).
8975         Other minor improvements.
8977 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8979         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8980         `rq' for requests.  `fn' is no longer used.
8981         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8982         Removed @Deffn(x).
8984         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8985         number with name of man page.
8987 2001-03-19  Larry Kollar  <kollar@alltel.net>
8989         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
8990         consistency.
8992 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8994         * man/groff_font.man: Document `prepro', `postpro', and `print'.
8995         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8996         * src/devices/grohtml/grohtml.man: Fixing typos.
8998 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9000         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9001         * tmac/groff_mwww.man: Remove .LINE macro
9002         * tmac/www.tmac (LINE): Add `.ti'.
9004         * src/devices/grohtml/post-html.cc (html_printer): New member
9005         `indent'.
9006         (html_printer::emit_raw): Use it.
9007         (html_printer::do_linelength): Ditto.
9008         (html_printer::do_pageoffset): Ditto.
9009         (html_printer::do_indentation): Ditto.
9010         (html_printer::do_tempindent): Ditto.
9011         (html_printer::do_break): Ditto.
9012         (html_printer::begin_page): Ditto.
9013         (html_printer::do_indentedparagraph): New function.
9014         (html_printer::troff_tag): Handle `.ip'.
9015         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9016         Add `<td width=...>' handling.
9017         (html_text::do_table): Add parameter.
9018         (html_text::do_indent): Updated.
9019         * src/devices/groohtml/html-text.h: Updated.
9021 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9023         Introduced simple html tables to implement indentation.
9025         * src/devices/grohtml/html.h (word, word_list): New structures.
9026         (simple_output): Use it.
9027         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9028         (html_printer): Improve indentation handling.
9029         (html_printer::emit_raw): Set `in_table' element.  Handle
9030         indentation if set.
9031         (html_printer::write_header): Move conditional downwards.
9032         Don't allow whitespace in tags.
9033         (html_printer::do_linelength): Handle line length and indentation
9034         conditionally.
9035         (html_printer::do_pageoffset): Handle indentation conditionally.
9036         (html_printer::do_indentation): Ditto.
9037         (html_printer::do_tempindent): New function member.
9038         (html_printer::do_fill): Take care of indentation.
9039         (html_printer::do_flush): Finish table.
9040         (html_printer::do_links): Ditto.
9041         (html_printer::do_break): New function for handling `.br' and `.ti'.
9042         (html_printer::troff_tag): Use it.
9043         Handle `.ti'.
9044         (html_printer::flush_globs): Fix.
9045         (html_printer::flush_page): Finish table.
9046         (html_printer::html_printer): Fix error message.  Set up
9047         `linelength'.
9048         (html_printer::add_to_sbuf): Remove special handling of character
9049         code 255.
9050         (to_unicode): Remove `stop()'.
9051         (html_printer::write_title): Cleanup.
9052         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9053         (html_printer::~html_printer): Flush text and end the line.
9054         Use `put_string()'.
9055         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9056         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9057         emission of tags.
9058         (html_text::start_tag): Disable newlines.
9059         (html_text::table_is_void): New function.
9060         (html_text::issue_table_begin): Ditto.
9061         (html_text::issue_table_end): Ditto.
9062         (html_text::push_para): Better table handling.
9063         (html_text::do_indent): New function.
9064         (html_text::do_table): Ditto.
9065         (html_text::done_table): Ditto.
9066         (html_text::do_tt): Handle PRE_TAG.
9067         (html_text::is_in_table): New function.
9068         (html_text::check_emit_text): Handle tables.
9069         (html_text::do_emittext): Use `nl()'.
9070         (html_text::do_para): Handle table.
9071         (html_text::remove_def): New function.
9072         * src/devices/grohtml/output.cc (word, word_list): Implement
9073         methods.
9074         (simple_output::end_line): Flush last word.
9075         (simple_output::simple_comment): Ditto.
9076         (simple_output::begin_comment): Recoded.
9077         (simple_output::end_comment): Ditto.
9078         (simple_output::comment_arg): Removed.
9079         (simple_output::check_newline): Improve test and flush last word.
9080         (simple_output::space_or_newline): Improved.
9081         (simple_output::write_newline): Replaced with...
9082         (simple_output::nl): This.
9083         (simple_output::put_raw_char): Flush last word.
9084         (simple_output::check_space): Removed.
9085         (simple_output::put_translated_string): Ditto.
9086         (simple_output::put_string): Simplified.
9087         (simple_output::put_number): Updated.
9088         (simple_output::put_float): Ditto.
9089         (simple_output::put_symbol): Removed.
9090         (simple_output::enable_newlines): Add `check_newline()'.
9091         (simple_output::flush_last_word): New function.
9093         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9094         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9096         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9097         * tmac/an-old.tmac (TP): Ditto.
9099 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9101         * mdate.sh: Make it POSIX compliant.
9103 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9105         Added the `return' request to end a macro immediately.  It simply
9106         pops iterators from the input stack until a macro iterator is found.
9108         * src/roff/troff/input.cc (input_iterator::is_macro,
9109         macro_iterator::is_macro): New member.
9110         (input_return_boundary): New class to signal an immediate return
9111         to while_request().
9112         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9113         New functions.
9114         (input_stack::clear): Use it.
9115         (input_stack::pop_macro): New function.
9116         (while_request): Use `is_return_boundary()'.
9117         (return_macro_request): New function.
9118         (init_input_requests): Use it.
9120         * src/roff/troff/TODO: Updated.
9121         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9123 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9125         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9126         cleanup.
9128 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9130         Make `\B' more rigid.
9132         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9133         parameter.
9134         (get_number_rigidly): New function.
9135         * src/roff/troff/input.cc (do_expr_test): Use it.
9136         * src/roff/troff/token.h: Updated.
9138         * src/roff/troff/request.h: Fix typo (init_html_request ->
9139         init_markup_request).
9141 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9143         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9144         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9145         are now `.begin', `.end', `.image'.
9147         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9148         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9149         Use add_char_to_sbuf().
9150         (to_unicode): New function.
9151         (char_translate_to_html): Changing type of `ch' parameter.
9152         Use `to_unicode()'.
9153         (html_printer::~html_printer): Comment out doctype string.
9154         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9155         instead of `.html-end'.
9156         (write_start_image): Use `.begin' and `.image' instead of
9157         `.html-begin' and `.html-image'.
9158         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9159         (html_begin): Renamed to ...
9160         (begin): This.
9161         (html_end): Renamed to ...
9162         (end): This.
9163         (html_image): Renamed to ...
9164         (image): This.
9165         (init_html_requests): Renamed to ...
9166         (init_markup_requests): This.
9167         * tmac/www.tmac: Updated.
9169 2001-02-28  Bram  <bram@avontuur.org>
9171         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9172         constructor.
9174 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9176         * doc/meref.me: Fixing some typos.
9178 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9180         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9181         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9182         * src/roff/troff/node.h: Updated.
9184 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9186         * tmac/groff_tmac.man: Fix typo.
9188 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9190         Fixing a bug which prevented proper end-of-sentence recognition
9191         between an `unformatted' box and the following text.  As a
9192         consequence, vertical line distances are no longer preserved in
9193         boxes after a call to `.unformat' -- because boxes aren't
9194         line-oriented (contrary to diversions), this doesn't make sense
9195         anyway.
9197         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9198         value.
9199         (vertical_size_node::set_unformat_flag): New method.
9200         * src/roff/troff/node.hh: Updated.
9201         * src/roff/troff/input.cc (word_space_node::reread,
9202         hmotion_node::reread): Reset `unformat' flag after usage.
9203         (unformat_macro): Append only if `set_unformat_flag()' returns
9204         non-zero.
9205         * src/roff/troff/troff.man: Updated.
9207 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9209         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9210         documentation of `asciify' and `unformat' requests.
9212 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9214         Redesigned the `unformat' request.  It is no longer connected with
9215         `asciify' but rather uses new `reread()' methods if the `unformat'
9216         flag is set.  Additionally, the handling of space characters after
9217         unformatting has been fixed so that they retain their width.
9219         * src/roff/troff/node.h (width_list): New structure to store
9220         original widths of spaces.
9221         (node): Added `unformat' member.
9222         Replaced `num_spaces' variable with `orig_width' list.
9223         * src/roff/troff/node.cc (*node::asciify,
9224         asciify_reverse_node_list): Removed `unformat_only' flag and related
9225         code.
9226         (word_space_node::asciify, word_space_node::word_space_node): Use
9227         `orig_width'.
9228         (word_space_node::~word_space_node): New destructor.
9229         (word_space_node::copy): Updated to handle `orig_width'.
9230         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9231         (*node::merge_space): Update `orig_width' list if necessary.
9232         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9233         * src/roff/troff/enc.cc (environment::space_newline): Use
9234         `width_list'.
9235         (environment::space): Added method to handle space width and
9236         sentence space width as parameters.  Use `width_list'.
9237         (environment::make_tab_node): Updated.
9238         * src/roff/troff/env.h: Updated.
9239         * src/roff/troff/input.cc (word_space_node::reread,
9240         unbreakable_space_node::reread, hmotion_node::reread): New methods
9241         to handle nodes specially if `unformat' flag is set.
9242         (do_asciify_macro): Renamed back to ...
9243         (asciify_macro): This.
9244         (unformat_macro): New implementation to simply set the `unformat'
9245         flag.
9247         * MORE.STUFF: Added more info about deroff.
9249 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9251         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9252         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9253         and `add_self()' methods to avoid hyphenation.  For example, the
9254         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9255         soft hyphen after `foo'.  Now the hyphen list is correctly
9256         `foo<ignore><ignore>bar'.
9258 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9260         * tmac/groff_tmac.man: Fix `BIR' macro.
9262 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9264         A new escape sequence `\:', inserting a zero-width break point.
9266         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9267         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9268         Implement it.
9269         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9270         method.
9271         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9272         and `asciify()' methods.
9273         * src/roff/troff/node.cc (space_node::space_node): Updated.
9274         (space_node::asciify): Handle `was_escape_colon'.
9275         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9277         Handle `\~' similar to other comparable requests.
9279         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9280         label.
9281         (token::next): Move creation of an unbreakable_space_node to...
9282         (token::add_to_node_list): Here.
9284         Fix a bug which sometimes prevented hyphenation of words connected
9285         with `\~' or `\ ' (and other escape sequences handled as
9286         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9287         (after a call to the `unformat' request).
9289         * src/roff/troff/env.h (environment::possibly_break_line,
9290         environment::hyphenate_line): Introducing `start_here' parameter.
9291         * src/roff/troff/env.cc (environment::space_newline,
9292         environment::space): Use it.
9293         (environment::possibly_break_line, environment::hyphenate_line):
9294         Implement it.
9295         * src/roff/troff/input.cc (process_input_stack): Use it.
9296         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9297         space_char_hmotion_node, overstrike_node): Add
9298         `get_hyphenation_type()' method.
9299         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9300         if `unformat_only' is active.
9302 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9304         Implemented new read-only number register `.linetabs' which
9305         returns 1 if in line-tabs mode, 0 otherwise.
9307         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9308         * src/roff/troff/env.cc (get_line_tabs): New function.
9309         (init_env_requests): Use it.
9310         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9312         * VERSION, REVISION: Changing to 1.17.0.
9314 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9316         Fixed a bug which prevented hyphenation of words which are finished
9317         with `\)'.
9319         * src/roff/troff/token.h (token): Add enum type
9320         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9321         * src/roff/troff/input.cc (token::next, token::description,
9322         get_line_arg, token::add_to_node_list, token::process): Use it.
9324 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9326         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9327         * src/roff/troff/div.cc (do_divert): Use it.
9329         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9331 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9333         Adding the `linetabs' request.  If set, tab distances are not
9334         computed relative to the input line but relative to the output line.
9336         * src/roff/troff/env.h (environment): New member `line_tabs'.
9337         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9338         (environment::environment, environment::copy): Updated.
9339         (environment::distance_to_next_tab): Use `line_tabs'.
9340         (init_env_requests): Register request.
9341         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9342         fixes.
9344 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9346         Introducing a new read-only register `.int' which is set to a
9347         positive value if the last output line is interrupted (i.e., if it
9348         contains `\c').
9350         * src/roff/troff/env.cc (init_env_requests): Add it.
9351         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9353 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9355         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9356         * src/preproc/html/pre-html.cc (findPrefix): New function which
9357         generates the troff executable name via the system prefix.
9358         * src/preproc/eqn/main.cc: Modified warning message.
9360 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9362         troff's `box' and `boxa' requests didn't preserve temporary
9363         indentation.
9365         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9366         `saved_target_text_length' members.
9367         * src/roff/troff/div.cc (do_divert): Use them.
9369         Tabs (but not yet leaders and fields) are now handled correctly by
9370         `asciify' request.
9372         * node.h (hmotion_node): Add field `was_tab'.
9373         * env.cc (environment::make_tab_node): Set it.
9374         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9376         Added new request `unformat' which will, contrary to `asciify',
9377         preserve font information after unformatting (i.e., only nodes
9378         dealing with horizontal space are converted back to input
9379         characters).
9381         * input.cc (asciify_macro): Renamed to ...
9382         (do_asciify_macro): this, having a new parameter `unformat_only'.
9383         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9384         (init_input_requests): Added `unformat'.
9385         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9386         parameter to control asciification process.
9387         * node.h (*_node::asciify): Ditto.
9388         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9390 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9392         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9394 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9396         * tmac/ps.tmac: Remove call of psold.tmac.
9397         * tmac/psold.tmac: Comment updated.
9398         * tmac/psnew.tmac: Removed since no longer needed.
9399         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9401         * font/devutf8/R.proto: Adding `shc' glyph.
9402         * font/devutf8/NOTES: Updated.
9404         * test-groff: Updated.
9406 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9408         First cut of the new html device driver.  Changes to pre-html and
9409         the new grohtml are too numerous to be documented here.
9411         Stuff related to `html' has been renamed to `html-old' and `html2'
9412         stuff has been renamed to `html' (including directories).  The new
9413         html device driver is therefore invoked as `-Thtml'.
9415         Added new `\O' escape to suppress output (needed by html driver).
9417         Added functions and code to pass info about input-level commands
9418         (`.in', `.fl', etc.) to html driver.
9420         Three new functions (.html-begin, .html-end, and .html-image) for
9421         better html handling: `html-begin' will execute the remaining line
9422         if at the outermost nesting level, increasing an internal counter.
9423         `html-end' does the same but decreases the internal counter.
9424         `html_image' puts its arguments into a special node (suppress_node)
9425         to define an image region.
9427         The `output' request has been removed.
9429         * tmac/html-tags.tmac: Removed.
9430         * tmac/arkup.tmac: Updated and renamed to ...
9431         * tmac/www.tmac: New file.
9432         * tmac/markup.tmac Updated and renamed to ...
9433         * tmac/mwww.tmac: New file.
9434         * tmac/Makefile.sub: Updated.
9435         * tmac/an-old.tmac: Updated.
9436         * tmac/eqnrc: Updated.
9437         * tmac/groff_man.man
9438         * tmac/groff_markup.man: Updated and renamed to ...
9439         * tmac/groff_mwww.man: New file.
9440         * tmac/groff_tmac.man: Updated.
9441         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9442         * tmac/html.tmac: Updated and renamed from html2.tmac.
9443         * tmac/pspic.tmac: Updated html support.
9444         * tmac/s.tmac: Added html output support.
9445         * tmac/troffrc, tmac/troffrc-end: Updated.
9447         * Makefile.in, doc/Makefile: Updated.
9448         * doc/groff.texinfo: Added info about new `\O' escape.
9449         * doc/homepage.ms: Use `MAILTO' macro.
9451         * font/devhtml/DESC.proto: Add `C' font.
9452         * font/devhtml/Makefile.sub: Updated.
9453         * font/devhtml/R.proto: Minor fixes.
9454         * font/devhtml-old/Makefile.sub: Updated.
9456         * src/devices/grohtml-old/Makefile.sub: Updated.
9458         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9459         method.
9460         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9461         graphic_start): Add `inline' parameter.  Update.
9462         (html_end_suppress, graphic_end): Update.
9464         * src/include/html-strings.h: New file.
9465         * src/include/htmlindicate.h: Comments updated.
9466         * src/include/printer.h: Updated.
9468         * src/preproc/eqn/main.cc (do_file, main): Updated.
9469         * src/preproc/pic/troff.cc (troff_output::start_picture,
9470         troff_output::finish_picture): Updated.
9471         * src/preproc/tbl/main.cc (process_input_file): Updated.
9473         * src/roff/groff/groff.cc (main): Updated.
9474         Pass device arguments to predrivers also.
9475         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9476         * src/roff/troff/env.h (environment): Updated.
9477         New elements `need_eol' and `ignore_next_eol' (for html output).
9478         * src/roff/troff/env.cc (environment::environment): Add initializers
9479         for `need_eol' and `ignore_next_eol'.
9480         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9481         functions.
9482         (point_size, fill, no_fill, center, right_justify, line_length,
9483         indent, temporary_indent, break_request, handle_tab): Use
9484         `add_html_tag()'.
9485         (set_tabs): Use `add_html_tag_tabs()'.
9486         (environment::add_html_tag): Updated.
9487         (environment::do_break): Updated.
9488         * src/roff/troff/div.cc (space_request, flush_output): Use
9489         `environment::add_html_tag()'.
9490         * src/roff/troff/input.cc: Updated.
9491         New variable `html_level' to indicate nested `html-begin' requests.
9492         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9493         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9494         `force_tprint()' method.
9495         (token::next): Handle `\O'.
9496         (do_suppress): Implement it.
9497         (html_begin, html_end, html_image): New functions.
9498         (init_output_requests): Renamed to ...
9499         (init_html_requests): this.
9500         (main): Use it.
9501         (macro::append_str, macro::append_unsigned, macro::append_int): New
9502         methods.
9503         New variable `output_low_mark_miny' to limit minimal value of y.
9504         (reset_output_registers): Use it.
9505         (output_request): Removed.
9506         (get_output_registers): New function.
9507         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9508         (*_node): Added `force_tprint()' if necessary.
9509         (special_node): New elements `tf' and `get_tfont()'.
9510         (suppress_node): New class.
9511         * src/roff/troff/node.cc:
9512         New global variables `image_no' and `suppress_start_page'.
9513         (real_output_file): New method `is_on()'.
9514         (troff_output_file): New method `start_special(tfont)'.
9515         (troff_output_file::really_print_line): Use `tprint' conditionally.
9516         (real_output_file::print_line): Updated.
9517         (real_output_file::on): Updated.
9518         (*_node): Added `force_tprint()'.
9519         (special_node::special_node): Initializer updated.
9520         (special_node::same, special_node::copy, special_node::tprint_start):
9521         Updated.
9522         (get_reg_int, get_reg_str): New functions.
9523         (suppress_node::*): New methods.
9524         New global variables last_position, last_image_filename;
9525         (min): New inline function.
9526         * src/roff/troff/reg.h, src/roff/troff/request.h,
9527         src/roff/troff/troff.h: Updated.
9529 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9531         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9532         documentation of `asciify' request.
9534 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9536         * src/roff/troff/input.cc: Move definition of special characters
9537         like `ESCAPE_TILDE' to ...
9538         * src/roff/troff/input.h: New file.
9539         * src/roff/troff/Makefile.sub (HDRS): Add it.
9541         Extending the .asciify request to `unformat' space characters also.
9543         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9544         to count input space characters.
9545         Update constructors to take care of it.
9546         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9547         `ESCAPE_SPACE' instead of normal space.
9548         (word_space_node::asciify): New method.
9549         (unbreakable_space_node::asciify): New method.
9550         (word_space_node::merge_space): New method.
9551         * src/roff/troff/env.cc (environment::space_newline,
9552         environment::space): Add code to initialize `num_spaces' (using the
9553         constructor of `word_space_node').
9554         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9555         Document it.
9557 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9559         * man/groff_char.man: Use table header traps only conditionally.
9561 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9563         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9565 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9567         Introducing the `box' and `boxa' requests which are similar to
9568         `di' resp. `da' but omitting a partially filled line (which is
9569         restored after ending the diversion).
9571         * src/roff/troff/div.h (diversion): Add elements to save partially
9572         filled line.
9573         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9574         partially filled line.
9575         (divert, divert_append): Updated.
9576         (box, box_append): New functions.
9577         (init_div_requests): Use them.
9578         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9579         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9581         * doc/groff.texinfo: Fix documentation of `lf' request.
9583 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9585         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9587 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9589         Ignore `ss' request if in compatibility mode.
9591         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9592         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9593         * src/roff/troff/env.cc (space_size): Use it.
9595         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9596         `ss' request in nroff mode.
9598         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9599         changes.
9601 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9603         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9605 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9607         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9608         * src/preproc/eqn/neqn.man: Small fixes and additions.
9610 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9612         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9613         Fixing typo.
9615         * src/preproc/eqn/neqn.man: New file.
9617         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9618         negative' warning.
9620         * tmac/e.tmac: Add `T&' macro.
9621         Fix `indent cannot be negative' warning.
9622         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9624 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9626         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9628 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9630         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9631         `alloca' symbol .
9633         * MORE.STUFF: Added info about deroff for djgpp.
9635         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9636         documentation of -rcR switch.
9638 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9640         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9641         if -rcR=1 (which is now the default in nroff mode), a single, very
9642         long page is created instead of multiple pages: All `ne' and `wh'
9643         requests are put into conditionals; a new macro `an-end' is added to
9644         be called with `em'.
9646         Some other minor cleanups.
9648         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9650 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9652         Fixing a bug which prevented hyphenation in words followed
9653         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9655         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9656         Adding possibly_break_line().
9657         * src/roff/troff/env.h (environment): Make possibly_break_line()
9658         public.
9660         Make `\~' usable in .tr request.
9662         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9663         (token): Add stretchable_space().
9664         * src/roff/troff/input.cc (token::next, token::delimiter,
9665         token::description, process_input_stack, do_translate,
9666         add_to_node_list, token::process): Use it.
9667         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9668         for adjusting the space.
9669         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9670         for stretchable space.
9671         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9672         (make_node): Add code for stretchable space.
9673         * src/roff/troff/env.cc (environment::add_char): Use it.
9674         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9675         (get_copy, token::next, transparent_translate, asciify): Use it.
9677         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9678         doc/groff.texinfo: Updated.
9679         * man/groff.man: Small reorderings.
9681 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9683         * NEWS: Fixes.
9684         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9685         option.
9686         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9687         `safer_macro_path' to -M option.
9688         * src/roff/troff/troff.man: Fixes.
9690 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9692         Use safer path (except for config files) if -U isn't specified.  Add
9693         a special macro path (without home and current directory) for config
9694         files.  Add home directory to unsafe path for consistency.  Don't
9695         include the home directory in the font path.
9697         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9698         `macro_path'.
9699         * src/include/macropath.h: Add `config_macrp_path'.
9700         * src/libs/libgroff/fontfile.cc: Fix font path.
9701         * src/roff/troff/input.cc (process_startup_file): Use
9702         `config_macro_path'.
9703         (main): Select unsafe path if -U is given.
9705         * src/preproc/eqn/main.cc (main): Fixing search path for
9706         configuration file.
9707         * src/preproc/eqn/eqn.man: Updated.
9709         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9710         Updated.
9712         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9713         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9714         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9715         src/devices/grotty/grotty.man: Updated.
9717         * Makefile.in: Fix comments.
9719 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9721         * tmac/safer.tmac: Empty file added (again) for compatibility
9722         reasons.
9723         * tmac/Makefile.sub: Updated.
9725 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9727         * src/devices/grodvi/dvi.cc (main),
9728         src/devices/grohtml2/post-html.cc (main),
9729         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9730         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9731         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9732         (main), src/preproc/html2/pre-html.cc (main),
9733         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9734         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9735         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9736         (main), src/utils/hpftodit/hpftodit.cc (main),
9737         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9738         (main), src/utils/lookbib/lookbib.cc (main),
9739         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9740         (main): Use stdout for -v.
9741         * src/roff/groff/groff.cc (run_commands),
9742         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9743         to make direct printing to stdout possible.
9744         * src/roff/groff/pipeline.h: Updated.
9746         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9747         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9748         * src/utils/afmtodit/afmtodit.man: Updated.
9750         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9751         (version): New function.
9752         (usage): Updated.
9753         * src/utils/addftinfo/addftinfo.man: Updated.
9755         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9756         Fixing copyright dates.
9758         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9759         replacing it.
9761         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9762         version_string.
9764         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9766 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9768         In all programs, make -v return immediately with exit status 0 to
9769         be compliant with the GNU standard.
9771         * src/devices/grodvi/dvi.cc (main),
9772         src/devices/grohtml2/post-html.cc (main),
9773         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9774         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9775         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9776         (main), src/preproc/html2/pre-html.cc (main),
9777         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9778         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9779         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9780         (main): Implement it.
9781         * NEWS: Updated.
9783         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9784         and postprocessors to the -v option.
9786         * src/roff/grog/grog.pl: Implement -v.
9787         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9788         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9790         * src/roff/nroff/nroff.sh: Implement -v.
9791         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9792         * src/roff/nroff/nroff.man: Updated.
9793         
9794         * src/preproc/eqn/main.cc (main): Fix comment typo.
9796         * MORE.STUFF: Added info about djgpp port of grap.
9798 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9800         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9801         mode (or rather, implemented non-compatibility mode).
9802         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9804         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9805         replacing it -- we don't find gxditview otherwise.
9806         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9808         * src/preproc/pic/depend: Removed.  Unnecessary.
9810         Implemented dummy keyword `solid' in pic for compatibility with
9811         AT&T pic.
9813         * lex.cc (lookup_keyword): Added `solid'.
9814         * pic.y: Added SOLID with dummy rule.
9815         * pic.cc, pic_tab.h: Regenerated.
9816         * doc/pic.ms: Updated.
9818 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9820         For security reasons, don't use the current directory but the home
9821         directory while searching and scanning troffrc and troffrc-end.
9822         Similarly, replace the current directory with the home directory
9823         in the font path.
9825         * Makefile.in (fontpath, tmacpath): Remove current directory.
9827         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9828         two parameters `add_home' and `add_current'.
9829         (search_path::~search_path, search_path::command_line_dir,
9830         search_path::open_file): Remove tests for `dirs' being zero.
9831         * src/include/searchpath.h: Adjust.
9832         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9833         `safer_macro_path'.
9834         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9836         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9837         * src/roff/troff/input.cc: Use `mac_path', initialized with
9838         `macro_path'.
9839         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9840         * src/roff/troff/env.cc: Use `mac_path'.
9842         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9844         * NEWS, man/roff.man, src/roff/troff/troff.man,
9845         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9846         Updated.
9848 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9850         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9852         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9853         * configure.in: Fix typo in comment.
9854         * configure: Regenerated.
9856         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9857         copyright dates.
9859 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9861         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9863         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9864         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9865         $(systemtmacdir).
9866         Use @libdir@.
9867         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9868         * tmac/Makefile.sub (install_data): Create
9869         $(systemtmacdir) and $(localtmacdir).
9870         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9871         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9872         NEWS, doc/groff.texinfo: Updated and minor fixes.
9874         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9875         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9876         $(systemtmacdir) since the wrapper files are platform-dependent.
9878 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9880         * doc/groff.texinfo: Fix typo.
9882 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9884         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9885           tmac.doc.old -> doc-old.tmac
9886           tmac.an.old  -> an-old.tmac
9888         * tmac/tmac.*: Moved to ...
9889         * tmac/*.tmac: this.
9890         * tmac/man.local: Fix comment.
9891         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9892         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9893         Added some `FILES' sections.  More use of @...@ directives.  Other
9894         minor updates.
9895         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9896         * doc/homepage.ms, doc/groff.texinfo: Updated.
9897         * man/groff.man, man/roff.man: Updated.
9898         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9899         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9900         src/devices/grotty/grotty.man: Updated.
9901         * src/preproc/pic/pic.man: Updated.
9902         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9903         instead of -mdoc.old.
9904         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9905         * src/roff/nroff/nroff.man: Updated.
9906         * NEWS: Updated.
9908         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9910         * tmac/mm.diff: Removed -- it has no use now since the mm package
9911         is part of groff.
9913         * tmac/*: Removed trailing spaces.
9915         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9916         the tmac subdirectory also).
9918         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9919         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9920         stuff since it is no longer needed.
9922         * README, PROBLEMS: Updated.
9924 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9926         Invert current behaviour: Search first FOOBAR.tmac, then
9927         tmac.FOOBAR.
9929         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9930         (open_mac_file, macro_source): Implement it.
9931         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9932         doc/groff.texinfo, NEWS: Document it.
9934         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9935         Small documentation improvements.
9937         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9938         subdirectory also).
9940         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9942 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9944         Add local tmac directory (groff/site-tmac).
9946         * Makefile.in: Add $(localtmacdir).
9947         (uninstall_dirs): Add $(localtmacdir).
9948         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9949         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9950         in $(localtmacdir).  Create $(localtmacdir).
9951         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9952         Updated and minor fixes.
9954         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9956         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9958 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9960         Move hyphen.us to tmac directory.
9962         * src/roff/troff/hyphen.us: Removed.
9963         * src/tmac/hyphen.us: Added.
9964         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9966         Change installation structure for data files from .../groff/... to
9967         .../groff/<version><revision>/... to be conform with other GNU
9968         programs.
9970         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9971         doc/Makefile: Implement it.
9972         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9973         * configure: Updated.
9974         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9975         * NEWS: Document it.
9976         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9977         @MACRODIR@ instead of hard-coded directories.
9979 2000-10-22  Werner LEMBERG  <wl@gnu.org>
9981         Implement $GROFF_BIN_PATH environment variable (which defaults to
9982         $bindir) used for child programs of groff and similar wrappers.
9984         * gendefs.sh: Improve documentation.
9985         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9986         src/preproc/eqn/Makefile.sub (neqn),
9987         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9988         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9989         $GROFF_BIN_PATH.
9990         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9991         $GROFF_PATH__ (the latter for communication with troff).
9992         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9993         set.
9994         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9995         doc/groff.texinfo: Document it.
9997         * doc/groff.texinfo: Improve documentation of troff's -a option.
9999 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10001         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10002         non-intrusive eol marker.
10003         (troff_output_file::determine_line_limits): New function.
10004         (troff_output_file::draw): Use it.
10005         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10006         output_pending_lines() instead of output_line().
10007         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10008         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10009         createImage): Small fixes.
10010         
10011 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10013         Replace tmac.safer with a real secure solution.
10015         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10016         system_request, pipe_output): Disable requests if in safer mode.
10017         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10018         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10019         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10020         doc/groff.texinfo, src/roff/groff/groff.man,
10021         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10023         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10024         (resource_manager::output_prolog): Replace setenv() with putenv().
10026 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10028         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10029         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10030         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10031         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10032         compilation errors with some compilers.  It seems that this code
10033         is no longer necessary -- if yes, it is easy to add some #ifdef's
10034         for that particular old-fashioned compiler.
10036         * MORE.STUFF: Added info about Meta-tbl.
10038         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10040 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10042         Adding a new escape sequence \B'...': If the string between
10043         the delimiters is a valid numeric expression, return the character
10044         `1', and `0' otherwise.  This is an analogon to \A.
10046         * src/roff/troff/input.cc (do_expr_test): Implement it.
10047         (token::next): Use it.
10048         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10050         * tmac/tmac.trace: Made independent from escape character.
10052 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10054         Adding a new request .dei: define indirect.  The first and second
10055         parameter of .dei are taken from string registers instead directly;
10056         this very special request is needed to make tmac.trace independent
10057         from the escape character (which might even be disabled).
10059         * src/roff/troff/input.cc (do_define_macro): Implement it.
10060         (define_macro_indirect): New function.
10061         (init_input_requests): Use it.
10063         Adding two requests .ecs and .ecr: Save and restore the escape
10064         character.  These two requests are needed to make tmac.trace
10065         independent from the escape character (which might even be
10066         disabled).
10068         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10069         Implement it.
10070         (init_input_requests): Use it.
10072         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10074 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10076         Adding a new option -P and new environment variable GROPS_PROLOGUE
10077         to grops, selecting a different prologue file (minor modifications
10078         by WL).
10080         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10081         src/devices/grops/ps.cc (main): Implement it.
10082         * src/devices/grops/grops.man, NEWS: Document it.
10084 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10086         * INSTALL: Add info about selecting paper format.
10088 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10090         * src/roff/troff/input.cc (main): Fixing compiler warning.
10091         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10092         strings.h from the former to the latter.
10093         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10094         stuff from the former to the latter.
10096 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10098         Implementing two new requests .tm1 and .tmc: The former is similar
10099         to .tm but can output leading spaces; its syntax is similar to
10100         defining a string, i.e., a `"' can be used to mark the beginning of
10101         the string to be written to stderr: `.tm1 " test'.  The latter is
10102         similar to .tm1 but doesn't write out a final newline character.
10104         * src/roff/troff/input.cc (terminal1, terminal_continue,
10105         do_terminal): New functions.
10106         (init_input_requests): Use them.
10107         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10109 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10111         * tmac/groff_mdoc.samples.man: Small fixes.
10113 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10115         * tmac/groff_mdoc.man: Fixing typo.
10117 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10119         Implementing a .nop request which does nothing.
10121         * src/roff/troff/input.cc (nop_request): New function.
10122         (init_input_requests): Use it.
10123         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10125 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10127         * doc/groff.texinfo: Added some comments.
10129 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10131         * src/roff/troff/TODO: Updated.
10133 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10135         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10137 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10139         * font/devps/generate/Makefile (SHELL): Define explicitly to
10140         "/bin/sh", for non-Unix platforms.
10141         (extraclean): Use a more portable "" quoting instead of a
10142         backslash (which doesn't work on DOS/Windows).
10143         
10144         * font/devlj4/generate/Makefile (extraclean): Ditto.
10146         * font/devdvi/generate/Makefile (extraclean): Ditto.
10148 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10150         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10151         src/roff/troff/troff.man: Document Eli's latest changes.
10153 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10155         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10156         macro file names of the form NAME.tmac as well as tmac.NAME.
10158 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10160         * src/include/posix.h: Remove definition of FILENAME_MAX.
10162         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10163         `sys_fatal' and `stop' function().
10165         * test-groff: Updated.
10167 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10169         Added the new troff command .output <arg> to suppress output (while
10170         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10171         registers (for passing the output dimensions to the output device).
10173         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10174         parameter.
10175         * src/roff/troff/node.h, src/roff/troff/node.cc
10176         (troff_output_file::really_print_line,
10177         ascii_output_file::really_print_line,
10178         supress_output_file::really_print_line): Use `width' parameter.
10179         (troff_output_file::really_on, troff_output_file::really_off,
10180         output_file::on, output_file::off, real_output_file::on,
10181         real_output_file::off, real_output_file::really_on,
10182         real_output_file::really_off): New functions.
10183         (real_output_file:public output_file): New variable `output_on'.
10184         (real_output_file::begin_page, real_output_file::copy_file,
10185         real_output_file::transparent_char, real_output_file::print_line):
10186         Use it.
10187         (real_output_file::print_line): Use check_output_limits.
10188         * src/roff/troff/reg.h, src/roff/troff/request.h,
10189         src/roff/troff/input.cc (assign_registers): New function to remove
10190         two `goto's.
10191         (do_ps_file): Use it.
10192         (check_output_limits, reset_output_registers, output_request,
10193         init_output_requests): New functions.
10194         (init_input_requests): Updated.
10196         Added new grohtml2 device and html2 preprocessor (coding
10197         not yet finished) which will eventually replace grohtml.
10199         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10200         Updated.
10201         * src/include/htmlindicate.h, src/include/htmlindicate
10202         (html_begin_suppress, html_end_suppress): New functions.
10203         * src/preproc/tbl/main.cc: Use it.
10204         * src/roff/groff/groff.cc: Add support for html2 device (which will
10205         automatically invoke the html2 preprocessor).
10206         * src/roff/troff/input.cc (is_html2): New variable.
10207         * src/roff/troff/troff.h, src/roff/troff/env.h,
10208         src/roff/troff/env.cc (environment::add_html_tag): New function
10209         (uses `is_html2').
10210         (environment::do_break): Use it.
10211         * font/devhtml2/*: New files.
10212         * src/devices/grohtml2: New device.
10213         * src/preproc/html2: New preprocessor.
10214         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10216 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10218         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10220 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10222         * src/include/lib.h: Provide a fix for IRIX to not include
10223         groff-getopt.h.
10225 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10227         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10228         since some non-GNU sed programs can't handle null regexps.
10229         * configure, src/preproc/eqn/Makefile.sub,
10230         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10232         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10233         bug (string.h and strings.h are both needed according to latest
10234         POSIX standard).
10236         * MORE.STUFF: Added info about unroff and troffcvt.
10238 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10240         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10241         used before -ms.
10243         * tmac/tmac.man.old: Remove unused number register.
10245         * tmac.doc: Minor documentation fix.
10247 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10249         * src/roff/groff/pipeline.c (is_system_shell):
10250         Fix typo: "monocased_shell" no longer exists.
10252 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10254         Remove FILENAME_MAX limits.
10256         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10257         that the argument length is less than FILENAME_MAX.
10258         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10259         Use struct hack to allocate and free file name.
10260         (struct xtmpfile_list): fname is now part of the structure,
10261         not a pointer to another string.
10263 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10265         * src/include/posix.h: Add a default value for FILENAME_MAX.
10267 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10269         Add support for new BSD-style man pages (with ".Dd" instead of
10270         ".TH"), so that "groff -man" understands both styles, even
10271         when running "groff -man" on a host whose system man page
10272         macros don't support ".Dd".
10274         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10275         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10276         in case the system man macros don't define Dd or TH.
10278         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10279         * tmac/tmac.an: New one-line file.
10280         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10282 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10284         * src/roff/troff/troff.man: Fixing typos.
10286 Version 1.16.1 released
10287 =======================
10289 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10291         Preparing release 1.16.1.
10293         * REVISION: Revision number set to 1.
10294         * MORE.STUFF: Added info about port to DOS.
10295         * NEWS, win32-diffs: Updated.
10297         * src/include/nonposix.h: Remove first line -- this file is used
10298         in C also.
10300         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10301         link to it.
10303 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10305         * doc/texinfo.tex: Update to latest version.
10307 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10309         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10310         commands that fail.  Don't assume that "export a=b" is valid shell
10311         syntax.  This is needed for Solaris 2.5.1.
10313         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10314         comment about missing Solaris headers.
10316         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10318 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10320         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10321         SET_BINARY().
10323         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10325         * win32-diffs: Updated.
10326         * README.WIN32: Added CRs to make all Windows editors happy.
10328         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10329         src/roff/groff/pipeline.c).
10331 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10333         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10334         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10336 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10338         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10339         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10340         are binary files.
10341         (main): Support non-Posix systems with several different styles of
10342         slash characters in file names.
10344         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10345         (main) [SET_BINARY]: Switch stdin into binary mode.
10347         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10348         (main): Support file names with several possible slash-type
10349         characters, as given by DIR_SEPS[] in nonposix.h.
10350         (main) [__MSDOS__]: If renaming the temporary index file fails
10351         because it has more than one dot in its trunk, replace the dot
10352         with an underscore and try again.
10353         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10354         Newline.
10355         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10357         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10358         (File::File): Open the input file in binary mode.  Strip CR
10359         characters from each CR-LF pair.
10360         (xbasename): Support file names with several possible slash-type
10361         characters, as given by DIR_SEPS[] in nonposix.h.
10363         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10365         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10366         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10367         [!_POSIX_VERSION]: Define for traditional Unix systems.
10368         (real_output_file::real_output_file): Remove the MSVC-specific
10369         call to popen, use instead POPEN_WT, appropriately defined on
10370         nonposix.h.  #include nonposix.h.
10371         (real_output_file::~real_output_file): Remove the MSVC-specific
10372         call to pclose, a suitable macro is now defined on nonposix.h.
10373         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10374         and WEXITSTATUS instead of assuming traditional Unix
10375         interpretation of the status returned by pclose.
10377         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10378         call to popen, use POPEN_RT instead (appropriately defined on
10379         nonposix.h).  #include nonposix.h.
10380         (ps_bbox_request): Open the PostScript file in binary mode.
10381         Close the file after processing it.
10382         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10383         nonposix.h.
10385         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10386         A version of run_pipeline that doesn't use `fork'.
10387         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10388         (system_shell_name, system_shell_dash_c)
10389         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10390         the ugliness of testing DOS/Windows file names for equality, and
10391         support both stock shells and ports of Unix shells.
10393         * src/roff/groff/groff.cc: #include nonposix.h.
10394         (BSHELL): Definition moved to nonposix.h.
10395         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10396         instead of a literal "-c".
10397         (xbasename): Support file names with several possible slash-type
10398         characters, as given by DIR_SEPS[] in nonposix.h.
10399         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10400         of literal strings.
10402         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10403         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10405         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10406         pic_tab.h.
10408         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10410         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10411         eqn_tab.h.
10413         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10415         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10416         P_tmpdir is defined, use it instead of the literal "/tmp".
10417         (remove_tmp_files, add_tmp_file): New functions.
10418         (xtmpfile): Record temporary files and register an atexit function
10419         to delete them explicitly, instead of relying on the OS to do
10420         that, which doesn't work on non-Unix systems.
10422         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10423         (search_path::search_path): Use PATH_SEP instead of a literal
10424         colon.
10425         (search_path::command_line_dir): Ditto.
10426         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10427         to support non-Posix systems.
10429         * src/libs/libbib/search.cc: #include nonposix.h.
10430         (search_list::add_file): Open the file in binary mode.
10432         * src/libs/libbib/linear.cc: #include nonposix.h.
10433         (file_buffer::load): Remove \r characters preceding \n from the
10434         loaded buffer.
10436         * src/libs/libbib/index.cc: #include nonposix.h.
10437         (make_index_search_item): Open index_filename in O_BINARY mode.
10438         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10439         characters before \n characters.
10440         (index_search_item::check_files): Open files in binary mode.
10441         (index_search_item::munge_filename): Support DOS-style file names
10442         with backslashes and drive letters, use IS_ABSOLUTE.
10444         * src/devices/grops/ps.cc: #include nonposix.h.
10445         (main) [SET_BINARY]: Switch stdout to binary mode.
10447         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10448         (main) [SET_BINARY]: Switch stdout to binary mode.
10450         * src/devices/grolbp/lbp.cc: #include nonposix.h
10451         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10453         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10454         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10455         nonposix.h).
10456         (main) [SET_BINARY]: Switch stdout to binary mode.
10457         [_MSC_VER]: Remove an explicit call to _setmode.
10459         * src/include/nonposix.h: New file.
10461         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10462         operation when building with DJGPP.
10463         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10464         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10465         ENVSETUP.
10467         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10468         MS-DOS.
10469         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10470         etc. can include a semi-colon on DOS/Windows.
10471         (depend.temp): Use depend1.temp instead of depend.temp1, to
10472         prevent files from overerwiting each other on 8+3 filesystems.
10474         * gendef.sh (t): Change definition to work with DOS/Windows.
10476         doc/groff.texinfo: Apart of some typo corrections, I also changed
10477         some index entris, to make them more non-ambiguous, and also put
10478         @ignore around some parts that are not yet written, to allow the
10479         Info output be readable.
10481 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10483         Replaced specific checks for function declarations with a generic
10484         routine taken from GNU bfd.
10486         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10487         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10488         * configure.in: Use it.
10489         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10490         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10491         src/roff/groff/groff.cc: Use it.
10492         * Makefile.in, configure: Updated.
10494 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10496         * src/devides/grolbp/lbp.h: Removed unused variables.
10498 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10500         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10501         strncasecmp().
10503 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10505         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10506         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10507         * configure.in: Use it.
10508         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10509         * configure, Makefile.in: Updated.
10511         * configure.in: Add test for strncasecmp().
10512         * src/include/lib.h: Use it.
10514 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10516         * src/preproc/grn/Makefile.sub: Add MLIB.
10518 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10520         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10522 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10524         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10526         * PROBLEMS: Small update.
10528         * src/devices/grolbp/lbp.cc: Various small fixes.
10530 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10532         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10534         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10536 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10538         * man/roff.man: Removed unused macro.
10540 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10542         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10543         This is needed e.g. if you do
10544         `make distclean; ./configure; make dist'.
10546 Version 1.16 released
10547 =====================
10549 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10551         Adding font CWI (constant width italic) to devdvi.
10553         * font/devdvi/CWI: New file.
10554         * font/devdvi/generate/Makefile: Add generating rule.
10555         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10556         tmac/tmac.dvi: Use it.
10557         * NEWS: Announce it.
10559         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10560         * font/devlj4/generate/Makefile: Cosmetic changes only.
10562         * man/groff.man: Removed most of the redundant description of
10563         special characters (which is in groff_char.man).  Added font
10564         translation CB->CR for devdvi.  Other minor fixes.
10566         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10567         (registered) symbols.
10569 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10571         * doc/Makefile: Added rule for creating info files.
10573         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10574         AMS font metrics.
10575         * font/devdvi/generate/Makefile: Fixed dependencies.
10577         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10578         NewCentury Schoolbook!
10579         * font/devps/generate/afmname: Will now run with GNU awk.
10580         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10581         * font/devps/generate/Makefile: Cosmetic changes only.
10583 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10585         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10586         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10587         `.SS' now produces a heading with a smaller size than `.SH'. 
10588         Completely formatted.
10589         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10591         * man/groff.man: Improved table appearance.  Use of `eo' request
10592         to reduce number of doubled backslashes in macro definitions.
10593         Replacing `\e' with `\(rs'.  Other minor fixes.
10595         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10596         to have correct line number.
10598         * INSTALL: Small improvement.
10600 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10602         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10603         WL).
10605 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10607         * man/groff.man: Complete update (with a lot of corrections by WL).
10609 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10611         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10613         * font/*/*: Implement it.
10614         * man/groff_char.man, NEWS: Document it.
10616         * src/include/unix.h: Removed.  It isn't used.
10618         * doc/groff.texinfo: Slight improvements.
10620 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10622         * README, win32-diffs: Small fixes and improvements.
10624 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10626         * FDL: New file (the Free Documentation License version 1.1).
10628         * doc/groff.texinfo: Added many start-up values for gtroff.
10629         Some structural improvements of the source code.
10631 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10633         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10634         * src/roff/troff/troff.man: Added info about troffrc-end.
10636 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10638         * Makefile.in (EXTRADIRS): Fix typos.
10639         (dist): Handle deletion of old .tar.gz file correctly.
10640         (DISTDIRS): Include all tty output devices.
10642         * doc/groff.texinfo: Adding more cross references; countless other
10643         fixes.
10645 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10647         * MORE.STUFF: Added Robert Marks's utilities.
10649 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10651         Added win32 port contributed by Blake McBride
10652         <blake@florida-software.com>.
10654         * README.WIN32, win32-diffs: New files.
10655         * NEWS: Updated.
10657         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10658         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10659         (change): Removed unused variables.
10661         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10662         (savebounds): Changed return value from `int' to `void'.
10663         * src/preproc/grn/hdb.cc: Ditto.
10665         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10666         final backslash in comment to avoid compiler warning.
10668         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10670         * doc/groff.texinfo: More fixes.
10672 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10674         * tmac/tmac.doc: Documentation fix.
10676 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10678         * doc/groff.texinfo: Reading the source code shows up a lot of
10679         omissions and incorrect data...  More conversion to @Deffn macros.
10681 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10683         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10684         dependency.
10686         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10688 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10690         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10691         improvements.
10693         * doc/groff.texinfo: Extended history section.  More conversion to
10694         @Deffn macros.  More .tr documentation.
10696 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10698         * doc/groff.texinfo: Completed tab section.  Added info about
10699         fields.
10701 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10703         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10705 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10707         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10708         LaTeX 2e).
10709         * NEWS: Document it.
10711         * man/troff.man: Minor optical improvements.
10713 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10715         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10717         * font/*/*: Implement it.
10718         * man/groff_char.man, NEWS: Document it.
10720 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10722         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10723         expansion.
10724         * NEWS: Document the three new man pages.
10726         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10727         * configure: Updated.
10729         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10731 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10733         Added grap support to grog.
10735         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10736         * src/roff/grog/grog.man: Document it.
10738         * doc/groff.texinfo, NEWS: Add info about grap support.
10740         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10741         (with slight fixes by me).
10743         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10744         * tmac/Makefile.sub: Add groff_tmac.man.
10745         * man/roff.man: New file giving overview of roff system.
10746         * man/troff.man: A short reference of troff.
10747         * man/Makefile.sub: Add roff.man and troff.man.
10749 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10751         Added grap support to groff.
10753         * src/roff/groff/groff.cc: Implement it.
10754         * src/roff/groff/groff.man: Document it.
10756         * src/devices/grotty/grotty.man: Add cp1047 device.
10757         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10758         Ditto.
10759         * src/roff/groff/groff.man: Ditto.
10760         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10761         * doc/groff.texinfo: Ditto.
10763         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10764         for cp1047.
10766 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10768         * man/groff_char.man: Add `pc' glyph.
10769         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10770         * tmac/tmac.tty: Add `pc' glyph.
10771         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10772         we use cp1047 output device.
10774         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10775         there are still hardcoded latin1->unicode values in utf8's font
10776         definition files.
10777         * configure: Updated.
10778         * NEWS: Minor clarification.  Updated.
10780         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10781         Unix.
10783 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10785         Adding EBCDIC code page 1047.
10787         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10788         font/devcp1047/DESC.proto: New files.
10790         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10791         either ascii/latin1 or cp1047.
10792         * Makefile.in: Use it.
10793         * configure: Updated.
10795         Replacing and/or adding `md' (mathdot) glyph with `pc'
10796         (periodcentered) in all text fonts.
10798         * font/*/*: Change it.
10800 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10802         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10804         * configure.in: Add check for strings.h.
10805         * src/include/driver.h: Use HAVE_STRINGS_H.
10806         * src/devices/grolbp/lpb.cc: Remove string.h.
10808         * src/include/groff-getopt.h: New file.  It will be used instead of
10809         getopt.h (to be included in lib.h) to avoid endless problems with
10810         picky C++ compilers.
10811         * src/include/lib.h: Use groff-getopt.h.
10812         * src/include/Makefile.sub: Updated.
10814         * configure: Updated.
10815         * Makefile.in: Updated.
10817         * NEWS: Mention EBCDIC support.
10819 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10821         * TODO: Some additions.
10823 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10825         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10826         of mso request.
10828 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10830         * src/roff/troff/troff.man: Minor fixes.
10832 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10834         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10835         `.T' string register and the incompatible definition of the `.T'
10836         number register (compared to Unix troff).
10838         * man/groff_char.man: Add some missing characters.
10839         * font/devutf8/NOTES: Update.
10841 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10843         * src/include/htmlindicate.h, src/include/lib.h,
10844         src/include/posix.h: Fix copyright.
10846         * src/include/Makefile.sub: Update.
10848 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10850         * src/roff/troff/input.cc (input_char_description): Removing
10851         superfluous space char.
10853         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10855         * doc/groff.texinfo: Document EBCDIC.
10857 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10859         Introducing `shc' as the glyph name for the soft hyphen character.
10861         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10862         font/devlatin1/R.proto: Use it.
10864         * NEWS: Updated.
10866 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10868         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10869         dependency on ASCII order.
10871 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10873         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10874         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10876         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10877         to increase portability.
10879 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10881         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10882         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10883         the generic `\n' if under OS/390 Unix.
10885         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10887         * configure: Regenerated.
10889 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10891         * doc/groff.texinfo: More conversions to @Deffn.
10893 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10895         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10896         with `:'.
10898         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10900 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10902         * doc/groff.texinfo: More conversions to @Deffn.
10904 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10906         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10907         Updated to latest version (glibc 2.1.3).
10909 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10911         * doc/Makefile (clean): Include more index files.
10912         Add rule texinfo->dvi.
10914 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10916         * doc/groff.texinfo: Added new index `op' for operators.  More
10917         info on end of sentence characters.  More use of @Deffn.
10919 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10921         * */*.man: Adding a note that a whitespace can be inserted between
10922         a command line option and its parameter -- we are using GNU getopt.
10924         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10926 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10928         Correct anachronism of calling the man macro file with `-man'
10929         instead of `-m man' etc.
10931         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10932         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10933         load tmac.<package>.
10935         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10937         * NEWS: Updated.
10939         * doc/groff.texinfo: Updated.
10941         * tmac/groff_man.man: Copyright added.
10943 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10945         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10946         typeset the request resp. escape name with a tt font -- due to a
10947         bug in texinfo.tex it is necessary to use the `-e' switch with
10948         texi2dvi.
10950         Improving info about usage of groff units.
10952         Other minor fixes.
10954 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10956         * doc/groff.texinfo: Added section about man macro package
10957         (I've basically taken groff_man.man).  Introducing new indices `ma'
10958         for macros/strings and `gl' for glyph names.  Other minor fixes.
10960         * tmac/groff_man.man: Fixed some typos.
10962 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10964         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10965         Other minor fixes.
10967         * doc/texinfo.tex: New file.
10969 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10971         * doc/groff.texinfo: Improved section on number registers.  Other
10972         minor updates.
10974 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10976         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10977         synopsis.
10979         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10980         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10981         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10982         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10984         * src/preproc/grn/grn.man: Better synopsis; added copyright.
10986         * src/roff/grog/grog.man: Updated copyright date.
10988 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
10990         * configure.in: Added test for strdup.
10992         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10993         is available.
10995         Replaced dynamic allocation of arrays `[...]' with `new' operator.
10997         Other minor fixes.
10999 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11001         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11003 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11005         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11006         compilers silent.
11007         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11008         * src/include/lib.h: Remove some spaces.
11010 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11012         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11013         initializers from arguments (some compilers don't like this).
11015 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11017         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11018         used by pic and eqn to tell grohtml where the graphic regions start
11019         and end.
11020         * src/libs/libgroff/Makefile.sub: Use it.
11021         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11022         graphic_start() and graphic_end() from htmlindicate.cc.
11024 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11026         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11027         * tmac/groff_man.man: More fixes.
11029 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11031         * doc/Makefile: Added texput.log to the `clean' target.
11032         * doc/groff.texinfo: Added info about delimiters for escapes.
11034 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11036         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11037         other graphic formats.
11039 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11041         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11042         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11043         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11044         files.
11046 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11048         * doc/groff.texinfo: Spelling fixes.
11050 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11052         * tmac/groff_man.man: Completely revised to cover everything in
11053         tmac.an.
11055         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11056         Other minor fixings.
11057         * src/roff/troff/env.cc (environment_copy): Improve error message and
11058         fix itoa->i_to_a.
11059         * src/roff/troff/TODO: Updated.
11061         * doc/Makefile: Bug fixes -- this is still provisional, though...
11063         * tmac/eqnrc: Small fixes.
11065 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11067         Adding a request `evc' to copy environments.
11069         * src/roff/troff/env.cc (environment::copy, environment_copy):
11070         Implement it.
11071         * src/roff/troff/env.h: Add prototype.
11073 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11075         Adding strsep() -- Solaris 8 doesn't have it.
11077         * configure.in: Test it.
11078         * src/devices/grolbp/lbp.cc: Add code.
11080 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11082         * src/roff/troff/div.cc (macro_diversion::output,
11083         top_level_diversion::output): Fixing an incompatibility with
11084         original troff: \x'0' updates the .a register also.  Thanks to
11085         <Andries.Brouwer@cwi.nl> for pointing this out.
11086         * doc/groff.texinfo: Document it.
11088         * Makefile.in: Create Makefile.dep if necessary before calling the
11089         submake process to avoid warning about nonexistent file.
11091         * NEWS, PROJECTS: Updated.
11093 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11095         * tmac/troffrc: Add tmac.lbp.
11097 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11099         * tmac/tmac.lbp: New file.
11100         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11101         command.
11103 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11105         * Makefile.in: Fixing $(subdir).
11107         * README, NEWS: Small fixes.
11109         * test-groff: Adding path to grolbp.
11111         * configure.in: The (new) file src/xditview/Imakefile.in will be
11112         also configured -- it is now possible to build gxditview in a
11113         directory different from $srcdir.
11115 2000-03-02  Blake McBride  <blake@florida-software.com>
11117         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11119         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11121 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11123         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11124         files.
11126 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11128         Adding GNU getopt to the groff distribution.
11130         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11131         New files.
11132         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11133         * aclocal.a4: Remove GROFF_GETOPT function.
11134         * configure.in, Makefile.in, PROBLEMS: Update.
11135         * src/include/lib.h: Replace getopt tests with getopt.h.
11136         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11138         * doc/groff.texinfo: Further checking/updating.  Adding more index
11139         entries.
11141         * man/groff_out.man: Fix nroff mode activation (for emacs).
11142         * man/groff_font.man: Add missing ligature.
11144 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11146         * doc/groff.texinfo: Further checking/updating.  Adding more index
11147         entries.
11149         * src/devices/grolbp/grolbp.man: Added a comment line at the
11150         beginning of the file (similar to shell scripts) which indicates
11151         that `tbl' should be used as a preprocessor.
11153 2000-02-27  Blake McBride  <blake@florida-software.com>
11155         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11156         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11158         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11159         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11160         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11161         src/include/lib.h, src/libs/libgroff/errarg.cc,
11162         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11163         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11164         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11165         src/roff/troff/div.cc, src/roff/troff/env.cc,
11166         src/roff/troff/input.cc, src/roff/troff/node.cc,
11167         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11168         if_to_a() to avoid name clashes.
11169         * src/include/posix.h: Don't use unistd.h.
11170         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11171         clause for integrating non-Unix xtmpfile() code.
11172         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11173         structure; use "rt" for popen() in pipe_source(); add getpid()
11174         dummy function.
11175         * src/roff/troff/node.cc: Use special versions of popen() in
11176         real_output_file() and pclose() in ~real_output_file().
11178 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11180         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11181         LBP-8 series laser printers).  This code has been contributed by
11182         Francisco Andrés Verdú <pandres@dragonet.es>.
11184         * src/devices/grolbp/*: The grolbp output device.
11185         * font/devlpb/*: The font description files.
11186         * Makefile.in: Add grolpb and devlbp subdirectories.
11188         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11189         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11190         typographic fixes.
11192         * doc/groff.texinfo: Further checking/updating.  Adding more index
11193         entries.
11195         * NEWS: Updated.
11197         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11199         * man/groff_font.man: Adding info about obsolete DESC keywords.
11200         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11201         keywords.
11203 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11205         * src/preproc/grn/grn.man: Added info about the gremlin file format
11206         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11208 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11210         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11211         friends to be non-integer.
11213         * src/preproc/grn/grn.man: Document it.
11215         * doc/groff.texinfo: Further checking/updating.  Adding more index
11216         entries.
11218 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11220         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11221         line thicknesses to be integer multiples of this value.
11223         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11224         corresponding code doesn't work (yet).
11226         * doc/groff.texinfo: Further checking/updating.  Adding more index
11227         entries.
11229 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11231         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11232         specify line thickness instead of base units.  The new default
11233         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11234         thick lines respectively.
11236         Removed unused variable `prevval'.
11238         * src/preproc/grn/grn.man: Updated.
11240 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11242         * src/preproc/grn/main.cc: Slight formatting.
11244         * src/roff/groff/groff.man: Formatting fix.
11245         * src/preproc/grn/grn.man: Ditto.
11247         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11249         * doc/groff.texinfo: Further checking/updating.
11251 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11253         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11255         * test-groff: Added grn subdir to path.
11257         * doc/groff.texinfo: Some restructing and other small improvements.
11259         * src/roff/groff/groff.cc (help): Fixed info string.
11261 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11263         * doc/meref.me: Fix description of .GS request.
11265         * src/roff/troff/troff.man: Fixing typo.
11267         Adding the `grn' preprocessor for gremlin graphic files.
11269         * src/preproc/grn/*: This is the Berkeley distribution written by
11270         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11271         Senderowicz and Werner Lemberg.
11273         * doc/grnexampl.{me,g}: A sample for grn.
11275         * Makefile.in: Added subdirectory entry for grn.
11277         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11278         called with the switch `-g'.
11280         * src/roff/groff/groff.man: Updated.
11282         * src/roff/grog/grog.{man,pl,sh}: Updated.
11284         * NEWS: Updated.
11286 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11288         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11289         parametrically polymorphic.
11291         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11292         and the alterations to xtmpfile.
11293         xtmpfile can be requested to return the filename created
11294         and asked not to unlink the temp file.  The default behaviour
11295         if parameters are absent is exactly the same as before.
11297 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11299         A new request `length' is available which returns the length of a
11300         string in a number register:
11302         * src/roff/troff/input.cc (length_macro): Implement it.
11303         * src/roff/troff/input.cc (init_input_requests): Register it.
11305 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11307         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11308         of the `substring' request.
11310         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11311         request.
11313         * src/roff/troff/TODO, NEWS: Updated.
11315 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11317         * src/roff/groff/groff.man: Added an example.
11319 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11321         I've considerably modified the directory structure of the
11322         distribution to get a more vertical layout.  For example, the number
11323         of top level directories has been reduced from 42 to 6.
11325         As a consequence, many changes, especially to the makefiles, were
11326         necessary:
11328         * The makefile variables `top_builddir' and `top_srcdir' have been
11329         introduced.  Virtually all relative paths have been replaced with
11330         absolute ones using these two variables.
11332         * Dependencies (in the files `Makefile.dep') are no longer part of
11333         the distribution.  Instead, they are created during a `make install'
11334         in the build directory.
11336         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11337         make `top_srcdir' and `top_builddir' absolute.
11339         Some other changes:
11341         * Man pages now depend on the files `VERSION' and `REVISION'.
11343         * The added shell script `mkinstalldirs' will replace `mkdir' in
11344         almost all cases.
11346         * VERSION: Version number increased to 1.16.
11348 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11350         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11352         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11353         (after an update of the mm stuff).
11355         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11357 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11359         The .psbb request will now also accept Mac PS images (i.e. using LF
11360         as the EOL character).
11362         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11363         (with slight modifications).
11364         * troff/input.cc (do_ps_file): Use it.
11366         * test-groff: Add grohtml and grolj4 output devices to PATH.
11368 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11370         * NEWS, MORE.STUFF: Updated.
11372 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11374         Add the `srand' command to pic.
11376         * pic/lex.cc, pic/pic.y: Implement it.
11377         * pic/pic.man: Document it.
11378         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11380 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11382         Add a new request `.psbb'.  This does exactly what the external
11383         program psbb did.  It scans a PostScript image file for a
11384         %%BoundingBox comment and extracts the bounding box values (in
11385         PostScript units) which are then stored in the four new (read-only)
11386         number registers `llx', `lly', `urx', and `ury'.
11388         This will allow the usage of the .PSPIC macro without worrying
11389         about unsafe behaviour of groff, i.e., it will work without the
11390         `-U' switch of groff.
11392         * troff/input.cc: Implement it.
11393         * tmac/tmac.pspic: Use it.
11394         * troff/troff.man, grops/grops.man, NEWS: Document it.
11395         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11397         This is bloody C code simply adapted from psbb.c!  Any improvements
11398         welcome.
11400 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11402         * man/groff_font.man: Minor clarifications.
11404         * NEWS: Updated.
11406 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11408         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11410 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11412         * man/groff_font.man: Brought up to date regarding tcommand
11413         extensions.
11414         * libgroff/font.cc: Handle everything after `--' as a comment
11415         in the font files.
11416         * devps/*: Added comment delimiter inside devps font files.
11418 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11420         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11421         \fC...\fP (which now works as expected).
11423         * troff/troff.man: Fix typo.
11425 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11427         Completed the pass_filenames implementation in troff.
11429         * libdriver/input.cc: Will read the new `F' tcommand.
11430         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11431         * troff/input.cc: Use it.
11433 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11435         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11436         font will now be updated even if an invalid font is selected.
11438 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11440         * doc/homepage.ms: Updated for new tmac.arkup.
11442         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11444         * tmac/tmac.arkup: Cleanup.
11446         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11448         Removed obsolete .LINK macro completely.
11450         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11451         will be immediately appended to the second argument (to be used with
11452         punctuation, for example).
11454         Disabled .CDFTP macro temporarily for security reasons.
11456         * tmac/groff_markup.man: Complete revision for latest changes in
11457         tmac.arkup -- note that it does not yet format correctly with
11458         grohtml :-(
11460 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11462         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11463         * devutf8/R.proto: Add mappings for wp, lh, rh.
11464         * devutf8/NOTES: Updated.
11466 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11468         * doc/groff.texinfo: Updated version/copyright info.
11470 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11472         Added support for two new directives in device descriptions:
11473         `pass_filenames' (to pass the input file name to the output device)
11474         and `use_charnames_in_special' (to support e.g. accented characters
11475         in the `X' request).
11477         * include/font.h, troff/charinfo.h: Declare it.
11479         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11481         * devhtml/DESC: Use it.
11483         * troff/input.cc: New function encoded_char.
11485         * troff/token.h: Add test for `specialness'.
11487 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11489         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11490         mistake from the list of files to be installed.
11492 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11494         * README: Added info how to apply patches.
11496 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11498         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11500 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11502         * troff/input.cc: Add support for troffrc-end.
11504         * tbl/main.cc: Altered to issue table-start and table-end special
11505         characters if using the html device.
11507         * devhtml/*: Modified font files to incorporate html encoding of
11508         characters.
11510         * tmac/groff_markup.man: New file documenting tmac.arkup.
11512         * tmac/troffrc-end: New file.  This is invoked after all user
11513         specified macros.  Currently used by the html device to include
11514         tmac.html.  Thus no need for users to specify -mhtml anymore.
11516         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11517         (MAN7): Add groff_markup.man.
11519         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11521         * tmac/troffrc: tmac.arkup will now be called for the html device.
11523         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11524         extra device specific information about fonts.
11526         * doc/homepage.ms: New file.  It is an example how an HTML home page
11527         could look like with grohtml.
11529         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11531 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11533         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11534         of Im, Re.
11536         * devutf8/NOTES: Updated.
11538 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11540         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11541         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11542         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11543         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11544         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11545         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11546         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11547         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11548         warnings.
11550         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11552 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11554         grolj4: Paper size will be searched case-insensitively.
11556         * include/lib.h: Add check for strcasecmp().
11557         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11558         * configure.in: Check for strcasecmp().
11560 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11562         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11563         `REVISION'.
11565 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11567         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11568         revision scheme.
11570         Add a new read-only register, `.Y', which contains the groff
11571         revision.
11573         * troff/input.cc (init_input_requests): Define it.
11574         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11575         * doc/groff.texinfo, troff/troff.man: Document it.
11577         * libgroff/Makefile.sub (version.cc): Add definition of
11578         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11579         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11580         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11581         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11582         troff/input.cc, pfbtops/pfbtops.c: Use it.
11584 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11586         Add a revision scheme to the groff package.
11588         * REVISION: New file.
11589         * libgroff/Makefile.sub (version.cc): Use it to define
11590         `revision_string[]'.
11591         * grops/psrm.cc: Use revision_string (converted to an unsigned
11592         integer) in constructor of resource_manager.
11594 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11596         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11597         files.
11598         * Makefile.in (DEVDIRS): Add devutf8.
11599         * grotty/tty.cc: Include device.h.
11600         (glyph): Change type of `code' to `unsigned int'.
11601         (tty_printer): New field is_utf8.  Constructor takes device argument.
11602         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11603         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11604         (tty_printer::put_char): New function.
11605         (tty_printer::end_page): Use put_char() instead of ::putchar().
11606         (make_printer): Pass device to tty_printer constructor.
11607         * nroff.sh: Determine default device by calling 'locale'.  As a
11608         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11609         Recognize UTF-8 locales.
11610         * tmac/eqnrc: Recognize utf8 like latin1.
11611         * tmac/troffrc: Device utf8 needs tmac.tty.
11613 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11615         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11617 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11619         Add a new predefined writeable number register, `year',
11620         which contains the current year.
11622         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11623         * tmac/tmac.s: Use it.
11624         * troff/input.cc (init_registers): Initialize it.
11626 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11628         * PROBLEMS: Fixed typo.
11630 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11632         * PROBLEMS: Add Y2k advice for the yr number register.
11634 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11636         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11638 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11640         * tmac/tmac.arkup: Slight modification of macros to provide better
11641         appearance for non-HTML formats.
11643 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11645         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11646         does not automatically translate to malloc(n) on all OSes
11647         (e.g., SunOS) so do it explicitly.  Also, check the returned
11648         value.
11650 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11652         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11654         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11655         expects this variable
11657 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11659         * doc/Makefile: Added instructions to create HTML and text
11660         versions of some files.
11662 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11664         * Updated INSTALL.gen.
11666         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11667         better resp. correctly with non-HTML devices.
11669 Version 1.15 released
11670 =====================
11672 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11674         * NEWS, VERSION: Changed to 1.15
11676 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11678         * nroff/nroff.man: -S is safer, not safe.
11680         * groff/groff.cc (main): Use `safer', not `safe', in variable
11681         names.  This does not change the behavior.
11683         * troff/input.cc (main): Likewise.
11685         * nroff/nroff.sh: Likewise.
11687         * troff/input.cc (prepend_string): New function.
11688         (main): Prepend -msafer, so that we check macro libraries for
11689         safety.
11691         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11693 Version 1.14 released
11694 =====================
11696 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11698         * NEWS, VERSION: Changed to 1.14.
11700 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11702         * refer/refer.cc: Fixing the last fix.
11704 Version 1.13 released
11705 =====================
11707 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11709         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11710         number disappear.
11712         * NEWS: Updated.
11714         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11716         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11717         document conventions, the version number must be a real.
11719 Version 1.12.1 released
11720 =======================
11722 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11724         * VERSION: Changed to 1.12.1.
11726 1999-12-22  Alan Rooks  <arooks@istar.ca>
11728         * refer/refer.cc (do_file): Slight modification to satisfy the
11729         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11730         UnixWare 7.1.
11732 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11734         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11735         notices.
11737         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11738         list of unsafe requests.
11740         * pic/pic.man: Fixed a typo.
11742         * man/groff_out.man: Fixed a typo.
11744 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11746         * Makefile.in: Doc fixes.
11748 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11750         * groff/groff.cc: Missing `U' option added to getopt().
11752         * troff/troff.man: Missing `U' option added to synopsis.
11754 Version 1.12 released
11755 =====================
11757 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11759         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11760         to the synopsis.
11762         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11763         with the more appropriate terms `safer' and `unsafe'.
11765         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11766         sys_nerr and sys_errlist[].
11768         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11770         * pic/pic.y, pic/pic.cc: Added check for fmod().
11772 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11774         * VERSION: Changed to 1.12.
11776         Here some patches from various sources; most of them taken from
11777         the Debian distribution.
11779         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11780         tmac/Makefile.sub: New files copied directly from the NetBSD
11781         distribution.  Probably, some additional adaptation later on is
11782         necessary...
11784         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11785         of unsafe requests.
11787         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11788         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11789         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11790         (`-S') is now the default.
11792         * README, NEWS: Updated.
11794 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11796         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11798         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11800 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11802         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11803         grief than relief today.  Additionally, it is against the GNU
11804         coding standards.
11806         * configure: Recreated.
11808 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11810         * configure.in: Added GROFF_LIBM.
11812         * configure: Recreated.
11814         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11815         necessary.
11817         * Makefile.in: Added definition of $(LIBM).
11819         * Makefile.comm (LIBM): Removed.
11821         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11823 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11825         * doc/Makefile: Added rule for generation pic.html.
11827         (clean): Files produced by grohtml will be removed also.
11829         * doc/pic.ms: Small fix.
11831         * tmac/tmac.html: Fixed suppression of headers.
11833 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11835         * tmac/tmac.html: Fixing horizontal arrows.
11837         Turning off hyphenation.
11839         * tmac/tmac.an: Improved support for grohtml; better indentation,
11840         no footers/headers.
11842 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11844         * tmac/tmac.arkup: Added CDFTP macro
11846         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11847         macros.
11849         * tmac/troffrc: Some additions for HTML stuff.
11851 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11853         * tmac/tmac.html: Small changes.
11855 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11857         * doc/groff.texinfo: Minor fixes.
11859 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11861         * devhtml/TR: Changed spacewidth to 3.
11863         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11865         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11867         * tmac/tmac.arkup: New file.
11869         * grohtml/ChangeLog: New file.
11871 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11873         * doc/groff.texinfo (Common Features): Added Copying chapter.
11874         Changed format to @smallbook.
11876 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11878         * NEWS: Added info about groff.texinfo.
11880         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11881         warning messages.
11883 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11885         * groff/groff.man: More updates.
11887 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11889         * doc/groff.texinfo: New file.  This manual is still very
11890         rudimentary.  It has been originally contributed by Trent
11891         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11892         additions by me.
11894         * INSTALL: Added information about the `doc' subdir
11896         * troff/troff.man: Minor fixes.
11898         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11899         reordered options.
11901         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11903         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11904         also, otherwise it is included itself in another call of `make
11905         dist'.
11907         * groff/groff.cc (synopsis): Removed superfluous space.
11909         * PROJECTS, PROBLEMS, NEWS: Updated.
11911         * VERSION: Updated to 1.12beta.
11913         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11915         * README: Updated: Included documentation about CVS repository,
11916         mailing lists, and daily snapshots.
11918         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11920 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11922         * tmac/tmac.an: If the tag didn't fit into the space that the
11923         macro `TP' specifies, the rest of the tag went into the space for
11924         the next line.
11926 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11928         * grolj4/lj4.cc: Added duplex printing (option `-d').
11930         * grolj4/grolj4.man: Document duplex printing.
11932 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11934         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11935         non-GNUish sed programs.
11937         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11938         definition.
11940         * configure.in (LIBS): Added `-lc'
11942         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11944         * pic/tex.cc (solid_arc): Casting M_PI to double.
11946         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11948         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11949         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11950         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11952         * groff/groff_man.man: New file.  This manual page was originally
11953         written for the Debian GNU/Linux system by Susan G. Kleinmann
11954         <sgk@debian.org>.
11956         * eqn/list.cc (list_box::compute_metrics,
11957         list_box::compute_sublist_width): Removed variable declaration to
11958         avoid shadowing warnings.
11960         * grops/psrm.cc (resource_manager::process_file): Ditto.
11962         * tfmtodit/tfmtodit.cc (main): Ditto.
11964         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11965         to avoid shadowing warnings.
11967         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11968         shadowing loop variable.
11970         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11972 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11974         New grohtml frontend to convert groff input to html.
11976         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11978         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11980         * tmac/eqnrc: Added html device.
11982         * tmac/tmac.html: New file.
11984         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11985         (troff_output::start_picture, troff_output::finish_picture),
11986         tbl/main.cc (process_input_file):
11987         Surrounded output with `graphics_start' and `graphics_end' so that
11988         the html driver can identify non-text portions.
11990         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11991         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11992         grotty/tty.ps (tty_printer::set_char): Additional parameter
11993         `name'.
11995         * include/printer.h: Class printer: New function
11996         set_char_and_width; new variables (is_char_named, is_named_set,
11997         named_command, named_char_s, named_char_n) to hold information
11998         about named characters -- needed by the html driver.
12000         * libdriver/printer.cc (printer::set_ascii_char,
12001         printer::set_special_char): Use set_char_and_width.
12003         * devhtml/*: New device files for html driver.
12005         * grohtml/*: New driver grohtml.
12007 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12009         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12010         default strings.
12012 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12014         * libgroff/string.cc (search): Small fix to test against NULL
12015         pointer.
12017 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12019         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12020         \b'abc') were stacked in reverse order when processed in a
12021         diversion.
12023         * troff/node.h: Added `*last' to struct `node' to make the above
12024         fix work.
12026         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12027         The default scale for the 'f' and 't' graphics functions were 'm'
12028         rather than 'u' (i.e., no scaling).
12030 1999-09-11  Peter Miller  <peterm@jna.com.au>
12032         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12033         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12034         defining include paths.
12036         * soelim/soelim.cc (include_path_append): New function.
12038 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12040         * tbl/main.cc (process_options): Unix (at least Documenter's
12041         Workbench) tbl allows arbitrary non-alpha characters between
12042         options.
12044 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12046         Y2k fixes.  Don't assume that the current year precedes 2000.
12048         * doc/meref.me: Add \n(y2, \n(y4.
12050         * tmac/doc-common (Yr): New number register.
12051         (Dd): Don't assume current year precedes 2000.
12053         * tmac/tmac.e (td): Likewise.
12054         (y2, y4): New number registers.
12056         * pic/pic.man: Update reference for pic paper to May, 1991
12057         version.
12059 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12061         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12062         Removed quotation marks which prevented correct expansion of
12063         $(tmac_wrap).
12065         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12067 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12069         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12070         `config.cache'.
12072         * Removed configure.old.
12074 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12076         * VERSION: Updated to 1.11.1
12078 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12080         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12082         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12083         added quotations around $(tmac_wrap) to avoid syntax error if
12084         variable is empty.
12086         * configure: Newly generated using autoconf 2.13.
12088         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12090 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12092         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12093         doc/Makefile. doc/pic.ms, groff/groff.man:
12094         Prepare for 1.11 release.  No code changes.
12095         Documentation for pic added (doc/pic.ms).
12097 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12099         * Version 1.10 released.
12101 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12103         * afmtodit/afmtodit.pl: Avoid comment on first line.
12105 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12107         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12108         * configure.in: Call it.
12110         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12111         (distfiles): Doesn't depend on config.log or config.cache.
12113 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12115         * grog/grog.sh: Use print "" rather than print in END rule.
12117 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12119         * tbl/main.cc (process_data): Don't give error for excess data
12120         entries that are comments.
12122 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12124         * tbl/main.cc (process_data): Fix case where new for-scope rules
12125         silently change meaning of code.
12127 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12129         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12130         of non-zero hyphenation codes.
12132 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12134         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12136 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12138         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12140 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12142         * tmac/tmac.andoc: Make it work in compatibility mode.
12144         * refer/token.h (token_info::is_range_sep): New function.
12145         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12146         * refer/ref.cc (reference::output): More sophisticated check for
12147         multiple pages.
12149         * devps/prologue.ps (MANUAL): New procedure.
12150         * grops/ps.cc (main): New -m option.
12151         (usage): Include -m.
12152         (ps_printer::~ps_printer): Implement -m.
12154         * aclocal.m4 (GROFF_G): New macro.
12155         * configure.in: Call it.
12156         * Makefile.in (g): Provided by configure.
12158         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12160         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12161         translations.
12163         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12164         (tmac_m, tmac_s): Deleted.
12165         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12166         tmac_s_prefix): New variables.
12167         (MDEFINES): Change accordingly.
12168         * Makefile.comm (.man.n): Use new TMAC_* variables.
12169         * configure.in (GROFF_TMAC): Call.
12170         * aclocal.m4 (GROFF_TMAC): Define.
12171         * tmac/Makefile.sub (stamp_wrap): New target.
12172         (install_data, uninstall_sub): Handle macro wrapping.
12174 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12176         * tbl/main.cc (main): Ignore -T option.
12178 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12180         * devlj4/generate/special.map: Add definition of \(nb.
12182         * tmac/tmac.dvi: Add definition of \(nb.
12184         * troff/dictionary.c (dictionary::dictionary): association::v gets
12185         initialized by association::association.
12187         * tmac/Makefile.sub: Avoid using temporary files when installing.
12189         * troff/env.cc (environment::set_font): Make bad font number a
12190         warning.
12192         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12194         * Makefile.in (datadir): Use share rather than lib.
12196         * groff/groff.cc (basename): Rename to xbasename.
12198 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12200         * Makefile (CCLIBS): Don't use.
12201         * Makefile.ccpg: Likewise.
12203         * acgroff.m4: Rename to...
12204         * aclocal.m4: Modify extensively for autoconf 2.
12205         * configure.in: Likewise.
12206         * Makefile.in: Likewise.
12208         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12209         defined.
12210         (xstrsignal): Check for definition of NSIG. Conditionalize
12211         on SYS_SIGLIST_DECLARED.  Make return type const.
12213 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12215         * troff/input.cc (interpolate_macro): Rephrase missing space
12216         warning.
12218 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12220         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12221         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12222         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12223         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12224         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12225         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12226         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12227         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12228         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12229         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12230         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12231         Fix 'for' scoping.
12233 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12235         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12236         string_iterator.
12237         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12238         file.
12239         (macro_iterator::macro_iterator): Add additional argument.
12241 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12243         * troff/div.cc (vertical_size::vertical_size): In place of integer
12244         specifying line spacing use cunits specifying post vertical
12245         space.
12246         (macro_diversion::output, top_level_diversion::output): Likewise.
12247         * troff/div.h: Change declarations accordingly.
12248         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12249         field.
12250         (pending_output_line::pending_output_line,
12251         pending_output_line::output, environment::output,
12252         environment::output_line, environment::output_title,
12253         environment::hyphenate_line):  In place of
12254         integer specifying line spacing use cunits specifying post vertical
12255         space.
12256         (environment::environment): Add post_vertical_spacing and
12257         prev_post_vertical_spacing arguments.
12258         (environment::get_post_vertical_spacing): New function.
12259         (environment::total_post_vertical_spacing): New function.
12260         (environment::post_vertical_spacing): New function.
12261         (init_env_requests): Initialize pvs request and .pvs register.
12262         * troff/env.h: Change declarations.
12264 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12266         * tmac/tmac.pspic: Immediately remove the temporary file.
12268 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12270         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12271         height is specified.
12273 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12275         * tbl/table.c (struct vertical rule, class table_entry): Use int
12276         not short for start_row and end_row.
12278 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12280         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12281         functions.
12282         (diverted_space_node::reread, process_input_stack): Call
12283         trapping_blank_line() rather than blank_line().
12284         (init_input_requests): Bind "blm" to blank_line_macro().
12286         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12288 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12290         * troff/env.cc (environment::possibly_break_line): Require that
12291         width total excluding width of final space node be greater than
12292         the target text length.
12294 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12296         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12298 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12300         * troff/node.cc (charinfo_node): New class.
12301         (glyph_node, composite_node): Derive from charinfo_node.  Change
12302         member functions accordingly.
12304 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12306         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12308 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12310         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12312         * devps/generate/textmap (notsubset): Add.
12314         * tmac/tmac.a4: New file.
12316 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12318         * pic/main.cc (had_parse_error): New variable.
12319         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12320         returns non-zero.
12321         (main): Return 1 if had_parse_error is true.
12323 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12325         * grolj4/lj4.cc (main): Avoid use of strtoul.
12327 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12329         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12330         iso_8859_1 or $LESSCHARSET is latin1.
12332 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12334         * hpftodit: New directory.
12335         * Makefile.in (CCPROGDIRS): Add hpftodit.
12336         * devlj4/generate: New directory.
12338 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12340         * configure.in: Don't use AC_VFORK.
12341         * groff/pipeline.c (run_pipeline): Use fork() always.
12343 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12345         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12347         * Makefile.in (CCPROGDIRS): Add grolj4.
12348         (DEVDIRS): Add devlj4.
12349         * grolj4, devlj4: New directories.
12350         * tmac/troffrc: Handle lj4.
12351         * tmac/tmac.lj4: New file.
12353 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12355         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12357 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12359         * troff/input.cc (do_if_request): At end of second string, switch
12360         environments before getting next token.
12362 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12364         * devps/psstrip.sed: Split rule that strips whitespace on either
12365         side of delimiters.
12367 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12369         * troff/node.h (font_family::make_definition): Add return value to
12370         declaration.  * troff/symbol.h (symbol::operator==,
12371         symbol::operator!=): Likewise.
12373 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12375         * groff/groff.cc (main, help, synopsis): Handle -S.
12376         (possible_command::insert_arg): New function.
12378         * tmac/tmac.safer: New file.
12379         * tmac/msafer.man: New file.
12380         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12382 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12384         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12385         * pic/pic.y (placeless_element): Avoid unsafe operations if
12386         `safer_flag' is set.
12387         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12389 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12391         * eqn/lex.cc (get_token): Put call to add_context() in block to
12392         work around Sun C++ 4.0 bug.
12394         * include/stringclass.h (operator +): Use ?: instead of `if' to
12395         work around Sun C++ 4.0 bug.
12397 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12399         * tbl/main.cc (process_format): Accept - as a synonym for the _
12400         key letter.
12402         * libbib/index.cc (minus_one): Don't declare as const.
12404 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12406         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12408 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12410         * troff/input.cc (write_macro_request): New function.
12411         (init_input_requests): Bind write_macro_request to writem.
12413 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12415         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12416         equation.
12418         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12420         * tmac/tmac.s (@TS): Renamed from TS.
12421         (TS): Call LP then TS again.
12422         (cov*ab-init): Alias @TS to TS.
12424         * tmac/tmac.s: Allow QP or RS to initialize.
12426         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12427         Move initializations of PS and LL here.
12428         (par@init): Don't initialize HY.  Avoid changing environment 0.
12429         (par*env-init): Don't all par@reset.
12431 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12433         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12435 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12437         * Makefile.in (MDEFINES): Add LDFLAGS.
12438         (LDFLAGS): Add definition line.
12440 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12442         * troff/input.cc (get_optional_char): Split off error check into...
12443         (check_missing_character): New function.
12444         * troff/token.h: Declare it.
12445         * troff/env.cc (margin_character): Don't call get_optional_char.
12446         Only call tok.next() after making the node.
12448         * include/lib.h (getopt): Make 2nd argument char *const *.
12450 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12452         * nroff/conftest.sh: Deleted.
12454 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12456         * pic/make-dos-dist: Deleted.
12458 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12460         * devps/psstrip.sed: Strip comments before stripping trailing
12461         white space.
12463 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12465         * Version 1.09 released.
12467 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12469         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12471 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12473         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12475 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12477         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12478         about returning without a value.
12480         * troff/charinfo.h (charinfo::get_special_translation): Cast
12481         TRANSLATE_NONE to int.
12483         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12484         test.  Fix test so that it works with n unsigned.
12486         * pic/pic.y (defaults_table): Fully bracket initializer.
12487         * pic/lex.cc (lookup_keyword): Likewise.
12488         * eqn/lex.cc (token_table, def_table): Likewise.
12489         * eqn/box.cc (param_table): Likewise.
12490         * troff/input.cc (warning_table): Likewise.
12491         * libgroff/font.cc (table): Likewise.
12492         * grops/ps.cc (ps_printer::special): Likewise.
12493         * grops/psrm.cc (resource_manager::process_file): Likewise.
12494         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12495         * refer/command.cc (command_table): Likewise.
12496         * addftinfo/addftinfo.cc (param_table): Likewise.
12498         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12499         about temp's being unused.
12500         (unused): New function.
12502         * groff/pipeline.cc: Declare c_fatal.
12504         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12505         uchar.
12507         * libbib/index.cc (index_search_item::load): Prevent compiler
12508         warnings about fd_closer's being unused.
12509         (unused): New function.
12511 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12513         * troff/input.cc (copy_mode_error): Make `prefix' static.
12514         Fix typo.
12516         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12517         defined.
12518         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12519         HAVE_CC_OSFCN_H and modify accordingly.
12521         * troff/input.cc (init_charset_table): radicalex overlaps
12522         horizontally.
12524         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12525         udodo!hans@relay.NL.net).
12526         * groff/configure.in: Call it.
12528         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12529         * groff/configure.in: Call it.
12530         * include/lib.h: Conditionalize declaration of pclose.
12532         * troff/div.cc (last_page_number): New global variable.
12533         (top_level_diversion::begin_page): Exit if we just printed the
12534         last page.
12535         * troff/div.h (last_page_number): Declare it.
12536         * troff/input.cc (parse_output_page_list): Set last_page_number.
12538         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12539         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12540         tmac/tmac.X: Likewise.
12541         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12542         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12544 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12546         * tmac/doc-ditroff (hK): Remove groff specific code which
12547         prevented page-breaks between separate manual entries.  If this is
12548         the first page, don't set the page number to 1.
12550         * acgroff.m4 (GROFF_POSIX): New macro.
12551         * configure.in: Use it.
12553         * troff/node.cc (class real_output_file,
12554         real_output_file::real_output_file,
12555         real_output_file::~real_output_file): Conditionalize use of
12556         popen/pclose on POPEN_MISSING.
12557         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12558         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12559         (pipe_source): Similarily.
12561         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12563         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12564         presence of declarations by trying to compile example with
12565         conflicting declarations.  (gcc only gives a warning for missing
12566         declarations.)
12568 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12570         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12571         (from Ulrich Lauther).
12573 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12575         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12577 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12579         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12580         pointers and ints have different sizes.
12582 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12584         * tmac/tmac.s (par*env-init): Call par@reset.
12586 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12588         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12589         tag.
12590         (par*push-tag-env, par*pop-tag-env): New macros.
12592 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12594         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12595         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12597         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12598         comment.  Include <time.h>.
12600 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12602         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12603         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12604         lines.
12606 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12608         * troff/input.cc (read_request): Only print a prompt if reading
12609         from the terminal.  Also clearerr on EOF if reading from the
12610         terminal.  Declare isatty.
12612 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12614         * refer/label.y: Rename map_t to map_func and extractor_t to
12615         extractor_func.
12617 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12619         * include/assert.h: Don't use volatile.
12620         * libgroff/assert.cc: Likewise.
12622 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12624         * troff/input.cc (abort_request): Look at character in tok before
12625         calling get_copy().
12627 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12629         * troff/troff.h (NO_RETURN): Deleted.
12630         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12631         * troff/input.cc (exit_troff): Likewise
12633         * Makefile.in: Remove `Making ...' messages since GNU make now
12634         gives these. 
12636         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12638 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12640         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12641         to constant 1 inch.
12643 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12645         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12647 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12649         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12650         MARK_REG if there was no left delimiter.
12652 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12654         * pic/troff.cc (troff_output::text): Set line thickness to
12655         relative before outputting text.
12657         * tmac/tmac.e (@k): Don't zero ?T.
12658         ((z): Likewise.
12660 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12662         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12664 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12666         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12667         Paul Eggert).
12669 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12671         * troff/input.cc (ignoring): New variable.
12672         (ignore): Set ignoring during call to do_define_macro.
12673         (do_define_macro): Clear ignoring before interpolating terminating
12674         macro.
12675         (copy_mode_error): New function.
12676         (get_char_for_escape_name, read_long_escape_name,
12677         interpolate_arg): Use copy_mode_error.
12678         (warning_table): Add WARN_IG.
12679         * troff/troff.h (WARN_IG): Declare.
12680         (WARN_TOTAL): Change accordingly.
12682         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12683         * groff/groff.cc (strsignal): Delete declaration.
12685 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12687         * troff/div.cc (page_offset): Use 'm' as default scaling.
12689 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12691         * nroff/nroff.sh: Ignore -u.
12693 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12695         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12697 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12699         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12700         drawing box.
12701         (B2): With -Tascii, leave additional vertical space before
12702         and after. Ensure that the left and right indent is restored to
12703         what it was even if the point size changes.  Don't call
12704         par@finish. Change the indent, line length and title length
12705         directly.  With -Tascii, make the width of the box 1n less.
12706         (B1): Remember 1n at the current point size.  Don't call
12707         par@reset.  Change the indent, line length and title length
12708         directly.  Ensure that the temporary indent is preserved.
12709         (par*box-mark-top): Turn off no spacing mode.
12711 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12713         * Makefile.in (dist): Use .gz suffix.
12715 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12717         * troff/input.cc (main): Add return 0.
12718         * pic/main.cc (main): Use return instead of exit.
12719         * tbl/main.cc (main): Likewise.
12720         * eqn/main.cc (main): Likewise.
12721         * grops/ps.cc (main): Likewise.
12722         * grotty/tty.cc (main): Likewise.
12723         * groff/groff.cc (main): Likewise.
12724         * grodvi/dvi.cc (main): Likewise.
12725         * refer/refer.cc (main): Likewise.
12726         * indxbib/indxbib.cc (main): Likewise.
12727         * lkbib/lkbib.cc (main): Likewise.
12728         * soelim/soelim.cc (main): Likewise.
12729         * addftinfo/addftinfo.cc (main): Likewise.
12730         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12731         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12733         * troff/token.h (process_input_stack): Don't declare as static.
12734         * troff/input.cc: Likewise.
12736         * troff/node.c (invalidate_fontno): Make it a static member of
12737         class font_family.  Change callers.
12738         * troff/node.c: Change declaration.
12740         * tbl/main.cc (struct input_entry_format): Add explicit public
12741         specifier.
12742         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12743         struct double_hline_stuff): Likewise.
12744         * tbl/table.h (struct entry_format): Likewise.
12745         * pic/object.h (struct saved_state): Likewise.
12747         * include/stringclass.h: Add forward declarations of friend
12748         functions that are later declared as inline.  Don't include inline
12749         specifier in friend declaration.
12751         * libgroff/lib.h: Declare popen and pclose.
12752         * acgroff.m4 (GROFF_POPEN): New macro.
12753         * configure.in: Call it.
12755         * include/lib.h (PI): New constant. Undef first if necessary.
12756         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12757         * grops/ps.cc (degrees, radians): Likewise.
12758         * libgroff/font.cc (font::get_skew): Likewise.
12760         * grops/ps.cc (is_ascii): New function.
12761         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12762         isprint.
12763         (ps_printer::define_encoding): Use csspace.
12764         * libgroff/strtol.c (ISASCII): New macro.
12765         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12766         Use ISASCII rather than isascii.
12767         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12768         * libgroff/cset.cc: Likewise.
12769         * libdriver/input.cc: Include cset.h.
12770         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12771         than isdigit().
12773         * refer/refer.cc (main): Use %ld rather than %d for longs.
12775         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12776         S_ISREG macro.
12778         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12780 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12782         * troff/input.cc (hyphenation_code): Skip white space between
12783         char/code pairs.
12785 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12787         * tbl/table.h (table::entry_list_tailp): New member.
12788         (table::table): Initialize it.
12789         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12790         behaviour.
12792 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12794         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12795         with negative horizontal positions. Remove casts of glyph::hpos to
12796         int.
12797         (USHRT_MAX): Delete definition.
12798         (SHRT_MAX, SHRT_MIN): New definitions.
12799         (glyph::hpos): Change type to short.
12800         (tty_printer::end_page): Output multiple backspaces if necessary.
12801          Remove casts of glyph::hpos to int.
12802         
12803 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12805         * tmac/tmac.s (@RT): New definition.
12807 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12809         * refer/refer.cc (do_file): Make sure current_filename is set when
12810         filename is "-".
12812         * pic/common.cc (common_output::dot_line): Handle zero length
12813         lines.
12815 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12817         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12818         (par@init): Initialize \n[HY].
12820 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12822         * troff/dictionary.cc (dictionary::remove): Continue when
12823         r < j < i.
12825 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12827         * Makefile.com (.y.cc): Avoid ending up with two versions of
12828         $(YTABH).
12830 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12832         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12833         (\(,C): Likewise.  Also fix typo.
12835 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12837         * lib.h: Delete extraneous semi-colon.
12839         * Add pso request: `so' from a pipe.
12840         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12841         (file_iterator::close): New function.
12842         (file_iterator::~file_iterator, file_iterator::next_file): Use
12843         file_iterator::close.
12844         (file_iterator::backtrace): Say `process' rather than `file' when
12845         the stream is popened.
12846         (pipe_source): New function.
12847         (init_input_requests): Bind ".pso" to pipe_source.
12849 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12851         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12853         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12854         digits in lower case.
12856 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12858         * Version 1.08 released.
12860         * Makefile.in (dist): Insert || true after ln -s commands that
12861         might fail.
12863         * mm: Update to mm 1.16.
12865         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12866         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12867         SH_SCRIPT_SED_CMD.
12868         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12869         MDEFINES.
12870         * nroff/Makefile.sub (nroff): New target.
12871         (install_data): Install nroff.
12872         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12873         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12875 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12877         * eqn/Makefile.sub (neqn): Add chmod +x.
12879         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12881 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12883         * troff/input.cc (string_iterator::string_iterator()): Initialize
12884         lineno and count.
12886 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12888         * troff/div.cc (macro_diversion::space,
12889         top_level_diversion::space): Don't set high_water_mark.
12890         (macro_diversion::output, top_level_diversion::output): Don't
12891         include post line space in high water mark.
12893 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12895         * eqn/eqn.y: Don't define YYDEBUG.
12896         * pic/pic.y: Likewise.
12898 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12900         * tmac/tmac.e ([3): Add space after comma following editors.
12901         Change double spaces to single spaces.
12902         ([4): Change double spaces to single spaces.
12904         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12905         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12906         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12907         after %!PS-Adobe- (for Newsprint).
12909         * troff/div.cc (top_level_diversion::begin_page): When
12910         before_first_page is 1, set page_number to 1.
12912 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12914         * eqn/box.cc (box::top_level): Protect equation with \&.
12916 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12918         * groff/groff.cc (possible_command::set_name): Delete old name.
12920         * groff/groff.cc (possible_command::~possible_command): Use
12921         a_delete.
12923         * troff/node.cc (troff_output_file::begun_page): New member.
12924         (troff_output_file::troff_output_file): Initialize it.
12925         (troff_output_file::really_begin_page): Only output V command if a
12926         page has been begun.
12928         * pic/pic.y (placeless_element): Delete argument to PRINT after
12929         use.
12931 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12933         * Make wrapman work.
12934         * troff/div.h (class top_level_diversion): Replace
12935         first_page_begun by before_first_page (with opposite sense).
12936         * Change first_page_begun to before_first_page inverting sense.
12937         * troff/div.cc (class nl_reg): New class.
12938         (init_div_requests): Use class nl_reg for \n(nl.
12939         (top_level_diversion::begin_page): Don't call
12940         output_file::begin_page if before_first_page is 2;
12941         reset before_first_page afterwards.  If have_next_page_number is
12942         false, then always increment page_number.
12943         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12944         Restore compatibility mode after loading, and then disable
12945         compatibility mode in TH.
12947 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12949         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12950         past last line.
12951         * troff/node.h (output_file::trailer): Declare.
12952         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12953         * troff/node.cc (output_file::trailer): New function.
12954         (troff_output_file::~troff_output_file): Move most code into...
12955         (troff_output_file::trailer): New function.
12956         (class troff_output_file): Delete page_length member. Declare
12957         trailer().
12958         (troff_output_file::really_begin_page): Use current page length
12959         for final V command.
12961         * tbl/main.cc (struct options): New decimal_point_char member.
12962         (options::options): Initialize this.
12963         (process_options): Implement decimalpoint option.
12964         (process_data): Pass decimal_point_char option to table::table.
12965         * tbl/table.h (class table): New decimal_point_char member.
12966         (table::table): Add additional argument.
12967         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12968         second argument specifying decimal point character.  Use this
12969         instead of '.'.
12970         (table::table): Initialize decimal_point_char.
12971         (table::add_entry): Change call to find_dot.
12973         * troff/input.cc (get_copy, token::next): Implement \V.
12974         (interpolate_environment_variable): New function.
12976 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12978         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12979         * pic/pic.y: Likewise.
12981         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12982         Add casts to int.
12983         * refer/ref.cc (reference::insert_field, reference::delete_field):
12984         Likewise.
12985         * troff/number.cc (parse_term): Likewise.
12987         * acgroff.m4 (GROFF_PROG_YACC): New macro.
12988         * configure.in: Use GROFF_PROG_YACC.
12990         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12991         and g++.
12992         * Makefile.in (OPTIMIZE): New define.
12993         (DEBUG): Empty by default.
12994         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12996         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12997         (GROFF_ARRAY_DELETE): Likewise.
12998         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13000         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13002         * devps/psstrip.sed: Use different delimiter on last line (so that
13003         it works with BSD 4.4 sed.)
13005 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13007         * devps/psstrip.sed: Delete comments.
13009         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13010         optind, opterr, optarg.
13011         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13012         opterr, optarg.
13014 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13016         * Makefile.in (check): Dummy target.
13018 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13020         * Version 1.07 released.
13022         * Integrate mm 1.11.
13024         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13025         where start_col was meant.
13027 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13029         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13031 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13033         * troff/input.cc (token::next): Make \z\o'...' and similar things
13034         work.
13036         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13037         constants.
13038         (environment): Add margin_character_flags member.
13039         * env.cc (environment::environment(symbol),
13040         environment::environment(const environment *): Initialize
13041         margin_character_flags.
13042         (margin_character): Rewrite.
13043         (environment::output_line): Add a margin character if
13044         margin_character_flags is non-zero.  Turn off the
13045         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13046         zero, use margin_character_node without copying and then set
13047         margin_character_node to 0.
13049         * devps/DESC.in: Change minimum size to 1000.
13051 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13053         * troff/symbol.h (symbol::hash): Change return type to unsigned
13054         long.
13055         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13056         Add casts to int.
13058         * test-groff: Use -r rather than -x.
13060         * grops/psfig.diff: Include in distribution again.
13062 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13064         * Makefile.in (dist): Use gzip.
13066 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13068         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13069         unistd.h as well as in stdlib.h.
13070         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13071         defined; otherwise include <sys/types.h> and <unistd.h> if
13072         UNISTD_H_DECLARES_GETOPT is defined.
13074         * configure.in: use builtin(include, ... rather than include(...
13075         * configure: Regenerate with autoconf 1.3.
13077         * libdriver/print.cc (printer::adjust_arc_center): Use new
13078         algorithm suggested by Andy Fyfe.
13080         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13081         * include/printer.h: Declare this.
13082         * grops/ps.cc (ps_printer::draw): Use it.
13083         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13085 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13087         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13089 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13091         * eqn/main.cc (main): Handle "eqn -".
13093 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13095         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13097         * mm: Integrate version 1.08.
13099         * pic/troff.cc (troff_output::finish_picture): Set
13100         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13101         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13102         if it's not defined. Check whether the register is non-zero rather
13103         than whether it's not defined.
13104         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13106         * indxbib/indxbib.cc: Move all signal handling into...
13107         * indxbib/signal.c: New file.
13108         * configure.in: Call AC_RETSIGTYPE.
13110         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13111         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13112         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13114         * troff/input.cc (token::token, token::operator=): Work round SGI
13115         C++ bug.
13116         * pic/object.cc (position::position): Likewise.
13118 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13120         * pic/pic.h: Move declaration of hypot().
13122 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13124         * pic/pic.h: Declare hypot().
13126         * pic/pic.h: Define M_PI if necessary.
13128 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13130         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13131         `.ta T' feature.
13133         * devps/prologue.ps (RE): Handle the possibility that the old font
13134         doesn't have a FontName entry.
13136 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13138         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13139         (@C): Use @fam not fam.
13141 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13143         * lookbib/lookbib.cc (main): Change type of start to const char *.
13144         * lkbib/lkbib.cc (main): Likewise.
13146         * eqn/lex.cc (definition::definition): Don't use member
13147         initializer syntax for members of anonymous unions.
13149         * troff/input.cc (input_stack::backtrace): Change type of to const
13150         char *.
13152 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13154         * include/stringclass.h (class string): Declare inline friend
13155         functions as inline in class declaration.
13156         * troff/hvunits.h (class hunits, class vunits): Likewise.
13157         * include/refid.h (class reference_id): Likewise
13158         * troff/troff.h (points_to_units(units), scale(units, double)):
13159         Delete declarations.
13160         * libdriver/input.cc (get_char): Delete declaration.
13161         * include/lib.h: Change 2nd argument of getopt from const char **
13162         to char **.
13163         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13164         char **' before assigning to a `const char **'.
13165         * tbl/table.cc: Delete extra declarations of prints().
13167 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13169         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13170         char **' before assigning to a `const char **'.
13172         * libgroff/errarg.cc (errarg::errarg): Don't use member
13173         initializer syntax for members of anonymous unions.
13175 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13177         * mm: Integrate version 1.07.
13179 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13181         * troff/input.c (translate2): Rename to
13182         (translate_no_transparent).
13183         (init_input_requests): Rename tr2 to trnt.
13185 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13187         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13188         (charinfo::set_translation, charinfo::set_special_translation):
13189         Add second argument that specifies value for
13190         transparent_translate.
13191         (charinfo::get_translation, charinfo::get_special_translation):
13192         Add optional second argument that specifies whether translation is
13193         being used for transparent throughput.
13194         * troff/input.cc (charinfo::set_translation,
13195         charinfo::set_special_translation): Handle second argument.
13196         (charinfo::charinfo): Initialize transparent_translate.
13197         (translate): Split main part off into
13198         (do_translate): New function.  Pass argument saying whether
13199         translation applies to transparent throughput.
13200         (translate2): New request.
13201         (init_input_requests): Bind translate2 to `tr2'.
13203 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13205         * tbl/table.h (class table): Add `nokeep' flag.
13206         * tbl/main.cc (process_options): Handle `nokeep' option.
13207         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13208         table::do_bottom): Don't output keep/release macro definitions or
13209         calls when `nokeep' option has been specified.
13211 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13213         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13215 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13217         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13218         block_entry::divert, alphabetic_block_entry::divert): Add extra
13219         argument giving column separation.
13220         (table::compute_widths): Pass column separation to
13221         table_entry::divert().
13222         (block_entry::do_divert): If an entry spans multiple columns and a
13223         minimumum width has been specified for each column, then set the
13224         line length to the sum of the widths (plus possibly the column
13225         separations).
13227         * troff/input.cc (set_escape_char): Don't set the escape_char
13228         until after calling has_arg().
13230 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13232         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13233         case.
13235         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13236         in case where r > nrows - 1.
13238         * tbl/table.cc (BODY_HEIGHT): Deleted.
13239         (LINE_SEP): New definition.
13240         (table::print_single_hline, table::print_double_hline,
13241         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13242         table::do_row, table::do_top): Use LINE_SEP space before a line
13243         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13245         * tbl/table.cc (text_entry::print_contents): New function.
13246         (text_string_name, right_text_string_name): Deleted.
13247         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13248         (simple_text_entry::do_width, numeric_text_entry::do_width,
13249         alphabetic_text_entry::do_width): Don't store the contents of the
13250         entry in a string.
13251         (left_text_entry::simple_print, right_text_entry::simple_print,
13252         center_text_entry::simple_print,
13253         alphabetic_text_entry::simple_print,
13254         numeric_text_entry::simple_print): Print the entry directly
13255         instead of using the stored string.
13257 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13259         * devps/Makefile: Strip PostScript files.
13260         * devps/prologue: Rename to...
13261         * devps/prologue.ps.
13262         * devps/psstrip.sed: New file.
13263         * devps/download: Use .pfa rather than .ps for installed versions
13264         of fonts.
13266 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13268         * troff/env.cc (input_trap): Give a warning if the argument is out
13269         of range.
13271         * troff/env.cc (adjust): Treat negative argument as missing. Round
13272         argument > 5 down to 5.
13274         * troff/env.cc (center, right_justify): Make negative argument zero.
13276         * troff/div.cc (page_offset, vertical_position_traps): Treat
13277         invalid argument as missing.
13278         * troff/env.cc (line_spacing, line_length, title_length, indent,
13279         underline, hyphen_line_max_request, control_char,
13280         no_break_control_char, widow_control_request, adjust, input_trap,
13281         point_size): Likewise.
13282         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13283         constant_space): Likewise.
13284         * troff/input.cc (compatible, shift, warn_request,
13285         set_escape_char): Likewise.
13287         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13288         * tbl/table.cc (table::table): Likewise.
13290         * Makefile.dev (install_dev): depends on $(DEVFILES).
13292 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13294         * devX75, devX75-12, devX100, devX100-12: New directories.
13295         * Makefile.in: Add these to DEVDIRS.
13297         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13298         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13299         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13300         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13301         targets.
13302         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13303         (uninstall): New target.
13304         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13305         uninstall_prog, uninstall_dev): New targets.
13307         * troff/div.cc (return_request): Treat an invalid argument as
13308         missing.
13310 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13312         * tmac/tmac.e ((f): Set up the environment even when there's a
13313         current diversion.  Transperently throughput a call to @N.
13314         (@N): New macro.
13316 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13318         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13319         up to vertical resolution.
13321         * tbl/table.cc (table::do_row): Change row number after printing
13322         stuff list.
13324         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13326 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13328         * Rename CHANGES to NEWS.
13330 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13332         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13334 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13336         * man.ultrix: Removed.
13338 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13340         * Makefile.comm (extraclean): Delete files whose names begin with
13341         `='.
13343         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13344         aligned text.
13346 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13348         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13349         * troff/div.cc (page_length, need_space, space_request): Treat
13350         invalid optional argument as missing.
13351         * troff/env.cc (number_lines): If the first argument is present
13352         but not a number, turn on line numbering, don't change the next
13353         line number and parse the remaining arguments.
13355         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13357 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13359         * eqn/box.h: Change declaration accordingly.
13360         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13361         the specified size was bad but don't give an error.  Check for
13362         overflow.
13363         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13364         * eqn/lex (do_size): Likewise.
13366 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13368         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13369         compatible headers.
13371 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13373         * tbl/table.cc (table::init_output): Improve error message when
13374         table won't fit on one page.
13376 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13378         * pic/troff.cc (troff_output::start_picture): Generate line
13379         containing a horizontal motion equal to the width of the picture.
13381         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13382         using GROFF_COMMAND_PREFIX environment variable.
13384 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13386         * mdate.sh: Use $NF rather than $(NF).
13388 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13390         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13392         * eqn/main.cc (main): Output code to check that geqn was given the
13393         correct -T option.
13395 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13397         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13398         `ln -s ../Makefile .; make; rm -f Makefile'.
13400         * troff/hyphen: Rename to...
13401         * troff/hyphen.us:
13402         * troff/input.cc (main): Delete -H option. Don't call
13403         read_hyphen_file().
13404         * troff/env.cc: Include searchpath.h and macropath.h.
13405         (exception_dictionary): Deleted.
13406         (ht): Deleted.
13407         (read_hyphen_file): Deleted.
13408         (hyphenation_language): New struct.
13409         (class trie, class hyphen_trie): Move declarations up.
13410         (trie_node::~trie_node): Deleted.
13411         (trie::delete_trie_node): New function.
13412         (trie::do_delete): New pure virtual function.
13413         (hyphen_trie::do_delete): New function.
13414         (trie::~trie): New function.
13415         (hyphen_trie::~hyphen_trie): New function.
13416         (trie::clear): No need to chcek that tp is not 0.
13417         (current_language, language_dictionary): New variables.
13418         (hyphen_word): Give an error if no current language.  Use
13419         exceptions dictionary in current language.
13420         (hyphen_trie::read_patterns_file): Find file using macro_path.
13421         Allow comments (starting with %) in patterns file.  Don't make it
13422         a fatal error if the file can't be found.
13423         (hyphenate): Return if no current language.  Get the exceptions
13424         dictionary and the hyphenation patterns from the current language.
13425         (set_hyphenation_language): New variable.
13426         (hyphenation_patterns_file): New function.
13427         (hyphenation_language_reg): New class.
13428         (hyphenation_language_reg::get_string): New function.
13429         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13430         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13431         register.
13432         * groff/groff.cc (main, help, synopsis): Delete -H option.
13433         * include/Makefile.sub: Don't define HYPHENFILE.
13434         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13435         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13436         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13437         hyphenation patterns.
13439 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13441         * eqn/neqn.sh: New file.
13442         * eqn/Makefile.sub: Handle neqn.sh.
13444         * eqn/eqn.h: Declare `nroff' variable.
13445         * eqn/box.cc (param_table): Add `nroff' param.
13446         (nroff): Define it.
13447         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13448         variable.
13449         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13451         * troff/troff.h (WARN_FONT): New warning.
13452         (WARN_TOTAL): Change accordingly.
13453         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13454         (warning_table): Add WARN_FONT.
13455         * troff/node.cc (mount_font_no_translate): Pass argument to
13456         font::load_font.  If this is non-zero, give a warning.
13457         Don't give an error message when accessing a font that has already
13458         been found to be invalid.
13459         * include/font.h (font::load, font::load_font): Add additional
13460         optional argument which suppresses error message if the font is
13461         not found.
13462         * libgroff/font.cc (font::load_font): Handle additional argument.
13463         (font::load): Add additional argument. If this is non-null, set it
13464         to 1 and don't give error message.
13466         * include/printer.h (printer::end_page): Add argument giving
13467         length of page.
13468         * libdriver/input.cc (do_file): Pass this.
13469         * grops/ps.cc (ps_printer::end_page): Add argument.
13470         * grodvi/dvi.cc (dvi_printer::end_page,
13471         draw_dvi_printer::end_page): Add argument.
13472         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13473         columns_per_page members. New member nlines.
13474         (DEFAULT_LINES_PER_PAGE): Deleted.
13475         (tty_printer::tty_printer): Don't compute lines_per_page from
13476         font::paperlength. Don't compute columns_per_page from
13477         font::paperwidth.
13478         (tty_printer::add_char): Don't check horizontal position against
13479         columns_per_page. Grow glyphs vector if neccessary.
13480         (tty_printer::end_page): Add argument giving page_length in units.
13481         Discard lines past end of page.
13483 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13485         * tmac/tmac.tty-char: Fix definition of \(/l.
13487         * tmac/tmac.X: Define \(en.
13489 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13491         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13492         lpq, then use lp rather than lpr.
13494         * tmac/tmac.s (par@reset): Don't call `ad'.
13495         (par*env-init): Call `ad'.
13497 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13499         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13500         date.
13502         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13503         * indxbib/indxbib.cc: Likewise.
13505 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13507         * libgroff/putenv.c: New file.
13508         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13509         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13510         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13511         stdlib.h with AC_HAVE_HEADERS.
13513 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13515         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13516         does not exist.
13518 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13520         * eqn/box.cc (gsize): Make it an int.
13521         (set_gsize): Parse argument handling increment or decrement.
13522         (box::top_level): Convert gsize to a string.
13524         * troff/input.cc (exit_troff): Make buf unsigned char [].
13525         Call to make_temp_iterator casts buf to char*.
13527         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13529         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13530         * Makefile.cpg (depend.temp): Likewise.
13532         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13534         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13536 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13538         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13540 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13542         * Version 1.06 released.
13544         * Integrate mm 1.04.
13546 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13548         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13550 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13552         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13553         ligatures command.
13554         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13555         afmtodit. Regenerate.
13557         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13558         @f back past the current position.
13560         * tmac/tmac.e: Change calls to @R so that comments are not part of
13561         arguments.
13563 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13565         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13567         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13568         check that we can link a call to a function declared in <stdio.h>.
13569         (GROFF_UNISTD_H): New macro.
13570         * configure.in: Call it.
13571         * Makefile.in: Document it.
13572         * include/posix.h: New file.
13573         * troff/troff.h: Don't include <osfcn.h>
13574         * troff/input.cc: Include posix.h.
13575         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13576         osfcn.h.
13577         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13578         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13579         <fcntl.h>.
13580         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13581         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13582         * libbib/search.cc (O_RDONLY): Delete definition.
13583         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13584         Don't include <osfcn.h>.
13586         * acgroff.m4 (GROFF_TIME_T): New macro.
13587         * configure.in: Call it.
13588         * Makefile.in: Document it.
13590         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13591         * configure.in: Call it.
13592         * Makefile.in: Document -DTRADITIONAL_CPP.
13593         * include/ptable.h: Don't include generic.h.
13594         (name2): Define it.
13596         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13597         Afterwards remove [T1 and [T2.
13598         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13599         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13600         (ref*add-T2): Renamed from ref*add-T.
13601         (ref*add-T1): New macro.
13603 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13605         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13607         * libbib/index.cc: Include <fcntl.h>.
13608         (O_RDONLY): Define if necessary.
13609         (make_index_search_item, index_search_item_iterator::get_tag,
13610         index_search_item::check_files): Use O_RDONLY.
13611         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13612         (O_RDONLY): Define if necessary.
13613         (search_list::add_file): Use O_RDONLY.
13614         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13615         <sys/stat.h>.
13616         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13617         (main): Use these.
13619         * libbib/index.cc (S_ISREG): Define it if necessary.
13620         (index_search_item::load): Use S_ISREG.
13622         * include/driver.h: Include <errno.h>.
13624 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13626         * eqn/box.cc (body_height): Increase default value to 85.
13627         (body_depth): Increase default value to 35.
13629 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13631         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13632         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13633         protected from expansion with \E.
13635         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13637         * Makefile (Makefile): New target.
13639         * Makefile.sub (configure, distfiles): New targets.
13641         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13642         construct.
13644 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13646         * eqn/box.cc (param_table): Add body_height and body_depth.
13648         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13650 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13652         * psbb/Makefile.sub: Don't link with libgroff.a.
13654         * acgroff.m4 (GROFF_PUTENV): New macro.
13655         * configure.in: Call GROFF_PUTENV.
13656         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13657         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13658         is defined.
13660         * troff/env.cc (distribute_space): Rename force_forward argument
13661         to force_reverse.  Reverse the list if force_reverse is true.
13663 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13665         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13667         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13668         height or depth to be negative.  Guard against SUP_RAISE quantity
13669         being negative.
13671 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13673         * devps/generate/textmap: Add `an' (arrowhorizex).
13674         * tmac/tmac.ps: \(an overlaps horizontally.
13675         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13677         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13678         * devps/textmap: Add arrowvertex.
13679         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13680         updownarrow delimiters.
13681         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13683         * tbl/table.cc (simple_entry::position_vertically,
13684         block_entry::position_vertically):  For a centered entry, perform
13685         the motion in two stages.
13687         * refer/refer.cc (split_punct): Don't call lookup_token if there
13688         is no token.
13690 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13692         * troff/input.cc (token::next): Delete token_node after copying
13693         token.
13695         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13696         cur_point_size.
13698         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13700         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13702 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13704         * grops/ps.cc (usage): -b option takes an argument.
13706         * devps/prologue (PLG): New procedure.
13707         * grops/ps.cc (main, usage): New -g option.
13708         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13709         length using PLG.
13711 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13713         * include/cset.h: Include <limits.h> if we have it.
13715         * libgroff/illegal.cc: New file.
13716         * include/lib.h (illegal_input_char): Use table.
13717         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13718         * pic/lex.cc (ARG1): Renumber to 14.
13719         * eqn/lex.cc (ARG1): Likewise.
13721         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13722         (eg 1.05.90) correctly.
13724 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13726         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13727         Rename $r and $R registers to $v and $V.
13728         ($r, $R): Initialize to 0.
13729         (@v, @V): New macros.
13730         (sz): Call @v.
13731         (@M): Call @V.
13733         * troff/input.cc (main, usage): Add -R option that says not to
13734         load troffrc.
13735         * eqn/main.cc (main, usage): Rename -n to -R.
13737 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13739         * devps/DESC.in: Leave font positions 5-9 blank.
13740         * devdvi/DESC.in: Likewise.
13742         * grog/grog.pl: Handle `.PS <file' correctly.
13744         * troff/input.cc (input_stack::push): Improve error message when
13745         input stack limit exceeded.
13747 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13749         * refer/refer.cc (main): Fix typo in handling of `a' option.
13751         * refer/refer.cc (do_bib): In state START after a newline remain
13752         in state START.
13754         * groff/groff.sh: Deleted.
13755         * groff/Makefile.sub: Delete handling of groff.sh.
13757         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13758         to determine whether to use \X'ps:...'.
13759         * tmac/troffrc: Set 0p register to 0.
13760         * tmac/tmac.ps: Set 0p register to 1.
13762         * groff/groff.cc: Support -X option. Give warning for -TXps and
13763         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13764         * tmac/troffrc: Support -r.X=1.
13766         * pic/troff.cc (troff_output::dot): Don't test
13767         zero_length_line_flag.
13769 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13771         * include/lib.h: Declare getopt() and friends unless
13772         STDLIB_H_DECLARES_GETOPT is defined.
13774         * doc/chars.tr: Delete.
13775         * man/groff_char.man: New file.
13777 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13779         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13780         user has changed register format.
13782 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13784         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13785         `postpro' command in DESC file.  Get spooler command from `print'
13786         command in DESC file.  Execute spooler command with /bin/sh.
13788         * groff/groff.cc: Split Unix-specific parts into...
13789         * groff/pipeline.c: New file.
13791         * LICENSE: Delete.
13792         * COPYING: New file.
13793         * all files: Update copyright notices.
13795         * Rearrange files.  Redo Makefiles.  Use autoconf.
13797 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13799         * troff/input.c (charinfo_to_node_list): Interpret character
13800         definition with escape_char of `\'.
13802 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13804         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13805         Define INT_DIGITS as big enough for 64-bit integer.
13806         * lib/strtol.c: Don't include lib.h.
13807         * lib/lib.h: Delete ifdef __cplusplus stuff.
13809 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13811         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13812         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13813         get DESC from current directory.
13815 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13817         * tbl/main.c (main): Always reset the line number when reading
13818         from stdin.
13820         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13821         table::define_bottom_macro, table::do_row, table::do_top): Round
13822         vertical spacing up to vertical resolution.
13824 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13826         * ps/ps.h (enum resource_type): Avoid comma at end of
13827         enumerator-list.
13828         * dvi/dvi.c (class dvi_printer): Likewise.
13829         * dvi/tfmtodit.c (gf::load): Likewise.
13830         * refer/label.y (struct expression): Likewise.
13831         * refer/refer.c (class label_processing_state): Likewise.
13832         * refer/indxbib.c (do_file): Likewise.
13833         * troff/troff.c (enum warning_type): Likewise.
13834         * tbl/main.c (process_data): Likewise.
13835         * troff/charinfo.h (class charinfo):
13837 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13839         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13841 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13843         * groff.c: Move to new groff subdirectory.
13844         * groff/Makefile: New file.
13845         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13847         * man/mdate.sh: Use ls -L if supported.
13849         * Consolidate all header files produced by gendef into lib/defs.h.
13850         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13851         Don't include path.h.
13852         * lib/Makefile (path.h): Don't generate.
13853         * troff/input.c: Include defs.h. Don't include config.h.
13854         * troff/Makefile (config.h): Don't generate.
13855         * refer/index.h: Don't include suffix.h.
13856         * refer/index.c: Include defs.h.
13857         * refer/indxbib.c: Include defs.h.
13858         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13859         defs.h.
13860         * refer/Makefile (suffix.h, path.h): Don't generate.
13861         * groff.c: Don't include config.h. Include defs.h.
13862         * Makefile (config.h): Don't generate.
13863         (lib/defs.h): Generate.
13864         (topclean): Remove lib/defs.h.
13866 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13868         * lib/malloc.c, lib/getpagesize.h: Deleted.
13869         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13870         related stuff.
13871         * lib/Makefile: Delete malloc-related stuff.
13872         * lib/new.c: Workaround COOKIE_BUG if necessary.
13874         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13875         needed header files directly.
13876         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13877         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13879 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13881         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13882         argument.
13883         * lib/font (font::load_desc, font::load): Don't split argument of
13884         unknown command.
13885         (font::handle_unknown_font_command): Change type.
13886         * ps/ps.c (ps_font::handle_unknown_font_command,
13887         handle_unknown_desc_command): Change type.
13888         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13890 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13892         * lib/font.h (font::handle_unknown_font_command): Add file and
13893         line arguments.
13894         * lib/font.c (font::handle_unknown_font_command):
13895         * ps/ps.c (ps_font::handle_unknown_font_command):
13896         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13897         lineno arguments.  Use _with_file_and_line functions for error
13898         reporting.
13900         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13901         data member.
13902         * lib/font.c (font::set_unknown_desc_command_handler): New
13903         function.
13904         (font::load_desc): For unknown commands, call
13905         unknown_desc_command_handler if not null.
13906         * lib/font.h (class font): Declare them.
13907         (FONT_COMMAND_HANDLER): New typedef.
13908         * ps/ps.c (handle_unknown_desc_command): New function.
13909         (main): Set bflag if we had a -b option. Call
13910         font::set_unknown_desc_command_handler.
13911         (broken.h): Don't include.
13912         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13913         submake 
13914         * ps/devps/Makefile: Add `broken' command to DESC file using
13915         BROKEN_SPOOLER_FLAGS.
13917         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13919         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13921         * macros/tmac.e (@R, @S): New macros.
13922         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13923         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13924         Declare $H, $[0-9], .. macros with @S.
13925         Declare |0, |1, |2, |3 strings with @S.
13927         * macros/tmac.e (@S): Rename to @U.
13929         * macros/tmac.e (@z): Define @b and bp as empty instead of
13930         deleting them,
13932         * macros/tmac.e (@m): Deleted.
13933         (@h): Don't call @m.
13934         (@z): Don't set @m trap.
13936         * macros/tmac.e ($h, $f): Define |z as empty string.
13938         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13939         (@q): Likewise.
13941         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13942         removing them.
13943         ()f): Likewise for * register.
13945         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13946         argument is missing, don't change $R.  Call sr with three
13947         arguments when initializing.
13949 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13951         * macros/tmac.e (sr): New macro.
13952         Initialize $r and $R using sr.
13954         * macros/tmac.e (,): Delete \*(#[.
13956         * troff/env.c (set_tabs): Read the tab type even if the position
13957         is bad.  Allow the position of the first tab stop to be negative.
13959 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13961         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13962         _POSIX_VERSION.
13963         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13964         rather than -DPATHCONF_MISSING.
13965         * Makefile: Get rid of PATHCONF_MISSING.
13967         * refer/map.c: New file.
13968         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13969         to map_len.
13970         * refer/Makefile: Handle map.c.
13971         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13973 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13975         * Makefile: RANLIB should be `true' if there is no ranlib.
13976         * lib/Makefile (libgroff.a): Simplify.
13977         * driver/Makefile (libdriver.a): Simplify.
13979         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13980         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
13981         defined.
13983 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
13985         * troff/env.c (compare_ranges): Declare as extern "C".
13987         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13989         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13991 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
13993         * pic/troff.c (troff_output::text): Merge in grops_output::text,
13994         but conditionalize use of \X based on \*(.T.
13995         (grops_output::*): Deleted.
13996         * pic/output.h: Delete declaration of make_grops_output.
13997         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
13998         by default. -n sets it to 0.
13999         (usage): Corresponding changes.
14000         * groff.c (main): Don't pass -x or -p to pic.
14001         * groff.sh: Likewise.
14003         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14004         to be non-zero.
14006         * ps/devps/afmtodit: Change calculation of asc_boundary and
14007         desc_boundary.  Make these bounds inclusive.
14008         * ps/devps: Regenerate font files.
14010 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14012         * macros/tmac.latin1: New file.
14013         * macros/tmac.tty-char: Use tmac.latin1.
14014         (tmac.tty-tr): Deleted.
14015         * macros/Makefile: Install tmac.latin1.
14016         * macros/tmac.dvi: Use tmac.latin1.
14017         * macros/troffrc: Translate \[char160] onto no-break space here.
14018         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14020 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14022         * macros/tmac.Xps: Use `do' request.
14024         * macros/tmac.ps: Use `do' request.
14026         * macros/tmac.e (@C): Use `do' request.
14028         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14029         * macros/Makefile: Install tmac.X*.
14031         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14032         * tty/Makefile: Don't install tmac.tty*.
14033         * macros/Makefile: Install tmac.tty*.
14035         * dvi/tmac.dvi: Move to macros.
14036         * dvi/Makefile: Don't install tmac.dvi.
14037         * macros/Makefile: Install tmac.dvi.
14039         * ps/tmac.ps*: Move to macros.
14040         * ps/Makefile: Don't install tmac.ps*.
14041         * macros/Makefile: Install tmac.ps*.
14043         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14044         option.
14045         * macros/eqnrc: Set draw_lines parameter based on device.
14046         * groff.c: Don't pass -D flag to eqn.
14047         * groff.sh: Likewise.
14048         * eqn/main.c: Warn about use of -D.
14050         * troff/input.c (process_startup_file): New function.
14051         (main): Call process_startup_file().
14052         * macros/troffrc: New file.
14053         * macros/Makefile: Install troffrc.
14054         * groff.c (main): Don't pass extra -m option to troff. For a 
14055         pseudo device pass the name of the pseudo device to troff using
14056         -d.
14057         * groff.sh: Likewise.
14058         * groff.c (possible_command::prepend_arg): Deleted.
14060         * troff/input.c (do_request): New function.
14061         (init_input_requests): Bind "do" to do_request.
14063         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14064         load eqnrc from macro directory.
14065         * macros/eqnrc: New file.
14066         * macros/Makefile: Install eqnrc.
14067         * ps/devps/eqnchar: Deleted.
14068         * ps/devps/Makefile: Don't install eqnchar.
14069         * dvi/devdvi/eqnchar: Deleted.
14070         * dvi/devdvi/Makefile: Don't install eqnchar.
14071         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14072         variable optM.
14074         * lib/device.[ch]: New files.
14075         * lib/font.h (font::set_device_name, font::get_device_name):
14076         Deleted.
14077         * lib/fontfile.c: Use device.h.
14078         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14079         * troff/input.c: Delete definition of `device'.
14080         (main): Don't initialize device.
14081         * troff/troff.h: Include device.h rather than declaring device.
14082         * troff/Makefile: No need to handle DEVICE.
14083         * driver/input.c: Include device.h. Don't use
14084         font::{set,get}_device_name.
14085         * groff.c, Makefile: Rename device.h to config.h.
14086         * groff.c: Use library device variable.
14087         * eqn/main.c: Use library device variable.
14088         * eqn/Makefile: No need to handle DEVICE.
14090         * lib/searchpath.[ch]: New files.
14091         * lib/Makefile: Handle searchpath.[ch].
14092         * troff/input.c (open_file, init_dirs): Deleted.
14093         (macro_dirs): Deleted.
14094         (open_mac_file, macro_source): Use class search_path.
14095         (add_string, struct string_list): Move definition.
14096         (main): Change -M option to use macro_path. Delete call to
14097         init_dirs().
14098         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14099         Rewrite to use class search_path.
14100         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14101         * lib/Makefile: fontfile.c depends on searchpath.h.
14102         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14103         MACROPATH.
14104         * lib/macropath.[ch]: New files.
14105         * troff/Makefile: No need to handle MACROPATH.
14107         * troff/input.c: Delete DUMP code.
14108         * lib/fontfile.c, lib/font.h: Delete
14109         font::forget_command_line_font_dirs.
14111         * troff/input.c (push_token): New function.
14112         (handle_first_page_transition): Use push_token().
14113         (process_input_stack): Change handling of a space at the beginning
14114         of the line.
14116 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14118         * troff/input.c (font_dirs): Delete unused variable.
14120         * eqn/lex.c (do_set): Correct error messages.
14122 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14124         * troff/input.c (do_define_string): Allow the string name to be
14125         followed immediately by a tab.
14126         (define_character): Likewise.
14128 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14130         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14131         be negative.
14133         * troff/input.c (input_iterator::is_file): New virtual function.
14134         (file_iterator::is_file): New function.
14135         (input_stack::end_file): New function.
14136         (input_stack::next_file): Handle the situation where there is no
14137         file on the input stack correctly.  Avoid making two passes over
14138         the input stack.
14139         (next_file): Make the filename optional; in this case call
14140         input_stack::end_file().
14142 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14144         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14145         produce a real _ charater when the current font is CW and _
14146         otherwise.
14148         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14149         expression to work around gcc 2.2 bug.
14151 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14153         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14155         * troff/env.c (environment::add_padding): New function.
14156         (environment::add_char): Use add_padding().
14157         (environment::space): Likewise.
14158         (environment::wrap_up_field): Add some padding if there is none
14159         and there's no current tab.
14160         * troff/env.h: Declare environment::add_padding.
14162 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14164         * pic/pic.y: undef fmod and rand before declaring them.
14166 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14168         * troff/input.c (main): If the DESC file specifies a font name of
14169         0, then leave the corresponding font position empty.
14171         * nroff.sh: New file.
14172         * Makefile (install.nobin): Install nroff.sh.
14174         * tty/devlatin1/R.proto: Add ao as synonym for de.
14175         * tty/tmac.tty-char: Define ao as o.
14177         * tty/dev{ascii,latin1}/R.proto: Add aq.
14178         * tty/tmac.tty-char: Delete definition of aq.
14180 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14182         * troff/input.c (init_charset_table): Don't translate 0240.
14183         * ps/tmac.ps: Translate char160 to space.
14184         * dvi/tmac.dvi: Likewise.
14185         * tty/tmac.tty: Likewise.
14187 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14189         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14191         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14192         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14193         \(oe, \(r?, \(r!.
14195         * tty/tmac.tty-char: Add \(ah.
14197         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14198         No need to define \(FM and \(!/. Conditionalize all character
14199         definitions.
14201         * ps/devps/lgreekmap: Add +h, +f, +p.
14203         * ps/tmac.psnew: New file.
14204         * ps/Makefile: Install tmac.psnew.
14206         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14207         character definitions in compatible mode.
14209         * troff/input.c (remove_character): New function.
14210         (init_input_requests): Bind remove_character to "rchar".
14212         * ps/tmac.psold: New file.
14213         * ps/Makefile: Install tmac.psold.
14214         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14215         characters into tmac.psold.  Make these definitions unconditional.
14217         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14219         * ps/tmac.ps: Don't define \('c and \('C.
14221         * ps/devps/textmap: Move Greek characters to...
14222         * ps/devps/symbolchars:
14224 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14226         * ps/devps/text.enc: Add quotesingle.
14227         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14228         * tty/tmac.tty-char: Likewise.
14229         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14230         * dvi/devdvi/texi.map: Add Fn.
14231         * dvi/devdvi/msam.map: Add lz.
14232         * dvi/tmac.dvi: Handle Bq, bq, aq.
14234         * pic/lex.c (get_token): Recognize 'th.
14235         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14237 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14239         * ps/devps/textmap: Move di, mu, +- to...
14240         * ps/devps/symbolchars:
14242         * macros/tmac.s (@XS): Don't call par@reset or fi.
14243         (XA): Call LP. Turn off adjustment. Reduce line length.
14245         * macros/tmac.s: Initially alias XS to LP.
14246         (XS): Rename to @XS.
14247         (cov*ab-init): Alias XS to @XS.
14249 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14251         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14252         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14253         (token::is_size, token::changes_env): Deleted.
14254         * troff/number.c (parse_term): No need to process \s explicitly.
14255         Call tok.next() only after scale indicator has been processed.
14256         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14257         \f etc explicitly.
14258         (token::next): Handle \s, \f, \S, \H immediately rather than
14259         returning them as tokens.
14260         (token::operator==, token::description, token::add_to_node_list,
14261         token::process): Remove handling of deleted tokens.
14263         * troff/env.c (environment::add_char): When adding padding
14264         indicator character, call start_line() if necessary.
14266 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14268         * ps/devps/afmtodit: Don't output 0 kerns.
14270         * ps/devps/afmtodit: Remove directory from name of encoding in
14271         font description file.
14273         * ps/devps/afmtodit: Improve error messages.
14275         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14277         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14278         * ps/devps/FontMakefile: Deleted.
14279         * ps/devps/afmname: New file.
14281         * ps/devps/symbol.sed: New file.
14282         * ps/devps/symbol.diff: Deleted.
14283         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14284         Generate zapfdr.afm from zapfd.afm.
14286         * tty/tmac.tty (tty-char): Prefix definition with ".
14288         * macros/tmac.an (TP): Don't start a diversion if one has already
14289         been started.
14291         * tty/tmac.tty-char: Add Latin-1 characters.
14293         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14295 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14297         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14298         Move declaration of struct horizontal_span.
14300         * tbl/table.c (table::table): Initialize span_list.
14301         (table::~table): Delete span_list.
14303         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14305         * ps/devps/Makefile: Avoid dependency on GNU make.
14307         * ps/tmac.ps: Check that character does not already exist before
14308         defining it.
14310         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14311         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14312         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14313         files.
14315         * tty/tmac.tty-char: New file.
14316         * tty/Makefile: Install tmac.tty-char.
14317         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14318         tmac.tty-char.
14320         * tty/tmac.tty: Fix definition of \(34.
14322         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14323         bracket-drawing characters onto |. Add *o.
14325         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14326         only if current_field.
14328         * troff/dictionary.c (dictionary::lookup): Free old_table after
14329         rehashing. 
14331 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14333         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14334         whose glyphs are identical to glyphs of some Roman character.
14336         * tty/devlatin1/R.proto (bu): Deleted.
14337         * tty/devascii/R.proto (bu): Deleted.
14338         * tty/tmac.tty: Add definition of \(bu.
14340         * eqn/main.c (do_file): Pass FILE as argument.
14341         (main): Automatically load eqnchar.  New options -F and -n.
14342         Pass do_file an opened FILE.
14343         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14344         No need to include font.h.
14345         * groff.sh: Likewise.  Don't need to use - for standard input.
14346         Prefix files with -- if first file starts with -.
14348         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14350         * troff/env.c (environment::possibly_break_line): Don't set line
14351         to 0 across call to output_line().  Don't call output_line() until
14352         after discarding nodes after break.
14354 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14356         * request.h (macro::empty): Declare it.
14357         * input.c (macro::empty): New method.
14358         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14359         macro is empty.
14361 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14363         * troff/env.c (environment::start_field): Decrement space_total
14364         when a space is frozen.
14366 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14368         * macros/tmac.an (R): Delete macro.
14370         * troff/input.c (get_copy, token::next): Support \# (like \" but
14371         newline is ignored).
14373         * troff/input.c (token::next): Fix error message in 'Y' case.
14375 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14377         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14378         a delimiter name.
14380 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14382         * c++test.c: Include <osfcn.h>.
14384         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14385         <errno.h> doesn't.
14387 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14389         * tbl/table.c (table::divide_span): Don't count column separation
14390         if expand was specified.
14392         * tbl/main.c (process_format): Don't ignore width specs in
14393         continued format.  Give warning for changing equal widths or
14394         column separation in continued format.
14395         (process_data): Set column separation, minimum width, equal
14396         columns at end of table.
14398 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14400         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14401         node::add_discretionary_hyphen): Use soft_hyphen_char.
14402         (set_soft_hyphen_char): New function.
14403         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14405         * Makefile (c++tested): Give more helpful message if test fails.
14407 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14409         * troff/input.c (init_charset_table): Translate 0240 to
14410         an unbreakable space.
14412         * troff/token.h (token::hyphen_indicator): New function.
14413         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14414         translation.
14415         * troff/input.c (translate): Allow translation to \%.
14416         * troff/node.c (node::add_char): Handle
14417         TRANSLATE_HYPHEN_INDICATOR.     
14418         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14420         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14421         for \(hy.
14423         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14425 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14427         * groff.c (run_commands): If the last command gets a SIGPIPE send
14428         a SIGPIPE to all children than haven't yet terminated.  When
14429         command terminates, set pid field to -1.
14431 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14433         * groff.c (main): Pass an appropriate -filename option to gxditview.
14435 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14437         * Makefile.bd (install): Remove existing program before copying.
14439         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14440         programs which have Unix counterparts to be installed with
14441         user-specified prefix.
14443         * troff/input.c (exit_troff): Don't check if exit_started.
14444         (exit_request): Don't call exit_troff if exit_started.
14446         * Makefile.bd (install.mm): Rename to install.dwbmm.
14448 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14450         * driver/input.c (do_file): Add missing break for '#' case.
14452 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14454         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14455         then add the boundaries back.
14457         * troff/input.c (exit_troff): Return immediately if already
14458         exiting.
14460         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14461         end macro.
14462         (pg*end-page): If the text has ended and there are no more
14463         footnotes or keeps, exit.
14465         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14467         * troff/input.c (init_charset_table): Make \(rq transparent by
14468         default.
14470         * macros/tmac.an: Define lq and rq strings.
14472         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14474 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14476         * troff/env.c (environment::final_break): New function.
14477         (environment::newline): Set prev_line_interrupted to 2 if
14478         exit_started.
14479         * troff/env.h: Declare environment::final_break.
14480         * troff/input.c (exit_troff): Call environment::final_break()
14481         instead of environment::do_break().
14483         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14484         doesn't already exist.
14485         * macros/man.local: New file.
14486         * macros/tmac.an: Load man.local.
14487         * macros/man.ultrix: New file.
14489 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14491         * troff/input.c (exit_groff): Rename to...
14492         (exit_troff): New function.
14494         * troff/div.c (exit_started, done_end_macro,
14495         seen_last_page_ejector): New global variables.
14496         (began_page_in_end_macro): New static variable.
14497         (exit_flag): Deleted.
14498         (top_level_diversion::top_level_diversion): Initialize
14499         last_page_count.
14500         (top_level_diversion): More elaborate test for whether
14501         cleanup_and_exit() should be called.
14502         Set began_page_in_end_macro if the end macro isn't yet finished.
14503         * troff/div.h (top_level_diversion::last_page_count): New data
14504         member.
14505         (top_level_diversion::set_last_page): New function.
14506         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14507         * troff/env.c (do_break): Zero prev_line_interrupted.
14508         * troff/input.c (exit_flag): Delete declaration.
14509         (LAST_PAGE_EJECTOR): New magic cookie.
14510         (token::next): Handle LAST_PAGE_EJECTOR.
14511         (exit_groff): Set exit_started and done_end_macro instead of
14512         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14513         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14514         another ejection after setting seen_last_page_ejector.
14516 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14518         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14520         * macros/tmac.e (TH): Make sure there's room for the initial
14521         header.
14523         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14524         Set FVS in points rather than units.
14526 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14528         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14529         position of empty slots.
14531 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14533         * ps/devps/S: Fix height and depth of parenrightex.
14534         * ps/devps/symbol.diff: Regenerate.
14536 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14538         * tmac.e (u): Do underlining as in -mgs.
14540 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14542         * tty/tty.c (tty_printer::end_page): If overstriking is
14543         suppressed, still turn overstruck horizontal and vertical lines
14544         into +.
14546         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14547         2.1.
14549         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14551 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14553         * Version 1.05 released.
14555 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14557         * tty/tty.c: Instead of keeping an array of glyphs and then
14558         sorting it, keep a ordered linked list of glyphs for each line.
14560         * driver/driver.h: Include stddef.h.
14562         * tty/tty.c (compare_glyph):
14563         * refer/refer.c (rcompare):
14564         * troff/env.c (compare_ranges): Arguments of qsort comparison
14565         function should be const void *.
14567         * troff/number.c (parse_term):
14568         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14569         switch statement.
14571         * refer/label.y (consider_authors): Don't access variables
14572         constructed under a condition outside that condition: put braces
14573         round for statement containing declaration; redeclare use of same
14574         variable later.
14576         * pic/pic.y (text_expr): Delete production that allows
14577         parenthesised text_expr.
14578         (expr): Allow a conditional_expr to appear in parentheses.
14579         (conditional_expr): Rename to any_expr.
14581         * mm: Install new version 1.01 from jh.
14583         * lib/font.c (font::get_width): Cache scaled widths.
14584         (font::font): Initialize widths_cache.
14585         (font::~font): Destroy widths_cache.
14586         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14588 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14590         * c++test.c, c++test.ref: New files.
14591         * Makefile: Check that the C++ compiler works.
14593         * ps/tmac.pspic (PSPIC): Do a break.
14595         * ps/tmac.ps: Move definition of PSPIC into...
14596         * ps/tmac.pspic: New file.
14597         (PSPIC): Draw box around picture, but make it invisible to grops.
14598         * ps/tmac.ps: Load tmac.pspic.
14599         * ps/Makefile: Install tmac.pspic.
14601 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14603         * lib/font.c (scale_round): If n is negative,
14604         subtract .5 before truncating floating point result.
14606         * lib/fontfile.c: Include <errno.h>.
14608 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14610         * driver/input.c (get_char): Inline. Don't update current_lineno.
14611         Change callers to up date current_lineno if necessary.
14612         Use get_char() instead of getc(current_file).
14614 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14616         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14618 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14620         * tty/tty.c (tmac.tty): Define \(rg as (R).
14622 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14624         * lib/lib.h: New define a_delete.
14625         * Use a_delete instead of delete when deleting an array of objects
14626         without destructors.
14628         * lib/lib.h: Rename adelete to ad_delete.
14629         * Change uses of adelete.
14631 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14633         * eqn/eqn.y: Include lib.h.
14635         * troff/node.c (grow_font_table): Delete old_font_table.
14637         * mm: Install new version from jh.
14639 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14641         * tbl/table.h (format_type): Make global instead of local to class
14642         entry_format.  Prefix enumerators with FORMAT_.
14643         * tbl/table.c, tbl/main.c: Corresponding changes.
14644         * refer/token.h (token_type): Make global.  Prefix enumerators
14645         with TOKEN_.
14646         * refer/token.[ch]: Corresponding changes.
14647         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14649         * troff/div.c (node::set_vertical_size): Don't name argument.
14651 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14653         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14654         * lib/lib.h: Define adelete accordingly.
14655         * pic/object.c (graphic_object::graphic_object):
14656         * tbl/main.c (format::~format):
14657         * tbl/table.c (table::~table):
14658         * refer/ref.c (reference::~reference, reference::merge,
14659         reference::insert_field, reference::delete_field): Use adelete.
14661         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14662         * refer/token.h:
14663         * tbl/table.h: Corresponding changes.
14665         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14666         Ensure total_angle is positive.
14668 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14670         * refer/ref.c (reference::merge, reference::insert_field,
14671         reference::delete_field): Avoid delete[0].
14673         * refer/token.c (init_special_chars): Move calls to cmupper
14674         outside calls to init_two_char_letter to work around bug in gcc
14675         2.0.
14677 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14679         * lib/new.c (operator new): Use __builtin_new for g++.
14681         * pic/object.c (graphic_object::~graphic_object):  Don't use
14682         delete [] on 0.
14684         * pic/object.c (output::compute_scale): Initialize max_width and
14685         max_height.
14687 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14689         * troff/input.c (write_request): Call fflush.
14691         * troff/node.h (class composite_node): Move declaration to node.c
14692         * troff/input.c (charinfo_to_node): Rename to ...
14693         (charinfo_to_node_list): Return node list rather than composite
14694         node.
14695         * troff/node.c (make_composite_node): New function.
14696         (make_node, add_char): Call make_composite_node instead of
14697         charinfo_to_node.
14698         (class composite_node): Add a tfont * member.  Delete font_size
14699         member.
14700         (composite_node::composite_node, composite_node::copy,
14701         composite_node::size): Corresponding changes.
14702         (composite_node::tprint): Provide constant spacing, emboldening
14703         and track kerning as specified in tfont.
14704         (composite_node::width): Change width calculation accordingly.
14705         * troff/env.h (environment::composite): New member.
14706         (environment::is_composite, environment::set_composite): New
14707         functions.
14708         * troff/env.c (environment::environment): Initialize composite.
14709         * troff/input.c (charinfo_to_node): Call
14710         environment::set_composite.
14711         * troff/node.c (make_composite_node, make_glyph_node): Use the
14712         plain version of the tfont if the environment is composite.
14714         * troff/node.c (font_info::get_space_width): Additional argument
14715         giving space_size.  Handle constant space correctly. Scale by
14716         space_size unless constant spaced.
14717         (env_sentence_space_width): New function.
14718         * troff/node.h: Declare it.
14719         * troff/env.h (environment::get_space_size,
14720         environment::get_sentence_space_size,
14721         environment::get_narrow_space_width,
14722         environment::get_half_narrow_space_width): Make inline.
14723         (environment::get_space_width): Make inline.  Just call
14724         env_space_width.
14725         * troff/env.c: Delete definitions for funtions made inline.
14726         (environment::space_newline, environment::space): Use
14727         env_sentence_space_width(). Don't scale by space_size.
14728         * troff/node.h: Move declarations of env*space_width() functions
14729         into env.h.
14731 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14733         * macros/tmac.s (PS): Don't try to set negative indent.
14735 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14737         * pic/pic.y: Fix min function.
14739 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14741         * man/mdate.sh: Clear LANGUAGE.
14743 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14745         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14746         * pic/lex.c: New COMMAND keyword.
14747         * pic/pic.y (print_args, print_arg): New rules.
14748         (placeless_element): Use print_args for PRINT.
14749         New COMMAND element.
14751 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14753         * troff/input.c (terminal): Handle missing argument correctly.
14755         * pic/pic.y (text_expr): New rule.
14757         * pic/pic.y: Implement := operator.
14759 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14761         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14762         mdoc.
14764 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14766         * ps/devps/dingbatsrmap: Include this in the distribution.
14768         * macros/tmac.doc: Replace with new version from 2nd Networking
14769         Release. Fix loading of doc-* files.
14770         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14771         * macros/tmac.doc.old: New file.  Apply fixes that had been
14772         applied to old tmac.doc.
14773         * macros/tmac.andoc: Check that we're running under groff.
14774         * macros/Makefile: Rework.
14776 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14778         * tbl/table.h (format_type): 
14779         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14780         typedef to make these types visible at file scope.
14781         * Makefile: Add NESTED_TYPES configuration option.
14783         * troff/div.c (mark): At the top level use the value of
14784         nl_reg_contents rather than the current vertical position.
14786 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14788         * tty/tty.c: Implement \D for horizontal or vertical lines.
14789         (tty_printer::set_char): Use vec_used+2 as serial number.
14790         Don't allow size of vector to exceed USHRT_MAX-2.
14791         Split off part into...
14792         (tty_printer::add_char): New function.
14793         (tty_printer::draw): New function.
14794         (compare_glyph): Handle equal serial numbers.
14795         (tty_printer::end_page): Handle overstruck characters from \D.
14796         (main, usage): Implement -d option.
14798 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14800         * tbl/main.c (process_format):
14801         * eqn/text.c (split_text):
14802         * troff/input.c (token::next): Use inner block for declarations
14803         with initializers in switch statement.
14805 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14807         * pic/common.c (common_output::dash_line): Cope with zero-length
14808         lines.
14810 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14812         * Version 1.04 released.
14814 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14816         * macros/tmac.an (TH): Define a macro an-init to define variables
14817         based on command line arguments.
14818         (an-header): Call it.
14820 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14822         * Makefile (install.mm): Rename to install.dwbmm.
14824         * Makefile: Integrate mm.
14825         * mm: New directory.
14827 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14829         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14830         <sys/types.h>.
14832         * pic/troff.c (troff_output::simple_spline,
14833         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14834         shadowing parameter.
14836         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14838         * lib/ptable.h: Add explicit casts when converting from unsigned
14839         long to unsigned.
14841         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14842         * dvi/devdvi/Makefile: Install SA, SB.
14844         * refer/indxbib.c: Add declaration of mktemp.
14846         * refer/lookbib.c: Add declaration of isatty.
14848 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14850         * pic/lex.c (interpolate_macro_with_args):  While collecting
14851         arguments, keep track of whether we're in a string.
14853 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14855         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14856         down with \v, so as to avoid problems with top of page trap
14857         setting no space mode.
14859 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14861         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14863 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14865         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14866         Improve error message.
14868 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14870         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14871         printf("%03o");
14873 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14875         * groff.c (possible_command::execp): Always use _exit() after a
14876         failed exec.
14878         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14879         NO_SYS_WAIT_H   configuration options.
14880         * groff.c: Use these options.  Use POSIX-style macros to extract
14881         fields from the status returned by wait().
14883 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14885         * tbl/table.c (table::compute_separation_factor): Allow the
14886         separation factor to drop to 0.
14888 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14890         * refer/search.c: Include <errno.h>.
14892 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14894         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14896         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14897         C++. 
14899         * pic/lex.c (input_stack::bol): Move definition out of class body.
14901         * pic/main.c: On MSDOS munge argv[0].
14903         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14905         * lib/ptable.c (hash_string): Use unsigned long rather than
14906         unsigned.
14907         (next_ptable_size): Use unsigned rather than int.  Give an error
14908         message if we've hit the largest table size.
14909         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14910         table size.
14912         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14913         flags as const unisgned long rather than as enums.
14915         * pic/output.c: Deleted.
14917         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14919         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14920         Add additional argument.
14921         (line_entry::note_double_vrule_on_{left,right}): Set value of
14922         douvle_vrule_on_{right,left} flag according to argument.
14923         (simple_line_entry::simple_print,
14924         simple_line_entry::double_line_print): If adjacent to double vrule
14925         on a corner extend rather than shorten the rule by half the double
14926         vrule sep.
14928         * troff/number.c (parse_term): In checking for overflow, handle the
14929         case where the current horizontal position is negative.
14931 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14933         * pic/object.c (draw_arrow): Check for object having zero length.
14935 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14937         * eqn/main.c (do_file): Split off inline equation handling into...
14938         (inline_equation): New function.  Search for starting delimiter
14939         using...
14940         (delim_search): New function. Don't recognize a delimiter that
14941         occurs in the name of an escape sequence, number register, string
14942         etc.
14944 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14946         * eqn/delim.c (delim_box::compute_metrics): Don't call
14947         define_extensible_string if left is 0.
14948         (delim_box::output):  Don't print the left delimiter if left is 0.
14949         (delim_box::debug_print): Check for left == 0 before calling printf.
14951 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14953         * troff/Makefile (majorminor.c): Include only digits in
14954         minor_version.
14956 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14958         * refer/dirnamemax.c: new file.
14959         * refer/genlimits.c: Deleted.
14960         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14961         Don't check path length.
14962         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14963         * Makefile: Add PATHCONF_MISSING option.
14965         * refer/indxbib.c (get_cwd): New function.
14966         (main): Use get_cwd().
14967         * lib/getcwd.c: New file.
14968         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14969         GETCWD in SUBFLAGS.
14970         * lib/Makefile: Compile getcwd.o.
14972         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14973         userdict.
14975         * refer/indxbib.c (main): Check success of mktemp.
14977         * lib/tmpfile.c: New file.
14978         * lib/Makefile: Add tmpfile.c.
14979         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14980         * ps/ps.h: Delete declaration of mktemp().
14981         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14982         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14983         * driver/driver.h: No need now to include errno.h.
14985         * everywhere: Set errno to 0 before calling fopen().
14987         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14988         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14989         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14991 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
14993         * troff/env.h (translate_space_to_dummy): Declare it.
14994         * troff/env.c (environment::space_newline, environment::space):
14995         If translate_space_to_dummy is set then make the width of spaces 0.
14996         * troff/input.c (translate): If the second character of a
14997         translation is a space, translate to unbreakable space.  If the
14998         first character is a space, set or clear translate_space_to_dummy
14999         according to whether the second character is \&.  Weird!
15001 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15003         * groff.c (run_commands): Don't use non-zero exit code because a
15004         command gets SIGPIPE.
15006         * groff.c, groff.sh: Use -mXps with -TXps.
15008         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15009         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15010         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15011         (ps_printer::special): New specials invis and endinvis.
15012         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15013         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15014         (ps_printer::end_page): Check that invis_count == 0.
15015         (ps_printer::invis_count): New member.
15016         (ps_printer::ps_printer): Initialize invis_count to 0.
15018         * troff/env.c (environment::hyphenate_line): Hyphenation
15019         indicator at beginning of word inhibits splitting after -, \(em
15020         etc.
15022         * pic/pic.y (element): Allow another element to follow } without
15023         any intervening separator.
15025 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15027         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15029 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15031         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15032         declaration of wait() in header files.
15033         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15035         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15037         * lib/lib.h: Declare return type of strerror as char *.
15039         * man/Makefile: Add g flag to sed substitutions.
15040         * Makefile (shgroff, bindist): Likewise.
15042 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15044         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15045         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15046         userdict.
15048 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15050         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15051         userdict.
15053 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15055         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15056         group.
15058 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15060         * troff/input.c (define_number_reg):  If currently undefined,
15061         don't define it if the argument is an invalid expression.
15063         * Makefile: Ignore return value of `if' commands without `else'
15064         parts.
15066         * Makefile: Split up CPPDEFINES into a series of separate
15067         configuration options.
15069         * troff/input.c (init_registers): Use time_t instead of long
15070         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15071         than passing pointer.
15072         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15074         * lib/Makefile (fontpath.h): Use gendef.
15076 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15078         * troff/input.c (input_iterator::shift): Delete argument name.
15079         * troff/node.c (suppress_output_file::really_begin_page,
15080         suppress_output_file::really_transparent_char, node::ascii_print,
15081         node::tprint): Delete names of unused arguments.
15083 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15085         * refer/label.y (string):  Pass $4 to command_error.
15087 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15089         * Version 1.03 released.
15091 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15093         * Makefile: Pass definition of SHELL in SUBFLAGS.
15095         * gendef: New file.
15096         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15097         ps/Makefile: Use gendef to construct header files that are
15098         constructed from the Makefile.
15100         * macros/Makefile: make all should build stripped version of tmac.e.
15102         * refer/Makefile (clean): Remove y.output.
15104 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15106         * ps/pfbtops.c (main): Add -v option which prints out a version
15107         number.
15108         * ps/Makefile (pfbtops): Link with libgroff.a.
15110 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15112         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15113         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15115         * refer/lkbib.c (main): Always terminate reference with blank
15116         line.
15117         * refer/lookbib.c (main): Likewise.
15119         * refer/linear.c (file_buffer::load): Check that the file is not a
15120         binary file.
15122         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15123         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15124         Delete second inclusion of <sys/param.h>.
15126 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15128         * troff/token.h (token::special): Deleted.
15130         * tbl/main.c (process_format): Rework so that opt->tab_char is
15131         recognized only when appropriate.
15133         * ps/Makefile (clean): Remove pfbtops.
15135 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15137         * lib/font.c (text_file::next): Don't return if we have got a
15138         blank line.
15140 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15142         * refer/refer.c (store_reference): Get hash code from old_table[i]
15143         when rehashing the table.
15145 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15147         * eqn/box.c (box::top_level): Save size and prev size using \R and
15148         restore it afterwards. Set the size to the size at the beginning
15149         of the line.
15150         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15151         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15153         * refer/Makefile (limits.h): Use ./genlimits.
15155 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15157         * refer/index.c: Delete declarations of stat() and fstat().
15159 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15161         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15163 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15165         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15167 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15169         * troff/input.c (token::get_char): Handle \e.
15171         * refer/linear.c: Delete declarations of fstat() and stat().
15173 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15175         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15176         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15178 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15180         * troff/input.c (do_define_macro): Improve error handling for end
15181         of file while defining macro.
15183 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15185         * eqn/box.h: Fix declaration of set_gsize.
15186         * eqn/box.c (set_gsize): Make argument const char *.
15187         (gsize): Declare as char *.
15188         * eqn/main.c (main): Don't convert gsize to int.
15189         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15191         * Version 1.02 released.
15193 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15195         * macros/tmac.andoc: New file.
15196         * macros/Makefile: Install tmac.andoc.
15198         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15199         operator new and delete on OP_DELETE_BROKEN not being defined.
15200         * Makefile: Mention OP_DELETE_BROKEN.
15202 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15204         * Makefile (bindist): Pass SUBFLAGS.
15206 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15208         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15210         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15211         parameter.
15213         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15215         * ps/ps.h, ps/psrm.c: Make comment_table and
15216         header_comment_table local to resource_manager::process_file.
15218         * groff.sh: With -TXps pass -printCommand option to gxditview.
15220         * groff.c (possible_command::print): Implement using
15221         append_arg_to_string.
15223         * xditview: Merge in new implementation with own ChangeLog.
15225 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15227         * groff.c (main): Implement PRINT_OPTION.
15228         (append_arg_to_string): New command.
15229         (device_table): Set PRINT_OPTION flag for Xps.
15231 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15233         * troff/groff.h: Rename to troff.h.
15235         * pic/lex.c (lookup_keyword, docmp): New functions.
15236         (get_token): Use new lookup_keyword.
15237         Don't include key.h.
15238         * pic/key.[ch], pic/pic.gperf: Deleted.
15239         * pic/Makefile: Remove gperf stuff.
15241         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15242         into output.h.
15243         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15245         * troff/Makefile, troff/node.c: Move definition of
15246         STORE_WIDTH into node.c.
15248         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15250 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15252         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15253         dvi/devdvi/texb.map: Add lq and rq.
15254         dvi/devdvi: Regenerate fonts.
15255         * ps/devps/textmap: Add lq and rq.
15256         * ps/devps: Regenerate fonts.
15257         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15258         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15260         * pic/object.c (position_rectangle): When checking radius
15261         cope with possiblity that width or height is negative.
15262         (box_object::box_object): Have separate xrad and yrad with
15263         signs matching signs of dim components.
15264         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15265         (box_object::print): With rounded boxes use absolute values
15266         for dim and rad arguments.
15268         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15269         in fontpath.h.
15271         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15273         * various files: Add explicit destructors to keep Saber CC +d
15274         happy.
15276 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15278         * eqn/box.c (box::top_level): Restore fonts correctly after
15279         font changes in line containing inline equation.  Also
15280         restore previous font as well as current font.
15281         * eqn/pbox.h: Define necessary string and register names.
15283         * troff/input.c (token::next): Case 'R' calls do_register.
15284         (do_register): New function.
15286 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15288         * groff.c, groff.sh: Support Xps device.  Allow each device
15289         to have a pseudo_name and a real_name.
15291         * groff.c (run_commands): Don't print `Broken pipe' messages.
15293         * ps/pfbtops.c: New file.
15294         * ps/Makefile: Add pfbtops.
15296         * troff/number.c (parse_term): Improved error message.
15298 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15300         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15302         * Makefile: Integrate refer.
15303         * refer: New directory.
15304         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15305         man/lkbib.man: New files.
15306         * man/Makefile: Support refer man pages.
15308         * lib/lib.h: Declare is_prime.
15309         * lib/prime.c: New file.
15311         * troff/input.c (macro_source): New function.
15312         (init_input_requests): Bind "mso" to macro_source.
15314         * troff/env.c (environment::possibly_break_line): Maintain
15315         pointer to pointer to node to be split in ndp so as to avoid
15316         using address of freed node.
15318         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15319         pointer to first node to be hyphenated in startp so as to
15320         avoid using address of freed node.
15322         * troff/env.c (class trie, class hyphen_trie): Make the
15323         elements of the trie be of type char not unsigned char.
15324         Declare arguments to be const char* instead of unsigned char *.
15325         
15326         * troff/env.c (hyphenate): Initialize hbuf[0].
15328         * troff/input.c (set_string): Declare p to be char * and cast
15329         *p to unsigned char when necessary.
15331         * troff/input.c (do_define_macro): Declare s to be const
15332         char*. Cast element to unisgned char when necessary, Declare
15333         d to be an int.  Handle EOF better.
15335         * troff/Makefile, troff/input.c: Different scheme for passing
15336         definitions of MACROPATH, HYPHENFILE and DEVICE.
15338 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15340         * tty/devascii/R.proto: Delete entry for em.
15341         * tty/devlatin1/R.proto: Likewise.
15343 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15345         * troff/input.c (translate): Stop when we get a space. Treat eof
15346         like newline.
15348         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15350 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15352         * tbl/main.c (process_format): A font name following a `f'
15353         modifier that starts with a digit can be only one character long.
15354         Also deal with EOF on the second character of the font name.
15356 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15358         * troff/input.c (token::next): Turn \~ into an
15359         unbreakable_space_node.
15360         * troff/node.c (unbreakable_space_node): New class.
15361         * troff/node.h: Declare it.
15363 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15365         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15366         it's >= 0, before outputting it as a single byte.
15368 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15370         * lib/font.c: Make font_char_metric::code an int.
15371         (font::get_code): Change return type to int.
15372         (font::load): Allow code to be arbitrary integer.
15373         * lib/font.h (font::get_code): Change return type to int.
15374         (font::number_to_index): Change argument type to int.
15375         * troff/input.c (token::next):  In case 'N', allow any value.
15376         Store value in token::val.
15377         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15378         (token::get_char, token::add_to_node_list, token::process): Get
15379         number from val.
15380         (charinfo::set_number): Change argument to int.
15381         (charinfo::get_number):  Require that NUMBERED flag be set.
15382         (get_charinfo_by_number): Store numbered characters not between 0
15383         and 255 in a dictionary.
15384         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15385         to int.
15386         (charinfo::number): Change type to int.
15387         (charinfo::set_number): Change type of set_number to int.
15388         * troff/node.c (troff_output_file::put_char_width,
15389         troff_output_file::put_char): Test whether character is numbered
15390         using charinfo::numbered().
15391         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15392         values of num.
15393         * lib/nametoindex.c: New implementation to cope with arbitrary
15394         number characters.
15396         * troff/input.c (token::operator==): Test val for
15397         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15398         TOKEN_SIZE.
15400         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15401         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15403 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15405         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15406         variable.
15408         * all Makefiles: rm targets of cp and >.
15410         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15411         it.
15413         * eqn/lex.c (def_table): Add dollar.
15415 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15417         * troff/input.c (do_width): Push back newline before closing delim
15418         like do_bracket.
15420 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15422         * groff.c (possible_command::prepend_arg): New function.
15423         (main): Prepend device -m option.
15424         * groff.sh: Put device -m options before command-line options.
15426 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15428         * macros/tmac.an (IP): Quote argument to TP.
15430         * ps/ps.c (main): New option -b, which sets...
15431         (broken_flags): New variable.
15432         (ps_printer::~ps_printer): Incorporate the setup section in the
15433         prolog if (broken_flags & NO_SETUP_SECTION).
15434         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15435         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15436         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15437         ps_printer::print_needed_font_comment,
15438         ps_printer::print_supplied_font_comment,
15439         ps_printer::print_include_font_comments,
15440         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15441         ps_printer::read_download_file, read_document_fonts, add_font,
15442         skip_line, parse_fonts_arg, document_font::document_font,
15443         document_font::~document_font, document_font::download,
15444         ps_output::include_file):  Deleted.
15445         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15446         rather than %!PS-Adobe-2.0.  Make calls to
15447         resource_manager::need_font for each font that we used. Replace
15448         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15449         print_supplied_font_comment, print_needed_font_comment by call to
15450         resource_manager::print_header_comments. Output %%Orientation
15451         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15452         Don't output the prolog directly.  Instead call
15453         resource_manager::output_prolog.  Only define #copies when ncopies
15454         > 1.  Delete calls to print_include_font_comments  and
15455         download_fonts.  Add call to resource_manager::document_setup.
15456         (ps_printer::do_file): Call resource_manager::import_file instead
15457         of including it ourselves.
15458         (ps_printer::do_import): Likewise.  Also don't call
15459         merge_import_fonts. Push userdict on the dictionary stack before
15460         and pop it afterwards.
15461         Move declaration of ps_output into ps.h.
15462         * ps/psrm.c: New file implementing resource_manager class.
15463         * ps/ps.h: New file declaring ps_output and resource_manager
15464         classes.
15465         * ps/devps/zapfdr.ps:
15466         * ps/devps/symbolsl.ps:
15467         * ps/devps/prologue:  Use 3.0 conventions.
15468         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15469         Add default definition of BROKEN_SPOOLER_FLAGS.
15470         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15471         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15473 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15475         * etc/grog.pl: New file.
15476         * Makefile (GROG): New variable.
15477         Add GROG to SUBFLAGS.
15478         * etc/Makefile (GROG): New variable.
15479         (install.nobin): Install $(GROG) rather than grog.sh.
15481 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15483         * eqn/special.c (special_box::compute_metrics): Make the input and
15484         output strings the same.  Get the new height and depth from the
15485         predefined height and depth registers.  Also make subscript kern
15486         and skew available.
15487         (special_box::compute_subscript_kern, special_box::compute_skew):
15488         New functions.
15490         * eqn/box.c (pointer_box::compute_skew,
15491         simple_box::compute_metrics, box::top_level)
15492         * eqn/text.c (prime_box::compute_metrics,
15493         prime_box::comput_subscript_kern)
15494         * eqn/limit.c (limit_box::compute_metrics):
15495         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15496         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15497         negative numbers in `nr' requests with a leading 0.
15499 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15501         * eqn/special.c: New file.
15502         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15503         Add new rule for simple.
15504         * eqn/lex.c (token_table): Add SPECIAL.
15505         * eqn/box.h: Declare make_special_box.
15506         * eqn/Makefile: Add special.[co].
15508 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15510         * ps/devps/prologue: Possibly set packing to true while defining.
15511         Create grops dictionary here.  Initialize local variables before
15512         defining procedures.
15513         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15514         the dictionary stack. Set strokeadjust and overprint to false if
15515         the relevant operators are defined.
15516         (PEND): New procedure.
15517         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15518         prologue.  Do everything else in the setup section.
15519         (ps_printer::do_import): Just call PBEGIN and PEND around the
15520         picture. Also push userdict before, and pop it afterwards.
15522 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15524         * troff/node.c (bracket_node::tprint): Brackets were being printed
15525         1m too low.
15527         * macros/tmac.an (SH, SS): Set fill mode.
15529 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15531         * troff/div.c (top_level_diversion::begin_page): Set
15532         high_water_mark to 0.
15534 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15536         * man/mdate.sh: New file.
15537         * man/mdate.c: Deleted.
15538         * man/Makefile: Use mdate.sh instead of mdate.
15539         (mdate): Deleted.
15541         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15543 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15545         * man/mdate.c: New file.
15546         * man/*.man: Replace modification date by @MDATE@.
15547         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15548         (mdate): New target.
15550         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15551         Remove illegal input characters.
15553 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15555         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15557 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15559         * troff/div.c (begin_page): Change behaviour when
15560         !first_page_begun and !break_flag.
15562         * troff/input.c (do_name_test): Return 0 if argument is empty.
15564         * troff/input.c (read_long_escape_name): Require closing ] to be
15565         at same input level as opening [.
15567         * troff/input.c (read_increment_and_escape_name): New function.
15568         (get_copy, process_input_stack): Use this for \n.
15570 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15572         * troff/div.c (top_level_diversion::begin_page): Ignore the
15573         current value of page_number if !first_page_begun.
15575         * groff.c (main): Fix declaration of buf.
15577         * troff/input.c (do_name_test): New function.
15578         (token::next): Implement \A.
15579         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15580         (token::description, token::add_to_node_list, token::process):
15581         Handle TOKEN_ESCAPE.
15582         * troff/token.h: New token TOKEN_ESCAPE.
15584 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15586         * pic/main.c (do_picture): Allow space before and after filename
15587         following `<'.  Check that the filename is not empty.
15589 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15591         * Version 1.01 released. 
15593         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15595         * dvi/tmac.dvi: ftr HR to H.
15597         * macros/tmac.e: Round up computation of $r.
15599         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15600         Use \n(.s instead of \n[.s].
15602         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15603         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15604         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15605         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15606         short names in the char definitions.
15608         * ps/tmac.ps: Don't give up completely in compatibility mode.
15609         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15610         quote in front of \n(.s. Add u to factors inside \s[...].
15612 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15614         * tty/tmac.tty: Call the nroff request.
15616         * macros/tmac.e ((x, )x):  Better definitions that work properly
15617         in a diversion.
15618         (@0, @1): Helper macros for (x.
15620         * macros/tmac.e ($s, hl): Use \l rather than \D.
15622         * tty/tmac.tty: Make it work better in compatibility mode.
15623         (pchar): Rename to tty-char.
15625         * macros/tmac.e (@E): New macro.
15626         (r, i, b, rb, bi): Use @E.
15628         * macros/tmac.e (@F): Don't use (;...) syntax.
15630         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15631         it was modified for groff.
15633         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15635         * macros/tmac.e (<., .>): Removed.
15636         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15638         * macros/tmac.e: Remove check that groff is being used.
15640         * macros/tmac.e (@C): Change families only if using groff; turn
15641         compatibility mode off while changing familes. Save compatibility
15642         mode before changing families and restore it afterwards.
15644         * macros/tmac.e (@h): Remove test for offset + line length.
15646         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15647         (lo, th, ac): Define to call @S instead of using als.
15649         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15650         the ratio of the vertical spacing to the point size in units
15651         expressed as a percentage.  Use these instead of $10r and $10R,
15652         Delete $10r and $10R.
15654         * lib/font.c (font::load): In default computation of space_width,
15655         divide by sizescale.  Use scale_round.
15657         * macros/tmac.an (TP): Don't call `nf'.
15658         (an-do-tag): Don't call `fi'.
15660 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15662         * troff/input.c (process_input_stack): Handle the case where
15663         spaces at the beginning of an input line are followed by a
15664         newline.
15666 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15668         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15669         * groff.sh: Use pic -x with the dvi device.
15671         * dvi/devdvi/FontMakefile (H): Don't use -s.
15673         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15674         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15675         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15676         in FONTS.
15678 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15680         * ps/psfig.diff: New file.
15681         * ps/tmac.psfig: New file.
15683 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15685         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15686         (]-): Don't call ref*do-tl.
15688         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15690         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15691         (fn@do-FS): Rename to fn*do-FS.
15693         * troff/input.c (transparent_translate): New function.
15694         (process_input_stack): Apply transparent_translate before calling
15695         diversion::transparent_output(unsigned char).
15697 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15699         * troff/input.c (do_define_macro): Define the macro before calling
15700         skip_line.
15702         * xditview/Makefile: Add DEVICES variable.  Change install target
15703         to use this.
15705 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15707         * groff.c (run_commands): Handle the possibility that there are
15708         child processes other than those forked by us.
15710 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15712         * lib/string.c (string::append): New function.
15713         * lib/stringclass.h: Declare it.
15715 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15717         * eqn/main.c (main): New option -N which sets
15718         no_newline_in_delim_flag. 
15719         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15720         in delimiters.
15721         * groff.c (main): Pass -N on to eqn.
15722         (help, synopsis): Mention -N.
15723         * groff.sh: Implement -N.
15725 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15727         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15728         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15729         (XP): Allow as initializer.
15731 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15733         * troff/env.c (environment::wrap_up_field): If field_spaces are
15734         non-zero and we have a current_tab, subtract padding from
15735         tab_distance.  If this makes tab_distance <= 0, use the next tab
15736         stop instead.  If there isn't any next tab or it's a left tab,
15737         wrap up the current tab.
15738         (environment::start_field): Initialize tab_precedes_field.
15739         (environment::wrap_up_tab): If there's a current field, update
15740         pre_field_width, field_distance and tab_precedes_field.
15741         * troff/env.h (environment::tab_precedes_field): New member.
15743 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15745         * ps/ps.c (ps_printer::do_file): New function.
15746         (ps_printer::special): Bind to `file' special.
15747         (ps_printer::do_exec): Set ndefined_styles to 0.
15749 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15751         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15752         Avoid stripping first character from the start of unrecognized
15753         escapes.  Use lex_error instead of error to report errors.
15754         * eqn/lex.c (get_token): Rework handling of escapes.
15755         (lex_error): Move declaration into...
15756         * eqn/eqn.h.
15758         * xditview/xditview.c (main): Make -page option work.
15760         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15762 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15764         * macros/tmac.s (B2): Correct size of box.
15766 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15768         * macros/tmac.s (B2): Postpone drawing the box until in the
15769         top-level diversion.
15771         * tty/tmac.tty: Add font translations for C, CR, CW.
15773         * groff.c (synopsis, help): Document -i.
15774         * groff.sh: Implement -i.
15776         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15777         Simplify the construction of SN.
15779         * troff/number.c (parse_term): Give `|' a higher precedence.
15780         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15781         accordingly.
15783         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15785 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15787         * lib/string.c (string::move): New function.
15788         * lib/stringclass.h: Declare it.
15790 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15792         * troff/env.c (distribute_space): Add optional argument
15793         `force_forward'.
15794         (environment::wrap_up_field): Call distribute_space with
15795         `force_forward' argument of 1.
15797 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15799         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15800         Inline it.  Move reallocation into...
15801         (string::grow1): New function.
15802         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15803         dependencies to include library header files.
15804         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15806 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15808         * macros/tmac.s (@NH): Use the same number registers than -ms does
15809         for the heading level counters.  Use the same string that -ms does
15810         for the number for this heading.
15812 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15814         * lib/new.c (operator new): Cast result of malloc to char *.
15816         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15817         is not null.
15819 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15821         * groff.c (main): Support -i.
15823 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15825         * pic/pic.h: Include <osfcn.h>.
15827         * ps/ps.c: Add declaration of mktemp.
15829         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15830         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15831         argument as union wait *.
15832         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15833         argument to union wait *.
15835 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15837         * tty/tmac.tty: Add definition of \(co.
15839         * pic/object.c (make_arc): Only increase radius when radius
15840         strictly less than d.
15841         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15842         more than once.
15844         * troff/env.c (environment::environment(symbol),
15845         environment::environment(const environment *)):  Initialize
15846         input_trap_count.
15848 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15850         * tbl/main.c (main): Add exit(0).
15852         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15854         * pic/main.c (main):
15855         * eqn/main.c (main):
15856         * tbl/main.c (main):
15857         * etc/soelim.c (main):
15858         * driver/printer.c (printer::~printer):
15859         * troff/node.c (real_output_file::~real_output_file,
15860         real_output_file::flush):  Check for errors on stdout.
15862         * most files: Add 1991 to copyright notice.
15864         * macros/tmac.s: Don't test \n(.x and \n(.y.
15866         * troff/input.c (token::next): Rename `escape_char' label to
15867         `handle_escape_char' and `normal_char' label to
15868         `handle_normal_char'.
15870 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15872         * groff.c (main, synopsis, help): Support -a option.
15873         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15874         to trflags while parsing options.
15876 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15878         * troff/number.c (parse_term): With `m', `M' and `n' scale
15879         indicators, convert scale factor to hunits before scaling.
15881 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15883         * lib/font.c (scale_round): Better test for overflow when n is
15884         negative.
15886 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15888         * tbl/main.c (process_format): Add second argument of type
15889         options*. Change callers.  Allow opt->tab_char as well as '\t'
15890         between format items.
15892 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15894         * macros/tmac.an (PD): With no arguments, make sure register PD is
15895         at least \n[.V].
15896         (TH): Call PD with no argument, instead of setting register PD
15897         directly.
15899 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15901         * Version 1.00 released.
15903 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15905         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15907         * dvi/devdvi/DESC: Mount CW instead of CR.
15909         * dvi/tmac.dvi: Add definition of \(tm.
15911         * dvi/devdvi/texsy.map: Add lh, and rh.
15912         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15913         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15915         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15916         * dvi/devdvi/Makefile: Install H.
15917         * dvi/devdvi/H: New file.
15919 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15921         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15922         be 0.
15924 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15926         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15928         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15930         * macros/tmac.s (@EN): Handle the case where the equation is empty
15931         but the label is not.
15933 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15935         * troff/groff.h: New warning category WARN_SPACE.
15936         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15937         WARN_SPACE to warning_table.
15938         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15939         is longer than two characters and is not defined, but the first
15940         two characters do make a defined name.
15942         * PROBLEMS: New file.
15944         * CHANGES: New file.
15945         * README-0.6, README-1.00: Deleted.
15947         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15948         * xditview/devX75/Makefile: Make devX75-12.
15949         * xditview/devX100/Makefile: Make devX100-12.
15951         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15952         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15954 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15956         * README-0.7: Rename to README-1.00.
15958         * macros/tmac.pic: New file.
15959         * macros/Makefile (install.nobin): Install tmac.pic.
15961 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15963         * troff/env.c (hyphen_word): Correct the test for whether the
15964         token is a hyphen.  Reset npos to 0.
15966         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15968 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15970         * macros/tmac.s (ds*common-end): Call par*reset.
15971         (PE): Likewise.
15972         (par@reset-indent): Deleted.
15974         * macros/tmac.s (@IP): Divert the label.
15976 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15978         * xditview/draw.c (setGC): Use a line width of .1m rather than
15979         .04m by default; round rather than truncate value.
15981         * tbl/table.c (class empty_entry): New class.
15982         (empty_entry::empty_entry, empty_entry::line_type): New functions.
15983         (table::add_entry): Represent empty entries by objects of type
15984         empty_entry.
15985         (table_entry::line_type): Return -1.
15986         (table::determine_row_type): Ignore entries with line_type 0.
15987         Treat type -1 as non-lines.
15989 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
15991         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15992         macros/tmac.s: Rename \(-d to \(Sd.
15994 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
15996         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15997         * xditview/libXdvi/DviChar.c: Likewise.
15998         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16000 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16002         * troff/div.c (top_level_diversion::begin_page): Call
16003         init_output() if the_output is 0.
16005 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16007         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16008         ESCAPE_c.
16009         (get_copy): Turn \E into ESCAPE_E.
16010         (token::process, asciify): Handle ESCAPE_E.
16012         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16013         (RD): New macro.
16014         (DS): Implement `.DS R'.
16016 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16018         * macros/tmac.s (FS): New macro.
16020         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16022         * macros/tmac.s (cov*tl-init): Remove after first execution
16023         instead of aliasing to @nop.  Call top of page macro explicitly
16024         instead of setting trap; call @init first.  Set pg@top as top of
16025         page macro.
16026         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16027         cov*auto-init as top of page trap. 
16028         (TL, LP): Do a break instead of calling cov*tl-init.
16029         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16030         @FE; in this case also give a warning and always start another
16031         page. No need to set pg@top here.
16032         (cov*tl-init): Rename to cov*first-page-init.
16034         * macros/tmac.s (RP): Do `.pn 0'.
16035         (cov*tl-init): With RP format don't do `.pn 0'.
16037         * macros/tmac.s (pg@cs-top): Set no space mode.
16039         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16040         (cov*ab-init): Alias TL, AU and AI to these.
16042 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16044         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16045         (@EN): Do nothing unless \n[dl] is > 0.
16047 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16049         * pic/object.c (ellipse_object::radius): New function.
16051         * VERSION: Change version to 0.7.
16053         * tbl/table.c (block_entry::do_divert): Declare return type as
16054         void.
16055         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16057 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16059         * troff/column.c: New file.
16060         * troff/Makefile: Corresponding changes.
16062         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16063         Friend of vunits.
16065         * troff/div.c (top_level_diversion::space): If the space causes
16066         the first-page transition and springs a trap, truncate the space
16067         to 0.
16069 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16071         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16072         the document.
16074         * pic/troff.c (troff_output::line_thickness,
16075         troff_output::set_fill): Do a horizontal motion to compensate for
16076         the width of the \D escape sequence.
16078 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16080         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16081         (not X75).
16083         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16084         to printf.
16086         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16087         Supply empty definition.
16088         (text_entry::simple_print, simple_text_entry::simple_print):
16089         Delete declarations.
16090         (table::add_entry): Represent empty entries by objects of type
16091         `simple_entry'.
16093 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16095         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16097         * tbl/table.c (left_text_entry::add_tab): New function.
16099         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16100         initialize like LP.
16102 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16104         * troff/env.c (environment::start_field): Give an error message if
16105         there is no next tab.
16107 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16109         * troff/env.c (hyphenate): Skip initial elements with zero
16110         hyphenation code.
16112         * macros/tmac.s (par@init): Keep VS in points rather than units.
16114 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16116         * pic/main.c (main): Implement `-c' option.
16117         * pic/output.h: Declare make_tpic_output().
16118         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16119         protected.
16120         (tpic_output): New class.
16121         (tpic_output::tpic_output, tpic_output::set_pen_size,
16122         tpic_output::command, make_tpic_output): New functions.
16124 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16126         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16127         if they're not already defined.
16128         * tbl/table.c (init_output): Don't test \n(.g.
16130         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16131         `d', `r' and `c' conditions even in compatibility mode.
16133 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16135         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16136         box.
16138 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16140         * troff/env.h (environment::prev_line_interrupted): New member.
16141         (environment::get_prev_line_interrupted): New function.
16142         * troff/env.c (environment::newline): Set prev_line_interrupted.
16143         (environment::environment(const environment *),
16144         environment::environment(symbol)): Initialize
16145         prev_line_interrupted.
16146         * troff/input.c (process_input_stack): Don't give special
16147         treatment to space and newline at the beginning of the line if the
16148         previous line was interrupted.
16150 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16152         * eqn/eqn.y: Disallow PRIME by itself.
16153         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16154         PRIME.
16155         (def_table): Remove definition of '.  Define prime to be `.
16157         * eqn/eqn.y: Split off part of rule `script' into a new rule
16158         `nonsup'.
16160 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16162         * macros/tmac.s ({, }): New string aliases.
16164 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16166         * README-0.7: New file.
16168 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16170         * macros/tmac.s: New file.
16171         * man/groff_ms.man: New file.
16172         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16173         * Makefile.bd: Similarily.
16174         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16175         definition of TMAC_S.
16176         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16177         * macros/TODO: New file.
16179 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16181         * troff/env.c (right_justify): New function.
16182         (init_env_requests): Bind this to request "rj".
16183         (center_lines): Set right_justify_lines to 0. If we get a bad
16184         integer, center 1 line.
16185         (environment::environment(symbol), environment::environment(const
16186         environment *)): Initialize right_justify_lines.
16187         (environment::get_right_justify_lines): New function.
16188         (init_env_requests): Bind this to number_register ".rj".
16190         * troff/env.c (environment::choose_breakpoint): Implement
16191         hyphenation_margin and hyphenation_space.
16192         (environment::get_hyphenation_space,
16193         environment::get_hyphenation_margin): New functions.
16194         (init_env_requests): Bind these to .hys and .hym.
16195         (hyphenation_space_request, hyphenation_margin_request): New
16196         functions
16197         (init_env_requests): Bind these to hys and hym.
16198         (environment::environment(symbol), environment::environment(const
16199         environment *)): Initialize hyphenation_margin and
16200         hyphenation_space.
16201         * troff/env.h: Corresponding changes to class environment.
16203 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16205         * troff/div.c (blank_line): Always do a break.
16207         * eqn/box.c (do_text): Turn off escapes while appending text to
16208         string.
16210 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16212         * troff/input.c (while_break_request, while_continue_request): New
16213         functions.
16214         (init_input_requests): Bind these to "break" and "continue".
16215         (while_depth, while_break_flag): New variables.
16216         (while_request): Update while_depth.  Break out of loop if
16217         while_break_flag is set.
16219 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16221         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16222         rather than 0.
16224 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16226         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16228         * stringify: New file.
16229         * Makefile (groff.o): Use stringify.
16231         * xditview/tmac.X: Remove definition of \(rn.
16232         * xditview/libXdvi/DviChar.c: Remove radicalex from
16233         Adobe_symbol_map.
16235 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16237         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16238         (alphabetic_block_entry::alphabetic_block_entry,
16239         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16240         New functions.
16241         (block_entry::divert): Split off body into ...
16242         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16243         from the line length; also update the span width to dl+2n, and the
16244         alphabetic span width to dl.
16246         * driver/input.c (do_file):  While reading argument to D command,
16247         when expanding buffer, multiply szp by sizeof(int) rather than 2
16248         in the argument to memcpy.
16250         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16251         width of alphabetic columns.
16253 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16255         * troff/node.c (lookup_family): Supply second argument to lookup.
16257         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16258         search, return immediately if v is 0.
16260         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16261         (troff_output::start_picture): Set this reg.
16262         (troff_output::end_picture): Remove this reg
16263         * eqn/box.c (box::extra_space): Don't produce `\x's if
16264         EQN_NO_EXTRA_SPACE_REG is defined.
16266         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16267         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16268         character.
16270 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16272         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16273         requests.
16275         * troff/div.c (top_level_diversion::top_level_diversion):
16276         Initialize page_number to 0.
16278 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16280         * groff/troff (environment::environment(const environment *)):
16281         Initialize name to e->name, rather than "anonymous".
16283 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16285         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16286         requested_page.  Split middle part into ...
16287         (FindPage): New function.
16288         (SetValues): If we don't yet know the last page, and the requested
16289         page is greater than the current page, call FindPage.
16290         Update the font_map_string before doing this.
16292         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16293         Translate \(lh and \(rh into left and right double arrows.
16295         * troff/node.c (class hyphen_inhibitor_node): New class.
16296         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16297         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16298         hyphen_inhibitor_node::type,
16299         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16300         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16301         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16302         word.
16304 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16306         * troff/node.h (dummy_node::get_hyphenation_type,
16307         transparent_dummy_node::get_hyphenation_type):  Declare them.
16308         * troff/node.c: (dummy_node::get_hyphenation_type,
16309         transparent_dummy_node::get_hyphenation_type): New functions.
16311 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16313         * xditview/libXdvi/draw.c: If M_PI not defined after including
16314         math.h, then define it.
16316         * xditview/Makefile: Add definition of AR. Pass it to the submake
16317         in libXdvi.
16318         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16320 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16322         * troff/dictionary.h (object_dictionary::alias): Declare return
16323         value as int.
16324         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16325         if the old name was defined.
16326         * troff/input.c (alias_macro): Give a warning if the old name was
16327         not defined.
16328         * troff/reg.c (alias_reg): Likewise.
16330 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16332         * troff/input.c (token::next): Delete implementation of \R.
16334         * macros/Makefile: Strip comments from tmac.e while installing it.
16336         * troff/input.c: New variable `nroff_mode'.
16337         (troff_request, nroff_request): New functions.
16338         (init_input_requests): Bind `troff' and `nroff' to troff_request
16339         and nroff_request.
16340         (do_if_request): Compute results of t and n conditions from
16341         nroff_mode.
16343         * text/text.c (split_text): Fix typo in >=.
16345         * eqn/lex.c: Add definition of `==' to def_table.
16347 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16349         * pic/tex.c (tex_output::start_picture): Change the definitions of
16350         \graph and \graphtemp so that they work properly with Plain TeX.
16352         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16353         argument to `ar' is not less than the first.
16355         * pic/pic.y: Allow a comma between elements of the variable list
16356         in the argument to `reset'.
16358         * pic/object.c (arc_object::arc_object): Fix computation of
16359         radius.
16361         * eqn/main.c (main): Add exit(0).
16363 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16365         * troff/div.c (begin_page): Test no_space_mode after doing the
16366         break, but still push the page ejector cookie before doing the
16367         break.  Also set the next page number after doing the break.
16368         
16369         * xditview/xditview.c (NewFile): Don't set the title and icon name
16370         if this is the first file and its name is `-'.
16371         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16372         the X75 and X100 devices.
16373         (main): If a device has the XT_OPTION flag set and there's exactly
16374         one file argument, pass the driver -xrm and -title options to set
16375         the icon name and window title to the name of the file.
16377         * troff/env.c (environment_switch): If there was an argument but
16378         it wasn't a valid number or name, then pop an environment but
16379         don't give an error message on underflow.
16381         * troff/number.c (start_number): Correct spelling in error message.
16383         * troff/input.c (token::delimiter): Don't print an error message
16384         if err is false.
16386         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16387         ParseDrawFunction if dw->display_enable is true.
16389 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16391         * pic/pic.y: Parse text positioning like normal attributes, so as
16392         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16393         positioning attribute.
16395 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16397         * tbl/main.c (process_data): When in state START while reading a
16398         text block, don't change to state MIDDLE if c is a newline.
16400 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16402         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16403         so as to avoid shadowing parameter.
16405 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16407         * tbl/table.c (trim_space): Deleted.
16408         (table::add_entry): Don't call trim_space.
16410 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16412         * VERSION: Change version to 0.6.
16414         * troff/number.c (parse_expr): Make == work.
16416 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16418         * man/grog.man: New file.
16419         * man/Makefile: Add grog.n to MAN1PAGES.
16420         * etc/grog.sh: New file.
16421         * etc/Makefile: Install grog.sh as grog.
16423 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16425         * troff/input.c (token::next): Implement \E.
16427 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16429         * xditview/tmac.X: Change font translations to match tmac.ps.
16431         * troff/input.c (non_empty_name_warning): Don't give a warning if
16432         `\{' terminates the name.
16434 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16436         * ps/devps/symbol.diff: New file.
16437         * ps/devps/FontMakefile: Mention symbol.diff.
16439 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16441         * troff/node.c (font_position): Use get_long_name to read the
16442         external_name.
16444         * troff/env.c (environment_switch): If we get a number that's < 0
16445         or >= NENVIRONMENTS, treat it like a name.
16446         Change NENVIRONMENTS to 10.
16448         * troff/groff.h: Remove definition of FONTS_MAX.
16449         * troff/node.h (class font_family): Make map a pointer instead of
16450         an array. Add a map_size member. Make it a class. Make nm const
16451         and public. Make invalidate_fontno a friend.
16452         * troff/node.c: Define font_table_size. Make font_info a pointer
16453         rather than an array.
16454         (class troff_output_file): Allocate font_position dynamically. Add
16455         nfont_positions member.
16456         (troff_output_file::set_font): Grow font_position if necessary.
16457         (troff_output_file::~troff_output_file): Delete font_position.
16458         (troff_output_file::troff_output_file): Allocate font_position.
16459         (grow_font_table): New function.
16460         (troff_output_file::really_begin_page,
16461         troff_output_file:really_copy_page): Use nfont_positions rather
16462         than FONTS_MAX.
16463         (mount_font_no_translate, mount_style): Call grow_font_table if
16464         necessary.
16465         (font_family::font_family): Allocate map.
16466         (font_family::make_definite): Grow map if necessary. Use
16467         font_table_size instead of FONTS_MAX.
16468         (font_family::~font_family): New function.
16469         (invalidate_fontno): Use font_family::map_size.
16470         (get_fontno, env_space_width, env_half_narrow_space_width,
16471         env_narrow_space_width, symbol_fotno, is_good_fontno,
16472         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16473         FONTS_MAX.
16474         (next_available_font_position): Never return 0.
16476 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16478         * ps/tmac.ps: Add font translations for compatibility with dpost.
16480 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16482         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16483         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16484         Move definitions baseline_sep, shift_down, column_sep,
16485         matrix_side_sep into...
16486         * eqn/box.c: Add them to param_table.
16487         * eqn/pbox.h: Add declarations to pbox.h.
16489         * troff/input.c (set_string): Cast value to unsigned char *.
16491         * troff/token.h (process_input_stack): Declare it static before
16492         declaring it a friend.
16494 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16496         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16497         and bottom.
16498         * dvi/devdvi/EX: Regenerate.
16500         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16501         transparent.
16503 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16505         * eqn/lex.c: In defaults_table, make definition of `dot' call
16506         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16507         accents.
16509         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16510         argument.
16511         (for_input::get, for_input::peek): Use this.
16512         (do_for): Add by_is_multiplicative argument.
16513         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16514         Change semantic value of optional_by to be a double plus a flag
16515         saying whethet the by clause is multiplicative.
16517         * eqn/lex.c (get_delimited_text): Remember location of start of
16518         definition.  Improve error handling when EOF is encountered.
16520         * lib/font.h: Rename handle_x_command to
16521         handle_unknown_font_command.
16522         * lib/font.c (font::load): Call handle_unknown_font_command for
16523         any unknown command in the font description file.  Don't call
16524         handle_x_command. Include the name of the command in the argv.
16525         Improve message for unknown command after kernpairs or charset
16526         command.
16527         * ps/ps.c (ps_font::handle_x_command): Rename to
16528         handle_unknown_font_command.  Remove message about `x download'
16529         command.  Give error message for wrong number of arguments.
16530         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16531         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16532         handle_unknown_font_command. Give an error message for wrong
16533         number of arguments.  Rename design_size to designsize.
16534         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16535         checksum', `designsize' instead of `design_size'.
16537 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16539         * eqn/*.[chy]: Change underaccent to uaccent.
16541         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16542         give it the same precedence as ACCENT.
16543         * eqn/other.c (make_underaccent_box): New function.
16544         * eqn/box.h: Declare it.
16545         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16546         def_table.
16548 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16550         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16551         (parse_init): Call reset_all.
16552         (define_variable): When defining scale reset only those
16553         pre-defined variables that are scaled.
16554         (defaults_table): Add `scale' as non-scaled value.
16556         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16557         together with the text; allow any number of positioning words;
16558         allow center as a positioning word.
16560         * pic/object.c (output::compute_scale): Get picture maximum height
16561         and width from variables called maxpswid and maxpsht.
16562         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16564 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16566         * pic/object.c (object_spec::make_text): Multiply textht by number
16567         of text items.
16569         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16570         occur.
16571         (do_sprintf): New function.
16572         (pic.gperf): Add sprintf token.
16573         (text, sprintf): New rules.
16575         * pic/pic.y: `rand()' with no arguments returns a random number
16576         in the range [0,1).
16578         * pic/pic.y: Allow a bare expression to be an attribute: change
16579         precedences to support this.  Change optional_ordinal rule to
16580         optional_ordinal_last to avoid reduce/reduce conflict.
16581         * pic/object.c (object_spec::object_spec): Initialize direction.
16583         * pic/pic.y: Implement ^ operator meaning exponentiation.
16585         * troff/node.h: Add default argument to mount_font.
16586         * troff/node.c (font_position): Read an optional third argument
16587         giving the external_name.
16588         (mount_font): Add optional argument giving the external_name.
16589         (mount_font_not_translate): Have additional argument giving
16590         external name.  Use this name to load the font.  Pass both names
16591         to font_info::font_info.
16592         (font_info::font_info): Have additional argument giving
16593         external_name.
16594         (class tfont): New member external_name.
16595         (font_info::get_tfont): Use external name to construct tfont_spec.
16597 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16599         * eqn/lex.c (init_table): Add argument giving device.  Define
16600         name of device to be "1".
16601         (do_ifdef): Counts as true if the argument has been defined with
16602         `define'.
16603         * eqn/main.c (main): Call init_table with device argument. Make
16604         device local to main.
16605         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16606         of device.
16608         * pic/lex.c (get_delimited): Allow text to be delimited by
16609         matching {}s.  Don't recognize ending delimiter within a string.
16611         * troff/input.c (get_delim_name): New function.
16612         (token::next): Implement \C.
16614         * lib/font.c (font::load): Grok ---.  Add an alias for each
16615         character based on its code.
16616         (font::get_code_width): Deleted.
16617         * lib/font.h (class font): Declare font::number_to_index().
16618         Remove declaration of font::get_code_width.
16619         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16620         to indices of named characters.
16621         (font::number_to_index): New function.
16622         * troff/input.c (font::number_to_index): New function.
16623         (get_charinfo_by_number, charinfo::get_number,
16624         charinfo::set_number): New functions.
16625         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16626         (token::process, token::description, token::get_char,
16627         token::add_to_node_list, token::operator==): Handle
16628         TOKEN_NUMBERED_CHAR.
16629         * troff/charinfo.h: Declare get_charinfo_by_number,
16630         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16631         charinfo class.
16632         (charinfo::numbered): New function.
16633         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16634         * troff/env.h (class environment): Remove declaration of ...
16635         * troff/env.c (environment::make_numbered_char_node): Deleted.
16636         * troff/node.c (make_numbered_node): Deleted.
16637         (class numbered_glyph_node): Remove.
16638         (troff_output_file::put_char_width, troff_output_file::put_char):
16639         Handle numbered chars.
16640         (troff_output_file::numbered_char): Removed.
16641         (tfont::get_code_width): Removed.
16642         (make_glyph_node): Don't search special fonts for numbered
16643         characters.
16644         * troff/node.h: Remove declaration of make_numbered_node.
16645         * driver/input.c (do_file): Handle N command.
16646         * driver/printer.h: Add declaration of ...
16647         * driver/printer.c (printer::set_numbered_char): New function.
16648         * dvi/tfmtodit.c (main): Generate unnamed entries.
16649         * ps/devps/afmtodit: Likewise.
16650         * xditview/xtotroff.c (MapFont): Likewise.
16651         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16653         * tbl/main.c (process_format): If multiple widths are specified
16654         for a column but all the widths are the same, don't give an error
16655         message.
16657         * tbl/table.c (table::do_row): If the current row is all lines and
16658         the stuff doesn't contains a line, mark the top of the row after
16659         printing stuff before the row.  If the current row is not all
16660         lines and the stuff doesn't contain a line, don't unnecessarily
16661         mark the top of the row before printing the stuff.
16662         
16663 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16665         * troff/groff.h: Remove MAX_PATH.
16666         * troff/input.c (open_file): Dynamically allocate space for the
16667         path.
16668         (open_mac_file, process_macro_file): Corresponding changes.
16670 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16672         * troff/node.h (class output_file): Make copy_file pure.  Add
16673         vspace method ifdef COLUMN. Add is_printing method.
16674         * troff/node.c: Add class printing_reg. Add class
16675         real_output_file. Derive other output_file classes from
16676         real_output_file; in these classes rename begin_page to
16677         really_begin_page, print_line to really_print_line, copy_file to
16678         really_copy_file, transparent_char to really_transparent_char.
16679         Move output_file::flush to real_output_file. Add printing member
16680         to class output_file.
16681         * troff/div.h: Remove printing member from top_level_diversion.
16682         Add vspace member function to class diversion ifdef COLUMN. Add
16683         some declarations ifdef COLUMN.
16684         * troff/div.c (top_level_diversion::copy_file,
16685         top_level_diversion::transparent_output,
16686         top_level_diversion::output): Don't test printing member before
16687         output.
16688         * troff/input.c: Handle initial variable_space_request ifdef
16689         COLUMN.
16690         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16691         but comment it out.
16693 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16695         * troff/div.c (diversion::need): Make any space forced.  If we
16696         sprung a trap, set truncated_space to minus the distance to the
16697         trap and set needed_space to the amount that was needed.
16698         (top_level_diversion::space): A forced space turns no_space_mode
16699         off.
16700         (class constant_vunits_reg): New class.
16701         (init_div_requests): Implement number registers .trunc and .ne
16702         using constant_vunits_reg.
16703         (class truncated_space_reg): Deleted.   
16705         * troff/div.h: Don't have a no_space_mode member in diversion.
16706         Instead have it in top_level_diversion.
16707         * troff/div.c (diversion::diversion): Don't initialize
16708         no_space_mode.
16709         (top_level_diversion::top_level_diversion): Initialize
16710         no_space_mode.
16711         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16712         (macro_diversion::output): Don't clear no_space_mode.
16714         * troff/input.c (diverted_space_node::reread): Don't call
16715         environment::do_break.  In fill mode, act like a blank line.
16716         (diverted_copy_file_node::reread): Don't call
16717         environment::do_break.
16719         * troff/div.c (blank_line): New function.
16720         * troff/div.h: Declare it.
16721         * troff/input.c (process_input_stack): Call it.
16723         * troff/div.c (truncated_space_reg::get_string): New function.
16724         (init_div_requests): Bind to .trunc.
16725         (space_request, top_level_diversion::space,
16726         top_level_diversion::output, macro_diversion::space,
16727         macro_diversion::output): Update truncated_space.
16728         (macro_diversion::output): Redo calculations when trap sprung.
16729         (macro_diversion::output, macro_diversion::space): No need for
16730         trap_flag.
16732         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16733         after truncating post line spacing.
16735 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16737         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16738         defined as a procedure rather than as an operator.
16740 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16742         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16744 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16746         * troff/div.c (top_level_diversion::output): Merge
16747         output_file::print_line and output_file::end_of_line member
16748         functions.
16749         * troff/div.h (class output_file):
16750         * troff/node.c (troff_output_file::print_line,
16751         troff_output_file::end_of_line, output_file::end_of_line,
16752         ascii_output_file::print_line, suppress_output_file::print_line):
16753         Corresponding changes.  
16755 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16757         * troff/input.c (token::next): Don't give a warning for `\.'.
16759         * troff/env.c (environment::get_center_lines): New function.
16760         (init_env_requests): Bind number register .ce to it.
16761         * troff/env.h: Declare it.
16762         * tbl/table.c (table::init_output): Define reset macro to restore
16763         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16764         Then do .ce 0.
16765         (table::print): If center option not given, then imply center
16766         option if SAVED_CENTER_REG > 0.
16768 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16770         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16771         Troff.ps from DOWNLOAD.
16772         
16773         * troff/Makefile: Change comment in DEFINES to avoid confusing
16774         System V make.
16776         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16777         code.  Don't try to catch errors with stopped.
16778         (check_line_lengths): New function.
16779         * ps/devps/prologue (EXEC): Deleted.
16780         (EBEGIN, EEND): New procedures.
16782 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16784         * troff/input.c: Include request.h before node.h.
16785         * troff/node.c: Likewise.
16786         * troff/env.c: Likewise.
16787         * troff/div.c: Likewise.
16788         * troff/node.h (class special_node): Store argument as a macro
16789         rather than a char *.
16790         * troff/node.c (special_node::special_node, special_node::copy):
16791         Grok this.
16792         (special_node::~special_node): Deleted.
16793         (special_node::tprint): Deleted.
16794         (special_node::tprint_start, special_node::tprint_end,
16795         special_node::tprint_char): New functions.
16796         (troff_output_file::special): Deleted.
16797         (troff_output_file::start_special, troff_output_file::end_special,
16798         troff_output_file::special_char): New functions.
16799         * troff/input.c (special_node::tprint): New function.
16800         (do_special): Use macro not char *.
16801         (do_transparent_macro): Deleted.
16802         (token::next): Don't call do_transparent_macro.
16804         * troff/input.c (token::next): Add 'Y' case.
16805         (do_transparent_macro): New function.
16806         * troff/node.c (troff_output_file::special): Handle newlines with
16807         argument using new continuation convention.
16808         * driver/input.c (get_string): Cope with continuation convention.
16809         (do_file): Don't call skip_line after calling get_string(1).
16810         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16811         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16812         arg.
16813         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16814         with +.
16816 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16818         * troff/input.c (asciify): By default, illegal input characters
16819         should return empty string.
16821         * troff/input.c (copy_file): Handle first page transition like title.
16822         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16824         * troff/input.c (token::next): Improve error message for EOF after
16825         escape character.
16826         (input_char_description): New function.
16827         (get_char_for_escape_name): Use input_char_description.
16828         (token::next): Warn about unrecognized escape sequences.
16829         (warning_table): Add WARN_ESCAPE.
16830         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16831         accordingly.
16833         * troff/token.h: Remove declaration of process_input_stack.
16835         * troff/input.c: Remove declaration of init_hyphen_requests.
16836         * troff/request.h: Correct spelling in declaration of same.
16838         * troff/input.c (token::next): Check whether escape_char is 0.
16840 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16842         * groff.c (main, usage, help): Implement -P and -L options.
16843         * groff.sh: Likewise.
16845         * troff/input.c (token::next): Use some gotos to avoid code
16846         duplication.
16848         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16849         Avoid calling symbol::symbol if name empty.
16851 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16853         * troff/input.c (init_input_requests): Make \n(.x return the major
16854         version number and \n(.y return the minor version number.
16855         * troff/Makefile: Construct file majorminor.c defining
16856         major_version and minor_version automatically from ../VERSION.
16858         * troff/node.c (class glyph_node): Make operator new and operator
16859         delete public.
16860         (class ligature_node): Similarily.
16862         * troff/input.c (operator==(const macro &, const macro &)): New
16863         function.
16864         (non_interpreted_node::same): Use this.
16865         (string_iterator::string_iterator): Make macro& argument const.
16867         * troff/input.c (input_iterator::get): New function. Don't make
16868         asciify_macro or class non_interpreted_node friends of class
16869         input_iterator.
16870         (non_interpreted_node::interpret): Use input_iterator::get.
16871         (asciify_macro): Likewise.
16873         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16874         ~non_interpreted_node): Deleted.
16875         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16876         Deleted.
16878         * troff/symbol.h: Make all symbol member functions const.
16880         * lib/strtol.c: New file.
16881         * lib/Makefile: Add strtol.c.
16882         * Makefile: Define STRTOL as strtol.o to include strtol in
16883         libgroff.a.
16885 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16887         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16889 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16891         * troff/input.c (do_special): Use input_level.
16893         * troff/token.h (TOKEN_BACKSPACE): New token.
16894         (token::backspace): New function.
16895         * troff/input.c (token::description, token::next, token::process):
16896         Grok TOKEN_BACKSPACE.
16897         (do_special): Turn TOKEN_BACKSPACE back into \b.
16899         * troff/token.h (token::leader): New function.
16900         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16902         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16904         * troff/input.c (do_special): Use token::description in error
16905         message.
16907 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16909         * troff/input.c (decode_args): Combine quoted and
16910         quote_input_level variables. Make it a for (;;) loop.
16912         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16914         * troff/input.c (read_long_escape_name): The test for whether to
16915         expand buffer was off by 1.
16916         (read_string): Similarily.
16918 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16920         * troff/input.c: Use `const int' rather than `static const int'.
16922         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16923         (macro_diversion::copy_file): New function.
16924         * troff/node.h: New class diverted_copy_file_node.
16925         * troff/node.c: Implement it.
16926         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16927         first page transition by pushing a diverted_copy_file_node.
16928         * troff/input.c (token::next, process_input_stack): Don't handle
16929         COPY_FILE_REQUEST.
16931 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16933         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16934         whether space widths need adjusting.
16936         * troff/charinfo.h: Generalize translated_to_space to
16937         special_translation so as to allow translation to \&.
16938         * troff/input.c (translate): Allow translation to \&.
16939         (charinfo::*): Corresponding changes.
16940         * troff/node.c (make_node, node::add_char): Corresponding changes.
16941         * troff/node.h (dummy_node::dummy_node): Allow optional first
16942         argument.
16944         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16945         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16946         TOKEN_REQUEST.
16947         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16948         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16949         (token::process): Grok that.
16950         * troff/input.c (copy_file): Handle first page transition like
16951         title by pushing a COPY_FILE_REQUEST cookie.
16952         (token::next, process_input_stack): Grok that.
16953         * troff/node.h (output_file::copy_file): Add x and y arguments.
16954         Make it non-pure.
16955         * troff/div.c (top_level_diversion::copy_file): Supply them.
16956         * troff/node.c (troff_output_file::copy_file): Add x and y
16957         arguments; moveto specified position.  Invalidate font_position
16958         array after copying file.
16959         (output_file::copy_file): New function.
16960         (suppressed_output_file::copy_file, ascii_output::copy_file):
16961         Removed.
16962         * troff/input.c (transparent_file): New function.
16963         (init_input_requests): Bind to "trf".
16964         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16965         (process_input_stack): Likewise.
16967         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16969         * troff/node.c (init_node_requests): New number registers .kern
16970         pointing to global_kern_mode, and .lg pointing to
16971         global_ligature_mode.
16973         * troff/node.c (ligature): Don't change it if we get a bad
16974         integer.
16976         * troff/input.c (do_define_string): Don't strip tabs.
16978         * troff/input.c (asciify_macro): Make the string_iterator auto.
16980         * troff/node.c (init_font_requests): Rename to...
16981         (init_node_requests):
16982         * troff/node.h: Change declaration.
16983         * troff/input.c (main): Change call.
16985         * troff/input.c (node::reread, diverted_space_node::reread): New
16986         methods.
16987         (process_input_stack): Call reread rather than
16988         get_diverted_space_node.
16989         * troff/node.c (node::get_diverted_space_node,
16990         diverted_space_node::get_diverted_space_node): Removed.
16991         * troff/node.h: Declare reread methods instead of
16992         get_diverted_space_node methods. Make `n' member private.
16993         * troff/input.c: (token::diverted_space): Removed.
16994         * troff/token.h: Removed declaration.
16995         
16997 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
16999         * eqn/script.c (script_box::compute_metrics): Don't let
17000         SUP_RAISE_FORMAT become negative.
17002         * tbl/table.c (table::do_row): Entries that don't end in the
17003         this row shouldn't make the row non-blank.
17004         
17005         * tbl/table.c (table::make_columns_equal): Only set the width of
17006         columns which are marked as equal.
17007         
17008         * tbl/main.c (process_data): Before issuing excess data error,
17009         if last character was a newline unget it; then get it again after
17010         the error.  Also include the contents of the entry in the message.
17012         * groff.c: New file.
17013         * Makefile: Build groff from groff.c.  Make it possible to use
17014         either groff.sh or groff.c as groff.
17015         * Makefile.bd: Similarily.
17017 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17019         * groff.sh: Don't delay expansion of $@ in assignment to files.
17020         Remove occurrences of \".
17022 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17024         * all Makefiles: Simplify and rearrange.
17026         * Makefile: Handle fmod like malloc.
17027         * lib/Makefile: Similarily.
17028         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17030         * Makefile: Rename OPTIMISE to OPTIMIZE.
17032         * groff.sh: Remove assignment to PATH.
17033         * Makefile: Remove SHPATH variable.
17034         * Makefile.bd: Similarily.
17036         * groff.sh: Add -V option to print the pipeline instead of
17037         executing it.
17039 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17041         * lib/font.c: Split off file searching into ...
17042         * lib/fontfile.c: New file.
17044         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17046 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17048         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17049         Also change misleading comment.
17050         (table::do_vspan): Change similarily misleading comment.
17051         * tbl/main.c (process_data): A format row with an explicit `s'
17052         uses up a data line, even if all the other columns are `_' or `='.
17054         * troff/input.c (token::description): Fix description of
17055         TOKEN_DUMMY and TOKEN_EMPTY.
17057 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17059         * groff.sh: Fix description of -Z in help message.
17061 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17063         * pic/object.c (object_spec::make_object): Allow negative and zero
17064         line thicknesses.
17065         * pic/pic.y: Give linethick default value of -1.0.
17066         * pic/troff.c (troff_output::troff_output): Initialize
17067         last_line_thickness to BAD_THICKNESS.
17068         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17069         (troff_output::line_thickness): Canonicalize negative thicknesses
17070         to RELATIVE_THICKNESS.
17071         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17072         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17073         to -1.0.
17074         (tex_output::start_picture): Set pen_size to -2.0.
17076         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17077         0, then use 0 linewidth.
17078         (ps_printer::ps_printer): Initialize line_thickness to -1.
17080         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17082         * ps/devps/symbolchars: Remove `or'.
17083         * ps/tmac.ps: Implement \(or with .char.
17085         * ps/devps/symbolchars: Move most characters into textmap.
17086         * ps/devps/textmap: Add names for troff bracket characters. Remove
17087         ul, ru, br, bv.
17089         * ps/devps/TSymbol.ps: Removed.
17090         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17091         * ps/tmac.ps: Do with .char what TSymbol did.
17092         * ps/devps/download: Remove TSymbol.
17094         * ps/devps/T: Removed.
17095         * ps/devps/Troff.ps: Removed.
17096         * ps/devps/Troff.afm: Removed.
17097         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17098         * ps/devps/download: Remove Troff.
17099         * ps/devps/FontMakefile: Remove T target.
17100         * ps/devps/DESC-A4: Remove T from font list.
17101         * ps/devps/DESC-letter: Likewise.
17103         * troff/input.c (macro_to_node): Rename to ...
17104         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17105         character's definition while processing it.
17106         * troff/node.c (node::add_char, make_node): Change calls to
17107         macro_to_node accordingly.
17109         * troff/input.c (token::next): Translate \_ to \(ul.
17111         * tty/devascii/R.proto: Add `|'.
17112         * tty/devlatin1/R.proto: Likewise.
17114 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17116         * man: Put the version number in all the man pages.
17118 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17120         * Makefile.bd: New file.
17121         * README.bd: New file.
17123         * VERSION: New file.
17124         * lib/version.c: Removed.
17125         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17126         in clean target.
17128         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17129         environment variable.
17131         * all Makefiles: Split install target into install.bin for
17132         binaries, and install.nobin for everything else.
17133         * Makefile: Add bindist target.
17135         * man/afmtodit.man: New file.
17136         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17137         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17138         in BINDIR.
17139         * ps/Makefile: Pass BINDIR to make install in devps.
17141         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17142         the space character.
17144         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17146 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17148         * ps/ps.c: Redo font downloading.
17149         * ps/devps/download: New file.
17150         * ps/devps/Makefile: Add download to DEVICEFILES.
17151         * ps/devps/afmtodit: Remove -d option.
17152         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17153         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17154         * ps/devps/zapfdr.ps: Likewise.
17155         * ps/devps/TSymbol.ps: Likewise.
17157 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17159         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17161 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17163         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17164         then strip the first line if it starts with %.
17165         * Makefile: Add a comment about this.
17167         * man/tfmtodit.man: New file.
17168         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17169         * dvi/Makefile: Install tfmtodit in BINDIR.
17171         * dvi/tfmtodit.c (usage): Mention -v option.
17173 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17175         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17176         * troff/node.c (troff_output_file::transparent_char): Don't call
17177         flush_tbuf.
17179         * eqn: Add check_tabs method to most box classes.
17180         * eqn/box.c (box::top_level): Call check_tabs.
17182         * eqn/script.c (script_box::output): Use \Z.
17183         * eqn/limit.c (limit_box::output): Use \Z.
17185         * eqn/box.c (box::top_level): Use itoa.
17187 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17189         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17190         * dvi/devdvi/Makefile: Don't make links to CW.
17192         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17193         HX, HD.
17194         * xditview/tmac.X: Likewise.
17196         * troff/node.c: Add font translation feature.
17197         (get_font_translation): New function.
17198         (symbol_fontno): Translate the font name.
17199         (mount_font_no_translate): Rename to mount_font to this.
17200         (mount_font): New function.
17201         (font_family::make_definite): Call mount_font_no_translate instead
17202         of mount_font.
17203         (mount_style): Translate the font name.
17204         (font_translate): New function.
17205         (init_font_requests): Bind "ftr" to font_translate.
17207         * ps/devps/prologue (SN): New procedure that rounds a position to
17208         the nearest (pixel + (.25,.25)).
17209         (DL): Use SN to round endpoints.
17211         * lib/version.c: Changed version to 0.5.
17213 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17215         * Makefile: Move definition of PAGE to the very beginning, so that
17216         people are less likely to miss it.
17218 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17220         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17222         * troff/env.c (environment::choose_breakpoint): Make `can't find
17223         breakpoint' error a warning of type WARN_BREAK.  Change message to
17224         `can't break line'.
17225         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17226         code 040000.
17227         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17228         WARN_BREAK in DEFAULT_WARNING_MASK.
17230         * tty/tmac.tty: Add definition of \(+-.
17232         * groff.sh: Remove `--' option to set command.
17234         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17236         * ps/devps/eqnchar: Better definition of cdot using md.
17237         * dvi/devdvi/eqnchar:  Likewise.
17238         * xditview/devX100/eqnchar:  Likewise.
17239         * xditview/devX75/eqnchar: Likewise.
17240         * eqn/lex.c: Add definition of cdot.
17242 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17244         * troff/input.c (get_optional_char): New function.
17245         * troff/input.c (set_page_character): Use get_optional_char(),
17246         rather than has_arg() and tok.get_char(1).
17247         * troff/env.c (tab_character, leader_character, hyphen_char,
17248         field_characters): Likewise.
17249         (margin_character): Likewise.  Also always delete the
17250         margin_character_node.
17252         * troff/input.c (token::get_char): Use token::description.
17254         * troff/input.c (has_arg): Don't skip over tab and \}.
17255         * troff/number.c (start_number): Give a warning if the number
17256         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17258 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17260         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17261         functions.
17262         (get_name, get_long_name): Use these.  Rename `warn' argument to
17263         `required'.
17265         * troff/node.c (get_fontno): Test that the symbol is not null.
17267         * troff/input.c (token::description): New function.
17268         * troff/number.c (parse_term): Use token::description in `numeric
17269         expression expected' message.
17270         * troff/groff.h: Add WARN_MISSING.
17271         * troff/number.c (start_number): New function.
17272         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17273         get_incr_number): Use start_number().
17274         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17275         default.
17276         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17277         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17278         token::descripion.
17279         * troff/input.c (token::get_char): Use WARN_MISSING.
17280         * troff/input.c (token::delimiter): Use token::description.
17281         * troff/env.c (environment_switch): Back out Aug 3 change.
17282         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17283         warning.
17284         * troff/token.h (token::tab): New function.
17285         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17286         * troff/reg.c (alter_format): Likewise.
17287         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17289 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17291         * troff (most files): Redo warnings. Divide warnings into various
17292         categories; warning() has an additional first argument indicating
17293         the category it falls into.
17294         * troff/input.c (main): -w now takes an argument. New option -W.
17295         (enable_warning, disable_warning): New functions.
17297         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17298         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17300 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17302         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17303         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17304         * xditview/devX75/eqnchar: Likewise.
17305         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17307         * eqn/other.c: When bar or over applies to a single character
17308         don't produce an overline_box or an underline_box. Instead produce
17309         an accent_box or an underaccent_box, with the accent a line
17310         whose width is accent_width.  New classes underaccent_box,
17311         overline_char_box and underline_char_box.
17312         * eqn/box.h: Move overline_box, underline_box, accent_box class
17313         declarations into eqn/other.c. Add declarations of
17314         make_underline_box, make_overline_box, make_accent_box.
17315         * eqn/eqn.y: Call make_overline_box, make_underline_box
17316         make_accent_box instead of constructors.
17317         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17319         * eqn/other.c: Add accent_box::~accent_box.
17320         * eqn/box.h: Declare it.
17322         * groff.sh: With -Tps, use eqn -D.
17324         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17325         rather than \l.
17326         (underline_box::output): Similarily.
17327         (accent_box::output): Use \Z.
17329         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17330         bit smaller.)
17332 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17334         * troff/div.c (top_level_diversion::transparent_output(unsigned
17335         char)): Use asciify.
17336         * troff/input.c (asciify): Don't make it static.
17337         * troff/token.h (asciify): Declare it.
17338         
17339         * troff/input.c (get_name, get_long_name, token::get_char,
17340         token::delimiter): Add an extra default argument which says
17341         whether a warning should be printed.
17342         * troff: Pass a non-zero argument to one of these rather than
17343         printing a warning directly.
17345 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17347         * troff: Consistently use symbol::is_null.
17349         * troff/dictionary.h: Move some inline functions into
17350         dictionary.c.
17352         * troff/request.h: Move inline functions into input.c.
17353         (request_or_macro::invoke): Make it pure.
17355         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17356         * troff/input.c (init_input_requests): Use class constant_int_reg.
17357         (class compatible_reg): Deleted.
17358         * troff/div.c (init_div_requests): Use class constant_int_reg.
17359         (class last_post_line_extra_space_reg): Deleted.
17361         * troff/env.c (tab_character): Don't change the tab character if
17362         we get an invalid argument.
17363         (hyphen_char): Similarily.
17365         * troff/reg.c (alter_format): Check that nm is not null.
17367         * Makefile, groff.sh: Make it possible to customize the commands
17368         used for printing PostScript and dvi files. Also make it possible
17369         to customize the path used by groff.sh.
17371         * eqn/eqn.y: Make `left' right associative.
17373 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17375         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17376         don't have it.
17378         * pic/pic.h: Removed definition of INT_MAX.
17380         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17381         `return'.
17383         * troff/input.c (token::next):  Handle \R like \n.
17385 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17387         * ps/tmac.pc (PSPIC): Simplify.
17389         * troff/env.c (tab_stops::to_string):
17390         * pic/pic.y (object_type_name):
17391         * pic/troff.c (simple_output::line):
17392         * pic/tex.c (tex_output::spline):
17393         * pic/object.c (object_spec::make_object):
17394         * tbl/main.c (process_data):  Add cases to switch statements to
17395         avoid cfront warnings. (Some of these are spurious, since the
17396         switch already has a default case.)
17398         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17399         `ps-'.  Don't test systat; instead check number of arguments to
17400         ps-bb.
17402 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17404         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17406         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17407         Unlink the file as soon as we have opened it, so that we don't
17408         have to bother with signal handlers.
17409         (handler): Deleted.
17410         (fatal_error_exit): Deleted.
17411         (main): Don't call signal.
17413         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17414         can be ignored.
17415         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17417         * pic/pic.y:  If there is a label, or an nth construction before
17418         the first `.' in the argument to `with', ignore it and generate a
17419         warning.
17420         * pic/lex.c (lex_warning): New function.
17422         * tbl/table.c (table::init_output): In section keep and release
17423         macro, use 0 indent when diverting and the correct indent when
17424         rereading.
17426         * troff/input.c (interpolate_number_format): Do not interpolate
17427         anything if the number register is not defined.
17429         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17431 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17433         * ps/devps/prologue (PICTURE): Set components of graphics state to
17434         their default values.
17436         * ps/devps/text.enc: Add trademark
17437         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17438         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17439         * ps/devps/symbolchars: Add names for summation and product.
17441         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17442         suchthat. Add pp. Add upper-case letters.
17444         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17445         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17446         Upsilon.
17448         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17449         rA (right angle bracket) to ra.  Introduce names for double-headed
17450         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17451         * ps/devps/textmap: Likewise for ps device.
17452         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17453         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17454         * tty/devascii/R.proto: Likewise.
17455         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17456         \(uA, \(dA.
17457         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17459         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17461         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17462         def_table.
17464 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17466         * troff/div.c (when_request): Use symbol::is_null rather than
17467         has_arg to determine whether we have an argument.
17468         (change_trap): Remove the trap if we get an invalid number. Give
17469         an error if we don't get at least the macro name.
17470         (diversion_trap): Remove trap if we get an invalid name or number.
17472         * troff/env.c (environment_switch): Pop if we get an invalid
17473         symbol or numeric expression.
17475         * troff/input.c (do_define_macro):  If EOF is encoutered while
17476         defining the macro, do tok.next() before returning.
17478         * troff/token.h (has_arg): Move definition from here, to ...
17479         * troff/input.c (has_arg): ... here
17481         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17482         * troff/input.c (shift): Likewise.
17484         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17485         for `.c'.
17487         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17488         `..'.
17490         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17491         interpret_lf_args succeeds.
17493         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17494         \\.  This avoids problems with \$N.
17496         * groff.sh: Pass -C to preprocessors.
17498         * lib/lf.c (interpret_lf_args):  Be more flexible.
17500         * tbl/main.c (main): Add -C option.
17501         (table_input::get): Do not recognize TE if followed by character
17502         other than a space or newline unless -C option given.
17503         (process_input_file): Likewise for lf, TS.
17504         (process_data): Likewise for lf in text blocks.
17506         * eqn/main.c (main): Add -C option.
17507         (do_file): Don't recognize EQ, EN or lf if followed by character
17508         other than space or newline unless -C option given.
17509         * eqn/lex.c (file_input::read_line): Similarily.
17510         * eqn/eqn.h: Declare compatible_flag.
17512         * etc/soelim.c (main): Add -C option.
17513         (interpret_lf_args): Use version in libgroff.
17514         (do_file):
17516         * pic/main.c (main): Add -C option, which sets compatible_flag.
17517         (top_input::get), (top_input::peek):  If -C option not given,
17518         do not recognize .PS/.PE/.PF/.lf if followed by a character
17519         other than space or newline.
17520         * pic/lex.c (file_input::read_line): Similarily.
17521         * pic/pic.h: Add declaration of compatible_flag.
17523 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17525         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17527         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17528         derived from node.  New class space_char_hmotion_node.
17529         * troff/input.c (asciify_macro): New function.
17530         * troff/input.c (init_input_requests): New request `asciify' bound
17531         to asciify_macro.
17532         * macros/mm.diff: New file.
17533         * Makefile:  In install.mm target use `patch' to apply
17534         macros/mm.diff.
17536         * troff/input.c (macro::print_size): Just print the size in bytes.
17538         * troff/div.c (return_request): Correct the argument
17539         interpretation.
17541 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17543         * troff/node.h (class composite_node): Add sz member.
17544         * troff/node.c (composite_node::size): Return sz.
17545         * troff/input.c (macro_to_node):  Use the initial size in the
17546         environment as the size of the composite_node.
17548         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17549         default.
17551 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17553         * troff/div.c (change_trap): If we get a bad number expression,
17554         do nothing.
17556 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17558         * lib/matherr.c (matherr): Define this only if math.h defines
17559         TLOSS.
17561 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17563         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17564         no diversion trap return vunits(INT_MAX - vresolution).
17566 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17568         * troff/input.c (do_zero_width): New implementation that doesn't
17569         use a temporary environment. Use instead:
17570         (token::add_to_node_list): New function.
17571         * troff/env.c (environment::get_prev_char_height),
17572         (environment::get_prev_char_height),
17573         (environment::get_prev_char_skew): New functions.
17574         (environment::get_prev_char): New function.
17575         (environment::get_prev_char_width): Change to use get_prev_char.
17576         (init_env_request): Implement new registers .cht, .cdp, .csk.
17577         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17578         \Z being processed in a separate environment.
17580 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17582         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17584         * tbl/table.c (table::init_output): In the section release macro,
17585         give a warning message if the section won't fit on one page.
17587         * tbl/table.c (table::do_top): Emit table keep only if table is
17588         boxed.
17589         (table::do_bottom): Likewise for table release.
17590         (table::table), (table::add_vertical_rule):  Remove reference to
17591         keep member.
17592         * tbl/table.h: Remove keep member.
17594         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17595         SECTION_RELEASE_MACRO, if there's not enough space before the next
17596         trap to output the diversion, call T# ourselves, set
17597         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17598         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17599         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17600         vertical position and return to it before turning traps on again.
17601         
17602 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17604         * troff/node.c, troff/node.h: In classes derived from node,
17605         replace prev_char_width method by last_char_node method.
17606         * troff/env.c (environment::get_prev_char_width): Use
17607         node::last_char_node rather than node::get_prev_char_width.
17609         * Makefile: Added comment about -fno-inline on 68030-based
17610         Apollos.
17612         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17613         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17614         expressions using sizeof to int.
17615         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17617         * macros/tmac.e (TS):  Don't move @f back past the current
17618         position.
17620 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17622         * ps/ps.c (main): Buffer stderr.
17623         * dvi/dvi.c (main): Likewise.
17624         * tty/tty.c (main): Likewise.
17626         * ps/ps.c (ps_printer::do_import): Improve error handling.
17628         * troff/input.c (abort_request): Use asciify.
17630         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17631         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17632         type of first argument int rather than char.  This works around a
17633         bug on the 68030 based Apollo using g++ 1.37.1.
17635         * tbl/table.h (class table): Add `keep' member.
17636         * tbl/table.c (table::table): Initialize `keep'.
17637         (table::add_vertical_rule): Set `keep' to 1.
17638         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17639         (table::do_bottom): Likewise for table release macro.
17640         (table::do_row): Emit section keep macro even if the row is 0.
17642 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17644         * macros/tmac.e (@C): Preserve the font family across the change
17645         in environments.
17647 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17649         * lib/font.c: Initialize font::hor and font::vert to 1.
17650         (font::load_desc): Check the values of font::hor and font::vert.
17652         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17653         be included in a C compilation.
17654         (iftoa): Use INT_DIGITS. Include lib.h.
17655         (itoa): Likewise.
17656         (as_string): Likewise.
17657         * tbl/table.c: Removed definition of INT_DIGITS.
17658         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17659         * troff/input.c (input_input_requests): Likewise.
17660         * ps/ps.c (make_encoding_name): Likewise.
17661         (ps_printer::set_style): Likewise.
17662         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17664         * tty/devascii/R.proto: Map fm onto '.
17665         * tty/devlatin1/R.proto: Likewise.
17667 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17669         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17670         argument to \w is at a different input level.
17672         * tbl/table.c (table::init_output): Define a new macro
17673         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17674         transparently outputs itself.
17675         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17676         vpt.
17677         (table::do_row): Likewise.
17679         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17680         TRANSPARENT_STRING_NAME.
17682         * tbl/table.c (table::init_output): In the table release macro
17683         print an error message and don't produce any output if after
17684         issuing the need request the table still will not fit.  Also
17685         remove the diversion after bringing it back.
17687         * tbl/table.c (table::init_output): Define a new macro
17688         REPEATED_MARK_MACRO, like mk but if in a diversion also
17689         transparently outputs itself.
17690         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17691         is necessary because .TH might not call .T#.
17692         (table::do_top): Likewise TOP_REG.
17693         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17694         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17695         table header might contain just the two top rules.
17697 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17699         * troff/div.c: Implement new request `ptr' to print all traps.
17701         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17702         init_string_env_reg.
17703         * troff/env.c (class tab_reg): Deleted.
17705 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17707         * troff/div.c: New number register .pn returns the number of the
17708         next page as set by the pn request.
17710         * macros/tmac.an: Redid headers and footers.  Number each manual
17711         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17712         optional 5th argument to .TH which specifies the manual name and
17713         appears in the center of the header.  Understand the X, P and D
17714         registers like Sun.
17716 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17718         * troff/env.c (init_env_requests): New number register `.lt' to
17719         return the title length.
17721         * troff/node.h (class transparent_dummy_node): New class.
17722         * troff/node.c (class transparent_dummy_node): Provide member
17723         functions. 
17724         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17725         than a dummy_node.
17727         * troff/input.c (token::next): New escape sequence \).
17728         * troff/input.c (get_copy): Recognize \) in copy mode.
17730         * troff/input.c (input_stack::clear): New function.
17731         * troff/input.c (exit_request): Use input_stack::clear.
17733         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17734         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17736         * troff/env.c: Move set_page_character to input.c.  Move
17737         page_character to input.c also.
17738         * troff/env.c (title): Split off the reading of the parts of the
17739         title into read_title_parts.
17740         * troff/input.c (read_title_parts): New function.  Check the
17741         input_level when testing whether a token matches the delimiter.
17743         * troff/input.c (exit_request): New function.
17744         * troff/input.c (init_input_requests): Bind ex request to
17745         exit_request rather than exit_groff.
17747         * troff/input.c (exit_groff): Call tok.next() before
17748         process_input_stack().
17750 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17752         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17753         * troff/env.h: ditto.
17754         * troff/input.c: ditto.
17756         * troff/env.c (environment::is_empty): Test pending_lines.
17758         * troff/env.c (environment::have_pending_lines): Removed.
17760         * troff/input.c: Add request to flush pending lines from the
17761         environment.
17763         * troff/env.c, troff/env.h: Add automatic widow control feature.
17765         * troff/input.c (exit_groff):  Do process_input_stack() after
17766         do_break() but before setting exit_flag to 2.
17768         * troff/input.c: Remove FLUSH_PENDING_LINES and
17769         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17770         environment after END_TRAP token seen, but only if there aren't
17771         any more traps still unfinished.
17772         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17774 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17776         * troff/env.c: Rename the `retain_size' member of class
17777         pending_output_line to `no_fill'.
17779         * troff/env.c (title): When the line is output, make the
17780         retain_size argument !fill.
17782         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17783         * troff/node.c (space_node::get_breakpoints),
17784         (dbreak_node::get_breakpoints):  Fill this in.
17785         * troff/env.c:  Allow specification of maximum number of
17786         consecutive hyphenated lines.
17788         * troff/env.c (environment::is_empty): Add test for !current_tab.
17790 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17792         * troff/env.c (environment::hyphenate_line): Don't completely give
17793         up if the word is not to be hyphenated; continue so that breaks
17794         can be made at break_char_node's.
17796         * lib/lib.h: Only define INT_MAX if it's not already defined;
17797         undef INT_MIN if it's already defined.
17799         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17801         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17802         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17803         compiler.
17804         
17805         * macros/tmac.an (an-header): Set no-space mode.
17807         * macros/tmac.an (TH): Start a new page if necessary.
17809         * Started using ChangeLog at version 0.4.
17811 Local Variables:
17812 version-control: never
17813 coding: latin-1
17814 End: