* doc/groff.css: New file.
[s-roff.git] / ChangeLog
blob14b938ce23a78f564a5c6b898fdbe26d51d6362f
1 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
3         * doc/groff.css: New file.
5         * doc/webpage.ms: Use `groff.css'.
6         Other small fixes.
8         * tmac/an-old.tmac (need_eo_h): New number register.
9         (TH): Emit `.eo.tl' tag after title.
10         (SH): Set `need_eo_h'.
11         (an-trap): Handle `need_eo_h'.
12         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
14         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
15         (TL): Always start diversion.
16         Updated.
17         (@AI): Always call `par@reset'.
18         (@AB): Update code for -Thtml.
19         (cov*tl-au-print): Handle -Thtml.
20         (par@reset): Handle `need_eo_tl', `need_eo_h'.
21         (@IP): Simplified.
22         (@IT-html): Removed.
23         (@SH): Set `need_eo_h' for -Thtml.
24         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
25         Set `need_eo_tl'.
26         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
27         Set `need_eo_h' for -Thtml.
28         (@EQ, @EN): Don't handle -Thtml specially.
29         (par@load-init): Don't handle -Thtml specially.
31         * tmac/www.tmac (www:paraspace): New macro.
32         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
33         (HTML</p>, HTML-TAG-NEXT): New macros.
34         (HnE): Emit tag `.eo.h' instead of break.
35         (HR): s/HTML-NS/HTML/.
36         (www-end-nowhere): End diversion only if `www-html' not set.
37         Emit `.eo.tl' tag.
38         (ULS, ULE): s|HTML|HTML</p>|.
39         (LI): Call `www:paraspace'.
40         (HEAD): New macro.
42 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
44         * src/roff/troff/request.h (macro): Make `p' public.
45         New variable `is_a_diversion'.
46         New member function `is_diversion'.
49         * src/devices/grohtml/html.h (simple_output): New member function
50         `force_nl'.
52         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
53         computation of `total'.
54         (tabs::check_init): New function.
55         (html_table::emit_table_header): Emit style data.
56         (html_table::insert_column): Improved.
58         * src/devices/grohtml/html-table.h: Updated.
60         * src/devices/grohtml/html-text.cpp (html_text::html_text):
61         Initialize `start_space' with TRUE.
62         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
63         cases.
64         (html_text::flush_text): Set `start_space' flag.
65         (html_text::uses_indent, html_text::remove_para_space,
66         html_text::get_alignment): New functions.
67         (html_text::push_para): Updated.
68         (html_text::do_para): Check for empty argument.
69         Don't set `space_emitted'.
70         (html_text::do_space, html_text::emit_space): Updated.
72         * src/devices/grohtml/html-text.h (tag_definition): New variable
73         `really_issued'.
74         (html_text): New member function `uses_indent', `remove_para_space',
75         `get_alignment'.
77         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
78         function.
79         (simple_output:nl): Always emit `\n'.
81         * src/devices/grohtml/post-html.cpp: Include `string.h'.
82         (BASE_POINT_SIZE): Removed.
83         (base_point_size, head_info): New global variables.
84         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
85         `is_eo_h'.
86         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
87         tags, respectively.
88         (page::add_and_encode): Pass additional parameter for tag flag.
89         (assert_pos): New structure.
90         (assert_state): New class.
91         (html_printer): Remove `indentation', `prev_indent'.
92         Add variables `troff_indent', `device_indent', `temp_indent'.
93         Add variables `seen_indent', `next_indent', `seen_pageoffset',
94         `next_pageoffset', `seen_linelenght', `next_linelength',
95         `seen_center', `next_center', `seen_space', `seen_break', `as'.
96         Add member functions `do_check_center', `do_space', `do_head',
97         `get_troff_indent', `restore_troff_indent', `handle_assertion',
98         `handle_state_assertion', `do_end_para', `set_char_and_width'.
99         Change argument to `do_fill' to `char *'.
100         Update constructor.
101         (html_printer::emit_raw): Call `shutdown_table'.
102         Use new functions.
103         (html_printer::do_center): Simplified.
104         (html_printer::do_title): Improved.
105         (html_printer::write_header): Emit one more newline.
106         Use new functions.
107         (html_printer::do_heading, html_printer::do_indent,
108         html_printer::do_eol, html_printer::do_tab_ts,
109         html_printer::do_tab, html_printer::do_tab0,
110         html_printer::calc_po_in, html_printer::next_horiz_pos,
111         html_printer::remove_courier_tabs,
112         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
113         Updated.
114         (html_printer::do_linelength, html_printer::do_pageoffset,
115         html_printer::do_indentation, html_printer::do_tempindent,
116         html_printer::do_tab_te): Simplified.
117         (html_printer::do_pointsize): Check whether point size is really
118         associated a `.tl' tag.
119         (html_printer::do_break): Rewritten.
120         (html_printer::troff_tag): Improved.
121         (html_printer::flush_globs): Updated.
122         (html_printer::lookahead_for_tables): Handle `is_br'.
123         Use new functions.
124         (html_printer::set_char): Check `sbuf_style.f'.
125         (html_printer::write_navigation): Use string comparison.
126         (html_printer::~html_printer): Emit `head_info'.
127         (html_printer::special): Rewritten.
128         (get_str, make_val): New functions.
129         (main): New option `s' to set the base point size.
131         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
133 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
135         * src/roff/troff/node.cpp: New extern `debug_state'.
136         Include `stringclass.h' and `mtsm.h'.
137         Implement new classes and class members from `node.h'.
138         (real_output_file): Make `fp' public.
139         (troff_output_file): New variables `cur_div_level' and `tag_list'.
140         Update constructors.
141         (troff_output_file::really_print_line): Check whether we should push
142         the current troff state and use the state at the start of the
143         invocation of this diversion.
144         (troff_output_file::add_to_tag_list): New member function.
145         (node::add_char): Handle `glyph_comp_np'.
147         * src/roff/troff/node.h: Include `mtsm.h'.
148         (node): New variables `state', `push_state', `div_nest_level',
149         `is_special'.  Update constructors, all descendants.
150         Pass additional argument to `add_char' member function.
151         New virtual member functions `is_tag', `debug_node',
152         `debug_node_list'.  Update all descendants.
153         (tag_node): New class for handling tags.
154         (output_file): Add variable `state'.
156 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
158         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
159         providing a minimal troff state machine to emit meta tags for the
160         post-grohtml device driver.
162         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
163         files.
165 2004-10-09  Werner LEMBERG  <wl@gnu.org>
167         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
169 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
171         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
173         * src/roff/troff/div.h: Include `mtsm.h'.
174         (diversion): New variables `any_chars_added', `needs_push',
175         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
176         `saved_suppress_next_eol', `modified_tag'.
177         New virtual member function `is_diversion'.  Update all descendants.
179         * src/roff/troff/div.cpp (diversion::diversion,
180         macro_diversion::macro_diversion): Updated.
181         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
182         `suppress_next_eol'.
183         (top_level_diversion::space): Handle `curenv->seen_space'.
184         (page_offset): Update tag handling.
185         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
187         * src/roff/troff/env.h (environment): Make `tabs' public.
188         Remove `ignore_next_eol', `emitted_node'.
189         Update `output_line', `output'.
190         New variables `seen_space', `seen_eol', `suppress_next_eol',
191         `seen_break'.
192         New member functions `construct_state', `make_tag',
193         `construct_format_state, `construct_new_line_state,
194         `dump_troff_state'.
195         Remove `add_html_tag', `make_html_tag'.
197         * src/roff/troff/env.cpp: New externs `suppress_push',
198         `get_diversion_state', `global_diverted_space'.
199         (pending_output_line): New variable `was_centered'.
200         Update constructor and all callers.
201         (pending_output_line::output): Call `curenv->construct_format_state'.
202         (environment::environment, environment::copy): Updated.
203         (environment::output): Handle `was_centered'.
204         (environment::add_char): Handle construct and diversion state.
205         (environment::add_node): Handle construct state.
206         (environment::newline): Handle `was_centered'.
207         (environment::output_line): Updated.
208         (environment::possibly_break_line): Updated.
209         Update tag handling.
210         (environment::add_html_tag): Replaced with...
211         (environment::make_tag): New function.
212         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
213         (environment::dump_troff_state): New debugging function.
214         (environment::construct_state, environment::construct_format_state,
215         environment::construct_new_line_state): New functions.
216         (environment::do_break): Updated.
217         Handle `global_diverted_space'.
218         (environment::handle_tag): Update tag handling.
219         (point_size, fill, do_break_request): Don't call `add_html_tag'.
220         (no_fill): Don't call `add_html_tag'.
221         Set `suppress_next_eol'.
222         (center, right_justify, line_length, indent, temporary_indent,
223         set_tabs):
224         Update tag handling.
226         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
227         (input_iterator): New variables `is_diversion', `diversion_state'.
228         Update constructors.
229         (input_stack): New member functions `get_div_level',
230         `get_diversion_state', `check_end_diversion'.
231         New variables `div_level', `diversion_state'.  Initialize them.
232         (suppress_push, global_diverted_space): New global variables.
233         (input_stack::finish_get, input_stack::finish_peek,
234         input_stack::remove_boundary, input_stack::end_file,
235         input_stack::clear, input_stack::pop_macro): Call
236         `check_end_diversion'.
237         (input_stack::push): Handle `div_level' and `diversion_state'.
238         (get_diversion_state): New function.
239         (diverted_space_node::reread): Handle `global_diverted_space'.
240         (macro::macro): Update constructors.
241         (macro::is_diversion): New function.
242         (macro::operator=): Set `is_a_diversion'.
243         (string_iterator): New member function `is_diversion'.
244         (string_iterator::string_iterator): Update constructors.
245         (string_iterator::fill): Set `div_nest_level'.
246         (macro_iterator): New member function `is_diversion'.
247         (do_if_request): Handle `suppress_push'.
248         (tag, taga): New functions.
249         (init_input_requests): Add `tag' and `taga' requests.
251 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
253         * src/include/font.h (font): New member function
254         `get_image_generator'.
255         New variables `unscaled_charwidths' and `image_generator'.
257         * src/libs/libgroff/font.cpp (font::get_width): Always return the
258         character's unscaled width if `font::unscaled_charwidths' is set.
259         (font::get_image_generator): New function.
260         (font::load_desc): Check the `unscaled_charwidths' and
261         `image_generator' keywords.
263         * src/libs/libgroff/fontfile.cpp: Initialize
264         `font::unscaled_charwidths' and `font::image_generator'.
266         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
268         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
270         * man/groff_font.man: Document `unscaled_charwidths' and
271         `image_generator'.
273         * src/preproc/html/pre-html.cpp: Include `device.h'.
274         (image_gen): New global variable.
275         (imageList::createPage): Use `image_gen'.
276         (main): Use `image_generator' keyword.
278 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
280         * tmac/html.tmac: Handle \[sqrtex].
282 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
284         * src/include/printer.h (printer): New virtual method `round_width'.
286         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
287         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
288         src/devices/grotty/tty.cpp (printer::round_width): New function
289         member.
291         * src/devices/grohtml/post-html.cpp (printer::round_width): New
292         function member.
293         (html_printer::set_numbered_char): Use it.
295 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
297         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
299         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
301         * configure: Regenerated.
303         * Makefile.in (GHOSTSCRIPT): New variable.
304         (MDEFINES): Add GHOSTSCRIPT.
306 2004-10-03  Werner LEMBERG  <wl@gnu.org>
308         * INSTALL.gen: Updated (taken from texinfo CVS).
310 2004-09-28  Werner LEMBERG  <wl@gnu.org>
312         * NEWS: Updated.
314 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
316         * tmac/groff_www.man: Revised and updated.
318 2004-09-26  Werner LEMBERG  <wl@gnu.org>
320         Fix \$@ and \$* to handle any number of arguments.
322         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
323         characters.
325         * src/roff/troff/input.cpp (input_iterator::internal_level):
326         Removed.
327         (input_stack): New member functions `increase_level' and
328         `decrease_level'.
329         (input_stack::get_level): Don't use `internal_level'.
330         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
331         (end_quote_iterator): Completely removed.
332         (interpolate_arg): Build string for \$@ and \$* which is then
333         pushed onto the input stack.
335 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
337         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
338         2004-09-19.
340 2004-09-23  Werner LEMBERG  <wl@gnu.org>
342         * tmac/an-old.tmac (ne): Using default scaling operator.
344 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
346         This change implements the following features:
348         PORPHANS
349           New numeric register: Defines number of lines following LP, PP,
350           QP, IP or XP, which must be kept together, before any automatic
351           page break.  If insufficient space remains on the current page, a
352           page break is forced before the new paragraph begins.
354         HORPHANS
355           New numeric register: Sets number of lines of following paragraph
356           which must be kept with a heading, defined by NH or SH, before any
357           automatic page break.  If insufficient space remains on the
358           current page, a page break is forced before the heading.
360         GROWPS
361           (Thanks to Joerg van den Hoff, for this idea).
363           New numeric register: Sets the first level of heading (set with
364           NH), which will keep the same point size as body text; e.g. if
365           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
366           point size specified by \n[PS], but .NH 2 and .NH 1 will have
367           progressively larger point sizes, determined by \n[PSINCR] (see
368           below).
370         PSINCR
371           New numeric register: Sets the point size increment for each level
372           of heading, (set with NH), below the threshold level set by
373           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
374           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
375           and all other levels will remain at 10pt, (because \n[PS] = 10).
377         SH
378           Existing macro now accepts a numeric argument, to make heading
379           size match that of NH with same argument value, when the
380           GROWPS/PSINCR feature is enabled.
382         SN-DOT
383           New string, set by NH macro, replaces the existing (undocumented)
384           use of SN, to represent the assigned section number.
386         SN-NO-DOT
387           New string, set by NH macro, represents the assigned section
388           number, but omits the terminal period (periods at intermediate
389           levels are retained).
391         SN
392           String set by NH macro, originally undocumented, now implemented
393           as an alias for SN-DOT (which reproduces original behaviour).
395         * tmac/s.tmac (PORPHANS): New register.
396         (par*start): Use it.
397         (HORPHANS, GROWPS, PSINCR): New registers.
398         (SH-NO-TAG, @SH): Use them.
399         (@NH): Improved.
401 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
403         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
404         of `Ds' and `De' macros.
406 2004-09-10  Werner LEMBERG  <wl@gnu.org>
408         In tbl, handle \a as an interpreted leader character if in
409         compatibility mode.
411         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
412         LEADER_CHAR): New macros.
413         (compatible_flag): New declaration.
415         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
416         LEADER_3, and LEADER_4 to `state'.
417         (table_input::get): Handle `\a'.
419         * src/preproc/tbl/table.cpp (PREFIX): Removed.
420         (LEADER_REG): New macro.
421         (table::init_output): Define LEADER_REG string register if in
422         compatibility mode.
424         * src/preproc/tbl/tbl.man: Document it.
426 2004-08-18  Werner LEMBERG  <wl@gnu.org>
428         * tmac/doc.tmac (An): Fix error message.
430 2004-08-06  Werner LEMBERG  <wl@gnu.org>
432         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
433         file can't be opened.  UNIX tbl has the same behaviour.
435 2004-08-05  Y T  <doarhop@hotmail.com>
437         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
438         (DBRead): If in compatibility mode, take into account the text
439         when computing figure boundaries.
441 2004-08-05  Werner LEMBERG  <wl@gnu.org>
443         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
444         from Tadziu Hoffmann.
446 2004-08-03  Werner LEMBERG  <wl@gnu.org>
448         * doc/meref.me: Document `_M' register.
450 2004-08-03  Martin Husemann  <martin@duskware.de>
452         Make hpftodit work correctly on big-endian systems.
454         * src/utils/hpftodit/hpftodit.cpp (File): New method
455         `get_uint32(char *)'.
456         (entry): New member `orig_value'.
457         (read_tags): Use new method.
458         (output_font_name, read_and_output_pcltypeface, dump_ascii):
459         Updated.
461 2004-08-01  Werner LEMBERG  <wl@gnu.org>
463         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
464         are already in X11's `macros.t' file.
466 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
468         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
469         Fix casting bug.
470         (read_and_output_pcltypeface): Handle strings with length <= 4.
472 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
474         * tmac/s.tmac (pg@top): Don't save `PO' register.
475         (pg*end-col, pg*end-page): Directly use `PO' register.
477 2004-07-27  Werner LEMBERG  <wl@gnu.org>
479         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
481         * src/preproc/refer/refer.cpp (output_references): Check for
482         empty hash table.
483         * src/preproc/refer/refer.man: Improve documentation of
484         `bibliography' command.
486 2004-07-26  Werner LEMBERG  <wl@gnu.org>
488         Add requests `fcolor' and `gcolor'.
490         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
491         New functions.
492         (init_env_requests): Add `fcolor' and `gcolor'.
494         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
496         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
497         Document new requests.
499 2004-07-24  Werner LEMBERG  <wl@gnu.org>
501         Add support for fractional point sizes in ms macros.  A value for
502         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
503         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
505         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
506         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
508         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
510 2004-07-19  Werner LEMBERG  <wl@gnu.org>
512         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
513         Update constructor.
514         (do_for, for_input::get, for_input::peek): Handle negative `by'.
515         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
517 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
519         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
520         * tmac/groff_mdoc.man: Updated.
522 2004-07-05  Werner LEMBERG  <wl@gnu.org>
524         * doc/groff.texinfo: Further improve documentation of `hcode'.
526 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
528         Improve appearance of arrows in pic.
530         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
531         arrow head thin.
532         Use two line segments for drawing non-filled arrow head.
533         (line_object::print, spline_object::print): Shorten line length to
534         avoid arrow sticking.
535         (arc_object::print): Take arrow direction into account.
537 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
539         * tmac/groff_www.man: Update documentation of .MPIMG.
541 2004-07-03  Werner LEMBERG  <wl@gnu.org>
543         * tmac/an-old.tmac (RI): Always start with font `R'.
544         (RI, IR): Properly end with font `R'.
546 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
548         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
549         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
550         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
551         Don't pass more than six arguments to .R, .I, .B, etc., for
552         compatibility with traditional troff macros.
554 2004-07-02  Werner LEMBERG  <wl@gnu.org>
556         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
557         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
558         Update all users.
559         (PUSH_COMP_MODE): New internal character constant.
560         Update all users.
562         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
563         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
564         (token::next, macro::append): Handle PUSH_COMP_MODE.
565         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
566         POP_GROFFCOMP after each of the decoded arguments to make them
567         independent from the compatibility mode status.
568         (comp_mode): Add `COMP_ENABLE'.
569         (do_define_string, do_define_macro): Handle COMP_ENABLE.
570         (define_string, append_string, define_macro, define_indirect_macro,
571         append_macro, append_indirect_macro): Handle `compatible_flag'.
572         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
574         * man/groff_diff.man, doc/groff.texinfo: Updated.
576 2004-07-01  Werner LEMBERG  <wl@gnu.org>
578         * doc/groff.texinfo: Improve documentation of `hcode'.
579         Use @documentencoding and convert document to latin-1; to do that
580         make latin characters active and assign proper macros (within a
581         @tex...@end tex environment).
582         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
583         * doc/Makefile.sub (groff): Ditto.
585 2004-06-29  Werner LEMBERG  <wl@gnu.org>
587         Implement two new conditional operators `F <name>' and `S <name>'
588         which check whether <name> is a valid font or style, respectively.
590         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
591         (text_file::text_file): Updated.
592         (text_file::error): Don't emit message if `silent' is set.
593         (font::load_font): Add optional third argument (which is directly
594         passed to `load'.
595         (font::load): Add optional second argument to check the header of
596         a font only, without emitting warning or error messages.
597         * src/include/font.h (font): Updated.
599         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
600         conditionals.
601         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
602         fourth argument to check a font without mounting.
603         (check_font, check_style): New functions.
604         * src/roff/troff/node.h: Updated.
606         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
607         Updated.
609 2004-06-27  Werner LEMBERG  <wl@gnu.org>
611         Implement new string-valued register `.sty' to return the current
612         style name.
614         * env.cpp (environment::get_style_name_string): New function.
615         (init_env_requests): Add `.sty' register.
616         * env.h (environment): Updated.
617         * node.cpp (font_info): Make `get_style_name' a friend.
618         (get_style_name): New function.
619         * node.h: Updated.
621         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
622         Updated.
624 2004-06-15  Werner LEMBERG  <wl@gnu.org>
626         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
627         `nospaces' option.
629 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
631         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
632         and \n[mo] to avoid dependency on current date.
634 2004-06-08  Werner LEMBERG  <wl@gnu.org>
636         * Makefile.sub (install_data): New target.
638 2004-06-04  Werner LEMBERG  <wl@gnu.org>
640         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
642 2004-06-03  Werner LEMBERG  <wl@gnu.org>
644         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
645         order of libraries.
646         (install_data): Add $(srcdir).
648         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
649         libraries.
651 2004-06-02  Werner LEMBERG  <wl@gnu.org>
653         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
654         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
655         Add test for Xmu library.
656         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
657         GROFF_APPRESDIR_DEFAULT): New macros.
659         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
660         and GROFF_APPRESDIR_DEFAULT.
662         * configure: Regenerated.
664         * Makefile.in (appresdir): New variable.
665         (MDEFINES): Add appresdir.
667         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
668         -Xt.
669         (install_data, uninstall_sub): New targets to handle GXditview.ad.
671         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
672         `$(srcdir)/eign', not `eign'.
674         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
676         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
677         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
678         Protect (g)xditview with `\%' to avoid hyphenation.
679         Other minor formatting.
681 2004-06-01  Werner LEMBERG  <wl@gnu.org>
683         Integrate gxditview into groff's standard directory hierarchy.
685         * src/xditview/*: Moved to ...
686         * src/devices/xditview/*: Here.
687         Moved DviChar.h and XFontName.h to src/include.
688         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
689         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
690         Moved xtotroff.c to new directory src/utils/xtotroff.
691         Provide proper Makefile.sub files (reusing the stuff from
692         Imakefile.in).
693         DESC renamed to DESC.in.
694         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
695         Converted everything from K&R to ANSI C.
696         Decorated with const where appropriate.
697         Cast string constants with `String' and `char *' where appropriate.
698         Made it compile with C++ (used as a C compiler).
699         Removed other minor compiler warnings.
701         * src/devices/xditview/device.c: Include config.h, string.h, and
702         defs.h.
703         Don't declare `exit', `strtok', `strchr', and `getenv'.
704         (FONTPATH): Remove.
706         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
707         `XFormatFontName'.
709         * src/devices/xditview/xditview.c: Include config.h.
710         Include stdio.h earlier.
711         Protect declaration of `popen' and `pclose' with
712         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
713         Replace `caddr_t' with `XtPointer'.
714         (MakePromptFunc): New typedef.
715         (DoPrint): Use RETSIGTYPE.
716         (promptfunction): Change type to MakePromptFunc.
717         (MakePrompt): Use MakePromptFunc for third argument.
718         (xmalloc): Removed.
720         * src/devices/xditview/ad2c: Add casts to `String'.
722         * src/include/XFontName.h (XFontNameString): Don't use array
723         notation.
724         Add prototypes for `XParseFontName', `XFormatFontName',
725         `XCompareFontName', and `XCopyFontName'.
727         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
728         `XFontName.h'.
730         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
731         Don't declare `XParseFontName' and `XFormatFontName'.
732         (xmalloc): Removed.
733         (main): Remove `optind' and `optarg'.
735         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
736         (to select programs which need X).
737         Make XDEVIDIRS depend on `FORCE'.
738         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
739         X support).
740         (MDEFINES): Updated.
741         (LIBDIRS): Use XLIBDIRS.
742         (CPROGDIRS): Use XPROGDIRS.
743         (DEVDIRS): Remove font directories for gxditview.
744         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
745         (EXTRADIRS): Remove src/xditview.
747         * Makefile.sub (DISCLEANFILES): Updated.
749         * Makefile.comm (LIBXUTIL): New variable.
750         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
751         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
753         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
755         * aclocal.m4 (GROFF_X11): New function.
757         * configure.ac: Call GROFF_X11.
758         Don't create src/xditview/Imakefile.
759         Don't emit notice how to build gxditview.
761         * configure: Regenerated.
763         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
765 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
767         * Makefile.in (CPPFLAGS): Define.
768         (MDEFINES): Add CPPFLAGS.
770 2004-05-27  Werner LEMBERG  <wl@gnu.org>
772         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
774 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
776         Fix problems with `friend name injections'.
778         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
779         make_script_box), src/roff/troff/div.h (end_diversions),
780         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
781         change 2004-04-08.
783 2004-05-25  Bernd Warken  <bwarken@mayn.de>
785         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
787 2004-05-25  Werner LEMBERG  <wl@gnu.org>
789         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
790         src/libs/libgroff/color.cpp: Include lib.h.
792 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
794         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
795         through Forte 6u1, and for how to get GNU make on Solaris.
797 2004-05-24  Werner LEMBERG  <wl@gnu.org>
799         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
800         by Paul Eggert.
802 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
804         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
805         rule.
807 2005-05-14  Werner LEMBERG  <wl@gnu.org>
809         * REVISION: Set to 2.
811         * aclocal.m4 (GROFF_STDINT_H): Removed.
812         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
814         * configure.ac: Updated.
815         * configure, src/include/config.hin: Regenerated.
817         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
818         inttypes.h conditionally.
820 2003-05-13  Werner LEMBERG  <wl@gnu.org>
822 Version 1.19.1 released
823 =======================
825 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
827         * src/preproc/refer/label.y (same_author_last_name,
828         same_author_name): Handle empty sort keys.
830 2004-05-10  Werner LEMBERG  <wl@gnu.org>
832         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
833         tmac/TODO: Updated.
835         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
836         doc-str-Lb-librt): Reset font.
837         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
838         Provide `doc-str-Lb' to reset font.
839         * tmac/groff_mdoc.man: Updated.
841 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
843         * src/preproc/html/pre-html.cpp (make_message): Make it work for
844         snprintf versions which don't conform to ANSI C 99 (this is,
845         counting the string's trailing null byte in the return value).
847 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
849         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
850         that all implementations of sprintf handle null pointers correctly.
852 2004-05-04  Werner LEMBERG  <wl@gnu.org>
854         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
855         Document `.U' register.
857         * src/roff/troff/env.cpp (environment::mark_last_line)
858         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
860 2004-05-04  Larry Kollar  <kollar@alltel.net>
862         New read-only register `.U'; it returns 1 in safer mode and 0
863         otherwise.
865         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
866         register.
868 2004-05-03  Werner LEMBERG  <wl@gnu.org>
870         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
872 2004-04-17  Werner LEMBERG  <wl@gnu.org>
874         * src/include/font.h (font): Use `int' for ch_index.
875         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
876         font::compact): Updated.
878         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
879         warnings.
881         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
882         (hyphen_word): Fix compiler warnings.
883         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
884         `char'.
885         Update all callers.
886         (get_delim_number, get_line_arg): Change second argument type to
887         `unsigned char'.
888         (macro_header::copy, token::next, do_define_string,
889         do_define_character, substring_request, asciify_macro,
890         unformat_macro, read_size, non_interpreted_node::interpret,
891         while_request, main: Fix compiler warnings.
892         (read_color_draw_node): Initialize `col'.
894         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
895         `start_col' and `end_col' of type `int'.
896         (vertical_rule): Make `col' of type `int'.
898         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
899         for EOF.
901         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
902         New arrays.
903         (format_serial): Use them to remove dependency on ASCII.
905         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
906         compiler warning.
907         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
908         Ditto.
910         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
911         compiler warnings.
912         (glyph): Change type of `hpos' to `int'.
914         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
915         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
917         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
919         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
921 2004-04-16  Werner LEMBERG  <wl@gnu.org>
923         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
924         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
925         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
926         `double' instead of `float' everywhere.
927         * src/preproc/grn/main.cpp: Use `double' instead of `float'
928         everywhere.
929         (main): Add return value.
930         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
931         everywhere.
932         Update all user functions.
934         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
935         src/preproc/eqn/box.h, src/preproc/pic/object.h,
936         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
937         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
938         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
939         src/roff/troff/input.cpp, src/roff/troff/request.h,
940         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
941         declarations.
943         * src/utils/indxbib/signal.c: Include stdlib.h.
945 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
947         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
948         before the first page.
950 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
952         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
953         (doc-operating-system-*): Updated.
954         * tmac/doc-syms (doc-str-St-*): Various small fixes.
955         (doc-str-Lb-*): Add more library names.
957 2004-04-10  Art Haas  <ahaas@airmail.net>
959         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
960         use anonymous type.
962 2004-04-09  Art Haas  <ahaas@airmail.net>
964         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
966 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
968         * arch/misc/shdeps.sh: Generate better comment for sed script.
970 2004-04-08  Art Haas  <ahaas@airmail.net>
972         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
973         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
974         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
975         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
976         (polyfill), src/preproc/grn/main.cpp (polyfill),
977         src/preproc/refer/command.cpp (command_table),
978         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
979         gcc 3.5 doesn't like).
981 2004-04-08  Werner LEMBERG  <wl@gnu.org>
983         Removing many compiler warnings.  groff should now compile with
984         a C++ compiler used for C files also.  [Simple variable renamings
985         to avoid shadowing aren't logged in detail.]
987         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
988         (draw_dvi_printer::draw) ['c']: Enclose in block.
990         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
991         (page::add_line): Fix typos.
992         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
994         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
995         Some local variable renamings.
996         * src/devices/grolbp/lbp.h: Some local variable renamings.
998         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
999         variable renamings.
1001         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1002         Remove redundant local variable declaration.
1003         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1004         Don't use `caddr_t' but `void *'.
1005         Enclose functions with `extern "C"' for C++.
1007         * src/libs/libdriver/input.cpp (remember_filename,
1008         remember_source_filename): Use cast for string constant.
1010         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1011         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1012         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1013         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1014         style.
1015         Enclose functions with `extern "C"' for C++.
1016         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1017         (needs_quoting): Return `int'.
1018         (quote_arg): Add proper casts to malloc and realloc.
1019         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1020         various MS Windows environments.
1021         (spawnvp_wrapper): Add proper cast to malloc.
1023         * src/preproc/eqn/box.h: Remove redundant declarations of
1024         `make_script_box', `make_mark_box' and `make_lineup_box'.
1025         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1026         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1027         variable renamings.
1029         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1030         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1031         (dx, dy): Renamed functions to...
1032         (deltax, deltay): This.
1033         * src/preproc/grn/main.cpp: Some local variable renamings.
1034         (deffont): Add `const'.
1035         (initpic, conv): Use cast for string constant.
1037         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1038         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1039         (char_buffer::run_output_filter): Second argument is unused.
1040         * src/preproc/html/pushback.cpp: Some local variable renamings.
1042         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1043         * src/preproc/pic/object.cpp: Some local variable renamings.
1045         * src/preproc/refer/label.y (lookup_label): Remove redundant
1046         declaration of local variable.
1048         * src/preproc/soelim.cpp: Remove redundant declaration of
1049         `interpret_lf_args'.
1051         * src/preproc/tbl/main.cpp: Some local variable renamings.
1053         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1054         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1055         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1056         Don't use C++-style comments.
1058         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1059         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1060         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1061         renamings.
1062         * src/roff/troff/div.h: Remove redundant declaration of
1063         `end_diversions'.
1064         * src/roff/troff/troff.h: Remove redundant declaration of
1065         `cleanup_and_exit'
1066         * src/roff/troff/input.cpp: Remove redundant declaration of
1067         `handle_first_page_transition' and `process_input_stack'.
1069         * src/utils/hpftodit.cpp: Some local variable renamings.
1071         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1072         for C++.
1073         Don't define RETSIGTYPE.
1074         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1076         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1077         (error): Use `const' in argument.
1078         (main): Remove redundant declaration of `optind'.
1079         Move declaration of `Version_string' to top-level.
1081         * PROBLEMS: Document difficulties compiling signal.c if a C++
1082         compiler is used for C.
1084 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1086         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1088 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1090         Make scripts like nroff.sh and neqn.sh portable across various
1091         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1092         non-POSIX path separators.  The idea is to extend those scripts to
1093         decide at run-time (of the script) which path separator to use.
1095         * arch/misc/Makefile.sub: New file.
1096         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1097         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1098         a proper definition of the variable `GROFF_RUNTIME'.
1100         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1101         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1102         (PROGDEPDIRS): New variable.
1103         `FORCE' it.
1104         (PROGDIRS): Add PROGDEPDIRS.
1106         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1107         Don't substitute @SEP@ and @BINDIR@.
1108         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1109         (PATH): Use GROFF_RUNTIME.
1111         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1112         Don't substitute @SEP@ and @BINDIR@.
1113         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1114         (PATH): Use GROFF_RUNTIME.
1116 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1118         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1119         Cygwin which doesn't handle stderr correctly.
1121 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1123         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1124         against empty argument.  Problem reported by <cgd@broadcom.com>.
1126 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1128         * Makefile.in (SEP): Replaced with...
1129         (RT_SEP, SH_SEP): Separators for the target platform's native path
1130         separator and the build environment, respectively.
1131         (fontpath, tmacpath): Use RT_SEP.
1132         (MDEFINES): Updated.
1134         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1135         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1136         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1137         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1139 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1141         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1142         reduce alignment problems with newer printers which use built-in
1143         TrueType fonts (instead of the older Intellifonts).  The ideal
1144         solution is to provide a second set of groff metric files, but this
1145         is extremely time-consuming to produce, given that HP's metric
1146         files are very rudimentary.
1148 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1150         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1151         s/operand/argument/ in error message.
1153 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1155         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1156         is in use.
1158 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1160         * tmac/s.tmac (XE): Fix error message.
1162 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1164         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1165         New macros.
1167         * src/roff/groff/pipeline.c: Declare strcasecmp.
1168         (run_pipeline) [_WIN32]: Use function name variants which don't
1169         start with `_'.
1170         Fix stream handling.
1172 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1174         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1175         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1176         for platforms which use the native Win32 runtime libraries.
1177         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1179         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1180         QUOTE_ARG_REALLOC_ERROR): Fix string.
1182         * src/preproc/html/pre-html.cpp: Remove declaration of
1183         `spawnvp_wrapper'.
1184         Don't use __MINGW32__.
1185         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1186         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1187         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1188         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1189         calls to `set_redirection' and `WAIT'.
1190         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1191         Fix calls to `set_redirection' and `save_and_redirect'.
1192         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1193         to `set_redirection' and `save_and_redirect'.
1194         (usage): Fix message.
1195         (makeTempFiles, main): Use `DEBUG_FILE'.
1197 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1199         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1201 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1203         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1204         quoting for MSVC's spawn* and exec* functions.
1205         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1206         spawnvp with proper quoting for MSVC.
1208         * src/libs/libgroff/assert.cpp (program_name),
1209         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1210         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1212         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1214         * src/include/error.h (program_name): Declare as `extern "C"'.
1215         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1217 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1219         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1220         spawnvp_wrapper.
1221         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1223 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1225         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1226         variable.
1227         (sbasename) [__MSDOS__ || ...]: New function.
1228         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1229         generic algorithm.
1230         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1231         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1232         of XXX.
1233         Use STDOUT_FILENO instead of hardcoded file handle.
1234         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1236 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1238         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1239         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1241 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1243         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1244         new font and mapping files.
1246 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1247             Keith Marshall  <keith.d.marshall@ntlworld.com>
1249         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1250         an input pipe.  This is needed for the MSVC compiler to make troff's
1251         `-o' option work.
1253         * src/roff/troff/div.cpp: Include nonposix.h.
1254         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1256 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1258         * font/devlj4/generate/special.awk: New script.
1259         * font/devlj4/generate/Makefile (S): Use special.awk.
1260         * font/devlj4/*: Regenerated, including the following new files:
1261         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1262         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1263         * NEWS: Document new lj4 fonts and revised hpftodit.
1265 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1267         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1269 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1271         * src/libs/libgroff/progname.cpp: Replaced with...
1272         * src/libs/libgroff/progname.c: New file.
1273         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1275 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1277         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1279 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1281         * font/devlj4/generate/wingdings.map,
1282         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1283         Use groff glyph names where possible.
1284         * src/devices/grolj4/lj4_font.man: Minor updates.
1286 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1288         * tmac/www.tmac (DC): Handle TTY devices.
1290         * doc/webpage.ms: Document viewCVS from ffii.org.
1291         * NEWS, README: Updated.
1293         * src/roff/groff/groff.man: Mention lj4_font man page.
1295         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1296         variables.
1297         (FONTS): Add SYMBOL and WINGDINGS.
1298         (SYMBOL, WINGDINGS): New targets.
1300 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1302         * src/devices/grolj4/lj4_font.man: New man page.
1303         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1304         * src/devices/grolj4.man: Mention lj4_font man page.
1306         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1307         * src/utils/hpftodit/hpftodit.man: Document it.
1308         (CW): New macro.
1309         Remove details about fonts (which are now in lj4_font.man).
1311         * font/devlj4/generate/symbol.map,
1312         font/devlj4/generate/wingdings.map: New files.
1314 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1316         * README: Mention ffii's viewcvs access.
1318 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1320         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1322 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1324         Revert most of the change from 2004-01-03 to better control used
1325         symbol sets.
1327         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1328         (text_symbol_sets, special_symbol_sets): New arrays.
1329         (symbol_set_table): New global variable.
1330         (read_symbol_sets): Use search order given in the text_symbol_sets
1331         and special_symbol_sets arrays.  If command line flag -a is not
1332         given, search both arrays.
1333         (output_charset): Require x_height_tag only for command line flag -i.
1335 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1337         Implement string-valued registers \n[.m] and \n[.M] to return the
1338         name of the current drawing and background color, respectively.
1340         * src/roff/troff/symbol.h: Moved to...
1341         * src/include/symbol.h: Here.
1342         Small fixes to make it work outside of the `troff' directory.
1343         * src/roff/troff/symbol.cpp: Moved to...
1344         * src/libs/libgroff/symbol.cpp: Here.
1345         Small fixes to make it work outside of the `troff' directory.
1347         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1348         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1349         Updated.
1351         * src/include/color.h: Include symbol.h.
1352         (color): Add new field `nm'.
1353         * src/libs/libgroff/color.cpp (color::color): Updated.
1355         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1356         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1357         src/roff/troff/reg.cpp: Don't include symbol.h.
1359         * src/roff/troff/env.cpp: Don't include symbol.h.
1360         (environment::get_glyph_color_string,
1361         environment_get_fill_color_string): New member functions.
1362         (init_env_requests): Handle `.m' and `.M' registers.
1363         * src/roff/troff/input.cpp: Don't include symbol.h.
1364         (default_symbol): Moved to symbol.cpp/symbol.h.
1365         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1366         to color constructor.
1367         * src/roff/troff/env.h: Updated.
1369         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1370         Document new registers.
1372 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1374         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1375         space_node::nbreaks): Protect against zero `next' field.
1377 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1379         In hpftodit, use the symbol sets offered in the TFM.
1381         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1382         (symbol_set, text_symbol_sets, special_symbol_sets,
1383         symbol_set_table): Removed.
1384         (get_printcode): Removed.
1385         (read_symbol_sets): Initialize `symbol_set' field with
1386         `NO_SYMBOL_SET'.
1387         Simplify code to just use the `kind' value.
1388         (output_charset): Improve output formatting.
1389         (dump_symbols): Simplified.
1391 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1393         * font/devlj4/generate/text.map: Add more MSL numbers.
1395 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1397         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1398         (text_symbol_sets): Add more symbol sets.
1399         (debug_flag): New static variable (moved from `main').
1400         (get_printcode, show_symset): New functions.
1401         (main): Remove `debug_flag'.
1402         (output_charset): Use `show_symset'.
1403         (dump_symbols):  Use `show_symset'.
1404         Print symsets for all glyphs.
1405         (read_map): Actually call `unicode_to_ucode_make' but this time
1406         correctly.
1408 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1410         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1411         Fix placement of comments.
1413 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1415         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1416         option `-d' is given.
1417         (output_charset): Improve warning messages to give more information.
1418         (dump_symbols): Make information more precise.
1419         (usage): Updated.
1420         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1421         appear as-is and shouldn't be decomposed.
1423 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1425         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1426         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1427         (FONTS): Add TrueType font families Arial and Times New Roman.
1428         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1429         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1430         `fl'.
1432 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1434         * test-groff.in (SEP): Quote value.
1435         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1436         `tem' to `char*' to avoid deallocation of a pointer to a constant
1437         object which some compilers don't like.
1439 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1441         * font/devlj4/generate (text.map, special.map): Rewritten to work
1442         with the new hpftodit version.
1444 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1446         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1447         set and 8bit character code for all glyphs also.
1449 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1451         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1453 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1455         More fixes for MSVC compiler.
1457         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1458         $(SEP).
1460         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1461         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1462         (getpid) [_MSC_VER]: Remove.
1463         Include direct.h and process.h conditionally.
1465         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1466         parentheses for a_delete.
1468         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1470         * test-groff: Replaced with...
1471         * test-groff.in: This new template to handle path separator
1472         properly.
1474         * configure.ac: Check for direct.h and process.h.
1475         Generate test-groff script.
1476         * configure, src/include/config.hin: Regenerated.
1478 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1480         Add integral extension glyph.
1481         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1483         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1485         * font/devps/generate/textmap: Provide entry for `integralex' to
1486         override (old) PUA value of the AGL.
1487         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1488         * font/devps/*: Regenerated.
1490         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1491         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1493 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1495         Add forgotten `coproduct' symbol (already available for DVI).
1497         * font/devhtml/R.proto, font/devps/generate/textmap,
1498         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1499         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1500         U+2210 (\[coproduct]).
1502 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1504         hpftodit has been extended to handle TrueType metric files and
1505         more glyphs.  See hpftodit.man for more details.
1507         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1508         ctype.h, and unicode.h.
1509         s/msl/charcode/ everywhere since we now handle Unicode values also.
1510         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1511         Use it where appropriate.
1512         (MULTIPLIER): Replaced with...
1513         (multiplier): New global static variable.
1514         (scale): Updated.
1515         (tag_type): Add more TFM tags.
1516         (tag_name): New array.
1517         (ENUM_TYPE, FLOAT_TYPE): Removed.
1518         (BYTE_TYPE): New value assigned.
1519         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1520         (text_symbol_sets, special_symbol_sets): Extended to cover more
1521         sets.
1522         (check_type): Add return value.
1523         (check_units): Add parameters to get ppi and upem values.
1524         Handle TrueType TFM data.
1525         (output_font_name): New function.
1526         (output_charset): Add parameter to handle TFM type.
1527         Handle TrueType TFMs also.
1528         (em_fract): New macro.
1529         (dump_tags): Be much more verbose and handle more tags.
1530         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1531         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1532         functions.
1533         (read_map): Add parameter to handle TFM type.
1534         Handle both MSL and Unicode mappings.
1535         (main): Add two new command line options `-a' and `-q'.
1536         Updated to make use of new functions.
1537         (usage): Updated.
1539         * src/utils/hpftodit/hpuni.cpp: New file.
1541         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1542         Updated.
1544 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1546         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1548 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1550         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1551         by Michail Vidiassov <master@iaas.msu.ru>.
1553 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1555         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1556         and u0049_0307.
1557         Add missing latin-2 glyphs.
1558         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1560         * tmac/troffrc: Load `composite.tmac' earlier.
1562         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1563         u00{53,73}_0327, and u0049_0307.
1564         * tmac/X.tmac: Add u00{47,67}_0306.
1565         * tmac/tty-char.tmac: Use composite glyph names for readability.
1567         * NEWS: Updated.
1569         * src/include/unicode.h: Remove `extern' keywords.
1571 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1573         * tmac/latin5.tmac: New file.
1575 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1577         Add some glyphs needed for Turkish.
1579         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1580         and u0049_0307.
1582         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1583         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1584         u00{53,73}_0327, and u0049_0307.
1586 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1588         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1589         from 2001-10-04.
1590         Remove trailing zeros.
1592 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1594         Make \? transparent to end-of-sentence recognition.
1596         * src/roff/troff/input.cc (non_interpreted_node): Add
1597         `ends_sentence' member function.
1599 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1601         * doc/groff.texinfo: Document `dt' request correctly.
1602         Other minor typographical improvements.
1604 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1606         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1608 2003-12-10  Richard Stallman  <rms@gnu.org>
1610         * LICENSE: Better wording.
1612 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1614         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1615         * configure, NEWS: Updated.
1617 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1619         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1621 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1623         * LICENSE: Updated.
1625 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1627         * INSTALL: Improved.
1629 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1631         Use path separator character of target platform for compiled-in
1632         default paths.
1634         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1635         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1636         * configure: Regenerated.
1637         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1639 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1641         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1642         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1644 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1646         * LICENSE: New file.
1648 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1650         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1651         ligatures present in AFM files since groff currently only
1652         understands some standard ligatures and nothing else.
1654 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1656         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1657         option -v is given.
1659         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1660         messages.
1661         Close stdout copy.
1662         Don't use Unix wait flags.
1664 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1666         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1667         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1668         src/roff/troff/uniuni.cpp: Moved to...
1669         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1670         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1671         src/libs/libgroff/uniuni.cpp: Here.
1673         * src/include/Makefile.sub.old (HDRS),
1674         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1675         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1677 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1679         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1680         `DEBUG_FILE'.
1681         Updated all users.
1683 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1685         * groff.texinfo: Document special behaviour of `.vs 0'.
1686         Improve documentation of `cflags' request.
1687         * NEWS: Updated.
1689 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1691         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1692         * font/devlj4/CORONET: Regenerated.
1694 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1696         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1697         if processing hyphenation patterns in traditional mode.
1698         Improve error messages.
1700 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1702         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1703         troff_output_file::put_char): Fix type of local variable `c'.
1705 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1707         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1708         declarations.
1709         (i_to_a): Removed.  libgroff already provides this function.
1710         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1712 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1714         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1715         HAVE_DECL_SYS_LIST.
1717 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1719         * COPYING: Use correct version.
1721 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1723         LynxOS 4.0.0 doesn't declare vfprintf.
1725         * configure.ac: Check for vfprintf.
1726         * configure: Regenerated.
1727         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1728         * src/include/config.hin: Regenerated.
1730 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1732         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1734         * configure.ac: Check for vsnprintf.
1735         * configure: Regenerated.
1736         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1737         `HAVE_VSNPRINTF'.
1738         * src/include/config.hin: Regenerated.
1740 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1742         * aclocal.m4: Updated syntax to autoconf 2.59.
1743         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1744         Don't check for gsos2.
1745         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1746         working abs_top_srcdir and abs_top_builddir.
1748         * configure.ac: Updated syntax to autoconf 2.59.
1749         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1750         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1751         * configure: Regenerated.
1753         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1754         s/@groff_top_builddir@/@abs_top_builddir@/.
1756         * src/roff/groff/pipeline.c (xstrsignal):
1757         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1759 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1761         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1762         make start angle smaller than end angle to circumvent a bug in tpic
1763         handling of some versions of dvipdfm (and dvipdfmx).
1765 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1767         * src/devices/grops/grops.man: Improve section on creating EPS.
1769 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1771         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1772         -P-pletter).
1774 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1776         * doc/groff.texinfo: Fix documentation of `.if'.
1778 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1780         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1781         the form `uniXXXX' also.
1783 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1785         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1786         contrib/pic2graph/pic2graph.sh: Implement secure management of
1787         temporary files.
1788         Pass `-P-pletter' to groff to avoid data outside of the converted
1789         area -- some versions of `convert' (for example 5.3.8) don't check
1790         the bounding box of the image but always use a fixed image size
1791         (letter paper format).
1792         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1793         contrib/pic2graph/pic2graph.man: Updated.
1795         * src/roff/groff/groff.man: Document $TMP and $TEMP.
1797 2003-10-26  Werner LEMBERG  <wl@gnu.org>
1799         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1800         troff_output::simple_ellipse, troff_output::simple_arc,
1801         troff_output::simple_line, troff_output::simple_spline,
1802         troff_output::simple_polygon): Insert a space before arguments.
1803         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1804         latter doesn't produce a node, so the following `.sp -1' would do
1805         the wrong thing.
1806         Don't emit `.sp -1' after \M.  This also doesn't produce a token
1807         (and we don't have to care about compatibility mode).
1808         (troff_output::set_color, troff_output::reset_color): Don't emit
1809         `.sp -1' after \M and \m.
1811         * src/roff/troff/input.cpp (old_have_input): New global variable.
1812         (input_stack::get): Handle `old_have_input'.
1813         (process_input_stack) <token::TOKEN_NEWLINE>: Call
1814         `trapping_blank_line' depending on `old_have_input', not
1815         `have_input'.
1817 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
1819         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1820         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1821         default directory names for temporary files.
1822         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1824         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1825         [__MSDOS__] (run_pipeline): Honour environment variables.
1826         Don't use `tmpnam' but `tempnam' to work around messy
1827         implementation.
1829         * README.MinGW: New file.
1831 2003-10-16  Werner LEMBERG  <wl@gnu.org>
1833         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1834         `(*t)->next' without testing validity of `*t'.
1835         (usage): Make it more readable.
1837 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
1839         Make html device run under both MS-DOS and Win32.
1841         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1842         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1843         spawn or fork+exec has to be used, and whether parent must sleep
1844         until the child process terminates.  Used in
1845         `char_buffer::run_output_filter'.
1846         (copyofstdoutfd): Removed.
1847         (char_buffer): Replace `write_file_html' and `write_file_troff'
1848         member functions with `emit_troff_output' and `run_output_filter'.
1849         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1850         macros.
1851         (replaceFd): Replaced with...
1852         (set_redirection): New auxiliary function.
1853         (waitForChild): Replaced with...
1854         (save_and_redirect): New auxiliary function for.
1856         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1857         functions.
1859 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1861         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1862         (GROFF_LIBC): New function.
1863         * configure.ac: Call GROFF_LIBC.
1864         Check for `kill'.
1865         * configure: Regenerated.
1867         * src/include/lib.h: Handle __MINGW32__.
1868         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1869         Add macro for `pipe'.
1870         Define P_tmpdir.
1872         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1873         correctly.
1875         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1876         Implement.
1878 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1880         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1881         <chuq@chuq.com>.
1883         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1884         directory.
1886 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1888         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1889         src/roff/troff/input.cc (usage): Updated.
1891         * NEWS, doc/groff.texinfo: Updated.
1893 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
1895         * src/libs/libgroff/searchpath.cpp
1896         (search_path::open_file_cautious): New function which also handles
1897         `-' as stdin and stdout depending on the access mode.
1898         * src/include/searchpath.h (search_path): Updated.
1900         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1901         * src/devices/grops/ps.h: Include `searchpath.h'.
1902         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1903         Open resource file with `include_search_path.open_file_cautious'.
1904         * src/devices/grops/grops.man: Document new `-I' switch.
1906         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1907         (main), src/devices/grolj4/lj4.cpp (main),
1908         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1910         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1911         Replaced with...
1912         (include_search_path): New global variable.
1913         (include_path_append): Removed.
1914         (main): Use `include_search_path.command_line_dir' to handle `-I'.
1915         (do_file): Simplify, using new
1916         `include_search_path.open_file_cautious'.
1918         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1919         parameter.
1920         (main): Pass arguments to `-I' to both troff and devices.
1921         Improve handling of `-V'.
1922         * src/roff/groff/groff.man: Document changes to -I and -V.
1924         * src/roff/troff/input.cpp (include_search_path): New global
1925         variable.
1926         (next_file, source, ps_bbox_request, transparent_file,
1927         process_input_file): Use new
1928         `include_search_path.open_file_cautious'.
1929         (main) Handle `-I' switch.
1930         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1931         Use new `include_search_path.open_file_cautious'.
1932         * src/roff/troff/node.h: New extern symbol `include_search_path'.
1933         * src/roff/troff/troff.man: Document new `-I' switch.
1935 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
1937         Support multiple calls of .Lb in LIBRARY section.
1939         * tmac/doc-common (doc-in-library-section): New register.
1940         (doc-section-library): New string.
1941         (Sh): Set `doc-in-library-section'.
1942         (Rd): Updated.
1943         * tmac/doc-syms (Lb): Insert breaks before and after arguments
1944         if in LIBRARY section.
1945         * tmac/doc.tmac (doc-save-global-vars): Updated.
1946         * NEWS, tmac/groff_mdoc.man: Updated.
1948 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
1950         * tmac/doc-common (doc-default-operating-system): New variable.
1951         (Os): Use it.
1953 2003-09-08  Werner LEMBERG  <wl@gnu.org>
1955         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1957 2003-08-31  Werner LEMBERG  <wl@gnu.org>
1959         * contrib/mom/Makefile.sub: Fix last change to make it really work.
1960         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1961         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1962         $(DEVFILES) are not empty.
1963         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1965 2003-08-26  Chuck Silvers  <chuq@chuq.com>
1967         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1968         with parallel runs of `make'.
1970 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
1972         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1973         insert SORT_SEP.  With certain combinations of sort specifications,
1974         refer sorted entries in the wrong order.  In particular, entries
1975         with a missing field should be be sorted before all entries that
1976         have that field, before refer looks to the next field.
1978 2003-08-23  Werner LEMBERG  <wl@gnu.org>
1980         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1981         g++ linker is used.  Reported by Mark J. Reed
1982         <mark.reed@turner.com>.
1984 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1986         Add key character `x' to tbl which makes tbl call a user-defined
1987         macro on a table cell.
1989         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1990         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1991         `set_modifier' after printing the compatibility request.
1992         (set_modifier): Print call to `m->macro' if not empty.
1993         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1994         `macro'.
1995         (process_format): Implement cases `x' and `X'.
1996         * src/preproc/tbl/tbl.man, NEWS: Updated.
1998 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2000         * doc/groff.texinfo: Minor fixes.
2002 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2004         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2006 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2008         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2009         argument list to nothing if there is no file to match.  Use `ls' as
2010         a protection, similar to autoconf.
2012         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2013         empty argument lists.
2015         * doc/groff.texinfo: Improve documentation how vertical spacing
2016         and line breaks interact.
2017         Other minor fixes.
2019         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2021 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2023         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2024         EPS (using eps2eps or similar programs to compute the bounding box).
2026 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2028         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2029         * doc/texinfo.tex: Updated from texinfo 4.6.
2030         * README.CVS: From now on we need texinfo 4.6.
2032 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2034         Add requests `dei1' and `ami1' for completeness.
2036         * src/roff/troff/input.cc (calling_mode): Remove
2037         CALLING_DISABLE_COMP.
2038         (comp_mode): New enumeration.
2039         (do_define_string, define_string, define_nocomp_string,
2040         append_string, append_nocomp_string): Updated.
2041         (do_define_macro): Add third parameter.
2042         (define_macro, define_nocomp_macro, define_indirect_macro,
2043         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2044         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2045         functions.
2046         (ignore): Updated.
2047         (init_input_requests): Add `dei1' and `ami1'.
2049         * tmac/trace.tmac: Handle de1 and am1.
2050         (de): Improve tracing message.
2051         (am): Add missing `do'.
2052         (return): Use de1.
2054         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2055         Document new requests.
2057 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2059         Add option -G to .MPIMG to insert a gap between text and the image.
2061         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2062         www-finish-left-ll): Updated.
2063         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2064         (MPIMG): Make option -L and -R optional.
2065         Implement option -G.
2067 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2069         * src/devices/grohtml/post-html.cpp
2070         (html_printer::do_file_components): Don't use `stdout' as lvalue
2071         since it can be a macro.
2073 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2075         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2076         the corresponding test in aclocal.m4.
2078 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2080         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2081         names but RGB values directly.  Otherwise pnmtopng depends on
2082         an external file `rgb.txt' which maps colour names to values.
2084 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2086         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2087         * configure, src/include/config.hin: Regenerated.
2089         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2091 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2093         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2095 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2097         * *.man: Switch to non-compatibility mode temporarily if GNU
2098         syntax extensions are used in the particular man page.
2100         * PROBLEMS: Add solutions for SGR problems.
2102 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2104         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2105         used to change the drawing scheme.
2107         * src/devives/grotty/tty.cpp (bold_flag_option,
2108         underline_flag_option, italic_flag_option, reverse_flag_option,
2109         bold_underline_mode_option): New global variables.
2110         (update_options): New function.
2111         (tty_printer::special): Call update_options.
2112         (main): Don't set xxx_flag but xxx_flag_option, then call
2113         update_options.
2115 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2117         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2119         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2120         values.
2121         (hline_char, vline_char): New global variables.
2122         (tty_printer::tty_printer): Initialize them.
2123         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2124         horizontal and vertical lines.
2125         (crossings): New global array.
2126         (tty_printer::end_page): Use it to determine the proper crossing
2127         character for -Tutf8.
2129 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2131         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2132         (HTMLDOCFILES): Revert to `pic.html'.
2133         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2135 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2137         * doc/pic.ms: Improve documentation of absolute coordinates.
2138         Document absolute positioning of pictures.
2140         * NEWS: Add new pic capability.
2142 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2144         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2145         Rewritten.
2147 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2149         Implement support for dashed and dotted ellipses in pic.  Based on
2150         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2152         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2153         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2154         functions.  Ellipse arcs are approximated with circle arcs.
2155         * src/preproc/pic/common.h (common_output): Updated.
2156         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2157         functions.
2158         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2160         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2162 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2164         Make grotty work on platforms which have unsigned char as the
2165         default for char.  Based on a patch by Thomas Klausner
2166         <wiz@netbsd.org>.
2168         * src/devices/grotty/tty.cpp (schar): New typedef.
2169         Updated calls to declare_ptable and implement_ptable.
2170         (glyph): Use schar for back_color_idx and fore_color_idx.
2171         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2172         (tty_printer::tty_color, tty_printer::tty_printer,
2173         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2175 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2177         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2178         * src/roff/nroff/nroff.man: Updated.
2180 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2182         * NEWS, tmac/groff_www.man: Updated.
2183         * doc/Makefile.sub: Updated.
2185 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2187         Implement support for multiple HTML output files.
2189         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2190         -j command line option.
2192         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2193         global variables.
2194         (file): New fields `new_output_file', `require_links',
2195         `output_file_name'.
2196         (file::file): Updated.
2197         (files::set_file_name, files::set_links_required,
2198         files::are_links_required, files::is_new_output_file,
2199         files::file_name, files::next_file_name): New functions.
2200         (header_desc): New fields `no_of_level_one_headings',
2201         `header_filename'.
2202         (header_desc::header_desc): Updated.
2203         (header_desc::write_headings): Handle multiple files.
2204         (html_printer::write_header): Save file name in which header occurs.
2205         (html_printer::determine_header_level): Possibly split files on
2206         level one headings.
2207         (html_printer::do_links, html_printer::troff_tag): Updated.
2208         (html_printer::insert_split_file, html_printer::do_job_name,
2209         html_printer::emit_link, html_printer::write_navigation,
2210         html_printer::do_file_components): New functions.
2211         (html_printer::~html_printer): Handle multiple files.
2212         (main): Handle command line option `-j'.
2214         * src/devices/grohtml/grohtml.man: Updated.
2216         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2217         which splits file.
2219         * tmac/www.tmac (JOBNAME): New macro.
2220         * tmac/s.tmac (SH-NO-TAG): New macro.
2221         (@SH): Call SH-NO-TAG.
2222         (@NH): Updated.
2224 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2226         * tmac/groff_mdoc.man: Improve documentation of punctuation
2227         characters.
2229 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2231         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2233 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2235         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2237 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2239         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2240         after `/*' and `*/'.
2241         Fix spacing.
2242         (Fn, Fo): Reduce indentation in synopsis.
2244         * tmac/doc-common (doc-check-depth): New macro.
2245         (doc-end-macro, Sh, Ss): Use it.
2246         (Cd): Fix behaviour in synopsis.
2247         (In): Make it parsed and callable.
2248         If not in the synopsis, represent the C header file enclosed in
2249         angle brackets.
2250         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2251         Use minus, not hyphen.
2253         * tmc/groff_mdoc.man: Updated.
2255 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2257         Integrated grap2graph, contributed by Eric S. Raymond.
2259         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2260         New files.
2261         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2262         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2264 2003-07-01  Colin Watson  <cjwatson@debian.org>
2266         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2267         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2269 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2271         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2273 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2275         * doc/Makefile.sub (CLEANADD): Remove all files created by
2276         running `make groff.{pdf,dvi}'.
2278         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2279         src/xditview also.
2281 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2283         * Makefile.in (SHELL): Define as @SHELL@.
2284         (mkinstalldirs): Use $(SHELL).
2285         (MDEFINES): Add $(SHELL).
2286         * Makefile.comm (SHELL): Removed.
2288 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2290         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2291         The X11 documentation files use them.
2292         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2294 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2296         * tmac/e.tmac (@C): Handle .ad also.
2298 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2300         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2302         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2303         Assign `n' even here.  It is possible to construct a node
2304         immediately following an escape character:
2306           .di xx
2307           \?\\\?a
2308           .br
2309           .di
2310           .xx
2312 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2314         * README.WIN32: Removed.
2315         * MANIFEST: Updated.
2317 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2319         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2321 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2323         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2324         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2326 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2328         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2329         is done by the calling function.
2331 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2333         * tmac/X.tmac: Fix definition of `em'.
2335 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2337         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2338         argument.
2340 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2342         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2343         to make items work which consist only of a tag.
2345 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2347         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2348         aren't stretched in a tag (this can fail with unformatted boxes).
2349         Instead, insert a break and go back one line.
2351 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2353         * src/roff/troff/input.cc (return_macro_request): If called with
2354         argument pop macro twice.  We need this to trace `return'.
2356         * tmac/trace.tmac: Handle `return'.
2357         Fix typos.
2359         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2360         Document.
2362 2003-05-15  Larry Kollar  <kollar@alltel.net>
2364         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2365         registers `FPS', `FVS', and `FPD'.
2367 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2369         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2370         correctly.
2372 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2374         * tmac/groff_mdoc.man: Slight improvements.
2376 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2378         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2379         `doc-header-space' after header line if register `cR' is set.
2381 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2383         * TODO: Updated.
2385 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2387         * tmac/doc-common (Nd): Use \[em].
2389 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2391         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2392         doc-footer-space): Initialize to 0.5i.
2393         (doc-setup-page-layout): Don't set doc-header-space and
2394         doc-footer-space.
2396 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2398         * REVISION: Set to 1.
2400         * doc/pic.ms: Document possible problems with `figname'.
2402 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2404 Version 1.19 released
2405 =====================
2407         * VERSION: Set to 1.19.
2408         * REVISION: Set to 0.
2409         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2411         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2412         Define charset as `US-ASCII' in html output.
2414         * tmac/www.tmac (ULE): Add missing scaling indicator.
2416         * win32-diffs: Removed.
2418 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2420         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2421         `.da' and `.boxa'.
2422         Document how to insert discardable whitespace with `.ss'.
2424 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2426         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2427         work with plain TeX also.
2429         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2431 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2433         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2434         Use a loose DTD.
2436 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2438         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2439         vbox with positive height and zero depth if in TeX mode.
2441         * NEWS: Document glyph name changes for grodvi and grolj4.
2443 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2445         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2446         * doc/pic.ms: Fixed.
2448 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2450         HP-UX 10.20 has `snprintf' but it isn't declared.
2452         * configure.ac: Add declaration test for snprintf.
2453         * configure: Regenerated.
2454         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2455         * src/include/config.hin: Regenerated.
2457 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2459         Add keyword `figname' to pic, specifying the name of the picture
2460         box in TeX mode.  Based on a patch from William J Poser
2461         <wjposer@unagi.cis.upenn.edu>.
2463         * src/preproc/pic/pic.y: New token `FIGNAME'.
2464         (macro_name): New rule of type <str>.
2465         (placeless_element): Handle `FIGNAME'.
2466         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2467         * src/preproc/pic/main.cpp (graphname): New global variable.
2468         (do_picture): Initialize `graphname'.
2469         * src/preproc/pic/pic.h: Updated.
2470         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2471         `graphname'.
2472         Simplify TeX code.
2473         (tex_output::text): Beautify output.
2474         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2475         `shaded' and `outlined' unconditionally.
2476         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2477         Minor improvements.
2479         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2480         greater is necessary.
2482 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2484         Add option -r to soelim to avoid emission of `.lf' lines.
2485         Add option -t to produces TeX comment lines instead of `.lf' lines.
2487         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2488         and `tex_flag'.
2489         (usage): Updated.
2490         (main): Handle `-r' and `-t'.
2491         (set_location): Handle `raw_flag' and `tex_flag'.
2492         * src/preproc/soelim/soelim.man, NEWS: Updated.
2494 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2496         * tmac/hyphenex.sh: Replaced with...
2497         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2498         nightmares.
2500         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2501         if --quiet is used for the configure script.
2502         * configure: Regenerated.
2504 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2506         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2507         Add `const' to second argument.
2508         (html_printer::add_table_end): Add `const' to argument.
2509         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2510         `const' to arguments.
2511         * src/devices/grohtml/html-text.h: Updated.
2513         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2514         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2515         argument.
2517         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2518         cast for integer constant.
2520         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2521         (writeNbytes): Add `const' to first argument.
2522         (writeString): Add `const' to argument.
2523         (char_buffer::can_see): Add `const' to third argument.
2524         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2525         `const' to argument.
2526         * src/preproc/html/pushback.h: Updated.
2528         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2529         (include_path_append): Add `const' to argument.
2530         (do_file): Updated.
2532         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2533         for `value'.
2534         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2535         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2536         for `value'.
2537         (unicode_decompose_init::unicode_decompose_init): Updated.
2538         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2539         for `value'.
2540         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2541         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2542         argument.
2544         * tmac/hyphenex.sh: Make script more portable by using a here
2545         document.
2547 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2549         Renamed all `*.cc' files to `*.cpp'.
2550         Updated all configuration files, makefiles, and documentation.
2552 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2554         * tmac/hyphenex.sh: Slight improvements.
2556 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2558         * font/devascii/R.proto, font/devcp1037/R.proto,
2559         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2560         character slots with unnamed glyphs.
2562         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2563         (an-first): New global variable.
2564         (an-header): Emit vertical space between multiple man pages.
2566 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2568         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2569         values.
2571 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2573         * PROBLEMS: Revised.
2575 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2577         * doc/webpage.ms: Improved.
2579 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2581         Add register \n[.height] which returns the value of \H.
2582         Add register \n[.slant] which returns the value of \S.
2584         * src/roff/troff/env.cc (init_env_requests): Implement.
2585         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2586         Document.
2588 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2590         * tmac/html.tmac: Move some of the data into html-end.tmac.
2591         Remove most of the character translations for eqn since html fonts
2592         now cover those characters.
2593         Load www.tmac.
2594         * tmac/html-end.tmac: New file.
2595         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2596         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2597         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2599 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2601         * man/groff_out.man: Document negative values of `N' if -Thtml is
2602         used.
2604 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2606         * Makefile.comm (depend.temp): Check location of YTABC.
2608 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2610         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2611         binary path.
2612         (groff_bin_path): Rename to GROFF_BIN_PATH.
2613         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2614         * doc/Makefile.in (TROFFBIN): New variable for troff
2615         binary path.
2616         (GROFFBIN): New variable for groff binary path.
2617         (groff_bin_path): Rename to GROFF_BIN_PATH.
2618         (TROFF): Use TROFFBIN.
2619         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2620         * doc/Makefile.sub (GROFFBIN): New variable for groff
2621         binary path.
2622         (groff_bin_path): Rename to GROFF_BIN_PATH.
2623         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2625         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2626         with INSTALL_SCRIPT.
2627         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2628         * Makefile.dev (all): Depend on DEVSCRIPTS.
2629         (install_dev): Likewise.
2630         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2631         scripts.
2632         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2633         (DEVGENSCRIPTS): New variable to hold generated scripts.
2635 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2637         * src/libs/libdriver/input.cc (IntArray::operator[],
2638         IntArray::get_data): Remove meaningless `const' in return value.
2640         * README.CVS: New file.
2642 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2644         Check for stdint.h in C++, not in C.
2646         * aclocal.m4 (GROFF_STDINT_H): New function,
2647         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2648         AC_CHECK_HEADERS.
2649         * configure, src/include/config.hin: Regenerated.
2650         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2653         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2654         with a negative value, representing the width of the unbreakable
2655         space (only for -Thtml).  grohtml then converts this back to
2656         &nbsp; and uses the value of N as its width.
2658         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2659         unbreakable_space_node::tprint): Emit `N-<width>'.
2660         * src/include/printer.h (printer::set_numbered_char): Make it
2661         virtual.
2662         Make members `font_table' and `nfonts' protected instead of private.
2663         * src/devices/grohtml/post-html.cc
2664         (html_printer::set_numbered_char): New member function.
2667         * src/libs/libgroff/maxfilename.cc:
2668         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2670         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2671         emit word marker.
2673 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2675         * man/roff.man: Small fixes.
2677 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2679         Make groff independent from locale's numeric settings.
2681         * configure.ac: Check for `setlocale'.
2682         * configure, src/include/config.hin: Regenerated.
2684         * src/include/lib.h: Handle HAVE_SETLOCALE.
2686         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2687         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2688         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2691         * doc/groff.texinfo: Change dir category to `Typesetting'.
2692         (Man font macros): Mention that there is no space between arguments
2693         of .BI and friends.
2695         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2696         (*printer::change_color, *printer::change_fill_color): Add missing
2697         `const'.
2699 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2701         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2702         html_table::is_gap): Compute table widths after converting border
2703         positions to avoid rounding errors.
2705 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2707         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2708         `space_emitted' properly.
2710 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2712         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2713         (html_table::set_linelength): Don't add 1.
2714         (html_table::add_indent): Don't subtract 1.
2716         * tmac/html.tmac: Set default page offset to zero.
2718 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2720         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2722         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2723         unbreakable_space_node::tprint): New functions.
2724         (troff_output_file): Make space_char_hmotion_mode::tprint and
2725         unbreakable_space_node::tprint to friends.
2726         * src/roff/troff/node.h: Updated.
2728         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2729         in the HTML standard).
2731 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2733         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2734         Otherwise, the following code
2736           .di xxx
2737           .ps 10
2738           a
2739           .br
2740           .di
2741           x\*[xxx]
2743         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2744         font changes in diversions for -Thtml.
2746         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2747         `HTML-TAG'.
2748         (an-do-tag-html): Merge with ...
2749         (an-do-tag): This macro.
2750         Change code slightly to circumvent grohtml bug.
2751         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2753         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2754         html_table::is_gap): Round `width' properly.
2756         * tmac/html.tmac: Provide some default layout parameters for
2757         grohtml.
2759         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2760         command.
2762 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2764         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2766 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2768         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2769         defined.
2771 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2773         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2774         `.vs'.
2775         * doc/groff.texinfo: Updated.
2777 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2779         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2780         TOKEN_END_TRAP>: Reset `have_input'.
2782 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2784         * src/roff/groff/groff.man: Mention groff_trace man page.
2786 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2788         * Makefile.in (LIBEXT): New variable to indicate the file extension
2789         of library files.  Computed heuristically from $(OBJEXT).
2790         (MDEFINES): Add $(LIBEXT).
2791         * Makefile.lib, Makefile.comm: Use it.
2793         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
2794         overlong lines into smaller chunks.
2795         (get_binary): New function.
2796         (main): Use them.
2797         * src/utils/pfbtops/pfbtops.man: Updated.
2799 2003-03-15  Colin Watson  <cjwatson@debian.org>
2801         * src/roff/groff/groff.man: Minor syntax fix.
2803 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
2805         * src/devices/grops/ps.cc (ps_printer::media_set,
2806         ps_printer::~ps_printer): Handle zero paper width and length.
2808 2003-03-13  Werner LEMBERG  <wl@gnu.org>
2810         Add options -p and -l to grodvi.
2812         * src/devices/grodvi/dvi.cc: Include paper.h.
2813         (landscape_flag, user_paper_length, user_paper_width): New global
2814         variables.
2815         (dvi_printer::begin_page): Emit `papersize' special.
2816         Set color after initialization of `cur_h' and `cur_v'.
2817         (main): Add options `-l' and `-p'.
2818         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2819         * src/devices/grodvi/grodvi.man, NEWS: Updated.
2821         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2823 2003-03-12  Werner LEMBERG  <wl@gnu.org>
2825         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2826         * man/groff_tmac.man: This man page.
2827         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2828         deprecated.
2830         * tmac/X.tmac: Don't load pspic.tmac.
2832 2003-03-11  Werner LEMBERG  <wl@gnu.org>
2834         Make variable `pr' local to libdriver/input.cc.  Based on a patch
2835         by Bernd Warken <bwarken@mayn.de>.
2837         * src/include/driver.h (pr): Removed.
2839         * src/libs/libdriver/input.cc (pr): New global variable.
2840         (do_file): Deallocate `pr'.
2841         * src/libs/libdriver/printer.cc (pr): Removed.
2843         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2844         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2845         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2846         (main): Don't delete `pr'.
2848 2003-03-10  Werner LEMBERG  <wl@gnu.org>
2850         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2851         * tmac/papersize.tmac: New file.
2852         * tmac/troffrc: Include `papersize.tmac'.
2853         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2854         * tmac/an-old.tmac: Set LT to LL by default.
2856         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2857         doc/groff.texinfo: Updated.
2859         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2860         bug which caused all odd iso papers to have wrong dimensions.
2862         * src/devices/grops/ps.cc (user_paper_width): New global variable.
2863         (main) <'p'>: Set `user_paper_width' also.
2864         (ps_printer::media_width, ps_printer::media_height): Use values
2865         given with option `-p'.
2867 2003-03-09  Werner LEMBERG  <wl@gnu.org>
2869         * src/include/nonposix.h: Provide default for SET_BINARY.
2871         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2872         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2873         unconditionally.
2875         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2876         (main): Treat \r\n as \n.
2878 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2880         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2881         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2883 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2885         Added support to access more than 256 glyphs in Type 1 fonts.
2887         * src/devices/grops/ps.cc (subencoding): New structure.
2888         (style): Add `sub' field.
2889         Updated all users.
2890         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2891         Add `set_subencoding', `get_subfont' and `encode_subfont' member
2892         functions.
2893         Updated all users.
2894         (ps_printer::set_char): Use `set_subencoding'.
2895         (make_subencoding_name): New function.
2896         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2897         (ps_printer::~ps_printer): Emit subencoding definitions.
2899         * src/devices/grops/psrm.cc (valid_input_table): New array to
2900         properly support EBCDIC.
2901         (white_space): Add `\f'.
2902         (ps_get_line): Change first argument to be of type `string &'.
2903         Updated all callers.
2904         This allows to get lines of arbitrary length.
2905         Use `valid_input_table'.
2906         Remove warning about non-conforming PS line length.  This seems
2907         not to be of great importance -- for example, dvips don't emit
2908         a warning either.
2909         (PS_LINE_MAX): Removed.
2910         (matches_comment): Change first argument to be of type `string &'.
2912         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2914         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2915         %AGL_to_unicode, %default_ligatures): New hash tables.
2916         Read all map entries.
2917         Add unencoded characters.
2918         Check for default ligatures if there are no `L' entries.
2919         Print all kern entries.
2920         Print all characters in charset.
2921         * src/utils/afmtodit/afmtodit.man: Updated.
2923         * font/devps/*: Regerated all fonts.
2925         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2926         of characters, just use `.trin'.  Otherwise the mapping depends
2927         on the font encoding.
2928         * tmac/ps.tmac: Add `fi' and `fl'.
2929         Improve `Fi' and `Fl'.
2930         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2931         * tmac/Xps.tmac: Fix `em'.
2933         * NEWS: Updated.
2935 2003-03-04  Werner LEMBERG  <wl@gnu.org>
2937         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2938         `have_input'.
2940 2003-03-03  Werner LEMBERG  <wl@gnu.org>
2942         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2944         * font/devps/generate/textmap: Remove entry `similarequal'.
2945         * font/devps/symbolmap: Updated.
2947 2003-03-02  Werner LEMBERG  <wl@gnu.org>
2949         * src/libs/libgroff/font.cc (font::load): Fix error message for
2950         bad character type.
2952         * src/devices/grops/grops.man: Improve documentation of the -b
2953         flag.
2955         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2956         `ascii' and `cp1047'.
2958 2003-03-01  Werner LEMBERG  <wl@gnu.org>
2960         Document composite glyphs and the `composite' request.
2962         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2964 2003-02-28  Werner LEMBERG  <wl@gnu.org>
2966         * font/devdvi/generate/ec.map: Add some more Unicode entities.
2967         * font/devdvi/*EC: Updated.
2969         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2970         * tmac/latin1 (latin1-tr): Undo any previous mapping.
2971         * tmac/troffrc: Load `composite.tmac'.
2972         * tmac/Makefile.sub (NORMALFILES): Updated.
2974         * doc/groff.texinfo (Input Encodings): New section.
2975         * NEWS: Updated.
2977 2003-02-27  Werner LEMBERG  <wl@gnu.org>
2979         * doc/texinfo.tex: New version 2003-02-11.06.
2981         * tmac/doc-common (Dt): Don't emit warning for unknown section.
2982         * tmac/groff_mdoc.man: Fix description of `Dt'.
2984 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
2986         * font/devps/prologue.ps: Fix for included Postscript that does
2987         a setpagedevice -- which is now safely ignored.
2989         * NEWS: Updated.
2991         * src/devices/grops/ps.cc: Now sets the page size in the generated
2992         document.  This is done in two ways: Via a %%-comment for gv and
2993         the like, and via a PageSize and setpagedevice for programs that
2994         understands Postscript proper, like ps2pdf.
2996         * src/devices/grops/ps.h: New broken-flag to avoid page size
2997         definition, if required.
2999         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3001         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3002         Not really necessary due to the fix in prologue.ps, but cleaner:
3003         Such information does not belong in an .eps file.
3005         * doc/Makefile.sub: See doc/Makefile.in.
3007 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3009         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3010         instead of P1 since the latter is broken in some versions of netpbm.
3011         * configure: Updated.
3013 2003-02-26  Larry Kollar  <kollar@alltel.net>
3015         Make man pages more customizable.
3017         * tmac/an-old.tmac (FT): New register holding footer distance from
3018         bottom.
3019         (HF): New string holding the default heading font.
3020         (TH): Handle registers `IN' and `SN' set on the command line.
3021         Use `FT'.
3022         (PT, BT): New strings to customize header and footer lines.
3023         (an-header, an-footer): Use them.
3024         (SH, SS): Use `HF'.
3025         * tmac/groff_man.man: Document changes.
3027         * doc/groff.texinfo: Document man changes.
3028         Document Ultrix extensions of man.
3030 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3032         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3033         `have_input' after changing back to old environment.
3035         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3036         function up to be defined before first call.  This is necessary to
3037         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3039         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3040         the default font directory also.  Based on a patch from James
3041         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3042         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3043         * src/utils/afmtodit/afmtodit.man: Document it.
3045         * NEWS: Updated.
3047         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3049 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3051         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3052         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3053         * configure.ac: Use it.
3054         * configure: Regenerated.
3055         * Makefile.in: Updated.
3057         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3058         (CLEANADD): Add www.tmac-sed.
3059         (pnmtops_nosetpage): Define default.
3060         (install_data): Handle www.tmac-sed and substitute
3061         @PNMTOPS_NOSETPAGE@.
3062         (stamp-sed): Add www.tmac.
3063         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3064         It now breaks URLs at suitable places.
3065         (www:substring_ok): New register set by...
3066         (www:@test_substring): New macro.
3067         (www:error): New alias to www-error.
3068         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3069         New macros.
3070         (URL): Use www:url_breaks.
3071         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3072         (CDS, CDE): New macros.
3074 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3076         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3077         buffer overflow.
3079 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3081         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3082         can be negative also.
3084         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3085         `int16'.
3086         (read_char_table): Avoid negative ascenders.
3087         (output_charset): Add cast.
3088         * font/devlj4/*: Regenerated.
3090         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3091         possible.
3093         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3094         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3095         of `<>'.
3096         * font/devdvi/*: Regenerated.
3098         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3099         normal width, while the previously used characters (U+2329 and
3100         U+232A) are classified as wide due to canonical equivalence with the
3101         CJK punctuation characters U+3008 and U+3009.
3103         * font/devutf8/R.proto: Updated.
3104         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3106         * man/groff_char.man: Simplify handling of table traps by
3107         introducing `start block' and `end block' macros.
3108         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3109         (DL): Make it work with Unix troff also.
3110         Fix code values of `la' and `ra'.
3112         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3114 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3116         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3117         New destructor, fixing a major memory leak.
3119 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3121         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3122         to be in conformance with Unicode 3.0 and newer.
3124         * font/devlj4/generate/text.map: Add `Eu'.
3125         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3126         * font/devlj4/S: Regenerated.
3128         * man/groff_char.man: Completely rewritten.
3130         * doc/groff.texinfo: Fix description of request and macro arguments.
3132 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3134         Valgrind fixes.
3136         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3137         Deallocate `columns' list.
3138         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3139         New destructor.
3140         (text_glob::text_glob_html, text_glob::text_glob_special,
3141         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3142         text_glob::text_glob_tag): Avoid memory leaks.
3143         (text_glob::remember_table): Free memory before reassigning.
3145 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3147         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3148         alias `hbar'), the Planck constant over two pi.
3150         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3151         `+e' for position 34.
3152         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3153         `u2662' and `u2661'.
3154         * font/devdvi/{MI,S}: Regenerated.
3155         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3156         * font/devlbp/*: Add `hbar' alias.
3157         * font/devlj4/generate/special.map: Ditto.
3158         * font/devlj4/S: Regenerated.
3159         * font/devps/generate/symbolchars: Add `+e'.
3160         * font/devps/generate/textmap: Fix PS name for `-h'.
3161         Add `hbar' alias.
3162         * font/devps/symbolmap: Regenerated.
3164         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3166         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3167         `-h', `hbar'.
3168         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3169         `-h'.
3171         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3172         `hbar'.
3173         * tmac/tty-char.tmac: Add `+e'.
3175 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3177         Another round trying to really fix problems with `have_input'.
3179         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3180         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3182         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3183         handling if both foreground and background colors are default.
3185         * doc/groff.texinfo (Debugging): Document .lf differences to
3186         AT&T troff.
3188 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3190         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3191         null-bytes in created string.
3193         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3194         alias_macro, lookup_request): Improve warning messages.
3196         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3197         not `strdup'.
3198         Free `last_image_filename'.
3200         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3201         `buffer'.
3202         (imageList::createPage, imageList::createImage): Use `free', not
3203         `a_delete'.
3204         (imageItem::~imageItem): Free `imageName'.
3205         (addRegDef): Use `strsave', not `strdup'.
3206         (get_resolution): Free `pathp'.
3208 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3210         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3211         to `dummy'.
3213 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3215         Add memory management for colors to deallocate unnamed colors
3216         properly.
3218         * src/include/color.h (color): New members `free_list' and `next'.
3219         New member functions `new' and `delete'.
3220         Add destructor.
3221         * src/libs/libgroff/color.cc: Implement it.
3223         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3224         for array size of new operator.
3226         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3227         redundant comparison.
3229         * src/roff/troff/input.cc (word_space_node::reread,
3230         hmotion_node::reread): Avoid warning about unused parameter.
3231         (reset_output_registers): Remove redundant parameter.
3232         (define_color): Undo change 2003-02-12.
3234         * src/roff/troff/reg.h: Updated.
3236         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3237         output_file::put_filename, real_output_file::really_put_filename,
3238         ascii_output_file::really_print_line,
3239         break_char_node::get_hyphen_list): Avoid warning about unused
3240         parameter.
3241         (suppress_node::tprint): Updated.
3243         * configure.ac: Check declaration for rand() and srand().
3244         * configure: Regenerated.
3246         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3247         conditionally.
3248         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3249         and srand().
3251         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3252         to avoid compiler warnings.
3254         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3255         unused.
3257         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3258         is unused.
3259         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3260         (unused) parameter.
3261         Updated all callers.
3263         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3264         is unused.
3265         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3266         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3268         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3269         Parameter is unused.
3270         (html_printer::add_table_end): Define parameter conditionally.
3271         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3272         is unused.
3274         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3275         (lbp_printer::set_char): Last parameter is unused.
3277         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3279 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3281         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3282         Make \D'f ...' move horizontally again for backwards compatibility.
3283         Replace it with \D'Fg ...' where appropriate to avoid dependency
3284         on horizontal resolution.
3286         * src/roff/troff/input.cc (do_get_long_name): New function.
3287         (get_long_name): Call it.
3289         (read_draw_node): Handle `\D'Fx ...' by calling ...
3290         (read_color_draw_node): New function.
3292         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3293         `end'.
3294         Pass it to `do_get_long_name' which is used instead of
3295         `get_long_name'.
3297         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3298         unnecessary value guard.
3299         (parse_D_command) <'f'>: Add horizontal shift.
3301         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3302         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3303         (FILL_MAX): Removed.
3305         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3306         Updated.
3308 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3310         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3311         do_zero_width): Push `\n' if closing delimiter is missing.
3313         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3314         <'F'>: Make \F non-transparent at the beginning of line.
3315         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3316         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3317         `have_input'.
3319         (define_color): Free color in case of reassignment.
3321         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3322         @DefescListEnd): Use @Var, not @var.
3323         Fix all calls.
3325         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3327         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3328         `shaded' and `outlined' arrays.
3329         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3330         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3331         Use strsave.
3332         (closed_object::set_fill_color): Ditto.
3333         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3334         instead of strdup.
3335         (troff_output::reset_color): Use a_delete instead of free.
3336         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3338 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3340         * doc/groff.texinfo: Improve documentation of `ad'.
3341         Document that \D'f...' is dependent on the horizontal resolution.
3342         * man/groff_diff.man: Improve documentation of \D'f...'.
3344         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3345         compensating \h'...' for \D'f ...' since the latter no longer moves
3346         current position.
3347         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3349 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3351         Improve error messages for `x F' (and `F') commands.
3353         * src/include/error.h: Add declaration for
3354         `current_source_filename'.
3355         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3356         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3357         parameter for source file string.
3358         Updated all callers.
3360         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3361         (remember_source_filename): New function.
3362         (parse_x_command <'F'>, do_file <'F'>): Use it.
3364 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3366         Make grotty not emit warnings about unknown colors more than
3367         necessary.
3369         * src/devices/grotty/tty.cc: Include `ptable.h'.
3370         (TTY_MAX_COLORS): Removed.
3371         (DEFAULT_COLOR_IDX): Defined to -1.
3372         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3373         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3374         Change `tty_colors' to be a ptable.
3375         First arg of `put_color' is now `char'.
3376         New functions `make_rgb_string' and `tty_color'.
3377         (tty_printer::tty_printer): Use `tty_color'.
3378         (tty_printer::color_to_idx): Return value is now `char'.
3379         Use `tty_color'.
3381         * src/include/color.h (color): Add `print_color' member function.
3382         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3384 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3386         Valgrind fixes.
3388         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3389         encoding file.
3391         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3392         assume that value has been allocated with `new[]', thus use
3393         `a_delete' for deallocation.
3395         * src/libs/libdriver/input.cc (get_integer_arg,
3396         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3397         where appropriate.
3399         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3400         * src/libs/libgroff/nametoindex.cc
3401         (character_indexer::named_char_index): Use `new <type>[1]'.
3403         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3404         <type>[1]'.
3405         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3406         (split_text): Use `a_delete'.
3408         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3409         <type>[1]'.
3411         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3412         harmless memory leak.
3413         (hyphen_trie::read_patterns_file): Initialize `buf'.
3414         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3415         Initialize `current_fill_color'and `current_glyph_color'.
3416         * src/roff/troff/glyphuni.cc
3417         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3418         * src/roff/troff/uniuni.cc
3419         (unicode_decompose_init::unicode_decompose_init): Ditto.
3420         * src/roff/troff/uniglyph.cc
3421         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3423 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3425         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3426         `access' before calling `unlink'.
3427         (do_file): Handle __EMX__.
3429         * src/include/nonposix.h: Handle __EMX__.
3431         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3432         (fontpath,tmacpath): Use it.
3433         (MDEFINES): Add it.
3434         Sorted alphabetically.
3436         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3437         @SEP@.
3438         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3439         @SEP@.
3441 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3443         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3444         New files, copied from gnulib.
3445         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3446         * configure.ac: Updated.
3447         * configure: Regenerated.
3449         * src/include/config.hin: Regenerated.
3450         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3451         Don't define `strcasecmp' as `strcmp'.
3452         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3453         Dont define `strncasecmp' as `strncmp'.
3455         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3456         Removed.
3458 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3460         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3461         s/unline/unlink/.
3463 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3465         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3467 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3469         Add US-english hyphenation exceptions (converted from Barbara
3470         Beeton's hyphenation exception log reports which appear irregularly
3471         in TUGBoat).
3473         * tmac/hyphen.us: Updated to latest version.
3474         * tmac/README: Updated.
3475         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3476         * tmac/troffrc: Load `hyphenex.us'.
3477         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3478         * doc/groff.texinfo: Updated.
3480 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3482         Improve hyphenation slightly.  This is a first step in redesigning
3483         the hyphenation algorithm to make it more flexible (e.g. allowing
3484         kerns and ligatures between the hyphenation character and the
3485         following character -- while not used normally in English, other
3486         languages like German would benefit).
3488         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3489         assertion instead of if-clause.
3490         Let `get_hyphen_list' return the number of involved characters in
3491         the hyphenation pattern instead of computing it directly (which
3492         often yields too small values).
3493         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3494         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3495         parameter.
3497 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3499         Fixing a bug which caused groff to hang if the hyphenation exception
3500         dictionary tried to grow.
3502         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3503         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3504         pointer to dictionary.
3506 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3508         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3509         negative left italic correction.
3510         * src/utils/afmtodit/afmtodit.man: Document it.
3512         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3513         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3514         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3516         * NEWS: Updated.
3518 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3520         * NEWS: Updated.
3522 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3524         * src/preproc/refer/refer.man: Mention REFER environment variable.
3526 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3528         Similar to \[is], the square root glyph (\[sr]) and the square root
3529         extension glyph (\[radicalex]) are now text symbols.  The new
3530         mathematical versions are called \[sqrt] and \[sqrtex],
3531         respectively.
3533         * font/devX*/S: Regenerated.
3534         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3535         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3536         * font/devdvi/EX, font/devdvi/S: Regenerated.
3537         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3538         * font/devlj4/generate/special.map: Add `sqrt'.
3539         * font/devlj4/S: Regenerated.
3540         * font/devps/generate/textmap: Add `sqrt'.
3541         * font/devps/S, font/devps/symbolmap: Regenerated.
3543         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3544         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3545         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3546         overlap horizontally.
3548         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3549         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3550         Fix `radicalex'.
3552         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3553         and `sqrtex' are overlapping glyphs.
3555 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3557         * font/devdvi/generate/texsy.map: Add `is'.
3558         * font/devps/symbolmap: Regenerated.
3559         * font/devdvi/*TC, MI, S: Regenerated.
3561         * tmac/dvi.tmac: Remove `is'.
3563 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3565         `is' is now a text symbol (only relevant for dvi).  The math variant
3566         can be accessed with `integral'.
3568         * font/devX*/S: Regenerated.
3569         * font/devdvi/generate/texex.map: Remove `is'.
3570         * font/devdvi/EX: Updated.
3571         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3572         * font/devlj4/generate/special.map: Ditto.
3573         * font/devlj4/S: Regenerated.
3574         * font/devps/generate/textmap: Add `integral'.
3575         * font/devps/S: Regenerated.
3577         * tmac/dvi.tmac: Define `is'.
3579         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3581         * src/preproc/tbl/main.cc (process_format): Fix error message.
3583 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3585         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3586         * font/devps/textmap: Fix entries for `ne' and `nc'.
3587         * font/devps/symbolmap: Regenerated.
3589         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3590         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3591         `38', `58', `78', `-+', `|=', `nc', `ne'.
3593         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3594         Use `schar' for `aq'.
3595         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3596         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3597         * tmac/tty.tmac: Add `ne'.
3599         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3600         for fallback glyphs.
3602 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3604         Add glyph `|='.
3606         * font/devX*/*: Regenerated.
3607         * font/devdvi/generate/ec.map: Remove `eq'.
3608         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3609         Assign `|=' to position 39.
3610         * font/devdvi/*EC, S: Regenerated.
3611         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3612         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3613         Assign `|=' to position 549.
3614         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3615         `equalmath'.
3616         Add `uni2243' for `|='.
3618         * tmac/ec.tmac: Add `eq'.
3619         * tmac/dvi.tmac: Add `=~'.
3620         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3621         `|='.
3623 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3625         * font/devdvi/generate/tc.map: Remove `**'.
3626         * font/devdvi/*TC: Regenerated.
3627         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3628         `78', `<<', `>>'.
3629         * font/devutf8/NOTES: Updated.
3631         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3632         Don't give default parameter to `set_macro'.
3633         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3634         instead of `set_macro'.
3635         (charinfo::setx_macro): Implement it.
3636         (charinfo::set_macro): Don't change `mode'.
3638         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3639         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3640         * tmac/dvi.tmac: Define `!=' with `.schar'.
3642 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3644         * font/devX*/S: Regenerated.
3645         * font/devdvi/generate/ec.map: Remove `pl'.
3646         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3647         * font/devdvi/*{TC,EC}: Regenerated.
3648         * font/devhtml/R.proto: Add `-+'.
3649         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3650         * font/devlbp/*: Remove `or'.
3651         * font/devlj4/generate/special.map: Remove `or'.
3652         * font/devlj4/S: Regenerated.
3653         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3654         `seveneighths', `threeeighths'.
3655         Remove `plusmath'.
3656         Replace `minusplus' with `uni2213'.
3657         * font/devps/symbolmap: Regenerated.
3658         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3659         Add `-+'.
3661         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3662         function.
3663         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3664         Call glyph_color and fill_color even if tcommand_flag isn't set.
3665         (make_node, node::add_char): Check not ci->is_fallback but
3666         ci->is_normal.
3668         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3669         * tmac/ec.tmac: Add .rchar entry for `f/'.
3670         Don't remove `12', `14', `34'.
3671         Define `pl' to be always roman.
3672         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3673         Define `18', `38', `58', `78'.
3674         * tmac/tty.tmac: Add `-+'.
3675         * tmac/dvi.tmac: Define `f/'.
3676         (dvi-frac): Use `f/'.
3677         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3678         Define `18', `38', `58', `78'.
3680 2002-12-15  Colin Watson  <cjwatson@debian.org>
3682         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3684 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3686         Add glyph `tno', a textual variant of `no'.
3688         * font/devX*/*: Regenerated.
3689         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3690         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3691         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3692         * font/devdvi/*: Regenerated.
3693         * font/devlbp/*: Add `tno'.
3694         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3695         * font/devlj4/*: Regenerated.
3696         * font/devps/generate/textmap: Replace `no' with `tno'.
3697         * font/devps/generate/symbolchars: Add `no'.
3698         * font/devps/*: Regenerated.
3700         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3702         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3703         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3705         * NEWS: Updated.
3707         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3708         Add definition for `sd'.
3709         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3711         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3713 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3715         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3716         mode to avoid rounding errors.
3717         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3719         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3720         src/roff/troff/troff.man: Improve documentation of -T.
3722 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3724         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3725         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3727 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3729         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3730         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3731         Scaling Euro.sansserif glyphs down to have the same height as
3732         digits.
3733         Removed unnecessary points; added some extrema.
3735         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3736         Regenerated.
3738 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3740         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3741         and `Euro.symbol.bold.slanted'.
3742         Improve some glyph offsets and widths.
3743         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3744         Regenerated.
3745         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3746         typo.
3747         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3748         direcory.
3750         * tmac/europs.tmac: Updated to new glyph indices.
3751         Use Euro.symbol for font familiy `A'.
3753         * doc/groff.texinfo: Minor improvements.
3755 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3757         * font/devdvi/generate.tc.map: s/%O/%0/.
3758         * font/devdvi/*TC: Regenerated.
3760         * src/roff/troff/div.cc (init_div_requests): Sorted.
3762         * tmac/dvi.tmac: Remove `Ye'.
3763         * tmac/ec.tmac: Remove `Ye'.
3764         Add .rchar entry for `de'.
3766         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3767         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3768         * NEWS: Updated.
3770 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3772         Add PS font for various Euro glyphs.
3774         * font/devps/generate/freeeuro.sfd: New master font file for
3775         pfaedit.
3776         * font/devps/generate/sfdtopfa.pe: New conversion script for
3777         pfaedit.
3778         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3779         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3780         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3781         `freeeuro.sfd'.
3782         * font/devps/EURO: Generated from `freeeuro.afm'.
3783         * font/devps/download: Add `freeuro.pfa'.
3784         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3785         `freeeuro.pfa'.
3787         * tmac/europs.tmac: New file.
3788         * tmac/ps.tmac: Include `europs.tmac'.
3789         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3791 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3793         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3794         * font/devdvi/S: Regenerated.
3795         * font/devhtml/R.proto: Fix `CR' and `ci'.
3796         Add `OK'.
3797         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3798         Remove `bs'.
3799         * font/devps/symbolmap: Regenerated.
3800         * font/devutf8/R.proto: Fix `CR' and `ci'.
3801         Add `OK'.
3802         * font/devutf8/NOTES: Updated.
3804         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3805         `ci'.
3806         Add `OK'.
3807         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3809         * tmac/dvi.tmac: Add `lh' and `rh'.
3810         * tmac/Xps.tmac: Fix `lh' and `rh'.
3811         * tmac/X.tmac: Add `OK'.
3812         * tmac/lj4.tmac: Ditto.
3814 2002-11-24  Werner LEMBERG  <wl@gnu.org>
3816         * font/devX*/S: Regenerated.
3817         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3818         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3819         * font/devdvi/generate/texsy.map: Remove `or' glyph.
3820         * font/devdvi/S: Regenerated.
3821         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3822         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3823         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3824         `bracketleftbt', `bracketrighttp', `bracketrightex',
3825         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3826         `braceex', `braceleftex', `bracerightex', `bracerighttp',
3827         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3828         `rb', and `bv'.
3829         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3830         * font/devutf8/NOTES: Updated.
3831         * font/devlj4/generate/special.map: Add glyph `braceex'.
3832         * font/devlj4/S: Regenerated.
3834         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3836 2002-11-14  Werner LEMBERG  <wl@gnu.org>
3838         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3839         and `vA'.
3840         Fix code for `an'.
3841         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3843         * doc/texinfo.tex: New version from texinfo 4.3.
3844         * doc/groff.texinfo: Updated for texinfo 4.3.
3845         Use @tie{} where appropriate.
3846         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3847         * font/devdvi/generate/tc.map: Remove `rn'.
3848         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3849         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3850         Fix code for `an'.
3851         * font/devX100/*, font/devX100-12/*, font/devX75/*,
3852         font/devX75-12/*: Regenerated.
3854         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3855         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3856         Improve definition of `an'.
3857         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3858         `ru'.
3859         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3860         * tmac/X.tmac: Add definition for `or'.
3861         * tmac/Xps.tmac: Undo change 2002-11-05.
3862         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3864 2002-11-11  Werner LEMBERG  <wl@gnu.org>
3866         * src/roff/troff/node.cc (troff_output_file::put_char): Always
3867         call flush_tbuf.
3869 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3871         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3872         defines a glyph which is searched after the check for fonts declared
3873         with `.special' (and before the check for all mounted special
3874         fonts).  `fschar' defines a glyph for a particular font which is
3875         searched after the check for fonts declared with `.fspecial' (and
3876         before the check for fonts declared with `.special').  `rfschar'
3877         removes glyphs defined with `fschar'.
3879         * src/roff/troff/token.h (char_mode): New enum.
3880         Declare do_define_character.
3881         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3882         `mode'.
3883         (charinfo::is_fallback): Updated.
3884         (charinfo::is_special): New method.
3885         * src/roff/troff/input.cc (do_define_character): Add and use
3886         optional second parameter used as a prefix for font-specific glyph
3887         names.
3888         (define_character, define_fallback_character): Updated.
3889         (define_special_character): New function.
3890         (init_input_requests): Add `schar'.
3891         (charinfo::charinfo, charinfo::set_macro): Updated.
3892         * src/roff/troff/node.cc: Include `stringclass.h'.
3893         (make_glyph_node): Handle special glyphs defined with `.schar' and
3894         `.fschar'.
3895         (define_font_special_character, remove_font_special_character): New
3896         functions.
3897         (init_node_requests): Sorted.
3898         Add `fschar' and `rfschar'.
3899         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3900         Document new requests.
3902         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3903         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3905 2002-11-08  Werner LEMBERG  <wl@gnu.org>
3907         Added new font `SC' (cmtex10) to devdvi.
3909         * devdvi/generate/Makefile (FONTS): Add `SC'.
3910         (SC): New rule.
3911         * devdvi/generate/textex.map: New map file for cmtex.
3912         * devdvi/SC: New.
3913         * devdvi/Makefile.sub (DEVFILES): Updated.
3914         * tmac/dvi.tmac: Add fspecial entries for SC.
3915         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
3916         found before `S' since the font position of `SC' is lower due to the
3917         gaps in DESC's `font' line.
3918         * tmac/ec.tmac: Add a `special' call.
3919         * NEWS: Updated.
3921         * font/devhtml/R.proto: Remove double entry for `ti'.
3922         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3923         * tmac/tty-char.tmac: Remove entry for `bq'.
3924         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3925         * tmac/ec.tmac: Don't remove `aq' glyph.
3926         * tmac/X.tmac: Fix entry for `em'.
3927         Add entries for `fo' and `fc'.
3928         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3930         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3931         documentation of `special' and `fspecial' requests.
3933 2002-11-05  Werner LEMBERG  <wl@gnu.org>
3935         * font/devascii/R.proto, font/devcp1047/R.proto,
3936         font/devlatin1/R.proto: Remove entry for `.i'.
3937         * font/devdvi/generate/textt.map: Add entry for `ad'.
3938         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3939         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3940         We need this for getting kerning values to compose `/l' and `/L'.
3941         * font/devdvi: Regenerated font definition files for CM fonts.
3942         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3943         * font/devutf8/R.proto: Ditto.
3944         Remove double entry for `ti'.
3946         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3947         for (groff) ligatures, `la', and `ra'.
3948         Add "'C", "'c", `IJ', and `ij'.
3949         Remove double entry for `ti'.
3950         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3951         double entries.
3952         Add "'C", "'c", `IJ', and `ij'.
3953         Fix entries for (groff) ligatures, `la', and `ra'.
3955         * tmac/ps.tmac (ps-achar): New macro.
3956         Define "'c" and "'C".
3957         * tmac/tty.tmac: Add entry for `.i'.
3958         * tmac/X.tmac (X-achar): New macro.
3959         Define "'c", "'C", and `:Y'.
3960         Add entries for `IJ' and `ij'.
3961         * tmac/Xps.tmac (Xps-achar): New macro.
3962         Define "'c" and "'C".
3963         Add entries for `IJ' and `ij'.
3964         * tmac/lbp.tmac (lbp-achar): New macro.
3965         Add fallback characters for all groff ligatures and many other
3966         glyphs.
3967         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3968         Add entries for `/l' and `/L'.
3969         Define "'c" and "'C".
3970         Add entries for `IJ' and `ij'.
3972 2002-11-02  Larry Kollar  <kollar@alltel.net>
3974         * PROBLEMS: Document how to solve Mac OS X compilation problems.
3976 2002-11-02  Werner LEMBERG  <wl@gnu.org>
3978         Adding support for composite glyphs: \[xxx yyy ...] and the
3979         `composite' request.
3981         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3982         to Unicode-based glyph names.
3983         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3984         glyph names to groff glyph names.
3985         * src/roff/troff/uniuni.cc: New file for canonically decomposing
3986         Unicode-based glyph names.
3987         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3988         for handling Unicode glyph names.
3989         * src/roff/troff/input.cc: Include unicode.h.
3990         (composite_glyph_name): New function.
3991         (token::next) <'['>: Handle Unicode glyph names and composite
3992         glyphs.
3993         (composite_dictionary): New dictionary for the `composite' request.
3994         (composite_request): Implement `composite' request.
3995         (init_input_requests): Add `composite'.
3996         Alphabetically sorted.
3997         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3998         commented out).
3999         (init_env_requests): Alphabetically sorted.
4000         Removed `tas' and `tar' (already commented out).
4001         * src/roff/troff/Makefile.sub: Updated.
4003 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4005         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4006         of options.
4008 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4010         Fix computation of .trunc register.  Additionally, its value (and
4011         the value of the .ne register) is now always set before entering the
4012         trap.
4014         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4015         `needed_space' before calling `space'.
4016         (top_level_diversion::space): Remove special code for 'sp before the
4017         first page.
4018         Call `begin_page' with the discarded space as a parameter.
4019         (top_level_diversion::begin_page): Add optional parameter to set
4020         `truncated_space'.
4021         * src/roff/troff/div.h: Updated.
4023         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4024         \n[.ne].
4026         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4027         (LP): Remove superfluous call to `br'.
4028         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4029         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4031 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4033         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4034         (doc-setup-header): Don't set page register `%'.
4035         * tmac/doc-nroff: Remove variable `C'.
4036         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4037         (doc-setup-header): Don't set page register `%'.
4038         Don't call `bp'.
4039         * tmac/doc-common (doc-header): Call `ns'.
4040         (doc-paragraph): Protect .sp with .br so that it survives traps
4041         possibly set by the user.
4042         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4044         * tmac/doc*: Replace ' with . for consistency if no effect.
4046 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4048         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4049         so that it survives traps possibly set by the user.
4051         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4052         (troff_output_file::set_font): Call flush_tbuf if necessary.
4053         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4054         flush_tbuf and do_motion only if necessary.
4055         (troff_output_file::start_special,
4056         troff_output_file::put_char_width, troff_output_file::put_char,
4057         troff_output_file::draw): Updated.
4058         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4059         vmotion_node::tprint): Undo change 2002-10-23.
4061 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4063         * tmac/www.tmac (DC): Fix case of overlapping images.
4065 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4067         * src/roff/troff/node.cc (troff_output_file::fill_color,
4068         troff_output_file::glyph_color): Set current color before testing
4069         color_flag.
4070         (troff_output_file::put_char_width, troff_output_file::put_char,
4071         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4072         before glyph_color.
4073         (troff_output_file::file_color, troff_output_file::glyph_color):
4074         Call do_motion.
4075         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4076         vmotion_node::tprint): Move first, then call fill_color.
4078 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4080         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4081         possible to use multiple main macro packages.
4083 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4085         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4086         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4087         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4088         is set.
4089         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4090         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4092 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4094         * NEWS, doc/webpage.ms: Updated.
4096 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4098         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4099         troff_output_file::put_char, troff_output_file::fill_color,
4100         troff_output_file::glyph_color): Handle case where color pointer
4101         is null.
4103 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4105         Add the new -r option to grotty.  It is similar to the -i option
4106         except it tells grotty(1) to use the "reverse video" attribute to
4107         render italic fonts.
4109         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4110         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4111         (tty_printer::make_underline, tty_printer::put_color,
4112         tty_printer::end_page): Use it.
4113         (main): Add -r switch.
4114         (usage): Updated.
4115         * src/devices/grotty/grotty.man: Document it.
4117 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4119         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4120         cast to `unsigned char' to properly read patterns with 8bit
4121         characters.
4123 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4125         * REVISION: Increased to 2.
4127 Version 1.18.1 released
4128 =======================
4130 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4132         * doc/webpage.ms, NEWS: Updated.
4134 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4136         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4137         suppress additional whitespace after the header.
4139         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4140         with NetBSD.
4142         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4144 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4146         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4147         (Dt): Use it to improve language localization (especially Russian
4148         and French).
4150 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4152         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4153         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4154         drawing commands.
4155         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4156         curve type.
4157         Call `picurve' for BSPLINE.
4158         (HGPrintElt): Handle BSPLINE.
4159         * src/preproc/grn/README: Document it.
4161 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4163         * src/roff/troff/node.cc (break_char_node::col): New variable.
4164         Updated constructor.
4165         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4166         unconditionally.
4167         (space_node::space_node): Remove assertion.
4168         (break_char_node::add_self): Pass color argument to space node.
4169         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4170         Ditto.
4171         * src/roff/troff/env.cc (environment::do_break,
4172         environment::add_padding): Ditto.
4174 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4176         Redesigning color support in troff.  Colors are no longer
4177         represented as separate nodes but are now part of glyph nodes and
4178         friends.  This fixes the current formatting misbehaviour due to the
4179         changes introduced on 2002-09-20.  Some extra code is necessary for
4180         proper grotty support: Without adding color variables to
4181         space-related nodes, the background color would be changed too late.
4183         * src/roff/troff/node.h, src/roff/troff/node.cc:
4184         s/current_pagecolor/current_fill_color/.
4185         s/current_glyphcolor/current_glyph_color/.
4186         (glyph_color_node, fill_color_node): Removed.
4187         (node::get_glyph_color, node::get_fill_color): New virtual member
4188         functions.
4189         (space_node::col): New variable.
4190         Updated constructors of space_node and derived classes accordingly.
4191         (hmotion_node::col): New variable.
4192         Updated constructors of hmotion_node and space_char_hmotion_node
4193         accordingly.
4194         (vmotion_node::col): New variable.
4195         Updated constructor accordingly.
4196         (draw_node::gcol, draw_node::fcol): New variables.
4197         Updated constructor accordingly.
4198         (special_node::gcol, special_node::fcol): New variables.
4199         Updated constructors accordingly.
4200         (troff_output_file::put_char, troff_output_file::put_charwidth,
4201         troff_output_file::draw): Set glyph and fill color.
4202         (troff_output_file::start_special): Set glyph and fill color.
4203         Always set current font.
4204         (troff_output_file::fill_color, troff_output_file::glyph_color):
4205         Don't call `do_motion'.
4206         (glyph_node::gcol, glyph_node::fcol): New variables.
4207         Updated constructors of glyph_node and ligature_node accordingly.
4208         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4209         member functions.
4210         (glyph_node::merge_glyph_node,
4211         kern_pair_node::add_discretionary_hyphen,
4212         node::add_discretionary_hyphen): Updated.
4213         (break_char_node::merge_self): Updated.
4214         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4215         vmotion_node::tprint): Handle color.
4216         (make_glyph_node, make_node, node::add_char): Updated.
4218         * src/roff/troff/env.cc (environment::space_newline,
4219         environment::space, environment::output_line, environment::do_break,
4220         environment::make_tab_node, environment::add_padding, title):
4221         Updated.
4222         (environment_switch, environment_copy): Don't add color nodes.
4224         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4225         nothing.
4226         (token::next): Updated.
4227         \m and \M now are as transparent as \s.
4228         (process_input_stack, token::add_to_node_list, token::process,
4229         read_draw_node): Updated.
4230         (charinfo_to_node_list): Don't add color nodes.
4232         * doc/groff.texinfo: Updated.
4234 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4236         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4237         strings.
4239 2002-09-27  Colin Watson  <cjwatson@debian.org>
4241         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4243 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4245         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4246         appropriate.
4247         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4248         (linewidth_factor): New global variable.
4249         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4250         linewidth_factor.
4251         (long_options): Add -w/--linewidth option.
4252         (usage): Updated.
4253         (main): Handle -w option to set linewidth_factor.
4254         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4255         line_thickness.
4257         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4259 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4261         Fixed a bug in the line thickness setting code.
4263         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4264         variable.
4265         (lbp_printer::set_line_thickness): Pass environment as second
4266         parameter.
4267         Implement it actually.
4268         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4269         and `set_line_thickness, depending on the current font size.
4271 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4273         Some Debian patches.
4275         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4276         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4277         `list->last'.
4279 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4281         * configure: Regenerated with autoconf 2.54.
4283 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4285         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4286         glyph_color.
4287         Rename cur_fill_color to fill_color.
4288         * src/roff/troff/env.cc: Updated.
4290 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4292         * src/roff/troff/env.cc (title): Copy color status after processing
4293         title.
4294         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4295         fill color nodes to reset colors properly.
4297         * tmac/www.tmac (DC): Fix color handling.
4299         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4300         * doc/groff.texinfo: Fixing documentation of `tl' request.
4301         * doc/webpage.ms: Updated.
4303 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4305         * src/roff/troff/env.cc (environent_switch, environment_copy):
4306         Emit glyph and fill color nodes to initialize colors properly.
4308 2002-09-17  Colin Watson  <cjwatson@debian.org>
4310         * src/roff/troff/env.cc (environment::set_glyph_color,
4311         environment::set_fill_color): Fix typo which prevented \m[] work
4312         correctly.
4314 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4316         Add left and right italic correction to non-slanted PS fonts.  This
4317         is an experimental feature to improve image rendering of grohtml.
4319         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4320         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4321         * font/devps/*: All non-slanted fonts regenerated.
4322         * NEWS: Updated.
4324 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4326         Add a site-specific font directory.
4328         * Makefile.in (localfontdir, legacyfontdir): New variables.
4329         (fontpath): Use them.
4330         (MDEFINES, uninstall_dirs): Updated.
4331         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4332         Remove `FONTPATH' and `MACROPATH'.
4334         * src/roff/troff/troff.man, NEWS: Updated.
4335         * doc/groff.texinfo (Font Directories): New section.
4336         Other minor fixes.
4338         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4339         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4340         src/preproc/grn/grn.man: Minor fixes.
4342         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4343         Remove unused variable.
4345 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4347         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4348         * man/groff_out.man: Fix documentation of 'N'.
4350 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4352         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4353         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4354         set.
4355         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4356         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4357         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4358         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4359         PRE_TAG>: Call `begin' with `FALSE'.
4361 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4363         * src/libs/libgroff/string.cc (string::extract): Fix position of
4364         terminating null byte.
4366 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4368         Add global option `nospaces' to tbl so that leading and trailing
4369         spaces in data items are ignored.
4371         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4372         function to remove leading and trailing spaces.
4373         * src/include/stringclass.h: Updated.
4375         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4377         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4378         option.
4379         Fix typo in error messages.
4380         (process_data): Implement `nospaces' option.
4381         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4383 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4385         * src/include/config.hin: Add `HAVE_ISATTY'.
4386         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4387         `fname' member.
4388         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4389         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4390         `operator!=' for `char'.
4391         * doc/groff.texinfo: Replace @ifnottex block for top node with
4392         @ifhtml block.
4394 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4396         * doc/Makefile.in (.texinfo.html): Add -I switch.
4397         * doc/groff.texinfo: Add @ifnottex block for top node to make
4398         translation to HTML work.
4400 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4402         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4403         (get_papersize, determine_vertical_offset): Removed.
4404         (char_buffer::do_image): Always specify letter size.
4405         (main): Updated.
4406         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4407         -sPAPERSIZE.
4409 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4411         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4412         default indentation.
4414 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4416         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4417         -sPAPERSIZE for gs.
4418         (generateImages): Clean up push-back buffer.
4420 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4422         * doc/groff.texinfo: Minor fixes.
4424 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4426         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4427         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4428         (gsPaper): Removed.
4429         (determine_vertical_offset): Use LETTER_LENGTH.
4430         (createPage): Moved to ...
4431         (imageList::createPage): This.
4432         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4433         (imageList::getMaxX): New function.
4434         (createImage): Moved to ...
4435         (imageList::createImage): This.
4436         (imageList::createImages): New function.
4437         (generateImages): Read `maxx' directly.
4438         Updated.
4439         (scanArguments): Don't specify `gsPaper' for `-o'.
4440         (makeTempFiles): Call `xtmpfile' with the last argument set to
4441         `TRUE'.
4443 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4445         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4446         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4447         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4448         * src/preproc/html/pushback.cc: Include nonposix.h.
4449         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4450         conditionally.
4452 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4454         Use $(OBJEXT) for the object file extension.
4456         * Makefile.comm (.SUFFIXES): Add .obj.
4457         (.cc.obj, .c.obj): New implicit rules.
4458         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4459         (MDEFINES): Add EXEEXT and OBJEXT.
4460         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4462 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4464         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4466 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4468         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4469         the file.
4470         (html_printer::update_min_max, html_printer::add_table_end): New
4471         methods.
4472         (html_printer::lookahead_for_tables): Use them.
4473         Reset page offset correctly.
4474         (html_printer::~html_printer): Add creation of creator comment up.
4476 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4478         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4479         * man/groff_tmac.man: Fix typos.
4480         * man/groff_font.man: Minor reordering.
4481         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4483 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4485         Avoid endless loops while scanning for tables.
4487         * src/devices/grohtml/post-html.cc (list::insert): Set
4488         ptr->right->left.
4489         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4490         all callers.
4491         Return immediately if that argument is NULL.
4492         (html_printer::calc_nf): Don't test if `g' is NULL.
4493         (html_printer::lookahead_for_tables): Use
4494         `glyphs.move_right_get_data'.
4495         Don't test if `g' is NULL.
4497 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4499         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4501         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4502         a pointer.
4503         (char_block::char_block): Allocate `buffer'.
4504         (char_buffer::add_string): Use it.
4506 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4508         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4509         src/devices/grodvi/grodvi.man: Document default line thickness.
4511 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4513         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4514         8192.
4516 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4518         * doc/webpage.ms: Updated.
4520 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4522         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4523         unbreakable space.
4525 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4527         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4528         (&& -> &).
4530 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4532         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4533         tok.next().
4534         (read_gray): Ditto.
4535         Don't push back a space but a newline onto the stack.
4537 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4539         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4540         inadvertently.
4542         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4543         html_printer::start_font): Handle them.
4544         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4545         reset bold and tt.
4546         (html_text::do_bold): Don't reset italic and tt.
4547         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4548         * font/devhtml/DESC.proto: Add those fonts.
4549         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4551 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4553         * MORE.STUFF: Added gpresent.
4555         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4556         whitespace before printing the logging message.
4558 2002-07-31  Colin Watson  <cjwatson@debian.org>
4560         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4561         Initialize `n' to zero.  This fixes a segfault on ARM.
4563 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4565         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4567 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4569         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4570         final semicolon.
4572 2002-07-28  Colin Watson  <cjwatson@debian.org>
4574         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4575         `.ps'.
4576         (html_printer::html_printer): Initialize `pointsize'.
4578 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4580         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4581         gnu.png.
4582         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4583         (gnu.eps): Add -rle switch to pnmtops.
4584         (distfiles): Add gnu.eps and gnu.png.
4586 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4588         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4589         Add `operator!='.
4591 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4593         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4594         ' \+' but '  *' for sed.
4595         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4597 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4599         * doc/groff.texinfo: Document `papersize' keyword.
4600         * NEWS, man/groff_font.man: Updated.
4602 2002-07-23  Colin Watson  <cjwatson@debian.org>
4604         Extend papersize keyword to accept more than a single entry.  The
4605         first valid will be used.
4607         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4608         (font::scan_papersize): Really skip final newline.
4609         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4611 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4613         * configure.ac: Test for isatty.
4614         * configure: Regenerated.
4615         * src/include/posix.h: Check HAVE_ISATTY.
4616         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4617         * src/utils/lookbib/lookbib.cc: Include posix.h.
4618         Don't declare isatty.
4620 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4622         * NEWS: Add `output' request.
4624         * REVISION: Increased to 1.
4626 Version 1.18.0 released
4627 =======================
4629 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4631         Allow internal glyph indices > 0xFF in grohtml for input characters.
4633         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4634         as parameter.
4635         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4636         Updated all callers.
4637         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4638         (html_printer): Updated.
4640 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4642         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4643         * font/devutf8/R.proto: Adding some missing glyphs.
4644         * font/devutf8/NOTES: Updated.
4646         * tmac/dvi.tmac: Add more composite glyphs.
4647         * tmac/html.tmac: Updated.
4649         * man/groff_char.man: Add `sum' and `product' entities.
4651         * NEWS: Updated.
4653 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4655         Improved table, tab, and indenting support.
4657         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4658         string_iterator::suppress_newline_flag): Removed.  Updated all
4659         function which have used it.
4661         * src/roff/troff/env.cc: Include `input.h'.
4662         (environment::add_node): Accept 0 as parameter.
4663         (environment::add_html_tag): Add `force' parameter.
4664         Updated all callers.
4665         (environment::add_html_tag_tabs): Ditto.
4666         For the moment, support left-aligned tabs only.
4667         (environment::make_html_tag): New function.
4668         (fill, no_fill): Set .br html tag additionally.
4669         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4670         (environment::add_html_tag_eol): Removed.
4671         (tab_stops::distance_to_next_tab): Add variant for handling 
4672         nextpos'.
4673         (environment::distance_to_next_tab): Ditto.
4674         Updated all callers.
4675         (environment::handle_tab): Handle tabs for html.
4676         
4677         * src/roff/troff/env.h: Updated.
4679         * src/roff/troff/div.cc: Updated all callers of
4680         `environment::add_html_tag'.
4682         * src/devices/grohtml/html-table.cc,
4683         src/devices/grohtml/html-table.h: New files.
4685         * src/devices/grohtml/html-text.cc (html_text): New members
4686         `blank_para' and `start_space'.
4687         (html_text::issue_tag): Don't emit TABLE_TAG.
4688         Handle indentation for PRE_TAG and P_TAG.
4689         (html_text::end_tag): Updated.
4690         (html_text::table_is_void, html_text::issue_table_begin,
4691         html_text::issue_table_end): Removed.
4692         (html_text::do_push): Simplified.
4693         [DEBUGGING]: Small fix.
4694         (html_text::push_para): Add new parameter for indentation; updated
4695         all callers.
4696         Handle PRE_TAG.
4697         (html_text::do_indent, html_text::do_table, html_text::done_table,
4698         html_text::is_in_table): Removed.
4699         (html_text::do_pre): Handle P_TAG also.
4700         (html_text::shutdown): Handle p->indent.
4701         (html_text::check_emit_text): Simplified.
4702         (html_text::do_emittext): Reset `blank_para'.
4703         (html_text::do_para): Add new parameter for indentation; updated
4704         all callers.
4705         (html_text::remove_indent): New function.
4706         (html_text::do_space): Handle verbatim text properly.
4707         (html_text::ever_emitted_text, html_text::starts_with_space,
4708         html_text::remove_para_align): New functions.
4709         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4711         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4712         Updated.
4714         * src/devices/grohtml/post-html.cc: Include html-table.h.
4715         (INDENTATION): Removed.
4716         (text_glob): Added many `is_<foo>' functions.
4717         Added table description `tab'.
4718         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4719         member functions.
4720         (list): Add `insert' and `move_to' member functions.
4721         (page): Add `insert_tag' member function.
4722         (page::dump_page) [DEBUG_TABLES]: Improved.
4723         (html_printer): Add `table' and `max_linelength' elements.
4724         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4725         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4726         `remove_tabs', `remove_courier_tabs'.
4727         (html_printer::emit_raw): Handle indentation.
4728         (html_printer::do_center, html_printer::write_header): Updated.
4729         (html_printer::is_courier_until_eol): Check for tag.
4730         (html_printer::do_linelength): Handle max_linelength.
4731         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4732         fill_on.
4733         (html_printer::do_tempindent): Updated.
4734         (html_printer::do_indentedparagraph): Removed.
4735         (html_printer::do_indent): Simplified.
4736         (html_printer::do_eol): Use `ever_emitted_text'.
4737         (html_printer::do_flush, html_printer::do_links): Don't call
4738         done_table.
4739         (html_printer::do_break): Handle end_tempindent.
4740         (html_printer::troff_tag): Get argument.
4741         Don't handle `.ip'.
4742         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4743         (html_printer::flush_page): Call `lookahead_for_tables'.
4744         Don't call `done_table'.
4745         (html_printer::add_to_sbuf): Always call do_indent.
4747         * src/devices/grohtml/Makefile.sub: Updated.
4749         * tmac/an-old.tmac (TP): Don't handle html device specially.
4750         (an-do-tag-html): New function which will be used instead of
4751         `an-do-tag' if html device is used.
4753         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4755         * tmac/s.tmac (@IP): Don't handle html device specially.
4756         (@IP-html): New function which will be used instead of `@IP' if
4757         html device is used.
4759         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4760         is a hack which will eventually vanish again.
4761         (PIMG): Handle `-C' option correctly if not html.
4762         (HR): Use HTML-NS.
4764 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4766         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4768 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4770         * contrib/pic2graph/pic2graph.*: Use convert(1).
4771         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4773 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4775         * tmac/groff_trace.man: New file.
4776         * tmac/Makefile.sub: Updated.
4777         * NEWS: Updated.
4779 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4781         * src/roff/groff/groff.man: Add some cross references.
4783 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4785         * src/roff/troff/input.cc (substring_request): Add warnings for
4786         string indices out of range.
4788 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4790         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4791         * font/devdvi/*EC: Regenerated.
4793 2002-07-10  Bernd Warken  <bwarken@mayn.de>
4795         * man/groff_char.man: Updated and extended.
4797 2002-07-10  Werner LEMBERG  <wl@gnu.org>
4799         * src/roff/troff/input.cc (length_macro): Renamed to...
4800         (length_request): This.
4801         Move call of `tok.next()' to the very end, otherwise the register
4802         value hasn't been updated yet.
4803         (init_input_requests): Updated.
4805 2002-07-09  Werner LEMBERG  <wl@gnu.org>
4807         * src/roff/troff/input.cc (substring_macro): Renamed to...
4808         (substring_request): This.
4809         (init_input_requests): Updated.
4810         * src/roff/troff/request.h: Updated.
4812 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
4814         * src/roff/grog/grog.sh: Fix typo.
4816 2002-07-08  Werner LEMBERG  <wl@gnu.org>
4818         * win32-diffs: Updated.
4820         Handle `papersize' keyword properly in DESC.
4822         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4823         type.
4824         Updated all callers.
4825         * src/libs/libgroff/paper.cc: Add four more paper formats used by
4826         grolj4.
4827         * src/include/paper.h: Updated.
4829         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4830         Other minor C syntax fixes.
4831         (papersize, paperlength, paperwidth): Renamed to `user_*'.
4832         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4833         members.
4834         (lbp_printer::lbp_printer): Pass three arguments.
4835         Set paper dimensions properly.
4836         (make_printer, main): Updated.
4837         (handle_unknown_desc_command): Fix error messages.
4838         (main): Handle papersize keyword in DESC properly.
4840         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4841         `user_paper_size'.
4842         (lbp_printer::lbp_printer): Pass an argument.
4843         Set paper_size properly.
4844         (handle_unknown_desc_command): Removed.
4845         (make_printer, main): Updated.
4846         * src/devices/grolj4/grolj4.man: Minor documentation fix.
4848         * man/groff_font.man, NEWS: Updated.
4850 2002-07-07  Werner LEMBERG  <wl@gnu.org>
4852         Integrated eqn2graph, contributed by Eric S. Raymond.
4854         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4855         files.
4856         * Makefile.in, NEWS: Updated.
4858 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4860         Changing the substring request to make it fit better with other
4861         string manipulation functions in other programming languages:
4862         Index 0 is now the first character in the string, and index -1
4863         indicates the last character.  Since this request didn't work
4864         properly anyway in the last release, it doesn't harm too much to
4865         change the syntax.
4867         * src/roff/troff/input.cc (substring_macro): Use loops to get
4868         the real string length (ignoring COMPATIBLE_SAVE and
4869         COMPATIBLE_RESTORE) and offsets.
4870         Implement change described above.
4872         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4873         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4875         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4877 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4879         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4880         COMPATIBLE_RESTORE are completely ignored.
4882         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4883         functions.
4884         (macro): `length' field renamed to `len'.
4885         Added new field `empty_macro' (1 if macro is empty), to be used
4886         instead of checking `len'.
4887         Updated all callers.
4888         (macro::empty): Updated.
4889         (macro::length, macro::set, macro::get): New functions.
4890         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4891         Set `empty_macro'.
4892         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4893         COMPATIBLE_RESTORE pairs.
4894         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4895         * src/roff/troff/request.h: Updated.
4897         * doc/groff.texinfo: Document .chop's behaviour better.
4899 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4901         * doc/pic.ms: Fix documentation for the addition of positions.
4903         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4905 2002-06-29  Werner LEMBERG  <wl@gnu.org>
4907         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4909         * src/roff/troff/input.cc (have_string_arg): New global variable.
4910         (read_mode): New enumeration.
4911         (read_escape_name): Use it.  Update all calls.
4912         (read_long_escape_name): Use it.  Update all calls.
4913         Set have_string_arg if appropriate.
4914         (get_char_for_escape_name): Add parameter for handling space
4915         character.
4916         (interpolate_string_with_args, decode_string_args): New functions.
4917         (get_copy, token::next): Call it if necessary.
4918         (interpolate_string): Fix error message.
4920         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4921         Document it.
4923 2002-06-24  Bernd Warken  <bwarken@mayn.de>
4925         * man/groff_tmac.man: Updated and extended.
4927 2002-06-24  Werner LEMBERG  <wl@gnu.org>
4929         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4931 2002-06-23  Werner LEMBERG  <wl@gnu.org>
4933         * doc/pic.ms: Improve documentation of composite block objects.
4935 2002-06-22  Werner LEMBERG  <wl@gnu.org>
4937         * src/roff/troff/input.cc (init_registers): Add three registers
4938         `seconds', `minutes', and `hours' to hold the current time.
4940         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4941         Updated.
4943 2002-06-20  Werner LEMBERG  <wl@gnu.org>
4945         Make \X accept both `\ ' and `\~', converting them to single space
4946         characters.
4948         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4949         (token::unstretchable_space): New inline function.
4950         * src/roff/troff/input.cc (token::next, token::delimiter,
4951         token::description, token::add_to_node_list, token::process): Handle
4952         TOKEN_UNSTRETCHABLE_NODE.
4953         (encode_char): Handle tok.stretchable_space and
4954         tok.unstretchable_space.
4956         * NEWS, doc/groff.texinfo: Document it..
4958 2002-06-19  Werner LEMBERG  <wl@gnu.org>
4960         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4962         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4963         keyword to enable/disable SGR output.
4964         (tty_printer::change_fill_color): New function.
4965         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4967         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4968         call.
4970 2002-06-18  Werner LEMBERG  <wl@gnu.org>
4972         Add a `color' request and a `.color' register to control usage of
4973         colours.
4975         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4976         (color_flag): This (which is the inverse).
4977         (activate_color): New function.
4978         (main, init_input_requests): Updated.
4979         * src/roff/troff/troff.h, src/roff/troff/node.cc
4980         (troff_output_file::fill_color, troff_output_file::glyph_color):
4981         Updated.
4983         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4984         Document the changes.
4986 2002-06-17  Colin Watson  <cjwatson@debian.org>
4988         Circumvent bug in autoconf 2.53 regarding top_builddir.
4990         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4991         * Makefile.in, doc/Makefile.in:
4992         s/@top_builddir@/@groff_top_builddir@/.
4993         * configure: Regenerated (with autoconf 2.53).
4995 2002-06-17  Werner LEMBERG  <wl@gnu.org>
4997         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4998         `paperwidth' and `paperlength' for the `papersize' keyword.
5000 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5002         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5004 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5006         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5007         html_printer::do_linelength, html_printer::do_pageoffset,
5008         html_printer::do_indentation, html_printer::do_tempindent,
5009         html_printer::do_break, html_printer::begin_page): Clear indented
5010         text.
5011         * tmac/html.tmac: Disable hyphenation.
5013 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5015         Don't produce HTML files if utility programs are missing.
5017         * Makefile.in (make_html, make_install_html): New variables.
5018         (MDEFINES): Updated.
5020         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5021         utility programs.
5022         * configure.ac: Use it.
5023         * configure: Regenerated.
5025         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5026         (HTMLEXAMPLESFILES): This new variable.
5027         (EXAMPLESIMAGEFILES): Renamed to...
5028         (HTMLEXAMPLEIMAGEFILES): This.
5029         (CLEANADD): Add HTMLEXAMPLEFILES.
5030         (all): Use `make_html'.
5031         (html): New target.
5032         (install_data): Use `make_install_html'.
5033         Move html stuff to...
5034         (install_html): This new target.
5035         (uninstall_sub): Updated.
5037 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5039         * src/roff/grog/Makefile.sub (grog): Renamed to...
5040         (grog.old): This.
5041         (grog): New rule to always install grog.sh as grog.
5043 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5045         * src/roff/grog/grog.pl: Fix typo.
5047 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5049         * doc/groff.texinfo: Add more info on .tr arguments.
5051 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5053         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5055         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5056         * configure: Regenerated.
5058 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5060         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5062         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5064 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5066         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5067         is not initialized at the time we need it in case `--prefix' hasn't
5068         been set.  Check for `ac_default_prefix' also.
5069         Test for `papersize' keyword also and generalize allowed whitespace.
5070         * configure: Regenerated.
5072         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5073         `paperlength'.
5075         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5076         with...
5077         (src_version, src_revision): New variables to avoid overwriting
5078         from parent make process.
5079         (version.cc): Updated.
5081         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5082         (linebuf, linebufsize): New global variables.
5083         (sys_fatal): Use `fatal' to abort properly.
5084         (get_line): New function.
5085         (get_resolution): Use it.
5086         Improve error messages.
5087         (get_papersize): Check `papersize' also.
5088         Use `get_line'.
5089         Improve error messages.
5091 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5093         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5094         should be removed only if builddir is not srcdir.
5095         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5096         (clean): Depend on `mostlyclean'.
5097         (distclean): Depend on `clean'.
5098         (realclean, extraclean): Depend on `distclean'.
5099         (.y.cc, .y.o): Simplified.  The output files are no longer written
5100         to srcdir but to builddir.
5101         * Makefile.in (MDEFINES): Add `version' and `revision'.
5102         (uninstall_dirs): Fix order of directories.
5103         * doc/Makefile.sub (version, revision): Removed.
5104         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5105         Added `HTMLDOCFILES'.
5106         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5107         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5108         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5109         as prefix.
5111         * doc/texinfo.tex (\authortt): New macro.
5112         (\shortcontt): Define.
5113         (\titlepage): Set \tt to \authortt while defining \authorfont.
5114         (\appendixbox): New macro.
5115         (\chapmacro, \appendixentry): Use \appendixbox to get even
5116         indentation for letters.
5117         (\summarycontents): Set \tt.
5118         (\internalpagesize): Add two arguments for real paper width and
5119         height as needed by pdfTeX.
5120         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5121         Updated.
5122         (\tempdima, \tempdimb): New temporary dimensions.
5123         (\pagesizesyyy): Updated.
5125 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5127         Adding a new keyword `papersize' to the DESC file format (similar
5128         but not completely identical to grolbp's extension).  grops now has
5129         a -p command line option to override `papersize'.  Finally, grolbp
5130         has been adapted to the new syntax.
5132         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5133         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5134         elements.
5135         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5136         (CCSRCS): Add `paper.cc'.
5138         * src/include/font.h (font): Add `papersize' element.
5139         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5140         (font::scan_papersize): New function.
5141         (font::load_desc): Use it for handling `papersize' keyword.
5142         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5144         * src/devices/grops/ps.cc: Include paper.h.
5145         (user_paper_length): New global variable.
5146         (ps_printer): Use paper length as initializer.
5147         (make_printer): Updated.
5148         (main): Handle new `-p' option.
5149         * src/devices/grops/grops.man: Updated.
5151         * src/devices/grolbp/lbp.cc: Include paper.h.
5152         s/papersizes/lbp_papersizes/.
5153         (set_papersize): Use new `papersizes' array.
5154         (handle_unknown_desc_command): Don't handle `papersize'.
5155         (main): Use `font::scan_papersize' for handling `-p' option.
5156         * src/devices/grolbp/grolbp.man: Updated.
5158         * man/groff_font.man: Document `papersize'.
5159         * NEWS: Updated.
5161 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5163         * src/devices/grops/TODO: Updated.
5164         * src/devices/grops/grops.man: More info on paper formats.
5165         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5167 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5169         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5170         to list only if srcdir != currdir.
5171         (distfiles): New target.
5173         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5174         (NOMAKEDIRS): New variable.
5175         (DISTDIRS): Use it.
5177 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5179         Add .output request, similar to \! at top-level.
5181         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5182         (output_request): New function.
5183         (init_input_requests): Add it.
5184         Sorted.
5185         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5186         Document it.
5188         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5189         (prepare_examples): Fix typo.
5190         * doc/groff.texinfo (@direntry): Fix it.
5192 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5194         Including the doc subdir into groff's Makefile system.
5196         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5197         * configure.ac: Use it.
5198         Generate `doc/Makefile'.
5199         * configure: Regenerated.
5201         * Makefile.in (infodir, INSTALL_INFO): New variables.
5202         (MDEFINES, uninstall_dirs): Updated.
5203         (OTHERDIRS): Add `doc'.
5204         * Makefile.comm (CLEANDIRADD): New variable.
5205         (mostlyclean): Use it.
5207         * doc/Makefile.sub, doc/Makefile.in: New files.
5208         * doc/Makefile: Removed.
5210         * NEWS, INSTALL: Updated.
5212 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5214         * doc/homepage.ms: Renamed to ...
5215         * doc/webpage.ms: This.
5216         Use `.NHR'.
5218 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5220         Integrating the `mom' macro package, contributed by Peter Schaffter
5221         <df191@ncf.ca>.
5223         * contrib/mom/*: New subdirectory tree.
5224         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5225         be used for documentation files.
5226         (MDEFINES, uninstall_dirs): Use them.
5227         (OTHERDIRS): Add contrib/mom.
5228         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5229         @HTMLDOCDIR@.
5230         * MANIFEST, NEWS: Updated.
5232 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5234         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5235         if at outer level; at start-up we are at outer level.
5237         * src/roff/troff/input.cc (do_suppress): Implement it.
5238         Simplify \O[3].
5240         Add option -p to show progress information.
5241         pre-grohtml will now render only one page at a time, reducing the
5242         size of needed disk resources enormously.
5244         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5245         (imagePageName): New global variable.
5246         (psPageName, show_progress, currentPageNo): New global variables.
5247         (html_system): Close saved stderr and stdout handles.
5248         (write_end_image): Accept a parameter to control \O escape.
5249         (write_start_image): Adapted to new \O meaning.
5250         (char_buffer::write_upto_newline): Updated.
5251         (createAllPages): Replaced with...
5252         (createPage): This new function to create a single page for images.
5253         It uses `psselect' from the psutils package.
5254         (removeAllPages): Removed.
5255         (createImage): Updated.
5256         Handle progress display.
5257         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5258         (scanArguments): Add option -p.
5259         (makeTempFiles): Updated to create temp files for psPageName and
5260         imagePageName.
5261         (removeTempFiles): Removed.
5262         (main): Updated.
5264         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5265         html_printer::write_header): Append `\0' to `buffer'.
5266         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5267         (main): Handle -p.
5268         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5269         Handle `text_emitted'.
5270         (html_text::table_is_void): Slightly rewritten.
5271         (stop): New external symbol.
5272         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5273         (html_text::shutdown): Call `dump_stack'.
5274         (html_text::do_space): Rewritten.
5275         * src/devices/grohtml/grohtml.man: Document -p and the need of
5276         `psselect'.
5278         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5279         new \O syntax.
5280         Call \O[0] if `ps4html' is active.
5281         * tmac/s.tmac (@EQ, @EN): Handle html better.
5282         (@TS, TE): Ditto.
5283         * tmac/html.tmac: Don't use black for background colour.
5285         * src/roff/troff/node.cc: Include `div.h'.
5286         (troff_output_file::really_print_line): Don't use `is_on'. 
5287         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5288         troff_output_file::check_charinfo,
5289         troff_output_file::put_char_width, troff_output_file::put_char,
5290         troff_output_file::determine_line_limits, troff_output_file::draw,
5291         real_output_file::begin_page, glyph_color_node::tprintf,
5292         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5293         Use `is_on'.
5294         (troff_output_file::really_on): Call `do_motion'.
5295         (suppress_node::tprint): Use `get_page_number' instead of `%'
5296         register.
5297         Call `reset_output_registers' conditionally on `is_on'.
5299         * doc/groff.texinfo: Document new syntax of \O.
5300         * NEWS, man/groff_diff.man: Updated.
5302 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5304         * MORE.STUFF: Add info about David Frey's deroff implementation.
5305         Mention troff.org.
5307 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5309         Pic's `with' attribute now accepts positions.
5311         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5312         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5313         conflicts.
5314         (object_spec): Add rule for `WITH' and `position'.
5315         (relative_path): Give `corner' the precedence of `CHOP'.
5316         * src/preproc/pic/object.h (path): New members `pos' and
5317         `is_position'.
5318         * src/preproc/pic/object.cc: Updated initializers of `path'.
5319         (path::follow): Handle `is_position'.
5321         * doc/pic.ms: Completely updated grammar description.
5322         Many typographical improvements.
5324 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5326         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5327         code of x in range 0-127) also.
5328         * doc/groff.texinfo, man/groff_diff.man: Updated.
5330         Added keywords `north', `south', `east', and `west' for corners
5331         in pic.
5333         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5334         and WEST.
5335         (yylex): Handle them.
5336         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5337         (corner): Handle them.
5339 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5341         * src/devices/grops/grops.man: Clarify handling of `download' file.
5343 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5345         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5346         Jeffrey Friedl <jfriedl@yahoo.com>.
5348         * src/roff/troff/input.cc (spread_limit, warn_scale,
5349         warn_scaling_indicator): New global variables.
5350         (warnscale_request, spreadwarn_requests): New functions.
5351         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5352         (init_input_requests): Updated.
5353         (error_type): Add `OUTPUT_WARNING'.
5354         (do_error): Handle it.
5355         (output_warning): New warning function which shows output location.
5356         * src/roff/troff/env.h (spread_limit): New external variable.
5357         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5358         `output_warning'.
5359         (distribute_space): Emit warning if added space is larger than
5360         `spread_limit'.
5361         (environment::possibly_break_line): Emit warning if a line can't
5362         be adjusted on both sides.
5364         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5366 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5368         * src/roff/troff/node.cc (special_node::special_node): Use
5369         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5370         \X''\% crashes, for example.
5372         * doc/groff.texinfo: Document \! and \? used at top-level.
5374 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5376         * src/preproc/pic/pic.man: Fix some keyword syntax.
5377         Other minor typographical fixes.
5379         * src/roff/groff/groff.man: Fix typos.
5381 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5383         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5384         (ShortOpt[]): This to avoid problems with refer.
5386         * doc/pic.ms: Fix typo.
5387         Fix pic grammar description.
5389         * tmac/an-old.tmac (ne): Use de1, not de.
5391 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5393         * doc/groff.texinfo: Finished separation of glyphs and characters.
5394         Don't use the string `Appendix' for appendix headers (both in
5395         the text and the table of contents).
5396         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5397         directories.
5399         Use registers LL and LT (similar to -ms) for controlling the
5400         length of title and line, respectively, in the -man and -mdoc
5401         macro packages.
5403         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5404         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5405         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5406         (TH): Use \n[LL].
5407         (an-header, an-p-footer): Use \n[LT].
5408         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5409         doc/groff.texinfo: Document it.
5411 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5413         * doc/fdl.texi: New file.
5414         * doc/groff.texinfo: Include it.
5415         Define and use @copying.
5416         Starting with separating glyph, symbol, and character.
5418 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5420         * Makefile.in (EXEEXT): Set it.
5421         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5422         programs.
5424         * src/include/nonposix.h: Define GS_NAME.
5425         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5427         Some preliminary changes for EMX support under OS/2.
5429         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5430         __EMX__ similar to __MSDOS__.
5431         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5433 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5435         * doc/groff.texinfo: Integrated groff_out.man.
5436         Some macro fixes.
5438 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5440         * man/groff_out.man: Minor fixes.
5442 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5444         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5445         correct page references.
5446         Fixed many index entries.
5448 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5450         * man/roff.man: Enlarged.
5452 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5454         * doc/groff.texinfo: More examples, other fixes.
5456 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5458         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5459         will now form a chain, e.g.
5461           .pi foo
5462           .pi bar
5464         is now the same as
5466           .pi foo | bar
5468         This is for compatibility with plan 9's troff.
5470         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5471         with UNIX troff.
5472         * NEWS: Updated.
5474         * doc/groff.texinfo: Add documentation of remaining requests and
5475         registers.
5477 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5479         * doc/groff.texinfo: Add documentation of remaining escapes.
5481         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5482         * font/devdvi/*TC: Regenerated.
5484 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5486         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5487         if not in compatibility mode, i.e., increment relative to the
5488         previous height.
5489         * doc/groff.texinfo: Updated accordingly.
5491 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5493         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5495 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5497         * src/roff/groff/groff.man: Improve documentation of -P option.
5498         Other minor fixes.
5500 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5502         Add new escape \F to switch font family.
5504         * src/roff/troff/input.cc (token::next): Handle \F.
5505         * src/roff/troff/env.cc (environment::set_family): Handle
5506         `interrupted' flag.
5507         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5508         Document it.
5510 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5512         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5513         spaces in tags.
5515 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5517         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5518         \m[] and \M[], respectively.
5520         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5521         (symbol::symbol): Handle NULL string and empty string differently.
5522         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5523         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5524         Add optional parameter.
5525         Updated calling functions.
5526         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5527         `symbol::is_empty'.
5528         * src/roff/troff/env.cc (environment::set_font): Ditto.
5530         * src/preproc/pic/troff.cc (troff_output::set_fill,
5531         troff_output::reset_color: Updated.
5533         * tmac/www.tmac: Updated.
5535         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5536         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5537         Updated.
5539         * tmac/Xps.tmac: Remove some redundant code.
5541         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5542         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5543         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5544         \f[].
5546 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5548         * src/include/printer.h, src/libs/libdriver/printer.cc
5549         (printer::change_fill_color): New member function.
5550         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5552 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5554         * doc/groff.texinfo: Completed pass on gtroff reference.
5556 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5558         * doc/groff.texinfo: More fixes.
5560 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5562         * src/include/color.h: Decorate with `const'.
5563         Use `size_t'.
5564         Include `stddef.h'.
5565         * src/libs/libgroff.color.cc: Decorate with `const'.
5566         Use `size_t'.
5567         (color::color): Initialize members.
5568         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5569         command according to the documentation.
5571         * man/groff_out.man: Updated.
5572         Minor fixes.
5574 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5576         * src/preproc/html/pre-html.cc (write_start_image): Remove
5577         redundant output.
5578         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5580         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5581         \C'hy' caused an assertion failure.
5583         * src/roff/troff/env.cc (environment::environment): Initialize
5584         `emitted_node'.
5585         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5587 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5589         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5590         Document pvs request and .pvs register.
5592 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5594         * doc/groff.texinfo: Improve and fix documentation of diversions
5595         and environments.
5597 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5599         * doc/groff.texinfo: Fix documentation of drawing functions.
5600         Other minor fixes.
5602 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5604         * doc/groff.texinfo: Better documentation of double quotes as
5605         arguments.
5606         Other minor fixes.
5608 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5610         * man/groff_font.man: Document names of special characters better.
5611         * doc/groff.texinfo: Minor improvements.
5613         * tmac/lbp.tmac: Load latin1.tmac.
5614         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5616         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5618 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5620         * tmac/tty.tmac: Don't use shc request.
5621         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5622         * NEWS: Updated.
5624         * man/groff_diff.man: Minor fixes.
5626         * font/devlbp/*: Remove all `charXXX' entities.
5628         * src/libs/libgroff/font.cc (font::~font): Deallocate
5629         `special_device_coding'.
5630         (font::load): Use `new' for allocating `special_device_coding'.
5631         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5632         Removed unused member.
5634 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5636         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5637         (resource_manager::do_begin_binary,
5638         resource_manager::do_begin_data): Use it.
5640         * doc/texinfo.tex: Updated to version 4.2.
5642         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5643         (token::zero_width_break): New inline function.
5644         * src/roff/troff/input.cc (token::next): Use it.
5645         (token::description): Updated.
5646         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5647         (token::add_to_node_list, token::process): Use it.
5648         * NEWS, doc/groff.texinfo: Updated.
5650         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5651         * tmac/tty.tmac: Add missing backslash.
5653 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5655         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5656         `.ps' register instead of `.s' to handle fractional point sizes.
5657         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5658         limit_box::output): Ditto.
5659         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5660         size_box::output): Ditto.
5661         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5662         over_box::output): Ditto.
5663         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5664         script_box::output): Ditto.
5665         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5666         sqrt_box::output): Ditto.
5668 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5670         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5671         Fix typo.
5673 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5675         * doc/homepage.ms: Reduce title size.
5676         * doc/groff.texinfo: Fix documentation of .t register.
5677         Fix handling of colon.
5678         Fix `\' vs. `\\'.
5680         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5681         only if page length is positive to avoid a loop.
5683         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5684         tbl.
5686 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5688         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5689         s/__CYGWIN32__/__CYGWIN__/.
5691 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5693         * doc/gnu.xpm: New image contributed by Emily Mulley.
5694         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5695         (homepage.html): Be dependent on gnu.eps.
5696         * doc/homepage.ms: Updated to new image.
5698         * src/devices/grohtml/post-html.cc (html_printer): New member
5699         `sbuf_prev_hpos'.
5700         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5701         (html_printer::sbuf_continuation): Use it.
5703 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5705         * src/libs/libgroff/getopt.c: Updated to latest version.
5707         * tmac/README: More on hyphen.tex license.
5709 2002-03-26  Larry Kollar  <kollar@alltel.net>
5711         * doc/groff.texinfo: Add documentation of most missing requests.
5713 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5715         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5716         of `+-', `mu', and `di', respectively.
5718         * font/devascii/R.proto, font/devutf8/R.proto,
5719         font/devlatin1/R.proto, font/devhtml/R.proto,
5720         font/devcp1047/R.proto, font/devlpb/*: Add them.
5721         * font/devps/generate/textmap: Ditto.
5722         * font/devps/*: Regenerated.
5723         * font/devlj4/generate/text.map: Add them.
5724         * font/devlj4/*: Regenerated.
5725         * font/devdvi/generate/tc.map: Use them.
5726         * font/devdvi/generate/texsy.map: Add them.
5727         * font/devdvi/*: Regenerated.
5728         * font/devX*/*: Regenerated.
5730         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5731         tmac/tty-char.tmac: Updated.
5733         * NEWS, man/groff_char.man: Updated.
5735 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5737         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5738         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5739         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5740         we use `.fchar' in dvi.tmac.
5741         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5742         * tmac/Xps.tmac: Simplify some char definitions.
5743         Add definition for \[f/].
5744         * man/groff_char.man: Updated for new X.tmac.
5746         * tmac/README: New file.
5748 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5750         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5751         internal .y.o rule took precendence over the .y.cc rule, compiling
5752         the yacc files with gcc instead of g++.
5754 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5756         * tmac/dvi.tmac: Add replacement font for `CB'.
5758         * tmac/doc.tmac: s/request/macro/ in messages.
5759         (doc-generic-macro): Improve error message.
5760         * tmac/groff_mdoc.man: Minor improvements.
5762 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5764         * doc/groff.texinfo: Document possible conflict between `tr' and
5765         `char' requests.
5767 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5769         Improve handling of hyphenation patterns.  It is now possible to
5770         use most of TeX's pattern files unmodified.  To make the process
5771         more flexible, a new request `hpfcode' has been added which
5772         provides a character code mapping for the `hpf' request.  See
5773         comment before hpf_getc() for more details.
5775         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5776         functions.
5777         (read_patterns_file): Additional parameter for exception dictionary.
5778         Extended to recognize \pattern, \hyphenation, and \endinput.
5779         (do_hyphenation_patterns_file): Updated.
5780         * src/roff/troff/env.h (hpf_code_table): New extern.
5782         * src/roff/troff/input.cc (hpf_code_table): New array.
5783         (init_hpf_code_table, hyphenation_patterns_file_code): New
5784         functions.
5785         (hyphenation_code): Handle translation from `trin' correctly.
5786         (main, init_input_requests): Updated.
5787         (charinfo::set_translation): Handle hyphenation code also.
5789         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5790         inline function.
5792         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5793         char' is used for offsets in hyphenation exceptions.
5795         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5797         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5799 2002-03-20  Larry Kollar  <kollar@alltel.net>
5801         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5802         requests.
5804 2002-03-18  Werner LEMBERG  <wl@gnu.org>
5806         * tmac/html.tmac: Fix serious typo.
5808 2002-03-17  Larry Kollar  <kollar@alltel.net>
5810         * doc/groff.texinfo: Add documentation for `writec' request.
5812 2002-03-17  Werner LEMBERG  <wl@gnu.org>
5814         Added request `hpfa' to append hyphenation patterns.
5816         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5817         parameter `append'.
5818         (hyphenation_patterns_file): Renamed to...
5819         (do_hyphenation_patterns_file): This.
5820         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5821         functions.
5822         (init_hyphen_requests): Updated.
5823         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5825 2002-03-16  Werner LEMBERG  <wl@gnu.org>
5827         Added request `writec' in analogy to `tmc'.
5829         * src/roff/troff/input.cc (write_request): Renamed to...
5830         (do_write_request): This.
5831         Added one parameter.
5832         (write_request, write_request_continue): New functions.
5833         (init_input_requests): Updated.
5834         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5836         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5837         5-10000pt.
5838         * NEWS: Document it.
5840 2002-03-15  Werner LEMBERG  <wl@gnu.org>
5842         * man/groff.man: Add writem request.
5844         Add request `trin' (translate input) to make `.asciify' work
5845         correctly.  This is necessary since `charXXX' entity names are no
5846         longer hardcoded in font definition files.
5848         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5849         `translate_input' members.
5850         (charinfo::set_asciify_code, charinfo::get_asciify_code,
5851         charinfo::set_translation_input): New methods.
5852         (charinfo::set_translation): Add third argument.
5853         * src/roff/troff/input.cc (charinfo:set_translation): Set
5854         `asciify_code'.
5855         (do_translate): Add second argument.
5856         (translate_input): New function.
5857         (init_input_requests): Updated.
5858         * src/roff/troff/node.cc (glyph_node::asciify,
5859         composite_node::asciify): Use `get_asciify_code'.
5861         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5863         * NEWS, man/groff.man, man/groff_diff.man: Updated.
5865 2002-03-14  Larry Kollar  <kollar@alltel.net>
5867         * doc/groff.texinfo: Improve documentation of .RS and .RE.
5869 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5871         Add a new request `sizes' similar to the `sizes' command in DESC
5872         files.
5874         * src/roff/troff/env.cc (override_sizes): New function.
5875         (init_env_requests): Use it.
5876         * src/roff/troff/token.h: Export `read_string'.
5877         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5879 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5881         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5883 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5885         * tmac/pspic.tmac: Add support for -Tdvi.
5886         * tmac/dvi.tmac: Include pspic.tmac.
5887         * src/devices/grodvi/grodvi.man: Document it.
5888         * NEWS: Updated.
5890         * font/devlj4/generate/Makefile: Fix URL of metric files.
5892 2002-03-09  Werner LEMBERG  <wl@gnu.org>
5894         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5896 2002-03-09  Larry Kollar  <kollar@alltel.net>
5898         * tmac/groff_ms.man: Add documentation for RS and RE macros.
5900 2002-03-08  Werner LEMBERG  <wl@gnu.org>
5902         * doc/groff.texinfo: Fixes for texinfo 4.1.
5904 2002-03-07  Werner LEMBERG  <wl@gnu.org>
5906         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5907         included.
5908         Handle CYGWIN properly.
5910 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
5912         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5913         * tmac/lbp.tmac: Add some font translations.
5915 2002-03-02  Werner LEMBERG  <wl@gnu.org>
5917         * font/devcp1047/R.proto, font/devlatin1/R.proto,
5918         font/devhtml/R.proto: Remove `charXXX'  entries.
5919         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5920         where appropriate.
5922         * font/devlj4/generate/text.map: Remove `charXXX' entries.
5923         * font/devlj4/*: Regenerated all font definition files.
5924         * tmac/lj4.tmac: Load latin1.tmac.
5926         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5927         from 2000-06-17: LJ4 metric files are *not* text files.
5929         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5930         register to test for EBCDIC.
5932 2002-03-01  Werner LEMBERG  <wl@gnu.org>
5934         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5935         files (as grops already does).
5936         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5937         files.
5938         * src/devices/grops/grops.man: Document comment lines in encoding
5939         files.
5941         * tmac/cp1047.tmac: New file.
5942         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5943         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5944         * tmac/Makefile.sub (NORMALFILES): Updated.
5946         * tmac/ec.tmac: Don't load latin1.tmac again.
5948         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5949         font/devps/generate/dingbats.map,
5950         font/devps/generate/dingbats.rmap, font/devps/text.enc,
5951         font/devps/generate/Makefile (symbolmap): Add header comment.
5952         * font/devps/generate/textmap: Ditto.
5953         Remove `charXXX' entries.
5954         * font/devps/symbolmap: Regenerated.
5955         * font/devps/*: Regenerated all font definition files.
5957 2002-02-28  Werner LEMBERG  <wl@gnu.org>
5959         Add color support to grodvi (for drawing colors are currently
5960         translated to gray values).
5962         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5963         (dvi_printer): Add `cur_color' member.
5964         (dvi_printer::set_color): New function.
5965         (draw_dvi_printer): Remove `fill'.
5966         (draw_dvi_printer::fill_next): Pass environment as parameter.
5967         Update code for new color support translated to gray.
5968         (dvi_printer::set_char): Updated.
5969         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5970         changes crossing the page border.
5971         (dvi_printer::draw): Updated.
5972         Remove cases `f' and `F'.
5973         * tmac/dvi.tmac: Add color definitions.
5974         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5976         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5977         used incorrectly.
5979         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5980         versions of autoconf.
5981         * configure: Updated.
5983         * doc/homepage.ms: Use `.blm'.
5984         * tmac/www.tmac (www-depth): New auxiliary variable.
5985         (www-pop-level): Don't issue HTML tag.
5986         (ULS, ULE, LI): Use absolute indentation.
5988         * src/devices/grops/ps.cc (ps_printer::begin_page,
5989         ps_printer::end_page): Switch forth and back to default color while
5990         starting a new page.
5992 2002-02-27  Werner LEMBERG  <wl@gnu.org>
5994         Add EC and TC fonts to devdvi.
5996         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5997         * font/devdvi/generate/cork.map: Renamed to...
5998         * font/devdvi/generate/ec.map: This.
5999         Remove entry for `aq'.
6000         * font/devdvi/generate/tc.map: New file.
6001         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6002         EC and TC fonts.
6003         (FONTS): Updated.
6004         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6005         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6006         * tmac/ec.tmac: New file.
6007         * tmac/Makefile.sub (NORMALFILES): Updated.
6008         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6009         * man/groff_char.man: Check `ECFONTS' register.
6011         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6013 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6015         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6016         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6017         * font/devdvi/*: Updated.
6018         * tmac/dvi.tmac: Formatting.
6020         Add font `HBI' for the dvi output.
6021         Add support for font families `T' and `H'.
6023         * font/devdvi/HBI: New file.
6024         * font/devdvi/B: Renamed to ...
6025         * font/devdvi/TB: This.
6026         * font/devdvi/BI: Renamed to ...
6027         * font/devdvi/TBI: This.
6028         * font/devdvi/I: Renamed to ...
6029         * font/devdvi/TI: This.
6030         * font/devdvi/R: Renamed to ...
6031         * font/devdvi/TR: This.
6032         * font/devdvi/H: Renamed to ...
6033         * font/devdvi/HR: This.
6034         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6035         * font/devdvi/generate/Makefile (HBI): New rule.
6036         (FONTS): Updated.
6037         (R, I, B, BI, H): Renamed to ...
6038         (TR, TI, TB, TBI, HR): This, respectively.
6039         (srcdir): Fixed.
6040         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6041         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6042         Add `styles' and `family' keywords.
6043         * tmac/dvi.tmac: Alias `H' to `HR'.
6044         Add some fspecial requests for italic fonts.
6045         Add TR and TI as special.
6046         Add support for `_' with font CWI.
6048         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6049         operator `:'.  Until now, the expression `0:1' would return 2
6050         instead of 1.
6052 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6054         * man/groff_char.man: Added some missing PS glyph names (from the
6055         Adobe Glyph List).
6056         * font/devps/generate/textmap, font/devps/symbolmap: Add
6057         `arrowupdn'.
6059         * doc/groff.texinfo: Minor additions and fixes.
6060         * man/groff_diff.man: Remove documentation of fp request.  This
6061         is already covered in the original troff manual.
6062         Updated to be consistent with other doc files.
6063         * NEWS: Updated.
6065 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6067         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6068         TTYDEVDIRS.
6069         Define new variable OTHERDEVDIRS (containing `font/devlj4
6070         font/devlbp' if not EBCDIC).
6071         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6072         (OTHERDEVDIRS): New variable.
6073         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6074         * configure: Regenerated.
6076         * NEWS, src/devices/grotty/grotty.man: Updated.
6078 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6080         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6081         get_line_arg): Honour input level.
6083         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6085         * font/*/*: Implement it in all font files.
6086         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6087         * font/devps/symbolmap: Updated.
6088         * font/devlj4/generate/text.map: Updated.
6089         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6090         * font/devdvi/generate/texmi.map: Updated.
6092         * font/devutf8/R.proto: Remove all `charXXX' entries.
6093         * font/devutf8/NOTES: Updated.
6095         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6096         version 4.1.0.
6098         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6100         * NEWS, man/groff_char.man: Updated.
6102 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6104         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6106 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6108         * src/roff/grog/grog.pl: Fix computation of $refer.
6110 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6112         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6113         `snprintf' and `vsnprintf'.
6115         * src/include/htmlindicate.h: Renamed to...
6116         * src/include/htmlhint.h: This.
6117         * src/include/Makefile.sub: Updated.
6118         * src/preproc/eqn/main.cc: Updated.
6120 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6122         * man/roff.man, man/groff_out.man, man/groff.man,
6123         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6124         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6126         * win32-diffs: Updated.
6128 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6130         * doc/Makefile (clean): Add *.eps.
6131         (MEMACROS): Removed.
6132         (TFLAG): New variable.
6133         (TROFF): Use it.
6134         Add -ww.
6135         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6136         (.me.dit): Fixed.
6137         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6139         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6140         `.tl'.
6141         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6142         unstripped.
6143         * src/roff/troff/troff.man: Fix order of parameter description.
6145         * NEWS: Updated.
6147 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6149         Simplify image handling for grohtml.
6150         Fix <p> bug.
6152         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6153         comment out.
6154         (html_text::dump_stack): Don't emit newline while debugging.
6155         (html_text::do_push) [DEBUGGING]: Print more info.
6156         (html_text::check_emit_text): Fix handling of <p>.
6157         * src/devices/grohtml/html.h: Updated.
6158         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6159         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6160         send its data to stderr also.
6161         Update all callers.
6162         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6163         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6164         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6166         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6167         Removed.
6168         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6169         is_inline_image): Removed.
6170         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6171         (graphic_start, graphic_end): Removed.
6172         * src/include/htmlindicate.h: Updated.
6173         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6174         (macroset_template): New global variable.
6175         (makeFileName): Use `macroset_template'.
6176         (write_end_image): Don't take a parameter.
6177         Don't emit newline.
6178         (write_start_image: Don't emit newline.
6179         (char_buffer::write_upto_newline): Updated.
6180         (char_buffer::skip_to_newline): Renamed to ...
6181         (char_buffer::skip_until_newline): This.
6182         Fix code.
6183         (char_buffer::write_file_troff, char_buffer::write_file_html):
6184         Simplified.
6185         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6186         (removeAllPages): Remove `DEBUGGING' conditionals.
6187         (addRegDef, dump_args): New functions.
6188         (char_buffer::do_html, char_buffer::do_image): Handle
6189         `www-image-template' command line variable.
6190         Add more debugging code.
6191         (addps4html): Removed.
6192         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6194         * src/preproc/eqn/main.cc: Include `ctype.h'.
6195         (suppress_html): Removed.
6196         (do_file): Updated.
6197         (inline_equation): Use `html_begin_suppress' and
6198         `html_end_suppress'.
6199         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6200         (troff_output::start_picture, troff_output::finish_picture):
6201         Updated.
6202         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6203         (process_input_file): Updated.
6205         * src/roff/troff/div.cc (page_number): Set page number only if the
6206         `ps4html' register isn't defined.
6207         * src/roff/troff/input.cc (image_no): New external variable.
6208         (do_suppress): Use it.
6209         * src/roff/troff/node.h (suppress_node::image_id): New member.
6210         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6211         (suppress_node::suppress_node): Initialize `image_id' member.
6212         (suppress_node::same): Handle `image_id' also.
6213         (suppress_node::copy): Updated.
6214         (last_image_id): New global variable.
6215         (suppress_node::tprint): Use it.
6217         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6218         HTML-IMAGE-END.
6219         * tmac/pspic.mac (PSPIC): Fix html support.
6220         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6221         * tmac/www.tmac (www-image-template): Set up.
6222         (HTMLINDEX): Renamed to...
6223         (HX): This.
6224         (BODYCOLOR): Renamed to...
6225         (BCL): This.
6226         (BACKGROUND): Renamed to...
6227         (BGIMG): This.
6228         (URL): Change order of parameters for consistency.
6229         (MAILTO): Renamed to...
6230         (MTO): This.
6231         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6232         (IMG, PIMG, MPIMG): This.
6233         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6234         (HnS, HnE): This.
6235         (LINKS): Renamed to...
6236         (LK): This.
6237         (LINE): Renamed to...
6238         (HR): This.
6239         (NO-AUTO-RULE): Renamed to...
6240         (NHR): This.
6241         (HTML-TL): Renamed to...
6242         (HTL): This.
6243         (UL-BEGIN, UL-END): Renamed to...
6244         (ULS, ULE): This.
6245         (DROPCAP): Renamed to...
6246         (DC): This.
6247         (TS, TE, EQ, EN): Provide default definitions.
6248         (www-make-unique-name): Updated.
6249         (HTML-IMAGE-INLINE): Fix typo.
6250         * tmac/groff_www.man: Updated.
6252         * doc/Makefile (homepage.html): Add option -r to grohtml.
6253         Use shortened image name.
6254         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6255         * doc/homepage.ms: Updated and extended.
6257 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6259         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6261         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6262         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6263         (tty_printer::put_color): Use it.
6264         (ttr_printer::end_page): Simplify.
6266 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6268         * tmac/groff_tmac.man: Moved to...
6269         * man/groff_tmac.man: This place.
6270         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6272 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6274         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6275         $(COMPILE.c) to not include groff's assert.h.
6277         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6278         variable.
6279         * NEWS, src/drivers/grotty/grotty.man: Document it.
6281 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6283         * src/libs/snprintf/snprintf.c: Updated to latest version
6284         (2002-02-11).
6286         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6287         test whether there is `.]' also.
6288         Don't check for spaces after `.['.
6289         * src/roff/grog/grog.sh: Do the same.
6291 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6293         Illegal -> Invalid.
6295         * src/libs/libgroff/illegal.cc: Renamed to ...
6296         * src/libs/libgroff/invalid.cc: This.
6297         (illegal_char_table): Renamed to ...
6298         (invalid_char_table): This.
6299         * src/libs/libgroff/Makefile.sub: Updated.
6300         * win32-diffs: Updated.
6302         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6303         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6304         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6305         font::load), src/preproc/eqn/main.cc (read_line, main),
6306         src/preproc/eqn/lex.cc (file_input::read_line),
6307         src/preproc/pic/lex.cc (file_input::read_line,
6308         simple_file_input::get, simple_file_input::peek),
6309         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6310         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6311         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6312         do_bib), src/preproc/tbl/main.cc (table_input::get),
6313         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6314         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6315         do_zero_width, read_request, encode_char, ps_get_line,
6316         transparent_file, get_char_for_escape_name, transparent_translate,
6317         asciify, input_char_description, read_string, set_string),
6318         src/roff/troff/env.cc (environment::add_html_tag),
6319         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6321         * src/include/lib.h: Updated.
6323         * src/preproc/eqn/eqn.cc: Removed.
6325         * NEWS: Updated.
6327         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6329 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6331         * doc/gnu.xpm: New image.
6332         * doc/Makefile (DOCS): Add homepage.ps.
6333         Add rules for converting xpm->png and xpm->eps.
6334         Use `gnu.{xpm,eps}' as image names.
6335         * doc/homepage.ms: Updated.
6337 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6339         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6340         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6341         Remove calls to `B1' and `B2'
6342         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6343         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6344         auxiliary variables for MARGIN-PNG-IMAGE.
6345         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6346         auxiliary macros for MARGIN-PNG-IMAGE.
6347         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6348         the margin.
6349         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6350         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6351         (DROPCAP): New macro to produce dropcap characters.
6352         (www-do-image): Renamed back to...
6353         (HTML-DO-IMAGE): This.
6354         Updated all callers.
6356         * doc/Makefile (gnubw.eps): Updated.
6357         * doc/homepage.ms: Updated.
6359 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6361         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6362         Added `linethick' to table in section `Style Variables'.
6364 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6366         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6368 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6370         Adding options -C (compatibility mode) and -c (grotty's old output
6371         scheme) to nroff.
6373         * src/roff/nroff/nroff.sh: Implement it.
6374         Remove `-Wall'.
6375         * NEWS, src/roff/nroff/nroff.man: Updated.
6377         * PROBLEMS: Document bison 1.32 bug.
6379         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6381         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6382         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6383         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6384         * src/roff/troff/env.h: Add prototype for `title'.
6386         Adding EBCDIC support to grotty.
6388         * src/devices/grotty/tty.cc (CSI): New macro.
6389         (SGR_*, tty_printer::put_color): Use it.
6391 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6393         Implementing color support in grotty.  The new switch -c activates
6394         the old drawing scheme, disabling color at the same time.  The new
6395         switch `-i' selects italic instead of underlining (SGR only).
6397         * src/devices/grotty/tty.cc (putstring): New define instead of
6398         `fputs'.  Updated all callers.
6399         (old_drawing_scheme): New global variable.
6400         (COLOR_CHANGE): New enum value.
6401         (SGR_*): New defines containing color handling escape sequences.
6402         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6403         (glyph): New members `back_color_idx' and `fore_color_idx'.
6404         (glyph::order): Add COLOR_CHANGE.
6405         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6406         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6407         New methods `make_underline', `make_bold', `color_to_idx',
6408         `change_color', `put_color'.
6409         (cu_flag): Moved into `tty_printer' class.
6410         (tty_printer::tty_printer): Initialize colors.
6411         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6412         tty_printer::draw, tty_printer::end_page): Handle colors also.
6413         (main): Add options `-c' and `-i'.
6414         (usage): Updated.
6415         * NEWS, src/devices/grotty/grotty.man: Updated.
6417         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6418         * src/libs/libgroff/errarg.c: Implement it.
6420         * src/include/printer.h (printer): Add `change_color' method
6421         (currently used by grotty only).
6422         * src/libs/libdriver/printer.cc: Implement it.
6423         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6424         call to `pr->change_color'.
6426         * src/roff/troff/node.cc (troff_output_file::fill_color,
6427         troff_output_file::glyph_color): Call `do_motion'.
6429         * tmac/tty.tmac: Add color definitions.
6431         * src/roff/groff/groff.man: Minor fixes.
6433 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6435         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6436         it.  This is a preparation for future changes.
6438 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6440         * src/roff/troff/input.cc (process_input_stack): Fix the case
6441         where leading spaces are followed by \f or \s; previously, an
6442         incorrect space width has been used.
6444         * doc/roff.man (quoted_char): Fix argument.
6445         (comment): Define string.
6447 2002-02-04  Larry Kollar  <kollar@alltel.net>
6449         * doc/groff.texinfo: More fixes.
6451 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6453         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6454         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6455         `restore_compatibility' before `output_string' -- the LINE_STRING
6456         register now already contains proper switches from and to
6457         compatibility mode.
6459         * man/groff_char.man: Add Euro symbol.
6460         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6461         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6462         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6463         Other minor fixes.
6465         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6466         texinfo->pdf.
6467         (.texinfo.html): Add support for texinfo->html.
6469 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6471         Added three new requests `ds1', `as1', and `ami'.  The former two
6472         are equivalent to `ds' and `as' with the difference that
6473         compatibility mode is saved on entry, switched off during string
6474         expansion, and restored on exit.  The latter is the pendant to `dei'
6475         for `am'.
6477         (do_define_string): Use `define_mode' and `calling mode'.
6478         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6479         end of string, respectively.
6480         (define_string, append_string): Use `calling_mode'.
6481         (define_nocomp_string, append_nocomp_string,
6482         define_string_indirect): New functions.
6483         (init_input_requests): Updated.
6484         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6486         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6487         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6488         mm macro package accesses this string register directly.
6489         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6491         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6492         compatibility mode.
6494 2002-02-02  Larry Kollar  <kollar@alltel.net>
6496         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6498 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6500         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6502 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6504         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6505         * man/groff_out.man: Revised and updated.
6507 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6509         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6510         out the unused `{' and `}' commands.  Undefined by default.
6511         (IntArray): Make `data' private.
6512         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6513         new methods instead.
6514         (skip_line_D, skip_to_end_of_line): New functions.
6515         (get_D_fixed_args): Use `skip_line_D'.
6516         Changed to handle dummy odd arguments by ...
6517         (get_D_fixed_args_odd_dummy): This new function.
6518         (get_D_variable_args): Split some code into ...
6519         (get_possibly_integer_args): This new function.
6520         (send_draw): Use more `const'.
6521         (delete_current_env): New function.
6522         (position_to_end_of_args): Use `size_t'.
6523         Updated.
6524         (send_draw): Updated.
6525         (parse_D_command): Handle `c', `C', and `t' better.
6526         Updated.
6527         (do_file): Updated.
6529 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6531         * NEWS: Revised.
6532         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6533         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6534         proper HTML output -- see the comment in the file for more
6535         information.
6536         Updated all calls.
6538 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6540         Fixes to make color changes of 2002-01-21 work with grohtml.
6542         * src/devices/grohtml/post-html.cc (style): Updated.
6543         (html_printer): Remove unused methods.
6544         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6545         html_printer::special): Updated.
6546         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6547         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6548         Added some debugging code.
6549         (html_text::start_tag): Updated.
6550         (html_text::do_push): New method.
6551         (html_text::push_para): Call it.
6552         Add method for handling color.
6553         (html_text::do_color): Updated.
6554         (html_text::shutdown): Handle color.
6555         * src/devices/grohtml/html-text.h (tag_definition): New member
6556         `col'.
6557         Updated.
6559 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6561         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6563 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6565         Add two switches -a and -g to control the antialiasing bits for
6566         text and graphics, respectively.
6568         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6569         `-g'.
6570         * src/devices/grohtml/grohtml.man: Document them.
6571         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6572         New macros.
6573         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6574         (setupAntiAlias): New function.
6575         (createAllPages): Updated.
6576         (scanArguments): Handle `-a' and `-g'.
6577         (main): Call `setupAntiAlias'.
6578         * NEWS: Updated.
6580 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6582         * doc/groff.texinfo (Def*): Call index function after deffn.
6584         * tmac/html.tmac: Call `nroff' request.
6586 2002-01-26  Larry Kollar  <kollar@alltel.net>
6588         * tmac/groff_ms.man: Add some omissions.
6590 2002-01-25  Larry Kollar  <kollar@alltel.net>
6592         * tmac/groff_ms.man: Typographical improvements.
6594 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6596         * doc/groff.texinfo: Updated version and copyright.
6597         * src/devices/grops/grops.man: Updated.
6599         * tmac/groff_tmac.man: Fix `ig' macro.
6601         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6602         nroff mode.
6603         Use `.ne' unconditionally everywhere.
6604         (TS): Only insert some vertical space.  Doing a page break is no
6605         longer necessary due to the redefinition of the `ne' request.
6607         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6608         warning for unknown subcommands but parse and pass them to the
6609         device driver.
6611 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6613         * tmac/groff_www.man, NEWS: Fix typos.
6615 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6617         Complete revision of color support:
6619           Adapt programs to the new libdriver/input.cc.
6621           Color spaces are no longer converted to RGB but transferred as-is
6622           in the troff intermediate output format.
6624           Handle default color gracefully.  troff now supports a `default'
6625           color (which can't be changed).
6627           grops will now use the proper color space functions if available.
6629           Update pic.
6631         Note that currently grohtml doesn't handle colors properly.  This
6632         has to be fixed.
6634         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6635         (ui_to_a): New function.
6636         * src/include/lib.h: Updated.
6638         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6639         (color): Simplified; removed all `double' members and methods.
6640         A new array `components' now holds the color parameters.
6641         (color::is_default, color::get_components): New methods.
6642         (color::operator==, color:operator!=): New.
6643         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6644         to make access to the `components' array more comprehensible.
6645         * src/libs/libgroff/color.cc: Implement new color support.
6646         (atoh): Small fixes.
6647         (color::read_encoding): Simplified for new troff intermediate color
6648         output format.
6649         (default_color): New global variable.
6651         * src/roff/troff/input.cc (default_symbol): New global variable.
6652         (lookup_color): Use it.
6653         (default_black): Removed.
6654         (do_glyph_color, do_fill_color): Simplified.
6655         (define_color): Handle default color.
6656         Improve warnings.
6657         (do_if_request): Handle default color.
6658         * src/roff/troff/env.cc (environment::environment): Initialize
6659         colors with `default_color'.
6660         * src/roff/troff/node.cc (troff_output_file::put): Add method
6661         for `unsigned int'.
6662         (troff_output_file::hex): Removed.
6663         (troff_output_file::fill_color, troff_output_file::glyph_color):
6664         Updated to include/color.h and libdriver/input.cc.
6666         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6667         fill color properly (identically to the outline color).  \D'f...'
6668         doesn't work any more.
6669         All function calls to it updated.
6671         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6672         Updated.
6673         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6674         Updated.
6676         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6677         (ps_printer::sbuf_color): Make a real member instead of pointer.
6678         (ps_printer::fill_color, ps_printer::output_color): Removed.
6679         (ps_printer::ps_printer): Updated.
6680         (ps_printer::set_char): Ditto.
6681         (ps_printer::set_color): Use various color schemes.
6682         Use `put_color' method.
6683         (ps_printer::flush_sbuf): Don't set color.
6684         (ps_printer::fill_path): Take `environment' as parameter.
6685         Simplify color handling.
6686         (ps_printer::set_line_thickness): Renamed to ...
6687         (ps_printer::set_line_thickness_and_color): This (and updated).
6688         (ps_printer::set_color): Change second parameter from `complete'
6689         to `fill' which better describes what it does.
6690         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6691         and text in the right order.
6692         Updated.
6693         Remove branches for `f' and `F'; this is handled by
6694         libdriver/input.cc.
6695         * src/devices/grops/ps.h: Updated.
6696         * font/devps/prologue (FL): Redefined.
6697         ({F,C}r,k,g: New color functions (with and without filling).
6699         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6700         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6701         doc/groff.texinfo, NEWS: Updated.
6703 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6705         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6706         in this file for what has been changed.
6708 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6710         * test-groff: Fix GROFF_FONT_PATH.
6711         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6712         is read before .TH or .Dd is parsed.
6714 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6716         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6717         quadrant boundaries.
6719 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6721         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6722         applied last patch.
6724 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6726         * tmac/doc.common: Initialize %I register for the %I macro to
6727         avoid (harmless) warning.
6728         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6729         when in the SYNOPSIS section.
6731 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6733         * src/preproc/pic/lex.cc (get_token): Fix typo.
6735 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6737         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6739 2002-01-17  Larry Kollar  <kollar@alltel.net>
6741         * tmac/groff_ms.man: Completely rewritten.
6743 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6745         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6747 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6749         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6750         fill colors.
6751         (ps_printer::draw): Ditto.
6753 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6755         * tmac/groff_mdoc.man: Minor fixes.
6757 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6759         * man/groff_out.man: Some fixes.
6761 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6763         * doc/pic.ms: Fix typos.
6765 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6767         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6769 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6771         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6772         symbols.
6773         * NEWS: Updated.
6775 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6777         * man/groff_out.man: Revised.
6778         * man/roff.man: Minor fixes.
6779         * src/roff/troff/troff.man: Some reordering.
6781 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6783         * tmac/an-old.tmac: Add dummy macros for equation support.
6785 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6787         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6789         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6790         man pages.
6791         * tmac/groff_man.man: Small improvements.
6793 2002-01-07  Bernd Warken  <bwarken@mayn.de>
6795         * man/groff_diff.man: Revised.
6797 2002-01-06  Werner LEMBERG  <wl@gnu.org>
6799         * tmac/www.tmac: Remove extraneous backslash.
6801 2002-01-06  Bernd Warken  <bwarken@mayn.de>
6803         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6805 2002-01-05  Werner LEMBERG  <wl@gnu.org>
6807         Integrated groffer, contributed by Bernd Warken.
6809         * contrib/groffer/*: New.       
6810         * Makefile.in, NEWS: Updated.
6812 2002-01-04  Werner LEMBERG  <wl@gnu.org>
6814         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6815         registers defined in macro packages.
6816         Revising the ms part.
6818 2002-01-04  Larry Kollar  <kollar@alltel.net>
6820         * doc/groff.texinfo: Add documentation for ms macros.
6822 2002-01-02  Werner LEMBERG  <wl@gnu.org>
6824         First step in adding PS support for the Euro symbol.  `eu' is the
6825         official Euro logo, `Eu' is a font-specific glyph variant.
6827         * font/devps/text.enc: Add `Euro' at position 9.
6828         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6829         * font/devps/symbolmap: Regenerated.
6831         * NEWS: Updated.
6833 2002-01-02  Bernd Warken  <bwarken@mayn.de>
6835         * man/roff.man: Revised.
6837 2002-01-01  Bernd Warken  <bwarken@mayn.de>
6839         * src/roff/groff/groff.man: Completely rewritten.
6841 2001-12-31  Werner LEMBERG  <wl@gnu.org>
6843         * doc/Makefile: Updated.
6845 2001-12-30  Werner LEMBERG  <wl@gnu.org>
6847         * tmac/www.tmac: Make all names of internal macros/registers/strings
6848         lowercase, and prepend `www-'.
6849         Other minor changes.
6850         * src/roff/troff/troff.man: Add preprocessor string at BOF.
6852 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
6854         Implement option `-b' in grohtml to set the HTML background colour.
6856         * src/devices/grohtml/post-html.cc (default_background): New global
6857         variable.
6858         (html_printer::html_printer): Initialize `background' to
6859         `default_background'.
6860         (main): Implement option `-b'.
6861         (usage): Updated.
6862         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6863         of `-b' option.
6864         * src/devices/grohtml/grohtml.man: Updated.
6865         * doc/Makefile (.ms.html): Use `-b'.
6866         * tmac/html.tmac: Don't set background color.
6868         Add new grohtml tag `.html-tl'.
6870         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6871         member variable.
6872         (title_desc::title_desc): Updated.
6873         (html_printer::troff_tag): Handle `.html-tl'.
6874         (html_printer::write_title): Use `with_h1'.
6875         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6876         (HTML-TL): New macro.
6878         Add support for unordered lists in HTML.
6880         * tmac/www.tmac (www-level): New auxiliary register.
6881         (www-level1, www-level2, www-level3): New auxiliary strings.
6882         (www-push-level, www-pop-level): New auxiliary macros
6883         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6885         Miscellaneous.
6887         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6888         (DEFAULT_VERTICAL_OFFSET): Removed.
6889         (IMAGE_BOARDER_PIXELS): Set to 0.
6890         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6891         (vertical_offset): Initialize with 0.
6892         (gsPaper): New global variable.
6893         (get_resolution): Scan for and return unsigned int.
6894         (get_papersize): New function to get paper length from devps/DESC.
6895         (determine_vertical_offset): New function.
6896         (createAllPages): Produce gray-level images and use proper page
6897         length.
6898         (createImage): Use `-quiet' option of pnmcrop.
6899         (addZ): Fix passing of `-Z'.
6900         (scanArguments): Fix handling of `-o'.
6901         (main): Call `determine_vertical_offset'.
6902         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6903         code for `l'.
6905         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6906         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6907         glyph descenders properly.
6909         * doc/homepage.ms: Include `gnubw.eps'.
6910         * doc/Makefile (gnubw.eps): New rule.
6911         (homepage.html): Depend on `gnubw.eps'.
6913 2001-12-25  Werner LEMBERG  <wl@gnu.org>
6915         * src/roff/troff/input.cc (default_black): Fix return value.
6917 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
6919         * tmac/doc-common (Dt): Change output of architecture strings.
6920         Do some syntax cleanup.
6921         * tmac/groff_mdoc.man: Updated.
6923 2001-12-23  Werner LEMBERG  <wl@gnu.org>
6925         Adding an `itc' request (input line trap accepting \c).
6927         * src/roff/troff/env.h (environment): New member
6928         `continued_input_trap'.
6929         Make `do_input_trap' a friend function instead of `input_trap'.
6930         * src/roff/troff/env.cc (environment::environment,
6931         environment::copy): Updated.
6932         (environment::newline): Implement it.
6933         (do_input_trap): New function.
6934         (input_trap): Call `do_input_trap'.
6935         (input_trap_continued): New function.
6936         (init_env_requests): Updated.
6937         * src/roff/troff/TODO: Updated.
6939         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6940         `.it'.
6942         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6944 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
6946         * tmac/doc-common, tmac/doc-syms: Small updates.
6948 2001-12-22  Colin Watson  <cjwatson@debian.org>
6950         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6952 2001-12-22  Bernd Warken  <bwarken@mayn.de>
6954         * MANIFEST: New file.
6956 2001-12-22  Werner LEMBERG  <wl@gnu.org>
6958         * src/preproc/grn/grn.man: Updated.
6960 2001-12-22  Solar Designer  <solar@openwall.com>
6962         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6963         (DBRead): Use it.
6965 2001-12-19  Werner LEMBERG  <wl@gnu.org>
6967         Implement a fallback character request `.fchar'.
6969         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6970         (is_fallback): New inline function.
6971         * src/roff/troff/input.cc (do_define_character): New function.
6972         (define_character): Call `do_define_character'.
6973         (define_fallback_character): New function.
6974         (init_input_requests): Add `fchar'.
6975         (charinfo::charinfo): Updated.
6976         (charinfo::set_macro): New argument to set `fallback' flag.
6977         * src/roff/troff/node.cc (make_glyph_node, make_node,
6978         node::add_char): Check `fallback' flag.
6979         * NEWS, man/groff_diff.man, man/groff_man: Updated.
6981 2001-12-16  Werner LEMBERG  <wl@gnu.org>
6983         * groff.texinfo: Document exact search algorithm for glyphs.
6985 2001-12-15  Werner LEMBERG  <wl@gnu.org>
6987         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6988         the left side of $(MANPAGES) rule to make it always non-empty.
6990 2001-12-14  Werner LEMBERG  <wl@gnu.org>
6992         * src/roff/troff/input.cc (default_black): Define default color
6993         `black' if not yet defined.
6995 2001-12-13  Werner LEMBERG  <wl@gnu.org>
6997         Implement new string-valued register `.fn' to return the current
6998         real (internal) font name.
7000         * env.cc (environment::get_font_name_string): New function.
7001         (init_env_requests): Add `.fn' register.
7002         * env.h (environment): Updated.
7003         * node.cc (font_info): Make `get_font_name' a friend.
7004         (get_font_name): New function.
7005         * node.h: Updated.
7007         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7009 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7011         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7013 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7015         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7017 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7019         * man/groff_diff.man: Adding documentation for \O.
7021 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7023         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7024         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7026 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7028         * man/roff.man: Revised.
7029         * src/roff/groff/groff.man: Replace man page references with a
7030         pointer to roff.man.
7032 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7034         * man/roff.man: Completely rewritten.
7036 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7038         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7040 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7042         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7043         longer used.
7044         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7045         order of initializers.
7046         * NEWS: Updated.
7048 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7050         * doc/groff.texinfo: Fix documentation of \O.
7052         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7053         html_text::do_table, html_text::do_emittext, html_text::do_para):
7054         Use `const' for first argument.
7055         (html_text::do_table): Use cast.
7056         * src/devices/grohtml/html-text.h: Updated.
7057         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7058         method for `const string &s'.
7059         * src/devices/grohtml/html.h: Updated.
7060         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7061         (ANCHOR_TEMPLATE): Modified.
7062         (manufacture_headings): New global variable to handle `-h' option.
7063         (is_subsection): Removed.
7064         (char_buffer::add_string): Add `const' to first argument.
7065         Protect against invalid string argument.
7066         Add method for `const string &s'.
7067         (text_glob): Completely redesigned.
7068         (page): Use `const' for strings and remove string length variable.
7069         (page::add_html): Removed.
7070         (page::add_end_encode): New member function.
7071         (to_unicode): Moved upwards.
7072         (title_desc, header_desc): Updated.
7073         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7074         definition.
7075         (html_printer::is_bold, html_printer::make_bold): New member
7076         functions.
7077         (html_printer::end_of_line): Updated.
7078         (generate_img_src, html_printer::do_auto_image,
7079         html_printer::do_title, html_printer::write_header,
7080         html_printer::determine_header_level, html_printer::do_heading,
7081         html_printer::do_linelength, html_printer::do_pageoffset,
7082         html_printer::do_indentation, html_printer::do_tempindent,
7083         html_printer::do_indentedparagraph, html_printer::do_break,
7084         html_printer::flush_sbuf, get_html_translation,
7085         html_printer::begin_page, html_printer::special): Rewritten to get
7086         rid of static string length limit.
7087         (html_printer::troff_tag): Added `.no-auto-rule'.
7088         (html_printer::flush_globs): Small fix.
7089         (html_printer::determine_space): Don't compute `space_width'.
7090         (html_printer::translate_to_html): Renamed to ...
7091         (html_printer::emit_html): This (with updates).
7092         (html_printer::write_header): Implement `-h' option.
7093         (html_printer::draw): Remove commented-out code.  Handle `F'
7094         command.
7095         (html_printer::add_char_to_sbuf): Removed.
7096         (html_printer::add_to_sbuf): Rewritten.
7097         (html_printer::sbuf_continuation): Fixed.
7098         (html_printer::seen_backwards_escape, reverse,
7099         html_printer::remove_last_char_from_sbuf): Removed.
7100         (char_translate_to_html, str_translate_to_html): Removed.
7101         (html_printer::overstrike): New function member.
7102         (html_printer::set_char): Use it.
7103         (html_printer::do_body): New function member.
7104         (html_printer::~html_printer): Use it.
7105         (main): Handle `-h' option.
7106         (usage): Updated.
7107         * src/devices/grohtml/grohtml.man: Document -h switch.
7109         * src/preproc/html/pre-html.cc: Include searchpath.h
7110         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7111         (get_resolution): New function.
7112         (checkImageDir): Use `0777' permissions in mkdir()
7113         (write_start_image): Rewritten to use `\O[5...]'.
7114         (createImage, generateImages): Updated.
7115         (main): Handle `F' and `h' options.
7116         Use `get_resolution'.
7118         * src/roff/troff/input.cc (begin, end, image): Removed.
7119         (do_suppress): Take parameter.
7120         Handle modified syntax of `\O'.
7121         (token::next): Updated.
7122         (init_markup_requests): Removed.
7123         (main): Updated.
7125         * src/roff/troff/div.h: Add declaration for begin_page().
7127         * tmac/color-html.tmac: Removed.  Contents moved to...
7128         * tmac/html.tmac: Here.  Set background color.
7129         * tmac/color.tmac: Removed.  Contents moved to...
7130         * tmac/ps.tmac: Here.
7131         * tmac/www.tmac: Remove the title command when generating images
7132         for html.
7133         (NO_AUTO_RULE): New macro.
7134         (HTML_DO_IMAGE): Use revised `\O' escapes.
7135         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7137 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7139         * tmac/groff_mdoc.man: Fix typo.
7141 2001-12-01  Colin Watson  <cjwatson@debian.org>
7143         * man/roff.man: Fix typo.
7145 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7147         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7148         stdlib.h.
7150         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7151         more than one argument to \D'f ...'.
7153         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7155 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7157         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7158         loaded only once.
7160         * tmac/groff_man.man: Minor cosmetic fix.
7162 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7164         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7165         tmac/groff_www.man: s/mwww/www/.
7167 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7169         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7170         * configure: Regenerated.
7171         * win32-diffs: Updated.
7173         * tmac/groff_mwww.tmac: Renamed to ...
7174         * tmac/groff_www.tmac: This.
7175         * tmac/mwww.tmac: Removed.
7176         * NEWS, tmac/Makefile.sub: Updated.
7178 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7180         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7181         Fix explanation of `\D' and `rt'.
7183 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7185         * tmac/an-old.tmac (an-header): Set header length equal to page
7186         width.
7187         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7188         minor fixes.
7189         * NEWS: Small fix.
7191 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7193         * NEWS, man/Makefile.sub: Updated.
7195 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7197         * man/ditroff.man: New file.
7199 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7201         * man/groff_differences.man: Renamed to ...
7202         * man/groff_diff.man: This.  Updated.
7203         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7205         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7206         * src/preproc/html/pushback.cc: This.  Updated.
7207         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7208         * src/preproc/html/pushback.h: This.
7209         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7210         Updated.
7212         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7213         * src/libs/libgroff/htmlhint.cc: This.
7214         * src/libs/libgroff/Makefile.sub: Updated.
7216         * tmac/an-old.tmac (an-end): Fix page length.
7218 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7220         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7221         * man/Makefile.sub: Include groff_differences.man.
7222         * VERSION: Set to 1.18.
7223         * REVISION: Set to 0.
7225 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7227         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7228         the second dot (or ending macro name) to end a macro.
7229         * doc/groff.texinfo: Doc fix.
7231 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7233         * tmac/doc-common (doc-header): Handle very long document titles
7234         better.
7236 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7238         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7240 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7242         * src/roff/troff/troff.man: Revised and split into troff.man and...
7243         * man/groff_differences.man: New file.
7244         * NEWS: Updated.
7246 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7248         * tmac/an-old.tmac (TS, TE): New macros for table support.
7250 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7252         * src/include/lib.h: Provide a fix for emx to not include
7253         groff-getopt.h.
7255 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7257         * src/roff/troff/input.cc (substring_macro): Fix computation of
7258         boundary values.
7260 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7262         Undo change from 2001-08-28.
7264         * src/roff/troff/input.cc (have_input): New global variable.
7265         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7266         in compatibility mode.
7267         (process_input_stack): Use it.
7269 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7271         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7272         being handled as end-of-sentence characters,
7274 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7276         * src/roff/troff/input.cc (file_iterator): New members
7277         `suppress_newline_flag' and `seen_escape'.
7278         (file_iterator::next_file): Updated.
7279         (file_iterator::fill): Use it.
7280         (string_iterator): New member `suppress_newline_flag'.
7281         (string_iterator::fill): Set it.
7282         (get_color_element): Use MAX_COLOR_VAL.
7283         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7284         (no_fill): Don't set `env->ignore_next_eol'.
7285         (environment::newline): Handle `eol' tag properly.
7286         Emit `eol.ce'.
7287         (environment::add_html_tag): Set `env->ignore_next_eol'.
7288         Don't handle `.ce'.
7289         * src/roff/troff/env.h (environment): Updated.
7291         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7292         member function.
7293         (html_printer::outstanding_eol): New member function.
7294         (html_printer::do_title): Use new functions.
7295         (html_printer::troff_tag): Test `id_eol_ce'.
7297 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7299         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7300         files work with -C also.
7302 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7304         * doc/pic.ms: Minor fix.
7305         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7306         as a valid command line switch.
7307         * src/devices/grohtml/post-html.cc (main): Ditto.
7308         (usage): Updated.
7309         * src/devices/grohtml/grohtml.man: Updated.
7310         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7312 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7314         Implementing color support in troff, pic, grops, and grohtml.  These
7315         changes are based on a major patch provided by Gaius Mulley
7316         <gaius@glam.ac.uk>.
7318         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7319         definitions with both hex values and fractions.
7321         New escapes: \m and \M for drawing and background color,
7322         respectively.  This corresponds to the troff output commands `m'
7323         and `DF'.
7325         groff and troff accept command line switch `-c' to disable color
7326         output (which is automatically disabled in compatibility mode).
7328         New scaling indicator `f' for fractions (1f = 65536u).
7330         New conditional operator `m' to test for defined colors with `if'
7331         and `ie'.
7333         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7334         (or `outlined'), and `shaded' added to pic.
7336         * src/include/color.h: New file.
7337         * src/include/driver.h: Include it.
7338         * src/include/printer.h: Include color.h.
7339         (environment): New members `col' and `fill'.
7340         (printer): Remove `adjust_arc_center' member function.
7341         * src/include/Makefile.sub: Updated.
7343         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7344         `env.fill'.
7345         Handle `m' and `DF' troff commands.
7346         * src/libs/libgroff/color.cc: New file.
7347         * src/libs/libgroff/Makefile.sub: Updated.
7349         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7350         (stop): Removed.
7351         (createImage): Fix computation of `y2'.
7352         Use `pnmcrop' also.
7353         (buffer::write_file_html): Remove calls to `stop'.
7355         * src/preproc/pic/common.h (common_output): New abstract function
7356         members `set_color', `reset_color', `get_last_filled', and
7357         `get_outline_color'.
7358         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7359         (object_spec): Add members `shaded' and `outlined'.
7360         * src/preproc/pic/output.h (output): `command' is now abstract.
7361         New function members `set_color', `reset_color', `get_last_filled',
7362         and `get_outline_color'.
7363         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7364         `outline[d]', and `shaded'.
7365         * src/preproc/pic/object.cc (output::command): Removed.
7366         (output::set_location): Moved to output.h.
7367         (graphic_object): Add protected members `outline_color' and
7368         `color_fill'.
7369         Add member functions `set_outline_color', `get_outline_color', and
7370         `set_fill_color'.
7371         (closed_object): Add member function `set_fill_color'.
7372         Add member `color_fill'.
7373         (graphic_object::print_text): Use `out->set_color' and
7374         `out->reset_color'.
7375         (box_object::print, ellipse_object::print, circle_object::print,
7376         line_object::print, spline_object::print, arc_object::print): Ditto.
7377         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7378         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7379         `SHADED', making them `%left'.
7380         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7381         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7382         `set_color', `reset_color', `get_last_filled', and
7383         `get_outline_color'.
7384         * src/preproc/pic/troff.cc (simple_output): New abstract function
7385         members `set_color', `reset_color', and `get_last_filled'.
7386         (simple_output::polygon, simple_output::circle,
7387         simple_output::ellipse): Use `get_last_filled'.
7388         (troff_output): New members `last_filled' and `last_outlined'.
7389         New function members `set_color', `reset_color', `get_last_filled',
7390         and `get_outline_color'.
7391         (troff_output::finish_picture): Use `reset_color'.
7392         (troff_output::set_fill): Test `last_filled'.
7393         * src/preproc/pic/pic.man: Updated.
7395         * src/roff/groff/groff.cc (main): Implement `-c' option.
7396         (synopsis, help): Updated.
7397         src/roff/groff/groff.man: Updated.
7399         * src/roff/troff/troff.h: Include color.h.
7400         (warning_type): Add WARN_COLOR.
7401         * src/roff/troff/env.h (environment): New members
7402         `{cur,prev}_{glyph,fill}_color'.
7403         New member functions `get_{prev_,}{glyph,fill}_color'.
7404         * src/roff/troff/env.cc: Initialize and implement them.
7405         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7406         Replace `NULL' with `0' everywhere for consistency.
7407         (lookup_color, default_black, do_glyph_color, do_fill_color,
7408         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7409         define_color): New functions.
7410         (token::next): Implement \M and \m escapes.
7411         (do_if_request): Implement `m' operator.
7412         (usage): Updated.
7413         (main): Implement `-c' option.
7414         (init_markup_requests): Add `defcolor' request.
7415         (warning_table): Add `color' warning.
7416         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7417         classes.
7418         * src/roff/troff/node.cc (troff_output_file): New members
7419         `current_{page,glyph}color'.  New member functions `put_hex',
7420         `glyph_color', and `fill_color'.
7421         (glyph_color_node::*, fill_color_node::*): Implement it.
7422         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7423         (parse_term): Add support for `f'.
7424         * src/roff/troff/troff.man: Updated.
7426         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7427         entry for `F'.
7428         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7429         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7431         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7432         (tag_definition): Use `void *' for arg1.
7433         (html_text): New member functions `do_color' and `done_color'.
7434         Use `void *' for second parameter of `push_para' member function.
7435         New `push_para' member function with a single parameter.
7436         Use `char *' for parameter of `issue_table_begin' member funtion.
7437         New `issue_color_begin' member function.
7438         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7439         COLOR_TAG.
7440         (html_text::issue_color_begin): New function.
7441         (html_text::issue_table_begin): Use `char *' for parameter.
7442         (html_text::start_tag, html_text::shutdown,
7443         html_text::check_emit_text): Updated.
7444         (html_text::push_para): Use `void *' for second parameter.
7445         Add same function with only one parameter.
7446         (html_text::do_*): Updated.
7447         (html_text::do_color, html_text::done_color): New functions.
7448         * src/devices/grohtml/post-html.cc (style): New member `col'.
7449         Mew member `style' with 6 parameters.
7450         (style::style, style::operator==): Updated.
7451         (html_printer::do_font): Use it.
7452         (html_printer::draw): Add dummy entry for `F'.
7453         (html_printer::set_char): Updated.
7454         * src/devices/grohtml/grohtml.man: Updated.
7456         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7457         trailing zeroes removed.
7458         (ps_printer): New members `sbuf_color', `fill_color', and
7459         `output_color'.
7460         Removed member `fill'.
7461         New member function `set_color'.
7462         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7463         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7464         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7466         * tmac/color-html.tmac, tmac/color.tmac: New files.
7467         * tmac/troffrc: Include them.
7468         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7469         * tmac/Makefile.sub: Updated.
7471         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7472         man/groff.man: Updated.
7473         * font/devps/prologue.ps: Define FC and CO functions.
7475 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7477         Fix incorrect cropping of images and incorrect handling of special
7478         characters.  Fix handling of file names in \O.
7480         * src/include/geometry.h: New file.
7481         * src/libs/libgroff/geometry.cc: New file.
7482         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7483         to `geometry.cc'.
7484         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7485         initial spaces.
7486         (do_suppress): Updated.
7487         * src/roff/troff/node.cc: Include geometry.h.
7488         (troff_output_file::flush_tbuf): Fixed parameters to
7489         `check_output_limits'.
7490         (troff_output_file::check_charinfo): Ditto.
7491         (troff_output_file::determine_line_limits): Add support for `Da'
7492         and `Dl' commands.
7494         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7495         Add new parameter `is_special' to decode special characters from
7496         escape sequences.
7497         (html_printer::do_title, html_printer::do_heading,
7498         html_printer::do_indentedparagraph,
7499         html_printer::translate_to_html, html_printer::special): Updated.
7501 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7503         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7504         Fix entry for config.h.
7505         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7506         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7507         * src/preproc/eqn/eqn.man: Document -d command line option.
7509 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7511         * man/groff.man: Use
7513           .ev xxx
7514           .na
7515           .nh
7516           <table>
7517           .ev
7519         instead of the old code (`.ad .hy' after the table) to suppress
7520         incorrect hyphenation for grohtml output.
7522 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7524         * man/groff_font.man, man/groff_out.man: Minor fixes.
7526 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7528         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7529         Arnold Robbins <arnold@skeeve.com>).
7531 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7533         * configure: Regenerated with autoconf 2.52.
7535         * doc/groff.texinfo: Complete revision of indices.
7537 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7539         * doc/Makefile (clean): Updated to delete all indices.
7541 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7543         * src/roff/troff/troff.man: Remove superfluous line.
7545         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7546         given on the command line (or rather, if only the default warnings
7547         are set).
7549 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7551         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7552         use .ne for TTY devices.
7554 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7556         * src/roff/troff/token.h, src/roff/troff/input.cc:
7557         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7559 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7561         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7562         * src/roff/troff/input.cc (token::next): Return
7563         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7564         compatibility mode.
7565         (token::description): Updated.
7566         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7567         (token::add_to_node_list, token::process): Ignore
7568         TOKEN_TRANSPARENT_ESCAPE.
7570 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7572         * tmac/an-old.tmac: Fix `S' string.
7574 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7576         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7578 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7580         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7581         backslashes).
7582         Many other minor fixes.
7584         * configure.ac: Add message at end to inform how to compile
7585         xditview.
7586         * configure: Regenerated.
7588 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7590         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7591         Updated to latest version of libc.
7593 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7595         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7596         Autoconf 2.50 and newer can handle this.
7597         * configure: Regenerated.
7599 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7601         * doc/pic.ms: Fix typo.
7602         * src/preproc/tbl/tbl.man: Document case of global options.
7604 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7606         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7607         handling of `CR' font.
7609 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7611         Use a config.h file.
7613         * src/include/lib.h: Include config.h.
7614         * All C files: Ditto (if necessary).
7615         * All C++ source and header files: Include lib.h first (if
7616         necessary).
7618         * src/include/config.hin: New file (autogenerated by autoheader).
7619         * stamp-h.in: New file.
7620         * configure.ac: Updated.
7621         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7622         (GROFF_ARRAY_DELETE): Simplified.
7623         * Makefile.sub (DISTCLEANFILES): Updated.
7624         Added targets for remaking config.status, config.hin, config.h,
7625         stamp-h.in, and stamp-h.
7626         * configure: Regenerated.
7628 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7630         * NEWS: Updated.
7632 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7634         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7635         (do_sprintf): Use snprintf().
7637 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7639         * src/libs/snprintf/*: Added an snprintf module written by Mark
7640         Martinec.
7641         * src/libs/libgroff/Makefile.sub: Updated.
7642         * configure.ac: Add test for snprintf().
7643         * Makefile.in: Updated.
7644         * configure: Regenerated.
7646         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7647         uses snprintf().
7649 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7651         * tmac/doc.tmac (Ex): New implementation.
7652         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7654 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7656         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7657         argument.
7658         * tmac/groff_tmac.man: Updated.
7660 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7662         * src/preproc/tbl/tbl.man: Minor documentation update.
7664 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7666         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7667         * configure.ac: Add declaration test for gettimeofday().
7668         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7669         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7670         * configure: Regenerated.
7672 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7674         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7675         * configure.ac: Add declaration test for strcasecmp().
7676         * Makefile.in: Updated.
7677         * configure: Regenerated.
7678         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7679         this is necessary because groff's mkstemp.cc is C++.
7680         Add declaration conditionally for strcasecmp().
7682 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7684         Integrated pic2graph, contributed by Eric S. Raymond.
7686         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7687         files.
7688         * Makefile.in, NEWS: Updated.
7690         * src/preproc/tbl/tbl.man: Revised.
7692 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7694         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7696 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7698         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7699         requests.
7701 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7703         * Makefile.sub (configure): Depend on configure.ac, not
7704         configure.in.
7705         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7707 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7709         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7710         fixes.
7712 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7714         * src/roff/troff/troff.man: Improve documentation of -E option.
7716 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7718         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7719         Simplified.
7721 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7723         * src/preproc/refer/refer.cc: Undo last change.
7724         * src/devices/grohtml/post-html.cc: Ditto.
7726 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7728         * src/preproc/refer/refer.cc: Include `lib.h'.
7729         * src/devices/grohtml/post-html.cc: Ditto.
7731 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7733         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7734         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7735         * Makefile.in: Comment updated.
7736         * configure: Regenerated.
7738 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7740         * src/preproc/pic/pic.cc: Removed.
7741         * src/preproc/pic/pic_tab.h: Removed.
7742         * src/preproc/refer/label.cc: Removed.
7744         * doc/Makefile (.ms.html): Don't use a file name extension in
7745         argument to grohtml's -I option.
7746         * Makefile.in (dist): Remove CVS directories.
7747         Call `distfiles' target.
7749         * src/devices/grohtml/grohtml.man: Add information about valid
7750         versions of pnmtopng.
7751         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7752         name instead of number.
7754 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7756         * doc/groff.texinfo: Minor fixes.
7758 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7760         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7761         (clean): Updated.
7763 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7765         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7766         * src/libs/libgroff/mkstemp.cc: New file.
7767         * src/libs/libgroff/mksdir.cc: New file.
7768         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7769         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7770         * src/libs/libgroff/Makefile.sub: Updated.
7771         * src/include/lib.h: Add mksdir() prototype.
7772         * src/include/posix.h: Define S_IXUSR if not yet defined.
7774         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7775         (createAllPages): Use mksdir() instead of current code.
7776         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7777         (main): [!HAVE_MKSTEMP]: Removed.
7779         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7780         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7781         macros.
7782         * configure.ac: Add tests for stdint.h, sys/time.h, and
7783         gettimeofday().
7784         Call new GROFF_xxx macros.
7785         * configure: Regenerated.
7786         * Makefile.in: Comments updated.
7788 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7790         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7791         instead of current code.
7792         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7793         * src/roff/groff/groff.cc (possible_command::insert_args): New
7794         function.
7795         (main): Use it for predriver handling instead of insert_arg().
7797 2001-07-19  Werner LEMBERG  <wl@gnu.org>
7799         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7800         groff also.
7802         * src/include/posix.h: Define S_IWUSR if not yet defined.
7804 2001-07-18  Werner LEMBERG  <wl@gnu.org>
7806         * NEWS: Updated.
7808 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
7810         * tmac/groff_mdoc.man: Document new -width and -column syntax.
7811         Some other minor fixes.
7812         * tmac/an-old.tmac: Add `AT' and `UC' macros.
7814 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
7816         Replace call to `troff' with `groff -Z' to make it aware of
7817         GROFF_BIN_PATH.
7819         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7820         (troff_command, command_prefix): Removed.
7821         (alterDeviceTo): Use groff.
7822         (addZ): New function.
7823         (char_buffer::do_html): Use it.
7824         (scanArguments): Use TROFF_COMMAND.
7825         (findPrefix): Removed.
7826         (main): Updated.
7827         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7829 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
7831         * doc/pic.ms: Documentation fixes.
7833 2001-07-17  Werner LEMBERG  <wl@gnu.org>
7835         Replace atexit() with global destructor.
7837         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7838         (xtmpfile_list_init): New global structure to deallocate
7839         xtmpfile_list on exit.  Its destructor inherits most code from
7840         remove_tmp_files().
7841         (remove_tmp_files): Deleted.
7842         (add_tmp_file): Simplified.
7844 2001-07-16  Werner LEMBERG  <wl@gnu.org>
7846         Replace strdup() with strsave().
7848         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7849         (set_papersize): Use strsave() and a_delete.
7850         (main): Use strsave().
7851         * src/preproc/html/pre-html.cc (make_message, createAllPages,
7852         removeAllPages): Use strsave() and a_delete.
7854         * configure.ac: Remove test for strdup.
7855         * Makefile.in: Comment updated.
7856         * configure: Regenerated.
7858 2001-07-15  Werner LEMBERG  <wl@gnu.org>
7860         * win32-diffs: Updated.
7862 2001-07-14  Werner LEMBERG  <wl@gnu.org>
7864         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7865         removing the old one.
7866         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7868 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7870         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7872 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7874         Merge -xwidth into -width.  Add -xwidth functionality to -column
7875         also.
7877         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7878         avoid warning.
7879         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7880         string immediately following a leading dot starts with a valid mdoc
7881         argument.
7882         Add similar code to the -column branch.
7883         (doc-Bl-usage): Updated.
7884         * groff_mdoc.man: s/-xwidth/-width/.
7886 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7888         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7889         running into centered or non-formatted text.
7891 2001-07-11  Werner LEMBERG  <wl@gnu.org>
7893         Introduce short and long prefixes to have the selection at run-time
7894         whether there is a 8+3 limit for names of temporary files.
7896         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7897         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7898         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7899         variables.
7900         (temp_init): New global structure to initialize above three
7901         variables.
7902         (xtmptemplate): Use two parameters for long and short prefix.
7903         Simplify code use above three variables.
7904         (xtmpfile): Use long and short prefixes as parameters.
7905         * src/include/lib.h: Updated.
7907         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7908         with ...
7909         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7910         (createAllPages, makeTempFiles): Updated.
7912 2001-07-09  Werner LEMBERG  <wl@gnu.org>
7914         * REVISION: Increased to 3.
7916 Version 1.17.2 released
7917 =======================
7919 2001-07-07  Werner LEMBERG  <wl@gnu.org>
7921         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7922         to size_t.
7924 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7926         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7927         Fix synopsis.
7928         * tmac/groff_mdoc.man: Fix synopsis.
7930 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
7932         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7933         Restore `doc-Pa-font'.
7935 2001-07-04  Werner LEMBERG  <wl@gnu.org>
7937         * src/utils/indxbib/dirnamemax.c: Moved to ...
7938         * src/libs/libgroff/maxfilename.cc: Here.
7939         s/dir_name_max/file_name_max/.
7940         Add copyright.
7941         * src/include/lib.h: Add file_name_max.
7942         * src/utils/indxbib/indxbib.cc: Updated.
7943         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7944         Updated.
7946         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7947         as empty.
7948         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7950         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7951         REGION_TEMPLATE): New macros.
7952         (createAllPages, makeTempFiles): Use them.
7953         Include `nonposix.h'.
7954         (html_system): New function.
7955         (createAllPages, createImage): Use it.
7956         Use EXE_EXT.
7958         * tmac/www.tmac: Fix typos.
7960 2001-07-03  Werner LEMBERG  <wl@gnu.org>
7962         * tmac/www.tmac: Disable hyphenation in normal text only if output
7963         device is html.
7964         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7965         * tmac/groff_mwww.man, NEWS: Updated.
7967 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
7969         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7970         image location.
7972 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
7974         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7975         doc-display-ps-stack): Implement font and font size stack for
7976         displays.
7978 2001-07-02  Werner LEMBERG  <wl@gnu.org>
7980         * REVISION: Increased to 2.
7981         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7983         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7984         beginning of a line.
7985         * src/groff/grog/grog.sh: Ditto.
7987 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
7989         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7990         make it portable.
7992 2001-06-27  Werner LEMBERG  <wl@gnu.org>
7994         Fix problems with preprocessor string for `man' program.
7996         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
7997         Updated/added copyright.
7998         Moved Emacs's local variable to identify nroff mode to the end of
7999         the file; add local variable if missing.
8001 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8003         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8004         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8005         * configure: Regenerated.
8007 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8009         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8010         * configure: Regenerated.
8012 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8014         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8015         but www.tmac.
8016         * doc/pic.ms: Fix typos.
8018 Version 1.17.1 released
8019 =======================
8021 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8023         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8024         * configure: Updated.
8026 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8028         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8029         image names.
8030         * src/roff/troff/dic.cc (blank_line): Add html tag.
8032 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8034         * src/roff/troff/input.cc (do_suppress): Fix typo.
8036 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8038         Added two new options (-D and -I) to specify image names and a
8039         subdirectory to place the images in.
8041         Change syntax from \\Ox to \\O[x].
8043         * src/devices/grohtml/post-html.cc (main): Add options.
8044         (usage): Updated.
8045         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8046         Use `NULL' instead of `0' for null string pointers.
8047         (MAX_RETRIES): New macro.
8048         (lengthOfintToStr, intToStr, make_message): New functions.
8049         (makeFileName): Make function static.
8050         Implement -D and -I options.
8051         (checkImageDir): New function.
8052         (write_end_image, write_start_image): Use new syntax of \O.
8053         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8054         make_message().
8055         (createImage): Use make_message().
8056         (addps4html): Add guard for malloc().
8057         (usage, scanArguments): Updated.
8058         (makeTempFiles): Use mkstemp().
8059         (removeTempFiles): Use unlink().
8060         (findPrefix): Add guard for malloc().
8061         (main): Updated.
8062         * src/roff/troff/input.cc (get_delim_file_name): New function to
8063         parse \O.
8064         (do_suppress): Updated to parse new syntax.
8065         * src/devices/grohtml/grohtml.man: Updated.
8066         * tmac/www.tmac: Updated to new syntax.
8068         * NEWS: Updated.
8070 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8072         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8074         * src/devices/grohtml/grohtml.man: Minor improvements.
8076 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8078         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8080 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8082         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8083         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8084         the former.
8085         * src/preproc/grn/grn.man: Add proper '\" string.
8087 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8089         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8091 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8093         Updated to autoconf 2.50.
8095         * configure.in: Renamed to...
8096         * configure.ac: This.
8097         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8098         (GROFF_OS390): Updated.
8099         * configure: Regenerated.
8101 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8103         * src/roff/troff/env.c, src/roff/troff/env.h,
8104         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8105         from 2000-12-21.
8107 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8109         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8111 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8113         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8114         less than or equal zero; set it to 1 then.
8115         * src/roff/troff/node.h (node::node): Initialize `last'.
8117 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8119         * tmac/an-old.tmac: Make predefined strings work in compatibility
8120         mode.
8121         Add troff version guard.
8122         * tmac/doc.tmac: Simplify version guard.
8124 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8126         The .ns and .rs requests are now honoured not only in the top-level
8127         but in all diversions (similar to UNIX troff).
8129         This change is based on a patch from Tadziu Hoffmann
8130         <hoffmann@usm.uni-muenchen.de>.
8132         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8133         (top_level_diversion): Remove `no_space_mode' member.
8134         * src/roff/troff/div.cc (diversion::diversion,
8135         top_level_diversion::top_level_diversion): Updated.
8136         (macro_diversion::output): Reset `no_space_mode'.
8137         (no_space, restore_spacing): Use `curdiv' unconditionally.
8138         (space_request, blank_line): Check `curdiv->no_space_mode'.
8139         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8140         `curdiv' unconditionally.
8141         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8142         Updated.
8144 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8146         Added two new requests `de1' and `am1' which are similar to `de' and
8147         `am' with the difference that compatibility mode is saved on entry,
8148         switched off during macro execution, and restored on exit.
8150         * src/roff/troff/input.h: Added two new special characters
8151         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8152         * src/roff/troff/input.cc (input_iterator): Added two member
8153         functions `save_compatible_flag' and `get_compatible_flag'.
8154         (input_stack): Ditto.
8155         (string_iterator): Ditto.  Also add private member
8156         `saved_compatible_flag'.
8157         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8158         (calling_mode): New enumeration.
8159         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8160         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8161         (define_macro, define_indirect_macro, append_macro, ignore): Use
8162         `calling_mode'.
8163         (define_nocomp_macro, append_nocomp_macro): New functions.
8164         (init_input_requests): Updated.
8165         (do_request): Rename local variable `saved_compatible_flag' to
8166         `old_compatible_flag'.
8167         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8169         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8170         public and trap-invoked macros.  As a consequence, the man macros
8171         work in compatibility mode also.
8173 2001-05-06  Solar Designer  <solar@openwall.com>
8175         * Makefile.in: Use $(mandir).
8177 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8179         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8181 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8183         Added `.ns' number register: Returns 1 in no-space mode (if in
8184         top-level diversion), 0 otherwise.
8186         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8187         (init_div_requests): Updated.
8188         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8189         Document it.
8191 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8193         * src/roff/nroff/nroff.man: Improved documentation (especially
8194         locales).
8196 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8198         Added `brp' request: This is \p as a request.
8200         * src/roff/troff/env.cc (environment::do_break): Add parameter
8201         `spread'.
8202         (do_break_request): New function (was `break_request').
8203         (break_request): Calls `do_break_request'.
8204         (break_spread_request): New; calls `do_break_request'.
8205         (init_env_requests): Updated.
8206         * src/roff/troff/env.h: Updated.
8207         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8209         * REVISION: Increased to 1.
8210         * win32-diffs: Updated.
8212 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8214         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8215         * tmac/troffrc-end: Make it really work in compatibility mode.
8217 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8219         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8220         stdlib.h.
8222 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8224         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8225         latest versions from glibc CVS archive.
8227         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8228         <c.zeelenberg@hccnet.nl>.
8230 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8232         * configure.in: Move check for mkstemp() to...
8233         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8234         * configure: Regenerated.
8236         * src/include/groff-getopt.h: Don't use variable names in
8237         declarations.
8239         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8240         * src/devices/grohtml/Makefile.sub,
8241         src/devices/grohtml/post-html.cc: Updated.
8243 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8245         * configure.in: Add special check for mkstemp().
8246         * src/libs/libgroff/tmpfile.cc: Use it.
8247         * src/utils/indxbib/indxbib.cc: Ditto.
8248         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8249         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8250         `const'.
8252 2001-04-20  Bruce Lilly  <blilly@erols.com>
8254         `Version_string' as C++ object was not visible to linker from C
8255         object files.
8256         Add `const' to `Version_string'.
8258         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8259         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8260         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8261         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8262         (scanArguments), src/preproc/refer/refer.cc (main),
8263         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8264         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8265         (main), src/devices/grohtml/post-html.cc (main),
8266         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8267         (main), src/utils/hpftodit/hpftodit.cc (main),
8268         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8269         (main), src/utils/lkbib/lkbib.cc (main),
8270         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8272         * src/roff/groff/pipeline.c: Add _UWIN.
8273         * src/include/nonposix.h: Ditto.
8275 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8277         * src/include/lib.h: Use HAVE_STRERROR.
8278         * src/roff/groff/pipeline.c: Ditto.
8279         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8280         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8281         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8282         * win32-diffs: Updated.
8283         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8285 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8287         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8288         instead of hardwired `"troff"'.
8289         (char_buffer::read_file): Remove unused variables.
8290         (char_buffer::write_file_troff): Ditto.
8291         (char_buffer::write_file_html): Ditto.
8292         (generateImages): Ditto.
8293         (abs): Removed.
8294         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8296         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8298         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8299         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8300         index_search_item::search1): Ditto.
8301         * src/roff/troff/node.h (width_list): Reorder members.
8302         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8303         (lookup_warning): Ditto.
8304         (prepend_string): Commented out.
8305         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8306         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8307         * src/preproc/tbl/main.cc (process_format): Ditto.
8308         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8309         compiler warnings.
8310         * src/preproc/pic/pic.cc: Updated.
8311         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8312         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8313         * src/preproc/refer/command.cc (execute_command): Ditto.
8314         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8315         * src/preproc/refer/token.cc (lookup_token): Ditto.
8316         * src/preproc/soelim/soelim.cc: Ditto.
8317         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8318         (isHexDigit): Commented out.
8319         (pushBackBuffer::isString): Remove unused variable.
8320         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8321         warning.
8322         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8323         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8324         Ditto.
8325         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8326         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8327         lookup_paper_size): Ditto.
8328         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8329         (text_glob, element_list): Reorder members.
8330         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8331         compiler warning.
8332         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8333         return value to `void'.
8334         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8335         of initializers.
8336         * src/devices/grohtml/html.h (simple_output::check_newline,
8337         simple_output::space_or_newline, simple_output::enable_newlines):
8338         Add return value.
8339         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8340         compiler warnings.
8341         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8342         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8343         output_ligatures, output_charset, read_map): Ditto.
8344         * src/utils/lookbib/lookbib.cc (main): Ditto.
8345         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8346         (do_file): Fix typo (`=' -> `==').
8347         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8348         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8350 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8352         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8353         Fix usage of GROFF_BIN_PATH.
8354         * src/roff/nroff/nroff.man: Updated.
8356 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8358         * NEWS: Fixing typos.
8359         Updated.
8361 Version 1.17 released
8362 =====================
8364 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8366         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8367         directory, not in $(srcdir).
8369 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8371         * doc/groff.texinfo: More info on conditionals.
8373 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8375         * doc/groff.texinfo: Added some info about groff internals.
8377         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8378         about missing special character only if the name is non-null.
8380 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8382         Removing the grohtml-old device driver which is now obsolete.
8384         * src/devices/grohtml-old/*: Removed.
8385         * font/devhtml-old/*: Removed.
8386         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8387         Remove comments.
8388         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8389         * test-groff (PATH): Updated.
8390         * tmac/Makefile.sub (NORMALFILES): Updated.
8391         * tmac/an-old.tmac: Remove special code for html-old device.
8392         Replace `html-or-html-old' register with `an-html'.
8393         * tmac/eqnrc: Updated.
8394         * tmac/html-old.tmac: Removed.
8395         * tmac/troffrc, tmac/troffrc-end: Updated.
8396         * tmac/www.tmac: Remove special code for html-old device.
8397         Replace `html-or-html-old' register with `www-html'.
8399         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8400         src/libs/libgroff/htmlindicate.cc (graphic_end),
8401         include/htmlindicate.h, src/preproc/grn/*.cc,
8402         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8403         single argument for consistency with rest of source code.
8405         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8407 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8409         * src/roff/troff/troff.man: Fixing typos.
8411 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8413         * doc/pic.ms: Fixing many font switches.
8414         * doc/groff.texinfo: Fixes, additions.
8415         * MORE.STUFF: Updated.
8417 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8419         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8420         simple anchor.
8421         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8422         cropping of images.
8423         (removeTempFiles): New function to tidy up temporary files.
8424         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8425         Many fixes to do with the new inline suppress node and image regions
8426         are much tighter.
8427         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8428         (generate_img_src): New function.
8429         (html_printer::do_auto_image): Utilizes it.
8430         (do_heading, do_title): Include inline images within their contents.
8431         (html_printer::begin_page): Tidied up comments that are issued to
8432         the html output file.
8433         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8434         than courier.
8435         (text_glob::is_br): New method used by do_heading.
8436         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8437         equivalent diversion.
8438         * src/include/html-strings.h: Altered image tags to reflect the
8439         inline image node.
8440         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8441         parameter.
8442         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8443         it is already inside a pic image.  Only emit tags if the argument
8444         `-Tps:html' is present.
8445         * src/preproc/tbl/main.cc: Changes to reflect additional
8446         `html_end_suppress' parameter.
8447         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8448         emitted since the last eol tag was written.
8449         * src/roff/troff/env.h: New boolean `emitted_node'.
8450         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8451         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8452         * src/roff/troff/node.cc (check_charinfo): New method. 
8453         (troff_output_file::determine_line_limits): Alterations to limit
8454         checking.
8455         * tmac/www.tmac: Changes to reflect new suppress nodes.
8456           
8457 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8459         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8460         Escape the html_glyph in the buffer.
8461         (str_translate_to_html): Output the unescaped escaped_char.
8462         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8463         `frame=void', not `frame=none'.  Add `border=0'.
8465 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8467         * PROBLEMS: Add some words on how to avoid wrapper macros.
8469 2001-04-11  Blake McBride  <blake@florida-software.com>
8471         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8473 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8475         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8476         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8477         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8478         * Makefile.sub (DISTCLEANFILES): Here.
8480         * libs/libgroff/new.cc: Include `nonposix.h'.
8481         * win32-diffs: Updated.
8483 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8485         Added skeleton macro for defunct macros.
8487         Updated documentation.
8489         When inside displays, an empty input line warning should be
8490         suppressed.  If another macro call is put inside a display,
8491         all subsequent empty lines found in that display caused a
8492         warning to be emitted.
8494         * tmac/doc.tmac (doc-defunct-macro): New macro.
8495         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8496         (doc-restore-global-vars): Fixed typo.
8497         (doc-empty-line): Check the `doc-display-depth' register to
8498         determine whether we are inside display or not.
8500         * tmac/doc-common: Removed `Or' and `Sf' registers.
8501         Moved obsolete `Ds' macro to doc.tmac.
8503         * tmac/groff_mdoc.man: Bump document date.
8504         Document `.Vt' under ``Variable Types''.
8505         Removed documentation for obsolete `.Or' macro.
8507 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8509         * NEWS: Updated.
8510         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8512 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8514         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8515         (usage): Add stream argument. Don't exit.
8516         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8517         Write --version output to stdout, not stderr.
8518         (usage): Add stream argument. Don't exit.
8519         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8520         (usage): Add stream argument. Don't exit.
8521         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8522         constants.
8523         (usage): Add stream argument. Don't exit.
8524         (main): Write --help output to stdout, not stderr.
8525         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8526         (usage): Add stream argument. Don't exit.
8527         * src/devices/grops/ps.cc (main): Accept --help and --version.
8528         (usage): Add stream argument. Don't exit.
8529         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8530         (usage): Add stream argument. Don't exit.
8531         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8532         (main): Accept --help and --version.
8533         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8534         (main): Accept --help and --version.
8535         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8536         (scanArguments): Accept --help and --version.
8537         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8538         (main): Accept --help and --version.
8539         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8540         (usage): Add stream argument. Don't exit.
8541         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8542         exit.
8543         (main): Accept --help and --version.
8544         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8545         (main): Accept --help and --version.
8546         * src/roff/groff/groff.cc (main): Accept --help and --version.
8547         (synopsis): Add stream argument.
8548         (help): Write --help output to stdout, not stderr.
8549         (usage): Add stream argument. Don't exit.
8550         * src/roff/grog/grog.pl: Accept --help and --version.
8551         (help): New sub.
8552         * src/roff/grog/grog.sh: Accept --help and --version.
8553         * src/roff/nroff/nroff.sh: Accept --help and --version.
8554         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8555         (usage): Add stream argument. Don't exit.
8556         (main): Accept --help and --version.
8557         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8558         (usage): New function with stream argument, doesn't exit.
8559         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8560         (usage): New function with stream argument, doesn't exit.
8561         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8562         (usage): Add stream argument. Don't exit.
8563         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8564         (main): Accept --help and --version.
8565         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8566         exit.
8567         (main): Accept --help and --version.
8568         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8569         (main): Accept --help and --version.
8570         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8571         (usage): Add stream argument. Don't exit.
8573 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8575         Fix indentation in SYNOPSIS.
8577         Updated to include changes of latest BSD mdoc version (basically,
8578         the only change is that `.Fn' and `.Fc' put a final semicolon after
8579         a function declaration in the SYNOPSIS section).
8581         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8582         (doc-in-synopsis-section): New variable.  Updated all related
8583         functions.
8584         (doc-indent-synopsis-active): New register.
8585         (Nd, Fn, Fo): Use it.
8586         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8587         `.Cd' with long argument line produces indented wrapped lines. 
8588         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8589         undesirable line break to be output.
8590         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8591         `.rs'.
8592         (Fn, Fc): Add final `;' to output.
8593         (doc-save-global-vars, doc-restore-global-vars): Updated.
8594         * tmac/doc-common: Remove `Ex' register.
8595         Updated.
8596         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8597         copyright.
8599 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8601         * tmac/doc.tmac (Cd): Simplify code.
8602         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8604 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8606         Implement continuous underlining for nroff mode.  To do that, a new
8607         request in the ditroff language has been added: `x u N' (N is 0
8608         or 1).
8610         \X and \Y are now transparent to end-of-sentence recognition.
8612         * src/include/printer.h (printer): Add `type' parameter to `special'
8613         method.
8614         * src/libs/libdriver/printer.cc (printer::special): Updated.
8615         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8617         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8618         specials of type `p'.
8619         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8620         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8621         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8622         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8623         (glyph::order): New method.
8624         (tty_printer::add_char): Use it.
8625         (tty_printer::special): New method.
8626         (tty_printer::end_page): Implement it.
8628         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8629         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8630         to set `no_init_string'.
8631         (special_node::tprint_start): Use it.
8632         (special_node::same, special_node::copy): Updated.
8633         (special_node::ends_sentence): New method.
8634         (troff_output_file::start_special): Add parameter to include
8635         inititialization of special conditionally.
8637         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8638         * src/roff/troff/env.cc (do_underline_special): New function.
8639         (environment::set_font): Use it.
8640         (do_underline): Use it.  This was `underline()'.
8641         (underline): Call `do_underline()'.
8642         (continuous_underline): New function which calls `do_underline()'.
8643         (environment::newline): Use `do_underline_special()'.
8644         (init_env_requests): Updated.
8646         * NEWS, man/troff_out.man: Updated.
8648 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8650         * font/devutf8/R.proto: Fix code of 'shc'.
8652 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8654         Many fixes.  Diag lists can now be nested also; additionally,
8655         `-compact' and `-offset' are supported.
8657         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8658         (doc-list-have-indent-stackXXX): A new register stack.
8659         (doc-have-diag-list): Removed.
8660         (Bl): Use `doc-list-have-indent-stackXXX'.
8661         (El): Updated.
8662         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8663         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8664         (doc-set-vertical-and-indent): Ditto.
8665         (doc-next-list-depth): Removed.
8666         (doc-increment-list-stack): Updated.
8667         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8668         `doc-next-list-depth'.
8669         (doc-end-list, doc-end-column-list): Don't use
8670         `doc-increment-list-stack'.
8671         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8672         (doc-save-global-vars, doc-restore-global-vars): Updated.
8673         * tmac/doc-common: Updated.
8674         * tmac/groff_mdoc.man: Updated.
8675         * NEWS: Fix typo.
8677 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8679         * src/devices/grotty/grotty.man: Fix grammatical error.
8681 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8683         Remove .Ld from mdoc package; replace it with special handling of
8684         `...'.
8686         * tmac/doc-common: Remove `Ld' register.
8687         Uncomment `doc-volume-ds-*' strings.
8688         Remove `doc-operating-system-default'.
8689         (Os): Updated.
8690         * tmac/doc-syms (Ld): Removed.
8691         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8692         `...' specially.
8693         * NEWS: Updated.
8695         * tmac/groff_mdoc.man: Many fixes and updates.
8697 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8699         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8700         Bond <tkb@tkb.mpl.com>.
8701         * tmac/www.tmac: Save compatibility mode.
8703 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8705         * tmac/groff_mdoc.man: Many fixes.
8707 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8709         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8710         isn't recognized.
8712 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8714         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8715         diversion.  This fixes overlong tags.
8717 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8719         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8720         * tmac/doc-syms: Fix error messages.
8721         * tmac/an-old.tmac: Remove incorrect double backslashes.
8723 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8725         * tmac/Makefile.sub: Strip mdoc.local also
8726         * tmac/strip.sed: Fixed.
8728 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8730         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8731         selecting the font size.
8732         * tmac/groff_mdoc.man, NEWS: Document it.
8734 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8736         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8737         to `sv' request.
8738         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8739         argument to restore previous font family.
8740         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8742         * doc/groff.texinfo: More fixes and additions (mainly for font
8743         manipulating commands).
8745         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8746         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8747         * tmac/Makefile.sub, NEWS: Updated.
8749 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8751         Replaced mdoc implementation.  The new version is `state of the
8752         art', using almost all new features of groff 1.17 -- it won't run
8753         with older versions.
8755         * tmac/doc.tmac: Completely rewritten.
8756         * tmac/doc-common: Ditto.
8757         * tmac/doc-nroff: Ditto.
8758         * tmac/doc-ditroff: Ditto.
8759         * tmac/doc-syms: Ditto.
8760         * tmac/mdoc.local: New file.
8761         * tmac/groff_mdoc.samples.man: Replaced with ...
8762         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8763         * tmac/strip.sed: Updated.
8764         * tmac/Makefile.sub: Updated.
8765         * INSTALL: Updated.
8767         * tmac/groff_man.man: Add `man.local' to the FILES section.
8769 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8771         * doc/groff.texinfo: Added many @noindent.
8772         Replaced @end_Example -> @endExample.
8773         Added info whether registers are r/o.
8774         Many other additions and fixes.
8776 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8778         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8779         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8780         Improved @Def* macros: Now the exact syntax of request, register,
8781         and escapes is shown.
8782         Added macros for parentheses and brackets to be used in @Def*.
8783         Many fixes and improvements of the documentation.
8785 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8787         * doc/groff.texinfo: Added new index: `st' (for strings).
8788         Added macros @Defstr(x).
8789         Added macro @Example (adding @group).
8790         Other minor improvements.
8792 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8794         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8795         `rq' for requests.  `fn' is no longer used.
8796         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8797         Removed @Deffn(x).
8799         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8800         number with name of man page.
8802 2001-03-19  Larry Kollar  <kollar@alltel.net>
8804         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
8805         consistency.
8807 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8809         * man/groff_font.man: Document `prepro', `postpro', and `print'.
8810         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8811         * src/devices/grohtml/grohtml.man: Fixing typos.
8813 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
8815         * tmac/s.tmac (@IP): Pass `.ip' html tag.
8816         * tmac/groff_mwww.man: Remove .LINE macro
8817         * tmac/www.tmac (LINE): Add `.ti'.
8819         * src/devices/grohtml/post-html.cc (html_printer): New member
8820         `indent'.
8821         (html_printer::emit_raw): Use it.
8822         (html_printer::do_linelength): Ditto.
8823         (html_printer::do_pageoffset): Ditto.
8824         (html_printer::do_indentation): Ditto.
8825         (html_printer::do_tempindent): Ditto.
8826         (html_printer::do_break): Ditto.
8827         (html_printer::begin_page): Ditto.
8828         (html_printer::do_indentedparagraph): New function.
8829         (html_printer::troff_tag): Handle `.ip'.
8830         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8831         Add `<td width=...>' handling.
8832         (html_text::do_table): Add parameter.
8833         (html_text::do_indent): Updated.
8834         * src/devices/groohtml/html-text.h: Updated.
8836 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
8838         Introduced simple html tables to implement indentation.
8840         * src/devices/grohtml/html.h (word, word_list): New structures.
8841         (simple_output): Use it.
8842         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8843         (html_printer): Improve indentation handling.
8844         (html_printer::emit_raw): Set `in_table' element.  Handle
8845         indentation if set.
8846         (html_printer::write_header): Move conditional downwards.
8847         Don't allow whitespace in tags.
8848         (html_printer::do_linelength): Handle line length and indentation
8849         conditionally.
8850         (html_printer::do_pageoffset): Handle indentation conditionally.
8851         (html_printer::do_indentation): Ditto.
8852         (html_printer::do_tempindent): New function member.
8853         (html_printer::do_fill): Take care of indentation.
8854         (html_printer::do_flush): Finish table.
8855         (html_printer::do_links): Ditto.
8856         (html_printer::do_break): New function for handling `.br' and `.ti'.
8857         (html_printer::troff_tag): Use it.
8858         Handle `.ti'.
8859         (html_printer::flush_globs): Fix.
8860         (html_printer::flush_page): Finish table.
8861         (html_printer::html_printer): Fix error message.  Set up
8862         `linelength'.
8863         (html_printer::add_to_sbuf): Remove special handling of character
8864         code 255.
8865         (to_unicode): Remove `stop()'.
8866         (html_printer::write_title): Cleanup.
8867         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
8868         (html_printer::~html_printer): Flush text and end the line.
8869         Use `put_string()'.
8870         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8871         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8872         emission of tags.
8873         (html_text::start_tag): Disable newlines.
8874         (html_text::table_is_void): New function.
8875         (html_text::issue_table_begin): Ditto.
8876         (html_text::issue_table_end): Ditto.
8877         (html_text::push_para): Better table handling.
8878         (html_text::do_indent): New function.
8879         (html_text::do_table): Ditto.
8880         (html_text::done_table): Ditto.
8881         (html_text::do_tt): Handle PRE_TAG.
8882         (html_text::is_in_table): New function.
8883         (html_text::check_emit_text): Handle tables.
8884         (html_text::do_emittext): Use `nl()'.
8885         (html_text::do_para): Handle table.
8886         (html_text::remove_def): New function.
8887         * src/devices/grohtml/output.cc (word, word_list): Implement
8888         methods.
8889         (simple_output::end_line): Flush last word.
8890         (simple_output::simple_comment): Ditto.
8891         (simple_output::begin_comment): Recoded.
8892         (simple_output::end_comment): Ditto.
8893         (simple_output::comment_arg): Removed.
8894         (simple_output::check_newline): Improve test and flush last word.
8895         (simple_output::space_or_newline): Improved.
8896         (simple_output::write_newline): Replaced with...
8897         (simple_output::nl): This.
8898         (simple_output::put_raw_char): Flush last word.
8899         (simple_output::check_space): Removed.
8900         (simple_output::put_translated_string): Ditto.
8901         (simple_output::put_string): Simplified.
8902         (simple_output::put_number): Updated.
8903         (simple_output::put_float): Ditto.
8904         (simple_output::put_symbol): Removed.
8905         (simple_output::enable_newlines): Add `check_newline()'.
8906         (simple_output::flush_last_word): New function.
8908         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8909         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8911         * tmac/s.tmac (@PP, @IP): Add html conditional code.
8912         * tmac/an-old.tmac (TP): Ditto.
8914 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
8916         * mdate.sh: Make it POSIX compliant.
8918 2001-03-09  Werner LEMBERG  <wl@gnu.org>
8920         Added the `return' request to end a macro immediately.  It simply
8921         pops iterators from the input stack until a macro iterator is found.
8923         * src/roff/troff/input.cc (input_iterator::is_macro,
8924         macro_iterator::is_macro): New member.
8925         (input_return_boundary): New class to signal an immediate return
8926         to while_request().
8927         (input_stack::add_return_boundary, input_stack::is_return_boundary):
8928         New functions.
8929         (input_stack::clear): Use it.
8930         (input_stack::pop_macro): New function.
8931         (while_request): Use `is_return_boundary()'.
8932         (return_macro_request): New function.
8933         (init_input_requests): Use it.
8935         * src/roff/troff/TODO: Updated.
8936         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8938 2001-03-08  Werner LEMBERG  <wl@gnu.org>
8940         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8941         cleanup.
8943 2001-03-07  Werner LEMBERG  <wl@gnu.org>
8945         Make `\B' more rigid.
8947         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8948         parameter.
8949         (get_number_rigidly): New function.
8950         * src/roff/troff/input.cc (do_expr_test): Use it.
8951         * src/roff/troff/token.h: Updated.
8953         * src/roff/troff/request.h: Fix typo (init_html_request ->
8954         init_markup_request).
8956 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
8958         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
8959         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8960         are now `.begin', `.end', `.image'.
8962         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8963         (html_printer::add_to_sbuf): Changing type of `code' parameter.
8964         Use add_char_to_sbuf().
8965         (to_unicode): New function.
8966         (char_translate_to_html): Changing type of `ch' parameter.
8967         Use `to_unicode()'.
8968         (html_printer::~html_printer): Comment out doctype string.
8969         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8970         instead of `.html-end'.
8971         (write_start_image): Use `.begin' and `.image' instead of
8972         `.html-begin' and `.html-image'.
8973         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8974         (html_begin): Renamed to ...
8975         (begin): This.
8976         (html_end): Renamed to ...
8977         (end): This.
8978         (html_image): Renamed to ...
8979         (image): This.
8980         (init_html_requests): Renamed to ...
8981         (init_markup_requests): This.
8982         * tmac/www.tmac: Updated.
8984 2001-02-28  Bram  <bram@avontuur.org>
8986         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8987         constructor.
8989 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
8991         * doc/meref.me: Fixing some typos.
8993 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8995         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8996         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
8997         * src/roff/troff/node.h: Updated.
8999 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9001         * tmac/groff_tmac.man: Fix typo.
9003 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9005         Fixing a bug which prevented proper end-of-sentence recognition
9006         between an `unformatted' box and the following text.  As a
9007         consequence, vertical line distances are no longer preserved in
9008         boxes after a call to `.unformat' -- because boxes aren't
9009         line-oriented (contrary to diversions), this doesn't make sense
9010         anyway.
9012         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9013         value.
9014         (vertical_size_node::set_unformat_flag): New method.
9015         * src/roff/troff/node.hh: Updated.
9016         * src/roff/troff/input.cc (word_space_node::reread,
9017         hmotion_node::reread): Reset `unformat' flag after usage.
9018         (unformat_macro): Append only if `set_unformat_flag()' returns
9019         non-zero.
9020         * src/roff/troff/troff.man: Updated.
9022 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9024         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9025         documentation of `asciify' and `unformat' requests.
9027 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9029         Redesigned the `unformat' request.  It is no longer connected with
9030         `asciify' but rather uses new `reread()' methods if the `unformat'
9031         flag is set.  Additionally, the handling of space characters after
9032         unformatting has been fixed so that they retain their width.
9034         * src/roff/troff/node.h (width_list): New structure to store
9035         original widths of spaces.
9036         (node): Added `unformat' member.
9037         Replaced `num_spaces' variable with `orig_width' list.
9038         * src/roff/troff/node.cc (*node::asciify,
9039         asciify_reverse_node_list): Removed `unformat_only' flag and related
9040         code.
9041         (word_space_node::asciify, word_space_node::word_space_node): Use
9042         `orig_width'.
9043         (word_space_node::~word_space_node): New destructor.
9044         (word_space_node::copy): Updated to handle `orig_width'.
9045         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9046         (*node::merge_space): Update `orig_width' list if necessary.
9047         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9048         * src/roff/troff/enc.cc (environment::space_newline): Use
9049         `width_list'.
9050         (environment::space): Added method to handle space width and
9051         sentence space width as parameters.  Use `width_list'.
9052         (environment::make_tab_node): Updated.
9053         * src/roff/troff/env.h: Updated.
9054         * src/roff/troff/input.cc (word_space_node::reread,
9055         unbreakable_space_node::reread, hmotion_node::reread): New methods
9056         to handle nodes specially if `unformat' flag is set.
9057         (do_asciify_macro): Renamed back to ...
9058         (asciify_macro): This.
9059         (unformat_macro): New implementation to simply set the `unformat'
9060         flag.
9062         * MORE.STUFF: Added more info about deroff.
9064 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9066         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9067         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9068         and `add_self()' methods to avoid hyphenation.  For example, the
9069         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9070         soft hyphen after `foo'.  Now the hyphen list is correctly
9071         `foo<ignore><ignore>bar'.
9073 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9075         * tmac/groff_tmac.man: Fix `BIR' macro.
9077 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9079         A new escape sequence `\:', inserting a zero-width break point.
9081         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9082         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9083         Implement it.
9084         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9085         method.
9086         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9087         and `asciify()' methods.
9088         * src/roff/troff/node.cc (space_node::space_node): Updated.
9089         (space_node::asciify): Handle `was_escape_colon'.
9090         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9092         Handle `\~' similar to other comparable requests.
9094         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9095         label.
9096         (token::next): Move creation of an unbreakable_space_node to...
9097         (token::add_to_node_list): Here.
9099         Fix a bug which sometimes prevented hyphenation of words connected
9100         with `\~' or `\ ' (and other escape sequences handled as
9101         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9102         (after a call to the `unformat' request).
9104         * src/roff/troff/env.h (environment::possibly_break_line,
9105         environment::hyphenate_line): Introducing `start_here' parameter.
9106         * src/roff/troff/env.cc (environment::space_newline,
9107         environment::space): Use it.
9108         (environment::possibly_break_line, environment::hyphenate_line):
9109         Implement it.
9110         * src/roff/troff/input.cc (process_input_stack): Use it.
9111         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9112         space_char_hmotion_node, overstrike_node): Add
9113         `get_hyphenation_type()' method.
9114         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9115         if `unformat_only' is active.
9117 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9119         Implemented new read-only number register `.linetabs' which
9120         returns 1 if in line-tabs mode, 0 otherwise.
9122         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9123         * src/roff/troff/env.cc (get_line_tabs): New function.
9124         (init_env_requests): Use it.
9125         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9127         * VERSION, REVISION: Changing to 1.17.0.
9129 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9131         Fixed a bug which prevented hyphenation of words which are finished
9132         with `\)'.
9134         * src/roff/troff/token.h (token): Add enum type
9135         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9136         * src/roff/troff/input.cc (token::next, token::description,
9137         get_line_arg, token::add_to_node_list, token::process): Use it.
9139 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9141         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9142         * src/roff/troff/div.cc (do_divert): Use it.
9144         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9146 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9148         Adding the `linetabs' request.  If set, tab distances are not
9149         computed relative to the input line but relative to the output line.
9151         * src/roff/troff/env.h (environment): New member `line_tabs'.
9152         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9153         (environment::environment, environment::copy): Updated.
9154         (environment::distance_to_next_tab): Use `line_tabs'.
9155         (init_env_requests): Register request.
9156         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9157         fixes.
9159 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9161         Introducing a new read-only register `.int' which is set to a
9162         positive value if the last output line is interrupted (i.e., if it
9163         contains `\c').
9165         * src/roff/troff/env.cc (init_env_requests): Add it.
9166         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9168 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9170         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9171         * src/preproc/html/pre-html.cc (findPrefix): New function which
9172         generates the troff executable name via the system prefix.
9173         * src/preproc/eqn/main.cc: Modified warning message.
9175 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9177         troff's `box' and `boxa' requests didn't preserve temporary
9178         indentation.
9180         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9181         `saved_target_text_length' members.
9182         * src/roff/troff/div.cc (do_divert): Use them.
9184         Tabs (but not yet leaders and fields) are now handled correctly by
9185         `asciify' request.
9187         * node.h (hmotion_node): Add field `was_tab'.
9188         * env.cc (environment::make_tab_node): Set it.
9189         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9191         Added new request `unformat' which will, contrary to `asciify',
9192         preserve font information after unformatting (i.e., only nodes
9193         dealing with horizontal space are converted back to input
9194         characters).
9196         * input.cc (asciify_macro): Renamed to ...
9197         (do_asciify_macro): this, having a new parameter `unformat_only'.
9198         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9199         (init_input_requests): Added `unformat'.
9200         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9201         parameter to control asciification process.
9202         * node.h (*_node::asciify): Ditto.
9203         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9205 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9207         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9209 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9211         * tmac/ps.tmac: Remove call of psold.tmac.
9212         * tmac/psold.tmac: Comment updated.
9213         * tmac/psnew.tmac: Removed since no longer needed.
9214         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9216         * font/devutf8/R.proto: Adding `shc' glyph.
9217         * font/devutf8/NOTES: Updated.
9219         * test-groff: Updated.
9221 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9223         First cut of the new html device driver.  Changes to pre-html and
9224         the new grohtml are too numerous to be documented here.
9226         Stuff related to `html' has been renamed to `html-old' and `html2'
9227         stuff has been renamed to `html' (including directories).  The new
9228         html device driver is therefore invoked as `-Thtml'.
9230         Added new `\O' escape to suppress output (needed by html driver).
9232         Added functions and code to pass info about input-level commands
9233         (`.in', `.fl', etc.) to html driver.
9235         Three new functions (.html-begin, .html-end, and .html-image) for
9236         better html handling: `html-begin' will execute the remaining line
9237         if at the outermost nesting level, increasing an internal counter.
9238         `html-end' does the same but decreases the internal counter.
9239         `html_image' puts its arguments into a special node (suppress_node)
9240         to define an image region.
9242         The `output' request has been removed.
9244         * tmac/html-tags.tmac: Removed.
9245         * tmac/arkup.tmac: Updated and renamed to ...
9246         * tmac/www.tmac: New file.
9247         * tmac/markup.tmac Updated and renamed to ...
9248         * tmac/mwww.tmac: New file.
9249         * tmac/Makefile.sub: Updated.
9250         * tmac/an-old.tmac: Updated.
9251         * tmac/eqnrc: Updated.
9252         * tmac/groff_man.man
9253         * tmac/groff_markup.man: Updated and renamed to ...
9254         * tmac/groff_mwww.man: New file.
9255         * tmac/groff_tmac.man: Updated.
9256         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9257         * tmac/html.tmac: Updated and renamed from html2.tmac.
9258         * tmac/pspic.tmac: Updated html support.
9259         * tmac/s.tmac: Added html output support.
9260         * tmac/troffrc, tmac/troffrc-end: Updated.
9262         * Makefile.in, doc/Makefile: Updated.
9263         * doc/groff.texinfo: Added info about new `\O' escape.
9264         * doc/homepage.ms: Use `MAILTO' macro.
9266         * font/devhtml/DESC.proto: Add `C' font.
9267         * font/devhtml/Makefile.sub: Updated.
9268         * font/devhtml/R.proto: Minor fixes.
9269         * font/devhtml-old/Makefile.sub: Updated.
9271         * src/devices/grohtml-old/Makefile.sub: Updated.
9273         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9274         method.
9275         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9276         graphic_start): Add `inline' parameter.  Update.
9277         (html_end_suppress, graphic_end): Update.
9279         * src/include/html-strings.h: New file.
9280         * src/include/htmlindicate.h: Comments updated.
9281         * src/include/printer.h: Updated.
9283         * src/preproc/eqn/main.cc (do_file, main): Updated.
9284         * src/preproc/pic/troff.cc (troff_output::start_picture,
9285         troff_output::finish_picture): Updated.
9286         * src/preproc/tbl/main.cc (process_input_file): Updated.
9288         * src/roff/groff/groff.cc (main): Updated.
9289         Pass device arguments to predrivers also.
9290         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9291         * src/roff/troff/env.h (environment): Updated.
9292         New elements `need_eol' and `ignore_next_eol' (for html output).
9293         * src/roff/troff/env.cc (environment::environment): Add initializers
9294         for `need_eol' and `ignore_next_eol'.
9295         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9296         functions.
9297         (point_size, fill, no_fill, center, right_justify, line_length,
9298         indent, temporary_indent, break_request, handle_tab): Use
9299         `add_html_tag()'.
9300         (set_tabs): Use `add_html_tag_tabs()'.
9301         (environment::add_html_tag): Updated.
9302         (environment::do_break): Updated.
9303         * src/roff/troff/div.cc (space_request, flush_output): Use
9304         `environment::add_html_tag()'.
9305         * src/roff/troff/input.cc: Updated.
9306         New variable `html_level' to indicate nested `html-begin' requests.
9307         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9308         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9309         `force_tprint()' method.
9310         (token::next): Handle `\O'.
9311         (do_suppress): Implement it.
9312         (html_begin, html_end, html_image): New functions.
9313         (init_output_requests): Renamed to ...
9314         (init_html_requests): this.
9315         (main): Use it.
9316         (macro::append_str, macro::append_unsigned, macro::append_int): New
9317         methods.
9318         New variable `output_low_mark_miny' to limit minimal value of y.
9319         (reset_output_registers): Use it.
9320         (output_request): Removed.
9321         (get_output_registers): New function.
9322         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9323         (*_node): Added `force_tprint()' if necessary.
9324         (special_node): New elements `tf' and `get_tfont()'.
9325         (suppress_node): New class.
9326         * src/roff/troff/node.cc:
9327         New global variables `image_no' and `suppress_start_page'.
9328         (real_output_file): New method `is_on()'.
9329         (troff_output_file): New method `start_special(tfont)'.
9330         (troff_output_file::really_print_line): Use `tprint' conditionally.
9331         (real_output_file::print_line): Updated.
9332         (real_output_file::on): Updated.
9333         (*_node): Added `force_tprint()'.
9334         (special_node::special_node): Initializer updated.
9335         (special_node::same, special_node::copy, special_node::tprint_start):
9336         Updated.
9337         (get_reg_int, get_reg_str): New functions.
9338         (suppress_node::*): New methods.
9339         New global variables last_position, last_image_filename;
9340         (min): New inline function.
9341         * src/roff/troff/reg.h, src/roff/troff/request.h,
9342         src/roff/troff/troff.h: Updated.
9344 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9346         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9347         documentation of `asciify' request.
9349 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9351         * src/roff/troff/input.cc: Move definition of special characters
9352         like `ESCAPE_TILDE' to ...
9353         * src/roff/troff/input.h: New file.
9354         * src/roff/troff/Makefile.sub (HDRS): Add it.
9356         Extending the .asciify request to `unformat' space characters also.
9358         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9359         to count input space characters.
9360         Update constructors to take care of it.
9361         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9362         `ESCAPE_SPACE' instead of normal space.
9363         (word_space_node::asciify): New method.
9364         (unbreakable_space_node::asciify): New method.
9365         (word_space_node::merge_space): New method.
9366         * src/roff/troff/env.cc (environment::space_newline,
9367         environment::space): Add code to initialize `num_spaces' (using the
9368         constructor of `word_space_node').
9369         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9370         Document it.
9372 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9374         * man/groff_char.man: Use table header traps only conditionally.
9376 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9378         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9380 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9382         Introducing the `box' and `boxa' requests which are similar to
9383         `di' resp. `da' but omitting a partially filled line (which is
9384         restored after ending the diversion).
9386         * src/roff/troff/div.h (diversion): Add elements to save partially
9387         filled line.
9388         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9389         partially filled line.
9390         (divert, divert_append): Updated.
9391         (box, box_append): New functions.
9392         (init_div_requests): Use them.
9393         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9394         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9396         * doc/groff.texinfo: Fix documentation of `lf' request.
9398 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9400         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9402 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9404         Ignore `ss' request if in compatibility mode.
9406         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9407         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9408         * src/roff/troff/env.cc (space_size): Use it.
9410         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9411         `ss' request in nroff mode.
9413         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9414         changes.
9416 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9418         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9420 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9422         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9423         * src/preproc/eqn/neqn.man: Small fixes and additions.
9425 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9427         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9428         Fixing typo.
9430         * src/preproc/eqn/neqn.man: New file.
9432         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9433         negative' warning.
9435         * tmac/e.tmac: Add `T&' macro.
9436         Fix `indent cannot be negative' warning.
9437         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9439 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9441         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9443 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9445         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9446         `alloca' symbol .
9448         * MORE.STUFF: Added info about deroff for djgpp.
9450         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9451         documentation of -rcR switch.
9453 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9455         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9456         if -rcR=1 (which is now the default in nroff mode), a single, very
9457         long page is created instead of multiple pages: All `ne' and `wh'
9458         requests are put into conditionals; a new macro `an-end' is added to
9459         be called with `em'.
9461         Some other minor cleanups.
9463         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9465 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9467         Fixing a bug which prevented hyphenation in words followed
9468         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9470         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9471         Adding possibly_break_line().
9472         * src/roff/troff/env.h (environment): Make possibly_break_line()
9473         public.
9475         Make `\~' usable in .tr request.
9477         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9478         (token): Add stretchable_space().
9479         * src/roff/troff/input.cc (token::next, token::delimiter,
9480         token::description, process_input_stack, do_translate,
9481         add_to_node_list, token::process): Use it.
9482         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9483         for adjusting the space.
9484         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9485         for stretchable space.
9486         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9487         (make_node): Add code for stretchable space.
9488         * src/roff/troff/env.cc (environment::add_char): Use it.
9489         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9490         (get_copy, token::next, transparent_translate, asciify): Use it.
9492         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9493         doc/groff.texinfo: Updated.
9494         * man/groff.man: Small reorderings.
9496 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9498         * NEWS: Fixes.
9499         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9500         option.
9501         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9502         `safer_macro_path' to -M option.
9503         * src/roff/troff/troff.man: Fixes.
9505 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9507         Use safer path (except for config files) if -U isn't specified.  Add
9508         a special macro path (without home and current directory) for config
9509         files.  Add home directory to unsafe path for consistency.  Don't
9510         include the home directory in the font path.
9512         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9513         `macro_path'.
9514         * src/include/macropath.h: Add `config_macrp_path'.
9515         * src/libs/libgroff/fontfile.cc: Fix font path.
9516         * src/roff/troff/input.cc (process_startup_file): Use
9517         `config_macro_path'.
9518         (main): Select unsafe path if -U is given.
9520         * src/preproc/eqn/main.cc (main): Fixing search path for
9521         configuration file.
9522         * src/preproc/eqn/eqn.man: Updated.
9524         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9525         Updated.
9527         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9528         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9529         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9530         src/devices/grotty/grotty.man: Updated.
9532         * Makefile.in: Fix comments.
9534 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9536         * tmac/safer.tmac: Empty file added (again) for compatibility
9537         reasons.
9538         * tmac/Makefile.sub: Updated.
9540 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9542         * src/devices/grodvi/dvi.cc (main),
9543         src/devices/grohtml2/post-html.cc (main),
9544         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9545         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9546         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9547         (main), src/preproc/html2/pre-html.cc (main),
9548         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9549         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9550         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9551         (main), src/utils/hpftodit/hpftodit.cc (main),
9552         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9553         (main), src/utils/lookbib/lookbib.cc (main),
9554         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9555         (main): Use stdout for -v.
9556         * src/roff/groff/groff.cc (run_commands),
9557         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9558         to make direct printing to stdout possible.
9559         * src/roff/groff/pipeline.h: Updated.
9561         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9562         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9563         * src/utils/afmtodit/afmtodit.man: Updated.
9565         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9566         (version): New function.
9567         (usage): Updated.
9568         * src/utils/addftinfo/addftinfo.man: Updated.
9570         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9571         Fixing copyright dates.
9573         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9574         replacing it.
9576         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9577         version_string.
9579         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9581 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9583         In all programs, make -v return immediately with exit status 0 to
9584         be compliant with the GNU standard.
9586         * src/devices/grodvi/dvi.cc (main),
9587         src/devices/grohtml2/post-html.cc (main),
9588         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9589         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9590         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9591         (main), src/preproc/html2/pre-html.cc (main),
9592         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9593         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9594         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9595         (main): Implement it.
9596         * NEWS: Updated.
9598         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9599         and postprocessors to the -v option.
9601         * src/roff/grog/grog.pl: Implement -v.
9602         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9603         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9605         * src/roff/nroff/nroff.sh: Implement -v.
9606         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9607         * src/roff/nroff/nroff.man: Updated.
9608         
9609         * src/preproc/eqn/main.cc (main): Fix comment typo.
9611         * MORE.STUFF: Added info about djgpp port of grap.
9613 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9615         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9616         mode (or rather, implemented non-compatibility mode).
9617         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9619         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9620         replacing it -- we don't find gxditview otherwise.
9621         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9623         * src/preproc/pic/depend: Removed.  Unnecessary.
9625         Implemented dummy keyword `solid' in pic for compatibility with
9626         AT&T pic.
9628         * lex.cc (lookup_keyword): Added `solid'.
9629         * pic.y: Added SOLID with dummy rule.
9630         * pic.cc, pic_tab.h: Regenerated.
9631         * doc/pic.ms: Updated.
9633 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9635         For security reasons, don't use the current directory but the home
9636         directory while searching and scanning troffrc and troffrc-end.
9637         Similarly, replace the current directory with the home directory
9638         in the font path.
9640         * Makefile.in (fontpath, tmacpath): Remove current directory.
9642         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9643         two parameters `add_home' and `add_current'.
9644         (search_path::~search_path, search_path::command_line_dir,
9645         search_path::open_file): Remove tests for `dirs' being zero.
9646         * src/include/searchpath.h: Adjust.
9647         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9648         `safer_macro_path'.
9649         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9651         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9652         * src/roff/troff/input.cc: Use `mac_path', initialized with
9653         `macro_path'.
9654         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9655         * src/roff/troff/env.cc: Use `mac_path'.
9657         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9659         * NEWS, man/roff.man, src/roff/troff/troff.man,
9660         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9661         Updated.
9663 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9665         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9667         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9668         * configure.in: Fix typo in comment.
9669         * configure: Regenerated.
9671         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9672         copyright dates.
9674 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9676         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9678         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9679         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9680         $(systemtmacdir).
9681         Use @libdir@.
9682         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9683         * tmac/Makefile.sub (install_data): Create
9684         $(systemtmacdir) and $(localtmacdir).
9685         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9686         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9687         NEWS, doc/groff.texinfo: Updated and minor fixes.
9689         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9690         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9691         $(systemtmacdir) since the wrapper files are platform-dependent.
9693 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9695         * doc/groff.texinfo: Fix typo.
9697 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9699         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9700           tmac.doc.old -> doc-old.tmac
9701           tmac.an.old  -> an-old.tmac
9703         * tmac/tmac.*: Moved to ...
9704         * tmac/*.tmac: this.
9705         * tmac/man.local: Fix comment.
9706         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9707         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9708         Added some `FILES' sections.  More use of @...@ directives.  Other
9709         minor updates.
9710         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9711         * doc/homepage.ms, doc/groff.texinfo: Updated.
9712         * man/groff.man, man/roff.man: Updated.
9713         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9714         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9715         src/devices/grotty/grotty.man: Updated.
9716         * src/preproc/pic/pic.man: Updated.
9717         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9718         instead of -mdoc.old.
9719         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9720         * src/roff/nroff/nroff.man: Updated.
9721         * NEWS: Updated.
9723         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9725         * tmac/mm.diff: Removed -- it has no use now since the mm package
9726         is part of groff.
9728         * tmac/*: Removed trailing spaces.
9730         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9731         the tmac subdirectory also).
9733         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9734         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9735         stuff since it is no longer needed.
9737         * README, PROBLEMS: Updated.
9739 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9741         Invert current behaviour: Search first FOOBAR.tmac, then
9742         tmac.FOOBAR.
9744         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9745         (open_mac_file, macro_source): Implement it.
9746         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9747         doc/groff.texinfo, NEWS: Document it.
9749         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9750         Small documentation improvements.
9752         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9753         subdirectory also).
9755         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9757 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9759         Add local tmac directory (groff/site-tmac).
9761         * Makefile.in: Add $(localtmacdir).
9762         (uninstall_dirs): Add $(localtmacdir).
9763         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9764         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9765         in $(localtmacdir).  Create $(localtmacdir).
9766         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9767         Updated and minor fixes.
9769         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9771         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9773 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9775         Move hyphen.us to tmac directory.
9777         * src/roff/troff/hyphen.us: Removed.
9778         * src/tmac/hyphen.us: Added.
9779         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9781         Change installation structure for data files from .../groff/... to
9782         .../groff/<version><revision>/... to be conform with other GNU
9783         programs.
9785         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9786         doc/Makefile: Implement it.
9787         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9788         * configure: Updated.
9789         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9790         * NEWS: Document it.
9791         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9792         @MACRODIR@ instead of hard-coded directories.
9794 2000-10-22  Werner LEMBERG  <wl@gnu.org>
9796         Implement $GROFF_BIN_PATH environment variable (which defaults to
9797         $bindir) used for child programs of groff and similar wrappers.
9799         * gendefs.sh: Improve documentation.
9800         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9801         src/preproc/eqn/Makefile.sub (neqn),
9802         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9803         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9804         $GROFF_BIN_PATH.
9805         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9806         $GROFF_PATH__ (the latter for communication with troff).
9807         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9808         set.
9809         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9810         doc/groff.texinfo: Document it.
9812         * doc/groff.texinfo: Improve documentation of troff's -a option.
9814 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
9816         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9817         non-intrusive eol marker.
9818         (troff_output_file::determine_line_limits): New function.
9819         (troff_output_file::draw): Use it.
9820         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9821         output_pending_lines() instead of output_line().
9822         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9823         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9824         createImage): Small fixes.
9825         
9826 2000-10-14  Werner LEMBERG  <wl@gnu.org>
9828         Replace tmac.safer with a real secure solution.
9830         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9831         system_request, pipe_output): Disable requests if in safer mode.
9832         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9833         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9834         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9835         doc/groff.texinfo, src/roff/groff/groff.man,
9836         src/roff/troff/troff.man, arch/djgpp/README: Updated.
9838         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9839         (resource_manager::output_prolog): Replace setenv() with putenv().
9841 2000-10-09  Werner LEMBERG  <wl@gnu.org>
9843         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9844         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9845         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9846         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9847         compilation errors with some compilers.  It seems that this code
9848         is no longer necessary -- if yes, it is easy to add some #ifdef's
9849         for that particular old-fashioned compiler.
9851         * MORE.STUFF: Added info about Meta-tbl.
9853         * doc/groff.texinfo: Added more info about `.if "..."..."'.
9855 2000-10-07  Werner LEMBERG  <wl@gnu.org>
9857         Adding a new escape sequence \B'...': If the string between
9858         the delimiters is a valid numeric expression, return the character
9859         `1', and `0' otherwise.  This is an analogon to \A.
9861         * src/roff/troff/input.cc (do_expr_test): Implement it.
9862         (token::next): Use it.
9863         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9865         * tmac/tmac.trace: Made independent from escape character.
9867 2000-10-06  Werner LEMBERG  <wl@gnu.org>
9869         Adding a new request .dei: define indirect.  The first and second
9870         parameter of .dei are taken from string registers instead directly;
9871         this very special request is needed to make tmac.trace independent
9872         from the escape character (which might even be disabled).
9874         * src/roff/troff/input.cc (do_define_macro): Implement it.
9875         (define_macro_indirect): New function.
9876         (init_input_requests): Use it.
9878         Adding two requests .ecs and .ecr: Save and restore the escape
9879         character.  These two requests are needed to make tmac.trace
9880         independent from the escape character (which might even be
9881         disabled).
9883         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9884         Implement it.
9885         (init_input_requests): Use it.
9887         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9889 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
9891         Adding a new option -P and new environment variable GROPS_PROLOGUE
9892         to grops, selecting a different prologue file (minor modifications
9893         by WL).
9895         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9896         src/devices/grops/ps.cc (main): Implement it.
9897         * src/devices/grops/grops.man, NEWS: Document it.
9899 2000-09-22  Werner LEMBERG  <wl@gnu.org>
9901         * INSTALL: Add info about selecting paper format.
9903 2000-09-21  Werner LEMBERG  <wl@gnu.org>
9905         * src/roff/troff/input.cc (main): Fixing compiler warning.
9906         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9907         strings.h from the former to the latter.
9908         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9909         stuff from the former to the latter.
9911 2000-09-11  Werner LEMBERG  <wl@gnu.org>
9913         Implementing two new requests .tm1 and .tmc: The former is similar
9914         to .tm but can output leading spaces; its syntax is similar to
9915         defining a string, i.e., a `"' can be used to mark the beginning of
9916         the string to be written to stderr: `.tm1 " test'.  The latter is
9917         similar to .tm1 but doesn't write out a final newline character.
9919         * src/roff/troff/input.cc (terminal1, terminal_continue,
9920         do_terminal): New functions.
9921         (init_input_requests): Use them.
9922         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9924 2000-09-09  Werner LEMBERG  <wl@gnu.org>
9926         * tmac/groff_mdoc.samples.man: Small fixes.
9928 2000-09-08  Werner LEMBERG  <wl@gnu.org>
9930         * tmac/groff_mdoc.man: Fixing typo.
9932 2000-09-02  Werner LEMBERG  <wl@gnu.org>
9934         Implementing a .nop request which does nothing.
9936         * src/roff/troff/input.cc (nop_request): New function.
9937         (init_input_requests): Use it.
9938         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9940 2000-09-01  Werner LEMBERG  <wl@gnu.org>
9942         * doc/groff.texinfo: Added some comments.
9944 2000-08-30  Werner LEMBERG  <wl@gnu.org>
9946         * src/roff/troff/TODO: Updated.
9948 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9950         * doc/groff.texinfo: Fix comment how to compile the DVI file.
9952 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9954         * font/devps/generate/Makefile (SHELL): Define explicitly to
9955         "/bin/sh", for non-Unix platforms.
9956         (extraclean): Use a more portable "" quoting instead of a
9957         backslash (which doesn't work on DOS/Windows).
9958         
9959         * font/devlj4/generate/Makefile (extraclean): Ditto.
9961         * font/devdvi/generate/Makefile (extraclean): Ditto.
9963 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9965         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9966         src/roff/troff/troff.man: Document Eli's latest changes.
9968 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9970         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9971         macro file names of the form NAME.tmac as well as tmac.NAME.
9973 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9975         * src/include/posix.h: Remove definition of FILENAME_MAX.
9977         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9978         `sys_fatal' and `stop' function().
9980         * test-groff: Updated.
9982 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
9984         Added the new troff command .output <arg> to suppress output (while
9985         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9986         registers (for passing the output dimensions to the output device).
9988         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9989         parameter.
9990         * src/roff/troff/node.h, src/roff/troff/node.cc
9991         (troff_output_file::really_print_line,
9992         ascii_output_file::really_print_line,
9993         supress_output_file::really_print_line): Use `width' parameter.
9994         (troff_output_file::really_on, troff_output_file::really_off,
9995         output_file::on, output_file::off, real_output_file::on,
9996         real_output_file::off, real_output_file::really_on,
9997         real_output_file::really_off): New functions.
9998         (real_output_file:public output_file): New variable `output_on'.
9999         (real_output_file::begin_page, real_output_file::copy_file,
10000         real_output_file::transparent_char, real_output_file::print_line):
10001         Use it.
10002         (real_output_file::print_line): Use check_output_limits.
10003         * src/roff/troff/reg.h, src/roff/troff/request.h,
10004         src/roff/troff/input.cc (assign_registers): New function to remove
10005         two `goto's.
10006         (do_ps_file): Use it.
10007         (check_output_limits, reset_output_registers, output_request,
10008         init_output_requests): New functions.
10009         (init_input_requests): Updated.
10011         Added new grohtml2 device and html2 preprocessor (coding
10012         not yet finished) which will eventually replace grohtml.
10014         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10015         Updated.
10016         * src/include/htmlindicate.h, src/include/htmlindicate
10017         (html_begin_suppress, html_end_suppress): New functions.
10018         * src/preproc/tbl/main.cc: Use it.
10019         * src/roff/groff/groff.cc: Add support for html2 device (which will
10020         automatically invoke the html2 preprocessor).
10021         * src/roff/troff/input.cc (is_html2): New variable.
10022         * src/roff/troff/troff.h, src/roff/troff/env.h,
10023         src/roff/troff/env.cc (environment::add_html_tag): New function
10024         (uses `is_html2').
10025         (environment::do_break): Use it.
10026         * font/devhtml2/*: New files.
10027         * src/devices/grohtml2: New device.
10028         * src/preproc/html2: New preprocessor.
10029         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10031 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10033         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10035 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10037         * src/include/lib.h: Provide a fix for IRIX to not include
10038         groff-getopt.h.
10040 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10042         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10043         since some non-GNU sed programs can't handle null regexps.
10044         * configure, src/preproc/eqn/Makefile.sub,
10045         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10047         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10048         bug (string.h and strings.h are both needed according to latest
10049         POSIX standard).
10051         * MORE.STUFF: Added info about unroff and troffcvt.
10053 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10055         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10056         used before -ms.
10058         * tmac/tmac.man.old: Remove unused number register.
10060         * tmac.doc: Minor documentation fix.
10062 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10064         * src/roff/groff/pipeline.c (is_system_shell):
10065         Fix typo: "monocased_shell" no longer exists.
10067 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10069         Remove FILENAME_MAX limits.
10071         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10072         that the argument length is less than FILENAME_MAX.
10073         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10074         Use struct hack to allocate and free file name.
10075         (struct xtmpfile_list): fname is now part of the structure,
10076         not a pointer to another string.
10078 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10080         * src/include/posix.h: Add a default value for FILENAME_MAX.
10082 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10084         Add support for new BSD-style man pages (with ".Dd" instead of
10085         ".TH"), so that "groff -man" understands both styles, even
10086         when running "groff -man" on a host whose system man page
10087         macros don't support ".Dd".
10089         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10090         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10091         in case the system man macros don't define Dd or TH.
10093         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10094         * tmac/tmac.an: New one-line file.
10095         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10097 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10099         * src/roff/troff/troff.man: Fixing typos.
10101 Version 1.16.1 released
10102 =======================
10104 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10106         Preparing release 1.16.1.
10108         * REVISION: Revision number set to 1.
10109         * MORE.STUFF: Added info about port to DOS.
10110         * NEWS, win32-diffs: Updated.
10112         * src/include/nonposix.h: Remove first line -- this file is used
10113         in C also.
10115         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10116         link to it.
10118 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10120         * doc/texinfo.tex: Update to latest version.
10122 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10124         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10125         commands that fail.  Don't assume that "export a=b" is valid shell
10126         syntax.  This is needed for Solaris 2.5.1.
10128         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10129         comment about missing Solaris headers.
10131         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10133 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10135         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10136         SET_BINARY().
10138         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10140         * win32-diffs: Updated.
10141         * README.WIN32: Added CRs to make all Windows editors happy.
10143         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10144         src/roff/groff/pipeline.c).
10146 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10148         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10149         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10151 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10153         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10154         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10155         are binary files.
10156         (main): Support non-Posix systems with several different styles of
10157         slash characters in file names.
10159         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10160         (main) [SET_BINARY]: Switch stdin into binary mode.
10162         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10163         (main): Support file names with several possible slash-type
10164         characters, as given by DIR_SEPS[] in nonposix.h.
10165         (main) [__MSDOS__]: If renaming the temporary index file fails
10166         because it has more than one dot in its trunk, replace the dot
10167         with an underscore and try again.
10168         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10169         Newline.
10170         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10172         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10173         (File::File): Open the input file in binary mode.  Strip CR
10174         characters from each CR-LF pair.
10175         (xbasename): Support file names with several possible slash-type
10176         characters, as given by DIR_SEPS[] in nonposix.h.
10178         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10180         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10181         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10182         [!_POSIX_VERSION]: Define for traditional Unix systems.
10183         (real_output_file::real_output_file): Remove the MSVC-specific
10184         call to popen, use instead POPEN_WT, appropriately defined on
10185         nonposix.h.  #include nonposix.h.
10186         (real_output_file::~real_output_file): Remove the MSVC-specific
10187         call to pclose, a suitable macro is now defined on nonposix.h.
10188         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10189         and WEXITSTATUS instead of assuming traditional Unix
10190         interpretation of the status returned by pclose.
10192         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10193         call to popen, use POPEN_RT instead (appropriately defined on
10194         nonposix.h).  #include nonposix.h.
10195         (ps_bbox_request): Open the PostScript file in binary mode.
10196         Close the file after processing it.
10197         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10198         nonposix.h.
10200         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10201         A version of run_pipeline that doesn't use `fork'.
10202         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10203         (system_shell_name, system_shell_dash_c)
10204         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10205         the ugliness of testing DOS/Windows file names for equality, and
10206         support both stock shells and ports of Unix shells.
10208         * src/roff/groff/groff.cc: #include nonposix.h.
10209         (BSHELL): Definition moved to nonposix.h.
10210         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10211         instead of a literal "-c".
10212         (xbasename): Support file names with several possible slash-type
10213         characters, as given by DIR_SEPS[] in nonposix.h.
10214         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10215         of literal strings.
10217         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10218         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10220         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10221         pic_tab.h.
10223         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10225         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10226         eqn_tab.h.
10228         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10230         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10231         P_tmpdir is defined, use it instead of the literal "/tmp".
10232         (remove_tmp_files, add_tmp_file): New functions.
10233         (xtmpfile): Record temporary files and register an atexit function
10234         to delete them explicitly, instead of relying on the OS to do
10235         that, which doesn't work on non-Unix systems.
10237         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10238         (search_path::search_path): Use PATH_SEP instead of a literal
10239         colon.
10240         (search_path::command_line_dir): Ditto.
10241         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10242         to support non-Posix systems.
10244         * src/libs/libbib/search.cc: #include nonposix.h.
10245         (search_list::add_file): Open the file in binary mode.
10247         * src/libs/libbib/linear.cc: #include nonposix.h.
10248         (file_buffer::load): Remove \r characters preceding \n from the
10249         loaded buffer.
10251         * src/libs/libbib/index.cc: #include nonposix.h.
10252         (make_index_search_item): Open index_filename in O_BINARY mode.
10253         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10254         characters before \n characters.
10255         (index_search_item::check_files): Open files in binary mode.
10256         (index_search_item::munge_filename): Support DOS-style file names
10257         with backslashes and drive letters, use IS_ABSOLUTE.
10259         * src/devices/grops/ps.cc: #include nonposix.h.
10260         (main) [SET_BINARY]: Switch stdout to binary mode.
10262         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10263         (main) [SET_BINARY]: Switch stdout to binary mode.
10265         * src/devices/grolbp/lbp.cc: #include nonposix.h
10266         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10268         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10269         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10270         nonposix.h).
10271         (main) [SET_BINARY]: Switch stdout to binary mode.
10272         [_MSC_VER]: Remove an explicit call to _setmode.
10274         * src/include/nonposix.h: New file.
10276         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10277         operation when building with DJGPP.
10278         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10279         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10280         ENVSETUP.
10282         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10283         MS-DOS.
10284         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10285         etc. can include a semi-colon on DOS/Windows.
10286         (depend.temp): Use depend1.temp instead of depend.temp1, to
10287         prevent files from overerwiting each other on 8+3 filesystems.
10289         * gendef.sh (t): Change definition to work with DOS/Windows.
10291         doc/groff.texinfo: Apart of some typo corrections, I also changed
10292         some index entris, to make them more non-ambiguous, and also put
10293         @ignore around some parts that are not yet written, to allow the
10294         Info output be readable.
10296 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10298         Replaced specific checks for function declarations with a generic
10299         routine taken from GNU bfd.
10301         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10302         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10303         * configure.in: Use it.
10304         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10305         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10306         src/roff/groff/groff.cc: Use it.
10307         * Makefile.in, configure: Updated.
10309 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10311         * src/devides/grolbp/lbp.h: Removed unused variables.
10313 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10315         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10316         strncasecmp().
10318 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10320         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10321         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10322         * configure.in: Use it.
10323         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10324         * configure, Makefile.in: Updated.
10326         * configure.in: Add test for strncasecmp().
10327         * src/include/lib.h: Use it.
10329 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10331         * src/preproc/grn/Makefile.sub: Add MLIB.
10333 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10335         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10337 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10339         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10341         * PROBLEMS: Small update.
10343         * src/devices/grolbp/lbp.cc: Various small fixes.
10345 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10347         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10349         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10351 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10353         * man/roff.man: Removed unused macro.
10355 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10357         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10358         This is needed e.g. if you do
10359         `make distclean; ./configure; make dist'.
10361 Version 1.16 released
10362 =====================
10364 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10366         Adding font CWI (constant width italic) to devdvi.
10368         * font/devdvi/CWI: New file.
10369         * font/devdvi/generate/Makefile: Add generating rule.
10370         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10371         tmac/tmac.dvi: Use it.
10372         * NEWS: Announce it.
10374         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10375         * font/devlj4/generate/Makefile: Cosmetic changes only.
10377         * man/groff.man: Removed most of the redundant description of
10378         special characters (which is in groff_char.man).  Added font
10379         translation CB->CR for devdvi.  Other minor fixes.
10381         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10382         (registered) symbols.
10384 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10386         * doc/Makefile: Added rule for creating info files.
10388         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10389         AMS font metrics.
10390         * font/devdvi/generate/Makefile: Fixed dependencies.
10392         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10393         NewCentury Schoolbook!
10394         * font/devps/generate/afmname: Will now run with GNU awk.
10395         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10396         * font/devps/generate/Makefile: Cosmetic changes only.
10398 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10400         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10401         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10402         `.SS' now produces a heading with a smaller size than `.SH'. 
10403         Completely formatted.
10404         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10406         * man/groff.man: Improved table appearance.  Use of `eo' request
10407         to reduce number of doubled backslashes in macro definitions.
10408         Replacing `\e' with `\(rs'.  Other minor fixes.
10410         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10411         to have correct line number.
10413         * INSTALL: Small improvement.
10415 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10417         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10418         WL).
10420 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10422         * man/groff.man: Complete update (with a lot of corrections by WL).
10424 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10426         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10428         * font/*/*: Implement it.
10429         * man/groff_char.man, NEWS: Document it.
10431         * src/include/unix.h: Removed.  It isn't used.
10433         * doc/groff.texinfo: Slight improvements.
10435 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10437         * README, win32-diffs: Small fixes and improvements.
10439 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10441         * FDL: New file (the Free Documentation License version 1.1).
10443         * doc/groff.texinfo: Added many start-up values for gtroff.
10444         Some structural improvements of the source code.
10446 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10448         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10449         * src/roff/troff/troff.man: Added info about troffrc-end.
10451 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10453         * Makefile.in (EXTRADIRS): Fix typos.
10454         (dist): Handle deletion of old .tar.gz file correctly.
10455         (DISTDIRS): Include all tty output devices.
10457         * doc/groff.texinfo: Adding more cross references; countless other
10458         fixes.
10460 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10462         * MORE.STUFF: Added Robert Marks's utilities.
10464 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10466         Added win32 port contributed by Blake McBride
10467         <blake@florida-software.com>.
10469         * README.WIN32, win32-diffs: New files.
10470         * NEWS: Updated.
10472         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10473         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10474         (change): Removed unused variables.
10476         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10477         (savebounds): Changed return value from `int' to `void'.
10478         * src/preproc/grn/hdb.cc: Ditto.
10480         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10481         final backslash in comment to avoid compiler warning.
10483         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10485         * doc/groff.texinfo: More fixes.
10487 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10489         * tmac/tmac.doc: Documentation fix.
10491 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10493         * doc/groff.texinfo: Reading the source code shows up a lot of
10494         omissions and incorrect data...  More conversion to @Deffn macros.
10496 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10498         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10499         dependency.
10501         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10503 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10505         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10506         improvements.
10508         * doc/groff.texinfo: Extended history section.  More conversion to
10509         @Deffn macros.  More .tr documentation.
10511 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10513         * doc/groff.texinfo: Completed tab section.  Added info about
10514         fields.
10516 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10518         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10520 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10522         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10523         LaTeX 2e).
10524         * NEWS: Document it.
10526         * man/troff.man: Minor optical improvements.
10528 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10530         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10532         * font/*/*: Implement it.
10533         * man/groff_char.man, NEWS: Document it.
10535 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10537         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10538         expansion.
10539         * NEWS: Document the three new man pages.
10541         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10542         * configure: Updated.
10544         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10546 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10548         Added grap support to grog.
10550         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10551         * src/roff/grog/grog.man: Document it.
10553         * doc/groff.texinfo, NEWS: Add info about grap support.
10555         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10556         (with slight fixes by me).
10558         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10559         * tmac/Makefile.sub: Add groff_tmac.man.
10560         * man/roff.man: New file giving overview of roff system.
10561         * man/troff.man: A short reference of troff.
10562         * man/Makefile.sub: Add roff.man and troff.man.
10564 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10566         Added grap support to groff.
10568         * src/roff/groff/groff.cc: Implement it.
10569         * src/roff/groff/groff.man: Document it.
10571         * src/devices/grotty/grotty.man: Add cp1047 device.
10572         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10573         Ditto.
10574         * src/roff/groff/groff.man: Ditto.
10575         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10576         * doc/groff.texinfo: Ditto.
10578         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10579         for cp1047.
10581 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10583         * man/groff_char.man: Add `pc' glyph.
10584         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10585         * tmac/tmac.tty: Add `pc' glyph.
10586         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10587         we use cp1047 output device.
10589         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10590         there are still hardcoded latin1->unicode values in utf8's font
10591         definition files.
10592         * configure: Updated.
10593         * NEWS: Minor clarification.  Updated.
10595         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10596         Unix.
10598 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10600         Adding EBCDIC code page 1047.
10602         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10603         font/devcp1047/DESC.proto: New files.
10605         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10606         either ascii/latin1 or cp1047.
10607         * Makefile.in: Use it.
10608         * configure: Updated.
10610         Replacing and/or adding `md' (mathdot) glyph with `pc'
10611         (periodcentered) in all text fonts.
10613         * font/*/*: Change it.
10615 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10617         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10619         * configure.in: Add check for strings.h.
10620         * src/include/driver.h: Use HAVE_STRINGS_H.
10621         * src/devices/grolbp/lpb.cc: Remove string.h.
10623         * src/include/groff-getopt.h: New file.  It will be used instead of
10624         getopt.h (to be included in lib.h) to avoid endless problems with
10625         picky C++ compilers.
10626         * src/include/lib.h: Use groff-getopt.h.
10627         * src/include/Makefile.sub: Updated.
10629         * configure: Updated.
10630         * Makefile.in: Updated.
10632         * NEWS: Mention EBCDIC support.
10634 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10636         * TODO: Some additions.
10638 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10640         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10641         of mso request.
10643 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10645         * src/roff/troff/troff.man: Minor fixes.
10647 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10649         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10650         `.T' string register and the incompatible definition of the `.T'
10651         number register (compared to Unix troff).
10653         * man/groff_char.man: Add some missing characters.
10654         * font/devutf8/NOTES: Update.
10656 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10658         * src/include/htmlindicate.h, src/include/lib.h,
10659         src/include/posix.h: Fix copyright.
10661         * src/include/Makefile.sub: Update.
10663 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10665         * src/roff/troff/input.cc (input_char_description): Removing
10666         superfluous space char.
10668         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10670         * doc/groff.texinfo: Document EBCDIC.
10672 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10674         Introducing `shc' as the glyph name for the soft hyphen character.
10676         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10677         font/devlatin1/R.proto: Use it.
10679         * NEWS: Updated.
10681 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10683         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10684         dependency on ASCII order.
10686 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10688         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10689         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10691         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10692         to increase portability.
10694 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10696         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10697         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10698         the generic `\n' if under OS/390 Unix.
10700         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10702         * configure: Regenerated.
10704 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10706         * doc/groff.texinfo: More conversions to @Deffn.
10708 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10710         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10711         with `:'.
10713         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10715 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10717         * doc/groff.texinfo: More conversions to @Deffn.
10719 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10721         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10722         Updated to latest version (glibc 2.1.3).
10724 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10726         * doc/Makefile (clean): Include more index files.
10727         Add rule texinfo->dvi.
10729 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10731         * doc/groff.texinfo: Added new index `op' for operators.  More
10732         info on end of sentence characters.  More use of @Deffn.
10734 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10736         * */*.man: Adding a note that a whitespace can be inserted between
10737         a command line option and its parameter -- we are using GNU getopt.
10739         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10741 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10743         Correct anachronism of calling the man macro file with `-man'
10744         instead of `-m man' etc.
10746         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10747         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10748         load tmac.<package>.
10750         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10752         * NEWS: Updated.
10754         * doc/groff.texinfo: Updated.
10756         * tmac/groff_man.man: Copyright added.
10758 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10760         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10761         typeset the request resp. escape name with a tt font -- due to a
10762         bug in texinfo.tex it is necessary to use the `-e' switch with
10763         texi2dvi.
10765         Improving info about usage of groff units.
10767         Other minor fixes.
10769 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10771         * doc/groff.texinfo: Added section about man macro package
10772         (I've basically taken groff_man.man).  Introducing new indices `ma'
10773         for macros/strings and `gl' for glyph names.  Other minor fixes.
10775         * tmac/groff_man.man: Fixed some typos.
10777 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10779         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10780         Other minor fixes.
10782         * doc/texinfo.tex: New file.
10784 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10786         * doc/groff.texinfo: Improved section on number registers.  Other
10787         minor updates.
10789 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10791         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10792         synopsis.
10794         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10795         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10796         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10797         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10799         * src/preproc/grn/grn.man: Better synopsis; added copyright.
10801         * src/roff/grog/grog.man: Updated copyright date.
10803 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
10805         * configure.in: Added test for strdup.
10807         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10808         is available.
10810         Replaced dynamic allocation of arrays `[...]' with `new' operator.
10812         Other minor fixes.
10814 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
10816         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10818 2000-03-11  Werner LEMBERG  <wl@gnu.org>
10820         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10821         compilers silent.
10822         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10823         * src/include/lib.h: Remove some spaces.
10825 2000-03-10  Werner LEMBERG  <wl@gnu.org>
10827         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10828         initializers from arguments (some compilers don't like this).
10830 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
10832         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10833         used by pic and eqn to tell grohtml where the graphic regions start
10834         and end.
10835         * src/libs/libgroff/Makefile.sub: Use it.
10836         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10837         graphic_start() and graphic_end() from htmlindicate.cc.
10839 2000-03-09  Werner LEMBERG  <wl@gnu.org>
10841         * tmac/tmac.safer: Will now work correctly in compatibility mode.
10842         * tmac/groff_man.man: More fixes.
10844 2000-03-08  Werner LEMBERG  <wl@gnu.org>
10846         * doc/Makefile: Added texput.log to the `clean' target.
10847         * doc/groff.texinfo: Added info about delimiters for escapes.
10849 2000-03-08  Bernd Warken  <bwarken@mayn.de>
10851         * src/preproc/pic/pic.man: Add info on conversion of pic images to
10852         other graphic formats.
10854 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
10856         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10857         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10858         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10859         files.
10861 2000-03-07  Werner LEMBERG  <wl@gnu.org>
10863         * doc/groff.texinfo: Spelling fixes.
10865 2000-03-06  Werner LEMBERG  <wl@gnu.org>
10867         * tmac/groff_man.man: Completely revised to cover everything in
10868         tmac.an.
10870         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10871         Other minor fixings.
10872         * src/roff/troff/env.cc (environment_copy): Improve error message and
10873         fix itoa->i_to_a.
10874         * src/roff/troff/TODO: Updated.
10876         * doc/Makefile: Bug fixes -- this is still provisional, though...
10878         * tmac/eqnrc: Small fixes.
10880 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10882         Adding a request `evc' to copy environments.
10884         * src/roff/troff/env.cc (environment::copy, environment_copy):
10885         Implement it.
10886         * src/roff/troff/env.h: Add prototype.
10888 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
10890         Adding strsep() -- Solaris 8 doesn't have it.
10892         * configure.in: Test it.
10893         * src/devices/grolbp/lbp.cc: Add code.
10895 2000-03-05  Werner LEMBERG  <wl@gnu.org>
10897         * src/roff/troff/div.cc (macro_diversion::output,
10898         top_level_diversion::output): Fixing an incompatibility with
10899         original troff: \x'0' updates the .a register also.  Thanks to
10900         <Andries.Brouwer@cwi.nl> for pointing this out.
10901         * doc/groff.texinfo: Document it.
10903         * Makefile.in: Create Makefile.dep if necessary before calling the
10904         submake process to avoid warning about nonexistent file.
10906         * NEWS, PROJECTS: Updated.
10908 2000-03-04  Werner LEMBERG  <wl@gnu.org>
10910         * tmac/troffrc: Add tmac.lbp.
10912 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
10914         * tmac/tmac.lbp: New file.
10915         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10916         command.
10918 2000-03-03  Werner LEMBERG  <wl@gnu.org>
10920         * Makefile.in: Fixing $(subdir).
10922         * README, NEWS: Small fixes.
10924         * test-groff: Adding path to grolbp.
10926         * configure.in: The (new) file src/xditview/Imakefile.in will be
10927         also configured -- it is now possible to build gxditview in a
10928         directory different from $srcdir.
10930 2000-03-02  Blake McBride  <blake@florida-software.com>
10932         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10934         * MORE.STUFF: Added website of bell labs and info about plot2dev.
10936 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
10938         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10939         files.
10941 2000-02-29  Werner LEMBERG  <wl@gnu.org>
10943         Adding GNU getopt to the groff distribution.
10945         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10946         New files.
10947         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10948         * aclocal.a4: Remove GROFF_GETOPT function.
10949         * configure.in, Makefile.in, PROBLEMS: Update.
10950         * src/include/lib.h: Replace getopt tests with getopt.h.
10951         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10953         * doc/groff.texinfo: Further checking/updating.  Adding more index
10954         entries.
10956         * man/groff_out.man: Fix nroff mode activation (for emacs).
10957         * man/groff_font.man: Add missing ligature.
10959 2000-02-28  Werner LEMBERG  <wl@gnu.org>
10961         * doc/groff.texinfo: Further checking/updating.  Adding more index
10962         entries.
10964         * src/devices/grolbp/grolbp.man: Added a comment line at the
10965         beginning of the file (similar to shell scripts) which indicates
10966         that `tbl' should be used as a preprocessor.
10968 2000-02-27  Blake McBride  <blake@florida-software.com>
10970         Adapting groff to MS Visual C++ 6.0 compiler (tested with
10971         Windows NT 4.0).  Uses _MSC_VER define where necessary.
10973         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10974         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10975         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10976         src/include/lib.h, src/libs/libgroff/errarg.cc,
10977         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10978         src/preproc/refer/label.y, src/preproc/refer/label.cc,
10979         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10980         src/roff/troff/div.cc, src/roff/troff/env.cc,
10981         src/roff/troff/input.cc, src/roff/troff/node.cc,
10982         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10983         if_to_a() to avoid name clashes.
10984         * src/include/posix.h: Don't use unistd.h.
10985         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10986         clause for integrating non-Unix xtmpfile() code.
10987         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10988         structure; use "rt" for popen() in pipe_source(); add getpid()
10989         dummy function.
10990         * src/roff/troff/node.cc: Use special versions of popen() in
10991         real_output_file() and pclose() in ~real_output_file().
10993 2000-02-27  Werner LEMBERG  <wl@gnu.org>
10995         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10996         LBP-8 series laser printers).  This code has been contributed by
10997         Francisco Andrés Verdú <pandres@dragonet.es>.
10999         * src/devices/grolbp/*: The grolbp output device.
11000         * font/devlpb/*: The font description files.
11001         * Makefile.in: Add grolpb and devlbp subdirectories.
11003         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11004         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11005         typographic fixes.
11007         * doc/groff.texinfo: Further checking/updating.  Adding more index
11008         entries.
11010         * NEWS: Updated.
11012         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11014         * man/groff_font.man: Adding info about obsolete DESC keywords.
11015         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11016         keywords.
11018 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11020         * src/preproc/grn/grn.man: Added info about the gremlin file format
11021         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11023 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11025         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11026         friends to be non-integer.
11028         * src/preproc/grn/grn.man: Document it.
11030         * doc/groff.texinfo: Further checking/updating.  Adding more index
11031         entries.
11033 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11035         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11036         line thicknesses to be integer multiples of this value.
11038         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11039         corresponding code doesn't work (yet).
11041         * doc/groff.texinfo: Further checking/updating.  Adding more index
11042         entries.
11044 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11046         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11047         specify line thickness instead of base units.  The new default
11048         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11049         thick lines respectively.
11051         Removed unused variable `prevval'.
11053         * src/preproc/grn/grn.man: Updated.
11055 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11057         * src/preproc/grn/main.cc: Slight formatting.
11059         * src/roff/groff/groff.man: Formatting fix.
11060         * src/preproc/grn/grn.man: Ditto.
11062         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11064         * doc/groff.texinfo: Further checking/updating.
11066 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11068         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11070         * test-groff: Added grn subdir to path.
11072         * doc/groff.texinfo: Some restructing and other small improvements.
11074         * src/roff/groff/groff.cc (help): Fixed info string.
11076 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11078         * doc/meref.me: Fix description of .GS request.
11080         * src/roff/troff/troff.man: Fixing typo.
11082         Adding the `grn' preprocessor for gremlin graphic files.
11084         * src/preproc/grn/*: This is the Berkeley distribution written by
11085         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11086         Senderowicz and Werner Lemberg.
11088         * doc/grnexampl.{me,g}: A sample for grn.
11090         * Makefile.in: Added subdirectory entry for grn.
11092         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11093         called with the switch `-g'.
11095         * src/roff/groff/groff.man: Updated.
11097         * src/roff/grog/grog.{man,pl,sh}: Updated.
11099         * NEWS: Updated.
11101 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11103         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11104         parametrically polymorphic.
11106         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11107         and the alterations to xtmpfile.
11108         xtmpfile can be requested to return the filename created
11109         and asked not to unlink the temp file.  The default behaviour
11110         if parameters are absent is exactly the same as before.
11112 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11114         A new request `length' is available which returns the length of a
11115         string in a number register:
11117         * src/roff/troff/input.cc (length_macro): Implement it.
11118         * src/roff/troff/input.cc (init_input_requests): Register it.
11120 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11122         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11123         of the `substring' request.
11125         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11126         request.
11128         * src/roff/troff/TODO, NEWS: Updated.
11130 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11132         * src/roff/groff/groff.man: Added an example.
11134 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11136         I've considerably modified the directory structure of the
11137         distribution to get a more vertical layout.  For example, the number
11138         of top level directories has been reduced from 42 to 6.
11140         As a consequence, many changes, especially to the makefiles, were
11141         necessary:
11143         * The makefile variables `top_builddir' and `top_srcdir' have been
11144         introduced.  Virtually all relative paths have been replaced with
11145         absolute ones using these two variables.
11147         * Dependencies (in the files `Makefile.dep') are no longer part of
11148         the distribution.  Instead, they are created during a `make install'
11149         in the build directory.
11151         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11152         make `top_srcdir' and `top_builddir' absolute.
11154         Some other changes:
11156         * Man pages now depend on the files `VERSION' and `REVISION'.
11158         * The added shell script `mkinstalldirs' will replace `mkdir' in
11159         almost all cases.
11161         * VERSION: Version number increased to 1.16.
11163 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11165         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11167         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11168         (after an update of the mm stuff).
11170         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11172 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11174         The .psbb request will now also accept Mac PS images (i.e. using LF
11175         as the EOL character).
11177         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11178         (with slight modifications).
11179         * troff/input.cc (do_ps_file): Use it.
11181         * test-groff: Add grohtml and grolj4 output devices to PATH.
11183 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11185         * NEWS, MORE.STUFF: Updated.
11187 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11189         Add the `srand' command to pic.
11191         * pic/lex.cc, pic/pic.y: Implement it.
11192         * pic/pic.man: Document it.
11193         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11195 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11197         Add a new request `.psbb'.  This does exactly what the external
11198         program psbb did.  It scans a PostScript image file for a
11199         %%BoundingBox comment and extracts the bounding box values (in
11200         PostScript units) which are then stored in the four new (read-only)
11201         number registers `llx', `lly', `urx', and `ury'.
11203         This will allow the usage of the .PSPIC macro without worrying
11204         about unsafe behaviour of groff, i.e., it will work without the
11205         `-U' switch of groff.
11207         * troff/input.cc: Implement it.
11208         * tmac/tmac.pspic: Use it.
11209         * troff/troff.man, grops/grops.man, NEWS: Document it.
11210         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11212         This is bloody C code simply adapted from psbb.c!  Any improvements
11213         welcome.
11215 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11217         * man/groff_font.man: Minor clarifications.
11219         * NEWS: Updated.
11221 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11223         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11225 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11227         * man/groff_font.man: Brought up to date regarding tcommand
11228         extensions.
11229         * libgroff/font.cc: Handle everything after `--' as a comment
11230         in the font files.
11231         * devps/*: Added comment delimiter inside devps font files.
11233 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11235         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11236         \fC...\fP (which now works as expected).
11238         * troff/troff.man: Fix typo.
11240 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11242         Completed the pass_filenames implementation in troff.
11244         * libdriver/input.cc: Will read the new `F' tcommand.
11245         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11246         * troff/input.cc: Use it.
11248 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11250         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11251         font will now be updated even if an invalid font is selected.
11253 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11255         * doc/homepage.ms: Updated for new tmac.arkup.
11257         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11259         * tmac/tmac.arkup: Cleanup.
11261         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11263         Removed obsolete .LINK macro completely.
11265         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11266         will be immediately appended to the second argument (to be used with
11267         punctuation, for example).
11269         Disabled .CDFTP macro temporarily for security reasons.
11271         * tmac/groff_markup.man: Complete revision for latest changes in
11272         tmac.arkup -- note that it does not yet format correctly with
11273         grohtml :-(
11275 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11277         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11278         * devutf8/R.proto: Add mappings for wp, lh, rh.
11279         * devutf8/NOTES: Updated.
11281 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11283         * doc/groff.texinfo: Updated version/copyright info.
11285 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11287         Added support for two new directives in device descriptions:
11288         `pass_filenames' (to pass the input file name to the output device)
11289         and `use_charnames_in_special' (to support e.g. accented characters
11290         in the `X' request).
11292         * include/font.h, troff/charinfo.h: Declare it.
11294         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11296         * devhtml/DESC: Use it.
11298         * troff/input.cc: New function encoded_char.
11300         * troff/token.h: Add test for `specialness'.
11302 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11304         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11305         mistake from the list of files to be installed.
11307 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11309         * README: Added info how to apply patches.
11311 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11313         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11315 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11317         * troff/input.cc: Add support for troffrc-end.
11319         * tbl/main.cc: Altered to issue table-start and table-end special
11320         characters if using the html device.
11322         * devhtml/*: Modified font files to incorporate html encoding of
11323         characters.
11325         * tmac/groff_markup.man: New file documenting tmac.arkup.
11327         * tmac/troffrc-end: New file.  This is invoked after all user
11328         specified macros.  Currently used by the html device to include
11329         tmac.html.  Thus no need for users to specify -mhtml anymore.
11331         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11332         (MAN7): Add groff_markup.man.
11334         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11336         * tmac/troffrc: tmac.arkup will now be called for the html device.
11338         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11339         extra device specific information about fonts.
11341         * doc/homepage.ms: New file.  It is an example how an HTML home page
11342         could look like with grohtml.
11344         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11346 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11348         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11349         of Im, Re.
11351         * devutf8/NOTES: Updated.
11353 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11355         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11356         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11357         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11358         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11359         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11360         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11361         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11362         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11363         warnings.
11365         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11367 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11369         grolj4: Paper size will be searched case-insensitively.
11371         * include/lib.h: Add check for strcasecmp().
11372         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11373         * configure.in: Check for strcasecmp().
11375 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11377         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11378         `REVISION'.
11380 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11382         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11383         revision scheme.
11385         Add a new read-only register, `.Y', which contains the groff
11386         revision.
11388         * troff/input.cc (init_input_requests): Define it.
11389         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11390         * doc/groff.texinfo, troff/troff.man: Document it.
11392         * libgroff/Makefile.sub (version.cc): Add definition of
11393         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11394         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11395         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11396         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11397         troff/input.cc, pfbtops/pfbtops.c: Use it.
11399 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11401         Add a revision scheme to the groff package.
11403         * REVISION: New file.
11404         * libgroff/Makefile.sub (version.cc): Use it to define
11405         `revision_string[]'.
11406         * grops/psrm.cc: Use revision_string (converted to an unsigned
11407         integer) in constructor of resource_manager.
11409 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11411         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11412         files.
11413         * Makefile.in (DEVDIRS): Add devutf8.
11414         * grotty/tty.cc: Include device.h.
11415         (glyph): Change type of `code' to `unsigned int'.
11416         (tty_printer): New field is_utf8.  Constructor takes device argument.
11417         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11418         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11419         (tty_printer::put_char): New function.
11420         (tty_printer::end_page): Use put_char() instead of ::putchar().
11421         (make_printer): Pass device to tty_printer constructor.
11422         * nroff.sh: Determine default device by calling 'locale'.  As a
11423         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11424         Recognize UTF-8 locales.
11425         * tmac/eqnrc: Recognize utf8 like latin1.
11426         * tmac/troffrc: Device utf8 needs tmac.tty.
11428 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11430         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11432 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11434         Add a new predefined writeable number register, `year',
11435         which contains the current year.
11437         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11438         * tmac/tmac.s: Use it.
11439         * troff/input.cc (init_registers): Initialize it.
11441 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11443         * PROBLEMS: Fixed typo.
11445 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11447         * PROBLEMS: Add Y2k advice for the yr number register.
11449 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11451         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11453 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11455         * tmac/tmac.arkup: Slight modification of macros to provide better
11456         appearance for non-HTML formats.
11458 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11460         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11461         does not automatically translate to malloc(n) on all OSes
11462         (e.g., SunOS) so do it explicitly.  Also, check the returned
11463         value.
11465 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11467         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11469         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11470         expects this variable
11472 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11474         * doc/Makefile: Added instructions to create HTML and text
11475         versions of some files.
11477 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11479         * Updated INSTALL.gen.
11481         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11482         better resp. correctly with non-HTML devices.
11484 Version 1.15 released
11485 =====================
11487 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11489         * NEWS, VERSION: Changed to 1.15
11491 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11493         * nroff/nroff.man: -S is safer, not safe.
11495         * groff/groff.cc (main): Use `safer', not `safe', in variable
11496         names.  This does not change the behavior.
11498         * troff/input.cc (main): Likewise.
11500         * nroff/nroff.sh: Likewise.
11502         * troff/input.cc (prepend_string): New function.
11503         (main): Prepend -msafer, so that we check macro libraries for
11504         safety.
11506         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11508 Version 1.14 released
11509 =====================
11511 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11513         * NEWS, VERSION: Changed to 1.14.
11515 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11517         * refer/refer.cc: Fixing the last fix.
11519 Version 1.13 released
11520 =====================
11522 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11524         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11525         number disappear.
11527         * NEWS: Updated.
11529         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11531         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11532         document conventions, the version number must be a real.
11534 Version 1.12.1 released
11535 =======================
11537 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11539         * VERSION: Changed to 1.12.1.
11541 1999-12-22  Alan Rooks  <arooks@istar.ca>
11543         * refer/refer.cc (do_file): Slight modification to satisfy the
11544         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11545         UnixWare 7.1.
11547 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11549         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11550         notices.
11552         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11553         list of unsafe requests.
11555         * pic/pic.man: Fixed a typo.
11557         * man/groff_out.man: Fixed a typo.
11559 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11561         * Makefile.in: Doc fixes.
11563 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11565         * groff/groff.cc: Missing `U' option added to getopt().
11567         * troff/troff.man: Missing `U' option added to synopsis.
11569 Version 1.12 released
11570 =====================
11572 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11574         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11575         to the synopsis.
11577         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11578         with the more appropriate terms `safer' and `unsafe'.
11580         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11581         sys_nerr and sys_errlist[].
11583         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11585         * pic/pic.y, pic/pic.cc: Added check for fmod().
11587 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11589         * VERSION: Changed to 1.12.
11591         Here some patches from various sources; most of them taken from
11592         the Debian distribution.
11594         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11595         tmac/Makefile.sub: New files copied directly from the NetBSD
11596         distribution.  Probably, some additional adaptation later on is
11597         necessary...
11599         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11600         of unsafe requests.
11602         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11603         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11604         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11605         (`-S') is now the default.
11607         * README, NEWS: Updated.
11609 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11611         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11613         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11615 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11617         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11618         grief than relief today.  Additionally, it is against the GNU
11619         coding standards.
11621         * configure: Recreated.
11623 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11625         * configure.in: Added GROFF_LIBM.
11627         * configure: Recreated.
11629         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11630         necessary.
11632         * Makefile.in: Added definition of $(LIBM).
11634         * Makefile.comm (LIBM): Removed.
11636         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11638 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11640         * doc/Makefile: Added rule for generation pic.html.
11642         (clean): Files produced by grohtml will be removed also.
11644         * doc/pic.ms: Small fix.
11646         * tmac/tmac.html: Fixed suppression of headers.
11648 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11650         * tmac/tmac.html: Fixing horizontal arrows.
11652         Turning off hyphenation.
11654         * tmac/tmac.an: Improved support for grohtml; better indentation,
11655         no footers/headers.
11657 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11659         * tmac/tmac.arkup: Added CDFTP macro
11661         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11662         macros.
11664         * tmac/troffrc: Some additions for HTML stuff.
11666 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11668         * tmac/tmac.html: Small changes.
11670 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11672         * doc/groff.texinfo: Minor fixes.
11674 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11676         * devhtml/TR: Changed spacewidth to 3.
11678         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11680         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11682         * tmac/tmac.arkup: New file.
11684         * grohtml/ChangeLog: New file.
11686 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11688         * doc/groff.texinfo (Common Features): Added Copying chapter.
11689         Changed format to @smallbook.
11691 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11693         * NEWS: Added info about groff.texinfo.
11695         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11696         warning messages.
11698 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11700         * groff/groff.man: More updates.
11702 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11704         * doc/groff.texinfo: New file.  This manual is still very
11705         rudimentary.  It has been originally contributed by Trent
11706         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11707         additions by me.
11709         * INSTALL: Added information about the `doc' subdir
11711         * troff/troff.man: Minor fixes.
11713         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11714         reordered options.
11716         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11718         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11719         also, otherwise it is included itself in another call of `make
11720         dist'.
11722         * groff/groff.cc (synopsis): Removed superfluous space.
11724         * PROJECTS, PROBLEMS, NEWS: Updated.
11726         * VERSION: Updated to 1.12beta.
11728         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11730         * README: Updated: Included documentation about CVS repository,
11731         mailing lists, and daily snapshots.
11733         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11735 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11737         * tmac/tmac.an: If the tag didn't fit into the space that the
11738         macro `TP' specifies, the rest of the tag went into the space for
11739         the next line.
11741 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11743         * grolj4/lj4.cc: Added duplex printing (option `-d').
11745         * grolj4/grolj4.man: Document duplex printing.
11747 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11749         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11750         non-GNUish sed programs.
11752         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11753         definition.
11755         * configure.in (LIBS): Added `-lc'
11757         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11759         * pic/tex.cc (solid_arc): Casting M_PI to double.
11761         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11763         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11764         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11765         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11767         * groff/groff_man.man: New file.  This manual page was originally
11768         written for the Debian GNU/Linux system by Susan G. Kleinmann
11769         <sgk@debian.org>.
11771         * eqn/list.cc (list_box::compute_metrics,
11772         list_box::compute_sublist_width): Removed variable declaration to
11773         avoid shadowing warnings.
11775         * grops/psrm.cc (resource_manager::process_file): Ditto.
11777         * tfmtodit/tfmtodit.cc (main): Ditto.
11779         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11780         to avoid shadowing warnings.
11782         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11783         shadowing loop variable.
11785         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11787 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11789         New grohtml frontend to convert groff input to html.
11791         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11793         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11795         * tmac/eqnrc: Added html device.
11797         * tmac/tmac.html: New file.
11799         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11800         (troff_output::start_picture, troff_output::finish_picture),
11801         tbl/main.cc (process_input_file):
11802         Surrounded output with `graphics_start' and `graphics_end' so that
11803         the html driver can identify non-text portions.
11805         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11806         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11807         grotty/tty.ps (tty_printer::set_char): Additional parameter
11808         `name'.
11810         * include/printer.h: Class printer: New function
11811         set_char_and_width; new variables (is_char_named, is_named_set,
11812         named_command, named_char_s, named_char_n) to hold information
11813         about named characters -- needed by the html driver.
11815         * libdriver/printer.cc (printer::set_ascii_char,
11816         printer::set_special_char): Use set_char_and_width.
11818         * devhtml/*: New device files for html driver.
11820         * grohtml/*: New driver grohtml.
11822 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
11824         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11825         default strings.
11827 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
11829         * libgroff/string.cc (search): Small fix to test against NULL
11830         pointer.
11832 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
11834         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11835         \b'abc') were stacked in reverse order when processed in a
11836         diversion.
11838         * troff/node.h: Added `*last' to struct `node' to make the above
11839         fix work.
11841         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11842         The default scale for the 'f' and 't' graphics functions were 'm'
11843         rather than 'u' (i.e., no scaling).
11845 1999-09-11  Peter Miller  <peterm@jna.com.au>
11847         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11848         do_file), soelim/soelim.man: Added `-I file' option to soelim,
11849         defining include paths.
11851         * soelim/soelim.cc (include_path_append): New function.
11853 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
11855         * tbl/main.cc (process_options): Unix (at least Documenter's
11856         Workbench) tbl allows arbitrary non-alpha characters between
11857         options.
11859 1999-09-11  Paul Eggert  <eggert@twinsun.com>
11861         Y2k fixes.  Don't assume that the current year precedes 2000.
11863         * doc/meref.me: Add \n(y2, \n(y4.
11865         * tmac/doc-common (Yr): New number register.
11866         (Dd): Don't assume current year precedes 2000.
11868         * tmac/tmac.e (td): Likewise.
11869         (y2, y4): New number registers.
11871         * pic/pic.man: Update reference for pic paper to May, 1991
11872         version.
11874 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11876         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11877         Removed quotation marks which prevented correct expansion of
11878         $(tmac_wrap).
11880         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11882 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11884         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11885         `config.cache'.
11887         * Removed configure.old.
11889 1999-08-31  Werner LEMBERG  <wl@gnu.org>
11891         * VERSION: Updated to 1.11.1
11893 1999-05-27  Werner LEMBERG  <wl@gnu.org>
11895         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11897         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11898         added quotations around $(tmac_wrap) to avoid syntax error if
11899         variable is empty.
11901         * configure: Newly generated using autoconf 2.13.
11903         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11905 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
11907         * README, PROJECTS, NEWS, INSTALL, VERSION, 
11908         doc/Makefile. doc/pic.ms, groff/groff.man:
11909         Prepare for 1.11 release.  No code changes.
11910         Documentation for pic added (doc/pic.ms).
11912 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
11914         * Version 1.10 released.
11916 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
11918         * afmtodit/afmtodit.pl: Avoid comment on first line.
11920 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
11922         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11923         * configure.in: Call it.
11925         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11926         (distfiles): Doesn't depend on config.log or config.cache.
11928 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
11930         * grog/grog.sh: Use print "" rather than print in END rule.
11932 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
11934         * tbl/main.cc (process_data): Don't give error for excess data
11935         entries that are comments.
11937 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
11939         * tbl/main.cc (process_data): Fix case where new for-scope rules
11940         silently change meaning of code.
11942 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
11944         * troff/env.cc (hyphenate): Loop over all consecutive sequences
11945         of non-zero hyphenation codes.
11947 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
11949         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11951 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
11953         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11955 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
11957         * tmac/tmac.andoc: Make it work in compatibility mode.
11959         * refer/token.h (token_info::is_range_sep): New function.
11960         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11961         * refer/ref.cc (reference::output): More sophisticated check for
11962         multiple pages.
11964         * devps/prologue.ps (MANUAL): New procedure.
11965         * grops/ps.cc (main): New -m option.
11966         (usage): Include -m.
11967         (ps_printer::~ps_printer): Implement -m.
11969         * aclocal.m4 (GROFF_G): New macro.
11970         * configure.in: Call it.
11971         * Makefile.in (g): Provided by configure.
11973         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11975         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
11976         translations.
11978         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11979         (tmac_m, tmac_s): Deleted.
11980         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11981         tmac_s_prefix): New variables.
11982         (MDEFINES): Change accordingly.
11983         * Makefile.comm (.man.n): Use new TMAC_* variables.
11984         * configure.in (GROFF_TMAC): Call.
11985         * aclocal.m4 (GROFF_TMAC): Define.
11986         * tmac/Makefile.sub (stamp_wrap): New target.
11987         (install_data, uninstall_sub): Handle macro wrapping.
11989 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
11991         * tbl/main.cc (main): Ignore -T option.
11993 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
11995         * devlj4/generate/special.map: Add definition of \(nb.
11997         * tmac/tmac.dvi: Add definition of \(nb.
11999         * troff/dictionary.c (dictionary::dictionary): association::v gets
12000         initialized by association::association.
12002         * tmac/Makefile.sub: Avoid using temporary files when installing.
12004         * troff/env.cc (environment::set_font): Make bad font number a
12005         warning.
12007         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12009         * Makefile.in (datadir): Use share rather than lib.
12011         * groff/groff.cc (basename): Rename to xbasename.
12013 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12015         * Makefile (CCLIBS): Don't use.
12016         * Makefile.ccpg: Likewise.
12018         * acgroff.m4: Rename to...
12019         * aclocal.m4: Modify extensively for autoconf 2.
12020         * configure.in: Likewise.
12021         * Makefile.in: Likewise.
12023         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12024         defined.
12025         (xstrsignal): Check for definition of NSIG. Conditionalize
12026         on SYS_SIGLIST_DECLARED.  Make return type const.
12028 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12030         * troff/input.cc (interpolate_macro): Rephrase missing space
12031         warning.
12033 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12035         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12036         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12037         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12038         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12039         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12040         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12041         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12042         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12043         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12044         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12045         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12046         Fix 'for' scoping.
12048 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12050         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12051         string_iterator.
12052         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12053         file.
12054         (macro_iterator::macro_iterator): Add additional argument.
12056 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12058         * troff/div.cc (vertical_size::vertical_size): In place of integer
12059         specifying line spacing use cunits specifying post vertical
12060         space.
12061         (macro_diversion::output, top_level_diversion::output): Likewise.
12062         * troff/div.h: Change declarations accordingly.
12063         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12064         field.
12065         (pending_output_line::pending_output_line,
12066         pending_output_line::output, environment::output,
12067         environment::output_line, environment::output_title,
12068         environment::hyphenate_line):  In place of
12069         integer specifying line spacing use cunits specifying post vertical
12070         space.
12071         (environment::environment): Add post_vertical_spacing and
12072         prev_post_vertical_spacing arguments.
12073         (environment::get_post_vertical_spacing): New function.
12074         (environment::total_post_vertical_spacing): New function.
12075         (environment::post_vertical_spacing): New function.
12076         (init_env_requests): Initialize pvs request and .pvs register.
12077         * troff/env.h: Change declarations.
12079 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12081         * tmac/tmac.pspic: Immediately remove the temporary file.
12083 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12085         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12086         height is specified.
12088 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12090         * tbl/table.c (struct vertical rule, class table_entry): Use int
12091         not short for start_row and end_row.
12093 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12095         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12096         functions.
12097         (diverted_space_node::reread, process_input_stack): Call
12098         trapping_blank_line() rather than blank_line().
12099         (init_input_requests): Bind "blm" to blank_line_macro().
12101         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12103 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12105         * troff/env.cc (environment::possibly_break_line): Require that
12106         width total excluding width of final space node be greater than
12107         the target text length.
12109 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12111         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12113 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12115         * troff/node.cc (charinfo_node): New class.
12116         (glyph_node, composite_node): Derive from charinfo_node.  Change
12117         member functions accordingly.
12119 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12121         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12123 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12125         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12127         * devps/generate/textmap (notsubset): Add.
12129         * tmac/tmac.a4: New file.
12131 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12133         * pic/main.cc (had_parse_error): New variable.
12134         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12135         returns non-zero.
12136         (main): Return 1 if had_parse_error is true.
12138 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12140         * grolj4/lj4.cc (main): Avoid use of strtoul.
12142 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12144         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12145         iso_8859_1 or $LESSCHARSET is latin1.
12147 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12149         * hpftodit: New directory.
12150         * Makefile.in (CCPROGDIRS): Add hpftodit.
12151         * devlj4/generate: New directory.
12153 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12155         * configure.in: Don't use AC_VFORK.
12156         * groff/pipeline.c (run_pipeline): Use fork() always.
12158 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12160         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12162         * Makefile.in (CCPROGDIRS): Add grolj4.
12163         (DEVDIRS): Add devlj4.
12164         * grolj4, devlj4: New directories.
12165         * tmac/troffrc: Handle lj4.
12166         * tmac/tmac.lj4: New file.
12168 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12170         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12172 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12174         * troff/input.cc (do_if_request): At end of second string, switch
12175         environments before getting next token.
12177 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12179         * devps/psstrip.sed: Split rule that strips whitespace on either
12180         side of delimiters.
12182 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12184         * troff/node.h (font_family::make_definition): Add return value to
12185         declaration.  * troff/symbol.h (symbol::operator==,
12186         symbol::operator!=): Likewise.
12188 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12190         * groff/groff.cc (main, help, synopsis): Handle -S.
12191         (possible_command::insert_arg): New function.
12193         * tmac/tmac.safer: New file.
12194         * tmac/msafer.man: New file.
12195         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12197 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12199         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12200         * pic/pic.y (placeless_element): Avoid unsafe operations if
12201         `safer_flag' is set.
12202         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12204 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12206         * eqn/lex.cc (get_token): Put call to add_context() in block to
12207         work around Sun C++ 4.0 bug.
12209         * include/stringclass.h (operator +): Use ?: instead of `if' to
12210         work around Sun C++ 4.0 bug.
12212 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12214         * tbl/main.cc (process_format): Accept - as a synonym for the _
12215         key letter.
12217         * libbib/index.cc (minus_one): Don't declare as const.
12219 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12221         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12223 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12225         * troff/input.cc (write_macro_request): New function.
12226         (init_input_requests): Bind write_macro_request to writem.
12228 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12230         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12231         equation.
12233         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12235         * tmac/tmac.s (@TS): Renamed from TS.
12236         (TS): Call LP then TS again.
12237         (cov*ab-init): Alias @TS to TS.
12239         * tmac/tmac.s: Allow QP or RS to initialize.
12241         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12242         Move initializations of PS and LL here.
12243         (par@init): Don't initialize HY.  Avoid changing environment 0.
12244         (par*env-init): Don't all par@reset.
12246 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12248         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12250 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12252         * Makefile.in (MDEFINES): Add LDFLAGS.
12253         (LDFLAGS): Add definition line.
12255 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12257         * troff/input.cc (get_optional_char): Split off error check into...
12258         (check_missing_character): New function.
12259         * troff/token.h: Declare it.
12260         * troff/env.cc (margin_character): Don't call get_optional_char.
12261         Only call tok.next() after making the node.
12263         * include/lib.h (getopt): Make 2nd argument char *const *.
12265 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12267         * nroff/conftest.sh: Deleted.
12269 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12271         * pic/make-dos-dist: Deleted.
12273 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12275         * devps/psstrip.sed: Strip comments before stripping trailing
12276         white space.
12278 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12280         * Version 1.09 released.
12282 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12284         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12286 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12288         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12290 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12292         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12293         about returning without a value.
12295         * troff/charinfo.h (charinfo::get_special_translation): Cast
12296         TRANSLATE_NONE to int.
12298         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12299         test.  Fix test so that it works with n unsigned.
12301         * pic/pic.y (defaults_table): Fully bracket initializer.
12302         * pic/lex.cc (lookup_keyword): Likewise.
12303         * eqn/lex.cc (token_table, def_table): Likewise.
12304         * eqn/box.cc (param_table): Likewise.
12305         * troff/input.cc (warning_table): Likewise.
12306         * libgroff/font.cc (table): Likewise.
12307         * grops/ps.cc (ps_printer::special): Likewise.
12308         * grops/psrm.cc (resource_manager::process_file): Likewise.
12309         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12310         * refer/command.cc (command_table): Likewise.
12311         * addftinfo/addftinfo.cc (param_table): Likewise.
12313         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12314         about temp's being unused.
12315         (unused): New function.
12317         * groff/pipeline.cc: Declare c_fatal.
12319         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12320         uchar.
12322         * libbib/index.cc (index_search_item::load): Prevent compiler
12323         warnings about fd_closer's being unused.
12324         (unused): New function.
12326 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12328         * troff/input.cc (copy_mode_error): Make `prefix' static.
12329         Fix typo.
12331         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12332         defined.
12333         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12334         HAVE_CC_OSFCN_H and modify accordingly.
12336         * troff/input.cc (init_charset_table): radicalex overlaps
12337         horizontally.
12339         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12340         udodo!hans@relay.NL.net).
12341         * groff/configure.in: Call it.
12343         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12344         * groff/configure.in: Call it.
12345         * include/lib.h: Conditionalize declaration of pclose.
12347         * troff/div.cc (last_page_number): New global variable.
12348         (top_level_diversion::begin_page): Exit if we just printed the
12349         last page.
12350         * troff/div.h (last_page_number): Declare it.
12351         * troff/input.cc (parse_output_page_list): Set last_page_number.
12353         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12354         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12355         tmac/tmac.X: Likewise.
12356         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12357         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12359 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12361         * tmac/doc-ditroff (hK): Remove groff specific code which
12362         prevented page-breaks between separate manual entries.  If this is
12363         the first page, don't set the page number to 1.
12365         * acgroff.m4 (GROFF_POSIX): New macro.
12366         * configure.in: Use it.
12368         * troff/node.cc (class real_output_file,
12369         real_output_file::real_output_file,
12370         real_output_file::~real_output_file): Conditionalize use of
12371         popen/pclose on POPEN_MISSING.
12372         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12373         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12374         (pipe_source): Similarily.
12376         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12378         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12379         presence of declarations by trying to compile example with
12380         conflicting declarations.  (gcc only gives a warning for missing
12381         declarations.)
12383 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12385         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12386         (from Ulrich Lauther).
12388 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12390         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12392 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12394         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12395         pointers and ints have different sizes.
12397 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12399         * tmac/tmac.s (par*env-init): Call par@reset.
12401 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12403         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12404         tag.
12405         (par*push-tag-env, par*pop-tag-env): New macros.
12407 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12409         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12410         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12412         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12413         comment.  Include <time.h>.
12415 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12417         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12418         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12419         lines.
12421 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12423         * troff/input.cc (read_request): Only print a prompt if reading
12424         from the terminal.  Also clearerr on EOF if reading from the
12425         terminal.  Declare isatty.
12427 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12429         * refer/label.y: Rename map_t to map_func and extractor_t to
12430         extractor_func.
12432 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12434         * include/assert.h: Don't use volatile.
12435         * libgroff/assert.cc: Likewise.
12437 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12439         * troff/input.cc (abort_request): Look at character in tok before
12440         calling get_copy().
12442 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12444         * troff/troff.h (NO_RETURN): Deleted.
12445         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12446         * troff/input.cc (exit_troff): Likewise
12448         * Makefile.in: Remove `Making ...' messages since GNU make now
12449         gives these. 
12451         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12453 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12455         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12456         to constant 1 inch.
12458 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12460         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12462 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12464         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12465         MARK_REG if there was no left delimiter.
12467 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12469         * pic/troff.cc (troff_output::text): Set line thickness to
12470         relative before outputting text.
12472         * tmac/tmac.e (@k): Don't zero ?T.
12473         ((z): Likewise.
12475 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12477         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12479 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12481         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12482         Paul Eggert).
12484 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12486         * troff/input.cc (ignoring): New variable.
12487         (ignore): Set ignoring during call to do_define_macro.
12488         (do_define_macro): Clear ignoring before interpolating terminating
12489         macro.
12490         (copy_mode_error): New function.
12491         (get_char_for_escape_name, read_long_escape_name,
12492         interpolate_arg): Use copy_mode_error.
12493         (warning_table): Add WARN_IG.
12494         * troff/troff.h (WARN_IG): Declare.
12495         (WARN_TOTAL): Change accordingly.
12497         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12498         * groff/groff.cc (strsignal): Delete declaration.
12500 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12502         * troff/div.cc (page_offset): Use 'm' as default scaling.
12504 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12506         * nroff/nroff.sh: Ignore -u.
12508 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12510         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12512 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12514         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12515         drawing box.
12516         (B2): With -Tascii, leave additional vertical space before
12517         and after. Ensure that the left and right indent is restored to
12518         what it was even if the point size changes.  Don't call
12519         par@finish. Change the indent, line length and title length
12520         directly.  With -Tascii, make the width of the box 1n less.
12521         (B1): Remember 1n at the current point size.  Don't call
12522         par@reset.  Change the indent, line length and title length
12523         directly.  Ensure that the temporary indent is preserved.
12524         (par*box-mark-top): Turn off no spacing mode.
12526 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12528         * Makefile.in (dist): Use .gz suffix.
12530 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12532         * troff/input.cc (main): Add return 0.
12533         * pic/main.cc (main): Use return instead of exit.
12534         * tbl/main.cc (main): Likewise.
12535         * eqn/main.cc (main): Likewise.
12536         * grops/ps.cc (main): Likewise.
12537         * grotty/tty.cc (main): Likewise.
12538         * groff/groff.cc (main): Likewise.
12539         * grodvi/dvi.cc (main): Likewise.
12540         * refer/refer.cc (main): Likewise.
12541         * indxbib/indxbib.cc (main): Likewise.
12542         * lkbib/lkbib.cc (main): Likewise.
12543         * soelim/soelim.cc (main): Likewise.
12544         * addftinfo/addftinfo.cc (main): Likewise.
12545         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12546         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12548         * troff/token.h (process_input_stack): Don't declare as static.
12549         * troff/input.cc: Likewise.
12551         * troff/node.c (invalidate_fontno): Make it a static member of
12552         class font_family.  Change callers.
12553         * troff/node.c: Change declaration.
12555         * tbl/main.cc (struct input_entry_format): Add explicit public
12556         specifier.
12557         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12558         struct double_hline_stuff): Likewise.
12559         * tbl/table.h (struct entry_format): Likewise.
12560         * pic/object.h (struct saved_state): Likewise.
12562         * include/stringclass.h: Add forward declarations of friend
12563         functions that are later declared as inline.  Don't include inline
12564         specifier in friend declaration.
12566         * libgroff/lib.h: Declare popen and pclose.
12567         * acgroff.m4 (GROFF_POPEN): New macro.
12568         * configure.in: Call it.
12570         * include/lib.h (PI): New constant. Undef first if necessary.
12571         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12572         * grops/ps.cc (degrees, radians): Likewise.
12573         * libgroff/font.cc (font::get_skew): Likewise.
12575         * grops/ps.cc (is_ascii): New function.
12576         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12577         isprint.
12578         (ps_printer::define_encoding): Use csspace.
12579         * libgroff/strtol.c (ISASCII): New macro.
12580         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12581         Use ISASCII rather than isascii.
12582         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12583         * libgroff/cset.cc: Likewise.
12584         * libdriver/input.cc: Include cset.h.
12585         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12586         than isdigit().
12588         * refer/refer.cc (main): Use %ld rather than %d for longs.
12590         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12591         S_ISREG macro.
12593         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12595 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12597         * troff/input.cc (hyphenation_code): Skip white space between
12598         char/code pairs.
12600 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12602         * tbl/table.h (table::entry_list_tailp): New member.
12603         (table::table): Initialize it.
12604         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12605         behaviour.
12607 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12609         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12610         with negative horizontal positions. Remove casts of glyph::hpos to
12611         int.
12612         (USHRT_MAX): Delete definition.
12613         (SHRT_MAX, SHRT_MIN): New definitions.
12614         (glyph::hpos): Change type to short.
12615         (tty_printer::end_page): Output multiple backspaces if necessary.
12616          Remove casts of glyph::hpos to int.
12617         
12618 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12620         * tmac/tmac.s (@RT): New definition.
12622 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12624         * refer/refer.cc (do_file): Make sure current_filename is set when
12625         filename is "-".
12627         * pic/common.cc (common_output::dot_line): Handle zero length
12628         lines.
12630 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12632         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12633         (par@init): Initialize \n[HY].
12635 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12637         * troff/dictionary.cc (dictionary::remove): Continue when
12638         r < j < i.
12640 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12642         * Makefile.com (.y.cc): Avoid ending up with two versions of
12643         $(YTABH).
12645 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12647         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12648         (\(,C): Likewise.  Also fix typo.
12650 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12652         * lib.h: Delete extraneous semi-colon.
12654         * Add pso request: `so' from a pipe.
12655         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12656         (file_iterator::close): New function.
12657         (file_iterator::~file_iterator, file_iterator::next_file): Use
12658         file_iterator::close.
12659         (file_iterator::backtrace): Say `process' rather than `file' when
12660         the stream is popened.
12661         (pipe_source): New function.
12662         (init_input_requests): Bind ".pso" to pipe_source.
12664 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12666         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12668         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12669         digits in lower case.
12671 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12673         * Version 1.08 released.
12675         * Makefile.in (dist): Insert || true after ln -s commands that
12676         might fail.
12678         * mm: Update to mm 1.16.
12680         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12681         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12682         SH_SCRIPT_SED_CMD.
12683         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12684         MDEFINES.
12685         * nroff/Makefile.sub (nroff): New target.
12686         (install_data): Install nroff.
12687         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12688         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12690 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12692         * eqn/Makefile.sub (neqn): Add chmod +x.
12694         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12696 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12698         * troff/input.cc (string_iterator::string_iterator()): Initialize
12699         lineno and count.
12701 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12703         * troff/div.cc (macro_diversion::space,
12704         top_level_diversion::space): Don't set high_water_mark.
12705         (macro_diversion::output, top_level_diversion::output): Don't
12706         include post line space in high water mark.
12708 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12710         * eqn/eqn.y: Don't define YYDEBUG.
12711         * pic/pic.y: Likewise.
12713 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12715         * tmac/tmac.e ([3): Add space after comma following editors.
12716         Change double spaces to single spaces.
12717         ([4): Change double spaces to single spaces.
12719         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12720         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12721         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12722         after %!PS-Adobe- (for Newsprint).
12724         * troff/div.cc (top_level_diversion::begin_page): When
12725         before_first_page is 1, set page_number to 1.
12727 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12729         * eqn/box.cc (box::top_level): Protect equation with \&.
12731 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12733         * groff/groff.cc (possible_command::set_name): Delete old name.
12735         * groff/groff.cc (possible_command::~possible_command): Use
12736         a_delete.
12738         * troff/node.cc (troff_output_file::begun_page): New member.
12739         (troff_output_file::troff_output_file): Initialize it.
12740         (troff_output_file::really_begin_page): Only output V command if a
12741         page has been begun.
12743         * pic/pic.y (placeless_element): Delete argument to PRINT after
12744         use.
12746 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12748         * Make wrapman work.
12749         * troff/div.h (class top_level_diversion): Replace
12750         first_page_begun by before_first_page (with opposite sense).
12751         * Change first_page_begun to before_first_page inverting sense.
12752         * troff/div.cc (class nl_reg): New class.
12753         (init_div_requests): Use class nl_reg for \n(nl.
12754         (top_level_diversion::begin_page): Don't call
12755         output_file::begin_page if before_first_page is 2;
12756         reset before_first_page afterwards.  If have_next_page_number is
12757         false, then always increment page_number.
12758         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12759         Restore compatibility mode after loading, and then disable
12760         compatibility mode in TH.
12762 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12764         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12765         past last line.
12766         * troff/node.h (output_file::trailer): Declare.
12767         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12768         * troff/node.cc (output_file::trailer): New function.
12769         (troff_output_file::~troff_output_file): Move most code into...
12770         (troff_output_file::trailer): New function.
12771         (class troff_output_file): Delete page_length member. Declare
12772         trailer().
12773         (troff_output_file::really_begin_page): Use current page length
12774         for final V command.
12776         * tbl/main.cc (struct options): New decimal_point_char member.
12777         (options::options): Initialize this.
12778         (process_options): Implement decimalpoint option.
12779         (process_data): Pass decimal_point_char option to table::table.
12780         * tbl/table.h (class table): New decimal_point_char member.
12781         (table::table): Add additional argument.
12782         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12783         second argument specifying decimal point character.  Use this
12784         instead of '.'.
12785         (table::table): Initialize decimal_point_char.
12786         (table::add_entry): Change call to find_dot.
12788         * troff/input.cc (get_copy, token::next): Implement \V.
12789         (interpolate_environment_variable): New function.
12791 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12793         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12794         * pic/pic.y: Likewise.
12796         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12797         Add casts to int.
12798         * refer/ref.cc (reference::insert_field, reference::delete_field):
12799         Likewise.
12800         * troff/number.cc (parse_term): Likewise.
12802         * acgroff.m4 (GROFF_PROG_YACC): New macro.
12803         * configure.in: Use GROFF_PROG_YACC.
12805         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12806         and g++.
12807         * Makefile.in (OPTIMIZE): New define.
12808         (DEBUG): Empty by default.
12809         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12811         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12812         (GROFF_ARRAY_DELETE): Likewise.
12813         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12815         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12817         * devps/psstrip.sed: Use different delimiter on last line (so that
12818         it works with BSD 4.4 sed.)
12820 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
12822         * devps/psstrip.sed: Delete comments.
12824         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12825         optind, opterr, optarg.
12826         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12827         opterr, optarg.
12829 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
12831         * Makefile.in (check): Dummy target.
12833 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
12835         * Version 1.07 released.
12837         * Integrate mm 1.11.
12839         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12840         where start_col was meant.
12842 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
12844         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12846 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
12848         * troff/input.cc (token::next): Make \z\o'...' and similar things
12849         work.
12851         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12852         constants.
12853         (environment): Add margin_character_flags member.
12854         * env.cc (environment::environment(symbol),
12855         environment::environment(const environment *): Initialize
12856         margin_character_flags.
12857         (margin_character): Rewrite.
12858         (environment::output_line): Add a margin character if
12859         margin_character_flags is non-zero.  Turn off the
12860         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
12861         zero, use margin_character_node without copying and then set
12862         margin_character_node to 0.
12864         * devps/DESC.in: Change minimum size to 1000.
12866 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
12868         * troff/symbol.h (symbol::hash): Change return type to unsigned
12869         long.
12870         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12871         Add casts to int.
12873         * test-groff: Use -r rather than -x.
12875         * grops/psfig.diff: Include in distribution again.
12877 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12879         * Makefile.in (dist): Use gzip.
12881 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12883         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12884         unistd.h as well as in stdlib.h.
12885         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12886         defined; otherwise include <sys/types.h> and <unistd.h> if
12887         UNISTD_H_DECLARES_GETOPT is defined.
12889         * configure.in: use builtin(include, ... rather than include(...
12890         * configure: Regenerate with autoconf 1.3.
12892         * libdriver/print.cc (printer::adjust_arc_center): Use new
12893         algorithm suggested by Andy Fyfe.
12895         * libdriver/printer.cc (printer::adjust_arc_center): New function.
12896         * include/printer.h: Declare this.
12897         * grops/ps.cc (ps_printer::draw): Use it.
12898         * grodvi/dvi.cc (dvi_printer::draw): Use it.
12900 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
12902         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12904 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
12906         * eqn/main.cc (main): Handle "eqn -".
12908 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
12910         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12912         * mm: Integrate version 1.08.
12914         * pic/troff.cc (troff_output::finish_picture): Set
12915         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12916         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12917         if it's not defined. Check whether the register is non-zero rather
12918         than whether it's not defined.
12919         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12921         * indxbib/indxbib.cc: Move all signal handling into...
12922         * indxbib/signal.c: New file.
12923         * configure.in: Call AC_RETSIGTYPE.
12925         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12926         * configure.in: Call GROFF_STRUCT_EXCEPTION.
12927         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12929         * troff/input.cc (token::token, token::operator=): Work round SGI
12930         C++ bug.
12931         * pic/object.cc (position::position): Likewise.
12933 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
12935         * pic/pic.h: Move declaration of hypot().
12937 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
12939         * pic/pic.h: Declare hypot().
12941         * pic/pic.h: Define M_PI if necessary.
12943 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
12945         * tmac/tmac.e (re): Add alternative version that doesn't use groff
12946         `.ta T' feature.
12948         * devps/prologue.ps (RE): Handle the possibility that the old font
12949         doesn't have a FontName entry.
12951 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
12953         * tmac/tmac.e (fam): Redefine to set family in environment 2.
12954         (@C): Use @fam not fam.
12956 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
12958         * lookbib/lookbib.cc (main): Change type of start to const char *.
12959         * lkbib/lkbib.cc (main): Likewise.
12961         * eqn/lex.cc (definition::definition): Don't use member
12962         initializer syntax for members of anonymous unions.
12964         * troff/input.cc (input_stack::backtrace): Change type of to const
12965         char *.
12967 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
12969         * include/stringclass.h (class string): Declare inline friend
12970         functions as inline in class declaration.
12971         * troff/hvunits.h (class hunits, class vunits): Likewise.
12972         * include/refid.h (class reference_id): Likewise
12973         * troff/troff.h (points_to_units(units), scale(units, double)):
12974         Delete declarations.
12975         * libdriver/input.cc (get_char): Delete declaration.
12976         * include/lib.h: Change 2nd argument of getopt from const char **
12977         to char **.
12978         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12979         char **' before assigning to a `const char **'.
12980         * tbl/table.cc: Delete extra declarations of prints().
12982 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
12984         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12985         char **' before assigning to a `const char **'.
12987         * libgroff/errarg.cc (errarg::errarg): Don't use member
12988         initializer syntax for members of anonymous unions.
12990 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
12992         * mm: Integrate version 1.07.
12994 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
12996         * troff/input.c (translate2): Rename to
12997         (translate_no_transparent).
12998         (init_input_requests): Rename tr2 to trnt.
13000 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13002         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13003         (charinfo::set_translation, charinfo::set_special_translation):
13004         Add second argument that specifies value for
13005         transparent_translate.
13006         (charinfo::get_translation, charinfo::get_special_translation):
13007         Add optional second argument that specifies whether translation is
13008         being used for transparent throughput.
13009         * troff/input.cc (charinfo::set_translation,
13010         charinfo::set_special_translation): Handle second argument.
13011         (charinfo::charinfo): Initialize transparent_translate.
13012         (translate): Split main part off into
13013         (do_translate): New function.  Pass argument saying whether
13014         translation applies to transparent throughput.
13015         (translate2): New request.
13016         (init_input_requests): Bind translate2 to `tr2'.
13018 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13020         * tbl/table.h (class table): Add `nokeep' flag.
13021         * tbl/main.cc (process_options): Handle `nokeep' option.
13022         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13023         table::do_bottom): Don't output keep/release macro definitions or
13024         calls when `nokeep' option has been specified.
13026 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13028         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13030 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13032         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13033         block_entry::divert, alphabetic_block_entry::divert): Add extra
13034         argument giving column separation.
13035         (table::compute_widths): Pass column separation to
13036         table_entry::divert().
13037         (block_entry::do_divert): If an entry spans multiple columns and a
13038         minimumum width has been specified for each column, then set the
13039         line length to the sum of the widths (plus possibly the column
13040         separations).
13042         * troff/input.cc (set_escape_char): Don't set the escape_char
13043         until after calling has_arg().
13045 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13047         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13048         case.
13050         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13051         in case where r > nrows - 1.
13053         * tbl/table.cc (BODY_HEIGHT): Deleted.
13054         (LINE_SEP): New definition.
13055         (table::print_single_hline, table::print_double_hline,
13056         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13057         table::do_row, table::do_top): Use LINE_SEP space before a line
13058         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13060         * tbl/table.cc (text_entry::print_contents): New function.
13061         (text_string_name, right_text_string_name): Deleted.
13062         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13063         (simple_text_entry::do_width, numeric_text_entry::do_width,
13064         alphabetic_text_entry::do_width): Don't store the contents of the
13065         entry in a string.
13066         (left_text_entry::simple_print, right_text_entry::simple_print,
13067         center_text_entry::simple_print,
13068         alphabetic_text_entry::simple_print,
13069         numeric_text_entry::simple_print): Print the entry directly
13070         instead of using the stored string.
13072 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13074         * devps/Makefile: Strip PostScript files.
13075         * devps/prologue: Rename to...
13076         * devps/prologue.ps.
13077         * devps/psstrip.sed: New file.
13078         * devps/download: Use .pfa rather than .ps for installed versions
13079         of fonts.
13081 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13083         * troff/env.cc (input_trap): Give a warning if the argument is out
13084         of range.
13086         * troff/env.cc (adjust): Treat negative argument as missing. Round
13087         argument > 5 down to 5.
13089         * troff/env.cc (center, right_justify): Make negative argument zero.
13091         * troff/div.cc (page_offset, vertical_position_traps): Treat
13092         invalid argument as missing.
13093         * troff/env.cc (line_spacing, line_length, title_length, indent,
13094         underline, hyphen_line_max_request, control_char,
13095         no_break_control_char, widow_control_request, adjust, input_trap,
13096         point_size): Likewise.
13097         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13098         constant_space): Likewise.
13099         * troff/input.cc (compatible, shift, warn_request,
13100         set_escape_char): Likewise.
13102         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13103         * tbl/table.cc (table::table): Likewise.
13105         * Makefile.dev (install_dev): depends on $(DEVFILES).
13107 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13109         * devX75, devX75-12, devX100, devX100-12: New directories.
13110         * Makefile.in: Add these to DEVDIRS.
13112         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13113         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13114         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13115         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13116         targets.
13117         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13118         (uninstall): New target.
13119         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13120         uninstall_prog, uninstall_dev): New targets.
13122         * troff/div.cc (return_request): Treat an invalid argument as
13123         missing.
13125 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13127         * tmac/tmac.e ((f): Set up the environment even when there's a
13128         current diversion.  Transperently throughput a call to @N.
13129         (@N): New macro.
13131 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13133         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13134         up to vertical resolution.
13136         * tbl/table.cc (table::do_row): Change row number after printing
13137         stuff list.
13139         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13141 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13143         * Rename CHANGES to NEWS.
13145 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13147         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13149 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13151         * man.ultrix: Removed.
13153 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13155         * Makefile.comm (extraclean): Delete files whose names begin with
13156         `='.
13158         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13159         aligned text.
13161 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13163         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13164         * troff/div.cc (page_length, need_space, space_request): Treat
13165         invalid optional argument as missing.
13166         * troff/env.cc (number_lines): If the first argument is present
13167         but not a number, turn on line numbering, don't change the next
13168         line number and parse the remaining arguments.
13170         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13172 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13174         * eqn/box.h: Change declaration accordingly.
13175         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13176         the specified size was bad but don't give an error.  Check for
13177         overflow.
13178         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13179         * eqn/lex (do_size): Likewise.
13181 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13183         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13184         compatible headers.
13186 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13188         * tbl/table.cc (table::init_output): Improve error message when
13189         table won't fit on one page.
13191 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13193         * pic/troff.cc (troff_output::start_picture): Generate line
13194         containing a horizontal motion equal to the width of the picture.
13196         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13197         using GROFF_COMMAND_PREFIX environment variable.
13199 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13201         * mdate.sh: Use $NF rather than $(NF).
13203 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13205         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13207         * eqn/main.cc (main): Output code to check that geqn was given the
13208         correct -T option.
13210 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13212         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13213         `ln -s ../Makefile .; make; rm -f Makefile'.
13215         * troff/hyphen: Rename to...
13216         * troff/hyphen.us:
13217         * troff/input.cc (main): Delete -H option. Don't call
13218         read_hyphen_file().
13219         * troff/env.cc: Include searchpath.h and macropath.h.
13220         (exception_dictionary): Deleted.
13221         (ht): Deleted.
13222         (read_hyphen_file): Deleted.
13223         (hyphenation_language): New struct.
13224         (class trie, class hyphen_trie): Move declarations up.
13225         (trie_node::~trie_node): Deleted.
13226         (trie::delete_trie_node): New function.
13227         (trie::do_delete): New pure virtual function.
13228         (hyphen_trie::do_delete): New function.
13229         (trie::~trie): New function.
13230         (hyphen_trie::~hyphen_trie): New function.
13231         (trie::clear): No need to chcek that tp is not 0.
13232         (current_language, language_dictionary): New variables.
13233         (hyphen_word): Give an error if no current language.  Use
13234         exceptions dictionary in current language.
13235         (hyphen_trie::read_patterns_file): Find file using macro_path.
13236         Allow comments (starting with %) in patterns file.  Don't make it
13237         a fatal error if the file can't be found.
13238         (hyphenate): Return if no current language.  Get the exceptions
13239         dictionary and the hyphenation patterns from the current language.
13240         (set_hyphenation_language): New variable.
13241         (hyphenation_patterns_file): New function.
13242         (hyphenation_language_reg): New class.
13243         (hyphenation_language_reg::get_string): New function.
13244         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13245         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13246         register.
13247         * groff/groff.cc (main, help, synopsis): Delete -H option.
13248         * include/Makefile.sub: Don't define HYPHENFILE.
13249         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13250         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13251         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13252         hyphenation patterns.
13254 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13256         * eqn/neqn.sh: New file.
13257         * eqn/Makefile.sub: Handle neqn.sh.
13259         * eqn/eqn.h: Declare `nroff' variable.
13260         * eqn/box.cc (param_table): Add `nroff' param.
13261         (nroff): Define it.
13262         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13263         variable.
13264         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13266         * troff/troff.h (WARN_FONT): New warning.
13267         (WARN_TOTAL): Change accordingly.
13268         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13269         (warning_table): Add WARN_FONT.
13270         * troff/node.cc (mount_font_no_translate): Pass argument to
13271         font::load_font.  If this is non-zero, give a warning.
13272         Don't give an error message when accessing a font that has already
13273         been found to be invalid.
13274         * include/font.h (font::load, font::load_font): Add additional
13275         optional argument which suppresses error message if the font is
13276         not found.
13277         * libgroff/font.cc (font::load_font): Handle additional argument.
13278         (font::load): Add additional argument. If this is non-null, set it
13279         to 1 and don't give error message.
13281         * include/printer.h (printer::end_page): Add argument giving
13282         length of page.
13283         * libdriver/input.cc (do_file): Pass this.
13284         * grops/ps.cc (ps_printer::end_page): Add argument.
13285         * grodvi/dvi.cc (dvi_printer::end_page,
13286         draw_dvi_printer::end_page): Add argument.
13287         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13288         columns_per_page members. New member nlines.
13289         (DEFAULT_LINES_PER_PAGE): Deleted.
13290         (tty_printer::tty_printer): Don't compute lines_per_page from
13291         font::paperlength. Don't compute columns_per_page from
13292         font::paperwidth.
13293         (tty_printer::add_char): Don't check horizontal position against
13294         columns_per_page. Grow glyphs vector if neccessary.
13295         (tty_printer::end_page): Add argument giving page_length in units.
13296         Discard lines past end of page.
13298 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13300         * tmac/tmac.tty-char: Fix definition of \(/l.
13302         * tmac/tmac.X: Define \(en.
13304 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13306         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13307         lpq, then use lp rather than lpr.
13309         * tmac/tmac.s (par@reset): Don't call `ad'.
13310         (par*env-init): Call `ad'.
13312 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13314         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13315         date.
13317         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13318         * indxbib/indxbib.cc: Likewise.
13320 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13322         * libgroff/putenv.c: New file.
13323         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13324         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13325         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13326         stdlib.h with AC_HAVE_HEADERS.
13328 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13330         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13331         does not exist.
13333 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13335         * eqn/box.cc (gsize): Make it an int.
13336         (set_gsize): Parse argument handling increment or decrement.
13337         (box::top_level): Convert gsize to a string.
13339         * troff/input.cc (exit_troff): Make buf unsigned char [].
13340         Call to make_temp_iterator casts buf to char*.
13342         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13344         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13345         * Makefile.cpg (depend.temp): Likewise.
13347         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13349         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13351 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13353         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13355 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13357         * Version 1.06 released.
13359         * Integrate mm 1.04.
13361 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13363         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13365 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13367         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13368         ligatures command.
13369         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13370         afmtodit. Regenerate.
13372         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13373         @f back past the current position.
13375         * tmac/tmac.e: Change calls to @R so that comments are not part of
13376         arguments.
13378 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13380         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13382         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13383         check that we can link a call to a function declared in <stdio.h>.
13384         (GROFF_UNISTD_H): New macro.
13385         * configure.in: Call it.
13386         * Makefile.in: Document it.
13387         * include/posix.h: New file.
13388         * troff/troff.h: Don't include <osfcn.h>
13389         * troff/input.cc: Include posix.h.
13390         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13391         osfcn.h.
13392         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13393         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13394         <fcntl.h>.
13395         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13396         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13397         * libbib/search.cc (O_RDONLY): Delete definition.
13398         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13399         Don't include <osfcn.h>.
13401         * acgroff.m4 (GROFF_TIME_T): New macro.
13402         * configure.in: Call it.
13403         * Makefile.in: Document it.
13405         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13406         * configure.in: Call it.
13407         * Makefile.in: Document -DTRADITIONAL_CPP.
13408         * include/ptable.h: Don't include generic.h.
13409         (name2): Define it.
13411         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13412         Afterwards remove [T1 and [T2.
13413         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13414         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13415         (ref*add-T2): Renamed from ref*add-T.
13416         (ref*add-T1): New macro.
13418 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13420         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13422         * libbib/index.cc: Include <fcntl.h>.
13423         (O_RDONLY): Define if necessary.
13424         (make_index_search_item, index_search_item_iterator::get_tag,
13425         index_search_item::check_files): Use O_RDONLY.
13426         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13427         (O_RDONLY): Define if necessary.
13428         (search_list::add_file): Use O_RDONLY.
13429         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13430         <sys/stat.h>.
13431         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13432         (main): Use these.
13434         * libbib/index.cc (S_ISREG): Define it if necessary.
13435         (index_search_item::load): Use S_ISREG.
13437         * include/driver.h: Include <errno.h>.
13439 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13441         * eqn/box.cc (body_height): Increase default value to 85.
13442         (body_depth): Increase default value to 35.
13444 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13446         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13447         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13448         protected from expansion with \E.
13450         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13452         * Makefile (Makefile): New target.
13454         * Makefile.sub (configure, distfiles): New targets.
13456         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13457         construct.
13459 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13461         * eqn/box.cc (param_table): Add body_height and body_depth.
13463         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13465 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13467         * psbb/Makefile.sub: Don't link with libgroff.a.
13469         * acgroff.m4 (GROFF_PUTENV): New macro.
13470         * configure.in: Call GROFF_PUTENV.
13471         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13472         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13473         is defined.
13475         * troff/env.cc (distribute_space): Rename force_forward argument
13476         to force_reverse.  Reverse the list if force_reverse is true.
13478 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13480         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13482         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13483         height or depth to be negative.  Guard against SUP_RAISE quantity
13484         being negative.
13486 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13488         * devps/generate/textmap: Add `an' (arrowhorizex).
13489         * tmac/tmac.ps: \(an overlaps horizontally.
13490         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13492         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13493         * devps/textmap: Add arrowvertex.
13494         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13495         updownarrow delimiters.
13496         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13498         * tbl/table.cc (simple_entry::position_vertically,
13499         block_entry::position_vertically):  For a centered entry, perform
13500         the motion in two stages.
13502         * refer/refer.cc (split_punct): Don't call lookup_token if there
13503         is no token.
13505 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13507         * troff/input.cc (token::next): Delete token_node after copying
13508         token.
13510         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13511         cur_point_size.
13513         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13515         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13517 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13519         * grops/ps.cc (usage): -b option takes an argument.
13521         * devps/prologue (PLG): New procedure.
13522         * grops/ps.cc (main, usage): New -g option.
13523         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13524         length using PLG.
13526 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13528         * include/cset.h: Include <limits.h> if we have it.
13530         * libgroff/illegal.cc: New file.
13531         * include/lib.h (illegal_input_char): Use table.
13532         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13533         * pic/lex.cc (ARG1): Renumber to 14.
13534         * eqn/lex.cc (ARG1): Likewise.
13536         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13537         (eg 1.05.90) correctly.
13539 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13541         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13542         Rename $r and $R registers to $v and $V.
13543         ($r, $R): Initialize to 0.
13544         (@v, @V): New macros.
13545         (sz): Call @v.
13546         (@M): Call @V.
13548         * troff/input.cc (main, usage): Add -R option that says not to
13549         load troffrc.
13550         * eqn/main.cc (main, usage): Rename -n to -R.
13552 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13554         * devps/DESC.in: Leave font positions 5-9 blank.
13555         * devdvi/DESC.in: Likewise.
13557         * grog/grog.pl: Handle `.PS <file' correctly.
13559         * troff/input.cc (input_stack::push): Improve error message when
13560         input stack limit exceeded.
13562 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13564         * refer/refer.cc (main): Fix typo in handling of `a' option.
13566         * refer/refer.cc (do_bib): In state START after a newline remain
13567         in state START.
13569         * groff/groff.sh: Deleted.
13570         * groff/Makefile.sub: Delete handling of groff.sh.
13572         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13573         to determine whether to use \X'ps:...'.
13574         * tmac/troffrc: Set 0p register to 0.
13575         * tmac/tmac.ps: Set 0p register to 1.
13577         * groff/groff.cc: Support -X option. Give warning for -TXps and
13578         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13579         * tmac/troffrc: Support -r.X=1.
13581         * pic/troff.cc (troff_output::dot): Don't test
13582         zero_length_line_flag.
13584 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13586         * include/lib.h: Declare getopt() and friends unless
13587         STDLIB_H_DECLARES_GETOPT is defined.
13589         * doc/chars.tr: Delete.
13590         * man/groff_char.man: New file.
13592 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13594         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13595         user has changed register format.
13597 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13599         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13600         `postpro' command in DESC file.  Get spooler command from `print'
13601         command in DESC file.  Execute spooler command with /bin/sh.
13603         * groff/groff.cc: Split Unix-specific parts into...
13604         * groff/pipeline.c: New file.
13606         * LICENSE: Delete.
13607         * COPYING: New file.
13608         * all files: Update copyright notices.
13610         * Rearrange files.  Redo Makefiles.  Use autoconf.
13612 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13614         * troff/input.c (charinfo_to_node_list): Interpret character
13615         definition with escape_char of `\'.
13617 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13619         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13620         Define INT_DIGITS as big enough for 64-bit integer.
13621         * lib/strtol.c: Don't include lib.h.
13622         * lib/lib.h: Delete ifdef __cplusplus stuff.
13624 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13626         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13627         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13628         get DESC from current directory.
13630 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13632         * tbl/main.c (main): Always reset the line number when reading
13633         from stdin.
13635         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13636         table::define_bottom_macro, table::do_row, table::do_top): Round
13637         vertical spacing up to vertical resolution.
13639 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13641         * ps/ps.h (enum resource_type): Avoid comma at end of
13642         enumerator-list.
13643         * dvi/dvi.c (class dvi_printer): Likewise.
13644         * dvi/tfmtodit.c (gf::load): Likewise.
13645         * refer/label.y (struct expression): Likewise.
13646         * refer/refer.c (class label_processing_state): Likewise.
13647         * refer/indxbib.c (do_file): Likewise.
13648         * troff/troff.c (enum warning_type): Likewise.
13649         * tbl/main.c (process_data): Likewise.
13650         * troff/charinfo.h (class charinfo):
13652 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13654         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13656 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13658         * groff.c: Move to new groff subdirectory.
13659         * groff/Makefile: New file.
13660         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13662         * man/mdate.sh: Use ls -L if supported.
13664         * Consolidate all header files produced by gendef into lib/defs.h.
13665         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13666         Don't include path.h.
13667         * lib/Makefile (path.h): Don't generate.
13668         * troff/input.c: Include defs.h. Don't include config.h.
13669         * troff/Makefile (config.h): Don't generate.
13670         * refer/index.h: Don't include suffix.h.
13671         * refer/index.c: Include defs.h.
13672         * refer/indxbib.c: Include defs.h.
13673         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13674         defs.h.
13675         * refer/Makefile (suffix.h, path.h): Don't generate.
13676         * groff.c: Don't include config.h. Include defs.h.
13677         * Makefile (config.h): Don't generate.
13678         (lib/defs.h): Generate.
13679         (topclean): Remove lib/defs.h.
13681 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13683         * lib/malloc.c, lib/getpagesize.h: Deleted.
13684         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13685         related stuff.
13686         * lib/Makefile: Delete malloc-related stuff.
13687         * lib/new.c: Workaround COOKIE_BUG if necessary.
13689         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13690         needed header files directly.
13691         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13692         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13694 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13696         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13697         argument.
13698         * lib/font (font::load_desc, font::load): Don't split argument of
13699         unknown command.
13700         (font::handle_unknown_font_command): Change type.
13701         * ps/ps.c (ps_font::handle_unknown_font_command,
13702         handle_unknown_desc_command): Change type.
13703         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13705 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13707         * lib/font.h (font::handle_unknown_font_command): Add file and
13708         line arguments.
13709         * lib/font.c (font::handle_unknown_font_command):
13710         * ps/ps.c (ps_font::handle_unknown_font_command):
13711         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13712         lineno arguments.  Use _with_file_and_line functions for error
13713         reporting.
13715         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13716         data member.
13717         * lib/font.c (font::set_unknown_desc_command_handler): New
13718         function.
13719         (font::load_desc): For unknown commands, call
13720         unknown_desc_command_handler if not null.
13721         * lib/font.h (class font): Declare them.
13722         (FONT_COMMAND_HANDLER): New typedef.
13723         * ps/ps.c (handle_unknown_desc_command): New function.
13724         (main): Set bflag if we had a -b option. Call
13725         font::set_unknown_desc_command_handler.
13726         (broken.h): Don't include.
13727         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13728         submake 
13729         * ps/devps/Makefile: Add `broken' command to DESC file using
13730         BROKEN_SPOOLER_FLAGS.
13732         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13734         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13736         * macros/tmac.e (@R, @S): New macros.
13737         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13738         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13739         Declare $H, $[0-9], .. macros with @S.
13740         Declare |0, |1, |2, |3 strings with @S.
13742         * macros/tmac.e (@S): Rename to @U.
13744         * macros/tmac.e (@z): Define @b and bp as empty instead of
13745         deleting them,
13747         * macros/tmac.e (@m): Deleted.
13748         (@h): Don't call @m.
13749         (@z): Don't set @m trap.
13751         * macros/tmac.e ($h, $f): Define |z as empty string.
13753         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13754         (@q): Likewise.
13756         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13757         removing them.
13758         ()f): Likewise for * register.
13760         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13761         argument is missing, don't change $R.  Call sr with three
13762         arguments when initializing.
13764 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13766         * macros/tmac.e (sr): New macro.
13767         Initialize $r and $R using sr.
13769         * macros/tmac.e (,): Delete \*(#[.
13771         * troff/env.c (set_tabs): Read the tab type even if the position
13772         is bad.  Allow the position of the first tab stop to be negative.
13774 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13776         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13777         _POSIX_VERSION.
13778         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13779         rather than -DPATHCONF_MISSING.
13780         * Makefile: Get rid of PATHCONF_MISSING.
13782         * refer/map.c: New file.
13783         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13784         to map_len.
13785         * refer/Makefile: Handle map.c.
13786         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13788 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13790         * Makefile: RANLIB should be `true' if there is no ranlib.
13791         * lib/Makefile (libgroff.a): Simplify.
13792         * driver/Makefile (libdriver.a): Simplify.
13794         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13795         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
13796         defined.
13798 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
13800         * troff/env.c (compare_ranges): Declare as extern "C".
13802         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13804         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13806 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
13808         * pic/troff.c (troff_output::text): Merge in grops_output::text,
13809         but conditionalize use of \X based on \*(.T.
13810         (grops_output::*): Deleted.
13811         * pic/output.h: Delete declaration of make_grops_output.
13812         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
13813         by default. -n sets it to 0.
13814         (usage): Corresponding changes.
13815         * groff.c (main): Don't pass -x or -p to pic.
13816         * groff.sh: Likewise.
13818         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13819         to be non-zero.
13821         * ps/devps/afmtodit: Change calculation of asc_boundary and
13822         desc_boundary.  Make these bounds inclusive.
13823         * ps/devps: Regenerate font files.
13825 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
13827         * macros/tmac.latin1: New file.
13828         * macros/tmac.tty-char: Use tmac.latin1.
13829         (tmac.tty-tr): Deleted.
13830         * macros/Makefile: Install tmac.latin1.
13831         * macros/tmac.dvi: Use tmac.latin1.
13832         * macros/troffrc: Translate \[char160] onto no-break space here.
13833         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13835 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
13837         * macros/tmac.Xps: Use `do' request.
13839         * macros/tmac.ps: Use `do' request.
13841         * macros/tmac.e (@C): Use `do' request.
13843         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13844         * macros/Makefile: Install tmac.X*.
13846         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13847         * tty/Makefile: Don't install tmac.tty*.
13848         * macros/Makefile: Install tmac.tty*.
13850         * dvi/tmac.dvi: Move to macros.
13851         * dvi/Makefile: Don't install tmac.dvi.
13852         * macros/Makefile: Install tmac.dvi.
13854         * ps/tmac.ps*: Move to macros.
13855         * ps/Makefile: Don't install tmac.ps*.
13856         * macros/Makefile: Install tmac.ps*.
13858         * eqn/box.c: Provide draw_lines parameter corresponding to -D
13859         option.
13860         * macros/eqnrc: Set draw_lines parameter based on device.
13861         * groff.c: Don't pass -D flag to eqn.
13862         * groff.sh: Likewise.
13863         * eqn/main.c: Warn about use of -D.
13865         * troff/input.c (process_startup_file): New function.
13866         (main): Call process_startup_file().
13867         * macros/troffrc: New file.
13868         * macros/Makefile: Install troffrc.
13869         * groff.c (main): Don't pass extra -m option to troff. For a 
13870         pseudo device pass the name of the pseudo device to troff using
13871         -d.
13872         * groff.sh: Likewise.
13873         * groff.c (possible_command::prepend_arg): Deleted.
13875         * troff/input.c (do_request): New function.
13876         (init_input_requests): Bind "do" to do_request.
13878         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13879         load eqnrc from macro directory.
13880         * macros/eqnrc: New file.
13881         * macros/Makefile: Install eqnrc.
13882         * ps/devps/eqnchar: Deleted.
13883         * ps/devps/Makefile: Don't install eqnchar.
13884         * dvi/devdvi/eqnchar: Deleted.
13885         * dvi/devdvi/Makefile: Don't install eqnchar.
13886         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13887         variable optM.
13889         * lib/device.[ch]: New files.
13890         * lib/font.h (font::set_device_name, font::get_device_name):
13891         Deleted.
13892         * lib/fontfile.c: Use device.h.
13893         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13894         * troff/input.c: Delete definition of `device'.
13895         (main): Don't initialize device.
13896         * troff/troff.h: Include device.h rather than declaring device.
13897         * troff/Makefile: No need to handle DEVICE.
13898         * driver/input.c: Include device.h. Don't use
13899         font::{set,get}_device_name.
13900         * groff.c, Makefile: Rename device.h to config.h.
13901         * groff.c: Use library device variable.
13902         * eqn/main.c: Use library device variable.
13903         * eqn/Makefile: No need to handle DEVICE.
13905         * lib/searchpath.[ch]: New files.
13906         * lib/Makefile: Handle searchpath.[ch].
13907         * troff/input.c (open_file, init_dirs): Deleted.
13908         (macro_dirs): Deleted.
13909         (open_mac_file, macro_source): Use class search_path.
13910         (add_string, struct string_list): Move definition.
13911         (main): Change -M option to use macro_path. Delete call to
13912         init_dirs().
13913         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13914         Rewrite to use class search_path.
13915         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13916         * lib/Makefile: fontfile.c depends on searchpath.h.
13917         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13918         MACROPATH.
13919         * lib/macropath.[ch]: New files.
13920         * troff/Makefile: No need to handle MACROPATH.
13922         * troff/input.c: Delete DUMP code.
13923         * lib/fontfile.c, lib/font.h: Delete
13924         font::forget_command_line_font_dirs.
13926         * troff/input.c (push_token): New function.
13927         (handle_first_page_transition): Use push_token().
13928         (process_input_stack): Change handling of a space at the beginning
13929         of the line.
13931 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
13933         * troff/input.c (font_dirs): Delete unused variable.
13935         * eqn/lex.c (do_set): Correct error messages.
13937 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
13939         * troff/input.c (do_define_string): Allow the string name to be
13940         followed immediately by a tab.
13941         (define_character): Likewise.
13943 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
13945         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13946         be negative.
13948         * troff/input.c (input_iterator::is_file): New virtual function.
13949         (file_iterator::is_file): New function.
13950         (input_stack::end_file): New function.
13951         (input_stack::next_file): Handle the situation where there is no
13952         file on the input stack correctly.  Avoid making two passes over
13953         the input stack.
13954         (next_file): Make the filename optional; in this case call
13955         input_stack::end_file().
13957 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
13959         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13960         produce a real _ charater when the current font is CW and _
13961         otherwise.
13963         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13964         expression to work around gcc 2.2 bug.
13966 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
13968         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13970         * troff/env.c (environment::add_padding): New function.
13971         (environment::add_char): Use add_padding().
13972         (environment::space): Likewise.
13973         (environment::wrap_up_field): Add some padding if there is none
13974         and there's no current tab.
13975         * troff/env.h: Declare environment::add_padding.
13977 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
13979         * pic/pic.y: undef fmod and rand before declaring them.
13981 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
13983         * troff/input.c (main): If the DESC file specifies a font name of
13984         0, then leave the corresponding font position empty.
13986         * nroff.sh: New file.
13987         * Makefile (install.nobin): Install nroff.sh.
13989         * tty/devlatin1/R.proto: Add ao as synonym for de.
13990         * tty/tmac.tty-char: Define ao as o.
13992         * tty/dev{ascii,latin1}/R.proto: Add aq.
13993         * tty/tmac.tty-char: Delete definition of aq.
13995 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
13997         * troff/input.c (init_charset_table): Don't translate 0240.
13998         * ps/tmac.ps: Translate char160 to space.
13999         * dvi/tmac.dvi: Likewise.
14000         * tty/tmac.tty: Likewise.
14002 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14004         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14006         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14007         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14008         \(oe, \(r?, \(r!.
14010         * tty/tmac.tty-char: Add \(ah.
14012         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14013         No need to define \(FM and \(!/. Conditionalize all character
14014         definitions.
14016         * ps/devps/lgreekmap: Add +h, +f, +p.
14018         * ps/tmac.psnew: New file.
14019         * ps/Makefile: Install tmac.psnew.
14021         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14022         character definitions in compatible mode.
14024         * troff/input.c (remove_character): New function.
14025         (init_input_requests): Bind remove_character to "rchar".
14027         * ps/tmac.psold: New file.
14028         * ps/Makefile: Install tmac.psold.
14029         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14030         characters into tmac.psold.  Make these definitions unconditional.
14032         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14034         * ps/tmac.ps: Don't define \('c and \('C.
14036         * ps/devps/textmap: Move Greek characters to...
14037         * ps/devps/symbolchars:
14039 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14041         * ps/devps/text.enc: Add quotesingle.
14042         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14043         * tty/tmac.tty-char: Likewise.
14044         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14045         * dvi/devdvi/texi.map: Add Fn.
14046         * dvi/devdvi/msam.map: Add lz.
14047         * dvi/tmac.dvi: Handle Bq, bq, aq.
14049         * pic/lex.c (get_token): Recognize 'th.
14050         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14052 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14054         * ps/devps/textmap: Move di, mu, +- to...
14055         * ps/devps/symbolchars:
14057         * macros/tmac.s (@XS): Don't call par@reset or fi.
14058         (XA): Call LP. Turn off adjustment. Reduce line length.
14060         * macros/tmac.s: Initially alias XS to LP.
14061         (XS): Rename to @XS.
14062         (cov*ab-init): Alias XS to @XS.
14064 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14066         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14067         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14068         (token::is_size, token::changes_env): Deleted.
14069         * troff/number.c (parse_term): No need to process \s explicitly.
14070         Call tok.next() only after scale indicator has been processed.
14071         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14072         \f etc explicitly.
14073         (token::next): Handle \s, \f, \S, \H immediately rather than
14074         returning them as tokens.
14075         (token::operator==, token::description, token::add_to_node_list,
14076         token::process): Remove handling of deleted tokens.
14078         * troff/env.c (environment::add_char): When adding padding
14079         indicator character, call start_line() if necessary.
14081 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14083         * ps/devps/afmtodit: Don't output 0 kerns.
14085         * ps/devps/afmtodit: Remove directory from name of encoding in
14086         font description file.
14088         * ps/devps/afmtodit: Improve error messages.
14090         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14092         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14093         * ps/devps/FontMakefile: Deleted.
14094         * ps/devps/afmname: New file.
14096         * ps/devps/symbol.sed: New file.
14097         * ps/devps/symbol.diff: Deleted.
14098         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14099         Generate zapfdr.afm from zapfd.afm.
14101         * tty/tmac.tty (tty-char): Prefix definition with ".
14103         * macros/tmac.an (TP): Don't start a diversion if one has already
14104         been started.
14106         * tty/tmac.tty-char: Add Latin-1 characters.
14108         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14110 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14112         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14113         Move declaration of struct horizontal_span.
14115         * tbl/table.c (table::table): Initialize span_list.
14116         (table::~table): Delete span_list.
14118         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14120         * ps/devps/Makefile: Avoid dependency on GNU make.
14122         * ps/tmac.ps: Check that character does not already exist before
14123         defining it.
14125         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14126         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14127         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14128         files.
14130         * tty/tmac.tty-char: New file.
14131         * tty/Makefile: Install tmac.tty-char.
14132         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14133         tmac.tty-char.
14135         * tty/tmac.tty: Fix definition of \(34.
14137         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14138         bracket-drawing characters onto |. Add *o.
14140         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14141         only if current_field.
14143         * troff/dictionary.c (dictionary::lookup): Free old_table after
14144         rehashing. 
14146 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14148         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14149         whose glyphs are identical to glyphs of some Roman character.
14151         * tty/devlatin1/R.proto (bu): Deleted.
14152         * tty/devascii/R.proto (bu): Deleted.
14153         * tty/tmac.tty: Add definition of \(bu.
14155         * eqn/main.c (do_file): Pass FILE as argument.
14156         (main): Automatically load eqnchar.  New options -F and -n.
14157         Pass do_file an opened FILE.
14158         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14159         No need to include font.h.
14160         * groff.sh: Likewise.  Don't need to use - for standard input.
14161         Prefix files with -- if first file starts with -.
14163         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14165         * troff/env.c (environment::possibly_break_line): Don't set line
14166         to 0 across call to output_line().  Don't call output_line() until
14167         after discarding nodes after break.
14169 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14171         * request.h (macro::empty): Declare it.
14172         * input.c (macro::empty): New method.
14173         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14174         macro is empty.
14176 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14178         * troff/env.c (environment::start_field): Decrement space_total
14179         when a space is frozen.
14181 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14183         * macros/tmac.an (R): Delete macro.
14185         * troff/input.c (get_copy, token::next): Support \# (like \" but
14186         newline is ignored).
14188         * troff/input.c (token::next): Fix error message in 'Y' case.
14190 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14192         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14193         a delimiter name.
14195 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14197         * c++test.c: Include <osfcn.h>.
14199         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14200         <errno.h> doesn't.
14202 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14204         * tbl/table.c (table::divide_span): Don't count column separation
14205         if expand was specified.
14207         * tbl/main.c (process_format): Don't ignore width specs in
14208         continued format.  Give warning for changing equal widths or
14209         column separation in continued format.
14210         (process_data): Set column separation, minimum width, equal
14211         columns at end of table.
14213 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14215         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14216         node::add_discretionary_hyphen): Use soft_hyphen_char.
14217         (set_soft_hyphen_char): New function.
14218         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14220         * Makefile (c++tested): Give more helpful message if test fails.
14222 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14224         * troff/input.c (init_charset_table): Translate 0240 to
14225         an unbreakable space.
14227         * troff/token.h (token::hyphen_indicator): New function.
14228         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14229         translation.
14230         * troff/input.c (translate): Allow translation to \%.
14231         * troff/node.c (node::add_char): Handle
14232         TRANSLATE_HYPHEN_INDICATOR.     
14233         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14235         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14236         for \(hy.
14238         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14240 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14242         * groff.c (run_commands): If the last command gets a SIGPIPE send
14243         a SIGPIPE to all children than haven't yet terminated.  When
14244         command terminates, set pid field to -1.
14246 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14248         * groff.c (main): Pass an appropriate -filename option to gxditview.
14250 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14252         * Makefile.bd (install): Remove existing program before copying.
14254         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14255         programs which have Unix counterparts to be installed with
14256         user-specified prefix.
14258         * troff/input.c (exit_troff): Don't check if exit_started.
14259         (exit_request): Don't call exit_troff if exit_started.
14261         * Makefile.bd (install.mm): Rename to install.dwbmm.
14263 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14265         * driver/input.c (do_file): Add missing break for '#' case.
14267 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14269         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14270         then add the boundaries back.
14272         * troff/input.c (exit_troff): Return immediately if already
14273         exiting.
14275         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14276         end macro.
14277         (pg*end-page): If the text has ended and there are no more
14278         footnotes or keeps, exit.
14280         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14282         * troff/input.c (init_charset_table): Make \(rq transparent by
14283         default.
14285         * macros/tmac.an: Define lq and rq strings.
14287         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14289 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14291         * troff/env.c (environment::final_break): New function.
14292         (environment::newline): Set prev_line_interrupted to 2 if
14293         exit_started.
14294         * troff/env.h: Declare environment::final_break.
14295         * troff/input.c (exit_troff): Call environment::final_break()
14296         instead of environment::do_break().
14298         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14299         doesn't already exist.
14300         * macros/man.local: New file.
14301         * macros/tmac.an: Load man.local.
14302         * macros/man.ultrix: New file.
14304 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14306         * troff/input.c (exit_groff): Rename to...
14307         (exit_troff): New function.
14309         * troff/div.c (exit_started, done_end_macro,
14310         seen_last_page_ejector): New global variables.
14311         (began_page_in_end_macro): New static variable.
14312         (exit_flag): Deleted.
14313         (top_level_diversion::top_level_diversion): Initialize
14314         last_page_count.
14315         (top_level_diversion): More elaborate test for whether
14316         cleanup_and_exit() should be called.
14317         Set began_page_in_end_macro if the end macro isn't yet finished.
14318         * troff/div.h (top_level_diversion::last_page_count): New data
14319         member.
14320         (top_level_diversion::set_last_page): New function.
14321         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14322         * troff/env.c (do_break): Zero prev_line_interrupted.
14323         * troff/input.c (exit_flag): Delete declaration.
14324         (LAST_PAGE_EJECTOR): New magic cookie.
14325         (token::next): Handle LAST_PAGE_EJECTOR.
14326         (exit_groff): Set exit_started and done_end_macro instead of
14327         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14328         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14329         another ejection after setting seen_last_page_ejector.
14331 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14333         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14335         * macros/tmac.e (TH): Make sure there's room for the initial
14336         header.
14338         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14339         Set FVS in points rather than units.
14341 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14343         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14344         position of empty slots.
14346 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14348         * ps/devps/S: Fix height and depth of parenrightex.
14349         * ps/devps/symbol.diff: Regenerate.
14351 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14353         * tmac.e (u): Do underlining as in -mgs.
14355 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14357         * tty/tty.c (tty_printer::end_page): If overstriking is
14358         suppressed, still turn overstruck horizontal and vertical lines
14359         into +.
14361         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14362         2.1.
14364         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14366 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14368         * Version 1.05 released.
14370 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14372         * tty/tty.c: Instead of keeping an array of glyphs and then
14373         sorting it, keep a ordered linked list of glyphs for each line.
14375         * driver/driver.h: Include stddef.h.
14377         * tty/tty.c (compare_glyph):
14378         * refer/refer.c (rcompare):
14379         * troff/env.c (compare_ranges): Arguments of qsort comparison
14380         function should be const void *.
14382         * troff/number.c (parse_term):
14383         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14384         switch statement.
14386         * refer/label.y (consider_authors): Don't access variables
14387         constructed under a condition outside that condition: put braces
14388         round for statement containing declaration; redeclare use of same
14389         variable later.
14391         * pic/pic.y (text_expr): Delete production that allows
14392         parenthesised text_expr.
14393         (expr): Allow a conditional_expr to appear in parentheses.
14394         (conditional_expr): Rename to any_expr.
14396         * mm: Install new version 1.01 from jh.
14398         * lib/font.c (font::get_width): Cache scaled widths.
14399         (font::font): Initialize widths_cache.
14400         (font::~font): Destroy widths_cache.
14401         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14403 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14405         * c++test.c, c++test.ref: New files.
14406         * Makefile: Check that the C++ compiler works.
14408         * ps/tmac.pspic (PSPIC): Do a break.
14410         * ps/tmac.ps: Move definition of PSPIC into...
14411         * ps/tmac.pspic: New file.
14412         (PSPIC): Draw box around picture, but make it invisible to grops.
14413         * ps/tmac.ps: Load tmac.pspic.
14414         * ps/Makefile: Install tmac.pspic.
14416 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14418         * lib/font.c (scale_round): If n is negative,
14419         subtract .5 before truncating floating point result.
14421         * lib/fontfile.c: Include <errno.h>.
14423 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14425         * driver/input.c (get_char): Inline. Don't update current_lineno.
14426         Change callers to up date current_lineno if necessary.
14427         Use get_char() instead of getc(current_file).
14429 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14431         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14433 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14435         * tty/tty.c (tmac.tty): Define \(rg as (R).
14437 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14439         * lib/lib.h: New define a_delete.
14440         * Use a_delete instead of delete when deleting an array of objects
14441         without destructors.
14443         * lib/lib.h: Rename adelete to ad_delete.
14444         * Change uses of adelete.
14446 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14448         * eqn/eqn.y: Include lib.h.
14450         * troff/node.c (grow_font_table): Delete old_font_table.
14452         * mm: Install new version from jh.
14454 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14456         * tbl/table.h (format_type): Make global instead of local to class
14457         entry_format.  Prefix enumerators with FORMAT_.
14458         * tbl/table.c, tbl/main.c: Corresponding changes.
14459         * refer/token.h (token_type): Make global.  Prefix enumerators
14460         with TOKEN_.
14461         * refer/token.[ch]: Corresponding changes.
14462         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14464         * troff/div.c (node::set_vertical_size): Don't name argument.
14466 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14468         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14469         * lib/lib.h: Define adelete accordingly.
14470         * pic/object.c (graphic_object::graphic_object):
14471         * tbl/main.c (format::~format):
14472         * tbl/table.c (table::~table):
14473         * refer/ref.c (reference::~reference, reference::merge,
14474         reference::insert_field, reference::delete_field): Use adelete.
14476         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14477         * refer/token.h:
14478         * tbl/table.h: Corresponding changes.
14480         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14481         Ensure total_angle is positive.
14483 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14485         * refer/ref.c (reference::merge, reference::insert_field,
14486         reference::delete_field): Avoid delete[0].
14488         * refer/token.c (init_special_chars): Move calls to cmupper
14489         outside calls to init_two_char_letter to work around bug in gcc
14490         2.0.
14492 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14494         * lib/new.c (operator new): Use __builtin_new for g++.
14496         * pic/object.c (graphic_object::~graphic_object):  Don't use
14497         delete [] on 0.
14499         * pic/object.c (output::compute_scale): Initialize max_width and
14500         max_height.
14502 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14504         * troff/input.c (write_request): Call fflush.
14506         * troff/node.h (class composite_node): Move declaration to node.c
14507         * troff/input.c (charinfo_to_node): Rename to ...
14508         (charinfo_to_node_list): Return node list rather than composite
14509         node.
14510         * troff/node.c (make_composite_node): New function.
14511         (make_node, add_char): Call make_composite_node instead of
14512         charinfo_to_node.
14513         (class composite_node): Add a tfont * member.  Delete font_size
14514         member.
14515         (composite_node::composite_node, composite_node::copy,
14516         composite_node::size): Corresponding changes.
14517         (composite_node::tprint): Provide constant spacing, emboldening
14518         and track kerning as specified in tfont.
14519         (composite_node::width): Change width calculation accordingly.
14520         * troff/env.h (environment::composite): New member.
14521         (environment::is_composite, environment::set_composite): New
14522         functions.
14523         * troff/env.c (environment::environment): Initialize composite.
14524         * troff/input.c (charinfo_to_node): Call
14525         environment::set_composite.
14526         * troff/node.c (make_composite_node, make_glyph_node): Use the
14527         plain version of the tfont if the environment is composite.
14529         * troff/node.c (font_info::get_space_width): Additional argument
14530         giving space_size.  Handle constant space correctly. Scale by
14531         space_size unless constant spaced.
14532         (env_sentence_space_width): New function.
14533         * troff/node.h: Declare it.
14534         * troff/env.h (environment::get_space_size,
14535         environment::get_sentence_space_size,
14536         environment::get_narrow_space_width,
14537         environment::get_half_narrow_space_width): Make inline.
14538         (environment::get_space_width): Make inline.  Just call
14539         env_space_width.
14540         * troff/env.c: Delete definitions for funtions made inline.
14541         (environment::space_newline, environment::space): Use
14542         env_sentence_space_width(). Don't scale by space_size.
14543         * troff/node.h: Move declarations of env*space_width() functions
14544         into env.h.
14546 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14548         * macros/tmac.s (PS): Don't try to set negative indent.
14550 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14552         * pic/pic.y: Fix min function.
14554 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14556         * man/mdate.sh: Clear LANGUAGE.
14558 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14560         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14561         * pic/lex.c: New COMMAND keyword.
14562         * pic/pic.y (print_args, print_arg): New rules.
14563         (placeless_element): Use print_args for PRINT.
14564         New COMMAND element.
14566 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14568         * troff/input.c (terminal): Handle missing argument correctly.
14570         * pic/pic.y (text_expr): New rule.
14572         * pic/pic.y: Implement := operator.
14574 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14576         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14577         mdoc.
14579 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14581         * ps/devps/dingbatsrmap: Include this in the distribution.
14583         * macros/tmac.doc: Replace with new version from 2nd Networking
14584         Release. Fix loading of doc-* files.
14585         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14586         * macros/tmac.doc.old: New file.  Apply fixes that had been
14587         applied to old tmac.doc.
14588         * macros/tmac.andoc: Check that we're running under groff.
14589         * macros/Makefile: Rework.
14591 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14593         * tbl/table.h (format_type): 
14594         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14595         typedef to make these types visible at file scope.
14596         * Makefile: Add NESTED_TYPES configuration option.
14598         * troff/div.c (mark): At the top level use the value of
14599         nl_reg_contents rather than the current vertical position.
14601 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14603         * tty/tty.c: Implement \D for horizontal or vertical lines.
14604         (tty_printer::set_char): Use vec_used+2 as serial number.
14605         Don't allow size of vector to exceed USHRT_MAX-2.
14606         Split off part into...
14607         (tty_printer::add_char): New function.
14608         (tty_printer::draw): New function.
14609         (compare_glyph): Handle equal serial numbers.
14610         (tty_printer::end_page): Handle overstruck characters from \D.
14611         (main, usage): Implement -d option.
14613 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14615         * tbl/main.c (process_format):
14616         * eqn/text.c (split_text):
14617         * troff/input.c (token::next): Use inner block for declarations
14618         with initializers in switch statement.
14620 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14622         * pic/common.c (common_output::dash_line): Cope with zero-length
14623         lines.
14625 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14627         * Version 1.04 released.
14629 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14631         * macros/tmac.an (TH): Define a macro an-init to define variables
14632         based on command line arguments.
14633         (an-header): Call it.
14635 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14637         * Makefile (install.mm): Rename to install.dwbmm.
14639         * Makefile: Integrate mm.
14640         * mm: New directory.
14642 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14644         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14645         <sys/types.h>.
14647         * pic/troff.c (troff_output::simple_spline,
14648         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14649         shadowing parameter.
14651         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14653         * lib/ptable.h: Add explicit casts when converting from unsigned
14654         long to unsigned.
14656         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14657         * dvi/devdvi/Makefile: Install SA, SB.
14659         * refer/indxbib.c: Add declaration of mktemp.
14661         * refer/lookbib.c: Add declaration of isatty.
14663 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14665         * pic/lex.c (interpolate_macro_with_args):  While collecting
14666         arguments, keep track of whether we're in a string.
14668 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14670         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14671         down with \v, so as to avoid problems with top of page trap
14672         setting no space mode.
14674 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14676         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14678 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14680         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14681         Improve error message.
14683 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14685         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14686         printf("%03o");
14688 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14690         * groff.c (possible_command::execp): Always use _exit() after a
14691         failed exec.
14693         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14694         NO_SYS_WAIT_H   configuration options.
14695         * groff.c: Use these options.  Use POSIX-style macros to extract
14696         fields from the status returned by wait().
14698 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14700         * tbl/table.c (table::compute_separation_factor): Allow the
14701         separation factor to drop to 0.
14703 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14705         * refer/search.c: Include <errno.h>.
14707 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14709         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14711         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14712         C++. 
14714         * pic/lex.c (input_stack::bol): Move definition out of class body.
14716         * pic/main.c: On MSDOS munge argv[0].
14718         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14720         * lib/ptable.c (hash_string): Use unsigned long rather than
14721         unsigned.
14722         (next_ptable_size): Use unsigned rather than int.  Give an error
14723         message if we've hit the largest table size.
14724         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14725         table size.
14727         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14728         flags as const unisgned long rather than as enums.
14730         * pic/output.c: Deleted.
14732         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14734         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14735         Add additional argument.
14736         (line_entry::note_double_vrule_on_{left,right}): Set value of
14737         douvle_vrule_on_{right,left} flag according to argument.
14738         (simple_line_entry::simple_print,
14739         simple_line_entry::double_line_print): If adjacent to double vrule
14740         on a corner extend rather than shorten the rule by half the double
14741         vrule sep.
14743         * troff/number.c (parse_term): In checking for overflow, handle the
14744         case where the current horizontal position is negative.
14746 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14748         * pic/object.c (draw_arrow): Check for object having zero length.
14750 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14752         * eqn/main.c (do_file): Split off inline equation handling into...
14753         (inline_equation): New function.  Search for starting delimiter
14754         using...
14755         (delim_search): New function. Don't recognize a delimiter that
14756         occurs in the name of an escape sequence, number register, string
14757         etc.
14759 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14761         * eqn/delim.c (delim_box::compute_metrics): Don't call
14762         define_extensible_string if left is 0.
14763         (delim_box::output):  Don't print the left delimiter if left is 0.
14764         (delim_box::debug_print): Check for left == 0 before calling printf.
14766 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14768         * troff/Makefile (majorminor.c): Include only digits in
14769         minor_version.
14771 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14773         * refer/dirnamemax.c: new file.
14774         * refer/genlimits.c: Deleted.
14775         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14776         Don't check path length.
14777         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14778         * Makefile: Add PATHCONF_MISSING option.
14780         * refer/indxbib.c (get_cwd): New function.
14781         (main): Use get_cwd().
14782         * lib/getcwd.c: New file.
14783         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14784         GETCWD in SUBFLAGS.
14785         * lib/Makefile: Compile getcwd.o.
14787         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14788         userdict.
14790         * refer/indxbib.c (main): Check success of mktemp.
14792         * lib/tmpfile.c: New file.
14793         * lib/Makefile: Add tmpfile.c.
14794         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14795         * ps/ps.h: Delete declaration of mktemp().
14796         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14797         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14798         * driver/driver.h: No need now to include errno.h.
14800         * everywhere: Set errno to 0 before calling fopen().
14802         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14803         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14804         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14806 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
14808         * troff/env.h (translate_space_to_dummy): Declare it.
14809         * troff/env.c (environment::space_newline, environment::space):
14810         If translate_space_to_dummy is set then make the width of spaces 0.
14811         * troff/input.c (translate): If the second character of a
14812         translation is a space, translate to unbreakable space.  If the
14813         first character is a space, set or clear translate_space_to_dummy
14814         according to whether the second character is \&.  Weird!
14816 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
14818         * groff.c (run_commands): Don't use non-zero exit code because a
14819         command gets SIGPIPE.
14821         * groff.c, groff.sh: Use -mXps with -TXps.
14823         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14824         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14825         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14826         (ps_printer::special): New specials invis and endinvis.
14827         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14828         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
14829         (ps_printer::end_page): Check that invis_count == 0.
14830         (ps_printer::invis_count): New member.
14831         (ps_printer::ps_printer): Initialize invis_count to 0.
14833         * troff/env.c (environment::hyphenate_line): Hyphenation
14834         indicator at beginning of word inhibits splitting after -, \(em
14835         etc.
14837         * pic/pic.y (element): Allow another element to follow } without
14838         any intervening separator.
14840 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
14842         * pic/lex.c (get_delimited): Allow tabs before delimiter.
14844 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
14846         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
14847         declaration of wait() in header files.
14848         * Makefile: Get rid of -DHAVE_UNION_WAIT.
14850         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14852         * lib/lib.h: Declare return type of strerror as char *.
14854         * man/Makefile: Add g flag to sed substitutions.
14855         * Makefile (shgroff, bindist): Likewise.
14857 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
14859         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14860         * ps/devps/prologue (PBEGIN): Define showpage after pushing
14861         userdict.
14863 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
14865         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14866         userdict.
14868 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14870         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14871         group.
14873 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14875         * troff/input.c (define_number_reg):  If currently undefined,
14876         don't define it if the argument is an invalid expression.
14878         * Makefile: Ignore return value of `if' commands without `else'
14879         parts.
14881         * Makefile: Split up CPPDEFINES into a series of separate
14882         configuration options.
14884         * troff/input.c (init_registers): Use time_t instead of long
14885         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14886         than passing pointer.
14887         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14889         * lib/Makefile (fontpath.h): Use gendef.
14891 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
14893         * troff/input.c (input_iterator::shift): Delete argument name.
14894         * troff/node.c (suppress_output_file::really_begin_page,
14895         suppress_output_file::really_transparent_char, node::ascii_print,
14896         node::tprint): Delete names of unused arguments.
14898 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
14900         * refer/label.y (string):  Pass $4 to command_error.
14902 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
14904         * Version 1.03 released.
14906 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
14908         * Makefile: Pass definition of SHELL in SUBFLAGS.
14910         * gendef: New file.
14911         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14912         ps/Makefile: Use gendef to construct header files that are
14913         constructed from the Makefile.
14915         * macros/Makefile: make all should build stripped version of tmac.e.
14917         * refer/Makefile (clean): Remove y.output.
14919 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
14921         * ps/pfbtops.c (main): Add -v option which prints out a version
14922         number.
14923         * ps/Makefile (pfbtops): Link with libgroff.a.
14925 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
14927         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14928         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14930         * refer/lkbib.c (main): Always terminate reference with blank
14931         line.
14932         * refer/lookbib.c (main): Likewise.
14934         * refer/linear.c (file_buffer::load): Check that the file is not a
14935         binary file.
14937         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14938         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14939         Delete second inclusion of <sys/param.h>.
14941 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
14943         * troff/token.h (token::special): Deleted.
14945         * tbl/main.c (process_format): Rework so that opt->tab_char is
14946         recognized only when appropriate.
14948         * ps/Makefile (clean): Remove pfbtops.
14950 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
14952         * lib/font.c (text_file::next): Don't return if we have got a
14953         blank line.
14955 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
14957         * refer/refer.c (store_reference): Get hash code from old_table[i]
14958         when rehashing the table.
14960 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
14962         * eqn/box.c (box::top_level): Save size and prev size using \R and
14963         restore it afterwards. Set the size to the size at the beginning
14964         of the line.
14965         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14966         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14968         * refer/Makefile (limits.h): Use ./genlimits.
14970 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
14972         * refer/index.c: Delete declarations of stat() and fstat().
14974 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
14976         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14978 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
14980         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14982 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
14984         * troff/input.c (token::get_char): Handle \e.
14986         * refer/linear.c: Delete declarations of fstat() and stat().
14988 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
14990         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14991         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14993 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
14995         * troff/input.c (do_define_macro): Improve error handling for end
14996         of file while defining macro.
14998 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15000         * eqn/box.h: Fix declaration of set_gsize.
15001         * eqn/box.c (set_gsize): Make argument const char *.
15002         (gsize): Declare as char *.
15003         * eqn/main.c (main): Don't convert gsize to int.
15004         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15006         * Version 1.02 released.
15008 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15010         * macros/tmac.andoc: New file.
15011         * macros/Makefile: Install tmac.andoc.
15013         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15014         operator new and delete on OP_DELETE_BROKEN not being defined.
15015         * Makefile: Mention OP_DELETE_BROKEN.
15017 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15019         * Makefile (bindist): Pass SUBFLAGS.
15021 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15023         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15025         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15026         parameter.
15028         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15030         * ps/ps.h, ps/psrm.c: Make comment_table and
15031         header_comment_table local to resource_manager::process_file.
15033         * groff.sh: With -TXps pass -printCommand option to gxditview.
15035         * groff.c (possible_command::print): Implement using
15036         append_arg_to_string.
15038         * xditview: Merge in new implementation with own ChangeLog.
15040 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15042         * groff.c (main): Implement PRINT_OPTION.
15043         (append_arg_to_string): New command.
15044         (device_table): Set PRINT_OPTION flag for Xps.
15046 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15048         * troff/groff.h: Rename to troff.h.
15050         * pic/lex.c (lookup_keyword, docmp): New functions.
15051         (get_token): Use new lookup_keyword.
15052         Don't include key.h.
15053         * pic/key.[ch], pic/pic.gperf: Deleted.
15054         * pic/Makefile: Remove gperf stuff.
15056         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15057         into output.h.
15058         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15060         * troff/Makefile, troff/node.c: Move definition of
15061         STORE_WIDTH into node.c.
15063         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15065 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15067         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15068         dvi/devdvi/texb.map: Add lq and rq.
15069         dvi/devdvi: Regenerate fonts.
15070         * ps/devps/textmap: Add lq and rq.
15071         * ps/devps: Regenerate fonts.
15072         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15073         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15075         * pic/object.c (position_rectangle): When checking radius
15076         cope with possiblity that width or height is negative.
15077         (box_object::box_object): Have separate xrad and yrad with
15078         signs matching signs of dim components.
15079         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15080         (box_object::print): With rounded boxes use absolute values
15081         for dim and rad arguments.
15083         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15084         in fontpath.h.
15086         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15088         * various files: Add explicit destructors to keep Saber CC +d
15089         happy.
15091 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15093         * eqn/box.c (box::top_level): Restore fonts correctly after
15094         font changes in line containing inline equation.  Also
15095         restore previous font as well as current font.
15096         * eqn/pbox.h: Define necessary string and register names.
15098         * troff/input.c (token::next): Case 'R' calls do_register.
15099         (do_register): New function.
15101 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15103         * groff.c, groff.sh: Support Xps device.  Allow each device
15104         to have a pseudo_name and a real_name.
15106         * groff.c (run_commands): Don't print `Broken pipe' messages.
15108         * ps/pfbtops.c: New file.
15109         * ps/Makefile: Add pfbtops.
15111         * troff/number.c (parse_term): Improved error message.
15113 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15115         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15117         * Makefile: Integrate refer.
15118         * refer: New directory.
15119         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15120         man/lkbib.man: New files.
15121         * man/Makefile: Support refer man pages.
15123         * lib/lib.h: Declare is_prime.
15124         * lib/prime.c: New file.
15126         * troff/input.c (macro_source): New function.
15127         (init_input_requests): Bind "mso" to macro_source.
15129         * troff/env.c (environment::possibly_break_line): Maintain
15130         pointer to pointer to node to be split in ndp so as to avoid
15131         using address of freed node.
15133         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15134         pointer to first node to be hyphenated in startp so as to
15135         avoid using address of freed node.
15137         * troff/env.c (class trie, class hyphen_trie): Make the
15138         elements of the trie be of type char not unsigned char.
15139         Declare arguments to be const char* instead of unsigned char *.
15140         
15141         * troff/env.c (hyphenate): Initialize hbuf[0].
15143         * troff/input.c (set_string): Declare p to be char * and cast
15144         *p to unsigned char when necessary.
15146         * troff/input.c (do_define_macro): Declare s to be const
15147         char*. Cast element to unisgned char when necessary, Declare
15148         d to be an int.  Handle EOF better.
15150         * troff/Makefile, troff/input.c: Different scheme for passing
15151         definitions of MACROPATH, HYPHENFILE and DEVICE.
15153 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15155         * tty/devascii/R.proto: Delete entry for em.
15156         * tty/devlatin1/R.proto: Likewise.
15158 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15160         * troff/input.c (translate): Stop when we get a space. Treat eof
15161         like newline.
15163         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15165 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15167         * tbl/main.c (process_format): A font name following a `f'
15168         modifier that starts with a digit can be only one character long.
15169         Also deal with EOF on the second character of the font name.
15171 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15173         * troff/input.c (token::next): Turn \~ into an
15174         unbreakable_space_node.
15175         * troff/node.c (unbreakable_space_node): New class.
15176         * troff/node.h: Declare it.
15178 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15180         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15181         it's >= 0, before outputting it as a single byte.
15183 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15185         * lib/font.c: Make font_char_metric::code an int.
15186         (font::get_code): Change return type to int.
15187         (font::load): Allow code to be arbitrary integer.
15188         * lib/font.h (font::get_code): Change return type to int.
15189         (font::number_to_index): Change argument type to int.
15190         * troff/input.c (token::next):  In case 'N', allow any value.
15191         Store value in token::val.
15192         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15193         (token::get_char, token::add_to_node_list, token::process): Get
15194         number from val.
15195         (charinfo::set_number): Change argument to int.
15196         (charinfo::get_number):  Require that NUMBERED flag be set.
15197         (get_charinfo_by_number): Store numbered characters not between 0
15198         and 255 in a dictionary.
15199         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15200         to int.
15201         (charinfo::number): Change type to int.
15202         (charinfo::set_number): Change type of set_number to int.
15203         * troff/node.c (troff_output_file::put_char_width,
15204         troff_output_file::put_char): Test whether character is numbered
15205         using charinfo::numbered().
15206         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15207         values of num.
15208         * lib/nametoindex.c: New implementation to cope with arbitrary
15209         number characters.
15211         * troff/input.c (token::operator==): Test val for
15212         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15213         TOKEN_SIZE.
15215         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15216         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15218 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15220         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15221         variable.
15223         * all Makefiles: rm targets of cp and >.
15225         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15226         it.
15228         * eqn/lex.c (def_table): Add dollar.
15230 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15232         * troff/input.c (do_width): Push back newline before closing delim
15233         like do_bracket.
15235 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15237         * groff.c (possible_command::prepend_arg): New function.
15238         (main): Prepend device -m option.
15239         * groff.sh: Put device -m options before command-line options.
15241 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15243         * macros/tmac.an (IP): Quote argument to TP.
15245         * ps/ps.c (main): New option -b, which sets...
15246         (broken_flags): New variable.
15247         (ps_printer::~ps_printer): Incorporate the setup section in the
15248         prolog if (broken_flags & NO_SETUP_SECTION).
15249         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15250         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15251         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15252         ps_printer::print_needed_font_comment,
15253         ps_printer::print_supplied_font_comment,
15254         ps_printer::print_include_font_comments,
15255         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15256         ps_printer::read_download_file, read_document_fonts, add_font,
15257         skip_line, parse_fonts_arg, document_font::document_font,
15258         document_font::~document_font, document_font::download,
15259         ps_output::include_file):  Deleted.
15260         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15261         rather than %!PS-Adobe-2.0.  Make calls to
15262         resource_manager::need_font for each font that we used. Replace
15263         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15264         print_supplied_font_comment, print_needed_font_comment by call to
15265         resource_manager::print_header_comments. Output %%Orientation
15266         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15267         Don't output the prolog directly.  Instead call
15268         resource_manager::output_prolog.  Only define #copies when ncopies
15269         > 1.  Delete calls to print_include_font_comments  and
15270         download_fonts.  Add call to resource_manager::document_setup.
15271         (ps_printer::do_file): Call resource_manager::import_file instead
15272         of including it ourselves.
15273         (ps_printer::do_import): Likewise.  Also don't call
15274         merge_import_fonts. Push userdict on the dictionary stack before
15275         and pop it afterwards.
15276         Move declaration of ps_output into ps.h.
15277         * ps/psrm.c: New file implementing resource_manager class.
15278         * ps/ps.h: New file declaring ps_output and resource_manager
15279         classes.
15280         * ps/devps/zapfdr.ps:
15281         * ps/devps/symbolsl.ps:
15282         * ps/devps/prologue:  Use 3.0 conventions.
15283         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15284         Add default definition of BROKEN_SPOOLER_FLAGS.
15285         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15286         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15288 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15290         * etc/grog.pl: New file.
15291         * Makefile (GROG): New variable.
15292         Add GROG to SUBFLAGS.
15293         * etc/Makefile (GROG): New variable.
15294         (install.nobin): Install $(GROG) rather than grog.sh.
15296 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15298         * eqn/special.c (special_box::compute_metrics): Make the input and
15299         output strings the same.  Get the new height and depth from the
15300         predefined height and depth registers.  Also make subscript kern
15301         and skew available.
15302         (special_box::compute_subscript_kern, special_box::compute_skew):
15303         New functions.
15305         * eqn/box.c (pointer_box::compute_skew,
15306         simple_box::compute_metrics, box::top_level)
15307         * eqn/text.c (prime_box::compute_metrics,
15308         prime_box::comput_subscript_kern)
15309         * eqn/limit.c (limit_box::compute_metrics):
15310         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15311         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15312         negative numbers in `nr' requests with a leading 0.
15314 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15316         * eqn/special.c: New file.
15317         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15318         Add new rule for simple.
15319         * eqn/lex.c (token_table): Add SPECIAL.
15320         * eqn/box.h: Declare make_special_box.
15321         * eqn/Makefile: Add special.[co].
15323 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15325         * ps/devps/prologue: Possibly set packing to true while defining.
15326         Create grops dictionary here.  Initialize local variables before
15327         defining procedures.
15328         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15329         the dictionary stack. Set strokeadjust and overprint to false if
15330         the relevant operators are defined.
15331         (PEND): New procedure.
15332         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15333         prologue.  Do everything else in the setup section.
15334         (ps_printer::do_import): Just call PBEGIN and PEND around the
15335         picture. Also push userdict before, and pop it afterwards.
15337 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15339         * troff/node.c (bracket_node::tprint): Brackets were being printed
15340         1m too low.
15342         * macros/tmac.an (SH, SS): Set fill mode.
15344 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15346         * troff/div.c (top_level_diversion::begin_page): Set
15347         high_water_mark to 0.
15349 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15351         * man/mdate.sh: New file.
15352         * man/mdate.c: Deleted.
15353         * man/Makefile: Use mdate.sh instead of mdate.
15354         (mdate): Deleted.
15356         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15358 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15360         * man/mdate.c: New file.
15361         * man/*.man: Replace modification date by @MDATE@.
15362         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15363         (mdate): New target.
15365         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15366         Remove illegal input characters.
15368 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15370         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15372 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15374         * troff/div.c (begin_page): Change behaviour when
15375         !first_page_begun and !break_flag.
15377         * troff/input.c (do_name_test): Return 0 if argument is empty.
15379         * troff/input.c (read_long_escape_name): Require closing ] to be
15380         at same input level as opening [.
15382         * troff/input.c (read_increment_and_escape_name): New function.
15383         (get_copy, process_input_stack): Use this for \n.
15385 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15387         * troff/div.c (top_level_diversion::begin_page): Ignore the
15388         current value of page_number if !first_page_begun.
15390         * groff.c (main): Fix declaration of buf.
15392         * troff/input.c (do_name_test): New function.
15393         (token::next): Implement \A.
15394         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15395         (token::description, token::add_to_node_list, token::process):
15396         Handle TOKEN_ESCAPE.
15397         * troff/token.h: New token TOKEN_ESCAPE.
15399 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15401         * pic/main.c (do_picture): Allow space before and after filename
15402         following `<'.  Check that the filename is not empty.
15404 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15406         * Version 1.01 released. 
15408         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15410         * dvi/tmac.dvi: ftr HR to H.
15412         * macros/tmac.e: Round up computation of $r.
15414         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15415         Use \n(.s instead of \n[.s].
15417         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15418         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15419         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15420         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15421         short names in the char definitions.
15423         * ps/tmac.ps: Don't give up completely in compatibility mode.
15424         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15425         quote in front of \n(.s. Add u to factors inside \s[...].
15427 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15429         * tty/tmac.tty: Call the nroff request.
15431         * macros/tmac.e ((x, )x):  Better definitions that work properly
15432         in a diversion.
15433         (@0, @1): Helper macros for (x.
15435         * macros/tmac.e ($s, hl): Use \l rather than \D.
15437         * tty/tmac.tty: Make it work better in compatibility mode.
15438         (pchar): Rename to tty-char.
15440         * macros/tmac.e (@E): New macro.
15441         (r, i, b, rb, bi): Use @E.
15443         * macros/tmac.e (@F): Don't use (;...) syntax.
15445         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15446         it was modified for groff.
15448         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15450         * macros/tmac.e (<., .>): Removed.
15451         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15453         * macros/tmac.e: Remove check that groff is being used.
15455         * macros/tmac.e (@C): Change families only if using groff; turn
15456         compatibility mode off while changing familes. Save compatibility
15457         mode before changing families and restore it afterwards.
15459         * macros/tmac.e (@h): Remove test for offset + line length.
15461         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15462         (lo, th, ac): Define to call @S instead of using als.
15464         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15465         the ratio of the vertical spacing to the point size in units
15466         expressed as a percentage.  Use these instead of $10r and $10R,
15467         Delete $10r and $10R.
15469         * lib/font.c (font::load): In default computation of space_width,
15470         divide by sizescale.  Use scale_round.
15472         * macros/tmac.an (TP): Don't call `nf'.
15473         (an-do-tag): Don't call `fi'.
15475 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15477         * troff/input.c (process_input_stack): Handle the case where
15478         spaces at the beginning of an input line are followed by a
15479         newline.
15481 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15483         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15484         * groff.sh: Use pic -x with the dvi device.
15486         * dvi/devdvi/FontMakefile (H): Don't use -s.
15488         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15489         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15490         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15491         in FONTS.
15493 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15495         * ps/psfig.diff: New file.
15496         * ps/tmac.psfig: New file.
15498 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15500         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15501         (]-): Don't call ref*do-tl.
15503         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15505         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15506         (fn@do-FS): Rename to fn*do-FS.
15508         * troff/input.c (transparent_translate): New function.
15509         (process_input_stack): Apply transparent_translate before calling
15510         diversion::transparent_output(unsigned char).
15512 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15514         * troff/input.c (do_define_macro): Define the macro before calling
15515         skip_line.
15517         * xditview/Makefile: Add DEVICES variable.  Change install target
15518         to use this.
15520 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15522         * groff.c (run_commands): Handle the possibility that there are
15523         child processes other than those forked by us.
15525 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15527         * lib/string.c (string::append): New function.
15528         * lib/stringclass.h: Declare it.
15530 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15532         * eqn/main.c (main): New option -N which sets
15533         no_newline_in_delim_flag. 
15534         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15535         in delimiters.
15536         * groff.c (main): Pass -N on to eqn.
15537         (help, synopsis): Mention -N.
15538         * groff.sh: Implement -N.
15540 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15542         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15543         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15544         (XP): Allow as initializer.
15546 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15548         * troff/env.c (environment::wrap_up_field): If field_spaces are
15549         non-zero and we have a current_tab, subtract padding from
15550         tab_distance.  If this makes tab_distance <= 0, use the next tab
15551         stop instead.  If there isn't any next tab or it's a left tab,
15552         wrap up the current tab.
15553         (environment::start_field): Initialize tab_precedes_field.
15554         (environment::wrap_up_tab): If there's a current field, update
15555         pre_field_width, field_distance and tab_precedes_field.
15556         * troff/env.h (environment::tab_precedes_field): New member.
15558 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15560         * ps/ps.c (ps_printer::do_file): New function.
15561         (ps_printer::special): Bind to `file' special.
15562         (ps_printer::do_exec): Set ndefined_styles to 0.
15564 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15566         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15567         Avoid stripping first character from the start of unrecognized
15568         escapes.  Use lex_error instead of error to report errors.
15569         * eqn/lex.c (get_token): Rework handling of escapes.
15570         (lex_error): Move declaration into...
15571         * eqn/eqn.h.
15573         * xditview/xditview.c (main): Make -page option work.
15575         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15577 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15579         * macros/tmac.s (B2): Correct size of box.
15581 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15583         * macros/tmac.s (B2): Postpone drawing the box until in the
15584         top-level diversion.
15586         * tty/tmac.tty: Add font translations for C, CR, CW.
15588         * groff.c (synopsis, help): Document -i.
15589         * groff.sh: Implement -i.
15591         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15592         Simplify the construction of SN.
15594         * troff/number.c (parse_term): Give `|' a higher precedence.
15595         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15596         accordingly.
15598         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15600 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15602         * lib/string.c (string::move): New function.
15603         * lib/stringclass.h: Declare it.
15605 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15607         * troff/env.c (distribute_space): Add optional argument
15608         `force_forward'.
15609         (environment::wrap_up_field): Call distribute_space with
15610         `force_forward' argument of 1.
15612 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15614         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15615         Inline it.  Move reallocation into...
15616         (string::grow1): New function.
15617         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15618         dependencies to include library header files.
15619         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15621 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15623         * macros/tmac.s (@NH): Use the same number registers than -ms does
15624         for the heading level counters.  Use the same string that -ms does
15625         for the number for this heading.
15627 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15629         * lib/new.c (operator new): Cast result of malloc to char *.
15631         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15632         is not null.
15634 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15636         * groff.c (main): Support -i.
15638 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15640         * pic/pic.h: Include <osfcn.h>.
15642         * ps/ps.c: Add declaration of mktemp.
15644         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15645         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15646         argument as union wait *.
15647         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15648         argument to union wait *.
15650 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15652         * tty/tmac.tty: Add definition of \(co.
15654         * pic/object.c (make_arc): Only increase radius when radius
15655         strictly less than d.
15656         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15657         more than once.
15659         * troff/env.c (environment::environment(symbol),
15660         environment::environment(const environment *)):  Initialize
15661         input_trap_count.
15663 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15665         * tbl/main.c (main): Add exit(0).
15667         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15669         * pic/main.c (main):
15670         * eqn/main.c (main):
15671         * tbl/main.c (main):
15672         * etc/soelim.c (main):
15673         * driver/printer.c (printer::~printer):
15674         * troff/node.c (real_output_file::~real_output_file,
15675         real_output_file::flush):  Check for errors on stdout.
15677         * most files: Add 1991 to copyright notice.
15679         * macros/tmac.s: Don't test \n(.x and \n(.y.
15681         * troff/input.c (token::next): Rename `escape_char' label to
15682         `handle_escape_char' and `normal_char' label to
15683         `handle_normal_char'.
15685 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15687         * groff.c (main, synopsis, help): Support -a option.
15688         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15689         to trflags while parsing options.
15691 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15693         * troff/number.c (parse_term): With `m', `M' and `n' scale
15694         indicators, convert scale factor to hunits before scaling.
15696 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15698         * lib/font.c (scale_round): Better test for overflow when n is
15699         negative.
15701 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15703         * tbl/main.c (process_format): Add second argument of type
15704         options*. Change callers.  Allow opt->tab_char as well as '\t'
15705         between format items.
15707 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15709         * macros/tmac.an (PD): With no arguments, make sure register PD is
15710         at least \n[.V].
15711         (TH): Call PD with no argument, instead of setting register PD
15712         directly.
15714 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15716         * Version 1.00 released.
15718 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15720         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15722         * dvi/devdvi/DESC: Mount CW instead of CR.
15724         * dvi/tmac.dvi: Add definition of \(tm.
15726         * dvi/devdvi/texsy.map: Add lh, and rh.
15727         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15728         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15730         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15731         * dvi/devdvi/Makefile: Install H.
15732         * dvi/devdvi/H: New file.
15734 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15736         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15737         be 0.
15739 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15741         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15743         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15745         * macros/tmac.s (@EN): Handle the case where the equation is empty
15746         but the label is not.
15748 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15750         * troff/groff.h: New warning category WARN_SPACE.
15751         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15752         WARN_SPACE to warning_table.
15753         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15754         is longer than two characters and is not defined, but the first
15755         two characters do make a defined name.
15757         * PROBLEMS: New file.
15759         * CHANGES: New file.
15760         * README-0.6, README-1.00: Deleted.
15762         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15763         * xditview/devX75/Makefile: Make devX75-12.
15764         * xditview/devX100/Makefile: Make devX100-12.
15766         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15767         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15769 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15771         * README-0.7: Rename to README-1.00.
15773         * macros/tmac.pic: New file.
15774         * macros/Makefile (install.nobin): Install tmac.pic.
15776 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15778         * troff/env.c (hyphen_word): Correct the test for whether the
15779         token is a hyphen.  Reset npos to 0.
15781         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15783 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15785         * macros/tmac.s (ds*common-end): Call par*reset.
15786         (PE): Likewise.
15787         (par@reset-indent): Deleted.
15789         * macros/tmac.s (@IP): Divert the label.
15791 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15793         * xditview/draw.c (setGC): Use a line width of .1m rather than
15794         .04m by default; round rather than truncate value.
15796         * tbl/table.c (class empty_entry): New class.
15797         (empty_entry::empty_entry, empty_entry::line_type): New functions.
15798         (table::add_entry): Represent empty entries by objects of type
15799         empty_entry.
15800         (table_entry::line_type): Return -1.
15801         (table::determine_row_type): Ignore entries with line_type 0.
15802         Treat type -1 as non-lines.
15804 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
15806         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15807         macros/tmac.s: Rename \(-d to \(Sd.
15809 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
15811         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15812         * xditview/libXdvi/DviChar.c: Likewise.
15813         * dvi/devdvi/texsy.map: Add `<<', `>>'.
15815 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
15817         * troff/div.c (top_level_diversion::begin_page): Call
15818         init_output() if the_output is 0.
15820 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
15822         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15823         ESCAPE_c.
15824         (get_copy): Turn \E into ESCAPE_E.
15825         (token::process, asciify): Handle ESCAPE_E.
15827         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15828         (RD): New macro.
15829         (DS): Implement `.DS R'.
15831 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
15833         * macros/tmac.s (FS): New macro.
15835         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15837         * macros/tmac.s (cov*tl-init): Remove after first execution
15838         instead of aliasing to @nop.  Call top of page macro explicitly
15839         instead of setting trap; call @init first.  Set pg@top as top of
15840         page macro.
15841         (cov*auto-init): Deleted.  Set cov*tl-init instead of
15842         cov*auto-init as top of page trap. 
15843         (TL, LP): Do a break instead of calling cov*tl-init.
15844         (cov*print): With RP format but no TL, alias FS and FE to @FS and
15845         @FE; in this case also give a warning and always start another
15846         page. No need to set pg@top here.
15847         (cov*tl-init): Rename to cov*first-page-init.
15849         * macros/tmac.s (RP): Do `.pn 0'.
15850         (cov*tl-init): With RP format don't do `.pn 0'.
15852         * macros/tmac.s (pg@cs-top): Set no space mode.
15854         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15855         (cov*ab-init): Alias TL, AU and AI to these.
15857 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
15859         * macros/tmac.s (@EQ): Move the space before the equation into @EN
15860         (@EN): Do nothing unless \n[dl] is > 0.
15862 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
15864         * pic/object.c (ellipse_object::radius): New function.
15866         * VERSION: Change version to 0.7.
15868         * tbl/table.c (block_entry::do_divert): Declare return type as
15869         void.
15870         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15872 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15874         * troff/column.c: New file.
15875         * troff/Makefile: Corresponding changes.
15877         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15878         Friend of vunits.
15880         * troff/div.c (top_level_diversion::space): If the space causes
15881         the first-page transition and springs a trap, truncate the space
15882         to 0.
15884 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15886         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15887         the document.
15889         * pic/troff.c (troff_output::line_thickness,
15890         troff_output::set_fill): Do a horizontal motion to compensate for
15891         the width of the \D escape sequence.
15893 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
15895         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15896         (not X75).
15898         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
15899         to printf.
15901         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15902         Supply empty definition.
15903         (text_entry::simple_print, simple_text_entry::simple_print):
15904         Delete declarations.
15905         (table::add_entry): Represent empty entries by objects of type
15906         `simple_entry'.
15908 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
15910         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15912         * tbl/table.c (left_text_entry::add_tab): New function.
15914         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
15915         initialize like LP.
15917 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
15919         * troff/env.c (environment::start_field): Give an error message if
15920         there is no next tab.
15922 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
15924         * troff/env.c (hyphenate): Skip initial elements with zero
15925         hyphenation code.
15927         * macros/tmac.s (par@init): Keep VS in points rather than units.
15929 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
15931         * pic/main.c (main): Implement `-c' option.
15932         * pic/output.h: Declare make_tpic_output().
15933         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15934         protected.
15935         (tpic_output): New class.
15936         (tpic_output::tpic_output, tpic_output::set_pen_size,
15937         tpic_output::command, make_tpic_output): New functions.
15939 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
15941         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
15942         if they're not already defined.
15943         * tbl/table.c (init_output): Don't test \n(.g.
15945         * troff/input.c (do_if_request): Delete `g' condition. Recognize
15946         `d', `r' and `c' conditions even in compatibility mode.
15948 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
15950         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15951         box.
15953 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
15955         * troff/env.h (environment::prev_line_interrupted): New member.
15956         (environment::get_prev_line_interrupted): New function.
15957         * troff/env.c (environment::newline): Set prev_line_interrupted.
15958         (environment::environment(const environment *),
15959         environment::environment(symbol)): Initialize
15960         prev_line_interrupted.
15961         * troff/input.c (process_input_stack): Don't give special
15962         treatment to space and newline at the beginning of the line if the
15963         previous line was interrupted.
15965 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
15967         * eqn/eqn.y: Disallow PRIME by itself.
15968         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15969         PRIME.
15970         (def_table): Remove definition of '.  Define prime to be `.
15972         * eqn/eqn.y: Split off part of rule `script' into a new rule
15973         `nonsup'.
15975 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
15977         * macros/tmac.s ({, }): New string aliases.
15979 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
15981         * README-0.7: New file.
15983 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
15985         * macros/tmac.s: New file.
15986         * man/groff_ms.man: New file.
15987         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15988         * Makefile.bd: Similarily.
15989         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15990         definition of TMAC_S.
15991         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15992         * macros/TODO: New file.
15994 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
15996         * troff/env.c (right_justify): New function.
15997         (init_env_requests): Bind this to request "rj".
15998         (center_lines): Set right_justify_lines to 0. If we get a bad
15999         integer, center 1 line.
16000         (environment::environment(symbol), environment::environment(const
16001         environment *)): Initialize right_justify_lines.
16002         (environment::get_right_justify_lines): New function.
16003         (init_env_requests): Bind this to number_register ".rj".
16005         * troff/env.c (environment::choose_breakpoint): Implement
16006         hyphenation_margin and hyphenation_space.
16007         (environment::get_hyphenation_space,
16008         environment::get_hyphenation_margin): New functions.
16009         (init_env_requests): Bind these to .hys and .hym.
16010         (hyphenation_space_request, hyphenation_margin_request): New
16011         functions
16012         (init_env_requests): Bind these to hys and hym.
16013         (environment::environment(symbol), environment::environment(const
16014         environment *)): Initialize hyphenation_margin and
16015         hyphenation_space.
16016         * troff/env.h: Corresponding changes to class environment.
16018 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16020         * troff/div.c (blank_line): Always do a break.
16022         * eqn/box.c (do_text): Turn off escapes while appending text to
16023         string.
16025 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16027         * troff/input.c (while_break_request, while_continue_request): New
16028         functions.
16029         (init_input_requests): Bind these to "break" and "continue".
16030         (while_depth, while_break_flag): New variables.
16031         (while_request): Update while_depth.  Break out of loop if
16032         while_break_flag is set.
16034 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16036         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16037         rather than 0.
16039 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16041         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16043         * stringify: New file.
16044         * Makefile (groff.o): Use stringify.
16046         * xditview/tmac.X: Remove definition of \(rn.
16047         * xditview/libXdvi/DviChar.c: Remove radicalex from
16048         Adobe_symbol_map.
16050 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16052         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16053         (alphabetic_block_entry::alphabetic_block_entry,
16054         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16055         New functions.
16056         (block_entry::divert): Split off body into ...
16057         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16058         from the line length; also update the span width to dl+2n, and the
16059         alphabetic span width to dl.
16061         * driver/input.c (do_file):  While reading argument to D command,
16062         when expanding buffer, multiply szp by sizeof(int) rather than 2
16063         in the argument to memcpy.
16065         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16066         width of alphabetic columns.
16068 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16070         * troff/node.c (lookup_family): Supply second argument to lookup.
16072         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16073         search, return immediately if v is 0.
16075         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16076         (troff_output::start_picture): Set this reg.
16077         (troff_output::end_picture): Remove this reg
16078         * eqn/box.c (box::extra_space): Don't produce `\x's if
16079         EQN_NO_EXTRA_SPACE_REG is defined.
16081         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16082         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16083         character.
16085 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16087         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16088         requests.
16090         * troff/div.c (top_level_diversion::top_level_diversion):
16091         Initialize page_number to 0.
16093 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16095         * groff/troff (environment::environment(const environment *)):
16096         Initialize name to e->name, rather than "anonymous".
16098 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16100         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16101         requested_page.  Split middle part into ...
16102         (FindPage): New function.
16103         (SetValues): If we don't yet know the last page, and the requested
16104         page is greater than the current page, call FindPage.
16105         Update the font_map_string before doing this.
16107         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16108         Translate \(lh and \(rh into left and right double arrows.
16110         * troff/node.c (class hyphen_inhibitor_node): New class.
16111         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16112         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16113         hyphen_inhibitor_node::type,
16114         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16115         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16116         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16117         word.
16119 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16121         * troff/node.h (dummy_node::get_hyphenation_type,
16122         transparent_dummy_node::get_hyphenation_type):  Declare them.
16123         * troff/node.c: (dummy_node::get_hyphenation_type,
16124         transparent_dummy_node::get_hyphenation_type): New functions.
16126 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16128         * xditview/libXdvi/draw.c: If M_PI not defined after including
16129         math.h, then define it.
16131         * xditview/Makefile: Add definition of AR. Pass it to the submake
16132         in libXdvi.
16133         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16135 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16137         * troff/dictionary.h (object_dictionary::alias): Declare return
16138         value as int.
16139         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16140         if the old name was defined.
16141         * troff/input.c (alias_macro): Give a warning if the old name was
16142         not defined.
16143         * troff/reg.c (alias_reg): Likewise.
16145 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16147         * troff/input.c (token::next): Delete implementation of \R.
16149         * macros/Makefile: Strip comments from tmac.e while installing it.
16151         * troff/input.c: New variable `nroff_mode'.
16152         (troff_request, nroff_request): New functions.
16153         (init_input_requests): Bind `troff' and `nroff' to troff_request
16154         and nroff_request.
16155         (do_if_request): Compute results of t and n conditions from
16156         nroff_mode.
16158         * text/text.c (split_text): Fix typo in >=.
16160         * eqn/lex.c: Add definition of `==' to def_table.
16162 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16164         * pic/tex.c (tex_output::start_picture): Change the definitions of
16165         \graph and \graphtemp so that they work properly with Plain TeX.
16167         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16168         argument to `ar' is not less than the first.
16170         * pic/pic.y: Allow a comma between elements of the variable list
16171         in the argument to `reset'.
16173         * pic/object.c (arc_object::arc_object): Fix computation of
16174         radius.
16176         * eqn/main.c (main): Add exit(0).
16178 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16180         * troff/div.c (begin_page): Test no_space_mode after doing the
16181         break, but still push the page ejector cookie before doing the
16182         break.  Also set the next page number after doing the break.
16183         
16184         * xditview/xditview.c (NewFile): Don't set the title and icon name
16185         if this is the first file and its name is `-'.
16186         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16187         the X75 and X100 devices.
16188         (main): If a device has the XT_OPTION flag set and there's exactly
16189         one file argument, pass the driver -xrm and -title options to set
16190         the icon name and window title to the name of the file.
16192         * troff/env.c (environment_switch): If there was an argument but
16193         it wasn't a valid number or name, then pop an environment but
16194         don't give an error message on underflow.
16196         * troff/number.c (start_number): Correct spelling in error message.
16198         * troff/input.c (token::delimiter): Don't print an error message
16199         if err is false.
16201         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16202         ParseDrawFunction if dw->display_enable is true.
16204 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16206         * pic/pic.y: Parse text positioning like normal attributes, so as
16207         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16208         positioning attribute.
16210 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16212         * tbl/main.c (process_data): When in state START while reading a
16213         text block, don't change to state MIDDLE if c is a newline.
16215 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16217         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16218         so as to avoid shadowing parameter.
16220 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16222         * tbl/table.c (trim_space): Deleted.
16223         (table::add_entry): Don't call trim_space.
16225 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16227         * VERSION: Change version to 0.6.
16229         * troff/number.c (parse_expr): Make == work.
16231 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16233         * man/grog.man: New file.
16234         * man/Makefile: Add grog.n to MAN1PAGES.
16235         * etc/grog.sh: New file.
16236         * etc/Makefile: Install grog.sh as grog.
16238 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16240         * troff/input.c (token::next): Implement \E.
16242 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16244         * xditview/tmac.X: Change font translations to match tmac.ps.
16246         * troff/input.c (non_empty_name_warning): Don't give a warning if
16247         `\{' terminates the name.
16249 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16251         * ps/devps/symbol.diff: New file.
16252         * ps/devps/FontMakefile: Mention symbol.diff.
16254 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16256         * troff/node.c (font_position): Use get_long_name to read the
16257         external_name.
16259         * troff/env.c (environment_switch): If we get a number that's < 0
16260         or >= NENVIRONMENTS, treat it like a name.
16261         Change NENVIRONMENTS to 10.
16263         * troff/groff.h: Remove definition of FONTS_MAX.
16264         * troff/node.h (class font_family): Make map a pointer instead of
16265         an array. Add a map_size member. Make it a class. Make nm const
16266         and public. Make invalidate_fontno a friend.
16267         * troff/node.c: Define font_table_size. Make font_info a pointer
16268         rather than an array.
16269         (class troff_output_file): Allocate font_position dynamically. Add
16270         nfont_positions member.
16271         (troff_output_file::set_font): Grow font_position if necessary.
16272         (troff_output_file::~troff_output_file): Delete font_position.
16273         (troff_output_file::troff_output_file): Allocate font_position.
16274         (grow_font_table): New function.
16275         (troff_output_file::really_begin_page,
16276         troff_output_file:really_copy_page): Use nfont_positions rather
16277         than FONTS_MAX.
16278         (mount_font_no_translate, mount_style): Call grow_font_table if
16279         necessary.
16280         (font_family::font_family): Allocate map.
16281         (font_family::make_definite): Grow map if necessary. Use
16282         font_table_size instead of FONTS_MAX.
16283         (font_family::~font_family): New function.
16284         (invalidate_fontno): Use font_family::map_size.
16285         (get_fontno, env_space_width, env_half_narrow_space_width,
16286         env_narrow_space_width, symbol_fotno, is_good_fontno,
16287         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16288         FONTS_MAX.
16289         (next_available_font_position): Never return 0.
16291 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16293         * ps/tmac.ps: Add font translations for compatibility with dpost.
16295 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16297         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16298         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16299         Move definitions baseline_sep, shift_down, column_sep,
16300         matrix_side_sep into...
16301         * eqn/box.c: Add them to param_table.
16302         * eqn/pbox.h: Add declarations to pbox.h.
16304         * troff/input.c (set_string): Cast value to unsigned char *.
16306         * troff/token.h (process_input_stack): Declare it static before
16307         declaring it a friend.
16309 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16311         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16312         and bottom.
16313         * dvi/devdvi/EX: Regenerate.
16315         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16316         transparent.
16318 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16320         * eqn/lex.c: In defaults_table, make definition of `dot' call
16321         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16322         accents.
16324         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16325         argument.
16326         (for_input::get, for_input::peek): Use this.
16327         (do_for): Add by_is_multiplicative argument.
16328         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16329         Change semantic value of optional_by to be a double plus a flag
16330         saying whethet the by clause is multiplicative.
16332         * eqn/lex.c (get_delimited_text): Remember location of start of
16333         definition.  Improve error handling when EOF is encountered.
16335         * lib/font.h: Rename handle_x_command to
16336         handle_unknown_font_command.
16337         * lib/font.c (font::load): Call handle_unknown_font_command for
16338         any unknown command in the font description file.  Don't call
16339         handle_x_command. Include the name of the command in the argv.
16340         Improve message for unknown command after kernpairs or charset
16341         command.
16342         * ps/ps.c (ps_font::handle_x_command): Rename to
16343         handle_unknown_font_command.  Remove message about `x download'
16344         command.  Give error message for wrong number of arguments.
16345         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16346         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16347         handle_unknown_font_command. Give an error message for wrong
16348         number of arguments.  Rename design_size to designsize.
16349         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16350         checksum', `designsize' instead of `design_size'.
16352 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16354         * eqn/*.[chy]: Change underaccent to uaccent.
16356         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16357         give it the same precedence as ACCENT.
16358         * eqn/other.c (make_underaccent_box): New function.
16359         * eqn/box.h: Declare it.
16360         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16361         def_table.
16363 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16365         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16366         (parse_init): Call reset_all.
16367         (define_variable): When defining scale reset only those
16368         pre-defined variables that are scaled.
16369         (defaults_table): Add `scale' as non-scaled value.
16371         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16372         together with the text; allow any number of positioning words;
16373         allow center as a positioning word.
16375         * pic/object.c (output::compute_scale): Get picture maximum height
16376         and width from variables called maxpswid and maxpsht.
16377         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16379 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16381         * pic/object.c (object_spec::make_text): Multiply textht by number
16382         of text items.
16384         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16385         occur.
16386         (do_sprintf): New function.
16387         (pic.gperf): Add sprintf token.
16388         (text, sprintf): New rules.
16390         * pic/pic.y: `rand()' with no arguments returns a random number
16391         in the range [0,1).
16393         * pic/pic.y: Allow a bare expression to be an attribute: change
16394         precedences to support this.  Change optional_ordinal rule to
16395         optional_ordinal_last to avoid reduce/reduce conflict.
16396         * pic/object.c (object_spec::object_spec): Initialize direction.
16398         * pic/pic.y: Implement ^ operator meaning exponentiation.
16400         * troff/node.h: Add default argument to mount_font.
16401         * troff/node.c (font_position): Read an optional third argument
16402         giving the external_name.
16403         (mount_font): Add optional argument giving the external_name.
16404         (mount_font_not_translate): Have additional argument giving
16405         external name.  Use this name to load the font.  Pass both names
16406         to font_info::font_info.
16407         (font_info::font_info): Have additional argument giving
16408         external_name.
16409         (class tfont): New member external_name.
16410         (font_info::get_tfont): Use external name to construct tfont_spec.
16412 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16414         * eqn/lex.c (init_table): Add argument giving device.  Define
16415         name of device to be "1".
16416         (do_ifdef): Counts as true if the argument has been defined with
16417         `define'.
16418         * eqn/main.c (main): Call init_table with device argument. Make
16419         device local to main.
16420         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16421         of device.
16423         * pic/lex.c (get_delimited): Allow text to be delimited by
16424         matching {}s.  Don't recognize ending delimiter within a string.
16426         * troff/input.c (get_delim_name): New function.
16427         (token::next): Implement \C.
16429         * lib/font.c (font::load): Grok ---.  Add an alias for each
16430         character based on its code.
16431         (font::get_code_width): Deleted.
16432         * lib/font.h (class font): Declare font::number_to_index().
16433         Remove declaration of font::get_code_width.
16434         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16435         to indices of named characters.
16436         (font::number_to_index): New function.
16437         * troff/input.c (font::number_to_index): New function.
16438         (get_charinfo_by_number, charinfo::get_number,
16439         charinfo::set_number): New functions.
16440         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16441         (token::process, token::description, token::get_char,
16442         token::add_to_node_list, token::operator==): Handle
16443         TOKEN_NUMBERED_CHAR.
16444         * troff/charinfo.h: Declare get_charinfo_by_number,
16445         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16446         charinfo class.
16447         (charinfo::numbered): New function.
16448         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16449         * troff/env.h (class environment): Remove declaration of ...
16450         * troff/env.c (environment::make_numbered_char_node): Deleted.
16451         * troff/node.c (make_numbered_node): Deleted.
16452         (class numbered_glyph_node): Remove.
16453         (troff_output_file::put_char_width, troff_output_file::put_char):
16454         Handle numbered chars.
16455         (troff_output_file::numbered_char): Removed.
16456         (tfont::get_code_width): Removed.
16457         (make_glyph_node): Don't search special fonts for numbered
16458         characters.
16459         * troff/node.h: Remove declaration of make_numbered_node.
16460         * driver/input.c (do_file): Handle N command.
16461         * driver/printer.h: Add declaration of ...
16462         * driver/printer.c (printer::set_numbered_char): New function.
16463         * dvi/tfmtodit.c (main): Generate unnamed entries.
16464         * ps/devps/afmtodit: Likewise.
16465         * xditview/xtotroff.c (MapFont): Likewise.
16466         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16468         * tbl/main.c (process_format): If multiple widths are specified
16469         for a column but all the widths are the same, don't give an error
16470         message.
16472         * tbl/table.c (table::do_row): If the current row is all lines and
16473         the stuff doesn't contains a line, mark the top of the row after
16474         printing stuff before the row.  If the current row is not all
16475         lines and the stuff doesn't contain a line, don't unnecessarily
16476         mark the top of the row before printing the stuff.
16477         
16478 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16480         * troff/groff.h: Remove MAX_PATH.
16481         * troff/input.c (open_file): Dynamically allocate space for the
16482         path.
16483         (open_mac_file, process_macro_file): Corresponding changes.
16485 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16487         * troff/node.h (class output_file): Make copy_file pure.  Add
16488         vspace method ifdef COLUMN. Add is_printing method.
16489         * troff/node.c: Add class printing_reg. Add class
16490         real_output_file. Derive other output_file classes from
16491         real_output_file; in these classes rename begin_page to
16492         really_begin_page, print_line to really_print_line, copy_file to
16493         really_copy_file, transparent_char to really_transparent_char.
16494         Move output_file::flush to real_output_file. Add printing member
16495         to class output_file.
16496         * troff/div.h: Remove printing member from top_level_diversion.
16497         Add vspace member function to class diversion ifdef COLUMN. Add
16498         some declarations ifdef COLUMN.
16499         * troff/div.c (top_level_diversion::copy_file,
16500         top_level_diversion::transparent_output,
16501         top_level_diversion::output): Don't test printing member before
16502         output.
16503         * troff/input.c: Handle initial variable_space_request ifdef
16504         COLUMN.
16505         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16506         but comment it out.
16508 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16510         * troff/div.c (diversion::need): Make any space forced.  If we
16511         sprung a trap, set truncated_space to minus the distance to the
16512         trap and set needed_space to the amount that was needed.
16513         (top_level_diversion::space): A forced space turns no_space_mode
16514         off.
16515         (class constant_vunits_reg): New class.
16516         (init_div_requests): Implement number registers .trunc and .ne
16517         using constant_vunits_reg.
16518         (class truncated_space_reg): Deleted.   
16520         * troff/div.h: Don't have a no_space_mode member in diversion.
16521         Instead have it in top_level_diversion.
16522         * troff/div.c (diversion::diversion): Don't initialize
16523         no_space_mode.
16524         (top_level_diversion::top_level_diversion): Initialize
16525         no_space_mode.
16526         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16527         (macro_diversion::output): Don't clear no_space_mode.
16529         * troff/input.c (diverted_space_node::reread): Don't call
16530         environment::do_break.  In fill mode, act like a blank line.
16531         (diverted_copy_file_node::reread): Don't call
16532         environment::do_break.
16534         * troff/div.c (blank_line): New function.
16535         * troff/div.h: Declare it.
16536         * troff/input.c (process_input_stack): Call it.
16538         * troff/div.c (truncated_space_reg::get_string): New function.
16539         (init_div_requests): Bind to .trunc.
16540         (space_request, top_level_diversion::space,
16541         top_level_diversion::output, macro_diversion::space,
16542         macro_diversion::output): Update truncated_space.
16543         (macro_diversion::output): Redo calculations when trap sprung.
16544         (macro_diversion::output, macro_diversion::space): No need for
16545         trap_flag.
16547         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16548         after truncating post line spacing.
16550 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16552         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16553         defined as a procedure rather than as an operator.
16555 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16557         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16559 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16561         * troff/div.c (top_level_diversion::output): Merge
16562         output_file::print_line and output_file::end_of_line member
16563         functions.
16564         * troff/div.h (class output_file):
16565         * troff/node.c (troff_output_file::print_line,
16566         troff_output_file::end_of_line, output_file::end_of_line,
16567         ascii_output_file::print_line, suppress_output_file::print_line):
16568         Corresponding changes.  
16570 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16572         * troff/input.c (token::next): Don't give a warning for `\.'.
16574         * troff/env.c (environment::get_center_lines): New function.
16575         (init_env_requests): Bind number register .ce to it.
16576         * troff/env.h: Declare it.
16577         * tbl/table.c (table::init_output): Define reset macro to restore
16578         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16579         Then do .ce 0.
16580         (table::print): If center option not given, then imply center
16581         option if SAVED_CENTER_REG > 0.
16583 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16585         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16586         Troff.ps from DOWNLOAD.
16587         
16588         * troff/Makefile: Change comment in DEFINES to avoid confusing
16589         System V make.
16591         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16592         code.  Don't try to catch errors with stopped.
16593         (check_line_lengths): New function.
16594         * ps/devps/prologue (EXEC): Deleted.
16595         (EBEGIN, EEND): New procedures.
16597 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16599         * troff/input.c: Include request.h before node.h.
16600         * troff/node.c: Likewise.
16601         * troff/env.c: Likewise.
16602         * troff/div.c: Likewise.
16603         * troff/node.h (class special_node): Store argument as a macro
16604         rather than a char *.
16605         * troff/node.c (special_node::special_node, special_node::copy):
16606         Grok this.
16607         (special_node::~special_node): Deleted.
16608         (special_node::tprint): Deleted.
16609         (special_node::tprint_start, special_node::tprint_end,
16610         special_node::tprint_char): New functions.
16611         (troff_output_file::special): Deleted.
16612         (troff_output_file::start_special, troff_output_file::end_special,
16613         troff_output_file::special_char): New functions.
16614         * troff/input.c (special_node::tprint): New function.
16615         (do_special): Use macro not char *.
16616         (do_transparent_macro): Deleted.
16617         (token::next): Don't call do_transparent_macro.
16619         * troff/input.c (token::next): Add 'Y' case.
16620         (do_transparent_macro): New function.
16621         * troff/node.c (troff_output_file::special): Handle newlines with
16622         argument using new continuation convention.
16623         * driver/input.c (get_string): Cope with continuation convention.
16624         (do_file): Don't call skip_line after calling get_string(1).
16625         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16626         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16627         arg.
16628         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16629         with +.
16631 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16633         * troff/input.c (asciify): By default, illegal input characters
16634         should return empty string.
16636         * troff/input.c (copy_file): Handle first page transition like title.
16637         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16639         * troff/input.c (token::next): Improve error message for EOF after
16640         escape character.
16641         (input_char_description): New function.
16642         (get_char_for_escape_name): Use input_char_description.
16643         (token::next): Warn about unrecognized escape sequences.
16644         (warning_table): Add WARN_ESCAPE.
16645         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16646         accordingly.
16648         * troff/token.h: Remove declaration of process_input_stack.
16650         * troff/input.c: Remove declaration of init_hyphen_requests.
16651         * troff/request.h: Correct spelling in declaration of same.
16653         * troff/input.c (token::next): Check whether escape_char is 0.
16655 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16657         * groff.c (main, usage, help): Implement -P and -L options.
16658         * groff.sh: Likewise.
16660         * troff/input.c (token::next): Use some gotos to avoid code
16661         duplication.
16663         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16664         Avoid calling symbol::symbol if name empty.
16666 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16668         * troff/input.c (init_input_requests): Make \n(.x return the major
16669         version number and \n(.y return the minor version number.
16670         * troff/Makefile: Construct file majorminor.c defining
16671         major_version and minor_version automatically from ../VERSION.
16673         * troff/node.c (class glyph_node): Make operator new and operator
16674         delete public.
16675         (class ligature_node): Similarily.
16677         * troff/input.c (operator==(const macro &, const macro &)): New
16678         function.
16679         (non_interpreted_node::same): Use this.
16680         (string_iterator::string_iterator): Make macro& argument const.
16682         * troff/input.c (input_iterator::get): New function. Don't make
16683         asciify_macro or class non_interpreted_node friends of class
16684         input_iterator.
16685         (non_interpreted_node::interpret): Use input_iterator::get.
16686         (asciify_macro): Likewise.
16688         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16689         ~non_interpreted_node): Deleted.
16690         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16691         Deleted.
16693         * troff/symbol.h: Make all symbol member functions const.
16695         * lib/strtol.c: New file.
16696         * lib/Makefile: Add strtol.c.
16697         * Makefile: Define STRTOL as strtol.o to include strtol in
16698         libgroff.a.
16700 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16702         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16704 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16706         * troff/input.c (do_special): Use input_level.
16708         * troff/token.h (TOKEN_BACKSPACE): New token.
16709         (token::backspace): New function.
16710         * troff/input.c (token::description, token::next, token::process):
16711         Grok TOKEN_BACKSPACE.
16712         (do_special): Turn TOKEN_BACKSPACE back into \b.
16714         * troff/token.h (token::leader): New function.
16715         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16717         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16719         * troff/input.c (do_special): Use token::description in error
16720         message.
16722 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16724         * troff/input.c (decode_args): Combine quoted and
16725         quote_input_level variables. Make it a for (;;) loop.
16727         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16729         * troff/input.c (read_long_escape_name): The test for whether to
16730         expand buffer was off by 1.
16731         (read_string): Similarily.
16733 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16735         * troff/input.c: Use `const int' rather than `static const int'.
16737         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16738         (macro_diversion::copy_file): New function.
16739         * troff/node.h: New class diverted_copy_file_node.
16740         * troff/node.c: Implement it.
16741         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16742         first page transition by pushing a diverted_copy_file_node.
16743         * troff/input.c (token::next, process_input_stack): Don't handle
16744         COPY_FILE_REQUEST.
16746 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16748         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16749         whether space widths need adjusting.
16751         * troff/charinfo.h: Generalize translated_to_space to
16752         special_translation so as to allow translation to \&.
16753         * troff/input.c (translate): Allow translation to \&.
16754         (charinfo::*): Corresponding changes.
16755         * troff/node.c (make_node, node::add_char): Corresponding changes.
16756         * troff/node.h (dummy_node::dummy_node): Allow optional first
16757         argument.
16759         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16760         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16761         TOKEN_REQUEST.
16762         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16763         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16764         (token::process): Grok that.
16765         * troff/input.c (copy_file): Handle first page transition like
16766         title by pushing a COPY_FILE_REQUEST cookie.
16767         (token::next, process_input_stack): Grok that.
16768         * troff/node.h (output_file::copy_file): Add x and y arguments.
16769         Make it non-pure.
16770         * troff/div.c (top_level_diversion::copy_file): Supply them.
16771         * troff/node.c (troff_output_file::copy_file): Add x and y
16772         arguments; moveto specified position.  Invalidate font_position
16773         array after copying file.
16774         (output_file::copy_file): New function.
16775         (suppressed_output_file::copy_file, ascii_output::copy_file):
16776         Removed.
16777         * troff/input.c (transparent_file): New function.
16778         (init_input_requests): Bind to "trf".
16779         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16780         (process_input_stack): Likewise.
16782         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16784         * troff/node.c (init_node_requests): New number registers .kern
16785         pointing to global_kern_mode, and .lg pointing to
16786         global_ligature_mode.
16788         * troff/node.c (ligature): Don't change it if we get a bad
16789         integer.
16791         * troff/input.c (do_define_string): Don't strip tabs.
16793         * troff/input.c (asciify_macro): Make the string_iterator auto.
16795         * troff/node.c (init_font_requests): Rename to...
16796         (init_node_requests):
16797         * troff/node.h: Change declaration.
16798         * troff/input.c (main): Change call.
16800         * troff/input.c (node::reread, diverted_space_node::reread): New
16801         methods.
16802         (process_input_stack): Call reread rather than
16803         get_diverted_space_node.
16804         * troff/node.c (node::get_diverted_space_node,
16805         diverted_space_node::get_diverted_space_node): Removed.
16806         * troff/node.h: Declare reread methods instead of
16807         get_diverted_space_node methods. Make `n' member private.
16808         * troff/input.c: (token::diverted_space): Removed.
16809         * troff/token.h: Removed declaration.
16810         
16812 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
16814         * eqn/script.c (script_box::compute_metrics): Don't let
16815         SUP_RAISE_FORMAT become negative.
16817         * tbl/table.c (table::do_row): Entries that don't end in the
16818         this row shouldn't make the row non-blank.
16819         
16820         * tbl/table.c (table::make_columns_equal): Only set the width of
16821         columns which are marked as equal.
16822         
16823         * tbl/main.c (process_data): Before issuing excess data error,
16824         if last character was a newline unget it; then get it again after
16825         the error.  Also include the contents of the entry in the message.
16827         * groff.c: New file.
16828         * Makefile: Build groff from groff.c.  Make it possible to use
16829         either groff.sh or groff.c as groff.
16830         * Makefile.bd: Similarily.
16832 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
16834         * groff.sh: Don't delay expansion of $@ in assignment to files.
16835         Remove occurrences of \".
16837 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
16839         * all Makefiles: Simplify and rearrange.
16841         * Makefile: Handle fmod like malloc.
16842         * lib/Makefile: Similarily.
16843         * lib/fmod.c: Remove #ifdef NEED_FMOD.
16845         * Makefile: Rename OPTIMISE to OPTIMIZE.
16847         * groff.sh: Remove assignment to PATH.
16848         * Makefile: Remove SHPATH variable.
16849         * Makefile.bd: Similarily.
16851         * groff.sh: Add -V option to print the pipeline instead of
16852         executing it.
16854 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
16856         * lib/font.c: Split off file searching into ...
16857         * lib/fontfile.c: New file.
16859         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16861 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
16863         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16864         Also change misleading comment.
16865         (table::do_vspan): Change similarily misleading comment.
16866         * tbl/main.c (process_data): A format row with an explicit `s'
16867         uses up a data line, even if all the other columns are `_' or `='.
16869         * troff/input.c (token::description): Fix description of
16870         TOKEN_DUMMY and TOKEN_EMPTY.
16872 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16874         * groff.sh: Fix description of -Z in help message.
16876 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16878         * pic/object.c (object_spec::make_object): Allow negative and zero
16879         line thicknesses.
16880         * pic/pic.y: Give linethick default value of -1.0.
16881         * pic/troff.c (troff_output::troff_output): Initialize
16882         last_line_thickness to BAD_THICKNESS.
16883         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16884         (troff_output::line_thickness): Canonicalize negative thicknesses
16885         to RELATIVE_THICKNESS.
16886         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16887         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16888         to -1.0.
16889         (tex_output::start_picture): Set pen_size to -2.0.
16891         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16892         0, then use 0 linewidth.
16893         (ps_printer::ps_printer): Initialize line_thickness to -1.
16895         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16897         * ps/devps/symbolchars: Remove `or'.
16898         * ps/tmac.ps: Implement \(or with .char.
16900         * ps/devps/symbolchars: Move most characters into textmap.
16901         * ps/devps/textmap: Add names for troff bracket characters. Remove
16902         ul, ru, br, bv.
16904         * ps/devps/TSymbol.ps: Removed.
16905         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16906         * ps/tmac.ps: Do with .char what TSymbol did.
16907         * ps/devps/download: Remove TSymbol.
16909         * ps/devps/T: Removed.
16910         * ps/devps/Troff.ps: Removed.
16911         * ps/devps/Troff.afm: Removed.
16912         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16913         * ps/devps/download: Remove Troff.
16914         * ps/devps/FontMakefile: Remove T target.
16915         * ps/devps/DESC-A4: Remove T from font list.
16916         * ps/devps/DESC-letter: Likewise.
16918         * troff/input.c (macro_to_node): Rename to ...
16919         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
16920         character's definition while processing it.
16921         * troff/node.c (node::add_char, make_node): Change calls to
16922         macro_to_node accordingly.
16924         * troff/input.c (token::next): Translate \_ to \(ul.
16926         * tty/devascii/R.proto: Add `|'.
16927         * tty/devlatin1/R.proto: Likewise.
16929 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
16931         * man: Put the version number in all the man pages.
16933 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
16935         * Makefile.bd: New file.
16936         * README.bd: New file.
16938         * VERSION: New file.
16939         * lib/version.c: Removed.
16940         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16941         in clean target.
16943         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16944         environment variable.
16946         * all Makefiles: Split install target into install.bin for
16947         binaries, and install.nobin for everything else.
16948         * Makefile: Add bindist target.
16950         * man/afmtodit.man: New file.
16951         * man/Makefile: Add afmtodit.n to MAN1PAGES.
16952         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16953         in BINDIR.
16954         * ps/Makefile: Pass BINDIR to make install in devps.
16956         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16957         the space character.
16959         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16961 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
16963         * ps/ps.c: Redo font downloading.
16964         * ps/devps/download: New file.
16965         * ps/devps/Makefile: Add download to DEVICEFILES.
16966         * ps/devps/afmtodit: Remove -d option.
16967         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16968         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16969         * ps/devps/zapfdr.ps: Likewise.
16970         * ps/devps/TSymbol.ps: Likewise.
16972 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
16974         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16976 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
16978         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16979         then strip the first line if it starts with %.
16980         * Makefile: Add a comment about this.
16982         * man/tfmtodit.man: New file.
16983         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16984         * dvi/Makefile: Install tfmtodit in BINDIR.
16986         * dvi/tfmtodit.c (usage): Mention -v option.
16988 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
16990         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16991         * troff/node.c (troff_output_file::transparent_char): Don't call
16992         flush_tbuf.
16994         * eqn: Add check_tabs method to most box classes.
16995         * eqn/box.c (box::top_level): Call check_tabs.
16997         * eqn/script.c (script_box::output): Use \Z.
16998         * eqn/limit.c (limit_box::output): Use \Z.
17000         * eqn/box.c (box::top_level): Use itoa.
17002 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17004         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17005         * dvi/devdvi/Makefile: Don't make links to CW.
17007         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17008         HX, HD.
17009         * xditview/tmac.X: Likewise.
17011         * troff/node.c: Add font translation feature.
17012         (get_font_translation): New function.
17013         (symbol_fontno): Translate the font name.
17014         (mount_font_no_translate): Rename to mount_font to this.
17015         (mount_font): New function.
17016         (font_family::make_definite): Call mount_font_no_translate instead
17017         of mount_font.
17018         (mount_style): Translate the font name.
17019         (font_translate): New function.
17020         (init_font_requests): Bind "ftr" to font_translate.
17022         * ps/devps/prologue (SN): New procedure that rounds a position to
17023         the nearest (pixel + (.25,.25)).
17024         (DL): Use SN to round endpoints.
17026         * lib/version.c: Changed version to 0.5.
17028 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17030         * Makefile: Move definition of PAGE to the very beginning, so that
17031         people are less likely to miss it.
17033 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17035         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17037         * troff/env.c (environment::choose_breakpoint): Make `can't find
17038         breakpoint' error a warning of type WARN_BREAK.  Change message to
17039         `can't break line'.
17040         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17041         code 040000.
17042         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17043         WARN_BREAK in DEFAULT_WARNING_MASK.
17045         * tty/tmac.tty: Add definition of \(+-.
17047         * groff.sh: Remove `--' option to set command.
17049         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17051         * ps/devps/eqnchar: Better definition of cdot using md.
17052         * dvi/devdvi/eqnchar:  Likewise.
17053         * xditview/devX100/eqnchar:  Likewise.
17054         * xditview/devX75/eqnchar: Likewise.
17055         * eqn/lex.c: Add definition of cdot.
17057 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17059         * troff/input.c (get_optional_char): New function.
17060         * troff/input.c (set_page_character): Use get_optional_char(),
17061         rather than has_arg() and tok.get_char(1).
17062         * troff/env.c (tab_character, leader_character, hyphen_char,
17063         field_characters): Likewise.
17064         (margin_character): Likewise.  Also always delete the
17065         margin_character_node.
17067         * troff/input.c (token::get_char): Use token::description.
17069         * troff/input.c (has_arg): Don't skip over tab and \}.
17070         * troff/number.c (start_number): Give a warning if the number
17071         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17073 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17075         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17076         functions.
17077         (get_name, get_long_name): Use these.  Rename `warn' argument to
17078         `required'.
17080         * troff/node.c (get_fontno): Test that the symbol is not null.
17082         * troff/input.c (token::description): New function.
17083         * troff/number.c (parse_term): Use token::description in `numeric
17084         expression expected' message.
17085         * troff/groff.h: Add WARN_MISSING.
17086         * troff/number.c (start_number): New function.
17087         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17088         get_incr_number): Use start_number().
17089         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17090         default.
17091         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17092         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17093         token::descripion.
17094         * troff/input.c (token::get_char): Use WARN_MISSING.
17095         * troff/input.c (token::delimiter): Use token::description.
17096         * troff/env.c (environment_switch): Back out Aug 3 change.
17097         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17098         warning.
17099         * troff/token.h (token::tab): New function.
17100         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17101         * troff/reg.c (alter_format): Likewise.
17102         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17104 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17106         * troff (most files): Redo warnings. Divide warnings into various
17107         categories; warning() has an additional first argument indicating
17108         the category it falls into.
17109         * troff/input.c (main): -w now takes an argument. New option -W.
17110         (enable_warning, disable_warning): New functions.
17112         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17113         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17115 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17117         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17118         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17119         * xditview/devX75/eqnchar: Likewise.
17120         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17122         * eqn/other.c: When bar or over applies to a single character
17123         don't produce an overline_box or an underline_box. Instead produce
17124         an accent_box or an underaccent_box, with the accent a line
17125         whose width is accent_width.  New classes underaccent_box,
17126         overline_char_box and underline_char_box.
17127         * eqn/box.h: Move overline_box, underline_box, accent_box class
17128         declarations into eqn/other.c. Add declarations of
17129         make_underline_box, make_overline_box, make_accent_box.
17130         * eqn/eqn.y: Call make_overline_box, make_underline_box
17131         make_accent_box instead of constructors.
17132         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17134         * eqn/other.c: Add accent_box::~accent_box.
17135         * eqn/box.h: Declare it.
17137         * groff.sh: With -Tps, use eqn -D.
17139         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17140         rather than \l.
17141         (underline_box::output): Similarily.
17142         (accent_box::output): Use \Z.
17144         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17145         bit smaller.)
17147 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17149         * troff/div.c (top_level_diversion::transparent_output(unsigned
17150         char)): Use asciify.
17151         * troff/input.c (asciify): Don't make it static.
17152         * troff/token.h (asciify): Declare it.
17153         
17154         * troff/input.c (get_name, get_long_name, token::get_char,
17155         token::delimiter): Add an extra default argument which says
17156         whether a warning should be printed.
17157         * troff: Pass a non-zero argument to one of these rather than
17158         printing a warning directly.
17160 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17162         * troff: Consistently use symbol::is_null.
17164         * troff/dictionary.h: Move some inline functions into
17165         dictionary.c.
17167         * troff/request.h: Move inline functions into input.c.
17168         (request_or_macro::invoke): Make it pure.
17170         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17171         * troff/input.c (init_input_requests): Use class constant_int_reg.
17172         (class compatible_reg): Deleted.
17173         * troff/div.c (init_div_requests): Use class constant_int_reg.
17174         (class last_post_line_extra_space_reg): Deleted.
17176         * troff/env.c (tab_character): Don't change the tab character if
17177         we get an invalid argument.
17178         (hyphen_char): Similarily.
17180         * troff/reg.c (alter_format): Check that nm is not null.
17182         * Makefile, groff.sh: Make it possible to customize the commands
17183         used for printing PostScript and dvi files. Also make it possible
17184         to customize the path used by groff.sh.
17186         * eqn/eqn.y: Make `left' right associative.
17188 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17190         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17191         don't have it.
17193         * pic/pic.h: Removed definition of INT_MAX.
17195         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17196         `return'.
17198         * troff/input.c (token::next):  Handle \R like \n.
17200 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17202         * ps/tmac.pc (PSPIC): Simplify.
17204         * troff/env.c (tab_stops::to_string):
17205         * pic/pic.y (object_type_name):
17206         * pic/troff.c (simple_output::line):
17207         * pic/tex.c (tex_output::spline):
17208         * pic/object.c (object_spec::make_object):
17209         * tbl/main.c (process_data):  Add cases to switch statements to
17210         avoid cfront warnings. (Some of these are spurious, since the
17211         switch already has a default case.)
17213         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17214         `ps-'.  Don't test systat; instead check number of arguments to
17215         ps-bb.
17217 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17219         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17221         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17222         Unlink the file as soon as we have opened it, so that we don't
17223         have to bother with signal handlers.
17224         (handler): Deleted.
17225         (fatal_error_exit): Deleted.
17226         (main): Don't call signal.
17228         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17229         can be ignored.
17230         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17232         * pic/pic.y:  If there is a label, or an nth construction before
17233         the first `.' in the argument to `with', ignore it and generate a
17234         warning.
17235         * pic/lex.c (lex_warning): New function.
17237         * tbl/table.c (table::init_output): In section keep and release
17238         macro, use 0 indent when diverting and the correct indent when
17239         rereading.
17241         * troff/input.c (interpolate_number_format): Do not interpolate
17242         anything if the number register is not defined.
17244         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17246 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17248         * ps/devps/prologue (PICTURE): Set components of graphics state to
17249         their default values.
17251         * ps/devps/text.enc: Add trademark
17252         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17253         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17254         * ps/devps/symbolchars: Add names for summation and product.
17256         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17257         suchthat. Add pp. Add upper-case letters.
17259         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17260         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17261         Upsilon.
17263         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17264         rA (right angle bracket) to ra.  Introduce names for double-headed
17265         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17266         * ps/devps/textmap: Likewise for ps device.
17267         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17268         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17269         * tty/devascii/R.proto: Likewise.
17270         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17271         \(uA, \(dA.
17272         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17274         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17276         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17277         def_table.
17279 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17281         * troff/div.c (when_request): Use symbol::is_null rather than
17282         has_arg to determine whether we have an argument.
17283         (change_trap): Remove the trap if we get an invalid number. Give
17284         an error if we don't get at least the macro name.
17285         (diversion_trap): Remove trap if we get an invalid name or number.
17287         * troff/env.c (environment_switch): Pop if we get an invalid
17288         symbol or numeric expression.
17290         * troff/input.c (do_define_macro):  If EOF is encoutered while
17291         defining the macro, do tok.next() before returning.
17293         * troff/token.h (has_arg): Move definition from here, to ...
17294         * troff/input.c (has_arg): ... here
17296         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17297         * troff/input.c (shift): Likewise.
17299         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17300         for `.c'.
17302         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17303         `..'.
17305         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17306         interpret_lf_args succeeds.
17308         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17309         \\.  This avoids problems with \$N.
17311         * groff.sh: Pass -C to preprocessors.
17313         * lib/lf.c (interpret_lf_args):  Be more flexible.
17315         * tbl/main.c (main): Add -C option.
17316         (table_input::get): Do not recognize TE if followed by character
17317         other than a space or newline unless -C option given.
17318         (process_input_file): Likewise for lf, TS.
17319         (process_data): Likewise for lf in text blocks.
17321         * eqn/main.c (main): Add -C option.
17322         (do_file): Don't recognize EQ, EN or lf if followed by character
17323         other than space or newline unless -C option given.
17324         * eqn/lex.c (file_input::read_line): Similarily.
17325         * eqn/eqn.h: Declare compatible_flag.
17327         * etc/soelim.c (main): Add -C option.
17328         (interpret_lf_args): Use version in libgroff.
17329         (do_file):
17331         * pic/main.c (main): Add -C option, which sets compatible_flag.
17332         (top_input::get), (top_input::peek):  If -C option not given,
17333         do not recognize .PS/.PE/.PF/.lf if followed by a character
17334         other than space or newline.
17335         * pic/lex.c (file_input::read_line): Similarily.
17336         * pic/pic.h: Add declaration of compatible_flag.
17338 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17340         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17342         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17343         derived from node.  New class space_char_hmotion_node.
17344         * troff/input.c (asciify_macro): New function.
17345         * troff/input.c (init_input_requests): New request `asciify' bound
17346         to asciify_macro.
17347         * macros/mm.diff: New file.
17348         * Makefile:  In install.mm target use `patch' to apply
17349         macros/mm.diff.
17351         * troff/input.c (macro::print_size): Just print the size in bytes.
17353         * troff/div.c (return_request): Correct the argument
17354         interpretation.
17356 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17358         * troff/node.h (class composite_node): Add sz member.
17359         * troff/node.c (composite_node::size): Return sz.
17360         * troff/input.c (macro_to_node):  Use the initial size in the
17361         environment as the size of the composite_node.
17363         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17364         default.
17366 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17368         * troff/div.c (change_trap): If we get a bad number expression,
17369         do nothing.
17371 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17373         * lib/matherr.c (matherr): Define this only if math.h defines
17374         TLOSS.
17376 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17378         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17379         no diversion trap return vunits(INT_MAX - vresolution).
17381 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17383         * troff/input.c (do_zero_width): New implementation that doesn't
17384         use a temporary environment. Use instead:
17385         (token::add_to_node_list): New function.
17386         * troff/env.c (environment::get_prev_char_height),
17387         (environment::get_prev_char_height),
17388         (environment::get_prev_char_skew): New functions.
17389         (environment::get_prev_char): New function.
17390         (environment::get_prev_char_width): Change to use get_prev_char.
17391         (init_env_request): Implement new registers .cht, .cdp, .csk.
17392         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17393         \Z being processed in a separate environment.
17395 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17397         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17399         * tbl/table.c (table::init_output): In the section release macro,
17400         give a warning message if the section won't fit on one page.
17402         * tbl/table.c (table::do_top): Emit table keep only if table is
17403         boxed.
17404         (table::do_bottom): Likewise for table release.
17405         (table::table), (table::add_vertical_rule):  Remove reference to
17406         keep member.
17407         * tbl/table.h: Remove keep member.
17409         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17410         SECTION_RELEASE_MACRO, if there's not enough space before the next
17411         trap to output the diversion, call T# ourselves, set
17412         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17413         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17414         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17415         vertical position and return to it before turning traps on again.
17416         
17417 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17419         * troff/node.c, troff/node.h: In classes derived from node,
17420         replace prev_char_width method by last_char_node method.
17421         * troff/env.c (environment::get_prev_char_width): Use
17422         node::last_char_node rather than node::get_prev_char_width.
17424         * Makefile: Added comment about -fno-inline on 68030-based
17425         Apollos.
17427         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17428         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17429         expressions using sizeof to int.
17430         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17432         * macros/tmac.e (TS):  Don't move @f back past the current
17433         position.
17435 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17437         * ps/ps.c (main): Buffer stderr.
17438         * dvi/dvi.c (main): Likewise.
17439         * tty/tty.c (main): Likewise.
17441         * ps/ps.c (ps_printer::do_import): Improve error handling.
17443         * troff/input.c (abort_request): Use asciify.
17445         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17446         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17447         type of first argument int rather than char.  This works around a
17448         bug on the 68030 based Apollo using g++ 1.37.1.
17450         * tbl/table.h (class table): Add `keep' member.
17451         * tbl/table.c (table::table): Initialize `keep'.
17452         (table::add_vertical_rule): Set `keep' to 1.
17453         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17454         (table::do_bottom): Likewise for table release macro.
17455         (table::do_row): Emit section keep macro even if the row is 0.
17457 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17459         * macros/tmac.e (@C): Preserve the font family across the change
17460         in environments.
17462 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17464         * lib/font.c: Initialize font::hor and font::vert to 1.
17465         (font::load_desc): Check the values of font::hor and font::vert.
17467         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17468         be included in a C compilation.
17469         (iftoa): Use INT_DIGITS. Include lib.h.
17470         (itoa): Likewise.
17471         (as_string): Likewise.
17472         * tbl/table.c: Removed definition of INT_DIGITS.
17473         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17474         * troff/input.c (input_input_requests): Likewise.
17475         * ps/ps.c (make_encoding_name): Likewise.
17476         (ps_printer::set_style): Likewise.
17477         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17479         * tty/devascii/R.proto: Map fm onto '.
17480         * tty/devlatin1/R.proto: Likewise.
17482 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17484         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17485         argument to \w is at a different input level.
17487         * tbl/table.c (table::init_output): Define a new macro
17488         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17489         transparently outputs itself.
17490         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17491         vpt.
17492         (table::do_row): Likewise.
17494         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17495         TRANSPARENT_STRING_NAME.
17497         * tbl/table.c (table::init_output): In the table release macro
17498         print an error message and don't produce any output if after
17499         issuing the need request the table still will not fit.  Also
17500         remove the diversion after bringing it back.
17502         * tbl/table.c (table::init_output): Define a new macro
17503         REPEATED_MARK_MACRO, like mk but if in a diversion also
17504         transparently outputs itself.
17505         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17506         is necessary because .TH might not call .T#.
17507         (table::do_top): Likewise TOP_REG.
17508         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17509         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17510         table header might contain just the two top rules.
17512 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17514         * troff/div.c: Implement new request `ptr' to print all traps.
17516         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17517         init_string_env_reg.
17518         * troff/env.c (class tab_reg): Deleted.
17520 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17522         * troff/div.c: New number register .pn returns the number of the
17523         next page as set by the pn request.
17525         * macros/tmac.an: Redid headers and footers.  Number each manual
17526         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17527         optional 5th argument to .TH which specifies the manual name and
17528         appears in the center of the header.  Understand the X, P and D
17529         registers like Sun.
17531 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17533         * troff/env.c (init_env_requests): New number register `.lt' to
17534         return the title length.
17536         * troff/node.h (class transparent_dummy_node): New class.
17537         * troff/node.c (class transparent_dummy_node): Provide member
17538         functions. 
17539         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17540         than a dummy_node.
17542         * troff/input.c (token::next): New escape sequence \).
17543         * troff/input.c (get_copy): Recognize \) in copy mode.
17545         * troff/input.c (input_stack::clear): New function.
17546         * troff/input.c (exit_request): Use input_stack::clear.
17548         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17549         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17551         * troff/env.c: Move set_page_character to input.c.  Move
17552         page_character to input.c also.
17553         * troff/env.c (title): Split off the reading of the parts of the
17554         title into read_title_parts.
17555         * troff/input.c (read_title_parts): New function.  Check the
17556         input_level when testing whether a token matches the delimiter.
17558         * troff/input.c (exit_request): New function.
17559         * troff/input.c (init_input_requests): Bind ex request to
17560         exit_request rather than exit_groff.
17562         * troff/input.c (exit_groff): Call tok.next() before
17563         process_input_stack().
17565 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17567         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17568         * troff/env.h: ditto.
17569         * troff/input.c: ditto.
17571         * troff/env.c (environment::is_empty): Test pending_lines.
17573         * troff/env.c (environment::have_pending_lines): Removed.
17575         * troff/input.c: Add request to flush pending lines from the
17576         environment.
17578         * troff/env.c, troff/env.h: Add automatic widow control feature.
17580         * troff/input.c (exit_groff):  Do process_input_stack() after
17581         do_break() but before setting exit_flag to 2.
17583         * troff/input.c: Remove FLUSH_PENDING_LINES and
17584         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17585         environment after END_TRAP token seen, but only if there aren't
17586         any more traps still unfinished.
17587         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17589 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17591         * troff/env.c: Rename the `retain_size' member of class
17592         pending_output_line to `no_fill'.
17594         * troff/env.c (title): When the line is output, make the
17595         retain_size argument !fill.
17597         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17598         * troff/node.c (space_node::get_breakpoints),
17599         (dbreak_node::get_breakpoints):  Fill this in.
17600         * troff/env.c:  Allow specification of maximum number of
17601         consecutive hyphenated lines.
17603         * troff/env.c (environment::is_empty): Add test for !current_tab.
17605 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17607         * troff/env.c (environment::hyphenate_line): Don't completely give
17608         up if the word is not to be hyphenated; continue so that breaks
17609         can be made at break_char_node's.
17611         * lib/lib.h: Only define INT_MAX if it's not already defined;
17612         undef INT_MIN if it's already defined.
17614         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17616         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17617         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17618         compiler.
17619         
17620         * macros/tmac.an (an-header): Set no-space mode.
17622         * macros/tmac.an (TH): Start a new page if necessary.
17624         * Started using ChangeLog at version 0.4.
17626 Local Variables:
17627 version-control: never
17628 coding: latin-1
17629 End: