* doc/groff.texinfo: Added many @noindent.
[s-roff.git] / ChangeLog
blob07a5540e100207718833be531162eeeee3af1d62
1 2001-03-22  Werner LEMBERG  <wl@gnu.org>
3         * doc/groff.texinfo: Added many @noindent.
4         Replaced @end_Example -> @endExample.
5         Added info whether registers are r/o.
6         Many other additions and fixes.
8 2001-03-21  Werner LEMBERG  <wl@gnu.org>
10         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
11         in makeinfo of texinfo 4.0) to be used in @Def* macros.
12         Improved @Def* macros: Now the exact syntax of request, register,
13         and escapes is shown.
14         Added macros for parentheses and brackets to be used in @Def*.
15         Many fixes and improvements of the documentation.
17 2001-03-20  Werner LEMBERG  <wl@gnu.org>
19         * doc/groff.texinfo: Added new index: `st' (for strings).
20         Added macros @Defstr(x).
21         Added macro @Example (adding @group).
22         Other minor improvements.
24 2001-03-19  Werner LEMBERG  <wl@gnu.org>
26         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
27         `rq' for requests.  `fn' is no longer used.
28         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
29         Removed @Deffn(x).
31         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
32         number with name of man page.
34 2001-03-19  Larry Kollar  <kollar@alltel.net>
36         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
37         consistency.
39 2001-03-19  Werner LEMBERG  <wl@gnu.org>
41         * man/groff_font.man: Document `prepro', `postpro', and `print'.
42         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
43         * src/devices/grohtml/grohtml.man: Fixing typos.
45 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
47         * tmac/s.tmac (@IP): Pass `.ip' html tag.
48         * tmac/groff_mwww.man: Remove .LINE macro
49         * tmac/www.tmac (LINE): Add `.ti'.
51         * src/devices/grohtml/post-html.cc (html_printer): New member
52         `indent'.
53         (html_printer::emit_raw): Use it.
54         (html_printer::do_linelength): Ditto.
55         (html_printer::do_pageoffset): Ditto.
56         (html_printer::do_indentation): Ditto.
57         (html_printer::do_tempindent): Ditto.
58         (html_printer::do_break): Ditto.
59         (html_printer::begin_page): Ditto.
60         (html_printer::do_indentedparagraph): New function.
61         (html_printer::troff_tag): Handle `.ip'.
62         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
63         Add `<td width=...>' handling.
64         (html_text::do_table): Add parameter.
65         (html_text::do_indent): Updated.
66         * src/devices/groohtml/html-text.h: Updated.
68 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
70         Introduced simple html tables to implement indentation.
72         * src/devices/grohtml/html.h (word, word_list): New structures.
73         (simple_output): Use it.
74         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
75         (html_printer): Improve indentation handling.
76         (html_printer::emit_raw): Set `in_table' element.  Handle
77         indentation if set.
78         (html_printer::write_header): Move conditional downwards.
79         Don't allow whitespace in tags.
80         (html_printer::do_linelength): Handle line length and indentation
81         conditionally.
82         (html_printer::do_pageoffset): Handle indentation conditionally.
83         (html_printer::do_indentation): Ditto.
84         (html_printer::do_tempindent): New function member.
85         (html_printer::do_fill): Take care of indentation.
86         (html_printer::do_flush): Finish table.
87         (html_printer::do_links): Ditto.
88         (html_printer::do_break): New function for handling `.br' and `.ti'.
89         (html_printer::troff_tag): Use it.
90         Handle `.ti'.
91         (html_printer::flush_globs): Fix.
92         (html_printer::flush_page): Finish table.
93         (html_printer::html_printer): Fix error message.  Set up
94         `linelength'.
95         (html_printer::add_to_sbuf): Remove special handling of character
96         code 255.
97         (to_unicode): Remove `stop()'.
98         (html_printer::write_title): Cleanup.
99         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
100         (html_printer::~html_printer): Flush text and end the line.
101         Use `put_string()'.
102         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
103         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
104         emission of tags.
105         (html_text::start_tag): Disable newlines.
106         (html_text::table_is_void): New function.
107         (html_text::issue_table_begin): Ditto.
108         (html_text::issue_table_end): Ditto.
109         (html_text::push_para): Better table handling.
110         (html_text::do_indent): New function.
111         (html_text::do_table): Ditto.
112         (html_text::done_table): Ditto.
113         (html_text::do_tt): Handle PRE_TAG.
114         (html_text::is_in_table): New function.
115         (html_text::check_emit_text): Handle tables.
116         (html_text::do_emittext): Use `nl()'.
117         (html_text::do_para): Handle table.
118         (html_text::remove_def): New function.
119         * src/devices/grohtml/output.cc (word, word_list): Implement
120         methods.
121         (simple_output::end_line): Flush last word.
122         (simple_output::simple_comment): Ditto.
123         (simple_output::begin_comment): Recoded.
124         (simple_output::end_comment): Ditto.
125         (simple_output::comment_arg): Removed.
126         (simple_output::check_newline): Improve test and flush last word.
127         (simple_output::space_or_newline): Improved.
128         (simple_output::write_newline): Replaced with...
129         (simple_output::nl): This.
130         (simple_output::put_raw_char): Flush last word.
131         (simple_output::check_space): Removed.
132         (simple_output::put_translated_string): Ditto.
133         (simple_output::put_string): Simplified.
134         (simple_output::put_number): Updated.
135         (simple_output::put_float): Ditto.
136         (simple_output::put_symbol): Removed.
137         (simple_output::enable_newlines): Add `check_newline()'.
138         (simple_output::flush_last_word): New function.
140         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
141         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
143         * tmac/s.tmac (@PP, @IP): Add html conditional code.
144         * tmac/an-old.tmac (TP): Ditto.
146 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
148         * mdate.sh: Make it POSIX compliant.
150 2001-03-09  Werner LEMBERG  <wl@gnu.org>
152         Added the `return' request to end a macro immediately.  It simply
153         pops iterators from the input stack until a macro iterator is found.
155         * src/roff/troff/input.cc (input_iterator::is_macro,
156         macro_iterator::is_macro): New member.
157         (input_return_boundary): New class to signal an immediate return
158         to while_request().
159         (input_stack::add_return_boundary, input_stack::is_return_boundary):
160         New functions.
161         (input_stack::clear): Use it.
162         (input_stack::pop_macro): New function.
163         (while_request): Use `is_return_boundary()'.
164         (return_macro_request): New function.
165         (init_input_requests): Use it.
167         * src/roff/troff/TODO: Updated.
168         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
170 2001-03-08  Werner LEMBERG  <wl@gnu.org>
172         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
173         cleanup.
175 2001-03-07  Werner LEMBERG  <wl@gnu.org>
177         Make `\B' more rigid.
179         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
180         parameter.
181         (get_number_rigidly): New function.
182         * src/roff/troff/input.cc (do_expr_test): Use it.
183         * src/roff/troff/token.h: Updated.
185         * src/roff/troff/request.h: Fix typo (init_html_request ->
186         init_markup_request).
188 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
190         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
191         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
192         are now `.begin', `.end', `.image'.
194         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
195         (html_printer::add_to_sbuf): Changing type of `code' parameter.
196         Use add_char_to_sbuf().
197         (to_unicode): New function.
198         (char_translate_to_html): Changing type of `ch' parameter.
199         Use `to_unicode()'.
200         (html_printer::~html_printer): Comment out doctype string.
201         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
202         instead of `.html-end'.
203         (write_start_image): Use `.begin' and `.image' instead of
204         `.html-begin' and `.html-image'.
205         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
206         (html_begin): Renamed to ...
207         (begin): This.
208         (html_end): Renamed to ...
209         (end): This.
210         (html_image): Renamed to ...
211         (image): This.
212         (init_html_requests): Renamed to ...
213         (init_markup_requests): This.
214         * tmac/www.tmac: Updated.
216 2001-02-28  Bram  <bram@avontuur.org>
218         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
219         constructor.
221 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
223         * doc/meref.me: Fixing some typos.
225 2001-02-16  Werner LEMBERG  <wl@gnu.org>
227         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
228         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
229         * src/roff/troff/node.h: Updated.
231 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
233         * tmac/groff_tmac.man: Fix typo.
235 2001-02-16  Werner LEMBERG  <wl@gnu.org>
237         Fixing a bug which prevented proper end-of-sentence recognition
238         between an `unformatted' box and the following text.  As a
239         consequence, vertical line distances are no longer preserved in
240         boxes after a call to `.unformat' -- because boxes aren't
241         line-oriented (contrary to diversions), this doesn't make sense
242         anyway.
244         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
245         value.
246         (vertical_size_node::set_unformat_flag): New method.
247         * src/roff/troff/node.hh: Updated.
248         * src/roff/troff/input.cc (word_space_node::reread,
249         hmotion_node::reread): Reset `unformat' flag after usage.
250         (unformat_macro): Append only if `set_unformat_flag()' returns
251         non-zero.
252         * src/roff/troff/troff.man: Updated.
254 2001-02-15  Werner LEMBERG  <wl@gnu.org>
256         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
257         documentation of `asciify' and `unformat' requests.
259 2001-02-13  Werner LEMBERG  <wl@gnu.org>
261         Redesigned the `unformat' request.  It is no longer connected with
262         `asciify' but rather uses new `reread()' methods if the `unformat'
263         flag is set.  Additionally, the handling of space characters after
264         unformatting has been fixed so that they retain their width.
266         * src/roff/troff/node.h (width_list): New structure to store
267         original widths of spaces.
268         (node): Added `unformat' member.
269         Replaced `num_spaces' variable with `orig_width' list.
270         * src/roff/troff/node.cc (*node::asciify,
271         asciify_reverse_node_list): Removed `unformat_only' flag and related
272         code.
273         (word_space_node::asciify, word_space_node::word_space_node): Use
274         `orig_width'.
275         (word_space_node::~word_space_node): New destructor.
276         (word_space_node::copy): Updated to handle `orig_width'.
277         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
278         (*node::merge_space): Update `orig_width' list if necessary.
279         (*node::set_unformat_flag): New methods to set the `unformat' flag.
280         * src/roff/troff/enc.cc (environment::space_newline): Use
281         `width_list'.
282         (environment::space): Added method to handle space width and
283         sentence space width as parameters.  Use `width_list'.
284         (environment::make_tab_node): Updated.
285         * src/roff/troff/env.h: Updated.
286         * src/roff/troff/input.cc (word_space_node::reread,
287         unbreakable_space_node::reread, hmotion_node::reread): New methods
288         to handle nodes specially if `unformat' flag is set.
289         (do_asciify_macro): Renamed back to ...
290         (asciify_macro): This.
291         (unformat_macro): New implementation to simply set the `unformat'
292         flag.
294         * MORE.STUFF: Added more info about deroff.
296 2001-02-08  Werner LEMBERG  <wl@gnu.org>
298         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
299         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
300         and `add_self()' methods to avoid hyphenation.  For example, the
301         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
302         soft hyphen after `foo'.  Now the hyphen list is correctly
303         `foo<ignore><ignore>bar'.
305 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
307         * tmac/groff_tmac.man: Fix `BIR' macro.
309 2001-02-04  Werner LEMBERG  <wl@gnu.org>
311         A new escape sequence `\:', inserting a zero-width break point.
313         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
314         * src/roff/troff/input.cc (get_copy, token::next, asciify):
315         Implement it.
316         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
317         method.
318         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
319         and `asciify()' methods.
320         * src/roff/troff/node.cc (space_node::space_node): Updated.
321         (space_node::asciify): Handle `was_escape_colon'.
322         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
324         Handle `\~' similar to other comparable requests.
326         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
327         label.
328         (token::next): Move creation of an unbreakable_space_node to...
329         (token::add_to_node_list): Here.
331         Fix a bug which sometimes prevented hyphenation of words connected
332         with `\~' or `\ ' (and other escape sequences handled as
333         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
334         (after a call to the `unformat' request).
336         * src/roff/troff/env.h (environment::possibly_break_line,
337         environment::hyphenate_line): Introducing `start_here' parameter.
338         * src/roff/troff/env.cc (environment::space_newline,
339         environment::space): Use it.
340         (environment::possibly_break_line, environment::hyphenate_line):
341         Implement it.
342         * src/roff/troff/input.cc (process_input_stack): Use it.
343         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
344         space_char_hmotion_node, overstrike_node): Add
345         `get_hyphenation_type()' method.
346         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
347         if `unformat_only' is active.
349 2001-01-30  Werner LEMBERG  <wl@gnu.org>
351         Implemented new read-only number register `.linetabs' which
352         returns 1 if in line-tabs mode, 0 otherwise.
354         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
355         * src/roff/troff/env.cc (get_line_tabs): New function.
356         (init_env_requests): Use it.
357         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
359         * VERSION, REVISION: Changing to 1.17.0.
361 2001-01-28  Werner LEMBERG  <wl@gnu.org>
363         Fixed a bug which prevented hyphenation of words which are finished
364         with `\)'.
366         * src/roff/troff/token.h (token): Add enum type
367         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
368         * src/roff/troff/input.cc (token::next, token::description,
369         get_line_arg, token::add_to_node_list, token::process): Use it.
371 2001-01-27  Werner LEMBERG  <wl@gnu.org>
373         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
374         * src/roff/troff/div.cc (do_divert): Use it.
376         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
378 2001-01-25  Werner LEMBERG  <wl@gnu.org>
380         Adding the `linetabs' request.  If set, tab distances are not
381         computed relative to the input line but relative to the output line.
383         * src/roff/troff/env.h (environment): New member `line_tabs'.
384         * src/roff/troff/env.cc (line_tabs_request): Implement request.
385         (environment::environment, environment::copy): Updated.
386         (environment::distance_to_next_tab): Use `line_tabs'.
387         (init_env_requests): Register request.
388         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
389         fixes.
391 2001-01-24  Werner LEMBERG  <wl@gnu.org>
393         Introducing a new read-only register `.int' which is set to a
394         positive value if the last output line is interrupted (i.e., if it
395         contains `\c').
397         * src/roff/troff/env.cc (init_env_requests): Add it.
398         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
400 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
402         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
403         * src/preproc/html/pre-html.cc (findPrefix): New function which
404         generates the troff executable name via the system prefix.
405         * src/preproc/eqn/main.cc: Modified warning message.
407 2001-01-23  Werner LEMBERG  <wl@gnu.org>
409         troff's `box' and `boxa' requests didn't preserve temporary
410         indentation.
412         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
413         `saved_target_text_length' members.
414         * src/roff/troff/div.cc (do_divert): Use them.
416         Tabs (but not yet leaders and fields) are now handled correctly by
417         `asciify' request.
419         * node.h (hmotion_node): Add field `was_tab'.
420         * env.cc (environment::make_tab_node): Set it.
421         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
423         Added new request `unformat' which will, contrary to `asciify',
424         preserve font information after unformatting (i.e., only nodes
425         dealing with horizontal space are converted back to input
426         characters).
428         * input.cc (asciify_macro): Renamed to ...
429         (do_asciify_macro): this, having a new parameter `unformat_only'.
430         (asciify_macro, unformat_macro): New; using do_asciify_macro.
431         (init_input_requests): Added `unformat'.
432         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
433         parameter to control asciification process.
434         * node.h (*_node::asciify): Ditto.
435         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
437 2001-01-20  Werner LEMBERG  <wl@gnu.org>
439         * doc/groff.texinfo: Minor improvement of `.in' documentation.
441 2001-01-18  Werner LEMBERG  <wl@gnu.org>
443         * tmac/ps.tmac: Remove call of psold.tmac.
444         * tmac/psold.tmac: Comment updated.
445         * tmac/psnew.tmac: Removed since no longer needed.
446         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
448         * font/devutf8/R.proto: Adding `shc' glyph.
449         * font/devutf8/NOTES: Updated.
451         * test-groff: Updated.
453 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
455         First cut of the new html device driver.  Changes to pre-html and
456         the new grohtml are too numerous to be documented here.
458         Stuff related to `html' has been renamed to `html-old' and `html2'
459         stuff has been renamed to `html' (including directories).  The new
460         html device driver is therefore invoked as `-Thtml'.
462         Added new `\O' escape to suppress output (needed by html driver).
464         Added functions and code to pass info about input-level commands
465         (`.in', `.fl', etc.) to html driver.
467         Three new functions (.html-begin, .html-end, and .html-image) for
468         better html handling: `html-begin' will execute the remaining line
469         if at the outermost nesting level, increasing an internal counter.
470         `html-end' does the same but decreases the internal counter.
471         `html_image' puts its arguments into a special node (suppress_node)
472         to define an image region.
474         The `output' request has been removed.
476         * tmac/html-tags.tmac: Removed.
477         * tmac/arkup.tmac: Updated and renamed to ...
478         * tmac/www.tmac: New file.
479         * tmac/markup.tmac Updated and renamed to ...
480         * tmac/mwww.tmac: New file.
481         * tmac/Makefile.sub: Updated.
482         * tmac/an-old.tmac: Updated.
483         * tmac/eqnrc: Updated.
484         * tmac/groff_man.man
485         * tmac/groff_markup.man: Updated and renamed to ...
486         * tmac/groff_mwww.man: New file.
487         * tmac/groff_tmac.man: Updated.
488         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
489         * tmac/html.tmac: Updated and renamed from html2.tmac.
490         * tmac/pspic.tmac: Updated html support.
491         * tmac/s.tmac: Added html output support.
492         * tmac/troffrc, tmac/troffrc-end: Updated.
494         * Makefile.in, doc/Makefile: Updated.
495         * doc/groff.texinfo: Added info about new `\O' escape.
496         * doc/homepage.ms: Use `MAILTO' macro.
498         * font/devhtml/DESC.proto: Add `C' font.
499         * font/devhtml/Makefile.sub: Updated.
500         * font/devhtml/R.proto: Minor fixes.
501         * font/devhtml-old/Makefile.sub: Updated.
503         * src/devices/grohtml-old/Makefile.sub: Updated.
505         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
506         method.
507         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
508         graphic_start): Add `inline' parameter.  Update.
509         (html_end_suppress, graphic_end): Update.
511         * src/include/html-strings.h: New file.
512         * src/include/htmlindicate.h: Comments updated.
513         * src/include/printer.h: Updated.
515         * src/preproc/eqn/main.cc (do_file, main): Updated.
516         * src/preproc/pic/troff.cc (troff_output::start_picture,
517         troff_output::finish_picture): Updated.
518         * src/preproc/tbl/main.cc (process_input_file): Updated.
520         * src/roff/groff/groff.cc (main): Updated.
521         Pass device arguments to predrivers also.
522         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
523         * src/roff/troff/env.h (environment): Updated.
524         New elements `need_eol' and `ignore_next_eol' (for html output).
525         * src/roff/troff/env.cc (environment::environment): Add initializers
526         for `need_eol' and `ignore_next_eol'.
527         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
528         functions.
529         (point_size, fill, no_fill, center, right_justify, line_length,
530         indent, temporary_indent, break_request, handle_tab): Use
531         `add_html_tag()'.
532         (set_tabs): Use `add_html_tag_tabs()'.
533         (environment::add_html_tag): Updated.
534         (environment::do_break): Updated.
535         * src/roff/troff/div.cc (space_request, flush_output): Use
536         `environment::add_html_tag()'.
537         * src/roff/troff/input.cc: Updated.
538         New variable `html_level' to indicate nested `html-begin' requests.
539         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
540         (non_interpreted_char_node, token_node, non_interpreted_node): Add
541         `force_tprint()' method.
542         (token::next): Handle `\O'.
543         (do_suppress): Implement it.
544         (html_begin, html_end, html_image): New functions.
545         (init_output_requests): Renamed to ...
546         (init_html_requests): this.
547         (main): Use it.
548         (macro::append_str, macro::append_unsigned, macro::append_int): New
549         methods.
550         New variable `output_low_mark_miny' to limit minimal value of y.
551         (reset_output_registers): Use it.
552         (output_request): Removed.
553         (get_output_registers): New function.
554         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
555         (*_node): Added `force_tprint()' if necessary.
556         (special_node): New elements `tf' and `get_tfont()'.
557         (suppress_node): New class.
558         * src/roff/troff/node.cc:
559         New global variables `image_no' and `suppress_start_page'.
560         (real_output_file): New method `is_on()'.
561         (troff_output_file): New method `start_special(tfont)'.
562         (troff_output_file::really_print_line): Use `tprint' conditionally.
563         (real_output_file::print_line): Updated.
564         (real_output_file::on): Updated.
565         (*_node): Added `force_tprint()'.
566         (special_node::special_node): Initializer updated.
567         (special_node::same, special_node::copy, special_node::tprint_start):
568         Updated.
569         (get_reg_int, get_reg_str): New functions.
570         (suppress_node::*): New methods.
571         New global variables last_position, last_image_filename;
572         (min): New inline function.
573         * src/roff/troff/reg.h, src/roff/troff/request.h,
574         src/roff/troff/troff.h: Updated.
576 2001-01-13  Werner LEMBERG  <wl@gnu.org>
578         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
579         documentation of `asciify' request.
581 2001-01-12  Werner LEMBERG  <wl@gnu.org>
583         * src/roff/troff/input.cc: Move definition of special characters
584         like `ESCAPE_TILDE' to ...
585         * src/roff/troff/input.h: New file.
586         * src/roff/troff/Makefile.sub (HDRS): Add it.
588         Extending the .asciify request to `unformat' space characters also.
590         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
591         to count input space characters.
592         Update constructors to take care of it.
593         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
594         `ESCAPE_SPACE' instead of normal space.
595         (word_space_node::asciify): New method.
596         (unbreakable_space_node::asciify): New method.
597         (word_space_node::merge_space): New method.
598         * src/roff/troff/env.cc (environment::space_newline,
599         environment::space): Add code to initialize `num_spaces' (using the
600         constructor of `word_space_node').
601         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
602         Document it.
604 2001-01-09  Werner LEMBERG  <wl@gnu.org>
606         * man/groff_char.man: Use table header traps only conditionally.
608 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
610         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
612 2001-01-08  Werner LEMBERG  <wl@gnu.org>
614         Introducing the `box' and `boxa' requests which are similar to
615         `di' resp. `da' but omitting a partially filled line (which is
616         restored after ending the diversion).
618         * src/roff/troff/div.h (diversion): Add elements to save partially
619         filled line.
620         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
621         partially filled line.
622         (divert, divert_append): Updated.
623         (box, box_append): New functions.
624         (init_div_requests): Use them.
625         * src/roff/troff/env.h (environment): do_divert() is now a friend.
626         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
628         * doc/groff.texinfo: Fix documentation of `lf' request.
630 2000-12-25  Werner LEMBERG  <wl@gnu.org>
632         * src/roff/troff/troff.man, NEWS: Document `writem' request.
634 2000-12-21  Werner LEMBERG  <wl@gnu.org>
636         Ignore `ss' request if in compatibility mode.
638         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
639         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
640         * src/roff/troff/env.cc (space_size): Use it.
642         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
643         `ss' request in nroff mode.
645         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
646         changes.
648 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
650         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
652 2000-12-13  Werner LEMBERG  <wl@gnu.org>
654         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
655         * src/preproc/eqn/neqn.man: Small fixes and additions.
657 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
659         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
660         Fixing typo.
662         * src/preproc/eqn/neqn.man: New file.
664         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
665         negative' warning.
667         * tmac/e.tmac: Add `T&' macro.
668         Fix `indent cannot be negative' warning.
669         * tmac/s.tmac: Fix `indent cannot be negative' warning.
671 2000-12-07  Werner LEMBERG  <wl@gnu.org>
673         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
675 2000-12-06  Werner LEMBERG  <wl@gnu.org>
677         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
678         `alloca' symbol .
680         * MORE.STUFF: Added info about deroff for djgpp.
682         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
683         documentation of -rcR switch.
685 2000-12-03  Werner LEMBERG  <wl@gnu.org>
687         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
688         if -rcR=1 (which is now the default in nroff mode), a single, very
689         long page is created instead of multiple pages: All `ne' and `wh'
690         requests are put into conditionals; a new macro `an-end' is added to
691         be called with `em'.
693         Some other minor cleanups.
695         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
697 2000-12-02  Werner LEMBERG  <wl@gnu.org>
699         Fixing a bug which prevented hyphenation in words followed
700         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
702         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
703         Adding possibly_break_line().
704         * src/roff/troff/env.h (environment): Make possibly_break_line()
705         public.
707         Make `\~' usable in .tr request.
709         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
710         (token): Add stretchable_space().
711         * src/roff/troff/input.cc (token::next, token::delimiter,
712         token::description, process_input_stack, do_translate,
713         add_to_node_list, token::process): Use it.
714         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
715         for adjusting the space.
716         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
717         for stretchable space.
718         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
719         (make_node): Add code for stretchable space.
720         * src/roff/troff/env.cc (environment::add_char): Use it.
721         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
722         (get_copy, token::next, transparent_translate, asciify): Use it.
724         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
725         doc/groff.texinfo: Updated.
726         * man/groff.man: Small reorderings.
728 2000-11-23  Werner LEMBERG  <wl@gnu.org>
730         * NEWS: Fixes.
731         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
732         option.
733         * src/roff/troff/input.cc (main): Add `config_macro_path' and
734         `safer_macro_path' to -M option.
735         * src/roff/troff/troff.man: Fixes.
737 2000-11-22  Werner LEMBERG  <wl@gnu.org>
739         Use safer path (except for config files) if -U isn't specified.  Add
740         a special macro path (without home and current directory) for config
741         files.  Add home directory to unsafe path for consistency.  Don't
742         include the home directory in the font path.
744         * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
745         `macro_path'.
746         * src/include/macropath.h: Add `config_macrp_path'.
747         * src/lib/libgroff/fontfile.cc: Fix font path.
748         * src/roff/troff/input.cc (process_startup_file): Use
749         `config_macro_path'.
750         (main): Select unsafe path if -U is given.
752         * src/preproc/eqn/main.cc (main): Fixing search path for
753         configuration file.
754         * src/preproc/eqn/eqn.man: Updated.
756         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
757         Updated.
759         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
760         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
761         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
762         src/devices/grotty/grotty.man: Updated.
764         * Makefile.in: Fix comments.
766 2000-11-17  Werner LEMBERG  <wl@gnu.org>
768         * tmac/safer.tmac: Empty file added (again) for compatibility
769         reasons.
770         * tmac/Makefile.sub: Updated.
772 2000-11-16  Werner LEMBERG  <wl@gnu.org>
774         * src/devices/grodvi/dvi.cc (main),
775         src/devices/grohtml2/post-html.cc (main),
776         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
777         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
778         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
779         (main), src/preproc/html2/pre-html.cc (main),
780         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
781         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
782         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
783         (main), src/utils/hpftodit/hpftodit.cc (main),
784         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
785         (main), src/utils/lookbib/lookbib.cc (main),
786         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
787         (main): Use stdout for -v.
788         * src/roff/groff/groff.cc (run_commands),
789         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
790         to make direct printing to stdout possible.
791         * src/roff/groff/pipeline.h: Updated.
793         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
794         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
795         * src/utils/afmtodit/afmtodit.man: Updated.
797         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
798         (version): New function.
799         (usage): Updated.
800         * src/utils/addftinfo/addftinfo.man: Updated.
802         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
803         Fixing copyright dates.
805         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
806         replacing it.
808         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
809         version_string.
811         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
813 2000-11-15  Werner LEMBERG  <wl@gnu.org>
815         In all programs, make -v return immediately with exit status 0 to
816         be compliant with the GNU standard.
818         * src/devices/grodvi/dvi.cc (main),
819         src/devices/grohtml2/post-html.cc (main),
820         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
821         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
822         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
823         (main), src/preproc/html2/pre-html.cc (main),
824         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
825         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
826         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
827         (main): Implement it.
828         * NEWS: Updated.
830         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
831         and postprocessors to the -v option.
833         * src/roff/grog/grog.pl: Implement -v.
834         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
835         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
837         * src/roff/nroff/nroff.sh: Implement -v.
838         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
839         * src/roff/nroff/nroff.man: Updated.
840         
841         * src/preproc/eqn/main.cc (main): Fix comment typo.
843         * MORE.STUFF: Added info about djgpp port of grap.
845 2000-11-14  Werner LEMBERG  <wl@gnu.org>
847         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
848         mode (or rather, implemented non-compatibility mode).
849         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
851         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
852         replacing it -- we don't find gxditview otherwise.
853         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
855         * src/preproc/pic/depend: Removed.  Unnecessary.
857         Implemented dummy keyword `solid' in pic for compatibility with
858         AT&T pic.
860         * lex.cc (lookup_keyword): Added `solid'.
861         * pic.y: Added SOLID with dummy rule.
862         * pic.cc, pic_tab.h: Regenerated.
863         * doc/pic.ms: Updated.
865 2000-11-13  Werner LEMBERG  <wl@gnu.org>
867         For security reasons, don't use the current directory but the home
868         directory while searching and scanning troffrc and troffrc-end.
869         Similarly, replace the current directory with the home directory
870         in the font path.
872         * Makefile.in (fontpath, tmacpath): Remove current directory.
874         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
875         two parameters `add_home' and `add_current'.
876         (search_path::~search_path, search_path::command_line_dir,
877         search_path::open_file): Remove tests for `dirs' being zero.
878         * src/include/searchpath.h: Adjust.
879         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
880         `safer_macro_path'.
881         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
883         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
884         * src/roff/troff/input.cc: Use `mac_path', initialized with
885         `macro_path'.
886         (process_startup_file): Set `mac_path' to `safer_macro_path'.
887         * src/roff/troff/env.cc: Use `mac_path'.
889         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
891         * NEWS, man/roff.man, src/roff/troff/troff.man,
892         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
893         Updated.
895 2000-11-12  Werner LEMBERG  <wl@gnu.org>
897         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
899         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
900         * configure.in: Fix typo in comment.
901         * configure: Regenerated.
903         * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
904         dates.
906 2000-11-08  Werner LEMBERG  <wl@gnu.org>
908         Add system tmac directory (/usr/local/lib/groff/site-tmac).
910         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
911         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
912         $(systemtmacdir).
913         Use @libdir@.
914         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
915         * tmac/Makefile.sub (install_data): Create
916         $(systemtmacdir) and $(localtmacdir).
917         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
918         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
919         NEWS, doc/groff.texinfo: Updated and minor fixes.
921         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
922         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
923         $(systemtmacdir) since the wrapper files are platform-dependent.
925 2000-11-01  Werner LEMBERG  <wl@gnu.org>
927         * doc/groff.texinfo: Fix typo.
929 2000-10-26  Werner LEMBERG  <wl@gnu.org>
931         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
932           tmac.doc.old -> doc-old.tmac
933           tmac.an.old  -> an-old.tmac
935         * tmac/tmac.*: Moved to ...
936         * tmac/*.tmac: this.
937         * tmac/man.local: Fix comment.
938         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
939         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
940         Added some `FILES' sections.  More use of @...@ directives.  Other
941         minor updates.
942         * arch/djgpp/README, font/devutf8/NOTES: Updated.
943         * doc/homepage.ms, doc/groff.texinfo: Updated.
944         * man/groff.man, man/roff.man: Updated.
945         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
946         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
947         src/devices/grotty/grotty.man: Updated.
948         * src/preproc/pic/pic.man: Updated.
949         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
950         instead of -mdoc.old.
951         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
952         * src/roff/nroff/nroff.man: Updated.
953         * NEWS: Updated.
955         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
957         * tmac/mm.diff: Removed -- it has no use now since the mm package
958         is part of groff.
960         * tmac/*: Removed trailing spaces.
962         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
963         the tmac subdirectory also).
965         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
966         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
967         stuff since it is no longer needed.
969         * README, PROBLEMS: Updated.
971 2000-10-25  Werner LEMBERG  <wl@gnu.org>
973         Invert current behaviour: Search first FOOBAR.tmac, then
974         tmac.FOOBAR.
976         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
977         (open_mac_file, macro_source): Implement it.
978         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
979         doc/groff.texinfo, NEWS: Document it.
981         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
982         Small documentation improvements.
984         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
985         subdirectory also).
987         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
989 2000-10-24  Werner LEMBERG  <wl@gnu.org>
991         Add local tmac directory (groff/site-tmac).
993         * Makefile.in: Add $(localtmacdir).
994         (uninstall_dirs): Add $(localtmacdir).
995         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
996         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
997         in $(localtmacdir).  Create $(localtmacdir).
998         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
999         Updated and minor fixes.
1001         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
1003         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
1005 2000-10-23  Werner LEMBERG  <wl@gnu.org>
1007         Move hyphen.us to tmac directory.
1009         * src/roff/troff/hyphen.us: Removed.
1010         * src/tmac/hyphen.us: Added.
1011         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
1013         Change installation structure for data files from .../groff/... to
1014         .../groff/<version><revision>/... to be conform with other GNU
1015         programs.
1017         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
1018         doc/Makefile: Implement it.
1019         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
1020         * configure: Updated.
1021         * arch/djgpp/README, font/devutf8/NOTES: Use it.
1022         * NEWS: Document it.
1023         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
1024         @MACRODIR@ instead of hard-coded directories.
1026 2000-10-22  Werner LEMBERG  <wl@gnu.org>
1028         Implement $GROFF_BIN_PATH environment variable (which defaults to
1029         $bindir) used for child programs of groff and similar wrappers.
1031         * gendefs.sh: Improve documentation.
1032         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
1033         src/preproc/eqn/Makefile.sub (neqn),
1034         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
1035         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
1036         $GROFF_BIN_PATH.
1037         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
1038         $GROFF_PATH__ (the latter for communication with troff).
1039         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
1040         set.
1041         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
1042         doc/groff.texinfo: Document it.
1044         * doc/groff.texinfo: Improve documentation of troff's -a option.
1046 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
1048         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
1049         non-intrusive eol marker.
1050         (troff_output_file::determine_line_limits): New function.
1051         (troff_output_file::draw): Use it.
1052         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
1053         output_pending_lines() instead of output_line().
1054         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
1055         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
1056         createImage): Small fixes.
1057         
1058 2000-10-14  Werner LEMBERG  <wl@gnu.org>
1060         Replace tmac.safer with a real secure solution.
1062         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
1063         system_request, pipe_output): Disable requests if in safer mode.
1064         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
1065         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
1066         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
1067         doc/groff.texinfo, src/roff/groff/groff.man,
1068         src/roff/troff/troff.man, arch/djgpp/README: Updated.
1070         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
1071         (resource_manager::output_prolog): Replace setenv() with putenv().
1073 2000-10-09  Werner LEMBERG  <wl@gnu.org>
1075         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
1076         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
1077         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
1078         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
1079         compilation errors with some compilers.  It seems that this code
1080         is no longer necessary -- if yes, it is easy to add some #ifdef's
1081         for that particular old-fashioned compiler.
1083         * MORE.STUFF: Added info about Meta-tbl.
1085         * doc/groff.texinfo: Added more info about `.if "..."..."'.
1087 2000-10-07  Werner LEMBERG  <wl@gnu.org>
1089         Adding a new escape sequence \B'...': If the string between
1090         the delimiters is a valid numeric expression, return the character
1091         `1', and `0' otherwise.  This is an analogon to \A.
1093         * src/roff/troff/input.cc (do_expr_test): Implement it.
1094         (token::next): Use it.
1095         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
1097         * tmac/tmac.trace: Made independent from escape character.
1099 2000-10-06  Werner LEMBERG  <wl@gnu.org>
1101         Adding a new request .dei: define indirect.  The first and second
1102         parameter of .dei are taken from string registers instead directly;
1103         this very special request is needed to make tmac.trace independent
1104         from the escape character (which might even be disabled).
1106         * src/roff/troff/input.cc (do_define_macro): Implement it.
1107         (define_macro_indirect): New function.
1108         (init_input_requests): Use it.
1110         Adding two requests .ecs and .ecr: Save and restore the escape
1111         character.  These two requests are needed to make tmac.trace
1112         independent from the escape character (which might even be
1113         disabled).
1115         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
1116         Implement it.
1117         (init_input_requests): Use it.
1119         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1121 2000-09-22  Ricardo Soares Guimarães <ricardo@conectiva.com.br>
1123         Adding a new option -P and new environment variable GROPS_PROLOGUE
1124         to grops, selecting a different prologue file (minor modifications
1125         by WL).
1127         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
1128         src/devices/grops/ps.cc (main): Implement it.
1129         * src/devices/grops/grops.man, NEWS: Document it.
1131 2000-09-22  Werner LEMBERG  <wl@gnu.org>
1133         * INSTALL: Add info about selecting paper format.
1135 2000-09-21  Werner LEMBERG  <wl@gnu.org>
1137         * src/roff/troff/input.cc (main): Fixing compiler warning.
1138         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
1139         strings.h from the former to the latter.
1140         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
1141         stuff from the former to the latter.
1143 2000-09-11  Werner LEMBERG  <wl@gnu.org>
1145         Implementing two new requests .tm1 and .tmc: The former is similar
1146         to .tm but can output leading spaces; its syntax is similar to
1147         defining a string, i.e., a `"' can be used to mark the beginning of
1148         the string to be written to stderr: `.tm1 " test'.  The latter is
1149         similar to .tm1 but doesn't write out a final newline character.
1151         * src/roff/troff/input.cc (terminal1, terminal_continue,
1152         do_terminal): New functions.
1153         (init_input_requests): Use them.
1154         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1156 2000-09-09  Werner LEMBERG  <wl@gnu.org>
1158         * tmac/groff_mdoc.samples.man: Small fixes.
1160 2000-09-08  Werner LEMBERG  <wl@gnu.org>
1162         * tmac/groff_mdoc.man: Fixing typo.
1164 2000-09-02  Werner LEMBERG  <wl@gnu.org>
1166         Implementing a .nop request which does nothing.
1168         * src/roff/troff/input.cc (nop_request): New function.
1169         (init_input_requests): Use it.
1170         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1172 2000-09-01  Werner LEMBERG  <wl@gnu.org>
1174         * doc/groff.texinfo: Added some comments.
1176 2000-08-30  Werner LEMBERG  <wl@gnu.org>
1178         * src/roff/troff/TODO: Updated.
1180 2000-08-28  Bruno Haible  <haible@clisp.cons.org>
1182         * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
1183         of 'install'.
1185 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1187         * doc/groff.texinfo: Fix comment how to compile the DVI file.
1189 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
1191         * font/devps/generate/Makefile (SHELL): Define explicitly to
1192         "/bin/sh", for non-Unix platforms.
1193         (extraclean): Use a more portable "" quoting instead of a
1194         backslash (which doesn't work on DOS/Windows).
1195         
1196         * font/devlj4/generate/Makefile (extraclean): Ditto.
1198         * font/devdvi/generate/Makefile (extraclean): Ditto.
1200 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1202         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
1203         src/roff/troff/troff.man: Document Eli's latest changes.
1205 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
1207         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
1208         macro file names of the form NAME.tmac as well as tmac.NAME.
1210 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1212         * src/include/posix.h: Remove definition of FILENAME_MAX.
1214         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
1215         `sys_fatal' and `stop' function().
1217         * test-groff: Updated.
1219 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
1221         Added the new troff command .output <arg> to suppress output (while
1222         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
1223         registers (for passing the output dimensions to the output device).
1225         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
1226         parameter.
1227         * src/roff/troff/node.h, src/roff/troff/node.cc
1228         (troff_output_file::really_print_line,
1229         ascii_output_file::really_print_line,
1230         supress_output_file::really_print_line): Use `width' parameter.
1231         (troff_output_file::really_on, troff_output_file::really_off,
1232         output_file::on, output_file::off, real_output_file::on,
1233         real_output_file::off, real_output_file::really_on,
1234         real_output_file::really_off): New functions.
1235         (real_output_file:public output_file): New variable `output_on'.
1236         (real_output_file::begin_page, real_output_file::copy_file,
1237         real_output_file::transparent_char, real_output_file::print_line):
1238         Use it.
1239         (real_output_file::print_line): Use check_output_limits.
1240         * src/roff/troff/reg.h, src/roff/troff/request.h,
1241         src/roff/troff/input.cc (assign_registers): New function to remove
1242         two `goto's.
1243         (do_ps_file): Use it.
1244         (check_output_limits, reset_output_registers, output_request,
1245         init_output_requests): New functions.
1246         (init_input_requests): Updated.
1248         Added new grohtml2 device and html2 preprocessor (coding
1249         not yet finished) which will eventually replace grohtml.
1251         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
1252         Updated.
1253         * src/include/htmlindicate.h, src/include/htmlindicate
1254         (html_begin_suppress, html_end_suppress): New functions.
1255         * src/preproc/tbl/main.cc: Use it.
1256         * src/roff/groff/groff.cc: Add support for html2 device (which will
1257         automatically invoke the html2 preprocessor).
1258         * src/roff/troff/input.cc (is_html2): New variable.
1259         * src/roff/troff/troff.h, src/roff/troff/env.h,
1260         src/roff/troff/env.cc (environment::add_html_tag): New function
1261         (uses `is_html2').
1262         (environment::do_break): Use it.
1263         * font/devhtml2/*: New files.
1264         * src/devices/grohtml2: New device.
1265         * src/preproc/html2: New preprocessor.
1266         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
1268 2000-08-23  Werner LEMBERG  <wl@gnu.org>
1270         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
1272 2000-08-22  Werner LEMBERG  <wl@gnu.org>
1274         * src/include/lib.h: Provide a fix for IRIX to not include
1275         groff-getopt.h.
1277 2000-08-18  Werner LEMBERG  <wl@gnu.org>
1279         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
1280         since some non-GNU sed programs can't handle null regexps.
1281         * configure, src/preproc/eqn/Makefile.sub,
1282         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
1284         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
1285         bug (string.h and strings.h are both needed according to latest
1286         POSIX standard).
1288         * MORE.STUFF: Added info about unroff and troffcvt.
1290 2000-08-08  Werner LEMBERG  <wl@gnu.org>
1292         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
1293         used before -ms.
1295         * tmac/tmac.man.old: Remove unused number register.
1297         * tmac.doc: Minor documentation fix.
1299 2000-08-07  Paul Eggert  <eggert@twinsun.com>
1301         * src/roff/groff/pipeline.c (is_system_shell):
1302         Fix typo: "monocased_shell" no longer exists.
1304 2000-08-07  Paul Eggert  <eggert@twinsun.com>
1306         Remove FILENAME_MAX limits.
1308         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
1309         that the argument length is less than FILENAME_MAX.
1310         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
1311         Use struct hack to allocate and free file name.
1312         (struct xtmpfile_list): fname is now part of the structure,
1313         not a pointer to another string.
1315 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
1317         * src/include/posix.h: Add a default value for FILENAME_MAX.
1319 2000-08-06  Paul Eggert  <eggert@twinsun.com>
1321         Add support for new BSD-style man pages (with ".Dd" instead of
1322         ".TH"), so that "groff -man" understands both styles, even
1323         when running "groff -man" on a host whose system man page
1324         macros don't support ".Dd".
1326         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
1327         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
1328         in case the system man macros don't define Dd or TH.
1330         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
1331         * tmac/tmac.an: New one-line file.
1332         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
1334 2000-08-06  Werner LEMBERG  <wl@gnu.org>
1336         * src/roff/troff/troff.man: Fixing typos.
1338 Version 1.16.1 released
1339 =======================
1341 2000-07-31  Werner LEMBERG  <wl@gnu.org>
1343         Preparing release 1.16.1.
1345         * REVISION: Revision number set to 1.
1346         * MORE.STUFF: Added info about port to DOS.
1347         * NEWS, win32-diffs: Updated.
1349         * src/include/nonposix.h: Remove first line -- this file is used
1350         in C also.
1352         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
1353         link to it.
1355 2000-07-30  Werner LEMBERG  <wl@gnu.org>
1357         * doc/texinfo.tex: Update to latest version.
1359 2000-06-28  Paul Eggert  <eggert@twinsun.com>
1361         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
1362         commands that fail.  Don't assume that "export a=b" is valid shell
1363         syntax.  This is needed for Solaris 2.5.1.
1365         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
1366         comment about missing Solaris headers.
1368         * PROBLEMS: Add section about problems with Sun Make and VPATH.
1370 2000-06-25  Werner LEMBERG  <wl@gnu.org>
1372         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
1373         SET_BINARY().
1375         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
1377         * win32-diffs: Updated.
1378         * README.WIN32: Added CRs to make all Windows editors happy.
1380         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
1381         src/roff/groff/pipeline.c).
1383 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
1385         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
1386         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
1388 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
1390         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
1391         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
1392         are binary files.
1393         (main): Support non-Posix systems with several different styles of
1394         slash characters in file names.
1396         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
1397         (main) [SET_BINARY]: Switch stdin into binary mode.
1399         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
1400         (main): Support file names with several possible slash-type
1401         characters, as given by DIR_SEPS[] in nonposix.h.
1402         (main) [__MSDOS__]: If renaming the temporary index file fails
1403         because it has more than one dot in its trunk, replace the dot
1404         with an underscore and try again.
1405         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
1406         Newline.
1407         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
1409         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
1410         (File::File): Open the input file in binary mode.  Strip CR
1411         characters from each CR-LF pair.
1412         (xbasename): Support file names with several possible slash-type
1413         characters, as given by DIR_SEPS[] in nonposix.h.
1415         * src/include/Makefile.sub (HDRS): Add nonposix.h.
1417         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
1418         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
1419         [!_POSIX_VERSION]: Define for traditional Unix systems.
1420         (real_output_file::real_output_file): Remove the MSVC-specific
1421         call to popen, use instead POPEN_WT, appropriately defined on
1422         nonposix.h.  #include nonposix.h.
1423         (real_output_file::~real_output_file): Remove the MSVC-specific
1424         call to pclose, a suitable macro is now defined on nonposix.h.
1425         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
1426         and WEXITSTATUS instead of assuming traditional Unix
1427         interpretation of the status returned by pclose.
1429         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
1430         call to popen, use POPEN_RT instead (appropriately defined on
1431         nonposix.h).  #include nonposix.h.
1432         (ps_bbox_request): Open the PostScript file in binary mode.
1433         Close the file after processing it.
1434         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
1435         nonposix.h.
1437         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
1438         A version of run_pipeline that doesn't use `fork'.
1439         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
1440         (system_shell_name, system_shell_dash_c)
1441         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
1442         the ugliness of testing DOS/Windows file names for equality, and
1443         support both stock shells and ports of Unix shells.
1445         * src/roff/groff/groff.cc: #include nonposix.h.
1446         (BSHELL): Definition moved to nonposix.h.
1447         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
1448         instead of a literal "-c".
1449         (xbasename): Support file names with several possible slash-type
1450         characters, as given by DIR_SEPS[] in nonposix.h.
1451         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
1452         of literal strings.
1454         * src/preproc/soelim/soelim.cc: #include nonposix.h.
1455         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
1457         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
1458         pic_tab.h.
1460         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
1462         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
1463         eqn_tab.h.
1465         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
1467         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
1468         P_tmpdir is defined, use it instead of the literal "/tmp".
1469         (remove_tmp_files, add_tmp_file): New functions.
1470         (xtmpfile): Record temporary files and register an atexit function
1471         to delete them explicitly, instead of relying on the OS to do
1472         that, which doesn't work on non-Unix systems.
1474         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
1475         (search_path::search_path): Use PATH_SEP instead of a literal
1476         colon.
1477         (search_path::command_line_dir): Ditto.
1478         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
1479         to support non-Posix systems.
1481         * src/libc/libbib/search.cc: #include nonposix.h.
1482         (search_list::add_file): Open the file in binary mode.
1484         * src/libs/libbib/linear.cc: #include nonposix.h.
1485         (file_buffer::load): Remove \r characters preceding \n from the
1486         loaded buffer.
1488         * src/libs/libbib/index.cc: #include nonposix.h.
1489         (make_index_search_item): Open index_filename in O_BINARY mode.
1490         (index_search_item_iterator::get_tag): Ditto.  Remove \r
1491         characters before \n characters.
1492         (index_search_item::check_files): Open files in binary mode.
1493         (index_search_item::munge_filename): Support DOS-style file names
1494         with backslashes and drive letters, use IS_ABSOLUTE.
1496         * src/devices/grops/ps.cc: #include nonposix.h.
1497         (main) [SET_BINARY]: Switch stdout to binary mode.
1499         * src/devices/grolj4/lj4.cc: #include nonposix.h.
1500         (main) [SET_BINARY]: Switch stdout to binary mode.
1502         * src/devices/grolbp/lbp.cc: #include nonposix.h
1503         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
1505         * src/devices/grodvi/dvi.cc: #include nonposix.h.
1506         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
1507         nonposix.h).
1508         (main) [SET_BINARY]: Switch stdout to binary mode.
1509         [_MSC_VER]: Remove an explicit call to _setmode.
1511         * src/include/nonposix.h: New file.
1513         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
1514         operation when building with DJGPP.
1515         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
1516         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
1517         ENVSETUP.
1519         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
1520         MS-DOS.
1521         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
1522         etc. can include a semi-colon on DOS/Windows.
1523         (depend.temp): Use depend1.temp instead of depend.temp1, to
1524         prevent files from overerwiting each other on 8+3 filesystems.
1526         * gendef.sh (t): Change definition to work with DOS/Windows.
1528         doc/groff.texinfo: Apart of some typo corrections, I also changed
1529         some index entris, to make them more non-ambiguous, and also put
1530         @ignore around some parts that are not yet written, to allow the
1531         Info output be readable.
1533 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
1535         Replaced specific checks for function declarations with a generic
1536         routine taken from GNU bfd.
1538         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
1539         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
1540         * configure.in: Use it.
1541         * src/devices/grolbp/lbp.cc, src/include/lib.h,
1542         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
1543         src/roff/groff/groff.cc: Use it.
1544         * Makefile.in, configure: Updated.
1546 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
1548         * src/devides/grolbp/lbp.h: Removed unused variables.
1550 2000-05-31  Keith Thompson  <kst@sdsc.edu>
1552         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
1553         strncasecmp().
1555 2000-05-31  Werner LEMBERG  <wl@gnu.org>
1557         * aclocal.m4 (GROFF_SRAND): New function to test the return value
1558         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
1559         * configure.in: Use it.
1560         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
1561         * configure, Makefile.in: Updated.
1563         * configure.in: Add test for strncasecmp().
1564         * src/include/lib.h: Use it.
1566 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
1568         * src/preproc/grn/Makefile.sub: Add MLIB.
1570 2000-05-29  Nix  <nix@esperi.demon.co.uk>
1572         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
1574 2000-05-29  Werner LEMBERG  <wl@gnu.org>
1576         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
1578         * PROBLEMS: Small update.
1580         * src/devices/grolbp/lbp.cc: Various small fixes.
1582 2000-05-28  Keith Thompson  <kst@sdsc.edu>
1584         * src/roff/nroff/nroff.sh: Fix main loop syntax.
1586         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
1588 2000-05-25  Werner LEMBERG  <wl@gnu.org>
1590         * man/roff.man: Removed unused macro.
1592 2000-05-24  Werner LEMBERG  <wl@gnu.org>
1594         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
1595         This is needed e.g. if you do
1596         `make distclean; ./configure; make dist'.
1598 Version 1.16 released
1599 =====================
1601 2000-05-23  Werner LEMBERG  <wl@gnu.org>
1603         Adding font CWI (constant width italic) to devdvi.
1605         * font/devdvi/CWI: New file.
1606         * font/devdvi/generate/Makefile: Add generating rule.
1607         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
1608         tmac/tmac.dvi: Use it.
1609         * NEWS: Announce it.
1611         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
1612         * font/devlj4/generate/Makefile: Cosmetic changes only.
1614         * man/groff.man: Removed most of the redundant description of
1615         special characters (which is in groff_char.man).  Added font
1616         translation CB->CR for devdvi.  Other minor fixes.
1618         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
1619         (registered) symbols.
1621 2000-05-22  Werner LEMBERG  <wl@gnu.org>
1623         * doc/Makefile: Added rule for creating info files.
1625         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
1626         AMS font metrics.
1627         * font/devdvi/generate/Makefile: Fixed dependencies.
1629         * font/devps/*: Regenerated.  Heavy changes for Bookman and
1630         NewCentury Schoolbook!
1631         * font/devps/generate/afmname: Will now run with GNU awk.
1632         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
1633         * font/devps/generate/Makefile: Cosmetic changes only.
1635 2000-05-21  Werner LEMBERG  <wl@gnu.org>
1637         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
1638         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
1639         `.SS' now produces a heading with a smaller size than `.SH'. 
1640         Completely formatted.
1641         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
1643         * man/groff.man: Improved table appearance.  Use of `eo' request
1644         to reduce number of doubled backslashes in macro definitions.
1645         Replacing `\e' with `\(rs'.  Other minor fixes.
1647         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
1648         to have correct line number.
1650         * INSTALL: Small improvement.
1652 2000-05-20  Bernd Warken  <bwarken@mayn.de>
1654         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
1655         WL).
1657 2000-05-19  Bernd Warken  <bwarken@mayn.de>
1659         * man/groff.man: Complete update (with a lot of corrections by WL).
1661 2000-05-18  Werner LEMBERG  <wl@gnu.org>
1663         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
1665         * font/*/*: Implement it.
1666         * man/groff_char.man, NEWS: Document it.
1668         * src/include/unix.h: Removed.  It isn't used.
1670         * doc/groff.texinfo: Slight improvements.
1672 2000-05-17  Werner LEMBERG  <wl@gnu.org>
1674         * README, win32-diffs: Small fixes and improvements.
1676 2000-05-16  Werner LEMBERG  <wl@gnu.org>
1678         * FDL: New file (the Free Documentation License version 1.1).
1680         * doc/groff.texinfo: Added many start-up values for gtroff.
1681         Some structural improvements of the source code.
1683 2000-05-15  Werner LEMBERG  <wl@gnu.org>
1685         * src/roff/troff/input.cc: Added small comment about troffrc-end.
1686         * src/roff/troff/troff.man: Added info about troffrc-end.
1688 2000-05-14  Werner LEMBERG  <wl@gnu.org>
1690         * Makefile.in (EXTRADIRS): Fix typos.
1691         (dist): Handle deletion of old .tar.gz file correctly.
1692         (DISTDIRS): Include all tty output devices.
1694         * doc/groff.texinfo: Adding more cross references; countless other
1695         fixes.
1697 2000-05-13  Werner LEMBERG  <wl@gnu.org>
1699         * MORE.STUFF: Added Robert Marks's utilities.
1701 2000-05-12  Werner LEMBERG  <wl@gnu.org>
1703         Added win32 port contributed by Blake McBride
1704         <blake@florida-software.com>.
1706         * README.WIN32, win32-diffs: New files.
1707         * NEWS: Updated.
1709         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
1710         (tmove, tmove2): Added parentheses to avoid compiler warnings.
1711         (change): Removed unused variables.
1713         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
1714         (savebounds): Changed return value from `int' to `void'.
1715         * src/preproc/grn/hdb.cc: Ditto.
1717         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
1718         final backslash in comment to avoid compiler warning.
1720         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
1722         * doc/groff.texinfo: More fixes.
1724 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
1726         * tmac/tmac.doc: Documentation fix.
1728 2000-05-11  Werner LEMBERG  <wl@gnu.org>
1730         * doc/groff.texinfo: Reading the source code shows up a lot of
1731         omissions and incorrect data...  More conversion to @Deffn macros.
1733 2000-05-10  Werner LEMBERG  <wl@gnu.org>
1735         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
1736         dependency.
1738         * src/roff/troff/request.h: Removing unused `no_break_flag'.
1740 2000-05-09  Werner LEMBERG  <wl@gnu.org>
1742         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
1743         improvements.
1745         * doc/groff.texinfo: Extended history section.  More conversion to
1746         @Deffn macros.  More .tr documentation.
1748 2000-05-07  Werner LEMBERG  <wl@gnu.org>
1750         * doc/groff.texinfo: Completed tab section.  Added info about
1751         fields.
1753 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
1755         * PROBLEMS: Describe configure script fix for OS/390 Unix.
1757 2000-05-05  Werner LEMBERG  <wl@gnu.org>
1759         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
1760         LaTeX 2e).
1761         * NEWS: Document it.
1763         * man/troff.man: Minor optical improvements.
1765 2000-05-03  Werner LEMBERG  <wl@gnu.org>
1767         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
1769         * font/*/*: Implement it.
1770         * man/groff_char.man, NEWS: Document it.
1772 2000-05-02  Werner LEMBERG  <wl@gnu.org>
1774         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
1775         expansion.
1776         * NEWS: Document the three new man pages.
1778         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
1779         * configure: Updated.
1781         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
1783 2000-05-01  Werner LEMBERG  <wl@gnu.org>
1785         Added grap support to grog.
1787         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
1788         * src/roff/grog/grog.man: Document it.
1790         * doc/groff.texinfo, NEWS: Add info about grap support.
1792         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
1793         (with slight fixes by me).
1795         * tmac/groff_tmac.man: New file documenting tmac mechanism.
1796         * tmac/Makefile.sub: Add groff_tmac.man.
1797         * man/roff.man: New file giving overview of roff system.
1798         * man/troff.man: A short reference of troff.
1799         * man/Makefile.sub: Add roff.man and troff.man.
1801 2000-04-30  Werner LEMBERG  <wl@gnu.org>
1803         Added grap support to groff.
1805         * src/roff/groff/groff.cc: Implement it.
1806         * src/roff/groff/groff.man: Document it.
1808         * src/devices/grotty/grotty.man: Add cp1047 device.
1809         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
1810         Ditto.
1811         * src/roff/groff/groff.man: Ditto.
1812         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
1813         * doc/groff.texinfo: Ditto.
1815         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
1816         for cp1047.
1818 2000-04-29  Werner LEMBERG  <wl@gnu.org>
1820         * man/groff_char.man: Add `pc' glyph.
1821         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
1822         * tmac/tmac.tty: Add `pc' glyph.
1823         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
1824         we use cp1047 output device.
1826         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
1827         there are still hardcoded latin1->unicode values in utf8's font
1828         definition files.
1829         * configure: Updated.
1830         * NEWS: Minor clarification.  Updated.
1832         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
1833         Unix.
1835 2000-04-28  Werner LEMBERG  <wl@gnu.org>
1837         Adding EBCDIC code page 1047.
1839         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
1840         font/devcp1047/DESC.proto: New files.
1842         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
1843         either ascii/latin1 or cp1047.
1844         * Makefile.in: Use it.
1845         * configure: Updated.
1847         Replacing and/or adding `md' (mathdot) glyph with `pc'
1848         (periodcentered) in all text fonts.
1850         * font/*/*: Change it.
1852 2000-04-27  Werner LEMBERG  <wl@gnu.org>
1854         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
1856         * configure.in: Add check for strings.h.
1857         * src/include/driver.h: Use HAVE_STRINGS_H.
1858         * src/devices/grolbp/lpb.cc: Remove string.h.
1860         * src/include/groff-getopt.h: New file.  It will be used instead of
1861         getopt.h (to be included in lib.h) to avoid endless problems with
1862         picky C++ compilers.
1863         * src/include/lib.h: Use groff-getopt.h.
1864         * src/include/Makefile.sub: Updated.
1866         * configure: Updated.
1867         * Makefile.in: Updated.
1869         * NEWS: Mention EBCDIC support.
1871 2000-04-26  Werner LEMBERG  <wl@gnu.org>
1873         * TODO: Some additions.
1875 2000-04-25  Werner LEMBERG  <wl@gnu.org>
1877         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
1878         of mso request.
1880 2000-04-23  Werner LEMBERG  <wl@gnu.org>
1882         * src/roff/troff/troff.man: Minor fixes.
1884 2000-04-22  Werner LEMBERG  <wl@gnu.org>
1886         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
1887         `.T' string register and the incompatible definition of the `.T'
1888         number register (compared to Unix troff).
1890         * man/groff_char.man: Add some missing characters.
1891         * font/devutf8/NOTES: Update.
1893 2000-04-21  Werner LEMBERG  <wl@gnu.org>
1895         * src/include/htmlindicate.h, src/include/lib.h,
1896         src/include/posix.h: Fix copyright.
1898         * src/include/Makefile.sub: Update.
1900 2000-04-20  Werner LEMBERG  <wl@gnu.org>
1902         * src/roff/troff/input.cc (input_char_description): Removing
1903         superfluous space char.
1905         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
1907         * doc/groff.texinfo: Document EBCDIC.
1909 2000-04-19  Werner LEMBERG  <wl@gnu.org>
1911         Introducing `shc' as the glyph name for the soft hyphen character.
1913         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
1914         font/devlatin1/R.proto: Use it.
1916         * NEWS: Updated.
1918 2000-04-18  Werner LEMBERG  <wl@gnu.org>
1920         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
1921         dependency on ASCII order.
1923 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
1925         * src/libs/libgroff/illegal.c: Added EBCDIC table.
1926         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
1928         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
1929         to increase portability.
1931 2000-04-15  Werner LEMBERG  <wl@gnu.org>
1933         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
1934         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
1935         the generic `\n' if under OS/390 Unix.
1937         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
1939         * configure: Regenerated.
1941 2000-04-14  Werner LEMBERG  <wl@gnu.org>
1943         * doc/groff.texinfo: More conversions to @Deffn.
1945 2000-04-12  Werner LEMBERG  <wl@gnu.org>
1947         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
1948         with `:'.
1950         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
1952 2000-04-10  Werner LEMBERG  <wl@gnu.org>
1954         * doc/groff.texinfo: More conversions to @Deffn.
1956 2000-04-08  Werner LEMBERG  <wl@gnu.org>
1958         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
1959         Updated to latest version (glibc 2.1.3).
1961 2000-04-07  Werner LEMBERG  <wl@gnu.org>
1963         * doc/Makefile (clean): Include more index files.
1964         Add rule texinfo->dvi.
1966 2000-04-05  Werner LEMBERG  <wl@gnu.org>
1968         * doc/groff.texinfo: Added new index `op' for operators.  More
1969         info on end of sentence characters.  More use of @Deffn.
1971 2000-03-30  Werner LEMBERG  <wl@gnu.org>
1973         * */*.man: Adding a note that a whitespace can be inserted between
1974         a command line option and its parameter -- we are using GNU getopt.
1976         * src/roff/groff/groff.man: Add example of `-m mandoc'.
1978 2000-03-28  Werner LEMBERG  <wl@gnu.org>
1980         Correct anachronism of calling the man macro file with `-man'
1981         instead of `-m man' etc.
1983         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
1984         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
1985         load tmac.<package>.
1987         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
1989         * NEWS: Updated.
1991         * doc/groff.texinfo: Updated.
1993         * tmac/groff_man.man: Copyright added.
1995 2000-03-27  Werner LEMBERG  <wl@gnu.org>
1997         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
1998         typeset the request resp. escape name with a tt font -- due to a
1999         bug in texinfo.tex it is necessary to use the `-e' switch with
2000         texi2dvi.
2002         Improving info about usage of groff units.
2004         Other minor fixes.
2006 2000-03-20  Werner LEMBERG  <wl@gnu.org>
2008         * doc/groff.texinfo: Added section about man macro package
2009         (I've basically taken groff_man.man).  Introducing new indices `ma'
2010         for macros/strings and `gl' for glyph names.  Other minor fixes.
2012         * tmac/groff_man.man: Fixed some typos.
2014 2000-03-19  Werner LEMBERG  <wl@gnu.org>
2016         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
2017         Other minor fixes.
2019         * doc/texinfo.tex: New file.
2021 2000-03-18  Werner LEMBERG  <wl@gnu.org>
2023         * doc/groff.texinfo: Improved section on number registers.  Other
2024         minor updates.
2026 2000-03-16  Werner LEMBERG  <wl@gnu.org>
2028         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
2029         synopsis.
2031         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
2032         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
2033         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
2034         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
2036         * src/preproc/grn/grn.man: Better synopsis; added copyright.
2038         * src/roff/grog/grog.man: Updated copyright date.
2040 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
2042         * configure.in: Added test for strdup.
2044         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
2045         is available.
2047         Replaced dynamic allocation of arrays `[...]' with `new' operator.
2049         Other minor fixes.
2051 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
2053         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
2055 2000-03-11  Werner LEMBERG  <wl@gnu.org>
2057         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
2058         compilers silent.
2059         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
2060         * src/include/lib.h: Remove some spaces.
2062 2000-03-10  Werner LEMBERG  <wl@gnu.org>
2064         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
2065         initializers from arguments (some compilers don't like this).
2067 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
2069         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
2070         used by pic and eqn to tell grohtml where the graphic regions start
2071         and end.
2072         * src/libs/libgroff/Makefile.sub: Use it.
2073         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
2074         graphic_start() and graphic_end() from htmlindicate.cc.
2076 2000-03-09  Werner LEMBERG  <wl@gnu.org>
2078         * tmac/tmac.safer: Will now work correctly in compatibility mode.
2079         * tmac/groff_man.man: More fixes.
2081 2000-03-08  Werner LEMBERG  <wl@gnu.org>
2083         * doc/Makefile: Added texput.log to the `clean' target.
2084         * doc/groff.texinfo: Added info about delimiters for escapes.
2086 2000-03-08  Bernd Warken  <bwarken@mayn.de>
2088         * src/preproc/pic/pic.man: Add info on conversion of pic images to
2089         other graphic formats.
2091 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
2093         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
2094         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
2095         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
2096         files.
2098 2000-03-07  Werner LEMBERG  <wl@gnu.org>
2100         * doc/groff.texinfo: Spelling fixes.
2102 2000-03-06  Werner LEMBERG  <wl@gnu.org>
2104         * tmac/groff_man.man: Completely revised to cover everything in
2105         tmac.an.
2107         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
2108         Other minor fixings.
2109         * src/roff/troff/env.cc (environment_copy): Improve error message and
2110         fix itoa->i_to_a.
2111         * src/roff/troff/TODO: Updated.
2113         * doc/Makefile: Bug fixes -- this is still provisional, though...
2115         * tmac/eqnrc: Small fixes.
2117 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
2119         Adding a request `evc' to copy environments.
2121         * src/roff/troff/env.cc (environment::copy, environment_copy):
2122         Implement it.
2123         * src/roff/troff/env.h: Add prototype.
2125 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
2127         Adding strsep() -- Solaris 8 doesn't have it.
2129         * configure.in: Test it.
2130         * src/devices/grolbp/lbp.cc: Add code.
2132 2000-03-05  Werner LEMBERG  <wl@gnu.org>
2134         * src/roff/troff/div.cc (macro_diversion::output,
2135         top_level_diversion::output): Fixing an incompatibility with
2136         original troff: \x'0' updates the .a register also.  Thanks to
2137         <Andries.Brouwer@cwi.nl> for pointing this out.
2138         * doc/groff.texinfo: Document it.
2140         * Makefile.in: Create Makefile.dep if necessary before calling the
2141         submake process to avoid warning about nonexistent file.
2143         * NEWS, PROJECTS: Updated.
2145 2000-03-04  Werner LEMBERG  <wl@gnu.org>
2147         * tmac/troffrc: Add tmac.lbp.
2149 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
2151         * tmac/tmac.lbp: New file.
2152         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
2153         command.
2155 2000-03-03  Werner LEMBERG  <wl@gnu.org>
2157         * Makefile.in: Fixing $(subdir).
2159         * README, NEWS: Small fixes.
2161         * test-groff: Adding path to grolbp.
2163         * configure.in: The (new) file src/xditview/Imakefile.in will be
2164         also configured -- it is now possible to build gxditview in a
2165         directory different from $srcdir.
2167 2000-03-02  Blake McBride  <blake@florida-software.com>
2169         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
2171         * MORE.STUFF: Added website of bell labs and info about plot2dev.
2173 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
2175         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
2176         files.
2178 2000-02-29  Werner LEMBERG  <wl@gnu.org>
2180         Adding GNU getopt to the groff distribution.
2182         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
2183         New files.
2184         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
2185         * aclocal.a4: Remove GROFF_GETOPT function.
2186         * configure.in, Makefile.in, PROBLEMS: Update.
2187         * src/include/lib.h: Replace getopt tests with getopt.h.
2188         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
2190         * doc/groff.texinfo: Further checking/updating.  Adding more index
2191         entries.
2193         * man/groff_out.man: Fix nroff mode activation (for emacs).
2194         * man/groff_font.man: Add missing ligature.
2196 2000-02-28  Werner LEMBERG  <wl@gnu.org>
2198         * doc/groff.texinfo: Further checking/updating.  Adding more index
2199         entries.
2201         * src/devices/grolbp/grolbp.man: Added a comment line at the
2202         beginning of the file (similar to shell scripts) which indicates
2203         that `tbl' should be used as a preprocessor.
2205 2000-02-27  Blake McBride  <blake@florida-software.com>
2207         Adapting groff to MS Visual C++ 6.0 compiler (tested with
2208         Windows NT 4.0).  Uses _MSC_VER define where necessary.
2210         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
2211         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
2212         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
2213         src/include/lib.h, src/libs/libgroff/errarg.cc,
2214         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
2215         src/preproc/refer/label.y, src/preproc/refer/label.cc,
2216         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
2217         src/roff/troff/div.cc, src/roff/troff/env.cc,
2218         src/roff/troff/input.cc, src/roff/troff/node.cc,
2219         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
2220         if_to_a() to avoid name clashes.
2221         * src/include/posix.h: Don't use unistd.h.
2222         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
2223         clause for integrating non-Unix xtmpfile() code.
2224         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
2225         structure; use "rt" for popen() in pipe_source(); add getpid()
2226         dummy function.
2227         * src/roff/troff/node.cc: Use special versions of popen() in
2228         real_output_file() and pclose() in ~real_output_file().
2230 2000-02-27  Werner LEMBERG  <wl@gnu.org>
2232         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
2233         LBP-8 series laser printers).  This code has been contributed by
2234         Francisco Andres Verdu <pandres@dragonet.es>.
2236         * src/devices/grolbp/*: The grolbp output device.
2237         * font/devlpb/*: The font description files.
2238         * Makefile.in: Add grolpb and devlbp subdirectories.
2240         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
2241         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
2242         typographic fixes.
2244         * doc/groff.texinfo: Further checking/updating.  Adding more index
2245         entries.
2247         * NEWS: Updated.
2249         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
2251         * man/groff_font.man: Adding info about obsolete DESC keywords.
2252         * src/devices/grolj4/grolj4.man: Documenting additional DESC
2253         keywords.
2255 2000-02-26  Werner LEMBERG  <wl@gnu.org>
2257         * src/preproc/grn/grn.man: Added info about the gremlin file format
2258         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
2260 2000-02-25  Werner LEMBERG  <wl@gnu.org>
2262         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
2263         friends to be non-integer.
2265         * src/preproc/grn/grn.man: Document it.
2267         * doc/groff.texinfo: Further checking/updating.  Adding more index
2268         entries.
2270 2000-02-24  Werner LEMBERG  <wl@gnu.org>
2272         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
2273         line thicknesses to be integer multiples of this value.
2275         * src/preproc/grn/grn.man: Commenting out the -s option -- the
2276         corresponding code doesn't work (yet).
2278         * doc/groff.texinfo: Further checking/updating.  Adding more index
2279         entries.
2281 2000-02-23  Werner LEMBERG  <wl@gnu.org>
2283         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
2284         specify line thickness instead of base units.  The new default
2285         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
2286         thick lines respectively.
2288         Removed unused variable `prevval'.
2290         * src/preproc/grn/grn.man: Updated.
2292 2000-02-22  Werner LEMBERG  <wl@gnu.org>
2294         * src/preproc/grn/main.cc: Slight formatting.
2296         * src/roff/groff/groff.man: Formatting fix.
2297         * src/preproc/grn/grn.man: Ditto.
2299         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
2301         * doc/groff.texinfo: Further checking/updating.
2303 2000-02-21  Werner LEMBERG  <wl@gnu.org>
2305         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
2307         * test-groff: Added grn subdir to path.
2309         * doc/groff.texinfo: Some restructing and other small improvements.
2311         * src/roff/groff/groff.cc (help): Fixed info string.
2313 2000-02-20  Werner LEMBERG  <wl@gnu.org>
2315         * doc/meref.me: Fix description of .GS request.
2317         * src/roff/troff/troff.man: Fixing typo.
2319         Adding the `grn' preprocessor for gremlin graphic files.
2321         * src/preproc/grn/*: This is the Berkeley distribution written by
2322         David Slattengren and Barry Roitblat, adapted to groff by Daniel
2323         Senderowicz and Werner Lemberg.
2325         * doc/grnexampl.{me,g}: A sample for grn.
2327         * Makefile.in: Added subdirectory entry for grn.
2329         * src/roff/groff/groff.cc: Added support for grn.  It can be now
2330         called with the switch `-g'.
2332         * src/roff/groff/groff.man: Updated.
2334         * src/roff/grog/grog.{man,pl,sh}: Updated.
2336         * NEWS: Updated.
2338 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
2340         * src/include/lib.h: Added xtmptemplate and made xtmpfile
2341         parametrically polymorphic.
2343         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
2344         and the alterations to xtmpfile.
2345         xtmpfile can be requested to return the filename created
2346         and asked not to unlink the temp file.  The default behaviour
2347         if parameters are absent is exactly the same as before.
2349 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
2351         A new request `length' is available which returns the length of a
2352         string in a number register:
2354         * src/roff/troff/input.cc (length_macro): Implement it.
2355         * src/roff/troff/input.cc (init_input_requests): Register it.
2357 2000-02-11  Werner LEMBERG  <wl@gnu.org>
2359         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
2360         of the `substring' request.
2362         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
2363         request.
2365         * src/roff/troff/TODO, NEWS: Updated.
2367 2000-02-09  Werner LEMBERG  <wl@gnu.org>
2369         * src/roff/groff/groff.man: Added an example.
2371 2000-02-06  Werner LEMBERG  <wl@gnu.org>
2373         I've considerably modified the directory structure of the
2374         distribution to get a more vertical layout.  For example, the number
2375         of top level directories has been reduced from 42 to 6.
2377         As a consequence, many changes, especially to the makefiles, were
2378         necessary:
2380         * The makefile variables `top_builddir' and `top_srcdir' have been
2381         introduced.  Virtually all relative paths have been replaced with
2382         absolute ones using these two variables.
2384         * Dependencies (in the files `Makefile.dep') are no longer part of
2385         the distribution.  Instead, they are created during a `make install'
2386         in the build directory.
2388         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
2389         make `top_srcdir' and `top_builddir' absolute.
2391         Some other changes:
2393         * Man pages no depend on the files `VERSION' and `REVISION'.
2395         * The added shell script `mkinstalldirs' will replace `mkdir' in
2396         almost all cases.
2398         * VERSION: Version number increased to 1.16.
2400 2000-02-04  Werner LEMBERG  <wl@gnu.org>
2402         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
2404         * Makefile.in: Removed $(tmac_m) since it is no longer needed
2405         (after an update of the mm stuff).
2407         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
2409 2000-02-03  Werner LEMBERG  <wl@gnu.org>
2411         The .psbb request will now also accept Mac PS images (i.e. using LF
2412         as the EOL character).
2414         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
2415         (with slight modifications).
2416         * troff/input.cc (do_ps_file): Use it.
2418         * test-groff: Add grohtml and grolj4 output devices to PATH.
2420 2000-01-30  Werner LEMBERG  <wl@gnu.org>
2422         * NEWS, MORE.STUFF: Updated.
2424 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
2426         Add the `srand' command to pic.
2428         * pic/lex.cc, pic/pic.y: Implement it.
2429         * pic/pic.man: Document it.
2430         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
2432 2000-01-30  Werner LEMBERG  <wl@gnu.org>
2434         Add a new request `.psbb'.  This does exactly what the external
2435         program psbb did.  It scans a PostScript image file for a
2436         %%BoundingBox comment and extracts the bounding box values (in
2437         PostScript units) which are then stored in the four new (read-only)
2438         number registers `llx', `lly', `urx', and `ury'.
2440         This will allow the usage of the .PSPIC macro without worrying
2441         about unsafe behaviour of groff, i.e., it will work without the
2442         `-U' switch of groff.
2444         * troff/input.cc: Implement it.
2445         * tmac/tmac.pspic: Use it.
2446         * troff/troff.man, grops/grops.man, NEWS: Document it.
2447         * psbb/*, Makefile.in: Remove it since it is no longer needed.
2449         This is bloody C code simply adapted from psbb.c!  Any improvements
2450         welcome.
2452 2000-01-29  Werner LEMBERG  <wl@gnu.org>
2454         * man/groff_font.man: Minor clarifications.
2456         * NEWS: Updated.
2458 2000-01-28  Werner LEMBERG  <wl@gnu.org>
2460         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
2462 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
2464         * man/groff_font.man: Brought up to date regarding tcommand
2465         extensions.
2466         * libgroff/font.cc: Handle everything after `--' as a comment
2467         in the font files.
2468         * devps/*: Added comment delimiter inside devps font files.
2470 2000-01-28  Werner LEMBERG  <wl@gnu.org>
2472         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
2473         \fC...\fP (which now works as expected).
2475         * troff/troff.man: Fix typo.
2477 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
2479         Completed the pass_filenames implementation in troff.
2481         * libdriver/input.cc: Will read the new `F' tcommand.
2482         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
2483         * troff/input.cc: Use it.
2485 2000-01-26  Werner LEMBERG  <wl@gnu.org>
2487         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
2488         font will now be updated even if an invalid font is selected.
2490 2000-01-24  Werner LEMBERG  <wl@gnu.org>
2492         * doc/homepage.ms: Updated for new tmac.arkup.
2494         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
2496         * tmac/tmac.arkup: Cleanup.
2498         Added `\&' to .HTML macro to `leave vertical mode', so to say.
2500         Removed obsolete .LINK macro completely.
2502         The macros .URL, .FTP, and .MAILTO now accept a third argument which
2503         will be immediately appended to the second argument (to be used with
2504         punctuation, for example).
2506         Disabled .CDFTP macro temporarily for security reasons.
2508         * tmac/groff_markup.man: Complete revision for latest changes in
2509         tmac.arkup -- note that it does not yet format correctly with
2510         grohtml :-(
2512 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
2514         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
2515         * devutf8/R.proto: Add mappings for wp, lh, rh.
2516         * devutf8/NOTES: Updated.
2518 2000-01-23  Werner LEMBERG  <wl@gnu.org>
2520         * doc/groff.texinfo: Updated version/copyright info.
2522 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
2524         Added support for two new directives in device descriptions:
2525         `pass_filenames' (to pass the input file name to the output device)
2526         and `use_charnames_in_special' (to support e.g. accented characters
2527         in the `X' request).
2529         * include/font.h, troff/charinfo.h: Declare it.
2531         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
2533         * devhtml/DESC: Use it.
2535         * troff/input.cc: New function encoded_char.
2537         * troff/token.h: Add test for `specialness'.
2539 2000-01-21  Werner LEMBERG  <wl@gnu.org>
2541         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
2542         mistake from the list of files to be installed.
2544 2000-01-18  Werner LEMBERG  <wl@gnu.org>
2546         * README: Added info how to apply patches.
2548 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
2550         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
2552 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2554         * troff/input.cc: Add support for troffrc-end.
2556         * tbl/main.cc: Altered to issue table-start and table-end special
2557         characters if using the html device.
2559         * devhtml/*: Modified font files to incorporate html encoding of
2560         characters.
2562         * tmac/groff_markup.man: New file documenting tmac.arkup.
2564         * tmac/troffrc-end: New file.  This is invoked after all user
2565         specified macros.  Currently used by the html device to include
2566         tmac.html.  Thus no need for users to specify -mhtml anymore.
2568         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
2569         (MAN7): Add groff_markup.man.
2571         * tmac/tmac.an, tmac/tmac.html: Small html updates.
2573         * tmac/troffrc: tmac.arkup will now be called for the html device.
2575         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
2576         extra device specific information about fonts.
2578         * doc/homepage.ms: New file.  It is an example how an HTML home page
2579         could look like with grohtml.
2581         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
2583 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
2585         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
2586         of Im, Re.
2588         * devutf8/NOTES: Updated.
2590 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
2592         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
2593         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
2594         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2595         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
2596         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
2597         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
2598         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
2599         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
2600         warnings.
2602         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
2604 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
2606         grolj4: Paper size will be searched case-insensitively.
2608         * include/lib.h: Add check for strcasecmp().
2609         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
2610         * configure.in: Check for strcasecmp().
2612 2000-01-11  Werner LEMBERG  <wl@gnu.org>
2614         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
2615         `REVISION'.
2617 2000-01-10  Werner LEMBERG  <wl@gnu.org>
2619         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
2620         revision scheme.
2622         Add a new read-only register, `.Y', which contains the groff
2623         revision.
2625         * troff/input.cc (init_input_requests): Define it.
2626         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
2627         * doc/groff.texinfo, troff/troff.man: Document it.
2629         * libgroff/Makefile.sub (version.cc): Add definition of
2630         `Version_string[]', consisting of `<major>.<minor>.<revision>'
2631         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
2632         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
2633         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
2634         troff/input.cc, pfbtops/pfbtops.c: Use it.
2636 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
2638         Add a revision scheme to the groff package.
2640         * REVISION: New file.
2641         * libgroff/Makefile.sub (version.cc): Use it to define
2642         `revision_string[]'.
2643         * grops/psrm.cc: Use revision_string (converted to an unsigned
2644         integer) in constructor of resource_manager.
2646 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
2648         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
2649         files.
2650         * Makefile.in (DEVDIRS): Add devutf8.
2651         * grotty/tty.cc: Include device.h.
2652         (glyph): Change type of `code' to `unsigned int'.
2653         (tty_printer): New field is_utf8.  Constructor takes device argument.
2654         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
2655         (tty_printer::add_char): Change type of first arg to `unsigned int'.
2656         (tty_printer::put_char): New function.
2657         (tty_printer::end_page): Use put_char() instead of ::putchar().
2658         (make_printer): Pass device to tty_printer constructor.
2659         * nroff.sh: Determine default device by calling 'locale'.  As a
2660         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
2661         Recognize UTF-8 locales.
2662         * tmac/eqnrc: Recognize utf8 like latin1.
2663         * tmac/troffrc: Device utf8 needs tmac.tty.
2665 2000-01-07  Werner LEMBERG  <wl@gnu.org>
2667         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
2669 2000-01-07  Paul Eggert  <eggert@twinsun.com>
2671         Add a new predefined writeable number register, `year',
2672         which contains the current year.
2674         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
2675         * tmac/tmac.s: Use it.
2676         * troff/input.cc (init_registers): Initialize it.
2678 2000-01-06  Werner LEMBERG  <wl@gnu.org>
2680         * PROBLEMS: Fixed typo.
2682 2000-01-04  Paul Eggert  <eggert@twinsun.com>
2684         * PROBLEMS: Add Y2k advice for the yr number register.
2686 2000-01-03  Paul Eggert  <eggert@twinsun.com>
2688         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
2690 2000-01-02  Werner LEMBERG  <wl@gnu.org>
2692         * tmac/tmac.arkup: Slight modification of macros to provide better
2693         appearance for non-HTML formats.
2695 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
2697         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
2698         does not automatically translate to malloc(n) on all OSes
2699         (e.g., SunOS) so do it explicitly.  Also, check the returned
2700         value.
2702 2000-01-01  Werner LEMBERG  <wl@gnu.org>
2704         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
2706         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
2707         expects this variable
2709 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
2711         * doc/Makefile: Added instructions to create HTML and text
2712         versions of some files.
2714 1999-12-31  Werner LEMBERG  <wl@gnu.org>
2716         * Updated INSTALL.gen.
2718         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
2719         better resp. correctly with non-HTML devices.
2721 Version 1.15 released
2722 =====================
2724 1999-12-28  Werner LEMBERG  <wl@gnu.org>
2726         * NEWS, VERSION: Changed to 1.15
2728 1999-12-27  Paul Eggert  <eggert@twinsun.com>
2730         * nroff/nroff.man: -S is safer, not safe.
2732         * groff/groff.cc (main): Use `safer', not `safe', in variable
2733         names.  This does not change the behavior.
2735         * troff/input.cc (main): Likewise.
2737         * nroff/nroff.sh: Likewise.
2739         * troff/input.cc (prepend_string): New function.
2740         (main): Prepend -msafer, so that we check macro libraries for
2741         safety.
2743         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
2745 Version 1.14 released
2746 =====================
2748 1999-12-26  Werner LEMBERG  <wl@gnu.org>
2750         * NEWS, VERSION: Changed to 1.14.
2752 1999-12-24  Werner LEMBERG  <wl@gnu.org>
2754         * refer/refer.cc: Fixing the last fix.
2756 Version 1.13 released
2757 =====================
2759 1999-12-23  Werner LEMBERG  <wl@gnu.org>
2761         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
2762         number disappear.
2764         * NEWS: Updated.
2766         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
2768         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
2769         document conventions, the version number must be a real.
2771 Version 1.12.1 released
2772 =======================
2774 1999-12-22  Werner LEMBERG  <wl@gnu.org>
2776         * VERSION: Changed to 1.12.1.
2778 1999-12-22  Alan Rooks  <arooks@istar.ca>
2780         * refer/refer.cc (do_file): Slight modification to satisfy the
2781         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
2782         UnixWare 7.1.
2784 1999-12-20  Werner LEMBERG  <wl@gnu.org>
2786         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
2787         notices.
2789         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
2790         list of unsafe requests.
2792         * pic/pic.man: Fixed a typo.
2794         * man/groff_out.man: Fixed a typo.
2796 1999-12-18  Werner LEMBERG  <wl@gnu.org>
2798         * Makefile.in: Doc fixes.
2800 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
2802         * groff/groff.cc: Missing `U' option added to getopt().
2804         * troff/troff.man: Missing `U' option added to synopsis.
2806 Version 1.12 released
2807 =====================
2809 1999-12-14  Werner LEMBERG  <wl@gnu.org>
2811         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
2812         to the synopsis.
2814         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
2815         with the more appropriate terms `safer' and `unsafe'.
2817         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
2818         sys_nerr and sys_errlist[].
2820         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
2822         * pic/pic.y, pic/pic.cc: Added check for fmod().
2824 1999-12-13  Werner LEMBERG  <wl@gnu.org>
2826         * VERSION: Changed to 1.12.
2828         Here some patches from various sources; most of them taken from
2829         the Debian distribution.
2831         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
2832         tmac/Makefile.sub: New files copied directly from the NetBSD
2833         distribution.  Probably, some additional adaptation later on is
2834         necessary...
2836         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
2837         of unsafe requests.
2839         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
2840         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
2841         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
2842         (`-S') is now the default.
2844         * README, NEWS: Updated.
2846 1999-12-09  Werner LEMBERG  <wl@gnu.org>
2848         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
2850         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
2852 1999-12-06  Werner LEMBERG  <wl@gnu.org>
2854         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
2855         grief than relief today.  Additionally, it is against the GNU
2856         coding standards.
2858         * configure: Recreated.
2860 1999-12-05  Werner LEMBERG  <wl@gnu.org>
2862         * configure.in: Added GROFF_LIBM.
2864         * configure: Recreated.
2866         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
2867         necessary.
2869         * Makefile.in: Added definition of $(LIBM).
2871         * Makefile.comm (LIBM): Removed.
2873         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
2875 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
2877         * doc/Makefile: Added rule for generation pic.html.
2879         (clean): Files produced by grohtml will be removed also.
2881         * doc/pic.ms: Small fix.
2883         * tmac/tmac.html: Fixed suppression of headers.
2885 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
2887         * tmac/tmac.html: Fixing horizontal arrows.
2889         Turning off hyphenation.
2891         * tmac/tmac.an: Improved support for grohtml; better indentation,
2892         no footers/headers.
2894 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
2896         * tmac/tmac.arkup: Added CDFTP macro
2898         * tmac/tmac.html: All headers are turned off for ms, me, and mm
2899         macros.
2901         * tmac/troffrc: Some additions for HTML stuff.
2903 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
2905         * tmac/tmac.html: Small changes.
2907 1999-09-26  Werner LEMBERG  <wl@gnu.org>
2909         * doc/groff.texinfo: Minor fixes.
2911 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
2913         * devhtml/TR: Changed spacewidth to 3.
2915         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
2917         * tmac/tmac.html: Moved markup macros to tmap.arkup.
2919         * tmac/tmac.arkup: New file.
2921         * grohtml/ChangeLog: New file.
2923 1999-09-16  Werner LEMBERG  <wl@gnu.org>
2925         * doc/groff.texinfo (Common Features): Added Copying chapter.
2926         Changed format to @smallbook.
2928 1999-09-15  Werner LEMBERG  <wl@gnu.org>
2930         * NEWS: Added info about groff.texinfo.
2932         * doc/groff.texinfo: Will now compile (using texi2dvi) without
2933         warning messages.
2935 1999-09-14  Werner LEMBERG  <wl@gnu.org>
2937         * groff/groff.man: More updates.
2939 1999-09-13  Werner LEMBERG  <wl@gnu.org>
2941         * doc/groff.texinfo: New file.  This manual is still very
2942         rudimentary.  It has been originally contributed by Trent
2943         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
2944         additions by me.
2946         * INSTALL: Added information about the `doc' subdir
2948         * troff/troff.man: Minor fixes.
2950         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
2951         reordered options.
2953         * troff/input.cc (usage): Added missing `-ffam' to usage message.
2955         * Makefile.in (dist): groff-$(version).tar.gz must be removed
2956         also, otherwise it is included itself in another call of `make
2957         dist'.
2959         * groff/groff.cc (synopsis): Removed superfluous space.
2961         * PROJECTS, PROBLEMS, NEWS: Updated.
2963         * VERSION: Updated to 1.12beta.
2965         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
2967         * README: Updated: Included documentation about CVS repository,
2968         mailing lists, and daily snapshots.
2970         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
2972 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
2974         * tmac/tmac.an: If the tag didn't fit into the space that the
2975         macro `TP' specifies, the rest of the tag went into the space for
2976         the next line.
2978 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
2980         * grolj4/lj4.cc: Added duplex printing (option `-d').
2982         * grolj4/grolj4.man: Document duplex printing.
2984 1999-09-12  Werner LEMBERG  <wl@gnu.org>
2986         * doc/Makefile (pic.ps): Fixed rule which caused problems with
2987         non-GNUish sed programs.
2989         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
2990         definition.
2992         * configure.in (LIBS): Added `-lc'
2994         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
2996         * pic/tex.cc (solid_arc): Casting M_PI to double.
2998         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
3000         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
3001         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
3002         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
3004         * groff/groff_man.man: New file.  This manual page was originally
3005         written for the Debian GNU/Linux system by Susan G. Kleinmann
3006         <sgk@debian.org>.
3008         * eqn/list.cc (list_box::compute_metrics,
3009         list_box::compute_sublist_width): Removed variable declaration to
3010         avoid shadowing warnings.
3012         * grops/psrm.cc (resource_manager::process_file): Ditto.
3014         * tfmtodit/tfmtodit.cc (main): Ditto.
3016         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
3017         to avoid shadowing warnings.
3019         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
3020         shadowing loop variable.
3022         * groff/groff.man, troff/troff.man: Added doc about grohtml.
3024 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
3026         New grohtml frontend to convert groff input to html.
3028         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
3030         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
3032         * tmac/eqnrc: Added html device.
3034         * tmac/tmac.html: New file.
3036         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
3037         (troff_output::start_picture, troff_output::finish_picture),
3038         tbl/main.cc (process_input_file):
3039         Surrounded output with `graphics_start' and `graphics_end' so that
3040         the html driver can identify non-text portions.
3042         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
3043         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
3044         grotty/tty.ps (tty_printer::set_char): Additional parameter
3045         `name'.
3047         * include/printer.h: Class printer: New function
3048         set_char_and_width; new variables (is_char_named, is_named_set,
3049         named_command, named_char_s, named_char_n) to hold information
3050         about named characters -- needed by the html driver.
3052         * libdriver/printer.cc (printer::set_ascii_char,
3053         printer::set_special_char): Use set_char_and_width.
3055         * devhtml/*: New device files for html driver.
3057         * grohtml/*: New driver grohtml.
3059 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
3061         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
3062         default strings.
3064 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
3066         * libgroff/string.cc (search): Small fix to test against NULL
3067         pointer.
3069 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
3071         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
3072         \b'abc') were stacked in reverse order when processed in a
3073         diversion.
3075         * troff/node.h: Added `*last' to struct `node' to make the above
3076         fix work.
3078         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
3079         The default scale for the 'f' and 't' graphics functions were 'm'
3080         rather than 'u' (i.e., no scaling).
3082 1999-09-11  Peter Miller  <peterm@jna.com.au>
3084         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
3085         do_file), soelim/soelim.man: Added `-I file' option to soelim,
3086         defining include paths.
3088         * soelim/soelim.cc (include_path_append): New function.
3090 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
3092         * tbl/main.cc (process_options): Unix (at least Documenter's
3093         Workbench) tbl allows arbitrary non-alpha characters between
3094         options.
3096 1999-09-11  Paul Eggert  <eggert@twinsun.com>
3098         Y2k fixes.  Don't assume that the current year precedes 2000.
3100         * doc/meref.me: Add \n(y2, \n(y4.
3102         * tmac/doc-common (Yr): New number register.
3103         (Dd): Don't assume current year precedes 2000.
3105         * tmac/tmac.e (td): Likewise.
3106         (y2, y4): New number registers.
3108         * pic/pic.man: Update reference for pic paper to May, 1991
3109         version.
3111 1999-09-11  Werner LEMBERG  <wl@gnu.org>
3113         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3114         Removed quotation marks which prevented correct expansion of
3115         $(tmac_wrap).
3117         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
3119 1999-09-10  Werner LEMBERG  <wl@gnu.org>
3121         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
3122         `config.cache'.
3124         * Removed configure.old.
3126 1999-08-31  Werner LEMBERG  <wl@gnu.org>
3128         * VERSION: Updated to 1.11.1
3130 1999-05-27  Werner LEMBERG  <wl@gnu.org>
3132         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
3134         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3135         added quotations around $(tmac_wrap) to avoid syntax error if
3136         variable is empty.
3138         * configure: Newly generated using autoconf 2.13.
3140         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
3142 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
3144         * README, PROJECTS, NEWS, INSTALL, VERSION, 
3145         doc/Makefile. doc/pic.ms, groff/groff.man:
3146         Prepare for 1.11 release.  No code changes.
3147         Documentation for pic added (doc/pic.ms).
3149 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
3151         * Version 1.10 released.
3153 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
3155         * afmtodit/afmtodit.pl: Avoid comment on first line.
3157 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
3159         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
3160         * configure.in: Call it.
3162         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
3163         (distfiles): Doesn't depend on config.log or config.cache.
3165 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
3167         * grog/grog.sh: Use print "" rather than print in END rule.
3169 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
3171         * tbl/main.cc (process_data): Don't give error for excess data
3172         entries that are comments.
3174 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
3176         * tbl/main.cc (process_data): Fix case where new for-scope rules
3177         silently change meaning of code.
3179 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
3181         * troff/env.cc (hyphenate): Loop over all consecutive sequences
3182         of non-zero hyphenation codes.
3184 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
3186         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
3188 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
3190         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
3192 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
3194         * tmac/tmac.andoc: Make it work in compatibility mode.
3196         * refer/token.h (token_info::is_range_sep): New function.
3197         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
3198         * refer/ref.cc (reference::output): More sophisticated check for
3199         multiple pages.
3201         * devps/prologue.ps (MANUAL): New procedure.
3202         * grops/ps.cc (main): New -m option.
3203         (usage): Include -m.
3204         (ps_printer::~ps_printer): Implement -m.
3206         * aclocal.m4 (GROFF_G): New macro.
3207         * configure.in: Call it.
3208         * Makefile.in (g): Provided by configure.
3210         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
3212         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
3213         translations.
3215         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
3216         (tmac_m, tmac_s): Deleted.
3217         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
3218         tmac_s_prefix): New variables.
3219         (MDEFINES): Change accordingly.
3220         * Makefile.comm (.man.n): Use new TMAC_* variables.
3221         * configure.in (GROFF_TMAC): Call.
3222         * aclocal.m4 (GROFF_TMAC): Define.
3223         * tmac/Makefile.sub (stamp_wrap): New target.
3224         (install_data, uninstall_sub): Handle macro wrapping.
3226 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
3228         * tbl/main.cc (main): Ignore -T option.
3230 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
3232         * devlj4/generate/special.map: Add definition of \(nb.
3234         * tmac/tmac.dvi: Add definition of \(nb.
3236         * troff/dictionary.c (dictionary::dictionary): association::v gets
3237         initialized by association::association.
3239         * tmac/Makefile.sub: Avoid using temporary files when installing.
3241         * troff/env.cc (environment::set_font): Make bad font number a
3242         warning.
3244         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
3246         * Makefile.in (datadir): Use share rather than lib.
3248         * groff/groff.cc (basename): Rename to xbasename.
3250 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
3252         * Makefile (CCLIBS): Don't use.
3253         * Makefile.ccpg: Likewise.
3255         * acgroff.m4: Rename to...
3256         * aclocal.m4: Modify extensively for autoconf 2.
3257         * configure.in: Likewise.
3258         * Makefile.in: Likewise.
3260         * groff/pipeline.c (const): Declare as empty if __STDC__ not
3261         defined.
3262         (xstrsignal): Check for definition of NSIG. Conditionalize
3263         on SYS_SIGLIST_DECLARED.  Make return type const.
3265 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
3267         * troff/input.cc (interpolate_macro): Rephrase missing space
3268         warning.
3270 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
3272         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
3273         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
3274         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
3275         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3276         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
3277         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
3278         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
3279         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
3280         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
3281         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
3282         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
3283         Fix 'for' scoping.
3285 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
3287         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
3288         string_iterator.
3289         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
3290         file.
3291         (macro_iterator::macro_iterator): Add additional argument.
3293 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
3295         * troff/div.cc (vertical_size::vertical_size): In place of integer
3296         specifying line spacing use cunits specifying post vertical
3297         space.
3298         (macro_diversion::output, top_level_diversion::output): Likewise.
3299         * troff/div.h: Change declarations accordingly.
3300         * troff/env.cc (pending_output_line): Replace ls field by post_vs
3301         field.
3302         (pending_output_line::pending_output_line,
3303         pending_output_line::output, environment::output,
3304         environment::output_line, environment::output_title,
3305         environment::hyphenate_line):  In place of
3306         integer specifying line spacing use cunits specifying post vertical
3307         space.
3308         (environment::environment): Add post_vertical_spacing and
3309         prev_post_vertical_spacing arguments.
3310         (environment::get_post_vertical_spacing): New function.
3311         (environment::total_post_vertical_spacing): New function.
3312         (environment::post_vertical_spacing): New function.
3313         (init_env_requests): Initialize pvs request and .pvs register.
3314         * troff/env.h: Change declarations.
3316 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
3318         * tmac/tmac.pspic: Immediately remove the temporary file.
3320 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
3322         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
3323         height is specified.
3325 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
3327         * tbl/table.c (struct vertical rule, class table_entry): Use int
3328         not short for start_row and end_row.
3330 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
3332         * troff/input.cc (trapping_blank_line, blank_line_macro): New
3333         functions.
3334         (diverted_space_node::reread, process_input_stack): Call
3335         trapping_blank_line() rather than blank_line().
3336         (init_input_requests): Bind "blm" to blank_line_macro().
3338         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
3340 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
3342         * troff/env.cc (environment::possibly_break_line): Require that
3343         width total excluding width of final space node be greater than
3344         the target text length.
3346 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
3348         * troff/node.cc (kern_pair_node::vertical_extent): New function.
3350 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
3352         * troff/node.cc (charinfo_node): New class.
3353         (glyph_node, composite_node): Derive from charinfo_node.  Change
3354         member functions accordingly.
3356 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
3358         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
3360 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
3362         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
3364         * devps/generate/textmap (notsubset): Add.
3366         * tmac/tmac.a4: New file.
3368 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
3370         * pic/main.cc (had_parse_error): New variable.
3371         (do_picture, do_whole_file): Set had_parse_error if yyparse()
3372         returns non-zero.
3373         (main): Return 1 if had_parse_error is true.
3375 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
3377         * grolj4/lj4.cc (main): Avoid use of strtoul.
3379 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
3381         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
3382         iso_8859_1 or $LESSCHARSET is latin1.
3384 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
3386         * hpftodit: New directory.
3387         * Makefile.in (CCPROGDIRS): Add hpftodit.
3388         * devlj4/generate: New directory.
3390 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
3392         * configure.in: Don't use AC_VFORK.
3393         * groff/pipeline.c (run_pipeline): Use fork() always.
3395 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
3397         * grops/ps.cc (main): Use %1 not %s in error message for -w.
3399         * Makefile.in (CCPROGDIRS): Add grolj4.
3400         (DEVDIRS): Add devlj4.
3401         * grolj4, devlj4: New directories.
3402         * tmac/troffrc: Handle lj4.
3403         * tmac/tmac.lj4: New file.
3405 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
3407         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
3409 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
3411         * troff/input.cc (do_if_request): At end of second string, switch
3412         environments before getting next token.
3414 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
3416         * devps/psstrip.sed: Split rule that strips whitespace on either
3417         side of delimiters.
3419 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
3421         * troff/node.h (font_family::make_definition): Add return value to
3422         declaration.  * troff/symbol.h (symbol::operator==,
3423         symbol::operator!=): Likewise.
3425 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
3427         * groff/groff.cc (main, help, synopsis): Handle -S.
3428         (possible_command::insert_arg): New function.
3430         * tmac/tmac.safer: New file.
3431         * tmac/msafer.man: New file.
3432         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
3434 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
3436         * pic/pic.h, pic/main.cc (safer_flag): New variable.
3437         * pic/pic.y (placeless_element): Avoid unsafe operations if
3438         `safer_flag' is set.
3439         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
3441 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
3443         * eqn/lex.cc (get_token): Put call to add_context() in block to
3444         work around Sun C++ 4.0 bug.
3446         * include/stringclass.h (operator +): Use ?: instead of `if' to
3447         work around Sun C++ 4.0 bug.
3449 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
3451         * tbl/main.cc (process_format): Accept - as a synonym for the _
3452         key letter.
3454         * libbib/index.cc (minus_one): Don't declare as const.
3456 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
3458         * troff/input.cc (get_char_for_escape_name): Push back a newline.
3460 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
3462         * troff/input.cc (write_macro_request): New function.
3463         (init_input_requests): Bind write_macro_request to writem.
3465 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
3467         * tmac/tmac.s (@EN): Turn filling back on even if there was no
3468         equation.
3470         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
3472         * tmac/tmac.s (@TS): Renamed from TS.
3473         (TS): Call LP then TS again.
3474         (cov*ab-init): Alias @TS to TS.
3476         * tmac/tmac.s: Allow QP or RS to initialize.
3478         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
3479         Move initializations of PS and LL here.
3480         (par@init): Don't initialize HY.  Avoid changing environment 0.
3481         (par*env-init): Don't all par@reset.
3483 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
3485         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
3487 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
3489         * Makefile.in (MDEFINES): Add LDFLAGS.
3490         (LDFLAGS): Add definition line.
3492 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
3494         * troff/input.cc (get_optional_char): Split off error check into...
3495         (check_missing_character): New function.
3496         * troff/token.h: Declare it.
3497         * troff/env.cc (margin_character): Don't call get_optional_char.
3498         Only call tok.next() after making the node.
3500         * include/lib.h (getopt): Make 2nd argument char *const *.
3502 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
3504         * nroff/conftest.sh: Deleted.
3506 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
3508         * pic/make-dos-dist: Deleted.
3510 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
3512         * devps/psstrip.sed: Strip comments before stripping trailing
3513         white space.
3515 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
3517         * Version 1.09 released.
3519 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
3521         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
3523 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
3525         * libgroff/font.cc (font::load_desc): Fix typo in error message.
3527 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
3529         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
3530         about returning without a value.
3532         * troff/charinfo.h (charinfo::get_special_translation): Cast
3533         TRANSLATE_NONE to int.
3535         * refer/token.cc (lookup_token, store_token): Remove bogus loop
3536         test.  Fix test so that it works with n unsigned.
3538         * pic/pic.y (defaults_table): Fully bracket initializer.
3539         * pic/lex.cc (lookup_keyword): Likewise.
3540         * eqn/lex.cc (token_table, def_table): Likewise.
3541         * eqn/box.cc (param_table): Likewise.
3542         * troff/input.cc (warning_table): Likewise.
3543         * libgroff/font.cc (table): Likewise.
3544         * grops/ps.cc (ps_printer::special): Likewise.
3545         * grops/psrm.cc (resource_manager::process_file): Likewise.
3546         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
3547         * refer/command.cc (command_table): Likewise.
3548         * addftinfo/addftinfo.cc (param_table): Likewise.
3550         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
3551         about temp's being unused.
3552         (unused): New function.
3554         * groff/pipeline.cc: Declare c_fatal.
3556         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
3557         uchar.
3559         * libbib/index.cc (index_search_item::load): Prevent compiler
3560         warnings about fd_closer's being unused.
3561         (unused): New function.
3563 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
3565         * troff/input.cc (copy_mode_error): Make `prefix' static.
3566         Fix typo.
3568         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
3569         defined.
3570         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
3571         HAVE_CC_OSFCN_H and modify accordingly.
3573         * troff/input.cc (init_charset_table): radicalex overlaps
3574         horizontally.
3576         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
3577         udodo!hans@relay.NL.net).
3578         * groff/configure.in: Call it.
3580         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
3581         * groff/configure.in: Call it.
3582         * include/lib.h: Conditionalize declaration of pclose.
3584         * troff/div.cc (last_page_number): New global variable.
3585         (top_level_diversion::begin_page): Exit if we just printed the
3586         last page.
3587         * troff/div.h (last_page_number): Declare it.
3588         * troff/input.cc (parse_output_page_list): Set last_page_number.
3590         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
3591         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
3592         tmac/tmac.X: Likewise.
3593         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
3594         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
3596 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
3598         * tmac/doc-ditroff (hK): Remove groff specific code which
3599         prevented page-breaks between separate manual entries.  If this is
3600         the first page, don't set the page number to 1.
3602         * acgroff.m4 (GROFF_POSIX): New macro.
3603         * configure.in: Use it.
3605         * troff/node.cc (class real_output_file,
3606         real_output_file::real_output_file,
3607         real_output_file::~real_output_file): Conditionalize use of
3608         popen/pclose on POPEN_MISSING.
3609         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
3610         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
3611         (pipe_source): Similarily.
3613         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
3615         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
3616         presence of declarations by trying to compile example with
3617         conflicting declarations.  (gcc only gives a warning for missing
3618         declarations.)
3620 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
3622         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
3623         (from Ulrich Lauther).
3625 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
3627         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
3629 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
3631         * indxbib/indxbib.cc (write_hash_table): Add code for case where
3632         pointers and ints have different sizes.
3634 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
3636         * tmac/tmac.s (par*env-init): Call par@reset.
3638 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
3640         * tmac/tmac.s (@IP): Switch to a new environment when diverting
3641         tag.
3642         (par*push-tag-env, par*pop-tag-env): New macros.
3644 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
3646         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
3647         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
3649         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
3650         comment.  Include <time.h>.
3652 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
3654         * grops/ps.cc (is_small_h, is_small_v): Deleted.
3655         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
3656         lines.
3658 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
3660         * troff/input.cc (read_request): Only print a prompt if reading
3661         from the terminal.  Also clearerr on EOF if reading from the
3662         terminal.  Declare isatty.
3664 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
3666         * refer/label.y: Rename map_t to map_func and extractor_t to
3667         extractor_func.
3669 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
3671         * include/assert.h: Don't use volatile.
3672         * libgroff/assert.cc: Likewise.
3674 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
3676         * troff/input.cc (abort_request): Look at character in tok before
3677         calling get_copy().
3679 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
3681         * troff/troff.h (NO_RETURN): Deleted.
3682         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
3683         * troff/input.cc (exit_troff): Likewise
3685         * Makefile.in: Remove `Making ...' messages since GNU make now
3686         gives these. 
3688         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
3690 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
3692         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
3693         to constant 1 inch.
3695 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
3697         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
3699 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
3701         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
3702         MARK_REG if there was no left delimiter.
3704 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
3706         * pic/troff.cc (troff_output::text): Set line thickness to
3707         relative before outputting text.
3709         * tmac/tmac.e (@k): Don't zero ?T.
3710         ((z): Likewise.
3712 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
3714         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
3716 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
3718         * troff/input.cc (decode_args): Warn about unquoted tabs (from
3719         Paul Eggert).
3721 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
3723         * troff/input.cc (ignoring): New variable.
3724         (ignore): Set ignoring during call to do_define_macro.
3725         (do_define_macro): Clear ignoring before interpolating terminating
3726         macro.
3727         (copy_mode_error): New function.
3728         (get_char_for_escape_name, read_long_escape_name,
3729         interpolate_arg): Use copy_mode_error.
3730         (warning_table): Add WARN_IG.
3731         * troff/troff.h (WARN_IG): Declare.
3732         (WARN_TOTAL): Change accordingly.
3734         * groff/pipeline.c (strsignal): Rename to xstrsignal.
3735         * groff/groff.cc (strsignal): Delete declaration.
3737 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
3739         * troff/div.cc (page_offset): Use 'm' as default scaling.
3741 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
3743         * nroff/nroff.sh: Ignore -u.
3745 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
3747         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
3749 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
3751         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
3752         drawing box.
3753         (B2): With -Tascii, leave additional vertical space before
3754         and after. Ensure that the left and right indent is restored to
3755         what it was even if the point size changes.  Don't call
3756         par@finish. Change the indent, line length and title length
3757         directly.  With -Tascii, make the width of the box 1n less.
3758         (B1): Remember 1n at the current point size.  Don't call
3759         par@reset.  Change the indent, line length and title length
3760         directly.  Ensure that the temporary indent is preserved.
3761         (par*box-mark-top): Turn off no spacing mode.
3763 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
3765         * Makefile.in (dist): Use .gz suffix.
3767 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
3769         * troff/input.cc (main): Add return 0.
3770         * pic/main.cc (main): Use return instead of exit.
3771         * tbl/main.cc (main): Likewise.
3772         * eqn/main.cc (main): Likewise.
3773         * grops/ps.cc (main): Likewise.
3774         * grotty/tty.cc (main): Likewise.
3775         * groff/groff.cc (main): Likewise.
3776         * grodvi/dvi.cc (main): Likewise.
3777         * refer/refer.cc (main): Likewise.
3778         * indxbib/indxbib.cc (main): Likewise.
3779         * lkbib/lkbib.cc (main): Likewise.
3780         * soelim/soelim.cc (main): Likewise.
3781         * addftinfo/addftinfo.cc (main): Likewise.
3782         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
3783         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
3785         * troff/token.h (process_input_stack): Don't declare as static.
3786         * troff/input.cc: Likewise.
3788         * troff/node.c (invalidate_fontno): Make it a static member of
3789         class font_family.  Change callers.
3790         * troff/node.c: Change declaration.
3792         * tbl/main.cc (struct input_entry_format): Add explicit public
3793         specifier.
3794         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
3795         struct double_hline_stuff): Likewise.
3796         * tbl/table.h (struct entry_format): Likewise.
3797         * pic/object.h (struct saved_state): Likewise.
3799         * include/stringclass.h: Add forward declarations of friend
3800         functions that are later declared as inline.  Don't include inline
3801         specifier in friend declaration.
3803         * libgroff/lib.h: Declare popen and pclose.
3804         * acgroff.m4 (GROFF_POPEN): New macro.
3805         * configure.in: Call it.
3807         * include/lib.h (PI): New constant. Undef first if necessary.
3808         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
3809         * grops/ps.cc (degrees, radians): Likewise.
3810         * libgroff/font.cc (font::get_skew): Likewise.
3812         * grops/ps.cc (is_ascii): New function.
3813         (ps_output::put_string): Use is_ascii.  Use csprint rather than
3814         isprint.
3815         (ps_printer::define_encoding): Use csspace.
3816         * libgroff/strtol.c (ISASCII): New macro.
3817         (strtol): Cast arguments to is*() and tolower() to unsigned char.
3818         Use ISASCII rather than isascii.
3819         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
3820         * libgroff/cset.cc: Likewise.
3821         * libdriver/input.cc: Include cset.h.
3822         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
3823         than isdigit().
3825         * refer/refer.cc (main): Use %ld rather than %d for longs.
3827         * libbib/index.cc (index_search_item_iterator::get_tag): Use
3828         S_ISREG macro.
3830         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
3832 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
3834         * troff/input.cc (hyphenation_code): Skip white space between
3835         char/code pairs.
3837 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
3839         * tbl/table.h (table::entry_list_tailp): New member.
3840         (table::table): Initialize it.
3841         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
3842         behaviour.
3844 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
3846         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
3847         with negative horizontal positions. Remove casts of glyph::hpos to
3848         int.
3849         (USHRT_MAX): Delete definition.
3850         (SHRT_MAX, SHRT_MIN): New definitions.
3851         (glyph::hpos): Change type to short.
3852         (tty_printer::end_page): Output multiple backspaces if necessary.
3853          Remove casts of glyph::hpos to int.
3854         
3855 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
3857         * tmac/tmac.s (@RT): New definition.
3859 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
3861         * refer/refer.cc (do_file): Make sure current_filename is set when
3862         filename is "-".
3864         * pic/common.cc (common_output::dot_line): Handle zero length
3865         lines.
3867 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
3869         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
3870         (par@init): Initialize \n[HY].
3872 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
3874         * troff/dictionary.cc (dictionary::remove): Continue when
3875         r < j < i.
3877 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
3879         * Makefile.com (.y.cc): Avoid ending up with two versions of
3880         $(YTABH).
3882 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
3884         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
3885         (\(,C): Likewise.  Also fix typo.
3887 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
3889         * lib.h: Delete extraneous semi-colon.
3891         * Add pso request: `so' from a pipe.
3892         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
3893         (file_iterator::close): New function.
3894         (file_iterator::~file_iterator, file_iterator::next_file): Use
3895         file_iterator::close.
3896         (file_iterator::backtrace): Say `process' rather than `file' when
3897         the stream is popened.
3898         (pipe_source): New function.
3899         (init_input_requests): Bind ".pso" to pipe_source.
3901 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
3903         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
3905         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
3906         digits in lower case.
3908 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
3910         * Version 1.08 released.
3912         * Makefile.in (dist): Insert || true after ln -s commands that
3913         might fail.
3915         * mm: Update to mm 1.16.
3917         * acgroff.m4 (GROFF_CSH_HACK): New macro.
3918         * configure.in: Call GROFF_CSH_HACK.  Substitute for
3919         SH_SCRIPT_SED_CMD.
3920         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
3921         MDEFINES.
3922         * nroff/Makefile.sub (nroff): New target.
3923         (install_data): Install nroff.
3924         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
3925         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
3927 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
3929         * eqn/Makefile.sub (neqn): Add chmod +x.
3931         * grog/Makefile.sub (grog): Remove spurious semi-colon.
3933 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
3935         * troff/input.cc (string_iterator::string_iterator()): Initialize
3936         lineno and count.
3938 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
3940         * troff/div.cc (macro_diversion::space,
3941         top_level_diversion::space): Don't set high_water_mark.
3942         (macro_diversion::output, top_level_diversion::output): Don't
3943         include post line space in high water mark.
3945 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
3947         * eqn/eqn.y: Don't define YYDEBUG.
3948         * pic/pic.y: Likewise.
3950 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
3952         * tmac/tmac.e ([3): Add space after comma following editors.
3953         Change double spaces to single spaces.
3954         ([4): Change double spaces to single spaces.
3956         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
3957         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
3958         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
3959         after %!PS-Adobe- (for Newsprint).
3961         * troff/div.cc (top_level_diversion::begin_page): When
3962         before_first_page is 1, set page_number to 1.
3964 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
3966         * eqn/box.cc (box::top_level): Protect equation with \&.
3968 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
3970         * groff/groff.cc (possible_command::set_name): Delete old name.
3972         * groff/groff.cc (possible_command::~possible_command): Use
3973         a_delete.
3975         * troff/node.cc (troff_output_file::begun_page): New member.
3976         (troff_output_file::troff_output_file): Initialize it.
3977         (troff_output_file::really_begin_page): Only output V command if a
3978         page has been begun.
3980         * pic/pic.y (placeless_element): Delete argument to PRINT after
3981         use.
3983 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
3985         * Make wrapman work.
3986         * troff/div.h (class top_level_diversion): Replace
3987         first_page_begun by before_first_page (with opposite sense).
3988         * Change first_page_begun to before_first_page inverting sense.
3989         * troff/div.cc (class nl_reg): New class.
3990         (init_div_requests): Use class nl_reg for \n(nl.
3991         (top_level_diversion::begin_page): Don't call
3992         output_file::begin_page if before_first_page is 2;
3993         reset before_first_page afterwards.  If have_next_page_number is
3994         false, then always increment page_number.
3995         * tmac/tmac.an: Set traps within TH rather than at the top-level.
3996         Restore compatibility mode after loading, and then disable
3997         compatibility mode in TH.
3999 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
4001         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
4002         past last line.
4003         * troff/node.h (output_file::trailer): Declare.
4004         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
4005         * troff/node.cc (output_file::trailer): New function.
4006         (troff_output_file::~troff_output_file): Move most code into...
4007         (troff_output_file::trailer): New function.
4008         (class troff_output_file): Delete page_length member. Declare
4009         trailer().
4010         (troff_output_file::really_begin_page): Use current page length
4011         for final V command.
4013         * tbl/main.cc (struct options): New decimal_point_char member.
4014         (options::options): Initialize this.
4015         (process_options): Implement decimalpoint option.
4016         (process_data): Pass decimal_point_char option to table::table.
4017         * tbl/table.h (class table): New decimal_point_char member.
4018         (table::table): Add additional argument.
4019         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
4020         second argument specifying decimal point character.  Use this
4021         instead of '.'.
4022         (table::table): Initialize decimal_point_char.
4023         (table::add_entry): Change call to find_dot.
4025         * troff/input.cc (get_copy, token::next): Implement \V.
4026         (interpolate_environment_variable): New function.
4028 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
4030         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
4031         * pic/pic.y: Likewise.
4033         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
4034         Add casts to int.
4035         * refer/ref.cc (reference::insert_field, reference::delete_field):
4036         Likewise.
4037         * troff/number.cc (parse_term): Likewise.
4039         * acgroff.m4 (GROFF_PROG_YACC): New macro.
4040         * configure.in: Use GROFF_PROG_YACC.
4042         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
4043         and g++.
4044         * Makefile.in (OPTIMIZE): New define.
4045         (DEBUG): Empty by default.
4046         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
4048         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
4049         (GROFF_ARRAY_DELETE): Likewise.
4050         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
4052         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
4054         * devps/psstrip.sed: Use different delimiter on last line (so that
4055         it works with BSD 4.4 sed.)
4057 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
4059         * devps/psstrip.sed: Delete comments.
4061         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
4062         optind, opterr, optarg.
4063         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
4064         opterr, optarg.
4066 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
4068         * Makefile.in (check): Dummy target.
4070 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
4072         * Version 1.07 released.
4074         * Integrate mm 1.11.
4076         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
4077         where start_col was meant.
4079 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
4081         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
4083 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
4085         * troff/input.cc (token::next): Make \z\o'...' and similar things
4086         work.
4088         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
4089         constants.
4090         (environment): Add margin_character_flags member.
4091         * env.cc (environment::environment(symbol),
4092         environment::environment(const environment *): Initialize
4093         margin_character_flags.
4094         (margin_character): Rewrite.
4095         (environment::output_line): Add a margin character if
4096         margin_character_flags is non-zero.  Turn off the
4097         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
4098         zero, use margin_character_node without copying and then set
4099         margin_character_node to 0.
4101         * devps/DESC.in: Change minimum size to 1000.
4103 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
4105         * troff/symbol.h (symbol::hash): Change return type to unsigned
4106         long.
4107         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
4108         Add casts to int.
4110         * test-groff: Use -r rather than -x.
4112         * grops/psfig.diff: Include in distribution again.
4114 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
4116         * Makefile.in (dist): Use gzip.
4118 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
4120         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
4121         unistd.h as well as in stdlib.h.
4122         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
4123         defined; otherwise include <sys/types.h> and <unistd.h> if
4124         UNISTD_H_DECLARES_GETOPT is defined.
4126         * configure.in: use builtin(include, ... rather than include(...
4127         * configure: Regenerate with autoconf 1.3.
4129         * libdriver/print.cc (printer::adjust_arc_center): Use new
4130         algorithm suggested by Andy Fyfe.
4132         * libdriver/printer.cc (printer::adjust_arc_center): New function.
4133         * include/printer.h: Declare this.
4134         * grops/ps.cc (ps_printer::draw): Use it.
4135         * grodvi/dvi.cc (dvi_printer::draw): Use it.
4137 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
4139         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
4141 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
4143         * eqn/main.cc (main): Handle "eqn -".
4145 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
4147         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
4149         * mm: Integrate version 1.08.
4151         * pic/troff.cc (troff_output::finish_picture): Set
4152         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
4153         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
4154         if it's not defined. Check whether the register is non-zero rather
4155         than whether it's not defined.
4156         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
4158         * indxbib/indxbib.cc: Move all signal handling into...
4159         * indxbib/signal.c: New file.
4160         * configure.in: Call AC_RETSIGTYPE.
4162         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
4163         * configure.in: Call GROFF_STRUCT_EXCEPTION.
4164         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
4166         * troff/input.cc (token::token, token::operator=): Work round SGI
4167         C++ bug.
4168         * pic/object.cc (position::position): Likewise.
4170 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
4172         * pic/pic.h: Move declaration of hypot().
4174 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
4176         * pic/pic.h: Declare hypot().
4178         * pic/pic.h: Define M_PI if necessary.
4180 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
4182         * tmac/tmac.e (re): Add alternative version that doesn't use groff
4183         `.ta T' feature.
4185         * devps/prologue.ps (RE): Handle the possibility that the old font
4186         doesn't have a FontName entry.
4188 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
4190         * tmac/tmac.e (fam): Redefine to set family in environment 2.
4191         (@C): Use @fam not fam.
4193 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
4195         * lookbib/lookbib.cc (main): Change type of start to const char *.
4196         * lkbib/lkbib.cc (main): Likewise.
4198         * eqn/lex.cc (definition::definition): Don't use member
4199         initializer syntax for members of anonymous unions.
4201         * troff/input.cc (input_stack::backtrace): Change type of to const
4202         char *.
4204 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
4206         * include/stringclass.h (class string): Declare inline friend
4207         functions as inline in class declaration.
4208         * troff/hvunits.h (class hunits, class vunits): Likewise.
4209         * include/refid.h (class reference_id): Likewise
4210         * troff/troff.h (points_to_units(units), scale(units, double)):
4211         Delete declarations.
4212         * libdriver/input.cc (get_char): Delete declaration.
4213         * include/lib.h: Change 2nd argument of getopt from const char **
4214         to char **.
4215         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
4216         char **' before assigning to a `const char **'.
4217         * tbl/table.cc: Delete extra declarations of prints().
4219 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
4221         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
4222         char **' before assigning to a `const char **'.
4224         * libgroff/errarg.cc (errarg::errarg): Don't use member
4225         initializer syntax for members of anonymous unions.
4227 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
4229         * mm: Integrate version 1.07.
4231 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
4233         * troff/input.c (translate2): Rename to
4234         (translate_no_transparent).
4235         (init_input_requests): Rename tr2 to trnt.
4237 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
4239         * troff/charinfo.h (class charinfo): Add transparent_translate field.
4240         (charinfo::set_translation, charinfo::set_special_translation):
4241         Add second argument that specifies value for
4242         transparent_translate.
4243         (charinfo::get_translation, charinfo::get_special_translation):
4244         Add optional second argument that specifies whether translation is
4245         being used for transparent throughput.
4246         * troff/input.cc (charinfo::set_translation,
4247         charinfo::set_special_translation): Handle second argument.
4248         (charinfo::charinfo): Initialize transparent_translate.
4249         (translate): Split main part off into
4250         (do_translate): New function.  Pass argument saying whether
4251         translation applies to transparent throughput.
4252         (translate2): New request.
4253         (init_input_requests): Bind translate2 to `tr2'.
4255 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
4257         * tbl/table.h (class table): Add `nokeep' flag.
4258         * tbl/main.cc (process_options): Handle `nokeep' option.
4259         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
4260         table::do_bottom): Don't output keep/release macro definitions or
4261         calls when `nokeep' option has been specified.
4263 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
4265         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
4267 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
4269         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
4270         block_entry::divert, alphabetic_block_entry::divert): Add extra
4271         argument giving column separation.
4272         (table::compute_widths): Pass column separation to
4273         table_entry::divert().
4274         (block_entry::do_divert): If an entry spans multiple columns and a
4275         minimumum width has been specified for each column, then set the
4276         line length to the sum of the widths (plus possibly the column
4277         separations).
4279         * troff/input.cc (set_escape_char): Don't set the escape_char
4280         until after calling has_arg().
4282 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
4284         * tbl/table.cc (table::do_top): Add missing \s0 for double box
4285         case.
4287         * tbl/table.cc (table::print_double_hline): Avoid extra new line
4288         in case where r > nrows - 1.
4290         * tbl/table.cc (BODY_HEIGHT): Deleted.
4291         (LINE_SEP): New definition.
4292         (table::print_single_hline, table::print_double_hline,
4293         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
4294         table::do_row, table::do_top): Use LINE_SEP space before a line
4295         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
4297         * tbl/table.cc (text_entry::print_contents): New function.
4298         (text_string_name, right_text_string_name): Deleted.
4299         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
4300         (simple_text_entry::do_width, numeric_text_entry::do_width,
4301         alphabetic_text_entry::do_width): Don't store the contents of the
4302         entry in a string.
4303         (left_text_entry::simple_print, right_text_entry::simple_print,
4304         center_text_entry::simple_print,
4305         alphabetic_text_entry::simple_print,
4306         numeric_text_entry::simple_print): Print the entry directly
4307         instead of using the stored string.
4309 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
4311         * devps/Makefile: Strip PostScript files.
4312         * devps/prologue: Rename to...
4313         * devps/prologue.ps.
4314         * devps/psstrip.sed: New file.
4315         * devps/download: Use .pfa rather than .ps for installed versions
4316         of fonts.
4318 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
4320         * troff/env.cc (input_trap): Give a warning if the argument is out
4321         of range.
4323         * troff/env.cc (adjust): Treat negative argument as missing. Round
4324         argument > 5 down to 5.
4326         * troff/env.cc (center, right_justify): Make negative argument zero.
4328         * troff/div.cc (page_offset, vertical_position_traps): Treat
4329         invalid argument as missing.
4330         * troff/env.cc (line_spacing, line_length, title_length, indent,
4331         underline, hyphen_line_max_request, control_char,
4332         no_break_control_char, widow_control_request, adjust, input_trap,
4333         point_size): Likewise.
4334         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
4335         constant_space): Likewise.
4336         * troff/input.cc (compatible, shift, warn_request,
4337         set_escape_char): Likewise.
4339         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
4340         * tbl/table.cc (table::table): Likewise.
4342         * Makefile.dev (install_dev): depends on $(DEVFILES).
4344 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
4346         * devX75, devX75-12, devX100, devX100-12: New directories.
4347         * Makefile.in: Add these to DEVDIRS.
4349         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
4350         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
4351         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
4352         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
4353         targets.
4354         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
4355         (uninstall): New target.
4356         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
4357         uninstall_prog, uninstall_dev): New targets.
4359         * troff/div.cc (return_request): Treat an invalid argument as
4360         missing.
4362 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
4364         * tmac/tmac.e ((f): Set up the environment even when there's a
4365         current diversion.  Transperently throughput a call to @N.
4366         (@N): New macro.
4368 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
4370         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
4371         up to vertical resolution.
4373         * tbl/table.cc (table::do_row): Change row number after printing
4374         stuff list.
4376         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
4378 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
4380         * Rename CHANGES to NEWS.
4382 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
4384         * libgroff/new.cc (operator new): Avoid calling malloc(0).
4386 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
4388         * man.ultrix: Removed.
4390 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
4392         * Makefile.comm (extraclean): Delete files whose names begin with
4393         `='.
4395         * pic/troff.cc (troff_output::text): Fix typo in implementation of
4396         aligned text.
4398 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
4400         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
4401         * troff/div.cc (page_length, need_space, space_request): Treat
4402         invalid optional argument as missing.
4403         * troff/env.cc (number_lines): If the first argument is present
4404         but not a number, turn on line numbering, don't change the next
4405         line number and parse the remaining arguments.
4407         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
4409 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
4411         * eqn/box.h: Change declaration accordingly.
4412         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
4413         the specified size was bad but don't give an error.  Check for
4414         overflow.
4415         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
4416         * eqn/lex (do_size): Likewise.
4418 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
4420         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
4421         compatible headers.
4423 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
4425         * tbl/table.cc (table::init_output): Improve error message when
4426         table won't fit on one page.
4428 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
4430         * pic/troff.cc (troff_output::start_picture): Generate line
4431         containing a horizontal motion equal to the width of the picture.
4433         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
4434         using GROFF_COMMAND_PREFIX environment variable.
4436 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
4438         * mdate.sh: Use $NF rather than $(NF).
4440 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
4442         * pic/main.cc (main):  Use %1 not %c in argument to warning.
4444         * eqn/main.cc (main): Output code to check that geqn was given the
4445         correct -T option.
4447 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
4449         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
4450         `ln -s ../Makefile .; make; rm -f Makefile'.
4452         * troff/hyphen: Rename to...
4453         * troff/hyphen.us:
4454         * troff/input.cc (main): Delete -H option. Don't call
4455         read_hyphen_file().
4456         * troff/env.cc: Include searchpath.h and macropath.h.
4457         (exception_dictionary): Deleted.
4458         (ht): Deleted.
4459         (read_hyphen_file): Deleted.
4460         (hyphenation_language): New struct.
4461         (class trie, class hyphen_trie): Move declarations up.
4462         (trie_node::~trie_node): Deleted.
4463         (trie::delete_trie_node): New function.
4464         (trie::do_delete): New pure virtual function.
4465         (hyphen_trie::do_delete): New function.
4466         (trie::~trie): New function.
4467         (hyphen_trie::~hyphen_trie): New function.
4468         (trie::clear): No need to chcek that tp is not 0.
4469         (current_language, language_dictionary): New variables.
4470         (hyphen_word): Give an error if no current language.  Use
4471         exceptions dictionary in current language.
4472         (hyphen_trie::read_patterns_file): Find file using macro_path.
4473         Allow comments (starting with %) in patterns file.  Don't make it
4474         a fatal error if the file can't be found.
4475         (hyphenate): Return if no current language.  Get the exceptions
4476         dictionary and the hyphenation patterns from the current language.
4477         (set_hyphenation_language): New variable.
4478         (hyphenation_patterns_file): New function.
4479         (hyphenation_language_reg): New class.
4480         (hyphenation_language_reg::get_string): New function.
4481         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
4482         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
4483         register.
4484         * groff/groff.cc (main, help, synopsis): Delete -H option.
4485         * include/Makefile.sub: Don't define HYPHENFILE.
4486         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
4487         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
4488         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
4489         hyphenation patterns.
4491 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
4493         * eqn/neqn.sh: New file.
4494         * eqn/Makefile.sub: Handle neqn.sh.
4496         * eqn/eqn.h: Declare `nroff' variable.
4497         * eqn/box.cc (param_table): Add `nroff' param.
4498         (nroff): Define it.
4499         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
4500         variable.
4501         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
4503         * troff/troff.h (WARN_FONT): New warning.
4504         (WARN_TOTAL): Change accordingly.
4505         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
4506         (warning_table): Add WARN_FONT.
4507         * troff/node.cc (mount_font_no_translate): Pass argument to
4508         font::load_font.  If this is non-zero, give a warning.
4509         Don't give an error message when accessing a font that has already
4510         been found to be invalid.
4511         * include/font.h (font::load, font::load_font): Add additional
4512         optional argument which suppresses error message if the font is
4513         not found.
4514         * libgroff/font.cc (font::load_font): Handle additional argument.
4515         (font::load): Add additional argument. If this is non-null, set it
4516         to 1 and don't give error message.
4518         * include/printer.h (printer::end_page): Add argument giving
4519         length of page.
4520         * libdriver/input.cc (do_file): Pass this.
4521         * grops/ps.cc (ps_printer::end_page): Add argument.
4522         * grodvi/dvi.cc (dvi_printer::end_page,
4523         draw_dvi_printer::end_page): Add argument.
4524         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
4525         columns_per_page members. New member nlines.
4526         (DEFAULT_LINES_PER_PAGE): Deleted.
4527         (tty_printer::tty_printer): Don't compute lines_per_page from
4528         font::paperlength. Don't compute columns_per_page from
4529         font::paperwidth.
4530         (tty_printer::add_char): Don't check horizontal position against
4531         columns_per_page. Grow glyphs vector if neccessary.
4532         (tty_printer::end_page): Add argument giving page_length in units.
4533         Discard lines past end of page.
4535 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
4537         * tmac/tmac.tty-char: Fix definition of \(/l.
4539         * tmac/tmac.X: Define \(en.
4541 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
4543         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
4544         lpq, then use lp rather than lpr.
4546         * tmac/tmac.s (par@reset): Don't call `ad'.
4547         (par*env-init): Call `ad'.
4549 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
4551         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
4552         date.
4554         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
4555         * indxbib/indxbib.cc: Likewise.
4557 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
4559         * libgroff/putenv.c: New file.
4560         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
4561         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
4562         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
4563         stdlib.h with AC_HAVE_HEADERS.
4565 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
4567         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
4568         does not exist.
4570 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
4572         * eqn/box.cc (gsize): Make it an int.
4573         (set_gsize): Parse argument handling increment or decrement.
4574         (box::top_level): Convert gsize to a string.
4576         * troff/input.cc (exit_troff): Make buf unsigned char [].
4577         Call to make_temp_iterator casts buf to char*.
4579         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
4581         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
4582         * Makefile.cpg (depend.temp): Likewise.
4584         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
4586         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
4588 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
4590         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
4592 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
4594         * Version 1.06 released.
4596         * Integrate mm 1.04.
4598 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
4600         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
4602 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
4604         * afmtodit/afmtodit.pl: Add -n option that disables generation of
4605         ligatures command.
4606         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
4607         afmtodit. Regenerate.
4609         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
4610         @f back past the current position.
4612         * tmac/tmac.e: Change calls to @R so that comments are not part of
4613         arguments.
4615 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
4617         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
4619         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
4620         check that we can link a call to a function declared in <stdio.h>.
4621         (GROFF_UNISTD_H): New macro.
4622         * configure.in: Call it.
4623         * Makefile.in: Document it.
4624         * include/posix.h: New file.
4625         * troff/troff.h: Don't include <osfcn.h>
4626         * troff/input.cc: Include posix.h.
4627         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
4628         osfcn.h.
4629         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
4630         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
4631         <fcntl.h>.
4632         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
4633         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
4634         * libbib/search.cc (O_RDONLY): Delete definition.
4635         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
4636         Don't include <osfcn.h>.
4638         * acgroff.m4 (GROFF_TIME_T): New macro.
4639         * configure.in: Call it.
4640         * Makefile.in: Document it.
4642         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
4643         * configure.in: Call it.
4644         * Makefile.in: Document -DTRADITIONAL_CPP.
4645         * include/ptable.h: Don't include generic.h.
4646         (name2): Define it.
4648         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
4649         Afterwards remove [T1 and [T2.
4650         (ref*spec!0, ref*spec!2): Use T1 rather than T.
4651         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
4652         (ref*add-T2): Renamed from ref*add-T.
4653         (ref*add-T1): New macro.
4655 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
4657         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
4659         * libbib/index.cc: Include <fcntl.h>.
4660         (O_RDONLY): Define if necessary.
4661         (make_index_search_item, index_search_item_iterator::get_tag,
4662         index_search_item::check_files): Use O_RDONLY.
4663         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
4664         (O_RDONLY): Define if necessary.
4665         (search_list::add_file): Use O_RDONLY.
4666         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
4667         <sys/stat.h>.
4668         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
4669         (main): Use these.
4671         * libbib/index.cc (S_ISREG): Define it if necessary.
4672         (index_search_item::load): Use S_ISREG.
4674         * include/driver.h: Include <errno.h>.
4676 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
4678         * eqn/box.cc (body_height): Increase default value to 85.
4679         (body_depth): Increase default value to 35.
4681 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
4683         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
4684         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
4685         protected from expansion with \E.
4687         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
4689         * Makefile (Makefile): New target.
4691         * Makefile.sub (configure, distfiles): New targets.
4693         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
4694         construct.
4696 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
4698         * eqn/box.cc (param_table): Add body_height and body_depth.
4700         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
4702 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
4704         * psbb/Makefile.sub: Don't link with libgroff.a.
4706         * acgroff.m4 (GROFF_PUTENV): New macro.
4707         * configure.in: Call GROFF_PUTENV.
4708         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
4709         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
4710         is defined.
4712         * troff/env.cc (distribute_space): Rename force_forward argument
4713         to force_reverse.  Reverse the list if force_reverse is true.
4715 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
4717         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
4719         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
4720         height or depth to be negative.  Guard against SUP_RAISE quantity
4721         being negative.
4723 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
4725         * devps/generate/textmap: Add `an' (arrowhorizex).
4726         * tmac/tmac.ps: \(an overlaps horizontally.
4727         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
4729         * devps/symbolchars: Add arrowverttp, arrowvertbt.
4730         * devps/textmap: Add arrowvertex.
4731         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
4732         updownarrow delimiters.
4733         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
4735         * tbl/table.cc (simple_entry::position_vertically,
4736         block_entry::position_vertically):  For a centered entry, perform
4737         the motion in two stages.
4739         * refer/refer.cc (split_punct): Don't call lookup_token if there
4740         is no token.
4742 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
4744         * troff/input.cc (token::next): Delete token_node after copying
4745         token.
4747         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
4748         cur_point_size.
4750         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
4752         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
4754 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
4756         * grops/ps.cc (usage): -b option takes an argument.
4758         * devps/prologue (PLG): New procedure.
4759         * grops/ps.cc (main, usage): New -g option.
4760         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
4761         length using PLG.
4763 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
4765         * include/cset.h: Include <limits.h> if we have it.
4767         * libgroff/illegal.cc: New file.
4768         * include/lib.h (illegal_input_char): Use table.
4769         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
4770         * pic/lex.cc (ARG1): Renumber to 14.
4771         * eqn/lex.cc (ARG1: Likewise.
4773         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
4774         (eg 1.05.90) correctly.
4776 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
4778         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
4779         Rename $r and $R registers to $v and $V.
4780         ($r, $R): Initialize to 0.
4781         (@v, @V): New macros.
4782         (sz): Call @v.
4783         (@M): Call @V.
4785         * troff/input.cc (main, usage): Add -R option that says not to
4786         load troffrc.
4787         * eqn/main.cc (main, usage): Rename -n to -R.
4789 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
4791         * devps/DESC.in: Leave font positions 5-9 blank.
4792         * devdvi/DESC.in: Likewise.
4794         * grog/grog.pl: Handle `.PS <file' correctly.
4796         * troff/input.cc (input_stack::push): Improve error message when
4797         input stack limit exceeded.
4799 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
4801         * refer/refer.cc (main): Fix typo in handling of `a' option.
4803         * refer/refer.cc (do_bib): In state START after a newline remain
4804         in state START.
4806         * groff/groff.sh: Deleted.
4807         * groff/Makefile.sub: Delete handling of groff.sh.
4809         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
4810         to determine whether to use \X'ps:...'.
4811         * tmac/troffrc: Set 0p register to 0.
4812         * tmac/tmac.ps: Set 0p register to 1.
4814         * groff/groff.cc: Support -X option. Give warning for -TXps and
4815         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
4816         * tmac/troffrc: Support -r.X=1.
4818         * pic/troff.cc (troff_output::dot): Don't test
4819         zero_length_line_flag.
4821 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
4823         * include/lib.h: Declare getopt() and friends unless
4824         STDLIB_H_DECLARES_GETOPT is defined.
4826         * doc/chars.tr: Delete.
4827         * man/groff_char.man: New file.
4829 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
4831         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
4832         user has changed register format.
4834 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
4836         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
4837         `postpro' command in DESC file.  Get spooler command from `print'
4838         command in DESC file.  Execute spooler command with /bin/sh.
4840         * groff/groff.cc: Split Unix-specific parts into...
4841         * groff/pipeline.c: New file.
4843         * LICENSE: Delete.
4844         * COPYING: New file.
4845         * all files: Update copyright notices.
4847         * Rearrange files.  Redo Makefiles.  Use autoconf.
4849 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
4851         * troff/input.c (charinfo_to_node_list): Interpret character
4852         definition with escape_char of `\'.
4854 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
4856         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
4857         Define INT_DIGITS as big enough for 64-bit integer.
4858         * lib/strtol.c: Don't include lib.h.
4859         * lib/lib.h: Delete ifdef __cplusplus stuff.
4861 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
4863         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
4864         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
4865         get DESC from current directory.
4867 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
4869         * tbl/main.c (main): Always reset the line number when reading
4870         from stdin.
4872         * tbl/table.c (table::print_single_hline, table::print_double_hline,
4873         table::define_bottom_macro, table::do_row, table::do_top): Round
4874         vertical spacing up to vertical resolution.
4876 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
4878         * ps/ps.h (enum resource_type): Avoid comma at end of
4879         enumerator-list.
4880         * dvi/dvi.c (class dvi_printer): Likewise.
4881         * dvi/tfmtodit.c (gf::load): Likewise.
4882         * refer/label.y (struct expression): Likewise.
4883         * refer/refer.c (class label_processing_state): Likewise.
4884         * refer/indxbib.c (do_file): Likewise.
4885         * troff/troff.c (enum warning_type): Likewise.
4886         * tbl/main.c (process_data): Likewise.
4887         * troff/charinfo.h (class charinfo):
4889 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
4891         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
4893 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
4895         * groff.c: Move to new groff subdirectory.
4896         * groff/Makefile: New file.
4897         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
4899         * man/mdate.sh: Use ls -L if supported.
4901         * Consolidate all header files produced by gendef into lib/defs.h.
4902         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
4903         Don't include path.h.
4904         * lib/Makefile (path.h): Don't generate.
4905         * troff/input.c: Include defs.h. Don't include config.h.
4906         * troff/Makefile (config.h): Don't generate.
4907         * refer/index.h: Don't include suffix.h.
4908         * refer/index.c: Include defs.h.
4909         * refer/indxbib.c: Include defs.h.
4910         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
4911         defs.h.
4912         * refer/Makefile (suffix.h, path.h): Don't generate.
4913         * groff.c: Don't include config.h. Include defs.h.
4914         * Makefile (config.h): Don't generate.
4915         (lib/defs.h): Generate.
4916         (topclean): Remove lib/defs.h.
4918 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
4920         * lib/malloc.c, lib/getpagesize.h: Deleted.
4921         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
4922         related stuff.
4923         * lib/Makefile: Delete malloc-related stuff.
4924         * lib/new.c: Workaround COOKIE_BUG if necessary.
4926         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
4927         needed header files directly.
4928         * refer/refer.h: Omit definition of DEFAULT_INDEX.
4929         * Makefile: Include definition of DEFAULT_INDEX in path.h.
4931 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
4933         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
4934         argument.
4935         * lib/font (font::load_desc, font::load): Don't split argument of
4936         unknown command.
4937         (font::handle_unknown_font_command): Change type.
4938         * ps/ps.c (ps_font::handle_unknown_font_command,
4939         handle_unknown_desc_command): Change type.
4940         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
4942 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
4944         * lib/font.h (font::handle_unknown_font_command): Add file and
4945         line arguments.
4946         * lib/font.c (font::handle_unknown_font_command):
4947         * ps/ps.c (ps_font::handle_unknown_font_command):
4948         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
4949         lineno arguments.  Use _with_file_and_line functions for error
4950         reporting.
4952         * lib/fontfile.c (font::unknown_desc_command_handler): New static
4953         data member.
4954         * lib/font.c (font::set_unknown_desc_command_handler): New
4955         function.
4956         (font::load_desc): For unknown commands, call
4957         unknown_desc_command_handler if not null.
4958         * lib/font.h (class font): Declare them.
4959         (FONT_COMMAND_HANDLER): New typedef.
4960         * ps/ps.c (handle_unknown_desc_command): New function.
4961         (main): Set bflag if we had a -b option. Call
4962         font::set_unknown_desc_command_handler.
4963         (broken.h): Don't include.
4964         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
4965         submake 
4966         * ps/devps/Makefile: Add `broken' command to DESC file using
4967         BROKEN_SPOOLER_FLAGS.
4969         * macros/tmac.e ([, ]): Add as synonyms for { and }.
4971         * macros/tmac.e ($p): Only exdent if \$3 > 0.
4973         * macros/tmac.e (@R, @S): New macros.
4974         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
4975         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
4976         Declare $H, $[0-9], .. macros with @S.
4977         Declare |0, |1, |2, |3 strings with @S.
4979         * macros/tmac.e (@S): Rename to @U.
4981         * macros/tmac.e (@z): Define @b and bp as empty instead of
4982         deleting them,
4984         * macros/tmac.e (@m): Deleted.
4985         (@h): Don't call @m.
4986         (@z): Don't set @m trap.
4988         * macros/tmac.e ($h, $f): Define |z as empty string.
4990         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
4991         (@q): Likewise.
4993         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
4994         removing them.
4995         ()f): Likewise for * register.
4997         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
4998         argument is missing, don't change $R.  Call sr with three
4999         arguments when initializing.
5001 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
5003         * macros/tmac.e (sr): New macro.
5004         Initialize $r and $R using sr.
5006         * macros/tmac.e (,): Delete \*(#[.
5008         * troff/env.c (set_tabs): Read the tab type even if the position
5009         is bad.  Allow the position of the first tab stop to be negative.
5011 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
5013         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
5014         _POSIX_VERSION.
5015         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
5016         rather than -DPATHCONF_MISSING.
5017         * Makefile: Get rid of PATHCONF_MISSING.
5019         * refer/map.c: New file.
5020         * refer/index.c: Interface to mmap through map.c.  Rename map_size
5021         to map_len.
5022         * refer/Makefile: Handle map.c.
5023         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
5025 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
5027         * Makefile: RANLIB should be `true' if there is no ranlib.
5028         * lib/Makefile (libgroff.a): Simplify.
5029         * driver/Makefile (libdriver.a): Simplify.
5031         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
5032         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
5033         defined.
5035 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
5037         * troff/env.c (compare_ranges): Declare as extern "C".
5039         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
5041         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
5043 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
5045         * pic/troff.c (troff_output::text): Merge in grops_output::text,
5046         but conditionalize use of \X based on \*(.T.
5047         (grops_output::*): Deleted.
5048         * pic/output.h: Delete declaration of make_grops_output.
5049         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
5050         by default. -n sets it to 0.
5051         (usage): Corresponding changes.
5052         * groff.c (main): Don't pass -x or -p to pic.
5053         * groff.sh: Likewise.
5055         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
5056         to be non-zero.
5058         * ps/devps/afmtodit: Change calculation of asc_boundary and
5059         desc_boundary.  Make these bounds inclusive.
5060         * ps/devps: Regenerate font files.
5062 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
5064         * macros/tmac.latin1: New file.
5065         * macros/tmac.tty-char: Use tmac.latin1.
5066         (tmac.tty-tr): Deleted.
5067         * macros/Makefile: Install tmac.latin1.
5068         * macros/tmac.dvi: Use tmac.latin1.
5069         * macros/troffrc: Translate \[char160] onto no-break space here.
5070         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
5072 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
5074         * macros/tmac.Xps: Use `do' request.
5076         * macros/tmac.ps: Use `do' request.
5078         * macros/tmac.e (@C): Use `do' request.
5080         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
5081         * macros/Makefile: Install tmac.X*.
5083         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
5084         * tty/Makefile: Don't install tmac.tty*.
5085         * macros/Makefile: Install tmac.tty*.
5087         * dvi/tmac.dvi: Move to macros.
5088         * dvi/Makefile: Don't install tmac.dvi.
5089         * macros/Makefile: Install tmac.dvi.
5091         * ps/tmac.ps*: Move to macros.
5092         * ps/Makefile: Don't install tmac.ps*.
5093         * macros/Makefile: Install tmac.ps*.
5095         * eqn/box.c: Provide draw_lines parameter corresponding to -D
5096         option.
5097         * macros/eqnrc: Set draw_lines parameter based on device.
5098         * groff.c: Don't pass -D flag to eqn.
5099         * groff.sh: Likewise.
5100         * eqn/main.c: Warn about use of -D.
5102         * troff/input.c (process_startup_file): New function.
5103         (main): Call process_startup_file().
5104         * macros/troffrc: New file.
5105         * macros/Makefile: Install troffrc.
5106         * groff.c (main): Don't pass extra -m option to troff. For a 
5107         pseudo device pass the name of the pseudo device to troff using
5108         -d.
5109         * groff.sh: Likewise.
5110         * groff.c (possible_command::prepend_arg): Deleted.
5112         * troff/input.c (do_request): New function.
5113         (init_input_requests): Bind "do" to do_request.
5115         * eqn/main.c (main): Instead of loading eqnchar from device directory,
5116         load eqnrc from macro directory.
5117         * macros/eqnrc: New file.
5118         * macros/Makefile: Install eqnrc.
5119         * ps/devps/eqnchar: Deleted.
5120         * ps/devps/Makefile: Don't install eqnchar.
5121         * dvi/devdvi/eqnchar: Deleted.
5122         * dvi/devdvi/Makefile: Don't install eqnchar.
5123         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
5124         variable optM.
5126         * lib/device.[ch]: New files.
5127         * lib/font.h (font::set_device_name, font::get_device_name):
5128         Deleted.
5129         * lib/fontfile.c: Use device.h.
5130         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
5131         * troff/input.c: Delete definition of `device'.
5132         (main): Don't initialize device.
5133         * troff/troff.h: Include device.h rather than declaring device.
5134         * troff/Makefile: No need to handle DEVICE.
5135         * driver/input.c: Include device.h. Don't use
5136         font::{set,get}_device_name.
5137         * groff.c, Makefile: Rename device.h to config.h.
5138         * groff.c: Use library device variable.
5139         * eqn/main.c: Use library device variable.
5140         * eqn/Makefile: No need to handle DEVICE.
5142         * lib/searchpath.[ch]: New files.
5143         * lib/Makefile: Handle searchpath.[ch].
5144         * troff/input.c (open_file, init_dirs): Deleted.
5145         (macro_dirs): Deleted.
5146         (open_mac_file, macro_source): Use class search_path.
5147         (add_string, struct string_list): Move definition.
5148         (main): Change -M option to use macro_path. Delete call to
5149         init_dirs().
5150         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
5151         Rewrite to use class search_path.
5152         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
5153         * lib/Makefile: fontfile.c depends on searchpath.h.
5154         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
5155         MACROPATH.
5156         * lib/macropath.[ch]: New files.
5157         * troff/Makefile: No need to handle MACROPATH.
5159         * troff/input.c: Delete DUMP code.
5160         * lib/fontfile.c, lib/font.h: Delete
5161         font::forget_command_line_font_dirs.
5163         * troff/input.c (push_token): New function.
5164         (handle_first_page_transition): Use push_token().
5165         (process_input_stack): Change handling of a space at the beginning
5166         of the line.
5168 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
5170         * troff/input.c (font_dirs): Delete unused variable.
5172         * eqn/lex.c (do_set): Correct error messages.
5174 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
5176         * troff/input.c (do_define_string): Allow the string name to be
5177         followed immediately by a tab.
5178         (define_character): Likewise.
5180 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
5182         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
5183         be negative.
5185         * troff/input.c (input_iterator::is_file): New virtual function.
5186         (file_iterator::is_file): New function.
5187         (input_stack::end_file): New function.
5188         (input_stack::next_file): Handle the situation where there is no
5189         file on the input stack correctly.  Avoid making two passes over
5190         the input stack.
5191         (next_file): Make the filename optional; in this case call
5192         input_stack::end_file().
5194 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
5196         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
5197         produce a real _ charater when the current font is CW and _
5198         otherwise.
5200         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
5201         expression to work around gcc 2.2 bug.
5203 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
5205         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
5207         * troff/env.c (environment::add_padding): New function.
5208         (environment::add_char): Use add_padding().
5209         (environment::space): Likewise.
5210         (environment::wrap_up_field): Add some padding if there is none
5211         and there's no current tab.
5212         * troff/env.h: Declare environment::add_padding.
5214 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
5216         * pic/pic.y: undef fmod and rand before declaring them.
5218 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
5220         * troff/input.c (main): If the DESC file specifies a font name of
5221         0, then leave the corresponding font position empty.
5223         * nroff.sh: New file.
5224         * Makefile (install.nobin): Install nroff.sh.
5226         * tty/devlatin1/R.proto: Add ao as synonym for de.
5227         * tty/tmac.tty-char: Define ao as o.
5229         * tty/dev{ascii,latin1}/R.proto: Add aq.
5230         * tty/tmac.tty-char: Delete definition of aq.
5232 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
5234         * troff/input.c (init_charset_table): Don't translate 0240.
5235         * ps/tmac.ps: Translate char160 to space.
5236         * dvi/tmac.dvi: Likewise.
5237         * tty/tmac.tty: Likewise.
5239 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
5241         * dvi/tmac.dvi: Add support for all Latin-1 characters.
5243         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
5244         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
5245         \(oe, \(r?, \(r!.
5247         * tty/tmac.tty-char: Add \(ah.
5249         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
5250         No need to define \(FM and \(!/. Conditionalize all character
5251         definitions.
5253         * ps/devps/lgreekmap: Add +h, +f, +p.
5255         * ps/tmac.psnew: New file.
5256         * ps/Makefile: Install tmac.psnew.
5258         * troff/input.c (charinfo_to_node_list): Don't ever interpret
5259         character definitions in compatible mode.
5261         * troff/input.c (remove_character): New function.
5262         (init_input_requests): Bind remove_character to "rchar".
5264         * ps/tmac.psold: New file.
5265         * ps/Makefile: Install tmac.psold.
5266         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
5267         characters into tmac.psold.  Make these definitions unconditional.
5269         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
5271         * ps/tmac.ps: Don't define \('c and \('C.
5273         * ps/devps/textmap: Move Greek characters to...
5274         * ps/devps/symbolchars:
5276 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
5278         * ps/devps/text.enc: Add quotesingle.
5279         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
5280         * tty/tmac.tty-char: Likewise.
5281         * dvi/devdvi/texmi.map: Add +h, +f, +p.
5282         * dvi/devdvi/texi.map: Add Fn.
5283         * dvi/devdvi/msam.map: Add lz.
5284         * dvi/tmac.dvi: Handle Bq, bq, aq.
5286         * pic/lex.c (get_token): Recognize 'th.
5287         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
5289 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
5291         * ps/devps/textmap: Move di, mu, +- to...
5292         * ps/devps/symbolchars:
5294         * macros/tmac.s (@XS): Don't call par@reset or fi.
5295         (XA): Call LP. Turn off adjustment. Reduce line length.
5297         * macros/tmac.s: Initially alias XS to LP.
5298         (XS): Rename to @XS.
5299         (cov*ab-init): Alias XS to @XS.
5301 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
5303         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
5304         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
5305         (token::is_size, token::changes_env): Deleted.
5306         * troff/number.c (parse_term): No need to process \s explicitly.
5307         Call tok.next() only after scale indicator has been processed.
5308         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
5309         \f etc explicitly.
5310         (token::next): Handle \s, \f, \S, \H immediately rather than
5311         returning them as tokens.
5312         (token::operator==, token::description, token::add_to_node_list,
5313         token::process): Remove handling of deleted tokens.
5315         * troff/env.c (environment::add_char): When adding padding
5316         indicator character, call start_line() if necessary.
5318 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
5320         * ps/devps/afmtodit: Don't output 0 kerns.
5322         * ps/devps/afmtodit: Remove directory from name of encoding in
5323         font description file.
5325         * ps/devps/afmtodit: Improve error messages.
5327         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
5329         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
5330         * ps/devps/FontMakefile: Deleted.
5331         * ps/devps/afmname: New file.
5333         * ps/devps/symbol.sed: New file.
5334         * ps/devps/symbol.diff: Deleted.
5335         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
5336         Generate zapfdr.afm from zapfd.afm.
5338         * tty/tmac.tty (tty-char): Prefix definition with ".
5340         * macros/tmac.an (TP): Don't start a diversion if one has already
5341         been started.
5343         * tty/tmac.tty-char: Add Latin-1 characters.
5345         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
5347 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
5349         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
5350         Move declaration of struct horizontal_span.
5352         * tbl/table.c (table::table): Initialize span_list.
5353         (table::~table): Delete span_list.
5355         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
5357         * ps/devps/Makefile: Avoid dependency on GNU make.
5359         * ps/tmac.ps: Check that character does not already exist before
5360         defining it.
5362         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
5363         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
5364         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
5365         files.
5367         * tty/tmac.tty-char: New file.
5368         * tty/Makefile: Install tmac.tty-char.
5369         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
5370         tmac.tty-char.
5372         * tty/tmac.tty: Fix definition of \(34.
5374         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
5375         bracket-drawing characters onto |. Add *o.
5377         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
5378         only if current_field.
5380         * troff/dictionary.c (dictionary::lookup): Free old_table after
5381         rehashing. 
5383 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
5385         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
5386         whose glyphs are identical to glyphs of some Roman character.
5388         * tty/devlatin1/R.proto (bu): Deleted.
5389         * tty/devascii/R.proto (bu): Deleted.
5390         * tty/tmac.tty: Add definition of \(bu.
5392         * eqn/main.c (do_file): Pass FILE as argument.
5393         (main): Automatically load eqnchar.  New options -F and -n.
5394         Pass do_file an opened FILE.
5395         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
5396         No need to include font.h.
5397         * groff.sh: Likewise.  Don't need to use - for standard input.
5398         Prefix files with -- if first file starts with -.
5400         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
5402         * troff/env.c (environment::possibly_break_line): Don't set line
5403         to 0 across call to output_line().  Don't call output_line() until
5404         after discarding nodes after break.
5406 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
5408         * request.h (macro::empty): Declare it.
5409         * input.c (macro::empty): New method.
5410         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
5411         macro is empty.
5413 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
5415         * troff/env.c (environment::start_field): Decrement space_total
5416         when a space is frozen.
5418 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
5420         * macros/tmac.an (R): Delete macro.
5422         * troff/input.c (get_copy, token::next): Support \# (like \" but
5423         newline is ignored).
5425         * troff/input.c (token::next): Fix error message in 'Y' case.
5427 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
5429         * eqn/delim.c (define_extensible_string): Recognize any prefix of
5430         a delimiter name.
5432 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
5434         * c++test.c: Include <osfcn.h>.
5436         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
5437         <errno.h> doesn't.
5439 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
5441         * tbl/table.c (table::divide_span): Don't count column separation
5442         if expand was specified.
5444         * tbl/main.c (process_format): Don't ignore width specs in
5445         continued format.  Give warning for changing equal widths or
5446         column separation in continued format.
5447         (process_data): Set column separation, minimum width, equal
5448         columns at end of table.
5450 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
5452         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
5453         node::add_discretionary_hyphen): Use soft_hyphen_char.
5454         (set_soft_hyphen_char): New function.
5455         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
5457         * Makefile (c++tested): Give more helpful message if test fails.
5459 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
5461         * troff/input.c (init_charset_table): Translate 0240 to
5462         an unbreakable space.
5464         * troff/token.h (token::hyphen_indicator): New function.
5465         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
5466         translation.
5467         * troff/input.c (translate): Allow translation to \%.
5468         * troff/node.c (node::add_char): Handle
5469         TRANSLATE_HYPHEN_INDICATOR.     
5470         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
5472         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
5473         for \(hy.
5475         * tty/devlatin1/R.proto: \(hy and - should print as 055.
5477 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
5479         * groff.c (run_commands): If the last command gets a SIGPIPE send
5480         a SIGPIPE to all children than haven't yet terminated.  When
5481         command terminates, set pid field to -1.
5483 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
5485         * groff.c (main): Pass an appropriate -filename option to gxditview.
5487 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
5489         * Makefile.bd (install): Remove existing program before copying.
5491         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
5492         programs which have Unix counterparts to be installed with
5493         user-specified prefix.
5495         * troff/input.c (exit_troff): Don't check if exit_started.
5496         (exit_request): Don't call exit_troff if exit_started.
5498         * Makefile.bd (install.mm): Rename to install.dwbmm.
5500 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
5502         * driver/input.c (do_file): Add missing break for '#' case.
5504 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
5506         * troff/input.c (input_stack::clear):  Clear past any boundaries and
5507         then add the boundaries back.
5509         * troff/input.c (exit_troff): Return immediately if already
5510         exiting.
5512         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
5513         end macro.
5514         (pg*end-page): If the text has ended and there are no more
5515         footnotes or keeps, exit.
5517         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
5519         * troff/input.c (init_charset_table): Make \(rq transparent by
5520         default.
5522         * macros/tmac.an: Define lq and rq strings.
5524         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
5526 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
5528         * troff/env.c (environment::final_break): New function.
5529         (environment::newline): Set prev_line_interrupted to 2 if
5530         exit_started.
5531         * troff/env.h: Declare environment::final_break.
5532         * troff/input.c (exit_troff): Call environment::final_break()
5533         instead of environment::do_break().
5535         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
5536         doesn't already exist.
5537         * macros/man.local: New file.
5538         * macros/tmac.an: Load man.local.
5539         * macros/man.ultrix: New file.
5541 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
5543         * troff/input.c (exit_groff): Rename to...
5544         (exit_troff): New function.
5546         * troff/div.c (exit_started, done_end_macro,
5547         seen_last_page_ejector): New global variables.
5548         (began_page_in_end_macro): New static variable.
5549         (exit_flag): Deleted.
5550         (top_level_diversion::top_level_diversion): Initialize
5551         last_page_count.
5552         (top_level_diversion): More elaborate test for whether
5553         cleanup_and_exit() should be called.
5554         Set began_page_in_end_macro if the end macro isn't yet finished.
5555         * troff/div.h (top_level_diversion::last_page_count): New data
5556         member.
5557         (top_level_diversion::set_last_page): New function.
5558         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
5559         * troff/env.c (do_break): Zero prev_line_interrupted.
5560         * troff/input.c (exit_flag): Delete declaration.
5561         (LAST_PAGE_EJECTOR): New magic cookie.
5562         (token::next): Handle LAST_PAGE_EJECTOR.
5563         (exit_groff): Set exit_started and done_end_macro instead of
5564         exit_flag.  Call top_level_diversion::set_last_page.  Push a
5565         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
5566         another ejection after setting seen_last_page_ejector.
5568 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
5570         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
5572         * macros/tmac.e (TH): Make sure there's room for the initial
5573         header.
5575         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
5576         Set FVS in points rather than units.
5578 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
5580         * troff/div.c (top_level_diversion::add_trap): Don't consider the
5581         position of empty slots.
5583 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
5585         * ps/devps/S: Fix height and depth of parenrightex.
5586         * ps/devps/symbol.diff: Regenerate.
5588 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
5590         * tmac.e (u): Do underlining as in -mgs.
5592 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
5594         * tty/tty.c (tty_printer::end_page): If overstriking is
5595         suppressed, still turn overstruck horizontal and vertical lines
5596         into +.
5598         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
5599         2.1.
5601         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
5603 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
5605         * Version 1.05 released.
5607 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
5609         * tty/tty.c: Instead of keeping an array of glyphs and then
5610         sorting it, keep a ordered linked list of glyphs for each line.
5612         * driver/driver.h: Include stddef.h.
5614         * tty/tty.c (compare_glyph):
5615         * refer/refer.c (rcompare):
5616         * troff/env.c (compare_ranges): Arguments of qsort comparison
5617         function should be const void *.
5619         * troff/number.c (parse_term):
5620         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
5621         switch statement.
5623         * refer/label.y (consider_authors): Don't access variables
5624         constructed under a condition outside that condition: put braces
5625         round for statement containing declaration; redeclare use of same
5626         variable later.
5628         * pic/pic.y (text_expr): Delete production that allows
5629         parenthesised text_expr.
5630         (expr): Allow a conditional_expr to appear in parentheses.
5631         (conditional_expr): Rename to any_expr.
5633         * mm: Install new version 1.01 from jh.
5635         * lib/font.c (font::get_width): Cache scaled widths.
5636         (font::font): Initialize widths_cache.
5637         (font::~font): Destroy widths_cache.
5638         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
5640 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
5642         * c++test.c, c++test.ref: New files.
5643         * Makefile: Check that the C++ compiler works.
5645         * ps/tmac.pspic (PSPIC): Do a break.
5647         * ps/tmac.ps: Move definition of PSPIC into...
5648         * ps/tmac.pspic: New file.
5649         (PSPIC): Draw box around picture, but make it invisible to grops.
5650         * ps/tmac.ps: Load tmac.pspic.
5651         * ps/Makefile: Install tmac.pspic.
5653 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
5655         * lib/font.c (scale_round): If n is negative,
5656         subtract .5 before truncating floating point result.
5658         * lib/fontfile.c: Include <errno.h>.
5660 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
5662         * driver/input.c (get_char): Inline. Don't update current_lineno.
5663         Change callers to up date current_lineno if necessary.
5664         Use get_char() instead of getc(current_file).
5666 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
5668         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
5670 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
5672         * tty/tty.c (tmac.tty): Define \(rg as (R).
5674 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
5676         * lib/lib.h: New define a_delete.
5677         * Use a_delete instead of delete when deleting an array of objects
5678         without destructors.
5680         * lib/lib.h: Rename adelete to ad_delete.
5681         * Change uses of adelete.
5683 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
5685         * eqn/eqn.y: Include lib.h.
5687         * troff/node.c (grow_font_table): Delete old_font_table.
5689         * mm: Install new version from jh.
5691 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
5693         * tbl/table.h (format_type): Make global instead of local to class
5694         entry_format.  Prefix enumerators with FORMAT_.
5695         * tbl/table.c, tbl/main.c: Corresponding changes.
5696         * refer/token.h (token_type): Make global.  Prefix enumerators
5697         with TOKEN_.
5698         * refer/token.[ch]: Corresponding changes.
5699         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
5701         * troff/div.c (node::set_vertical_size): Don't name argument.
5703 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
5705         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
5706         * lib/lib.h: Define adelete accordingly.
5707         * pic/object.c (graphic_object::graphic_object):
5708         * tbl/main.c (format::~format):
5709         * tbl/table.c (table::~table):
5710         * refer/ref.c (reference::~reference, reference::merge,
5711         reference::insert_field, reference::delete_field): Use adelete.
5713         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
5714         * refer/token.h:
5715         * tbl/table.h: Corresponding changes.
5717         * common.c (common_output::dashed_arc, common_output::dotted_arc):
5718         Ensure total_angle is positive.
5720 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
5722         * refer/ref.c (reference::merge, reference::insert_field,
5723         reference::delete_field): Avoid delete[0].
5725         * refer/token.c (init_special_chars): Move calls to cmupper
5726         outside calls to init_two_char_letter to work around bug in gcc
5727         2.0.
5729 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
5731         * lib/new.c (operator new): Use __builtin_new for g++.
5733         * pic/object.c (graphic_object::~graphic_object):  Don't use
5734         delete [] on 0.
5736         * pic/object.c (output::compute_scale): Initialize max_width and
5737         max_height.
5739 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
5741         * troff/input.c (write_request): Call fflush.
5743         * troff/node.h (class composite_node): Move declaration to node.c
5744         * troff/input.c (charinfo_to_node): Rename to ...
5745         (charinfo_to_node_list): Return node list rather than composite
5746         node.
5747         * troff/node.c (make_composite_node): New function.
5748         (make_node, add_char): Call make_composite_node instead of
5749         charinfo_to_node.
5750         (class composite_node): Add a tfont * member.  Delete font_size
5751         member.
5752         (composite_node::composite_node, composite_node::copy,
5753         composite_node::size): Corresponding changes.
5754         (composite_node::tprint): Provide constant spacing, emboldening
5755         and track kerning as specified in tfont.
5756         (composite_node::width): Change width calculation accordingly.
5757         * troff/env.h (environment::composite): New member.
5758         (environment::is_composite, environment::set_composite): New
5759         functions.
5760         * troff/env.c (environment::environment): Initialize composite.
5761         * troff/input.c (charinfo_to_node): Call
5762         environment::set_composite.
5763         * troff/node.c (make_composite_node, make_glyph_node): Use the
5764         plain version of the tfont if the environment is composite.
5766         * troff/node.c (font_info::get_space_width): Additional argument
5767         giving space_size.  Handle constant space correctly. Scale by
5768         space_size unless constant spaced.
5769         (env_sentence_space_width): New function.
5770         * troff/node.h: Declare it.
5771         * troff/env.h (environment::get_space_size,
5772         environment::get_sentence_space_size,
5773         environment::get_narrow_space_width,
5774         environment::get_half_narrow_space_width): Make inline.
5775         (environment::get_space_width): Make inline.  Just call
5776         env_space_width.
5777         * troff/env.c: Delete definitions for funtions made inline.
5778         (environment::space_newline, environment::space): Use
5779         env_sentence_space_width(). Don't scale by space_size.
5780         * troff/node.h: Move declarations of env*space_width() functions
5781         into env.h.
5783 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
5785         * macros/tmac.s (PS): Don't try to set negative indent.
5787 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
5789         * pic/pic.y: Fix min function.
5791 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
5793         * man/mdate.sh: Clear LANGUAGE.
5795 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
5797         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
5798         * pic/lex.c: New COMMAND keyword.
5799         * pic/pic.y (print_args, print_arg): New rules.
5800         (placeless_element): Use print_args for PRINT.
5801         New COMMAND element.
5803 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
5805         * troff/input.c (terminal): Handle missing argument correctly.
5807         * pic/pic.y (text_expr): New rule.
5809         * pic/pic.y: Implement := operator.
5811 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
5813         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
5814         mdoc.
5816 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
5818         * ps/devps/dingbatsrmap: Include this in the distribution.
5820         * macros/tmac.doc: Replace with new version from 2nd Networking
5821         Release. Fix loading of doc-* files.
5822         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
5823         * macros/tmac.doc.old: New file.  Apply fixes that had been
5824         applied to old tmac.doc.
5825         * macros/tmac.andoc: Check that we're running under groff.
5826         * macros/Makefile: Rework.
5828 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
5830         * tbl/table.h (format_type): 
5831         * refer/token.h (token_type): If NESTED_TYPES is defined, use
5832         typedef to make these types visible at file scope.
5833         * Makefile: Add NESTED_TYPES configuration option.
5835         * troff/div.c (mark): At the top level use the value of
5836         nl_reg_contents rather than the current vertical position.
5838 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
5840         * tty/tty.c: Implement \D for horizontal or vertical lines.
5841         (tty_printer::set_char): Use vec_used+2 as serial number.
5842         Don't allow size of vector to exceed USHRT_MAX-2.
5843         Split off part into...
5844         (tty_printer::add_char): New function.
5845         (tty_printer::draw): New function.
5846         (compare_glyph): Handle equal serial numbers.
5847         (tty_printer::end_page): Handle overstruck characters from \D.
5848         (main, usage): Implement -d option.
5850 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
5852         * tbl/main.c (process_format):
5853         * eqn/text.c (split_text):
5854         * troff/input.c (token::next): Use inner block for declarations
5855         with initializers in switch statement.
5857 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
5859         * pic/common.c (common_output::dash_line): Cope with zero-length
5860         lines.
5862 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
5864         * Version 1.04 released.
5866 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
5868         * macros/tmac.an (TH): Define a macro an-init to define variables
5869         based on command line arguments.
5870         (an-header): Call it.
5872 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
5874         * Makefile (install.mm): Rename to install.dwbmm.
5876         * Makefile: Integrate mm.
5877         * mm: New directory.
5879 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
5881         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
5882         <sys/types.h>.
5884         * pic/troff.c (troff_output::simple_spline,
5885         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
5886         shadowing parameter.
5888         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
5890         * lib/ptable.h: Add explicit casts when converting from unsigned
5891         long to unsigned.
5893         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
5894         * dvi/devdvi/Makefile: Install SA, SB.
5896         * refer/indxbib.c: Add declaration of mktemp.
5898         * refer/lookbib.c: Add declaration of isatty.
5900 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
5902         * pic/lex.c (interpolate_macro_with_args):  While collecting
5903         arguments, keep track of whether we're in a string.
5905 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
5907         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
5908         down with \v, so as to avoid problems with top of page trap
5909         setting no space mode.
5911 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
5913         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
5915 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
5917         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
5918         Improve error message.
5920 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
5922         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
5923         printf("%03o");
5925 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
5927         * groff.c (possible_command::execp): Always use _exit() after a
5928         failed exec.
5930         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
5931         NO_SYS_WAIT_H   configuration options.
5932         * groff.c: Use these options.  Use POSIX-style macros to extract
5933         fields from the status returned by wait().
5935 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
5937         * tbl/table.c (table::compute_separation_factor): Allow the
5938         separation factor to drop to 0.
5940 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
5942         * refer/search.c: Include <errno.h>.
5944 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
5946         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
5948         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
5949         C++. 
5951         * pic/lex.c (input_stack::bol): Move definition out of class body.
5953         * pic/main.c: On MSDOS munge argv[0].
5955         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
5957         * lib/ptable.c (hash_string): Use unsigned long rather than
5958         unsigned.
5959         (next_ptable_size): Use unsigned rather than int.  Give an error
5960         message if we've hit the largest table size.
5961         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
5962         table size.
5964         * pic/object.h (object_spec): Make flags unsigned long.  Declare
5965         flags as const unisgned long rather than as enums.
5967         * pic/output.c: Deleted.
5969         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
5971         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
5972         Add additional argument.
5973         (line_entry::note_double_vrule_on_{left,right}): Set value of
5974         douvle_vrule_on_{right,left} flag according to argument.
5975         (simple_line_entry::simple_print,
5976         simple_line_entry::double_line_print): If adjacent to double vrule
5977         on a corner extend rather than shorten the rule by half the double
5978         vrule sep.
5980         * troff/number.c (parse_term): In checking for overflow, handle the
5981         case where the current horizontal position is negative.
5983 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
5985         * pic/object.c (draw_arrow): Check for object having zero length.
5987 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
5989         * eqn/main.c (do_file): Split off inline equation handling into...
5990         (inline_equation): New function.  Search for starting delimiter
5991         using...
5992         (delim_search): New function. Don't recognize a delimiter that
5993         occurs in the name of an escape sequence, number register, string
5994         etc.
5996 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
5998         * eqn/delim.c (delim_box::compute_metrics): Don't call
5999         define_extensible_string if left is 0.
6000         (delim_box::output):  Don't print the left delimiter if left is 0.
6001         (delim_box::debug_print): Check for left == 0 before calling printf.
6003 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
6005         * troff/Makefile (majorminor.c): Include only digits in
6006         minor_version.
6008 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
6010         * refer/dirnamemax.c: new file.
6011         * refer/genlimits.c: Deleted.
6012         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
6013         Don't check path length.
6014         * refer/Makefile: Add dir_name_max.o; delete genlimits.
6015         * Makefile: Add PATHCONF_MISSING option.
6017         * refer/indxbib.c (get_cwd): New function.
6018         (main): Use get_cwd().
6019         * lib/getcwd.c: New file.
6020         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
6021         GETCWD in SUBFLAGS.
6022         * lib/Makefile: Compile getcwd.o.
6024         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
6025         userdict.
6027         * refer/indxbib.c (main): Check success of mktemp.
6029         * lib/tmpfile.c: New file.
6030         * lib/Makefile: Add tmpfile.c.
6031         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
6032         * ps/ps.h: Delete declaration of mktemp().
6033         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
6034         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
6035         * driver/driver.h: No need now to include errno.h.
6037         * everywhere: Set errno to 0 before calling fopen().
6039         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
6040         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
6041         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
6043 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
6045         * troff/env.h (translate_space_to_dummy): Declare it.
6046         * troff/env.c (environment::space_newline, environment::space):
6047         If translate_space_to_dummy is set then make the width of spaces 0.
6048         * troff/input.c (translate): If the second character of a
6049         translation is a space, translate to unbreakable space.  If the
6050         first character is a space, set or clear translate_space_to_dummy
6051         according to whether the second character is \&.  Weird!
6053 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
6055         * groff.c (run_commands): Don't use non-zero exit code because a
6056         command gets SIGPIPE.
6058         * groff.c, groff.sh: Use -mXps with -TXps.
6060         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
6061         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
6062         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
6063         (ps_printer::special): New specials invis and endinvis.
6064         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
6065         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
6066         (ps_printer::end_page): Check that invis_count == 0.
6067         (ps_printer::invis_count): New member.
6068         (ps_printer::ps_printer): Initialize invis_count to 0.
6070         * troff/env.c (environment::hyphenate_line): Hyphenation
6071         indicator at beginning of word inhibits splitting after -, \(em
6072         etc.
6074         * pic/pic.y (element): Allow another element to follow } without
6075         any intervening separator.
6077 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
6079         * pic/lex.c (get_delimited): Allow tabs before delimiter.
6081 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
6083         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
6084         declaration of wait() in header files.
6085         * Makefile: Get rid of -DHAVE_UNION_WAIT.
6087         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
6089         * lib/lib.h: Declare return type of strerror as char *.
6091         * man/Makefile: Add g flag to sed substitutions.
6092         * Makefile (shgroff, bindist): Likewise.
6094 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
6096         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
6097         * ps/devps/prologue (PBEGIN): Define showpage after pushing
6098         userdict.
6100 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
6102         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
6103         userdict.
6105 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
6107         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
6108         group.
6110 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
6112         * troff/input.c (define_number_reg):  If currently undefined,
6113         don't define it if the argument is an invalid expression.
6115         * Makefile: Ignore return value of `if' commands without `else'
6116         parts.
6118         * Makefile: Split up CPPDEFINES into a series of separate
6119         configuration options.
6121         * troff/input.c (init_registers): Use time_t instead of long
6122         unless LONG_FOR_TIME_T is defined.  Use returned result rather
6123         than passing pointer.
6124         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
6126         * lib/Makefile (fontpath.h): Use gendef.
6128 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
6130         * troff/input.c (input_iterator::shift): Delete argument name.
6131         * troff/node.c (suppress_output_file::really_begin_page,
6132         suppress_output_file::really_transparent_char, node::ascii_print,
6133         node::tprint): Delete names of unused arguments.
6135 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
6137         * refer/label.y (string):  Pass $4 to command_error.
6139 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
6141         * Version 1.03 released.
6143 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
6145         * Makefile: Pass definition of SHELL in SUBFLAGS.
6147         * gendef: New file.
6148         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
6149         ps/Makefile: Use gendef to construct header files that are
6150         constructed from the Makefile.
6152         * macros/Makefile: make all should build stripped version of tmac.e.
6154         * refer/Makefile (clean): Remove y.output.
6156 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
6158         * ps/pfbtops.c (main): Add -v option which prints out a version
6159         number.
6160         * ps/Makefile (pfbtops): Link with libgroff.a.
6162 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
6164         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
6165         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
6167         * refer/lkbib.c (main): Always terminate reference with blank
6168         line.
6169         * refer/lookbib.c (main): Likewise.
6171         * refer/linear.c (file_buffer::load): Check that the file is not a
6172         binary file.
6174         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
6175         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
6176         Delete second inclusion of <sys/param.h>.
6178 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
6180         * troff/token.h (token::special): Deleted.
6182         * tbl/main.c (process_format): Rework so that opt->tab_char is
6183         recognized only when appropriate.
6185         * ps/Makefile (clean): Remove pfbtops.
6187 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
6189         * lib/font.c (text_file::next): Don't return if we have got a
6190         blank line.
6192 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
6194         * refer/refer.c (store_reference): Get hash code from old_table[i]
6195         when rehashing the table.
6197 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
6199         * eqn/box.c (box::top_level): Save size and prev size using \R and
6200         restore it afterwards. Set the size to the size at the beginning
6201         of the line.
6202         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
6203         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
6205         * refer/Makefile (limits.h): Use ./genlimits.
6207 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
6209         * refer/index.c: Delete declarations of stat() and fstat().
6211 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
6213         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
6215 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
6217         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
6219 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
6221         * troff/input.c (token::get_char): Handle \e.
6223         * refer/linear.c: Delete declarations of fstat() and stat().
6225 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
6227         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
6228         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
6230 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
6232         * troff/input.c (do_define_macro): Improve error handling for end
6233         of file while defining macro.
6235 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
6237         * eqn/box.h: Fix declaration of set_gsize.
6238         * eqn/box.c (set_gsize): Make argument const char *.
6239         (gsize): Declare as char *.
6240         * eqn/main.c (main): Don't convert gsize to int.
6241         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
6243         * Version 1.02 released.
6245 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
6247         * macros/tmac.andoc: New file.
6248         * macros/Makefile: Install tmac.andoc.
6250         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
6251         operator new and delete on OP_DELETE_BROKEN not being defined.
6252         * Makefile: Mention OP_DELETE_BROKEN.
6254 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
6256         * Makefile (bindist): Pass SUBFLAGS.
6258 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
6260         * Makefile, groff.c: Pass definitions to groff.c via device.h.
6262         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
6263         parameter.
6265         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
6267         * ps/ps.h, ps/psrm.c: Make comment_table and
6268         header_comment_table local to resource_manager::process_file.
6270         * groff.sh: With -TXps pass -printCommand option to gxditview.
6272         * groff.c (possible_command::print): Implement using
6273         append_arg_to_string.
6275         * xditview: Merge in new implementation with own ChangeLog.
6277 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
6279         * groff.c (main): Implement PRINT_OPTION.
6280         (append_arg_to_string): New command.
6281         (device_table): Set PRINT_OPTION flag for Xps.
6283 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
6285         * troff/groff.h: Rename to troff.h.
6287         * pic/lex.c (lookup_keyword, docmp): New functions.
6288         (get_token): Use new lookup_keyword.
6289         Don't include key.h.
6290         * pic/key.[ch], pic/pic.gperf: Deleted.
6291         * pic/Makefile: Remove gperf stuff.
6293         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
6294         into output.h.
6295         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
6297         * troff/Makefile, troff/node.c: Move definition of
6298         STORE_WIDTH into node.c.
6300         * etc/grog.pl, etc/grog.sh: Support -mdoc.
6302 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
6304         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
6305         dvi/devdvi/texb.map: Add lq and rq.
6306         dvi/devdvi: Regenerate fonts.
6307         * ps/devps/textmap: Add lq and rq.
6308         * ps/devps: Regenerate fonts.
6309         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
6310         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
6312         * pic/object.c (position_rectangle): When checking radius
6313         cope with possiblity that width or height is negative.
6314         (box_object::box_object): Have separate xrad and yrad with
6315         signs matching signs of dim components.
6316         (box_object::{north,south}_{east,west}): Use xrad and yrad.
6317         (box_object::print): With rounded boxes use absolute values
6318         for dim and rad arguments.
6320         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
6321         in fontpath.h.
6323         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
6325         * various files: Add explicit destructors to keep Saber CC +d
6326         happy.
6328 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
6330         * eqn/box.c (box::top_level): Restore fonts correctly after
6331         font changes in line containing inline equation.  Also
6332         restore previous font as well as current font.
6333         * eqn/pbox.h: Define necessary string and register names.
6335         * troff/input.c (token::next): Case 'R' calls do_register.
6336         (do_register): New function.
6338 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
6340         * groff.c, groff.sh: Support Xps device.  Allow each device
6341         to have a pseudo_name and a real_name.
6343         * groff.c (run_commands): Don't print `Broken pipe' messages.
6345         * ps/pfbtops.c: New file.
6346         * ps/Makefile: Add pfbtops.
6348         * troff/number.c (parse_term): Improved error message.
6350 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
6352         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
6354         * Makefile: Integrate refer.
6355         * refer: New directory.
6356         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
6357         man/lkbib.man: New files.
6358         * man/Makefile: Support refer man pages.
6360         * lib/lib.h: Declare is_prime.
6361         * lib/prime.c: New file.
6363         * troff/input.c (macro_source): New function.
6364         (init_input_requests): Bind "mso" to macro_source.
6366         * troff/env.c (environment::possibly_break_line): Maintain
6367         pointer to pointer to node to be split in ndp so as to avoid
6368         using address of freed node.
6370         * troff/env.c (environment::hyphenate_line): Maintain pointer to
6371         pointer to first node to be hyphenated in startp so as to
6372         avoid using address of freed node.
6374         * troff/env.c (class trie, class hyphen_trie): Make the
6375         elements of the trie be of type char not unsigned char.
6376         Declare arguments to be const char* instead of unsigned char *.
6377         
6378         * troff/env.c (hyphenate): Initialize hbuf[0].
6380         * troff/input.c (set_string): Declare p to be char * and cast
6381         *p to unsigned char when necessary.
6383         * troff/input.c (do_define_macro): Declare s to be const
6384         char*. Cast element to unisgned char when necessary, Declare
6385         d to be an int.  Handle EOF better.
6387         * troff/Makefile, troff/input.c: Different scheme for passing
6388         definitions of MACROPATH, HYPHENFILE and DEVICE.
6390 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
6392         * tty/devascii/R.proto: Delete entry for em.
6393         * tty/devlatin1/R.proto: Likewise.
6395 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
6397         * troff/input.c (translate): Stop when we get a space. Treat eof
6398         like newline.
6400         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
6402 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
6404         * tbl/main.c (process_format): A font name following a `f'
6405         modifier that starts with a digit can be only one character long.
6406         Also deal with EOF on the second character of the font name.
6408 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
6410         * troff/input.c (token::next): Turn \~ into an
6411         unbreakable_space_node.
6412         * troff/node.c (unbreakable_space_node): New class.
6413         * troff/node.h: Declare it.
6415 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
6417         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
6418         it's >= 0, before outputting it as a single byte.
6420 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
6422         * lib/font.c: Make font_char_metric::code an int.
6423         (font::get_code): Change return type to int.
6424         (font::load): Allow code to be arbitrary integer.
6425         * lib/font.h (font::get_code): Change return type to int.
6426         (font::number_to_index): Change argument type to int.
6427         * troff/input.c (token::next):  In case 'N', allow any value.
6428         Store value in token::val.
6429         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
6430         (token::get_char, token::add_to_node_list, token::process): Get
6431         number from val.
6432         (charinfo::set_number): Change argument to int.
6433         (charinfo::get_number):  Require that NUMBERED flag be set.
6434         (get_charinfo_by_number): Store numbered characters not between 0
6435         and 255 in a dictionary.
6436         * troff/charinfo.h (get_charinfo_by_number): Change argument type
6437         to int.
6438         (charinfo::number): Change type to int.
6439         (charinfo::set_number): Change type of set_number to int.
6440         * troff/node.c (troff_output_file::put_char_width,
6441         troff_output_file::put_char): Test whether character is numbered
6442         using charinfo::numbered().
6443         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
6444         values of num.
6445         * lib/nametoindex.c: New implementation to cope with arbitrary
6446         number characters.
6448         * troff/input.c (token::operator==): Test val for
6449         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
6450         TOKEN_SIZE.
6452         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
6453         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
6455 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
6457         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
6458         variable.
6460         * all Makefiles: rm targets of cp and >.
6462         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
6463         it.
6465         * eqn/lex.c (def_table): Add dollar.
6467 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
6469         * troff/input.c (do_width): Push back newline before closing delim
6470         like do_bracket.
6472 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
6474         * groff.c (possible_command::prepend_arg): New function.
6475         (main): Prepend device -m option.
6476         * groff.sh: Put device -m options before command-line options.
6478 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
6480         * macros/tmac.an (IP): Quote argument to TP.
6482         * ps/ps.c (main): New option -b, which sets...
6483         (broken_flags): New variable.
6484         (ps_printer::~ps_printer): Incorporate the setup section in the
6485         prolog if (broken_flags & NO_SETUP_SECTION).
6486         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
6487         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
6488         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
6489         ps_printer::print_needed_font_comment,
6490         ps_printer::print_supplied_font_comment,
6491         ps_printer::print_include_font_comments,
6492         ps_printer::lookup_doc_font, ps_printer::download_fonts,
6493         ps_printer::read_download_file, read_document_fonts, add_font,
6494         skip_line, parse_fonts_arg, document_font::document_font,
6495         document_font::~document_font, document_font::download,
6496         ps_output::include_file):  Deleted.
6497         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
6498         rather than %!PS-Adobe-2.0.  Make calls to
6499         resource_manager::need_font for each font that we used. Replace
6500         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
6501         print_supplied_font_comment, print_needed_font_comment by call to
6502         resource_manager::print_header_comments. Output %%Orientation
6503         comment. Output %%Requirements: numcopies comment if ncopies > 1.
6504         Don't output the prolog directly.  Instead call
6505         resource_manager::output_prolog.  Only define #copies when ncopies
6506         > 1.  Delete calls to print_include_font_comments  and
6507         download_fonts.  Add call to resource_manager::document_setup.
6508         (ps_printer::do_file): Call resource_manager::import_file instead
6509         of including it ourselves.
6510         (ps_printer::do_import): Likewise.  Also don't call
6511         merge_import_fonts. Push userdict on the dictionary stack before
6512         and pop it afterwards.
6513         Move declaration of ps_output into ps.h.
6514         * ps/psrm.c: New file implementing resource_manager class.
6515         * ps/ps.h: New file declaring ps_output and resource_manager
6516         classes.
6517         * ps/devps/zapfdr.ps:
6518         * ps/devps/symbolsl.ps:
6519         * ps/devps/prologue:  Use 3.0 conventions.
6520         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
6521         Add default definition of BROKEN_SPOOLER_FLAGS.
6522         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
6523         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
6525 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
6527         * etc/grog.pl: New file.
6528         * Makefile (GROG): New variable.
6529         Add GROG to SUBFLAGS.
6530         * etc/Makefile (GROG): New variable.
6531         (install.nobin): Install $(GROG) rather than grog.sh.
6533 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
6535         * eqn/special.c (special_box::compute_metrics): Make the input and
6536         output strings the same.  Get the new height and depth from the
6537         predefined height and depth registers.  Also make subscript kern
6538         and skew available.
6539         (special_box::compute_subscript_kern, special_box::compute_skew):
6540         New functions.
6542         * eqn/box.c (pointer_box::compute_skew,
6543         simple_box::compute_metrics, box::top_level)
6544         * eqn/text.c (prime_box::compute_metrics,
6545         prime_box::comput_subscript_kern)
6546         * eqn/limit.c (limit_box::compute_metrics):
6547         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
6548         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
6549         negative numbers in `nr' requests with a leading 0.
6551 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
6553         * eqn/special.c: New file.
6554         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
6555         Add new rule for simple.
6556         * eqn/lex.c (token_table): Add SPECIAL.
6557         * eqn/box.h: Declare make_special_box.
6558         * eqn/Makefile: Add special.[co].
6560 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
6562         * ps/devps/prologue: Possibly set packing to true while defining.
6563         Create grops dictionary here.  Initialize local variables before
6564         defining procedures.
6565         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
6566         the dictionary stack. Set strokeadjust and overprint to false if
6567         the relevant operators are defined.
6568         (PEND): New procedure.
6569         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
6570         prologue.  Do everything else in the setup section.
6571         (ps_printer::do_import): Just call PBEGIN and PEND around the
6572         picture. Also push userdict before, and pop it afterwards.
6574 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
6576         * troff/node.c (bracket_node::tprint): Brackets were being printed
6577         1m too low.
6579         * macros/tmac.an (SH, SS): Set fill mode.
6581 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
6583         * troff/div.c (top_level_diversion::begin_page): Set
6584         high_water_mark to 0.
6586 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
6588         * man/mdate.sh: New file.
6589         * man/mdate.c: Deleted.
6590         * man/Makefile: Use mdate.sh instead of mdate.
6591         (mdate): Deleted.
6593         * eqn/lex.c (do_gsize): Supply missing argument to error message.
6595 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
6597         * man/mdate.c: New file.
6598         * man/*.man: Replace modification date by @MDATE@.
6599         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
6600         (mdate): New target.
6602         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
6603         Remove illegal input characters.
6605 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
6607         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
6609 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
6611         * troff/div.c (begin_page): Change behaviour when
6612         !first_page_begun and !break_flag.
6614         * troff/input.c (do_name_test): Return 0 if argument is empty.
6616         * troff/input.c (read_long_escape_name): Require closing ] to be
6617         at same input level as opening [.
6619         * troff/input.c (read_increment_and_escape_name): New function.
6620         (get_copy, process_input_stack): Use this for \n.
6622 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
6624         * troff/div.c (top_level_diversion::begin_page): Ignore the
6625         current value of page_number if !first_page_begun.
6627         * groff.c (main): Fix declaration of buf.
6629         * troff/input.c (do_name_test): New function.
6630         (token::next): Implement \A.
6631         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
6632         (token::description, token::add_to_node_list, token::process):
6633         Handle TOKEN_ESCAPE.
6634         * troff/token.h: New token TOKEN_ESCAPE.
6636 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
6638         * pic/main.c (do_picture): Allow space before and after filename
6639         following `<'.  Check that the filename is not empty.
6641 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
6643         * Version 1.01 released. 
6645         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
6647         * dvi/tmac.dvi: ftr HR to H.
6649         * macros/tmac.e: Round up computation of $r.
6651         * xditview/tmac.X:  Don't give up completely in compatibility mode.
6652         Use \n(.s instead of \n[.s].
6654         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
6655         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
6656         Add u to factors inside \s[...]. Rename frac to dvi-frac.
6657         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
6658         short names in the char definitions.
6660         * ps/tmac.ps: Don't give up completely in compatibility mode.
6661         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
6662         quote in front of \n(.s. Add u to factors inside \s[...].
6664 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
6666         * tty/tmac.tty: Call the nroff request.
6668         * macros/tmac.e ((x, )x):  Better definitions that work properly
6669         in a diversion.
6670         (@0, @1): Helper macros for (x.
6672         * macros/tmac.e ($s, hl): Use \l rather than \D.
6674         * tty/tmac.tty: Make it work better in compatibility mode.
6675         (pchar): Rename to tty-char.
6677         * macros/tmac.e (@E): New macro.
6678         (r, i, b, rb, bi): Use @E.
6680         * macros/tmac.e (@F): Don't use (;...) syntax.
6682         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
6683         it was modified for groff.
6685         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
6687         * macros/tmac.e (<., .>): Removed.
6688         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
6690         * macros/tmac.e: Remove check that groff is being used.
6692         * macros/tmac.e (@C): Change families only if using groff; turn
6693         compatibility mode off while changing familes. Save compatibility
6694         mode before changing families and restore it afterwards.
6696         * macros/tmac.e (@h): Remove test for offset + line length.
6698         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
6699         (lo, th, ac): Define to call @S instead of using als.
6701         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
6702         the ratio of the vertical spacing to the point size in units
6703         expressed as a percentage.  Use these instead of $10r and $10R,
6704         Delete $10r and $10R.
6706         * lib/font.c (font::load): In default computation of space_width,
6707         divide by sizescale.  Use scale_round.
6709         * macros/tmac.an (TP): Don't call `nf'.
6710         (an-do-tag): Don't call `fi'.
6712 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
6714         * troff/input.c (process_input_stack): Handle the case where
6715         spaces at the beginning of an input line are followed by a
6716         newline.
6718 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
6720         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
6721         * groff.sh: Use pic -x with the dvi device.
6723         * dvi/devdvi/FontMakefile (H): Don't use -s.
6725         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
6726         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
6727         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
6728         in FONTS.
6730 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
6732         * ps/psfig.diff: New file.
6733         * ps/tmac.psfig: New file.
6735 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
6737         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
6738         (]-): Don't call ref*do-tl.
6740         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
6742         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
6743         (fn@do-FS): Rename to fn*do-FS.
6745         * troff/input.c (transparent_translate): New function.
6746         (process_input_stack): Apply transparent_translate before calling
6747         diversion::transparent_output(unsigned char).
6749 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
6751         * troff/input.c (do_define_macro): Define the macro before calling
6752         skip_line.
6754         * xditview/Makefile: Add DEVICES variable.  Change install target
6755         to use this.
6757 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
6759         * groff.c (run_commands): Handle the possibility that there are
6760         child processes other than those forked by us.
6762 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
6764         * lib/string.c (string::append): New function.
6765         * lib/stringclass.h: Declare it.
6767 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
6769         * eqn/main.c (main): New option -N which sets
6770         no_newline_in_delim_flag. 
6771         (do_file): If no_newline_in_delim_flag is set don't allow newlines
6772         in delimiters.
6773         * groff.c (main): Pass -N on to eqn.
6774         (help, synopsis): Mention -N.
6775         * groff.sh: Implement -N.
6777 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
6779         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
6780         (]-): Call ref*do-tl if ref*need-tl is non-zero.
6781         (XP): Allow as initializer.
6783 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
6785         * troff/env.c (environment::wrap_up_field): If field_spaces are
6786         non-zero and we have a current_tab, subtract padding from
6787         tab_distance.  If this makes tab_distance <= 0, use the next tab
6788         stop instead.  If there isn't any next tab or it's a left tab,
6789         wrap up the current tab.
6790         (environment::start_field): Initialize tab_precedes_field.
6791         (environment::wrap_up_tab): If there's a current field, update
6792         pre_field_width, field_distance and tab_precedes_field.
6793         * troff/env.h (environment::tab_precedes_field): New member.
6795 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
6797         * ps/ps.c (ps_printer::do_file): New function.
6798         (ps_printer::special): Bind to `file' special.
6799         (ps_printer::do_exec): Set ndefined_styles to 0.
6801 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
6803         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
6804         Avoid stripping first character from the start of unrecognized
6805         escapes.  Use lex_error instead of error to report errors.
6806         * eqn/lex.c (get_token): Rework handling of escapes.
6807         (lex_error): Move declaration into...
6808         * eqn/eqn.h.
6810         * xditview/xditview.c (main): Make -page option work.
6812         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
6814 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
6816         * macros/tmac.s (B2): Correct size of box.
6818 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
6820         * macros/tmac.s (B2): Postpone drawing the box until in the
6821         top-level diversion.
6823         * tty/tmac.tty: Add font translations for C, CR, CW.
6825         * groff.c (synopsis, help): Document -i.
6826         * groff.sh: Implement -i.
6828         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
6829         Simplify the construction of SN.
6831         * troff/number.c (parse_term): Give `|' a higher precedence.
6832         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
6833         accordingly.
6835         * macros/tmac.s (B2): Use par@finish instead of par@reset.
6837 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
6839         * lib/string.c (string::move): New function.
6840         * lib/stringclass.h: Declare it.
6842 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
6844         * troff/env.c (distribute_space): Add optional argument
6845         `force_forward'.
6846         (environment::wrap_up_field): Call distribute_space with
6847         `force_forward' argument of 1.
6849 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
6851         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
6852         Inline it.  Move reallocation into...
6853         (string::grow1): New function.
6854         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
6855         dependencies to include library header files.
6856         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
6858 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
6860         * macros/tmac.s (@NH): Use the same number registers than -ms does
6861         for the heading level counters.  Use the same string that -ms does
6862         for the number for this heading.
6864 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
6866         * lib/new.c (operator new): Cast result of malloc to char *.
6868         * troff/input.c (spring_trap, lookup_request): Add assert that nm
6869         is not null.
6871 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
6873         * groff.c (main): Support -i.
6875 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
6877         * pic/pic.h: Include <osfcn.h>.
6879         * ps/ps.c: Add declaration of mktemp.
6881         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
6882         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
6883         argument as union wait *.
6884         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
6885         argument to union wait *.
6887 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
6889         * tty/tmac.tty: Add definition of \(co.
6891         * pic/object.c (make_arc): Only increase radius when radius
6892         strictly less than d.
6893         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
6894         more than once.
6896         * troff/env.c (environment::environment(symbol),
6897         environment::environment(const environment *)):  Initialize
6898         input_trap_count.
6900 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
6902         * tbl/main.c (main): Add exit(0).
6904         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
6906         * pic/main.c (main):
6907         * eqn/main.c (main):
6908         * tbl/main.c (main):
6909         * etc/soelim.c (main):
6910         * driver/printer.c (printer::~printer):
6911         * troff/node.c (real_output_file::~real_output_file,
6912         real_output_file::flush):  Check for errors on stdout.
6914         * most files: Add 1991 to copyright notice.
6916         * macros/tmac.s: Don't test \n(.x and \n(.y.
6918         * troff/input.c (token::next): Rename `escape_char' label to
6919         `handle_escape_char' and `normal_char' label to
6920         `handle_normal_char'.
6922 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
6924         * groff.c (main, synopsis, help): Support -a option.
6925         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
6926         to trflags while parsing options.
6928 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
6930         * troff/number.c (parse_term): With `m', `M' and `n' scale
6931         indicators, convert scale factor to hunits before scaling.
6933 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
6935         * lib/font.c (scale_round): Better test for overflow when n is
6936         negative.
6938 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
6940         * tbl/main.c (process_format): Add second argument of type
6941         options*. Change callers.  Allow opt->tab_char as well as '\t'
6942         between format items.
6944 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
6946         * macros/tmac.an (PD): With no arguments, make sure register PD is
6947         at least \n[.V].
6948         (TH): Call PD with no argument, instead of setting register PD
6949         directly.
6951 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
6953         * Version 1.00 released.
6955 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
6957         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
6959         * dvi/devdvi/DESC: Mount CW instead of CR.
6961         * dvi/tmac.dvi: Add definition of \(tm.
6963         * dvi/devdvi/texsy.map: Add lh, and rh.
6964         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
6965         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
6967         * dvi/devdvi/FontMakefile: Generate H from cmss10.
6968         * dvi/devdvi/Makefile: Install H.
6969         * dvi/devdvi/H: New file.
6971 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
6973         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
6974         be 0.
6976 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
6978         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
6980         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
6982         * macros/tmac.s (@EN): Handle the case where the equation is empty
6983         but the label is not.
6985 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
6987         * troff/groff.h: New warning category WARN_SPACE.
6988         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
6989         WARN_SPACE to warning_table.
6990         (interpolate_macro): Give a warning of type WARN_SPACE if the name
6991         is longer than two characters and is not defined, but the first
6992         two characters do make a defined name.
6994         * PROBLEMS: New file.
6996         * CHANGES: New file.
6997         * README-0.6, README-1.00: Deleted.
6999         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
7000         * xditview/devX75/Makefile: Make devX75-12.
7001         * xditview/devX100/Makefile: Make devX100-12.
7003         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
7004         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
7006 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
7008         * README-0.7: Rename to README-1.00.
7010         * macros/tmac.pic: New file.
7011         * macros/Makefile (install.nobin): Install tmac.pic.
7013 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
7015         * troff/env.c (hyphen_word): Correct the test for whether the
7016         token is a hyphen.  Reset npos to 0.
7018         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
7020 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
7022         * macros/tmac.s (ds*common-end): Call par*reset.
7023         (PE): Likewise.
7024         (par@reset-indent): Deleted.
7026         * macros/tmac.s (@IP): Divert the label.
7028 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
7030         * xditview/draw.c (setGC): Use a line width of .1m rather than
7031         .04m by default; round rather than truncate value.
7033         * tbl/table.c (class empty_entry): New class.
7034         (empty_entry::empty_entry, empty_entry::line_type): New functions.
7035         (table::add_entry): Represent empty entries by objects of type
7036         empty_entry.
7037         (table_entry::line_type): Return -1.
7038         (table::determine_row_type): Ignore entries with line_type 0.
7039         Treat type -1 as non-lines.
7041 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
7043         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
7044         macros/tmac.s: Rename \(-d to \(Sd.
7046 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
7048         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
7049         * xditview/libXdvi/DviChar.c: Likewise.
7050         * dvi/devdvi/texsy.map: Add `<<', `>>'.
7052 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
7054         * troff/div.c (top_level_diversion::begin_page): Call
7055         init_output() if the_output is 0.
7057 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
7059         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
7060         ESCAPE_c.
7061         (get_copy): Turn \E into ESCAPE_E.
7062         (token::process, asciify): Handle ESCAPE_E.
7064         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
7065         (RD): New macro.
7066         (DS): Implement `.DS R'.
7068 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
7070         * macros/tmac.s (FS): New macro.
7072         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
7074         * macros/tmac.s (cov*tl-init): Remove after first execution
7075         instead of aliasing to @nop.  Call top of page macro explicitly
7076         instead of setting trap; call @init first.  Set pg@top as top of
7077         page macro.
7078         (cov*auto-init): Deleted.  Set cov*tl-init instead of
7079         cov*auto-init as top of page trap. 
7080         (TL, LP): Do a break instead of calling cov*tl-init.
7081         (cov*print): With RP format but no TL, alias FS and FE to @FS and
7082         @FE; in this case also give a warning and always start another
7083         page. No need to set pg@top here.
7084         (cov*tl-init): Rename to cov*first-page-init.
7086         * macros/tmac.s (RP): Do `.pn 0'.
7087         (cov*tl-init): With RP format don't do `.pn 0'.
7089         * macros/tmac.s (pg@cs-top): Set no space mode.
7091         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
7092         (cov*ab-init): Alias TL, AU and AI to these.
7094 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
7096         * macros/tmac.s (@EQ): Move the space before the equation into @EN
7097         (@EN): Do nothing unless \n[dl] is > 0.
7099 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
7101         * pic/object.c (ellipse_object::radius): New function.
7103         * VERSION: Change version to 0.7.
7105         * tbl/table.c (block_entry::do_divert): Declare return type as
7106         void.
7107         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
7109 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
7111         * troff/column.c: New file.
7112         * troff/Makefile: Corresponding changes.
7114         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
7115         Friend of vunits.
7117         * troff/div.c (top_level_diversion::space): If the space causes
7118         the first-page transition and springs a trap, truncate the space
7119         to 0.
7121 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
7123         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
7124         the document.
7126         * pic/troff.c (troff_output::line_thickness,
7127         troff_output::set_fill): Do a horizontal motion to compensate for
7128         the width of the \D escape sequence.
7130 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
7132         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
7133         (not X75).
7135         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
7136         to printf.
7138         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
7139         Supply empty definition.
7140         (text_entry::simple_print, simple_text_entry::simple_print):
7141         Delete declarations.
7142         (table::add_entry): Represent empty entries by objects of type
7143         `simple_entry'.
7145 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
7147         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
7149         * tbl/table.c (left_text_entry::add_tab): New function.
7151         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
7152         initialize like LP.
7154 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
7156         * troff/env.c (environment::start_field): Give an error message if
7157         there is no next tab.
7159 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
7161         * troff/env.c (hyphenate): Skip initial elements with zero
7162         hyphenation code.
7164         * macros/tmac.s (par@init): Keep VS in points rather than units.
7166 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
7168         * pic/main.c (main): Implement `-c' option.
7169         * pic/output.h: Declare make_tpic_output().
7170         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
7171         protected.
7172         (tpic_output): New class.
7173         (tpic_output::tpic_output, tpic_output::set_pen_size,
7174         tpic_output::command, make_tpic_output): New functions.
7176 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
7178         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
7179         if they're not already defined.
7180         * tbl/table.c (init_output): Don't test \n(.g.
7182         * troff/input.c (do_if_request): Delete `g' condition. Recognize
7183         `d', `r' and `c' conditions even in compatibility mode.
7185 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
7187         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
7188         box.
7190 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
7192         * troff/env.h (environment::prev_line_interrupted): New member.
7193         (environment::get_prev_line_interrupted): New function.
7194         * troff/env.c (environment::newline): Set prev_line_interrupted.
7195         (environment::environment(const environment *),
7196         environment::environment(symbol)): Initialize
7197         prev_line_interrupted.
7198         * troff/input.c (process_input_stack): Don't give special
7199         treatment to space and newline at the beginning of the line if the
7200         previous line was interrupted.
7202 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
7204         * eqn/eqn.y: Disallow PRIME by itself.
7205         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
7206         PRIME.
7207         (def_table): Remove definition of '.  Define prime to be `.
7209         * eqn/eqn.y: Split off part of rule `script' into a new rule
7210         `nonsup'.
7212 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
7214         * macros/tmac.s ({, }): New string aliases.
7216 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
7218         * README-0.7: New file.
7220 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
7222         * macros/tmac.s: New file.
7223         * man/groff_ms.man: New file.
7224         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
7225         * Makefile.bd: Similarily.
7226         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
7227         definition of TMAC_S.
7228         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
7229         * macros/TODO: New file.
7231 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
7233         * troff/env.c (right_justify): New function.
7234         (init_env_requests): Bind this to request "rj".
7235         (center_lines): Set right_justify_lines to 0. If we get a bad
7236         integer, center 1 line.
7237         (environment::environment(symbol), environment::environment(const
7238         environment *)): Initialize right_justify_lines.
7239         (environment::get_right_justify_lines): New function.
7240         (init_env_requests): Bind this to number_register ".rj".
7242         * troff/env.c (environment::choose_breakpoint): Implement
7243         hyphenation_margin and hyphenation_space.
7244         (environment::get_hyphenation_space,
7245         environment::get_hyphenation_margin): New functions.
7246         (init_env_requests): Bind these to .hys and .hym.
7247         (hyphenation_space_request, hyphenation_margin_request): New
7248         functions
7249         (init_env_requests): Bind these to hys and hym.
7250         (environment::environment(symbol), environment::environment(const
7251         environment *)): Initialize hyphenation_margin and
7252         hyphenation_space.
7253         * troff/env.h: Corresponding changes to class environment.
7255 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
7257         * troff/div.c (blank_line): Always do a break.
7259         * eqn/box.c (do_text): Turn off escapes while appending text to
7260         string.
7262 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
7264         * troff/input.c (while_break_request, while_continue_request): New
7265         functions.
7266         (init_input_requests): Bind these to "break" and "continue".
7267         (while_depth, while_break_flag): New variables.
7268         (while_request): Update while_depth.  Break out of loop if
7269         while_break_flag is set.
7271 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
7273         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
7274         rather than 0.
7276 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
7278         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
7280         * stringify: New file.
7281         * Makefile (groff.o): Use stringify.
7283         * xditview/tmac.X: Remove definition of \(rn.
7284         * xditview/libXdvi/DviChar.c: Remove radicalex from
7285         Adobe_symbol_map.
7287 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
7289         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
7290         (alphabetic_block_entry::alphabetic_block_entry,
7291         alphabetic_block_entry::divert, alphabetic_block_entry::print):
7292         New functions.
7293         (block_entry::divert): Split off body into ...
7294         (block_entry::do_divert): If the block is alphabetic, subtract 2n
7295         from the line length; also update the span width to dl+2n, and the
7296         alphabetic span width to dl.
7298         * driver/input.c (do_file):  While reading argument to D command,
7299         when expanding buffer, multiply szp by sizeof(int) rather than 2
7300         in the argument to memcpy.
7302         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
7303         width of alphabetic columns.
7305 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
7307         * troff/node.c (lookup_family): Supply second argument to lookup.
7309         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
7310         search, return immediately if v is 0.
7312         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
7313         (troff_output::start_picture): Set this reg.
7314         (troff_output::end_picture): Remove this reg
7315         * eqn/box.c (box::extra_space): Don't produce `\x's if
7316         EQN_NO_EXTRA_SPACE_REG is defined.
7318         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
7319         * eqn/text.c (split_text): Map ' to \(fm when it's the first
7320         character.
7322 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
7324         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
7325         requests.
7327         * troff/div.c (top_level_diversion::top_level_diversion):
7328         Initialize page_number to 0.
7330 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
7332         * groff/troff (environment::environment(const environment *)):
7333         Initialize name to e->name, rather than "anonymous".
7335 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
7337         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
7338         requested_page.  Split middle part into ...
7339         (FindPage): New function.
7340         (SetValues): If we don't yet know the last page, and the requested
7341         page is greater than the current page, call FindPage.
7342         Update the font_map_string before doing this.
7344         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
7345         Translate \(lh and \(rh into left and right double arrows.
7347         * troff/node.c (class hyphen_inhibitor_node): New class.
7348         (hyphen_inhibitor_node::hyphen_inhibitor_node,
7349         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
7350         hyphen_inhibitor_node::type,
7351         hyphen_inhibitor_node::get_hyphenation_type): New functions.
7352         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
7353         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
7354         word.
7356 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
7358         * troff/node.h (dummy_node::get_hyphenation_type,
7359         transparent_dummy_node::get_hyphenation_type):  Declare them.
7360         * troff/node.c: (dummy_node::get_hyphenation_type,
7361         transparent_dummy_node::get_hyphenation_type): New functions.
7363 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
7365         * xditview/libXdvi/draw.c: If M_PI not defined after including
7366         math.h, then define it.
7368         * xditview/Makefile: Add definition of AR. Pass it to the submake
7369         in libXdvi.
7370         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
7372 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
7374         * troff/dictionary.h (object_dictionary::alias): Declare return
7375         value as int.
7376         * troff/dictionary.c (object_dictionary::alias): Return non-zero
7377         if the old name was defined.
7378         * troff/input.c (alias_macro): Give a warning if the old name was
7379         not defined.
7380         * troff/reg.c (alias_reg): Likewise.
7382 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
7384         * troff/input.c (token::next): Delete implementation of \R.
7386         * macros/Makefile: Strip comments from tmac.e while installing it.
7388         * troff/input.c: New variable `nroff_mode'.
7389         (troff_request, nroff_request): New functions.
7390         (init_input_requests): Bind `troff' and `nroff' to troff_request
7391         and nroff_request.
7392         (do_if_request): Compute results of t and n conditions from
7393         nroff_mode.
7395         * text/text.c (split_text): Fix typo in >=.
7397         * eqn/lex.c: Add definition of `==' to def_table.
7399 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
7401         * pic/tex.c (tex_output::start_picture): Change the definitions of
7402         \graph and \graphtemp so that they work properly with Plain TeX.
7404         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
7405         argument to `ar' is not less than the first.
7407         * pic/pic.y: Allow a comma between elements of the variable list
7408         in the argument to `reset'.
7410         * pic/object.c (arc_object::arc_object): Fix computation of
7411         radius.
7413         * eqn/main.c (main): Add exit(0).
7415 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
7417         * troff/div.c (begin_page): Test no_space_mode after doing the
7418         break, but still push the page ejector cookie before doing the
7419         break.  Also set the next page number after doing the break.
7420         
7421         * xditview/xditview.c (NewFile): Don't set the title and icon name
7422         if this is the first file and its name is `-'.
7423         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
7424         the X75 and X100 devices.
7425         (main): If a device has the XT_OPTION flag set and there's exactly
7426         one file argument, pass the driver -xrm and -title options to set
7427         the icon name and window title to the name of the file.
7429         * troff/env.c (environment_switch): If there was an argument but
7430         it wasn't a valid number or name, then pop an environment but
7431         don't give an error message on underflow.
7433         * troff/number.c (start_number): Correct spelling in error message.
7435         * troff/input.c (token::delimiter): Don't print an error message
7436         if err is false.
7438         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
7439         ParseDrawFunction if dw->display_enable is true.
7441 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
7443         * pic/pic.y: Parse text positioning like normal attributes, so as
7444         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
7445         positioning attribute.
7447 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
7449         * tbl/main.c (process_data): When in state START while reading a
7450         text block, don't change to state MIDDLE if c is a newline.
7452 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
7454         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
7455         so as to avoid shadowing parameter.
7457 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
7459         * tbl/table.c (trim_space): Deleted.
7460         (table::add_entry): Don't call trim_space.
7462 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
7464         * VERSION: Change version to 0.6.
7466         * troff/number.c (parse_expr): Make == work.
7468 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
7470         * man/grog.man: New file.
7471         * man/Makefile: Add grog.n to MAN1PAGES.
7472         * etc/grog.sh: New file.
7473         * etc/Makefile: Install grog.sh as grog.
7475 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
7477         * troff/input.c (token::next): Implement \E.
7479 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
7481         * xditview/tmac.X: Change font translations to match tmac.ps.
7483         * troff/input.c (non_empty_name_warning): Don't give a warning if
7484         `\{' terminates the name.
7486 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
7488         * ps/devps/symbol.diff: New file.
7489         * ps/devps/FontMakefile: Mention symbol.diff.
7491 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
7493         * troff/node.c (font_position): Use get_long_name to read the
7494         external_name.
7496         * troff/env.c (environment_switch): If we get a number that's < 0
7497         or >= NENVIRONMENTS, treat it like a name.
7498         Change NENVIRONMENTS to 10.
7500         * troff/groff.h: Remove definition of FONTS_MAX.
7501         * troff/node.h (class font_family): Make map a pointer instead of
7502         an array. Add a map_size member. Make it a class. Make nm const
7503         and public. Make invalidate_fontno a friend.
7504         * troff/node.c: Define font_table_size. Make font_info a pointer
7505         rather than an array.
7506         (class troff_output_file): Allocate font_position dynamically. Add
7507         nfont_positions member.
7508         (troff_output_file::set_font): Grow font_position if necessary.
7509         (troff_output_file::~troff_output_file): Delete font_position.
7510         (troff_output_file::troff_output_file): Allocate font_position.
7511         (grow_font_table): New function.
7512         (troff_output_file::really_begin_page,
7513         troff_output_file:really_copy_page): Use nfont_positions rather
7514         than FONTS_MAX.
7515         (mount_font_no_translate, mount_style): Call grow_font_table if
7516         necessary.
7517         (font_family::font_family): Allocate map.
7518         (font_family::make_definite): Grow map if necessary. Use
7519         font_table_size instead of FONTS_MAX.
7520         (font_family::~font_family): New function.
7521         (invalidate_fontno): Use font_family::map_size.
7522         (get_fontno, env_space_width, env_half_narrow_space_width,
7523         env_narrow_space_width, symbol_fotno, is_good_fontno,
7524         get_bold_fontno, make_glyph_node): Use font_table_size rather than
7525         FONTS_MAX.
7526         (next_available_font_position): Never return 0.
7528 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
7530         * ps/tmac.ps: Add font translations for compatibility with dpost.
7532 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
7534         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
7535         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
7536         Move definitions baseline_sep, shift_down, column_sep,
7537         matrix_side_sep into...
7538         * eqn/box.c: Add them to param_table.
7539         * eqn/pbox.h: Add declarations to pbox.h.
7541         * troff/input.c (set_string): Cast value to unsigned char *.
7543         * troff/token.h (process_input_stack): Declare it static before
7544         declaring it a friend.
7546 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
7548         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
7549         and bottom.
7550         * dvi/devdvi/EX: Regenerate.
7552         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
7553         transparent.
7555 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
7557         * eqn/lex.c: In defaults_table, make definition of `dot' call
7558         `dot_def'.  Don't explicitly make it roman.  Similarily for other
7559         accents.
7561         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
7562         argument.
7563         (for_input::get, for_input::peek): Use this.
7564         (do_for): Add by_is_multiplicative argument.
7565         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
7566         Change semantic value of optional_by to be a double plus a flag
7567         saying whethet the by clause is multiplicative.
7569         * eqn/lex.c (get_delimited_text): Remember location of start of
7570         definition.  Improve error handling when EOF is encountered.
7572         * lib/font.h: Rename handle_x_command to
7573         handle_unknown_font_command.
7574         * lib/font.c (font::load): Call handle_unknown_font_command for
7575         any unknown command in the font description file.  Don't call
7576         handle_x_command. Include the name of the command in the argv.
7577         Improve message for unknown command after kernpairs or charset
7578         command.
7579         * ps/ps.c (ps_font::handle_x_command): Rename to
7580         handle_unknown_font_command.  Remove message about `x download'
7581         command.  Give error message for wrong number of arguments.
7582         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
7583         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
7584         handle_unknown_font_command. Give an error message for wrong
7585         number of arguments.  Rename design_size to designsize.
7586         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
7587         checksum', `designsize' instead of `design_size'.
7589 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
7591         * eqn/*.[chy]: Change underaccent to uaccent.
7593         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
7594         give it the same precedence as ACCENT.
7595         * eqn/other.c (make_underaccent_box): New function.
7596         * eqn/box.h: Declare it.
7597         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
7598         def_table.
7600 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
7602         * pic/pic.y (reset_all): New function. Called in rule for RESET.
7603         (parse_init): Call reset_all.
7604         (define_variable): When defining scale reset only those
7605         pre-defined variables that are scaled.
7606         (defaults_table): Add `scale' as non-scaled value.
7608         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
7609         together with the text; allow any number of positioning words;
7610         allow center as a positioning word.
7612         * pic/object.c (output::compute_scale): Get picture maximum height
7613         and width from variables called maxpswid and maxpsht.
7614         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
7616 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
7618         * pic/object.c (object_spec::make_text): Multiply textht by number
7619         of text items.
7621         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
7622         occur.
7623         (do_sprintf): New function.
7624         (pic.gperf): Add sprintf token.
7625         (text, sprintf): New rules.
7627         * pic/pic.y: `rand()' with no arguments returns a random number
7628         in the range [0,1).
7630         * pic/pic.y: Allow a bare expression to be an attribute: change
7631         precedences to support this.  Change optional_ordinal rule to
7632         optional_ordinal_last to avoid reduce/reduce conflict.
7633         * pic/object.c (object_spec::object_spec): Initialize direction.
7635         * pic/pic.y: Implement ^ operator meaning exponentiation.
7637         * troff/node.h: Add default argument to mount_font.
7638         * troff/node.c (font_position): Read an optional third argument
7639         giving the external_name.
7640         (mount_font): Add optional argument giving the external_name.
7641         (mount_font_not_translate): Have additional argument giving
7642         external name.  Use this name to load the font.  Pass both names
7643         to font_info::font_info.
7644         (font_info::font_info): Have additional argument giving
7645         external_name.
7646         (class tfont): New member external_name.
7647         (font_info::get_tfont): Use external name to construct tfont_spec.
7649 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
7651         * eqn/lex.c (init_table): Add argument giving device.  Define
7652         name of device to be "1".
7653         (do_ifdef): Counts as true if the argument has been defined with
7654         `define'.
7655         * eqn/main.c (main): Call init_table with device argument. Make
7656         device local to main.
7657         * eqn/eqn.h: Change declaration of init_table. Remove declaration
7658         of device.
7660         * pic/lex.c (get_delimited): Allow text to be delimited by
7661         matching {}s.  Don't recognize ending delimiter within a string.
7663         * troff/input.c (get_delim_name): New function.
7664         (token::next): Implement \C.
7666         * lib/font.c (font::load): Grok ---.  Add an alias for each
7667         character based on its code.
7668         (font::get_code_width): Deleted.
7669         * lib/font.h (class font): Declare font::number_to_index().
7670         Remove declaration of font::get_code_width.
7671         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
7672         to indices of named characters.
7673         (font::number_to_index): New function.
7674         * troff/input.c (font::number_to_index): New function.
7675         (get_charinfo_by_number, charinfo::get_number,
7676         charinfo::set_number): New functions.
7677         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
7678         (token::process, token::description, token::get_char,
7679         token::add_to_node_list, token::operator==): Handle
7680         TOKEN_NUMBERED_CHAR.
7681         * troff/charinfo.h: Declare get_charinfo_by_number,
7682         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
7683         charinfo class.
7684         (charinfo::numbered): New function.
7685         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
7686         * troff/env.h (class environment): Remove declaration of ...
7687         * troff/env.c (environment::make_numbered_char_node): Deleted.
7688         * troff/node.c (make_numbered_node): Deleted.
7689         (class numbered_glyph_node): Remove.
7690         (troff_output_file::put_char_width, troff_output_file::put_char):
7691         Handle numbered chars.
7692         (troff_output_file::numbered_char): Removed.
7693         (tfont::get_code_width): Removed.
7694         (make_glyph_node): Don't search special fonts for numbered
7695         characters.
7696         * troff/node.h: Remove declaration of make_numbered_node.
7697         * driver/input.c (do_file): Handle N command.
7698         * driver/printer.h: Add declaration of ...
7699         * driver/printer.c (printer::set_numbered_char): New function.
7700         * dvi/tfmtodit.c (main): Generate unnamed entries.
7701         * ps/devps/afmtodit: Likewise.
7702         * xditview/xtotroff.c (MapFont): Likewise.
7703         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
7705         * tbl/main.c (process_format): If multiple widths are specified
7706         for a column but all the widths are the same, don't give an error
7707         message.
7709         * tbl/table.c (table::do_row): If the current row is all lines and
7710         the stuff doesn't contains a line, mark the top of the row after
7711         printing stuff before the row.  If the current row is not all
7712         lines and the stuff doesn't contain a line, don't unnecessarily
7713         mark the top of the row before printing the stuff.
7714         
7715 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
7717         * troff/groff.h: Remove MAX_PATH.
7718         * troff/input.c (open_file): Dynamically allocate space for the
7719         path.
7720         (open_mac_file, process_macro_file): Corresponding changes.
7722 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
7724         * troff/node.h (class output_file): Make copy_file pure.  Add
7725         vspace method ifdef COLUMN. Add is_printing method.
7726         * troff/node.c: Add class printing_reg. Add class
7727         real_output_file. Derive other output_file classes from
7728         real_output_file; in these classes rename begin_page to
7729         really_begin_page, print_line to really_print_line, copy_file to
7730         really_copy_file, transparent_char to really_transparent_char.
7731         Move output_file::flush to real_output_file. Add printing member
7732         to class output_file.
7733         * troff/div.h: Remove printing member from top_level_diversion.
7734         Add vspace member function to class diversion ifdef COLUMN. Add
7735         some declarations ifdef COLUMN.
7736         * troff/div.c (top_level_diversion::copy_file,
7737         top_level_diversion::transparent_output,
7738         top_level_diversion::output): Don't test printing member before
7739         output.
7740         * troff/input.c: Handle initial variable_space_request ifdef
7741         COLUMN.
7742         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
7743         but comment it out.
7745 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
7747         * troff/div.c (diversion::need): Make any space forced.  If we
7748         sprung a trap, set truncated_space to minus the distance to the
7749         trap and set needed_space to the amount that was needed.
7750         (top_level_diversion::space): A forced space turns no_space_mode
7751         off.
7752         (class constant_vunits_reg): New class.
7753         (init_div_requests): Implement number registers .trunc and .ne
7754         using constant_vunits_reg.
7755         (class truncated_space_reg): Deleted.   
7757         * troff/div.h: Don't have a no_space_mode member in diversion.
7758         Instead have it in top_level_diversion.
7759         * troff/div.c (diversion::diversion): Don't initialize
7760         no_space_mode.
7761         (top_level_diversion::top_level_diversion): Initialize
7762         no_space_mode.
7763         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
7764         (macro_diversion::output): Don't clear no_space_mode.
7766         * troff/input.c (diverted_space_node::reread): Don't call
7767         environment::do_break.  In fill mode, act like a blank line.
7768         (diverted_copy_file_node::reread): Don't call
7769         environment::do_break.
7771         * troff/div.c (blank_line): New function.
7772         * troff/div.h: Declare it.
7773         * troff/input.c (process_input_stack): Call it.
7775         * troff/div.c (truncated_space_reg::get_string): New function.
7776         (init_div_requests): Bind to .trunc.
7777         (space_request, top_level_diversion::space,
7778         top_level_diversion::output, macro_diversion::space,
7779         macro_diversion::output): Update truncated_space.
7780         (macro_diversion::output): Redo calculations when trap sprung.
7781         (macro_diversion::output, macro_diversion::space): No need for
7782         trap_flag.
7784         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
7785         after truncating post line spacing.
7787 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
7789         * ps/devps/prologue (MF, SF): Make them work even if setfont is
7790         defined as a procedure rather than as an operator.
7792 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
7794         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
7796 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
7798         * troff/div.c (top_level_diversion::output): Merge
7799         output_file::print_line and output_file::end_of_line member
7800         functions.
7801         * troff/div.h (class output_file):
7802         * troff/node.c (troff_output_file::print_line,
7803         troff_output_file::end_of_line, output_file::end_of_line,
7804         ascii_output_file::print_line, suppress_output_file::print_line):
7805         Corresponding changes.  
7807 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
7809         * troff/input.c (token::next): Don't give a warning for `\.'.
7811         * troff/env.c (environment::get_center_lines): New function.
7812         (init_env_requests): Bind number register .ce to it.
7813         * troff/env.h: Declare it.
7814         * tbl/table.c (table::init_output): Define reset macro to restore
7815         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
7816         Then do .ce 0.
7817         (table::print): If center option not given, then imply center
7818         option if SAVED_CENTER_REG > 0.
7820 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
7822         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
7823         Troff.ps from DOWNLOAD.
7824         
7825         * troff/Makefile: Change comment in DEFINES to avoid confusing
7826         System V make.
7828         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
7829         code.  Don't try to catch errors with stopped.
7830         (check_line_lengths): New function.
7831         * ps/devps/prologue (EXEC): Deleted.
7832         (EBEGIN, EEND): New procedures.
7834 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
7836         * troff/input.c: Include request.h before node.h.
7837         * troff/node.c: Likewise.
7838         * troff/env.c: Likewise.
7839         * troff/div.c: Likewise.
7840         * troff/node.h (class special_node): Store argument as a macro
7841         rather than a char *.
7842         * troff/node.c (special_node::special_node, special_node::copy):
7843         Grok this.
7844         (special_node::~special_node): Deleted.
7845         (special_node::tprint): Deleted.
7846         (special_node::tprint_start, special_node::tprint_end,
7847         special_node::tprint_char): New functions.
7848         (troff_output_file::special): Deleted.
7849         (troff_output_file::start_special, troff_output_file::end_special,
7850         troff_output_file::special_char): New functions.
7851         * troff/input.c (special_node::tprint): New function.
7852         (do_special): Use macro not char *.
7853         (do_transparent_macro): Deleted.
7854         (token::next): Don't call do_transparent_macro.
7856         * troff/input.c (token::next): Add 'Y' case.
7857         (do_transparent_macro): New function.
7858         * troff/node.c (troff_output_file::special): Handle newlines with
7859         argument using new continuation convention.
7860         * driver/input.c (get_string): Cope with continuation convention.
7861         (do_file): Don't call skip_line after calling get_string(1).
7862         * ps/ps.c (ps_printer::special, ps_printer::do_import,
7863         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
7864         arg.
7865         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
7866         with +.
7868 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
7870         * troff/input.c (asciify): By default, illegal input characters
7871         should return empty string.
7873         * troff/input.c (copy_file): Handle first page transition like title.
7874         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
7876         * troff/input.c (token::next): Improve error message for EOF after
7877         escape character.
7878         (input_char_description): New function.
7879         (get_char_for_escape_name): Use input_char_description.
7880         (token::next): Warn about unrecognized escape sequences.
7881         (warning_table): Add WARN_ESCAPE.
7882         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
7883         accordingly.
7885         * troff/token.h: Remove declaration of process_input_stack.
7887         * troff/input.c: Remove declaration of init_hyphen_requests.
7888         * troff/request.h: Correct spelling in declaration of same.
7890         * troff/input.c (token::next): Check whether escape_char is 0.
7892 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
7894         * groff.c (main, usage, help): Implement -P and -L options.
7895         * groff.sh: Likewise.
7897         * troff/input.c (token::next): Use some gotos to avoid code
7898         duplication.
7900         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
7901         Avoid calling symbol::symbol if name empty.
7903 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
7905         * troff/input.c (init_input_requests): Make \n(.x return the major
7906         version number and \n(.y return the minor version number.
7907         * troff/Makefile: Construct file majorminor.c defining
7908         major_version and minor_version automatically from ../VERSION.
7910         * troff/node.c (class glyph_node): Make operator new and operator
7911         delete public.
7912         (class ligature_node): Similarily.
7914         * troff/input.c (operator==(const macro &, const macro &)): New
7915         function.
7916         (non_interpreted_node::same): Use this.
7917         (string_iterator::string_iterator): Make macro& argument const.
7919         * troff/input.c (input_iterator::get): New function. Don't make
7920         asciify_macro or class non_interpreted_node friends of class
7921         input_iterator.
7922         (non_interpreted_node::interpret): Use input_iterator::get.
7923         (asciify_macro): Likewise.
7925         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
7926         ~non_interpreted_node): Deleted.
7927         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
7928         Deleted.
7930         * troff/symbol.h: Make all symbol member functions const.
7932         * lib/strtol.c: New file.
7933         * lib/Makefile: Add strtol.c.
7934         * Makefile: Define STRTOL as strtol.o to include strtol in
7935         libgroff.a.
7937 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
7939         * pic/troff.c (troff_output::simple_circle): Divide by scale.
7941 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
7943         * troff/input.c (do_special): Use input_level.
7945         * troff/token.h (TOKEN_BACKSPACE): New token.
7946         (token::backspace): New function.
7947         * troff/input.c (token::description, token::next, token::process):
7948         Grok TOKEN_BACKSPACE.
7949         (do_special): Turn TOKEN_BACKSPACE back into \b.
7951         * troff/token.h (token::leader): New function.
7952         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
7954         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
7956         * troff/input.c (do_special): Use token::description in error
7957         message.
7959 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
7961         * troff/input.c (decode_args): Combine quoted and
7962         quote_input_level variables. Make it a for (;;) loop.
7964         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
7966         * troff/input.c (read_long_escape_name): The test for whether to
7967         expand buffer was off by 1.
7968         (read_string): Similarily.
7970 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
7972         * troff/input.c: Use `const int' rather than `static const int'.
7974         * troff/div.h (diversion::copy_file): Declare as pure virtual.
7975         (macro_diversion::copy_file): New function.
7976         * troff/node.h: New class diverted_copy_file_node.
7977         * troff/node.c: Implement it.
7978         * troff/input.c (copy_file): Use diversion::copy_file. Handle
7979         first page transition by pushing a diverted_copy_file_node.
7980         * troff/input.c (token::next, process_input_stack): Don't handle
7981         COPY_FILE_REQUEST.
7983 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
7985         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
7986         whether space widths need adjusting.
7988         * troff/charinfo.h: Generalize translated_to_space to
7989         special_translation so as to allow translation to \&.
7990         * troff/input.c (translate): Allow translation to \&.
7991         (charinfo::*): Corresponding changes.
7992         * troff/node.c (make_node, node::add_char): Corresponding changes.
7993         * troff/node.h (dummy_node::dummy_node): Allow optional first
7994         argument.
7996         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
7997         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
7998         TOKEN_REQUEST.
7999         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
8000         TOKEN_REQUEST with an argument of TITLE_REQUEST.
8001         (token::process): Grok that.
8002         * troff/input.c (copy_file): Handle first page transition like
8003         title by pushing a COPY_FILE_REQUEST cookie.
8004         (token::next, process_input_stack): Grok that.
8005         * troff/node.h (output_file::copy_file): Add x and y arguments.
8006         Make it non-pure.
8007         * troff/div.c (top_level_diversion::copy_file): Supply them.
8008         * troff/node.c (troff_output_file::copy_file): Add x and y
8009         arguments; moveto specified position.  Invalidate font_position
8010         array after copying file.
8011         (output_file::copy_file): New function.
8012         (suppressed_output_file::copy_file, ascii_output::copy_file):
8013         Removed.
8014         * troff/input.c (transparent_file): New function.
8015         (init_input_requests): Bind to "trf".
8016         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
8017         (process_input_stack): Likewise.
8019         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
8021         * troff/node.c (init_node_requests): New number registers .kern
8022         pointing to global_kern_mode, and .lg pointing to
8023         global_ligature_mode.
8025         * troff/node.c (ligature): Don't change it if we get a bad
8026         integer.
8028         * troff/input.c (do_define_string): Don't strip tabs.
8030         * troff/input.c (asciify_macro): Make the string_iterator auto.
8032         * troff/node.c (init_font_requests): Rename to...
8033         (init_node_requests):
8034         * troff/node.h: Change declaration.
8035         * troff/input.c (main): Change call.
8037         * troff/input.c (node::reread, diverted_space_node::reread): New
8038         methods.
8039         (process_input_stack): Call reread rather than
8040         get_diverted_space_node.
8041         * troff/node.c (node::get_diverted_space_node,
8042         diverted_space_node::get_diverted_space_node): Removed.
8043         * troff/node.h: Declare reread methods instead of
8044         get_diverted_space_node methods. Make `n' member private.
8045         * troff/input.c: (token::diverted_space): Removed.
8046         * troff/token.h: Removed declaration.
8047         
8049 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
8051         * eqn/script.c (script_box::compute_metrics): Don't let
8052         SUP_RAISE_FORMAT become negative.
8054         * tbl/table.c (table::do_row): Entries that don't end in the
8055         this row shouldn't make the row non-blank.
8056         
8057         * tbl/table.c (table::make_columns_equal): Only set the width of
8058         columns which are marked as equal.
8059         
8060         * tbl/main.c (process_data): Before issuing excess data error,
8061         if last character was a newline unget it; then get it again after
8062         the error.  Also include the contents of the entry in the message.
8064         * groff.c: New file.
8065         * Makefile: Build groff from groff.c.  Make it possible to use
8066         either groff.sh or groff.c as groff.
8067         * Makefile.bd: Similarily.
8069 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
8071         * groff.sh: Don't delay expansion of $@ in assignment to files.
8072         Remove occurrences of \".
8074 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
8076         * all Makefiles: Simplify and rearrange.
8078         * Makefile: Handle fmod like malloc.
8079         * lib/Makefile: Similarily.
8080         * lib/fmod.c: Remove #ifdef NEED_FMOD.
8082         * Makefile: Rename OPTIMISE to OPTIMIZE.
8084         * groff.sh: Remove assignment to PATH.
8085         * Makefile: Remove SHPATH variable.
8086         * Makefile.bd: Similarily.
8088         * groff.sh: Add -V option to print the pipeline instead of
8089         executing it.
8091 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
8093         * lib/font.c: Split off file searching into ...
8094         * lib/fontfile.c: New file.
8096         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
8098 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
8100         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
8101         Also change misleading comment.
8102         (table::do_vspan): Change similarily misleading comment.
8103         * tbl/main.c (process_data): A format row with an explicit `s'
8104         uses up a data line, even if all the other columns are `_' or `='.
8106         * troff/input.c (token::description): Fix description of
8107         TOKEN_DUMMY and TOKEN_EMPTY.
8109 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
8111         * groff.sh: Fix description of -Z in help message.
8113 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
8115         * pic/object.c (object_spec::make_object): Allow negative and zero
8116         line thicknesses.
8117         * pic/pic.y: Give linethick default value of -1.0.
8118         * pic/troff.c (troff_output::troff_output): Initialize
8119         last_line_thickness to BAD_THICKNESS.
8120         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
8121         (troff_output::line_thickness): Canonicalize negative thicknesses
8122         to RELATIVE_THICKNESS.
8123         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
8124         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
8125         to -1.0.
8126         (tex_output::start_picture): Set pen_size to -2.0.
8128         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
8129         0, then use 0 linewidth.
8130         (ps_printer::ps_printer): Initialize line_thickness to -1.
8132         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
8134         * ps/devps/symbolchars: Remove `or'.
8135         * ps/tmac.ps: Implement \(or with .char.
8137         * ps/devps/symbolchars: Move most characters into textmap.
8138         * ps/devps/textmap: Add names for troff bracket characters. Remove
8139         ul, ru, br, bv.
8141         * ps/devps/TSymbol.ps: Removed.
8142         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
8143         * ps/tmac.ps: Do with .char what TSymbol did.
8144         * ps/devps/download: Remove TSymbol.
8146         * ps/devps/T: Removed.
8147         * ps/devps/Troff.ps: Removed.
8148         * ps/devps/Troff.afm: Removed.
8149         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
8150         * ps/devps/download: Remove Troff.
8151         * ps/devps/FontMakefile: Remove T target.
8152         * ps/devps/DESC-A4: Remove T from font list.
8153         * ps/devps/DESC-letter: Likewise.
8155         * troff/input.c (macro_to_node): Rename to ...
8156         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
8157         character's definition while processing it.
8158         * troff/node.c (node::add_char, make_node): Change calls to
8159         macro_to_node accordingly.
8161         * troff/input.c (token::next): Translate \_ to \(ul.
8163         * tty/devascii/R.proto: Add `|'.
8164         * tty/devlatin1/R.proto: Likewise.
8166 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
8168         * man: Put the version number in all the man pages.
8170 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
8172         * Makefile.bd: New file.
8173         * README.bd: New file.
8175         * VERSION: New file.
8176         * lib/version.c: Removed.
8177         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
8178         in clean target.
8180         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
8181         environment variable.
8183         * all Makefiles: Split install target into install.bin for
8184         binaries, and install.nobin for everything else.
8185         * Makefile: Add bindist target.
8187         * man/afmtodit.man: New file.
8188         * man/Makefile: Add afmtodit.n to MAN1PAGES.
8189         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
8190         in BINDIR.
8191         * ps/Makefile: Pass BINDIR to make install in devps.
8193         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
8194         the space character.
8196         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
8198 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
8200         * ps/ps.c: Redo font downloading.
8201         * ps/devps/download: New file.
8202         * ps/devps/Makefile: Add download to DEVICEFILES.
8203         * ps/devps/afmtodit: Remove -d option.
8204         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
8205         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
8206         * ps/devps/zapfdr.ps: Likewise.
8207         * ps/devps/TSymbol.ps: Likewise.
8209 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
8211         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
8213 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
8215         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
8216         then strip the first line if it starts with %.
8217         * Makefile: Add a comment about this.
8219         * man/tfmtodit.man: New file.
8220         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
8221         * dvi/Makefile: Install tfmtodit in BINDIR.
8223         * dvi/tfmtodit.c (usage): Mention -v option.
8225 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
8227         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
8228         * troff/node.c (troff_output_file::transparent_char): Don't call
8229         flush_tbuf.
8231         * eqn: Add check_tabs method to most box classes.
8232         * eqn/box.c (box::top_level): Call check_tabs.
8234         * eqn/script.c (script_box::output): Use \Z.
8235         * eqn/limit.c (limit_box::output): Use \Z.
8237         * eqn/box.c (box::top_level): Use itoa.
8239 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
8241         * dvi/tmac.dvi: Add font translations for CR, C, TT.
8242         * dvi/devdvi/Makefile: Don't make links to CW.
8244         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
8245         HX, HD.
8246         * xditview/tmac.X: Likewise.
8248         * troff/node.c: Add font translation feature.
8249         (get_font_translation): New function.
8250         (symbol_fontno): Translate the font name.
8251         (mount_font_no_translate): Rename to mount_font to this.
8252         (mount_font): New function.
8253         (font_family::make_definite): Call mount_font_no_translate instead
8254         of mount_font.
8255         (mount_style): Translate the font name.
8256         (font_translate): New function.
8257         (init_font_requests): Bind "ftr" to font_translate.
8259         * ps/devps/prologue (SN): New procedure that rounds a position to
8260         the nearest (pixel + (.25,.25)).
8261         (DL): Use SN to round endpoints.
8263         * lib/version.c: Changed version to 0.5.
8265 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
8267         * Makefile: Move definition of PAGE to the very beginning, so that
8268         people are less likely to miss it.
8270 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
8272         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
8274         * troff/env.c (environment::choose_breakpoint): Make `can't find
8275         breakpoint' error a warning of type WARN_BREAK.  Change message to
8276         `can't break line'.
8277         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
8278         code 040000.
8279         * troff/input.c: Add WARN_BREAK to warning_table.  Include
8280         WARN_BREAK in DEFAULT_WARNING_MASK.
8282         * tty/tmac.tty: Add definition of \(+-.
8284         * groff.sh: Remove `--' option to set command.
8286         * dvi/devdvi/texsy.map: Remove duplicate md entry.
8288         * ps/devps/eqnchar: Better definition of cdot using md.
8289         * dvi/devdvi/eqnchar:  Likewise.
8290         * xditview/devX100/eqnchar:  Likewise.
8291         * xditview/devX75/eqnchar: Likewise.
8292         * eqn/lex.c: Add definition of cdot.
8294 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
8296         * troff/input.c (get_optional_char): New function.
8297         * troff/input.c (set_page_character): Use get_optional_char(),
8298         rather than has_arg() and tok.get_char(1).
8299         * troff/env.c (tab_character, leader_character, hyphen_char,
8300         field_characters): Likewise.
8301         (margin_character): Likewise.  Also always delete the
8302         margin_character_node.
8304         * troff/input.c (token::get_char): Use token::description.
8306         * troff/input.c (has_arg): Don't skip over tab and \}.
8307         * troff/number.c (start_number): Give a warning if the number
8308         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
8310 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
8312         * troff/input.c (empty_name_warning, non_empty_name_warning): New
8313         functions.
8314         (get_name, get_long_name): Use these.  Rename `warn' argument to
8315         `required'.
8317         * troff/node.c (get_fontno): Test that the symbol is not null.
8319         * troff/input.c (token::description): New function.
8320         * troff/number.c (parse_term): Use token::description in `numeric
8321         expression expected' message.
8322         * troff/groff.h: Add WARN_MISSING.
8323         * troff/number.c (start_number): New function.
8324         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
8325         get_incr_number): Use start_number().
8326         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
8327         default.
8328         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
8329         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
8330         token::descripion.
8331         * troff/input.c (token::get_char): Use WARN_MISSING.
8332         * troff/input.c (token::delimiter): Use token::description.
8333         * troff/env.c (environment_switch): Back out Aug 3 change.
8334         * troff/input.c (has_arg): Skip over \}s and tabs but give a
8335         warning.
8336         * troff/token.h (token::tab): New function.
8337         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
8338         * troff/reg.c (alter_format): Likewise.
8339         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
8341 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
8343         * troff (most files): Redo warnings. Divide warnings into various
8344         categories; warning() has an additional first argument indicating
8345         the category it falls into.
8346         * troff/input.c (main): -w now takes an argument. New option -W.
8347         (enable_warning, disable_warning): New functions.
8349         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
8350         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
8352 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
8354         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
8355         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
8356         * xditview/devX75/eqnchar: Likewise.
8357         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
8359         * eqn/other.c: When bar or over applies to a single character
8360         don't produce an overline_box or an underline_box. Instead produce
8361         an accent_box or an underaccent_box, with the accent a line
8362         whose width is accent_width.  New classes underaccent_box,
8363         overline_char_box and underline_char_box.
8364         * eqn/box.h: Move overline_box, underline_box, accent_box class
8365         declarations into eqn/other.c. Add declarations of
8366         make_underline_box, make_overline_box, make_accent_box.
8367         * eqn/eqn.y: Call make_overline_box, make_underline_box
8368         make_accent_box instead of constructors.
8369         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
8371         * eqn/other.c: Add accent_box::~accent_box.
8372         * eqn/box.h: Declare it.
8374         * groff.sh: With -Tps, use eqn -D.
8376         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
8377         rather than \l.
8378         (underline_box::output): Similarily.
8379         (accent_box::output): Use \Z.
8381         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
8382         bit smaller.)
8384 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
8386         * troff/div.c (top_level_diversion::transparent_output(unsigned
8387         char)): Use asciify.
8388         * troff/input.c (asciify): Don't make it static.
8389         * troff/token.h (asciify): Declare it.
8390         
8391         * troff/input.c (get_name, get_long_name, token::get_char,
8392         token::delimiter): Add an extra default argument which says
8393         whether a warning should be printed.
8394         * troff: Pass a non-zero argument to one of these rather than
8395         printing a warning directly.
8397 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
8399         * troff: Consistently use symbol::is_null.
8401         * troff/dictionary.h: Move some inline functions into
8402         dictionary.c.
8404         * troff/request.h: Move inline functions into input.c.
8405         (request_or_macro::invoke): Make it pure.
8407         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
8408         * troff/input.c (init_input_requests): Use class constant_int_reg.
8409         (class compatible_reg): Deleted.
8410         * troff/div.c (init_div_requests): Use class constant_int_reg.
8411         (class last_post_line_extra_space_reg): Deleted.
8413         * troff/env.c (tab_character): Don't change the tab character if
8414         we get an invalid argument.
8415         (hyphen_char): Similarily.
8417         * troff/reg.c (alter_format): Check that nm is not null.
8419         * Makefile, groff.sh: Make it possible to customize the commands
8420         used for printing PostScript and dvi files. Also make it possible
8421         to customize the path used by groff.sh.
8423         * eqn/eqn.y: Make `left' right associative.
8425 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
8427         * pic/pic.h: Added definition of M_SQRT2 for those systems that
8428         don't have it.
8430         * pic/pic.h: Removed definition of INT_MAX.
8432         * troff/node.c (italic_corrected_node::vertical_extent): Omit
8433         `return'.
8435         * troff/input.c (token::next):  Handle \R like \n.
8437 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
8439         * ps/tmac.pc (PSPIC): Simplify.
8441         * troff/env.c (tab_stops::to_string):
8442         * pic/pic.y (object_type_name):
8443         * pic/troff.c (simple_output::line):
8444         * pic/tex.c (tex_output::spline):
8445         * pic/object.c (object_spec::make_object):
8446         * tbl/main.c (process_data):  Add cases to switch statements to
8447         avoid cfront warnings. (Some of these are spurious, since the
8448         switch already has a default case.)
8450         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
8451         `ps-'.  Don't test systat; instead check number of arguments to
8452         ps-bb.
8454 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
8456         * macros/tmac.e: Do not decrease the page offset by 0.5i.
8458         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
8459         Unlink the file as soon as we have opened it, so that we don't
8460         have to bother with signal handlers.
8461         (handler): Deleted.
8462         (fatal_error_exit): Deleted.
8463         (main): Don't call signal.
8465         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
8466         can be ignored.
8467         * dvi/devdvi/Makefile: Use the -k option with S and MI.
8469         * pic/pic.y:  If there is a label, or an nth construction before
8470         the first `.' in the argument to `with', ignore it and generate a
8471         warning.
8472         * pic/lex.c (lex_warning): New function.
8474         * tbl/table.c (table::init_output): In section keep and release
8475         macro, use 0 indent when diverting and the correct indent when
8476         rereading.
8478         * troff/input.c (interpolate_number_format): Do not interpolate
8479         anything if the number register is not defined.
8481         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
8483 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
8485         * ps/devps/prologue (PICTURE): Set components of graphics state to
8486         their default values.
8488         * ps/devps/text.enc: Add trademark
8489         * ps/devps/textmap: Add names for club, spade, heart, diamond,
8490         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
8491         * ps/devps/symbolchars: Add names for summation and product.
8493         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
8494         suchthat. Add pp. Add upper-case letters.
8496         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
8497         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
8498         Upsilon.
8500         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
8501         rA (right angle bracket) to ra.  Introduce names for double-headed
8502         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
8503         * ps/devps/textmap: Likewise for ps device.
8504         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
8505         * tty/devascii/R.proto: Rename lA to la and rA to ra.
8506         * tty/devascii/R.proto: Likewise.
8507         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
8508         \(uA, \(dA.
8509         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
8511         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
8513         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
8514         def_table.
8516 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
8518         * troff/div.c (when_request): Use symbol::is_null rather than
8519         has_arg to determine whether we have an argument.
8520         (change_trap): Remove the trap if we get an invalid number. Give
8521         an error if we don't get at least the macro name.
8522         (diversion_trap): Remove trap if we get an invalid name or number.
8524         * troff/env.c (environment_switch): Pop if we get an invalid
8525         symbol or numeric expression.
8527         * troff/input.c (do_define_macro):  If EOF is encoutered while
8528         defining the macro, do tok.next() before returning.
8530         * troff/token.h (has_arg): Move definition from here, to ...
8531         * troff/input.c (has_arg): ... here
8533         * troff/env.c (space_size): Do nothing if we get an invalid argument.
8534         * troff/input.c (shift): Likewise.
8536         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
8537         for `.c'.
8539         * pic/troff.c (troff_output::start_picture):  Comment out calls to
8540         `..'.
8542         * eqn/main.c (do_file): Subtract 1 from current_lineno if
8543         interpret_lf_args succeeds.
8545         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
8546         \\.  This avoids problems with \$N.
8548         * groff.sh: Pass -C to preprocessors.
8550         * lib/lf.c (interpret_lf_args):  Be more flexible.
8552         * tbl/main.c (main): Add -C option.
8553         (table_input::get): Do not recognize TE if followed by character
8554         other than a space or newline unless -C option given.
8555         (process_input_file): Likewise for lf, TS.
8556         (process_data): Likewise for lf in text blocks.
8558         * eqn/main.c (main): Add -C option.
8559         (do_file): Don't recognize EQ, EN or lf if followed by character
8560         other than space or newline unless -C option given.
8561         * eqn/lex.c (file_input::read_line): Similarily.
8562         * eqn/eqn.h: Declare compatible_flag.
8564         * etc/soelim.c (main): Add -C option.
8565         (interpret_lf_args): Use version in libgroff.
8566         (do_file):
8568         * pic/main.c (main): Add -C option, which sets compatible_flag.
8569         (top_input::get), (top_input::peek):  If -C option not given,
8570         do not recognize .PS/.PE/.PF/.lf if followed by a character
8571         other than space or newline.
8572         * pic/lex.c (file_input::read_line): Similarily.
8573         * pic/pic.h: Add declaration of compatible_flag.
8575 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
8577         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
8579         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
8580         derived from node.  New class space_char_hmotion_node.
8581         * troff/input.c (asciify_macro): New function.
8582         * troff/input.c (init_input_requests): New request `asciify' bound
8583         to asciify_macro.
8584         * macros/mm.diff: New file.
8585         * Makefile:  In install.mm target use `patch' to apply
8586         macros/mm.diff.
8588         * troff/input.c (macro::print_size): Just print the size in bytes.
8590         * troff/div.c (return_request): Correct the argument
8591         interpretation.
8593 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
8595         * troff/node.h (class composite_node): Add sz member.
8596         * troff/node.c (composite_node::size): Return sz.
8597         * troff/input.c (macro_to_node):  Use the initial size in the
8598         environment as the size of the composite_node.
8600         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
8601         default.
8603 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
8605         * troff/div.c (change_trap): If we get a bad number expression,
8606         do nothing.
8608 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
8610         * lib/matherr.c (matherr): Define this only if math.h defines
8611         TLOSS.
8613 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
8615         * troff/div.c (macro_diversion::distance_to_next_trap): If there
8616         no diversion trap return vunits(INT_MAX - vresolution).
8618 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
8620         * troff/input.c (do_zero_width): New implementation that doesn't
8621         use a temporary environment. Use instead:
8622         (token::add_to_node_list): New function.
8623         * troff/env.c (environment::get_prev_char_height),
8624         (environment::get_prev_char_height),
8625         (environment::get_prev_char_skew): New functions.
8626         (environment::get_prev_char): New function.
8627         (environment::get_prev_char_width): Change to use get_prev_char.
8628         (init_env_request): Implement new registers .cht, .cdp, .csk.
8629         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
8630         \Z being processed in a separate environment.
8632 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
8634         * tbl/table.c: Removed TABLE_BOTTOM_REG.
8636         * tbl/table.c (table::init_output): In the section release macro,
8637         give a warning message if the section won't fit on one page.
8639         * tbl/table.c (table::do_top): Emit table keep only if table is
8640         boxed.
8641         (table::do_bottom): Likewise for table release.
8642         (table::table), (table::add_vertical_rule):  Remove reference to
8643         keep member.
8644         * tbl/table.h: Remove keep member.
8646         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
8647         SECTION_RELEASE_MACRO, if there's not enough space before the next
8648         trap to output the diversion, call T# ourselves, set
8649         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
8650         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
8651         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
8652         vertical position and return to it before turning traps on again.
8653         
8654 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
8656         * troff/node.c, troff/node.h: In classes derived from node,
8657         replace prev_char_width method by last_char_node method.
8658         * troff/env.c (environment::get_prev_char_width): Use
8659         node::last_char_node rather than node::get_prev_char_width.
8661         * Makefile: Added comment about -fno-inline on 68030-based
8662         Apollos.
8664         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
8665         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
8666         expressions using sizeof to int.
8667         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
8669         * macros/tmac.e (TS):  Don't move @f back past the current
8670         position.
8672 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
8674         * ps/ps.c (main): Buffer stderr.
8675         * dvi/dvi.c (main): Likewise.
8676         * tty/tty.c (main): Likewise.
8678         * ps/ps.c (ps_printer::do_import): Improve error handling.
8680         * troff/input.c (abort_request): Use asciify.
8682         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
8683         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
8684         type of first argument int rather than char.  This works around a
8685         bug on the 68030 based Apollo using g++ 1.37.1.
8687         * tbl/table.h (class table): Add `keep' member.
8688         * tbl/table.c (table::table): Initialize `keep'.
8689         (table::add_vertical_rule): Set `keep' to 1.
8690         (table::do_top): Only emit table keep macro is `keep' is non-zero.
8691         (table::do_bottom): Likewise for table release macro.
8692         (table::do_row): Emit section keep macro even if the row is 0.
8694 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
8696         * macros/tmac.e (@C): Preserve the font family across the change
8697         in environments.
8699 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
8701         * lib/font.c: Initialize font::hor and font::vert to 1.
8702         (font::load_desc): Check the values of font::hor and font::vert.
8704         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
8705         be included in a C compilation.
8706         (iftoa): Use INT_DIGITS. Include lib.h.
8707         (itoa): Likewise.
8708         (as_string): Likewise.
8709         * tbl/table.c: Removed definition of INT_DIGITS.
8710         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
8711         * troff/input.c (input_input_requests): Likewise.
8712         * ps/ps.c (make_encoding_name): Likewise.
8713         (ps_printer::set_style): Likewise.
8714         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
8716         * tty/devascii/R.proto: Map fm onto '.
8717         * tty/devlatin1/R.proto: Likewise.
8719 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
8721         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
8722         argument to \w is at a different input level.
8724         * tbl/table.c (table::init_output): Define a new macro
8725         REPEATED_VPT_MACRO, like vpt but if in a diversion also
8726         transparently outputs itself.
8727         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
8728         vpt.
8729         (table::do_row): Likewise.
8731         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
8732         TRANSPARENT_STRING_NAME.
8734         * tbl/table.c (table::init_output): In the table release macro
8735         print an error message and don't produce any output if after
8736         issuing the need request the table still will not fit.  Also
8737         remove the diversion after bringing it back.
8739         * tbl/table.c (table::init_output): Define a new macro
8740         REPEATED_MARK_MACRO, like mk but if in a diversion also
8741         transparently outputs itself.
8742         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
8743         is necessary because .TH might not call .T#.
8744         (table::do_top): Likewise TOP_REG.
8745         (table::define_bottom_macro): If TOP_REG is no longer valid, use
8746         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
8747         table header might contain just the two top rules.
8749 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
8751         * troff/div.c: Implement new request `ptr' to print all traps.
8753         * troff/env.c (init_env_requests): Implement `.tabs' reg with
8754         init_string_env_reg.
8755         * troff/env.c (class tab_reg): Deleted.
8757 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
8759         * troff/div.c: New number register .pn returns the number of the
8760         next page as set by the pn request.
8762         * macros/tmac.an: Redid headers and footers.  Number each manual
8763         entry starting from 1 unless \nC is > 0, like Sun.  Added an
8764         optional 5th argument to .TH which specifies the manual name and
8765         appears in the center of the header.  Understand the X, P and D
8766         registers like Sun.
8768 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
8770         * troff/env.c (init_env_requests): New number register `.lt' to
8771         return the title length.
8773         * troff/node.h (class transparent_dummy_node): New class.
8774         * troff/node.c (class transparent_dummy_node): Provide member
8775         functions. 
8776         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
8777         than a dummy_node.
8779         * troff/input.c (token::next): New escape sequence \).
8780         * troff/input.c (get_copy): Recognize \) in copy mode.
8782         * troff/input.c (input_stack::clear): New function.
8783         * troff/input.c (exit_request): Use input_stack::clear.
8785         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
8786         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
8788         * troff/env.c: Move set_page_character to input.c.  Move
8789         page_character to input.c also.
8790         * troff/env.c (title): Split off the reading of the parts of the
8791         title into read_title_parts.
8792         * troff/input.c (read_title_parts): New function.  Check the
8793         input_level when testing whether a token matches the delimiter.
8795         * troff/input.c (exit_request): New function.
8796         * troff/input.c (init_input_requests): Bind ex request to
8797         exit_request rather than exit_groff.
8799         * troff/input.c (exit_groff): Call tok.next() before
8800         process_input_stack().
8802 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
8804         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
8805         * troff/env.h: ditto.
8806         * troff/input.c: ditto.
8808         * troff/env.c (environment::is_empty): Test pending_lines.
8810         * troff/env.c (environment::have_pending_lines): Removed.
8812         * troff/input.c: Add request to flush pending lines from the
8813         environment.
8815         * troff/env.c, troff/env.h: Add automatic widow control feature.
8817         * troff/input.c (exit_groff):  Do process_input_stack() after
8818         do_break() but before setting exit_flag to 2.
8820         * troff/input.c: Remove FLUSH_PENDING_LINES and
8821         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
8822         environment after END_TRAP token seen, but only if there aren't
8823         any more traps still unfinished.
8824         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
8826 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
8828         * troff/env.c: Rename the `retain_size' member of class
8829         pending_output_line to `no_fill'.
8831         * troff/env.c (title): When the line is output, make the
8832         retain_size argument !fill.
8834         * troff/node.h: Add `hyphenated' member to struct breakpoint.
8835         * troff/node.c (space_node::get_breakpoints),
8836         (dbreak_node::get_breakpoints):  Fill this in.
8837         * troff/env.c:  Allow specification of maximum number of
8838         consecutive hyphenated lines.
8840         * troff/env.c (environment::is_empty): Add test for !current_tab.
8842 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
8844         * troff/env.c (environment::hyphenate_line): Don't completely give
8845         up if the word is not to be hyphenated; continue so that breaks
8846         can be made at break_char_node's.
8848         * lib/lib.h: Only define INT_MAX if it's not already defined;
8849         undef INT_MIN if it's already defined.
8851         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
8853         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
8854         This works around a bug in AT&T C++ 2.0 used with an ANSI C
8855         compiler.
8856         
8857         * macros/tmac.an (an-header): Set no-space mode.
8859         * macros/tmac.an (TH): Start a new page if necessary.
8861         * Started using ChangeLog at version 0.4.
8863 Local Variables:
8864 version-control: never
8865 coding: latin-1
8866 End: