* src/roff/troff/div.cc (save_vertical_space): Add default argument
[s-roff.git] / ChangeLog
blobb3b66f2105bc12e9f4823540ead24143e12b7766
1 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/div.cc (save_vertical_space): Add default argument
4         to `sv' request.
5         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6         argument to restore previous font family.
7         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9         * doc/groff.texinfo: More fixes and additions (mainly for font
10         manipulating commands).
12 2001-03-23  Werner LEMBERG  <wl@gnu.org>
14         Replaced mdoc implementation.  The new version is `state of the
15         art', using almost all new features of groff 1.17 -- it won't run
16         with older versions.
18         * tmac/doc.tmac: Completely rewritten.
19         * tmac/doc-common: Ditto.
20         * tmac/doc-nroff: Ditto.
21         * tmac/doc-ditroff: Ditto.
22         * tmac/doc-syms: Ditto.
23         * tmac/mdoc.local: New file.
24         * tmac/groff_mdoc.samples.man: Replaced with ...
25         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
26         * tmac/strip.sed: Updated.
27         * tmac/Makefile.sub: Updated.
28         * INSTALL: Updated.
30         * tmac/groff_man.man: Add `man.local' to the FILES section.
32 2001-03-22  Werner LEMBERG  <wl@gnu.org>
34         * doc/groff.texinfo: Added many @noindent.
35         Replaced @end_Example -> @endExample.
36         Added info whether registers are r/o.
37         Many other additions and fixes.
39 2001-03-21  Werner LEMBERG  <wl@gnu.org>
41         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
42         in makeinfo of texinfo 4.0) to be used in @Def* macros.
43         Improved @Def* macros: Now the exact syntax of request, register,
44         and escapes is shown.
45         Added macros for parentheses and brackets to be used in @Def*.
46         Many fixes and improvements of the documentation.
48 2001-03-20  Werner LEMBERG  <wl@gnu.org>
50         * doc/groff.texinfo: Added new index: `st' (for strings).
51         Added macros @Defstr(x).
52         Added macro @Example (adding @group).
53         Other minor improvements.
55 2001-03-19  Werner LEMBERG  <wl@gnu.org>
57         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
58         `rq' for requests.  `fn' is no longer used.
59         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
60         Removed @Deffn(x).
62         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
63         number with name of man page.
65 2001-03-19  Larry Kollar  <kollar@alltel.net>
67         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
68         consistency.
70 2001-03-19  Werner LEMBERG  <wl@gnu.org>
72         * man/groff_font.man: Document `prepro', `postpro', and `print'.
73         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
74         * src/devices/grohtml/grohtml.man: Fixing typos.
76 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
78         * tmac/s.tmac (@IP): Pass `.ip' html tag.
79         * tmac/groff_mwww.man: Remove .LINE macro
80         * tmac/www.tmac (LINE): Add `.ti'.
82         * src/devices/grohtml/post-html.cc (html_printer): New member
83         `indent'.
84         (html_printer::emit_raw): Use it.
85         (html_printer::do_linelength): Ditto.
86         (html_printer::do_pageoffset): Ditto.
87         (html_printer::do_indentation): Ditto.
88         (html_printer::do_tempindent): Ditto.
89         (html_printer::do_break): Ditto.
90         (html_printer::begin_page): Ditto.
91         (html_printer::do_indentedparagraph): New function.
92         (html_printer::troff_tag): Handle `.ip'.
93         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
94         Add `<td width=...>' handling.
95         (html_text::do_table): Add parameter.
96         (html_text::do_indent): Updated.
97         * src/devices/groohtml/html-text.h: Updated.
99 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
101         Introduced simple html tables to implement indentation.
103         * src/devices/grohtml/html.h (word, word_list): New structures.
104         (simple_output): Use it.
105         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
106         (html_printer): Improve indentation handling.
107         (html_printer::emit_raw): Set `in_table' element.  Handle
108         indentation if set.
109         (html_printer::write_header): Move conditional downwards.
110         Don't allow whitespace in tags.
111         (html_printer::do_linelength): Handle line length and indentation
112         conditionally.
113         (html_printer::do_pageoffset): Handle indentation conditionally.
114         (html_printer::do_indentation): Ditto.
115         (html_printer::do_tempindent): New function member.
116         (html_printer::do_fill): Take care of indentation.
117         (html_printer::do_flush): Finish table.
118         (html_printer::do_links): Ditto.
119         (html_printer::do_break): New function for handling `.br' and `.ti'.
120         (html_printer::troff_tag): Use it.
121         Handle `.ti'.
122         (html_printer::flush_globs): Fix.
123         (html_printer::flush_page): Finish table.
124         (html_printer::html_printer): Fix error message.  Set up
125         `linelength'.
126         (html_printer::add_to_sbuf): Remove special handling of character
127         code 255.
128         (to_unicode): Remove `stop()'.
129         (html_printer::write_title): Cleanup.
130         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
131         (html_printer::~html_printer): Flush text and end the line.
132         Use `put_string()'.
133         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
134         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
135         emission of tags.
136         (html_text::start_tag): Disable newlines.
137         (html_text::table_is_void): New function.
138         (html_text::issue_table_begin): Ditto.
139         (html_text::issue_table_end): Ditto.
140         (html_text::push_para): Better table handling.
141         (html_text::do_indent): New function.
142         (html_text::do_table): Ditto.
143         (html_text::done_table): Ditto.
144         (html_text::do_tt): Handle PRE_TAG.
145         (html_text::is_in_table): New function.
146         (html_text::check_emit_text): Handle tables.
147         (html_text::do_emittext): Use `nl()'.
148         (html_text::do_para): Handle table.
149         (html_text::remove_def): New function.
150         * src/devices/grohtml/output.cc (word, word_list): Implement
151         methods.
152         (simple_output::end_line): Flush last word.
153         (simple_output::simple_comment): Ditto.
154         (simple_output::begin_comment): Recoded.
155         (simple_output::end_comment): Ditto.
156         (simple_output::comment_arg): Removed.
157         (simple_output::check_newline): Improve test and flush last word.
158         (simple_output::space_or_newline): Improved.
159         (simple_output::write_newline): Replaced with...
160         (simple_output::nl): This.
161         (simple_output::put_raw_char): Flush last word.
162         (simple_output::check_space): Removed.
163         (simple_output::put_translated_string): Ditto.
164         (simple_output::put_string): Simplified.
165         (simple_output::put_number): Updated.
166         (simple_output::put_float): Ditto.
167         (simple_output::put_symbol): Removed.
168         (simple_output::enable_newlines): Add `check_newline()'.
169         (simple_output::flush_last_word): New function.
171         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
172         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
174         * tmac/s.tmac (@PP, @IP): Add html conditional code.
175         * tmac/an-old.tmac (TP): Ditto.
177 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
179         * mdate.sh: Make it POSIX compliant.
181 2001-03-09  Werner LEMBERG  <wl@gnu.org>
183         Added the `return' request to end a macro immediately.  It simply
184         pops iterators from the input stack until a macro iterator is found.
186         * src/roff/troff/input.cc (input_iterator::is_macro,
187         macro_iterator::is_macro): New member.
188         (input_return_boundary): New class to signal an immediate return
189         to while_request().
190         (input_stack::add_return_boundary, input_stack::is_return_boundary):
191         New functions.
192         (input_stack::clear): Use it.
193         (input_stack::pop_macro): New function.
194         (while_request): Use `is_return_boundary()'.
195         (return_macro_request): New function.
196         (init_input_requests): Use it.
198         * src/roff/troff/TODO: Updated.
199         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
201 2001-03-08  Werner LEMBERG  <wl@gnu.org>
203         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
204         cleanup.
206 2001-03-07  Werner LEMBERG  <wl@gnu.org>
208         Make `\B' more rigid.
210         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
211         parameter.
212         (get_number_rigidly): New function.
213         * src/roff/troff/input.cc (do_expr_test): Use it.
214         * src/roff/troff/token.h: Updated.
216         * src/roff/troff/request.h: Fix typo (init_html_request ->
217         init_markup_request).
219 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
221         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
222         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
223         are now `.begin', `.end', `.image'.
225         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
226         (html_printer::add_to_sbuf): Changing type of `code' parameter.
227         Use add_char_to_sbuf().
228         (to_unicode): New function.
229         (char_translate_to_html): Changing type of `ch' parameter.
230         Use `to_unicode()'.
231         (html_printer::~html_printer): Comment out doctype string.
232         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
233         instead of `.html-end'.
234         (write_start_image): Use `.begin' and `.image' instead of
235         `.html-begin' and `.html-image'.
236         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
237         (html_begin): Renamed to ...
238         (begin): This.
239         (html_end): Renamed to ...
240         (end): This.
241         (html_image): Renamed to ...
242         (image): This.
243         (init_html_requests): Renamed to ...
244         (init_markup_requests): This.
245         * tmac/www.tmac: Updated.
247 2001-02-28  Bram  <bram@avontuur.org>
249         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
250         constructor.
252 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
254         * doc/meref.me: Fixing some typos.
256 2001-02-16  Werner LEMBERG  <wl@gnu.org>
258         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
259         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
260         * src/roff/troff/node.h: Updated.
262 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
264         * tmac/groff_tmac.man: Fix typo.
266 2001-02-16  Werner LEMBERG  <wl@gnu.org>
268         Fixing a bug which prevented proper end-of-sentence recognition
269         between an `unformatted' box and the following text.  As a
270         consequence, vertical line distances are no longer preserved in
271         boxes after a call to `.unformat' -- because boxes aren't
272         line-oriented (contrary to diversions), this doesn't make sense
273         anyway.
275         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
276         value.
277         (vertical_size_node::set_unformat_flag): New method.
278         * src/roff/troff/node.hh: Updated.
279         * src/roff/troff/input.cc (word_space_node::reread,
280         hmotion_node::reread): Reset `unformat' flag after usage.
281         (unformat_macro): Append only if `set_unformat_flag()' returns
282         non-zero.
283         * src/roff/troff/troff.man: Updated.
285 2001-02-15  Werner LEMBERG  <wl@gnu.org>
287         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
288         documentation of `asciify' and `unformat' requests.
290 2001-02-13  Werner LEMBERG  <wl@gnu.org>
292         Redesigned the `unformat' request.  It is no longer connected with
293         `asciify' but rather uses new `reread()' methods if the `unformat'
294         flag is set.  Additionally, the handling of space characters after
295         unformatting has been fixed so that they retain their width.
297         * src/roff/troff/node.h (width_list): New structure to store
298         original widths of spaces.
299         (node): Added `unformat' member.
300         Replaced `num_spaces' variable with `orig_width' list.
301         * src/roff/troff/node.cc (*node::asciify,
302         asciify_reverse_node_list): Removed `unformat_only' flag and related
303         code.
304         (word_space_node::asciify, word_space_node::word_space_node): Use
305         `orig_width'.
306         (word_space_node::~word_space_node): New destructor.
307         (word_space_node::copy): Updated to handle `orig_width'.
308         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
309         (*node::merge_space): Update `orig_width' list if necessary.
310         (*node::set_unformat_flag): New methods to set the `unformat' flag.
311         * src/roff/troff/enc.cc (environment::space_newline): Use
312         `width_list'.
313         (environment::space): Added method to handle space width and
314         sentence space width as parameters.  Use `width_list'.
315         (environment::make_tab_node): Updated.
316         * src/roff/troff/env.h: Updated.
317         * src/roff/troff/input.cc (word_space_node::reread,
318         unbreakable_space_node::reread, hmotion_node::reread): New methods
319         to handle nodes specially if `unformat' flag is set.
320         (do_asciify_macro): Renamed back to ...
321         (asciify_macro): This.
322         (unformat_macro): New implementation to simply set the `unformat'
323         flag.
325         * MORE.STUFF: Added more info about deroff.
327 2001-02-08  Werner LEMBERG  <wl@gnu.org>
329         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
330         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
331         and `add_self()' methods to avoid hyphenation.  For example, the
332         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
333         soft hyphen after `foo'.  Now the hyphen list is correctly
334         `foo<ignore><ignore>bar'.
336 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
338         * tmac/groff_tmac.man: Fix `BIR' macro.
340 2001-02-04  Werner LEMBERG  <wl@gnu.org>
342         A new escape sequence `\:', inserting a zero-width break point.
344         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
345         * src/roff/troff/input.cc (get_copy, token::next, asciify):
346         Implement it.
347         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
348         method.
349         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
350         and `asciify()' methods.
351         * src/roff/troff/node.cc (space_node::space_node): Updated.
352         (space_node::asciify): Handle `was_escape_colon'.
353         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
355         Handle `\~' similar to other comparable requests.
357         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
358         label.
359         (token::next): Move creation of an unbreakable_space_node to...
360         (token::add_to_node_list): Here.
362         Fix a bug which sometimes prevented hyphenation of words connected
363         with `\~' or `\ ' (and other escape sequences handled as
364         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
365         (after a call to the `unformat' request).
367         * src/roff/troff/env.h (environment::possibly_break_line,
368         environment::hyphenate_line): Introducing `start_here' parameter.
369         * src/roff/troff/env.cc (environment::space_newline,
370         environment::space): Use it.
371         (environment::possibly_break_line, environment::hyphenate_line):
372         Implement it.
373         * src/roff/troff/input.cc (process_input_stack): Use it.
374         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
375         space_char_hmotion_node, overstrike_node): Add
376         `get_hyphenation_type()' method.
377         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
378         if `unformat_only' is active.
380 2001-01-30  Werner LEMBERG  <wl@gnu.org>
382         Implemented new read-only number register `.linetabs' which
383         returns 1 if in line-tabs mode, 0 otherwise.
385         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
386         * src/roff/troff/env.cc (get_line_tabs): New function.
387         (init_env_requests): Use it.
388         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
390         * VERSION, REVISION: Changing to 1.17.0.
392 2001-01-28  Werner LEMBERG  <wl@gnu.org>
394         Fixed a bug which prevented hyphenation of words which are finished
395         with `\)'.
397         * src/roff/troff/token.h (token): Add enum type
398         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
399         * src/roff/troff/input.cc (token::next, token::description,
400         get_line_arg, token::add_to_node_list, token::process): Use it.
402 2001-01-27  Werner LEMBERG  <wl@gnu.org>
404         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
405         * src/roff/troff/div.cc (do_divert): Use it.
407         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
409 2001-01-25  Werner LEMBERG  <wl@gnu.org>
411         Adding the `linetabs' request.  If set, tab distances are not
412         computed relative to the input line but relative to the output line.
414         * src/roff/troff/env.h (environment): New member `line_tabs'.
415         * src/roff/troff/env.cc (line_tabs_request): Implement request.
416         (environment::environment, environment::copy): Updated.
417         (environment::distance_to_next_tab): Use `line_tabs'.
418         (init_env_requests): Register request.
419         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
420         fixes.
422 2001-01-24  Werner LEMBERG  <wl@gnu.org>
424         Introducing a new read-only register `.int' which is set to a
425         positive value if the last output line is interrupted (i.e., if it
426         contains `\c').
428         * src/roff/troff/env.cc (init_env_requests): Add it.
429         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
431 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
433         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
434         * src/preproc/html/pre-html.cc (findPrefix): New function which
435         generates the troff executable name via the system prefix.
436         * src/preproc/eqn/main.cc: Modified warning message.
438 2001-01-23  Werner LEMBERG  <wl@gnu.org>
440         troff's `box' and `boxa' requests didn't preserve temporary
441         indentation.
443         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
444         `saved_target_text_length' members.
445         * src/roff/troff/div.cc (do_divert): Use them.
447         Tabs (but not yet leaders and fields) are now handled correctly by
448         `asciify' request.
450         * node.h (hmotion_node): Add field `was_tab'.
451         * env.cc (environment::make_tab_node): Set it.
452         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
454         Added new request `unformat' which will, contrary to `asciify',
455         preserve font information after unformatting (i.e., only nodes
456         dealing with horizontal space are converted back to input
457         characters).
459         * input.cc (asciify_macro): Renamed to ...
460         (do_asciify_macro): this, having a new parameter `unformat_only'.
461         (asciify_macro, unformat_macro): New; using do_asciify_macro.
462         (init_input_requests): Added `unformat'.
463         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
464         parameter to control asciification process.
465         * node.h (*_node::asciify): Ditto.
466         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
468 2001-01-20  Werner LEMBERG  <wl@gnu.org>
470         * doc/groff.texinfo: Minor improvement of `.in' documentation.
472 2001-01-18  Werner LEMBERG  <wl@gnu.org>
474         * tmac/ps.tmac: Remove call of psold.tmac.
475         * tmac/psold.tmac: Comment updated.
476         * tmac/psnew.tmac: Removed since no longer needed.
477         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
479         * font/devutf8/R.proto: Adding `shc' glyph.
480         * font/devutf8/NOTES: Updated.
482         * test-groff: Updated.
484 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
486         First cut of the new html device driver.  Changes to pre-html and
487         the new grohtml are too numerous to be documented here.
489         Stuff related to `html' has been renamed to `html-old' and `html2'
490         stuff has been renamed to `html' (including directories).  The new
491         html device driver is therefore invoked as `-Thtml'.
493         Added new `\O' escape to suppress output (needed by html driver).
495         Added functions and code to pass info about input-level commands
496         (`.in', `.fl', etc.) to html driver.
498         Three new functions (.html-begin, .html-end, and .html-image) for
499         better html handling: `html-begin' will execute the remaining line
500         if at the outermost nesting level, increasing an internal counter.
501         `html-end' does the same but decreases the internal counter.
502         `html_image' puts its arguments into a special node (suppress_node)
503         to define an image region.
505         The `output' request has been removed.
507         * tmac/html-tags.tmac: Removed.
508         * tmac/arkup.tmac: Updated and renamed to ...
509         * tmac/www.tmac: New file.
510         * tmac/markup.tmac Updated and renamed to ...
511         * tmac/mwww.tmac: New file.
512         * tmac/Makefile.sub: Updated.
513         * tmac/an-old.tmac: Updated.
514         * tmac/eqnrc: Updated.
515         * tmac/groff_man.man
516         * tmac/groff_markup.man: Updated and renamed to ...
517         * tmac/groff_mwww.man: New file.
518         * tmac/groff_tmac.man: Updated.
519         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
520         * tmac/html.tmac: Updated and renamed from html2.tmac.
521         * tmac/pspic.tmac: Updated html support.
522         * tmac/s.tmac: Added html output support.
523         * tmac/troffrc, tmac/troffrc-end: Updated.
525         * Makefile.in, doc/Makefile: Updated.
526         * doc/groff.texinfo: Added info about new `\O' escape.
527         * doc/homepage.ms: Use `MAILTO' macro.
529         * font/devhtml/DESC.proto: Add `C' font.
530         * font/devhtml/Makefile.sub: Updated.
531         * font/devhtml/R.proto: Minor fixes.
532         * font/devhtml-old/Makefile.sub: Updated.
534         * src/devices/grohtml-old/Makefile.sub: Updated.
536         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
537         method.
538         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
539         graphic_start): Add `inline' parameter.  Update.
540         (html_end_suppress, graphic_end): Update.
542         * src/include/html-strings.h: New file.
543         * src/include/htmlindicate.h: Comments updated.
544         * src/include/printer.h: Updated.
546         * src/preproc/eqn/main.cc (do_file, main): Updated.
547         * src/preproc/pic/troff.cc (troff_output::start_picture,
548         troff_output::finish_picture): Updated.
549         * src/preproc/tbl/main.cc (process_input_file): Updated.
551         * src/roff/groff/groff.cc (main): Updated.
552         Pass device arguments to predrivers also.
553         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
554         * src/roff/troff/env.h (environment): Updated.
555         New elements `need_eol' and `ignore_next_eol' (for html output).
556         * src/roff/troff/env.cc (environment::environment): Add initializers
557         for `need_eol' and `ignore_next_eol'.
558         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
559         functions.
560         (point_size, fill, no_fill, center, right_justify, line_length,
561         indent, temporary_indent, break_request, handle_tab): Use
562         `add_html_tag()'.
563         (set_tabs): Use `add_html_tag_tabs()'.
564         (environment::add_html_tag): Updated.
565         (environment::do_break): Updated.
566         * src/roff/troff/div.cc (space_request, flush_output): Use
567         `environment::add_html_tag()'.
568         * src/roff/troff/input.cc: Updated.
569         New variable `html_level' to indicate nested `html-begin' requests.
570         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
571         (non_interpreted_char_node, token_node, non_interpreted_node): Add
572         `force_tprint()' method.
573         (token::next): Handle `\O'.
574         (do_suppress): Implement it.
575         (html_begin, html_end, html_image): New functions.
576         (init_output_requests): Renamed to ...
577         (init_html_requests): this.
578         (main): Use it.
579         (macro::append_str, macro::append_unsigned, macro::append_int): New
580         methods.
581         New variable `output_low_mark_miny' to limit minimal value of y.
582         (reset_output_registers): Use it.
583         (output_request): Removed.
584         (get_output_registers): New function.
585         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
586         (*_node): Added `force_tprint()' if necessary.
587         (special_node): New elements `tf' and `get_tfont()'.
588         (suppress_node): New class.
589         * src/roff/troff/node.cc:
590         New global variables `image_no' and `suppress_start_page'.
591         (real_output_file): New method `is_on()'.
592         (troff_output_file): New method `start_special(tfont)'.
593         (troff_output_file::really_print_line): Use `tprint' conditionally.
594         (real_output_file::print_line): Updated.
595         (real_output_file::on): Updated.
596         (*_node): Added `force_tprint()'.
597         (special_node::special_node): Initializer updated.
598         (special_node::same, special_node::copy, special_node::tprint_start):
599         Updated.
600         (get_reg_int, get_reg_str): New functions.
601         (suppress_node::*): New methods.
602         New global variables last_position, last_image_filename;
603         (min): New inline function.
604         * src/roff/troff/reg.h, src/roff/troff/request.h,
605         src/roff/troff/troff.h: Updated.
607 2001-01-13  Werner LEMBERG  <wl@gnu.org>
609         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
610         documentation of `asciify' request.
612 2001-01-12  Werner LEMBERG  <wl@gnu.org>
614         * src/roff/troff/input.cc: Move definition of special characters
615         like `ESCAPE_TILDE' to ...
616         * src/roff/troff/input.h: New file.
617         * src/roff/troff/Makefile.sub (HDRS): Add it.
619         Extending the .asciify request to `unformat' space characters also.
621         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
622         to count input space characters.
623         Update constructors to take care of it.
624         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
625         `ESCAPE_SPACE' instead of normal space.
626         (word_space_node::asciify): New method.
627         (unbreakable_space_node::asciify): New method.
628         (word_space_node::merge_space): New method.
629         * src/roff/troff/env.cc (environment::space_newline,
630         environment::space): Add code to initialize `num_spaces' (using the
631         constructor of `word_space_node').
632         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
633         Document it.
635 2001-01-09  Werner LEMBERG  <wl@gnu.org>
637         * man/groff_char.man: Use table header traps only conditionally.
639 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
641         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
643 2001-01-08  Werner LEMBERG  <wl@gnu.org>
645         Introducing the `box' and `boxa' requests which are similar to
646         `di' resp. `da' but omitting a partially filled line (which is
647         restored after ending the diversion).
649         * src/roff/troff/div.h (diversion): Add elements to save partially
650         filled line.
651         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
652         partially filled line.
653         (divert, divert_append): Updated.
654         (box, box_append): New functions.
655         (init_div_requests): Use them.
656         * src/roff/troff/env.h (environment): do_divert() is now a friend.
657         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
659         * doc/groff.texinfo: Fix documentation of `lf' request.
661 2000-12-25  Werner LEMBERG  <wl@gnu.org>
663         * src/roff/troff/troff.man, NEWS: Document `writem' request.
665 2000-12-21  Werner LEMBERG  <wl@gnu.org>
667         Ignore `ss' request if in compatibility mode.
669         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
670         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
671         * src/roff/troff/env.cc (space_size): Use it.
673         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
674         `ss' request in nroff mode.
676         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
677         changes.
679 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
681         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
683 2000-12-13  Werner LEMBERG  <wl@gnu.org>
685         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
686         * src/preproc/eqn/neqn.man: Small fixes and additions.
688 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
690         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
691         Fixing typo.
693         * src/preproc/eqn/neqn.man: New file.
695         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
696         negative' warning.
698         * tmac/e.tmac: Add `T&' macro.
699         Fix `indent cannot be negative' warning.
700         * tmac/s.tmac: Fix `indent cannot be negative' warning.
702 2000-12-07  Werner LEMBERG  <wl@gnu.org>
704         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
706 2000-12-06  Werner LEMBERG  <wl@gnu.org>
708         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
709         `alloca' symbol .
711         * MORE.STUFF: Added info about deroff for djgpp.
713         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
714         documentation of -rcR switch.
716 2000-12-03  Werner LEMBERG  <wl@gnu.org>
718         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
719         if -rcR=1 (which is now the default in nroff mode), a single, very
720         long page is created instead of multiple pages: All `ne' and `wh'
721         requests are put into conditionals; a new macro `an-end' is added to
722         be called with `em'.
724         Some other minor cleanups.
726         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
728 2000-12-02  Werner LEMBERG  <wl@gnu.org>
730         Fixing a bug which prevented hyphenation in words followed
731         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
733         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
734         Adding possibly_break_line().
735         * src/roff/troff/env.h (environment): Make possibly_break_line()
736         public.
738         Make `\~' usable in .tr request.
740         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
741         (token): Add stretchable_space().
742         * src/roff/troff/input.cc (token::next, token::delimiter,
743         token::description, process_input_stack, do_translate,
744         add_to_node_list, token::process): Use it.
745         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
746         for adjusting the space.
747         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
748         for stretchable space.
749         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
750         (make_node): Add code for stretchable space.
751         * src/roff/troff/env.cc (environment::add_char): Use it.
752         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
753         (get_copy, token::next, transparent_translate, asciify): Use it.
755         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
756         doc/groff.texinfo: Updated.
757         * man/groff.man: Small reorderings.
759 2000-11-23  Werner LEMBERG  <wl@gnu.org>
761         * NEWS: Fixes.
762         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
763         option.
764         * src/roff/troff/input.cc (main): Add `config_macro_path' and
765         `safer_macro_path' to -M option.
766         * src/roff/troff/troff.man: Fixes.
768 2000-11-22  Werner LEMBERG  <wl@gnu.org>
770         Use safer path (except for config files) if -U isn't specified.  Add
771         a special macro path (without home and current directory) for config
772         files.  Add home directory to unsafe path for consistency.  Don't
773         include the home directory in the font path.
775         * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
776         `macro_path'.
777         * src/include/macropath.h: Add `config_macrp_path'.
778         * src/lib/libgroff/fontfile.cc: Fix font path.
779         * src/roff/troff/input.cc (process_startup_file): Use
780         `config_macro_path'.
781         (main): Select unsafe path if -U is given.
783         * src/preproc/eqn/main.cc (main): Fixing search path for
784         configuration file.
785         * src/preproc/eqn/eqn.man: Updated.
787         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
788         Updated.
790         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
791         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
792         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
793         src/devices/grotty/grotty.man: Updated.
795         * Makefile.in: Fix comments.
797 2000-11-17  Werner LEMBERG  <wl@gnu.org>
799         * tmac/safer.tmac: Empty file added (again) for compatibility
800         reasons.
801         * tmac/Makefile.sub: Updated.
803 2000-11-16  Werner LEMBERG  <wl@gnu.org>
805         * src/devices/grodvi/dvi.cc (main),
806         src/devices/grohtml2/post-html.cc (main),
807         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
808         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
809         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
810         (main), src/preproc/html2/pre-html.cc (main),
811         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
812         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
813         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
814         (main), src/utils/hpftodit/hpftodit.cc (main),
815         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
816         (main), src/utils/lookbib/lookbib.cc (main),
817         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
818         (main): Use stdout for -v.
819         * src/roff/groff/groff.cc (run_commands),
820         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
821         to make direct printing to stdout possible.
822         * src/roff/groff/pipeline.h: Updated.
824         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
825         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
826         * src/utils/afmtodit/afmtodit.man: Updated.
828         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
829         (version): New function.
830         (usage): Updated.
831         * src/utils/addftinfo/addftinfo.man: Updated.
833         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
834         Fixing copyright dates.
836         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
837         replacing it.
839         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
840         version_string.
842         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
844 2000-11-15  Werner LEMBERG  <wl@gnu.org>
846         In all programs, make -v return immediately with exit status 0 to
847         be compliant with the GNU standard.
849         * src/devices/grodvi/dvi.cc (main),
850         src/devices/grohtml2/post-html.cc (main),
851         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
852         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
853         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
854         (main), src/preproc/html2/pre-html.cc (main),
855         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
856         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
857         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
858         (main): Implement it.
859         * NEWS: Updated.
861         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
862         and postprocessors to the -v option.
864         * src/roff/grog/grog.pl: Implement -v.
865         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
866         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
868         * src/roff/nroff/nroff.sh: Implement -v.
869         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
870         * src/roff/nroff/nroff.man: Updated.
871         
872         * src/preproc/eqn/main.cc (main): Fix comment typo.
874         * MORE.STUFF: Added info about djgpp port of grap.
876 2000-11-14  Werner LEMBERG  <wl@gnu.org>
878         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
879         mode (or rather, implemented non-compatibility mode).
880         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
882         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
883         replacing it -- we don't find gxditview otherwise.
884         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
886         * src/preproc/pic/depend: Removed.  Unnecessary.
888         Implemented dummy keyword `solid' in pic for compatibility with
889         AT&T pic.
891         * lex.cc (lookup_keyword): Added `solid'.
892         * pic.y: Added SOLID with dummy rule.
893         * pic.cc, pic_tab.h: Regenerated.
894         * doc/pic.ms: Updated.
896 2000-11-13  Werner LEMBERG  <wl@gnu.org>
898         For security reasons, don't use the current directory but the home
899         directory while searching and scanning troffrc and troffrc-end.
900         Similarly, replace the current directory with the home directory
901         in the font path.
903         * Makefile.in (fontpath, tmacpath): Remove current directory.
905         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
906         two parameters `add_home' and `add_current'.
907         (search_path::~search_path, search_path::command_line_dir,
908         search_path::open_file): Remove tests for `dirs' being zero.
909         * src/include/searchpath.h: Adjust.
910         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
911         `safer_macro_path'.
912         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
914         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
915         * src/roff/troff/input.cc: Use `mac_path', initialized with
916         `macro_path'.
917         (process_startup_file): Set `mac_path' to `safer_macro_path'.
918         * src/roff/troff/env.cc: Use `mac_path'.
920         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
922         * NEWS, man/roff.man, src/roff/troff/troff.man,
923         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
924         Updated.
926 2000-11-12  Werner LEMBERG  <wl@gnu.org>
928         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
930         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
931         * configure.in: Fix typo in comment.
932         * configure: Regenerated.
934         * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
935         dates.
937 2000-11-08  Werner LEMBERG  <wl@gnu.org>
939         Add system tmac directory (/usr/local/lib/groff/site-tmac).
941         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
942         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
943         $(systemtmacdir).
944         Use @libdir@.
945         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
946         * tmac/Makefile.sub (install_data): Create
947         $(systemtmacdir) and $(localtmacdir).
948         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
949         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
950         NEWS, doc/groff.texinfo: Updated and minor fixes.
952         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
953         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
954         $(systemtmacdir) since the wrapper files are platform-dependent.
956 2000-11-01  Werner LEMBERG  <wl@gnu.org>
958         * doc/groff.texinfo: Fix typo.
960 2000-10-26  Werner LEMBERG  <wl@gnu.org>
962         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
963           tmac.doc.old -> doc-old.tmac
964           tmac.an.old  -> an-old.tmac
966         * tmac/tmac.*: Moved to ...
967         * tmac/*.tmac: this.
968         * tmac/man.local: Fix comment.
969         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
970         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
971         Added some `FILES' sections.  More use of @...@ directives.  Other
972         minor updates.
973         * arch/djgpp/README, font/devutf8/NOTES: Updated.
974         * doc/homepage.ms, doc/groff.texinfo: Updated.
975         * man/groff.man, man/roff.man: Updated.
976         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
977         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
978         src/devices/grotty/grotty.man: Updated.
979         * src/preproc/pic/pic.man: Updated.
980         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
981         instead of -mdoc.old.
982         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
983         * src/roff/nroff/nroff.man: Updated.
984         * NEWS: Updated.
986         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
988         * tmac/mm.diff: Removed -- it has no use now since the mm package
989         is part of groff.
991         * tmac/*: Removed trailing spaces.
993         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
994         the tmac subdirectory also).
996         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
997         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
998         stuff since it is no longer needed.
1000         * README, PROBLEMS: Updated.
1002 2000-10-25  Werner LEMBERG  <wl@gnu.org>
1004         Invert current behaviour: Search first FOOBAR.tmac, then
1005         tmac.FOOBAR.
1007         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
1008         (open_mac_file, macro_source): Implement it.
1009         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
1010         doc/groff.texinfo, NEWS: Document it.
1012         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
1013         Small documentation improvements.
1015         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
1016         subdirectory also).
1018         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
1020 2000-10-24  Werner LEMBERG  <wl@gnu.org>
1022         Add local tmac directory (groff/site-tmac).
1024         * Makefile.in: Add $(localtmacdir).
1025         (uninstall_dirs): Add $(localtmacdir).
1026         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
1027         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
1028         in $(localtmacdir).  Create $(localtmacdir).
1029         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
1030         Updated and minor fixes.
1032         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
1034         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
1036 2000-10-23  Werner LEMBERG  <wl@gnu.org>
1038         Move hyphen.us to tmac directory.
1040         * src/roff/troff/hyphen.us: Removed.
1041         * src/tmac/hyphen.us: Added.
1042         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
1044         Change installation structure for data files from .../groff/... to
1045         .../groff/<version><revision>/... to be conform with other GNU
1046         programs.
1048         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
1049         doc/Makefile: Implement it.
1050         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
1051         * configure: Updated.
1052         * arch/djgpp/README, font/devutf8/NOTES: Use it.
1053         * NEWS: Document it.
1054         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
1055         @MACRODIR@ instead of hard-coded directories.
1057 2000-10-22  Werner LEMBERG  <wl@gnu.org>
1059         Implement $GROFF_BIN_PATH environment variable (which defaults to
1060         $bindir) used for child programs of groff and similar wrappers.
1062         * gendefs.sh: Improve documentation.
1063         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
1064         src/preproc/eqn/Makefile.sub (neqn),
1065         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
1066         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
1067         $GROFF_BIN_PATH.
1068         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
1069         $GROFF_PATH__ (the latter for communication with troff).
1070         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
1071         set.
1072         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
1073         doc/groff.texinfo: Document it.
1075         * doc/groff.texinfo: Improve documentation of troff's -a option.
1077 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
1079         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
1080         non-intrusive eol marker.
1081         (troff_output_file::determine_line_limits): New function.
1082         (troff_output_file::draw): Use it.
1083         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
1084         output_pending_lines() instead of output_line().
1085         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
1086         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
1087         createImage): Small fixes.
1088         
1089 2000-10-14  Werner LEMBERG  <wl@gnu.org>
1091         Replace tmac.safer with a real secure solution.
1093         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
1094         system_request, pipe_output): Disable requests if in safer mode.
1095         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
1096         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
1097         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
1098         doc/groff.texinfo, src/roff/groff/groff.man,
1099         src/roff/troff/troff.man, arch/djgpp/README: Updated.
1101         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
1102         (resource_manager::output_prolog): Replace setenv() with putenv().
1104 2000-10-09  Werner LEMBERG  <wl@gnu.org>
1106         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
1107         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
1108         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
1109         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
1110         compilation errors with some compilers.  It seems that this code
1111         is no longer necessary -- if yes, it is easy to add some #ifdef's
1112         for that particular old-fashioned compiler.
1114         * MORE.STUFF: Added info about Meta-tbl.
1116         * doc/groff.texinfo: Added more info about `.if "..."..."'.
1118 2000-10-07  Werner LEMBERG  <wl@gnu.org>
1120         Adding a new escape sequence \B'...': If the string between
1121         the delimiters is a valid numeric expression, return the character
1122         `1', and `0' otherwise.  This is an analogon to \A.
1124         * src/roff/troff/input.cc (do_expr_test): Implement it.
1125         (token::next): Use it.
1126         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
1128         * tmac/tmac.trace: Made independent from escape character.
1130 2000-10-06  Werner LEMBERG  <wl@gnu.org>
1132         Adding a new request .dei: define indirect.  The first and second
1133         parameter of .dei are taken from string registers instead directly;
1134         this very special request is needed to make tmac.trace independent
1135         from the escape character (which might even be disabled).
1137         * src/roff/troff/input.cc (do_define_macro): Implement it.
1138         (define_macro_indirect): New function.
1139         (init_input_requests): Use it.
1141         Adding two requests .ecs and .ecr: Save and restore the escape
1142         character.  These two requests are needed to make tmac.trace
1143         independent from the escape character (which might even be
1144         disabled).
1146         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
1147         Implement it.
1148         (init_input_requests): Use it.
1150         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1152 2000-09-22  Ricardo Soares Guimarães <ricardo@conectiva.com.br>
1154         Adding a new option -P and new environment variable GROPS_PROLOGUE
1155         to grops, selecting a different prologue file (minor modifications
1156         by WL).
1158         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
1159         src/devices/grops/ps.cc (main): Implement it.
1160         * src/devices/grops/grops.man, NEWS: Document it.
1162 2000-09-22  Werner LEMBERG  <wl@gnu.org>
1164         * INSTALL: Add info about selecting paper format.
1166 2000-09-21  Werner LEMBERG  <wl@gnu.org>
1168         * src/roff/troff/input.cc (main): Fixing compiler warning.
1169         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
1170         strings.h from the former to the latter.
1171         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
1172         stuff from the former to the latter.
1174 2000-09-11  Werner LEMBERG  <wl@gnu.org>
1176         Implementing two new requests .tm1 and .tmc: The former is similar
1177         to .tm but can output leading spaces; its syntax is similar to
1178         defining a string, i.e., a `"' can be used to mark the beginning of
1179         the string to be written to stderr: `.tm1 " test'.  The latter is
1180         similar to .tm1 but doesn't write out a final newline character.
1182         * src/roff/troff/input.cc (terminal1, terminal_continue,
1183         do_terminal): New functions.
1184         (init_input_requests): Use them.
1185         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1187 2000-09-09  Werner LEMBERG  <wl@gnu.org>
1189         * tmac/groff_mdoc.samples.man: Small fixes.
1191 2000-09-08  Werner LEMBERG  <wl@gnu.org>
1193         * tmac/groff_mdoc.man: Fixing typo.
1195 2000-09-02  Werner LEMBERG  <wl@gnu.org>
1197         Implementing a .nop request which does nothing.
1199         * src/roff/troff/input.cc (nop_request): New function.
1200         (init_input_requests): Use it.
1201         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1203 2000-09-01  Werner LEMBERG  <wl@gnu.org>
1205         * doc/groff.texinfo: Added some comments.
1207 2000-08-30  Werner LEMBERG  <wl@gnu.org>
1209         * src/roff/troff/TODO: Updated.
1211 2000-08-28  Bruno Haible  <haible@clisp.cons.org>
1213         * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
1214         of 'install'.
1216 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1218         * doc/groff.texinfo: Fix comment how to compile the DVI file.
1220 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
1222         * font/devps/generate/Makefile (SHELL): Define explicitly to
1223         "/bin/sh", for non-Unix platforms.
1224         (extraclean): Use a more portable "" quoting instead of a
1225         backslash (which doesn't work on DOS/Windows).
1226         
1227         * font/devlj4/generate/Makefile (extraclean): Ditto.
1229         * font/devdvi/generate/Makefile (extraclean): Ditto.
1231 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1233         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
1234         src/roff/troff/troff.man: Document Eli's latest changes.
1236 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
1238         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
1239         macro file names of the form NAME.tmac as well as tmac.NAME.
1241 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1243         * src/include/posix.h: Remove definition of FILENAME_MAX.
1245         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
1246         `sys_fatal' and `stop' function().
1248         * test-groff: Updated.
1250 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
1252         Added the new troff command .output <arg> to suppress output (while
1253         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
1254         registers (for passing the output dimensions to the output device).
1256         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
1257         parameter.
1258         * src/roff/troff/node.h, src/roff/troff/node.cc
1259         (troff_output_file::really_print_line,
1260         ascii_output_file::really_print_line,
1261         supress_output_file::really_print_line): Use `width' parameter.
1262         (troff_output_file::really_on, troff_output_file::really_off,
1263         output_file::on, output_file::off, real_output_file::on,
1264         real_output_file::off, real_output_file::really_on,
1265         real_output_file::really_off): New functions.
1266         (real_output_file:public output_file): New variable `output_on'.
1267         (real_output_file::begin_page, real_output_file::copy_file,
1268         real_output_file::transparent_char, real_output_file::print_line):
1269         Use it.
1270         (real_output_file::print_line): Use check_output_limits.
1271         * src/roff/troff/reg.h, src/roff/troff/request.h,
1272         src/roff/troff/input.cc (assign_registers): New function to remove
1273         two `goto's.
1274         (do_ps_file): Use it.
1275         (check_output_limits, reset_output_registers, output_request,
1276         init_output_requests): New functions.
1277         (init_input_requests): Updated.
1279         Added new grohtml2 device and html2 preprocessor (coding
1280         not yet finished) which will eventually replace grohtml.
1282         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
1283         Updated.
1284         * src/include/htmlindicate.h, src/include/htmlindicate
1285         (html_begin_suppress, html_end_suppress): New functions.
1286         * src/preproc/tbl/main.cc: Use it.
1287         * src/roff/groff/groff.cc: Add support for html2 device (which will
1288         automatically invoke the html2 preprocessor).
1289         * src/roff/troff/input.cc (is_html2): New variable.
1290         * src/roff/troff/troff.h, src/roff/troff/env.h,
1291         src/roff/troff/env.cc (environment::add_html_tag): New function
1292         (uses `is_html2').
1293         (environment::do_break): Use it.
1294         * font/devhtml2/*: New files.
1295         * src/devices/grohtml2: New device.
1296         * src/preproc/html2: New preprocessor.
1297         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
1299 2000-08-23  Werner LEMBERG  <wl@gnu.org>
1301         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
1303 2000-08-22  Werner LEMBERG  <wl@gnu.org>
1305         * src/include/lib.h: Provide a fix for IRIX to not include
1306         groff-getopt.h.
1308 2000-08-18  Werner LEMBERG  <wl@gnu.org>
1310         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
1311         since some non-GNU sed programs can't handle null regexps.
1312         * configure, src/preproc/eqn/Makefile.sub,
1313         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
1315         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
1316         bug (string.h and strings.h are both needed according to latest
1317         POSIX standard).
1319         * MORE.STUFF: Added info about unroff and troffcvt.
1321 2000-08-08  Werner LEMBERG  <wl@gnu.org>
1323         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
1324         used before -ms.
1326         * tmac/tmac.man.old: Remove unused number register.
1328         * tmac.doc: Minor documentation fix.
1330 2000-08-07  Paul Eggert  <eggert@twinsun.com>
1332         * src/roff/groff/pipeline.c (is_system_shell):
1333         Fix typo: "monocased_shell" no longer exists.
1335 2000-08-07  Paul Eggert  <eggert@twinsun.com>
1337         Remove FILENAME_MAX limits.
1339         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
1340         that the argument length is less than FILENAME_MAX.
1341         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
1342         Use struct hack to allocate and free file name.
1343         (struct xtmpfile_list): fname is now part of the structure,
1344         not a pointer to another string.
1346 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
1348         * src/include/posix.h: Add a default value for FILENAME_MAX.
1350 2000-08-06  Paul Eggert  <eggert@twinsun.com>
1352         Add support for new BSD-style man pages (with ".Dd" instead of
1353         ".TH"), so that "groff -man" understands both styles, even
1354         when running "groff -man" on a host whose system man page
1355         macros don't support ".Dd".
1357         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
1358         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
1359         in case the system man macros don't define Dd or TH.
1361         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
1362         * tmac/tmac.an: New one-line file.
1363         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
1365 2000-08-06  Werner LEMBERG  <wl@gnu.org>
1367         * src/roff/troff/troff.man: Fixing typos.
1369 Version 1.16.1 released
1370 =======================
1372 2000-07-31  Werner LEMBERG  <wl@gnu.org>
1374         Preparing release 1.16.1.
1376         * REVISION: Revision number set to 1.
1377         * MORE.STUFF: Added info about port to DOS.
1378         * NEWS, win32-diffs: Updated.
1380         * src/include/nonposix.h: Remove first line -- this file is used
1381         in C also.
1383         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
1384         link to it.
1386 2000-07-30  Werner LEMBERG  <wl@gnu.org>
1388         * doc/texinfo.tex: Update to latest version.
1390 2000-06-28  Paul Eggert  <eggert@twinsun.com>
1392         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
1393         commands that fail.  Don't assume that "export a=b" is valid shell
1394         syntax.  This is needed for Solaris 2.5.1.
1396         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
1397         comment about missing Solaris headers.
1399         * PROBLEMS: Add section about problems with Sun Make and VPATH.
1401 2000-06-25  Werner LEMBERG  <wl@gnu.org>
1403         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
1404         SET_BINARY().
1406         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
1408         * win32-diffs: Updated.
1409         * README.WIN32: Added CRs to make all Windows editors happy.
1411         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
1412         src/roff/groff/pipeline.c).
1414 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
1416         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
1417         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
1419 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
1421         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
1422         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
1423         are binary files.
1424         (main): Support non-Posix systems with several different styles of
1425         slash characters in file names.
1427         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
1428         (main) [SET_BINARY]: Switch stdin into binary mode.
1430         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
1431         (main): Support file names with several possible slash-type
1432         characters, as given by DIR_SEPS[] in nonposix.h.
1433         (main) [__MSDOS__]: If renaming the temporary index file fails
1434         because it has more than one dot in its trunk, replace the dot
1435         with an underscore and try again.
1436         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
1437         Newline.
1438         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
1440         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
1441         (File::File): Open the input file in binary mode.  Strip CR
1442         characters from each CR-LF pair.
1443         (xbasename): Support file names with several possible slash-type
1444         characters, as given by DIR_SEPS[] in nonposix.h.
1446         * src/include/Makefile.sub (HDRS): Add nonposix.h.
1448         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
1449         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
1450         [!_POSIX_VERSION]: Define for traditional Unix systems.
1451         (real_output_file::real_output_file): Remove the MSVC-specific
1452         call to popen, use instead POPEN_WT, appropriately defined on
1453         nonposix.h.  #include nonposix.h.
1454         (real_output_file::~real_output_file): Remove the MSVC-specific
1455         call to pclose, a suitable macro is now defined on nonposix.h.
1456         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
1457         and WEXITSTATUS instead of assuming traditional Unix
1458         interpretation of the status returned by pclose.
1460         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
1461         call to popen, use POPEN_RT instead (appropriately defined on
1462         nonposix.h).  #include nonposix.h.
1463         (ps_bbox_request): Open the PostScript file in binary mode.
1464         Close the file after processing it.
1465         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
1466         nonposix.h.
1468         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
1469         A version of run_pipeline that doesn't use `fork'.
1470         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
1471         (system_shell_name, system_shell_dash_c)
1472         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
1473         the ugliness of testing DOS/Windows file names for equality, and
1474         support both stock shells and ports of Unix shells.
1476         * src/roff/groff/groff.cc: #include nonposix.h.
1477         (BSHELL): Definition moved to nonposix.h.
1478         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
1479         instead of a literal "-c".
1480         (xbasename): Support file names with several possible slash-type
1481         characters, as given by DIR_SEPS[] in nonposix.h.
1482         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
1483         of literal strings.
1485         * src/preproc/soelim/soelim.cc: #include nonposix.h.
1486         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
1488         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
1489         pic_tab.h.
1491         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
1493         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
1494         eqn_tab.h.
1496         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
1498         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
1499         P_tmpdir is defined, use it instead of the literal "/tmp".
1500         (remove_tmp_files, add_tmp_file): New functions.
1501         (xtmpfile): Record temporary files and register an atexit function
1502         to delete them explicitly, instead of relying on the OS to do
1503         that, which doesn't work on non-Unix systems.
1505         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
1506         (search_path::search_path): Use PATH_SEP instead of a literal
1507         colon.
1508         (search_path::command_line_dir): Ditto.
1509         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
1510         to support non-Posix systems.
1512         * src/libc/libbib/search.cc: #include nonposix.h.
1513         (search_list::add_file): Open the file in binary mode.
1515         * src/libs/libbib/linear.cc: #include nonposix.h.
1516         (file_buffer::load): Remove \r characters preceding \n from the
1517         loaded buffer.
1519         * src/libs/libbib/index.cc: #include nonposix.h.
1520         (make_index_search_item): Open index_filename in O_BINARY mode.
1521         (index_search_item_iterator::get_tag): Ditto.  Remove \r
1522         characters before \n characters.
1523         (index_search_item::check_files): Open files in binary mode.
1524         (index_search_item::munge_filename): Support DOS-style file names
1525         with backslashes and drive letters, use IS_ABSOLUTE.
1527         * src/devices/grops/ps.cc: #include nonposix.h.
1528         (main) [SET_BINARY]: Switch stdout to binary mode.
1530         * src/devices/grolj4/lj4.cc: #include nonposix.h.
1531         (main) [SET_BINARY]: Switch stdout to binary mode.
1533         * src/devices/grolbp/lbp.cc: #include nonposix.h
1534         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
1536         * src/devices/grodvi/dvi.cc: #include nonposix.h.
1537         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
1538         nonposix.h).
1539         (main) [SET_BINARY]: Switch stdout to binary mode.
1540         [_MSC_VER]: Remove an explicit call to _setmode.
1542         * src/include/nonposix.h: New file.
1544         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
1545         operation when building with DJGPP.
1546         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
1547         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
1548         ENVSETUP.
1550         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
1551         MS-DOS.
1552         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
1553         etc. can include a semi-colon on DOS/Windows.
1554         (depend.temp): Use depend1.temp instead of depend.temp1, to
1555         prevent files from overerwiting each other on 8+3 filesystems.
1557         * gendef.sh (t): Change definition to work with DOS/Windows.
1559         doc/groff.texinfo: Apart of some typo corrections, I also changed
1560         some index entris, to make them more non-ambiguous, and also put
1561         @ignore around some parts that are not yet written, to allow the
1562         Info output be readable.
1564 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
1566         Replaced specific checks for function declarations with a generic
1567         routine taken from GNU bfd.
1569         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
1570         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
1571         * configure.in: Use it.
1572         * src/devices/grolbp/lbp.cc, src/include/lib.h,
1573         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
1574         src/roff/groff/groff.cc: Use it.
1575         * Makefile.in, configure: Updated.
1577 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
1579         * src/devides/grolbp/lbp.h: Removed unused variables.
1581 2000-05-31  Keith Thompson  <kst@sdsc.edu>
1583         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
1584         strncasecmp().
1586 2000-05-31  Werner LEMBERG  <wl@gnu.org>
1588         * aclocal.m4 (GROFF_SRAND): New function to test the return value
1589         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
1590         * configure.in: Use it.
1591         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
1592         * configure, Makefile.in: Updated.
1594         * configure.in: Add test for strncasecmp().
1595         * src/include/lib.h: Use it.
1597 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
1599         * src/preproc/grn/Makefile.sub: Add MLIB.
1601 2000-05-29  Nix  <nix@esperi.demon.co.uk>
1603         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
1605 2000-05-29  Werner LEMBERG  <wl@gnu.org>
1607         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
1609         * PROBLEMS: Small update.
1611         * src/devices/grolbp/lbp.cc: Various small fixes.
1613 2000-05-28  Keith Thompson  <kst@sdsc.edu>
1615         * src/roff/nroff/nroff.sh: Fix main loop syntax.
1617         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
1619 2000-05-25  Werner LEMBERG  <wl@gnu.org>
1621         * man/roff.man: Removed unused macro.
1623 2000-05-24  Werner LEMBERG  <wl@gnu.org>
1625         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
1626         This is needed e.g. if you do
1627         `make distclean; ./configure; make dist'.
1629 Version 1.16 released
1630 =====================
1632 2000-05-23  Werner LEMBERG  <wl@gnu.org>
1634         Adding font CWI (constant width italic) to devdvi.
1636         * font/devdvi/CWI: New file.
1637         * font/devdvi/generate/Makefile: Add generating rule.
1638         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
1639         tmac/tmac.dvi: Use it.
1640         * NEWS: Announce it.
1642         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
1643         * font/devlj4/generate/Makefile: Cosmetic changes only.
1645         * man/groff.man: Removed most of the redundant description of
1646         special characters (which is in groff_char.man).  Added font
1647         translation CB->CR for devdvi.  Other minor fixes.
1649         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
1650         (registered) symbols.
1652 2000-05-22  Werner LEMBERG  <wl@gnu.org>
1654         * doc/Makefile: Added rule for creating info files.
1656         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
1657         AMS font metrics.
1658         * font/devdvi/generate/Makefile: Fixed dependencies.
1660         * font/devps/*: Regenerated.  Heavy changes for Bookman and
1661         NewCentury Schoolbook!
1662         * font/devps/generate/afmname: Will now run with GNU awk.
1663         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
1664         * font/devps/generate/Makefile: Cosmetic changes only.
1666 2000-05-21  Werner LEMBERG  <wl@gnu.org>
1668         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
1669         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
1670         `.SS' now produces a heading with a smaller size than `.SH'. 
1671         Completely formatted.
1672         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
1674         * man/groff.man: Improved table appearance.  Use of `eo' request
1675         to reduce number of doubled backslashes in macro definitions.
1676         Replacing `\e' with `\(rs'.  Other minor fixes.
1678         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
1679         to have correct line number.
1681         * INSTALL: Small improvement.
1683 2000-05-20  Bernd Warken  <bwarken@mayn.de>
1685         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
1686         WL).
1688 2000-05-19  Bernd Warken  <bwarken@mayn.de>
1690         * man/groff.man: Complete update (with a lot of corrections by WL).
1692 2000-05-18  Werner LEMBERG  <wl@gnu.org>
1694         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
1696         * font/*/*: Implement it.
1697         * man/groff_char.man, NEWS: Document it.
1699         * src/include/unix.h: Removed.  It isn't used.
1701         * doc/groff.texinfo: Slight improvements.
1703 2000-05-17  Werner LEMBERG  <wl@gnu.org>
1705         * README, win32-diffs: Small fixes and improvements.
1707 2000-05-16  Werner LEMBERG  <wl@gnu.org>
1709         * FDL: New file (the Free Documentation License version 1.1).
1711         * doc/groff.texinfo: Added many start-up values for gtroff.
1712         Some structural improvements of the source code.
1714 2000-05-15  Werner LEMBERG  <wl@gnu.org>
1716         * src/roff/troff/input.cc: Added small comment about troffrc-end.
1717         * src/roff/troff/troff.man: Added info about troffrc-end.
1719 2000-05-14  Werner LEMBERG  <wl@gnu.org>
1721         * Makefile.in (EXTRADIRS): Fix typos.
1722         (dist): Handle deletion of old .tar.gz file correctly.
1723         (DISTDIRS): Include all tty output devices.
1725         * doc/groff.texinfo: Adding more cross references; countless other
1726         fixes.
1728 2000-05-13  Werner LEMBERG  <wl@gnu.org>
1730         * MORE.STUFF: Added Robert Marks's utilities.
1732 2000-05-12  Werner LEMBERG  <wl@gnu.org>
1734         Added win32 port contributed by Blake McBride
1735         <blake@florida-software.com>.
1737         * README.WIN32, win32-diffs: New files.
1738         * NEWS: Updated.
1740         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
1741         (tmove, tmove2): Added parentheses to avoid compiler warnings.
1742         (change): Removed unused variables.
1744         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
1745         (savebounds): Changed return value from `int' to `void'.
1746         * src/preproc/grn/hdb.cc: Ditto.
1748         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
1749         final backslash in comment to avoid compiler warning.
1751         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
1753         * doc/groff.texinfo: More fixes.
1755 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
1757         * tmac/tmac.doc: Documentation fix.
1759 2000-05-11  Werner LEMBERG  <wl@gnu.org>
1761         * doc/groff.texinfo: Reading the source code shows up a lot of
1762         omissions and incorrect data...  More conversion to @Deffn macros.
1764 2000-05-10  Werner LEMBERG  <wl@gnu.org>
1766         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
1767         dependency.
1769         * src/roff/troff/request.h: Removing unused `no_break_flag'.
1771 2000-05-09  Werner LEMBERG  <wl@gnu.org>
1773         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
1774         improvements.
1776         * doc/groff.texinfo: Extended history section.  More conversion to
1777         @Deffn macros.  More .tr documentation.
1779 2000-05-07  Werner LEMBERG  <wl@gnu.org>
1781         * doc/groff.texinfo: Completed tab section.  Added info about
1782         fields.
1784 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
1786         * PROBLEMS: Describe configure script fix for OS/390 Unix.
1788 2000-05-05  Werner LEMBERG  <wl@gnu.org>
1790         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
1791         LaTeX 2e).
1792         * NEWS: Document it.
1794         * man/troff.man: Minor optical improvements.
1796 2000-05-03  Werner LEMBERG  <wl@gnu.org>
1798         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
1800         * font/*/*: Implement it.
1801         * man/groff_char.man, NEWS: Document it.
1803 2000-05-02  Werner LEMBERG  <wl@gnu.org>
1805         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
1806         expansion.
1807         * NEWS: Document the three new man pages.
1809         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
1810         * configure: Updated.
1812         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
1814 2000-05-01  Werner LEMBERG  <wl@gnu.org>
1816         Added grap support to grog.
1818         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
1819         * src/roff/grog/grog.man: Document it.
1821         * doc/groff.texinfo, NEWS: Add info about grap support.
1823         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
1824         (with slight fixes by me).
1826         * tmac/groff_tmac.man: New file documenting tmac mechanism.
1827         * tmac/Makefile.sub: Add groff_tmac.man.
1828         * man/roff.man: New file giving overview of roff system.
1829         * man/troff.man: A short reference of troff.
1830         * man/Makefile.sub: Add roff.man and troff.man.
1832 2000-04-30  Werner LEMBERG  <wl@gnu.org>
1834         Added grap support to groff.
1836         * src/roff/groff/groff.cc: Implement it.
1837         * src/roff/groff/groff.man: Document it.
1839         * src/devices/grotty/grotty.man: Add cp1047 device.
1840         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
1841         Ditto.
1842         * src/roff/groff/groff.man: Ditto.
1843         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
1844         * doc/groff.texinfo: Ditto.
1846         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
1847         for cp1047.
1849 2000-04-29  Werner LEMBERG  <wl@gnu.org>
1851         * man/groff_char.man: Add `pc' glyph.
1852         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
1853         * tmac/tmac.tty: Add `pc' glyph.
1854         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
1855         we use cp1047 output device.
1857         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
1858         there are still hardcoded latin1->unicode values in utf8's font
1859         definition files.
1860         * configure: Updated.
1861         * NEWS: Minor clarification.  Updated.
1863         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
1864         Unix.
1866 2000-04-28  Werner LEMBERG  <wl@gnu.org>
1868         Adding EBCDIC code page 1047.
1870         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
1871         font/devcp1047/DESC.proto: New files.
1873         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
1874         either ascii/latin1 or cp1047.
1875         * Makefile.in: Use it.
1876         * configure: Updated.
1878         Replacing and/or adding `md' (mathdot) glyph with `pc'
1879         (periodcentered) in all text fonts.
1881         * font/*/*: Change it.
1883 2000-04-27  Werner LEMBERG  <wl@gnu.org>
1885         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
1887         * configure.in: Add check for strings.h.
1888         * src/include/driver.h: Use HAVE_STRINGS_H.
1889         * src/devices/grolbp/lpb.cc: Remove string.h.
1891         * src/include/groff-getopt.h: New file.  It will be used instead of
1892         getopt.h (to be included in lib.h) to avoid endless problems with
1893         picky C++ compilers.
1894         * src/include/lib.h: Use groff-getopt.h.
1895         * src/include/Makefile.sub: Updated.
1897         * configure: Updated.
1898         * Makefile.in: Updated.
1900         * NEWS: Mention EBCDIC support.
1902 2000-04-26  Werner LEMBERG  <wl@gnu.org>
1904         * TODO: Some additions.
1906 2000-04-25  Werner LEMBERG  <wl@gnu.org>
1908         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
1909         of mso request.
1911 2000-04-23  Werner LEMBERG  <wl@gnu.org>
1913         * src/roff/troff/troff.man: Minor fixes.
1915 2000-04-22  Werner LEMBERG  <wl@gnu.org>
1917         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
1918         `.T' string register and the incompatible definition of the `.T'
1919         number register (compared to Unix troff).
1921         * man/groff_char.man: Add some missing characters.
1922         * font/devutf8/NOTES: Update.
1924 2000-04-21  Werner LEMBERG  <wl@gnu.org>
1926         * src/include/htmlindicate.h, src/include/lib.h,
1927         src/include/posix.h: Fix copyright.
1929         * src/include/Makefile.sub: Update.
1931 2000-04-20  Werner LEMBERG  <wl@gnu.org>
1933         * src/roff/troff/input.cc (input_char_description): Removing
1934         superfluous space char.
1936         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
1938         * doc/groff.texinfo: Document EBCDIC.
1940 2000-04-19  Werner LEMBERG  <wl@gnu.org>
1942         Introducing `shc' as the glyph name for the soft hyphen character.
1944         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
1945         font/devlatin1/R.proto: Use it.
1947         * NEWS: Updated.
1949 2000-04-18  Werner LEMBERG  <wl@gnu.org>
1951         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
1952         dependency on ASCII order.
1954 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
1956         * src/libs/libgroff/illegal.c: Added EBCDIC table.
1957         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
1959         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
1960         to increase portability.
1962 2000-04-15  Werner LEMBERG  <wl@gnu.org>
1964         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
1965         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
1966         the generic `\n' if under OS/390 Unix.
1968         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
1970         * configure: Regenerated.
1972 2000-04-14  Werner LEMBERG  <wl@gnu.org>
1974         * doc/groff.texinfo: More conversions to @Deffn.
1976 2000-04-12  Werner LEMBERG  <wl@gnu.org>
1978         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
1979         with `:'.
1981         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
1983 2000-04-10  Werner LEMBERG  <wl@gnu.org>
1985         * doc/groff.texinfo: More conversions to @Deffn.
1987 2000-04-08  Werner LEMBERG  <wl@gnu.org>
1989         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
1990         Updated to latest version (glibc 2.1.3).
1992 2000-04-07  Werner LEMBERG  <wl@gnu.org>
1994         * doc/Makefile (clean): Include more index files.
1995         Add rule texinfo->dvi.
1997 2000-04-05  Werner LEMBERG  <wl@gnu.org>
1999         * doc/groff.texinfo: Added new index `op' for operators.  More
2000         info on end of sentence characters.  More use of @Deffn.
2002 2000-03-30  Werner LEMBERG  <wl@gnu.org>
2004         * */*.man: Adding a note that a whitespace can be inserted between
2005         a command line option and its parameter -- we are using GNU getopt.
2007         * src/roff/groff/groff.man: Add example of `-m mandoc'.
2009 2000-03-28  Werner LEMBERG  <wl@gnu.org>
2011         Correct anachronism of calling the man macro file with `-man'
2012         instead of `-m man' etc.
2014         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
2015         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
2016         load tmac.<package>.
2018         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
2020         * NEWS: Updated.
2022         * doc/groff.texinfo: Updated.
2024         * tmac/groff_man.man: Copyright added.
2026 2000-03-27  Werner LEMBERG  <wl@gnu.org>
2028         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
2029         typeset the request resp. escape name with a tt font -- due to a
2030         bug in texinfo.tex it is necessary to use the `-e' switch with
2031         texi2dvi.
2033         Improving info about usage of groff units.
2035         Other minor fixes.
2037 2000-03-20  Werner LEMBERG  <wl@gnu.org>
2039         * doc/groff.texinfo: Added section about man macro package
2040         (I've basically taken groff_man.man).  Introducing new indices `ma'
2041         for macros/strings and `gl' for glyph names.  Other minor fixes.
2043         * tmac/groff_man.man: Fixed some typos.
2045 2000-03-19  Werner LEMBERG  <wl@gnu.org>
2047         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
2048         Other minor fixes.
2050         * doc/texinfo.tex: New file.
2052 2000-03-18  Werner LEMBERG  <wl@gnu.org>
2054         * doc/groff.texinfo: Improved section on number registers.  Other
2055         minor updates.
2057 2000-03-16  Werner LEMBERG  <wl@gnu.org>
2059         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
2060         synopsis.
2062         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
2063         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
2064         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
2065         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
2067         * src/preproc/grn/grn.man: Better synopsis; added copyright.
2069         * src/roff/grog/grog.man: Updated copyright date.
2071 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
2073         * configure.in: Added test for strdup.
2075         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
2076         is available.
2078         Replaced dynamic allocation of arrays `[...]' with `new' operator.
2080         Other minor fixes.
2082 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
2084         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
2086 2000-03-11  Werner LEMBERG  <wl@gnu.org>
2088         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
2089         compilers silent.
2090         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
2091         * src/include/lib.h: Remove some spaces.
2093 2000-03-10  Werner LEMBERG  <wl@gnu.org>
2095         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
2096         initializers from arguments (some compilers don't like this).
2098 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
2100         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
2101         used by pic and eqn to tell grohtml where the graphic regions start
2102         and end.
2103         * src/libs/libgroff/Makefile.sub: Use it.
2104         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
2105         graphic_start() and graphic_end() from htmlindicate.cc.
2107 2000-03-09  Werner LEMBERG  <wl@gnu.org>
2109         * tmac/tmac.safer: Will now work correctly in compatibility mode.
2110         * tmac/groff_man.man: More fixes.
2112 2000-03-08  Werner LEMBERG  <wl@gnu.org>
2114         * doc/Makefile: Added texput.log to the `clean' target.
2115         * doc/groff.texinfo: Added info about delimiters for escapes.
2117 2000-03-08  Bernd Warken  <bwarken@mayn.de>
2119         * src/preproc/pic/pic.man: Add info on conversion of pic images to
2120         other graphic formats.
2122 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
2124         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
2125         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
2126         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
2127         files.
2129 2000-03-07  Werner LEMBERG  <wl@gnu.org>
2131         * doc/groff.texinfo: Spelling fixes.
2133 2000-03-06  Werner LEMBERG  <wl@gnu.org>
2135         * tmac/groff_man.man: Completely revised to cover everything in
2136         tmac.an.
2138         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
2139         Other minor fixings.
2140         * src/roff/troff/env.cc (environment_copy): Improve error message and
2141         fix itoa->i_to_a.
2142         * src/roff/troff/TODO: Updated.
2144         * doc/Makefile: Bug fixes -- this is still provisional, though...
2146         * tmac/eqnrc: Small fixes.
2148 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
2150         Adding a request `evc' to copy environments.
2152         * src/roff/troff/env.cc (environment::copy, environment_copy):
2153         Implement it.
2154         * src/roff/troff/env.h: Add prototype.
2156 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
2158         Adding strsep() -- Solaris 8 doesn't have it.
2160         * configure.in: Test it.
2161         * src/devices/grolbp/lbp.cc: Add code.
2163 2000-03-05  Werner LEMBERG  <wl@gnu.org>
2165         * src/roff/troff/div.cc (macro_diversion::output,
2166         top_level_diversion::output): Fixing an incompatibility with
2167         original troff: \x'0' updates the .a register also.  Thanks to
2168         <Andries.Brouwer@cwi.nl> for pointing this out.
2169         * doc/groff.texinfo: Document it.
2171         * Makefile.in: Create Makefile.dep if necessary before calling the
2172         submake process to avoid warning about nonexistent file.
2174         * NEWS, PROJECTS: Updated.
2176 2000-03-04  Werner LEMBERG  <wl@gnu.org>
2178         * tmac/troffrc: Add tmac.lbp.
2180 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
2182         * tmac/tmac.lbp: New file.
2183         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
2184         command.
2186 2000-03-03  Werner LEMBERG  <wl@gnu.org>
2188         * Makefile.in: Fixing $(subdir).
2190         * README, NEWS: Small fixes.
2192         * test-groff: Adding path to grolbp.
2194         * configure.in: The (new) file src/xditview/Imakefile.in will be
2195         also configured -- it is now possible to build gxditview in a
2196         directory different from $srcdir.
2198 2000-03-02  Blake McBride  <blake@florida-software.com>
2200         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
2202         * MORE.STUFF: Added website of bell labs and info about plot2dev.
2204 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
2206         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
2207         files.
2209 2000-02-29  Werner LEMBERG  <wl@gnu.org>
2211         Adding GNU getopt to the groff distribution.
2213         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
2214         New files.
2215         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
2216         * aclocal.a4: Remove GROFF_GETOPT function.
2217         * configure.in, Makefile.in, PROBLEMS: Update.
2218         * src/include/lib.h: Replace getopt tests with getopt.h.
2219         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
2221         * doc/groff.texinfo: Further checking/updating.  Adding more index
2222         entries.
2224         * man/groff_out.man: Fix nroff mode activation (for emacs).
2225         * man/groff_font.man: Add missing ligature.
2227 2000-02-28  Werner LEMBERG  <wl@gnu.org>
2229         * doc/groff.texinfo: Further checking/updating.  Adding more index
2230         entries.
2232         * src/devices/grolbp/grolbp.man: Added a comment line at the
2233         beginning of the file (similar to shell scripts) which indicates
2234         that `tbl' should be used as a preprocessor.
2236 2000-02-27  Blake McBride  <blake@florida-software.com>
2238         Adapting groff to MS Visual C++ 6.0 compiler (tested with
2239         Windows NT 4.0).  Uses _MSC_VER define where necessary.
2241         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
2242         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
2243         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
2244         src/include/lib.h, src/libs/libgroff/errarg.cc,
2245         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
2246         src/preproc/refer/label.y, src/preproc/refer/label.cc,
2247         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
2248         src/roff/troff/div.cc, src/roff/troff/env.cc,
2249         src/roff/troff/input.cc, src/roff/troff/node.cc,
2250         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
2251         if_to_a() to avoid name clashes.
2252         * src/include/posix.h: Don't use unistd.h.
2253         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
2254         clause for integrating non-Unix xtmpfile() code.
2255         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
2256         structure; use "rt" for popen() in pipe_source(); add getpid()
2257         dummy function.
2258         * src/roff/troff/node.cc: Use special versions of popen() in
2259         real_output_file() and pclose() in ~real_output_file().
2261 2000-02-27  Werner LEMBERG  <wl@gnu.org>
2263         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
2264         LBP-8 series laser printers).  This code has been contributed by
2265         Francisco Andres Verdu <pandres@dragonet.es>.
2267         * src/devices/grolbp/*: The grolbp output device.
2268         * font/devlpb/*: The font description files.
2269         * Makefile.in: Add grolpb and devlbp subdirectories.
2271         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
2272         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
2273         typographic fixes.
2275         * doc/groff.texinfo: Further checking/updating.  Adding more index
2276         entries.
2278         * NEWS: Updated.
2280         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
2282         * man/groff_font.man: Adding info about obsolete DESC keywords.
2283         * src/devices/grolj4/grolj4.man: Documenting additional DESC
2284         keywords.
2286 2000-02-26  Werner LEMBERG  <wl@gnu.org>
2288         * src/preproc/grn/grn.man: Added info about the gremlin file format
2289         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
2291 2000-02-25  Werner LEMBERG  <wl@gnu.org>
2293         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
2294         friends to be non-integer.
2296         * src/preproc/grn/grn.man: Document it.
2298         * doc/groff.texinfo: Further checking/updating.  Adding more index
2299         entries.
2301 2000-02-24  Werner LEMBERG  <wl@gnu.org>
2303         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
2304         line thicknesses to be integer multiples of this value.
2306         * src/preproc/grn/grn.man: Commenting out the -s option -- the
2307         corresponding code doesn't work (yet).
2309         * doc/groff.texinfo: Further checking/updating.  Adding more index
2310         entries.
2312 2000-02-23  Werner LEMBERG  <wl@gnu.org>
2314         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
2315         specify line thickness instead of base units.  The new default
2316         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
2317         thick lines respectively.
2319         Removed unused variable `prevval'.
2321         * src/preproc/grn/grn.man: Updated.
2323 2000-02-22  Werner LEMBERG  <wl@gnu.org>
2325         * src/preproc/grn/main.cc: Slight formatting.
2327         * src/roff/groff/groff.man: Formatting fix.
2328         * src/preproc/grn/grn.man: Ditto.
2330         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
2332         * doc/groff.texinfo: Further checking/updating.
2334 2000-02-21  Werner LEMBERG  <wl@gnu.org>
2336         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
2338         * test-groff: Added grn subdir to path.
2340         * doc/groff.texinfo: Some restructing and other small improvements.
2342         * src/roff/groff/groff.cc (help): Fixed info string.
2344 2000-02-20  Werner LEMBERG  <wl@gnu.org>
2346         * doc/meref.me: Fix description of .GS request.
2348         * src/roff/troff/troff.man: Fixing typo.
2350         Adding the `grn' preprocessor for gremlin graphic files.
2352         * src/preproc/grn/*: This is the Berkeley distribution written by
2353         David Slattengren and Barry Roitblat, adapted to groff by Daniel
2354         Senderowicz and Werner Lemberg.
2356         * doc/grnexampl.{me,g}: A sample for grn.
2358         * Makefile.in: Added subdirectory entry for grn.
2360         * src/roff/groff/groff.cc: Added support for grn.  It can be now
2361         called with the switch `-g'.
2363         * src/roff/groff/groff.man: Updated.
2365         * src/roff/grog/grog.{man,pl,sh}: Updated.
2367         * NEWS: Updated.
2369 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
2371         * src/include/lib.h: Added xtmptemplate and made xtmpfile
2372         parametrically polymorphic.
2374         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
2375         and the alterations to xtmpfile.
2376         xtmpfile can be requested to return the filename created
2377         and asked not to unlink the temp file.  The default behaviour
2378         if parameters are absent is exactly the same as before.
2380 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
2382         A new request `length' is available which returns the length of a
2383         string in a number register:
2385         * src/roff/troff/input.cc (length_macro): Implement it.
2386         * src/roff/troff/input.cc (init_input_requests): Register it.
2388 2000-02-11  Werner LEMBERG  <wl@gnu.org>
2390         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
2391         of the `substring' request.
2393         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
2394         request.
2396         * src/roff/troff/TODO, NEWS: Updated.
2398 2000-02-09  Werner LEMBERG  <wl@gnu.org>
2400         * src/roff/groff/groff.man: Added an example.
2402 2000-02-06  Werner LEMBERG  <wl@gnu.org>
2404         I've considerably modified the directory structure of the
2405         distribution to get a more vertical layout.  For example, the number
2406         of top level directories has been reduced from 42 to 6.
2408         As a consequence, many changes, especially to the makefiles, were
2409         necessary:
2411         * The makefile variables `top_builddir' and `top_srcdir' have been
2412         introduced.  Virtually all relative paths have been replaced with
2413         absolute ones using these two variables.
2415         * Dependencies (in the files `Makefile.dep') are no longer part of
2416         the distribution.  Instead, they are created during a `make install'
2417         in the build directory.
2419         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
2420         make `top_srcdir' and `top_builddir' absolute.
2422         Some other changes:
2424         * Man pages no depend on the files `VERSION' and `REVISION'.
2426         * The added shell script `mkinstalldirs' will replace `mkdir' in
2427         almost all cases.
2429         * VERSION: Version number increased to 1.16.
2431 2000-02-04  Werner LEMBERG  <wl@gnu.org>
2433         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
2435         * Makefile.in: Removed $(tmac_m) since it is no longer needed
2436         (after an update of the mm stuff).
2438         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
2440 2000-02-03  Werner LEMBERG  <wl@gnu.org>
2442         The .psbb request will now also accept Mac PS images (i.e. using LF
2443         as the EOL character).
2445         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
2446         (with slight modifications).
2447         * troff/input.cc (do_ps_file): Use it.
2449         * test-groff: Add grohtml and grolj4 output devices to PATH.
2451 2000-01-30  Werner LEMBERG  <wl@gnu.org>
2453         * NEWS, MORE.STUFF: Updated.
2455 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
2457         Add the `srand' command to pic.
2459         * pic/lex.cc, pic/pic.y: Implement it.
2460         * pic/pic.man: Document it.
2461         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
2463 2000-01-30  Werner LEMBERG  <wl@gnu.org>
2465         Add a new request `.psbb'.  This does exactly what the external
2466         program psbb did.  It scans a PostScript image file for a
2467         %%BoundingBox comment and extracts the bounding box values (in
2468         PostScript units) which are then stored in the four new (read-only)
2469         number registers `llx', `lly', `urx', and `ury'.
2471         This will allow the usage of the .PSPIC macro without worrying
2472         about unsafe behaviour of groff, i.e., it will work without the
2473         `-U' switch of groff.
2475         * troff/input.cc: Implement it.
2476         * tmac/tmac.pspic: Use it.
2477         * troff/troff.man, grops/grops.man, NEWS: Document it.
2478         * psbb/*, Makefile.in: Remove it since it is no longer needed.
2480         This is bloody C code simply adapted from psbb.c!  Any improvements
2481         welcome.
2483 2000-01-29  Werner LEMBERG  <wl@gnu.org>
2485         * man/groff_font.man: Minor clarifications.
2487         * NEWS: Updated.
2489 2000-01-28  Werner LEMBERG  <wl@gnu.org>
2491         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
2493 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
2495         * man/groff_font.man: Brought up to date regarding tcommand
2496         extensions.
2497         * libgroff/font.cc: Handle everything after `--' as a comment
2498         in the font files.
2499         * devps/*: Added comment delimiter inside devps font files.
2501 2000-01-28  Werner LEMBERG  <wl@gnu.org>
2503         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
2504         \fC...\fP (which now works as expected).
2506         * troff/troff.man: Fix typo.
2508 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
2510         Completed the pass_filenames implementation in troff.
2512         * libdriver/input.cc: Will read the new `F' tcommand.
2513         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
2514         * troff/input.cc: Use it.
2516 2000-01-26  Werner LEMBERG  <wl@gnu.org>
2518         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
2519         font will now be updated even if an invalid font is selected.
2521 2000-01-24  Werner LEMBERG  <wl@gnu.org>
2523         * doc/homepage.ms: Updated for new tmac.arkup.
2525         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
2527         * tmac/tmac.arkup: Cleanup.
2529         Added `\&' to .HTML macro to `leave vertical mode', so to say.
2531         Removed obsolete .LINK macro completely.
2533         The macros .URL, .FTP, and .MAILTO now accept a third argument which
2534         will be immediately appended to the second argument (to be used with
2535         punctuation, for example).
2537         Disabled .CDFTP macro temporarily for security reasons.
2539         * tmac/groff_markup.man: Complete revision for latest changes in
2540         tmac.arkup -- note that it does not yet format correctly with
2541         grohtml :-(
2543 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
2545         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
2546         * devutf8/R.proto: Add mappings for wp, lh, rh.
2547         * devutf8/NOTES: Updated.
2549 2000-01-23  Werner LEMBERG  <wl@gnu.org>
2551         * doc/groff.texinfo: Updated version/copyright info.
2553 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
2555         Added support for two new directives in device descriptions:
2556         `pass_filenames' (to pass the input file name to the output device)
2557         and `use_charnames_in_special' (to support e.g. accented characters
2558         in the `X' request).
2560         * include/font.h, troff/charinfo.h: Declare it.
2562         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
2564         * devhtml/DESC: Use it.
2566         * troff/input.cc: New function encoded_char.
2568         * troff/token.h: Add test for `specialness'.
2570 2000-01-21  Werner LEMBERG  <wl@gnu.org>
2572         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
2573         mistake from the list of files to be installed.
2575 2000-01-18  Werner LEMBERG  <wl@gnu.org>
2577         * README: Added info how to apply patches.
2579 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
2581         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
2583 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2585         * troff/input.cc: Add support for troffrc-end.
2587         * tbl/main.cc: Altered to issue table-start and table-end special
2588         characters if using the html device.
2590         * devhtml/*: Modified font files to incorporate html encoding of
2591         characters.
2593         * tmac/groff_markup.man: New file documenting tmac.arkup.
2595         * tmac/troffrc-end: New file.  This is invoked after all user
2596         specified macros.  Currently used by the html device to include
2597         tmac.html.  Thus no need for users to specify -mhtml anymore.
2599         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
2600         (MAN7): Add groff_markup.man.
2602         * tmac/tmac.an, tmac/tmac.html: Small html updates.
2604         * tmac/troffrc: tmac.arkup will now be called for the html device.
2606         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
2607         extra device specific information about fonts.
2609         * doc/homepage.ms: New file.  It is an example how an HTML home page
2610         could look like with grohtml.
2612         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
2614 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
2616         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
2617         of Im, Re.
2619         * devutf8/NOTES: Updated.
2621 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
2623         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
2624         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
2625         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2626         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
2627         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
2628         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
2629         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
2630         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
2631         warnings.
2633         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
2635 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
2637         grolj4: Paper size will be searched case-insensitively.
2639         * include/lib.h: Add check for strcasecmp().
2640         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
2641         * configure.in: Check for strcasecmp().
2643 2000-01-11  Werner LEMBERG  <wl@gnu.org>
2645         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
2646         `REVISION'.
2648 2000-01-10  Werner LEMBERG  <wl@gnu.org>
2650         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
2651         revision scheme.
2653         Add a new read-only register, `.Y', which contains the groff
2654         revision.
2656         * troff/input.cc (init_input_requests): Define it.
2657         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
2658         * doc/groff.texinfo, troff/troff.man: Document it.
2660         * libgroff/Makefile.sub (version.cc): Add definition of
2661         `Version_string[]', consisting of `<major>.<minor>.<revision>'
2662         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
2663         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
2664         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
2665         troff/input.cc, pfbtops/pfbtops.c: Use it.
2667 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
2669         Add a revision scheme to the groff package.
2671         * REVISION: New file.
2672         * libgroff/Makefile.sub (version.cc): Use it to define
2673         `revision_string[]'.
2674         * grops/psrm.cc: Use revision_string (converted to an unsigned
2675         integer) in constructor of resource_manager.
2677 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
2679         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
2680         files.
2681         * Makefile.in (DEVDIRS): Add devutf8.
2682         * grotty/tty.cc: Include device.h.
2683         (glyph): Change type of `code' to `unsigned int'.
2684         (tty_printer): New field is_utf8.  Constructor takes device argument.
2685         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
2686         (tty_printer::add_char): Change type of first arg to `unsigned int'.
2687         (tty_printer::put_char): New function.
2688         (tty_printer::end_page): Use put_char() instead of ::putchar().
2689         (make_printer): Pass device to tty_printer constructor.
2690         * nroff.sh: Determine default device by calling 'locale'.  As a
2691         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
2692         Recognize UTF-8 locales.
2693         * tmac/eqnrc: Recognize utf8 like latin1.
2694         * tmac/troffrc: Device utf8 needs tmac.tty.
2696 2000-01-07  Werner LEMBERG  <wl@gnu.org>
2698         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
2700 2000-01-07  Paul Eggert  <eggert@twinsun.com>
2702         Add a new predefined writeable number register, `year',
2703         which contains the current year.
2705         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
2706         * tmac/tmac.s: Use it.
2707         * troff/input.cc (init_registers): Initialize it.
2709 2000-01-06  Werner LEMBERG  <wl@gnu.org>
2711         * PROBLEMS: Fixed typo.
2713 2000-01-04  Paul Eggert  <eggert@twinsun.com>
2715         * PROBLEMS: Add Y2k advice for the yr number register.
2717 2000-01-03  Paul Eggert  <eggert@twinsun.com>
2719         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
2721 2000-01-02  Werner LEMBERG  <wl@gnu.org>
2723         * tmac/tmac.arkup: Slight modification of macros to provide better
2724         appearance for non-HTML formats.
2726 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
2728         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
2729         does not automatically translate to malloc(n) on all OSes
2730         (e.g., SunOS) so do it explicitly.  Also, check the returned
2731         value.
2733 2000-01-01  Werner LEMBERG  <wl@gnu.org>
2735         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
2737         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
2738         expects this variable
2740 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
2742         * doc/Makefile: Added instructions to create HTML and text
2743         versions of some files.
2745 1999-12-31  Werner LEMBERG  <wl@gnu.org>
2747         * Updated INSTALL.gen.
2749         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
2750         better resp. correctly with non-HTML devices.
2752 Version 1.15 released
2753 =====================
2755 1999-12-28  Werner LEMBERG  <wl@gnu.org>
2757         * NEWS, VERSION: Changed to 1.15
2759 1999-12-27  Paul Eggert  <eggert@twinsun.com>
2761         * nroff/nroff.man: -S is safer, not safe.
2763         * groff/groff.cc (main): Use `safer', not `safe', in variable
2764         names.  This does not change the behavior.
2766         * troff/input.cc (main): Likewise.
2768         * nroff/nroff.sh: Likewise.
2770         * troff/input.cc (prepend_string): New function.
2771         (main): Prepend -msafer, so that we check macro libraries for
2772         safety.
2774         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
2776 Version 1.14 released
2777 =====================
2779 1999-12-26  Werner LEMBERG  <wl@gnu.org>
2781         * NEWS, VERSION: Changed to 1.14.
2783 1999-12-24  Werner LEMBERG  <wl@gnu.org>
2785         * refer/refer.cc: Fixing the last fix.
2787 Version 1.13 released
2788 =====================
2790 1999-12-23  Werner LEMBERG  <wl@gnu.org>
2792         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
2793         number disappear.
2795         * NEWS: Updated.
2797         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
2799         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
2800         document conventions, the version number must be a real.
2802 Version 1.12.1 released
2803 =======================
2805 1999-12-22  Werner LEMBERG  <wl@gnu.org>
2807         * VERSION: Changed to 1.12.1.
2809 1999-12-22  Alan Rooks  <arooks@istar.ca>
2811         * refer/refer.cc (do_file): Slight modification to satisfy the
2812         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
2813         UnixWare 7.1.
2815 1999-12-20  Werner LEMBERG  <wl@gnu.org>
2817         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
2818         notices.
2820         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
2821         list of unsafe requests.
2823         * pic/pic.man: Fixed a typo.
2825         * man/groff_out.man: Fixed a typo.
2827 1999-12-18  Werner LEMBERG  <wl@gnu.org>
2829         * Makefile.in: Doc fixes.
2831 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
2833         * groff/groff.cc: Missing `U' option added to getopt().
2835         * troff/troff.man: Missing `U' option added to synopsis.
2837 Version 1.12 released
2838 =====================
2840 1999-12-14  Werner LEMBERG  <wl@gnu.org>
2842         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
2843         to the synopsis.
2845         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
2846         with the more appropriate terms `safer' and `unsafe'.
2848         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
2849         sys_nerr and sys_errlist[].
2851         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
2853         * pic/pic.y, pic/pic.cc: Added check for fmod().
2855 1999-12-13  Werner LEMBERG  <wl@gnu.org>
2857         * VERSION: Changed to 1.12.
2859         Here some patches from various sources; most of them taken from
2860         the Debian distribution.
2862         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
2863         tmac/Makefile.sub: New files copied directly from the NetBSD
2864         distribution.  Probably, some additional adaptation later on is
2865         necessary...
2867         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
2868         of unsafe requests.
2870         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
2871         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
2872         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
2873         (`-S') is now the default.
2875         * README, NEWS: Updated.
2877 1999-12-09  Werner LEMBERG  <wl@gnu.org>
2879         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
2881         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
2883 1999-12-06  Werner LEMBERG  <wl@gnu.org>
2885         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
2886         grief than relief today.  Additionally, it is against the GNU
2887         coding standards.
2889         * configure: Recreated.
2891 1999-12-05  Werner LEMBERG  <wl@gnu.org>
2893         * configure.in: Added GROFF_LIBM.
2895         * configure: Recreated.
2897         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
2898         necessary.
2900         * Makefile.in: Added definition of $(LIBM).
2902         * Makefile.comm (LIBM): Removed.
2904         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
2906 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
2908         * doc/Makefile: Added rule for generation pic.html.
2910         (clean): Files produced by grohtml will be removed also.
2912         * doc/pic.ms: Small fix.
2914         * tmac/tmac.html: Fixed suppression of headers.
2916 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
2918         * tmac/tmac.html: Fixing horizontal arrows.
2920         Turning off hyphenation.
2922         * tmac/tmac.an: Improved support for grohtml; better indentation,
2923         no footers/headers.
2925 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
2927         * tmac/tmac.arkup: Added CDFTP macro
2929         * tmac/tmac.html: All headers are turned off for ms, me, and mm
2930         macros.
2932         * tmac/troffrc: Some additions for HTML stuff.
2934 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
2936         * tmac/tmac.html: Small changes.
2938 1999-09-26  Werner LEMBERG  <wl@gnu.org>
2940         * doc/groff.texinfo: Minor fixes.
2942 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
2944         * devhtml/TR: Changed spacewidth to 3.
2946         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
2948         * tmac/tmac.html: Moved markup macros to tmap.arkup.
2950         * tmac/tmac.arkup: New file.
2952         * grohtml/ChangeLog: New file.
2954 1999-09-16  Werner LEMBERG  <wl@gnu.org>
2956         * doc/groff.texinfo (Common Features): Added Copying chapter.
2957         Changed format to @smallbook.
2959 1999-09-15  Werner LEMBERG  <wl@gnu.org>
2961         * NEWS: Added info about groff.texinfo.
2963         * doc/groff.texinfo: Will now compile (using texi2dvi) without
2964         warning messages.
2966 1999-09-14  Werner LEMBERG  <wl@gnu.org>
2968         * groff/groff.man: More updates.
2970 1999-09-13  Werner LEMBERG  <wl@gnu.org>
2972         * doc/groff.texinfo: New file.  This manual is still very
2973         rudimentary.  It has been originally contributed by Trent
2974         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
2975         additions by me.
2977         * INSTALL: Added information about the `doc' subdir
2979         * troff/troff.man: Minor fixes.
2981         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
2982         reordered options.
2984         * troff/input.cc (usage): Added missing `-ffam' to usage message.
2986         * Makefile.in (dist): groff-$(version).tar.gz must be removed
2987         also, otherwise it is included itself in another call of `make
2988         dist'.
2990         * groff/groff.cc (synopsis): Removed superfluous space.
2992         * PROJECTS, PROBLEMS, NEWS: Updated.
2994         * VERSION: Updated to 1.12beta.
2996         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
2998         * README: Updated: Included documentation about CVS repository,
2999         mailing lists, and daily snapshots.
3001         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
3003 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
3005         * tmac/tmac.an: If the tag didn't fit into the space that the
3006         macro `TP' specifies, the rest of the tag went into the space for
3007         the next line.
3009 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
3011         * grolj4/lj4.cc: Added duplex printing (option `-d').
3013         * grolj4/grolj4.man: Document duplex printing.
3015 1999-09-12  Werner LEMBERG  <wl@gnu.org>
3017         * doc/Makefile (pic.ps): Fixed rule which caused problems with
3018         non-GNUish sed programs.
3020         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
3021         definition.
3023         * configure.in (LIBS): Added `-lc'
3025         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
3027         * pic/tex.cc (solid_arc): Casting M_PI to double.
3029         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
3031         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
3032         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
3033         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
3035         * groff/groff_man.man: New file.  This manual page was originally
3036         written for the Debian GNU/Linux system by Susan G. Kleinmann
3037         <sgk@debian.org>.
3039         * eqn/list.cc (list_box::compute_metrics,
3040         list_box::compute_sublist_width): Removed variable declaration to
3041         avoid shadowing warnings.
3043         * grops/psrm.cc (resource_manager::process_file): Ditto.
3045         * tfmtodit/tfmtodit.cc (main): Ditto.
3047         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
3048         to avoid shadowing warnings.
3050         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
3051         shadowing loop variable.
3053         * groff/groff.man, troff/troff.man: Added doc about grohtml.
3055 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
3057         New grohtml frontend to convert groff input to html.
3059         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
3061         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
3063         * tmac/eqnrc: Added html device.
3065         * tmac/tmac.html: New file.
3067         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
3068         (troff_output::start_picture, troff_output::finish_picture),
3069         tbl/main.cc (process_input_file):
3070         Surrounded output with `graphics_start' and `graphics_end' so that
3071         the html driver can identify non-text portions.
3073         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
3074         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
3075         grotty/tty.ps (tty_printer::set_char): Additional parameter
3076         `name'.
3078         * include/printer.h: Class printer: New function
3079         set_char_and_width; new variables (is_char_named, is_named_set,
3080         named_command, named_char_s, named_char_n) to hold information
3081         about named characters -- needed by the html driver.
3083         * libdriver/printer.cc (printer::set_ascii_char,
3084         printer::set_special_char): Use set_char_and_width.
3086         * devhtml/*: New device files for html driver.
3088         * grohtml/*: New driver grohtml.
3090 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
3092         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
3093         default strings.
3095 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
3097         * libgroff/string.cc (search): Small fix to test against NULL
3098         pointer.
3100 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
3102         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
3103         \b'abc') were stacked in reverse order when processed in a
3104         diversion.
3106         * troff/node.h: Added `*last' to struct `node' to make the above
3107         fix work.
3109         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
3110         The default scale for the 'f' and 't' graphics functions were 'm'
3111         rather than 'u' (i.e., no scaling).
3113 1999-09-11  Peter Miller  <peterm@jna.com.au>
3115         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
3116         do_file), soelim/soelim.man: Added `-I file' option to soelim,
3117         defining include paths.
3119         * soelim/soelim.cc (include_path_append): New function.
3121 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
3123         * tbl/main.cc (process_options): Unix (at least Documenter's
3124         Workbench) tbl allows arbitrary non-alpha characters between
3125         options.
3127 1999-09-11  Paul Eggert  <eggert@twinsun.com>
3129         Y2k fixes.  Don't assume that the current year precedes 2000.
3131         * doc/meref.me: Add \n(y2, \n(y4.
3133         * tmac/doc-common (Yr): New number register.
3134         (Dd): Don't assume current year precedes 2000.
3136         * tmac/tmac.e (td): Likewise.
3137         (y2, y4): New number registers.
3139         * pic/pic.man: Update reference for pic paper to May, 1991
3140         version.
3142 1999-09-11  Werner LEMBERG  <wl@gnu.org>
3144         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3145         Removed quotation marks which prevented correct expansion of
3146         $(tmac_wrap).
3148         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
3150 1999-09-10  Werner LEMBERG  <wl@gnu.org>
3152         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
3153         `config.cache'.
3155         * Removed configure.old.
3157 1999-08-31  Werner LEMBERG  <wl@gnu.org>
3159         * VERSION: Updated to 1.11.1
3161 1999-05-27  Werner LEMBERG  <wl@gnu.org>
3163         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
3165         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3166         added quotations around $(tmac_wrap) to avoid syntax error if
3167         variable is empty.
3169         * configure: Newly generated using autoconf 2.13.
3171         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
3173 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
3175         * README, PROJECTS, NEWS, INSTALL, VERSION, 
3176         doc/Makefile. doc/pic.ms, groff/groff.man:
3177         Prepare for 1.11 release.  No code changes.
3178         Documentation for pic added (doc/pic.ms).
3180 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
3182         * Version 1.10 released.
3184 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
3186         * afmtodit/afmtodit.pl: Avoid comment on first line.
3188 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
3190         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
3191         * configure.in: Call it.
3193         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
3194         (distfiles): Doesn't depend on config.log or config.cache.
3196 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
3198         * grog/grog.sh: Use print "" rather than print in END rule.
3200 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
3202         * tbl/main.cc (process_data): Don't give error for excess data
3203         entries that are comments.
3205 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
3207         * tbl/main.cc (process_data): Fix case where new for-scope rules
3208         silently change meaning of code.
3210 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
3212         * troff/env.cc (hyphenate): Loop over all consecutive sequences
3213         of non-zero hyphenation codes.
3215 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
3217         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
3219 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
3221         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
3223 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
3225         * tmac/tmac.andoc: Make it work in compatibility mode.
3227         * refer/token.h (token_info::is_range_sep): New function.
3228         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
3229         * refer/ref.cc (reference::output): More sophisticated check for
3230         multiple pages.
3232         * devps/prologue.ps (MANUAL): New procedure.
3233         * grops/ps.cc (main): New -m option.
3234         (usage): Include -m.
3235         (ps_printer::~ps_printer): Implement -m.
3237         * aclocal.m4 (GROFF_G): New macro.
3238         * configure.in: Call it.
3239         * Makefile.in (g): Provided by configure.
3241         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
3243         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
3244         translations.
3246         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
3247         (tmac_m, tmac_s): Deleted.
3248         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
3249         tmac_s_prefix): New variables.
3250         (MDEFINES): Change accordingly.
3251         * Makefile.comm (.man.n): Use new TMAC_* variables.
3252         * configure.in (GROFF_TMAC): Call.
3253         * aclocal.m4 (GROFF_TMAC): Define.
3254         * tmac/Makefile.sub (stamp_wrap): New target.
3255         (install_data, uninstall_sub): Handle macro wrapping.
3257 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
3259         * tbl/main.cc (main): Ignore -T option.
3261 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
3263         * devlj4/generate/special.map: Add definition of \(nb.
3265         * tmac/tmac.dvi: Add definition of \(nb.
3267         * troff/dictionary.c (dictionary::dictionary): association::v gets
3268         initialized by association::association.
3270         * tmac/Makefile.sub: Avoid using temporary files when installing.
3272         * troff/env.cc (environment::set_font): Make bad font number a
3273         warning.
3275         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
3277         * Makefile.in (datadir): Use share rather than lib.
3279         * groff/groff.cc (basename): Rename to xbasename.
3281 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
3283         * Makefile (CCLIBS): Don't use.
3284         * Makefile.ccpg: Likewise.
3286         * acgroff.m4: Rename to...
3287         * aclocal.m4: Modify extensively for autoconf 2.
3288         * configure.in: Likewise.
3289         * Makefile.in: Likewise.
3291         * groff/pipeline.c (const): Declare as empty if __STDC__ not
3292         defined.
3293         (xstrsignal): Check for definition of NSIG. Conditionalize
3294         on SYS_SIGLIST_DECLARED.  Make return type const.
3296 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
3298         * troff/input.cc (interpolate_macro): Rephrase missing space
3299         warning.
3301 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
3303         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
3304         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
3305         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
3306         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3307         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
3308         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
3309         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
3310         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
3311         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
3312         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
3313         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
3314         Fix 'for' scoping.
3316 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
3318         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
3319         string_iterator.
3320         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
3321         file.
3322         (macro_iterator::macro_iterator): Add additional argument.
3324 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
3326         * troff/div.cc (vertical_size::vertical_size): In place of integer
3327         specifying line spacing use cunits specifying post vertical
3328         space.
3329         (macro_diversion::output, top_level_diversion::output): Likewise.
3330         * troff/div.h: Change declarations accordingly.
3331         * troff/env.cc (pending_output_line): Replace ls field by post_vs
3332         field.
3333         (pending_output_line::pending_output_line,
3334         pending_output_line::output, environment::output,
3335         environment::output_line, environment::output_title,
3336         environment::hyphenate_line):  In place of
3337         integer specifying line spacing use cunits specifying post vertical
3338         space.
3339         (environment::environment): Add post_vertical_spacing and
3340         prev_post_vertical_spacing arguments.
3341         (environment::get_post_vertical_spacing): New function.
3342         (environment::total_post_vertical_spacing): New function.
3343         (environment::post_vertical_spacing): New function.
3344         (init_env_requests): Initialize pvs request and .pvs register.
3345         * troff/env.h: Change declarations.
3347 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
3349         * tmac/tmac.pspic: Immediately remove the temporary file.
3351 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
3353         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
3354         height is specified.
3356 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
3358         * tbl/table.c (struct vertical rule, class table_entry): Use int
3359         not short for start_row and end_row.
3361 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
3363         * troff/input.cc (trapping_blank_line, blank_line_macro): New
3364         functions.
3365         (diverted_space_node::reread, process_input_stack): Call
3366         trapping_blank_line() rather than blank_line().
3367         (init_input_requests): Bind "blm" to blank_line_macro().
3369         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
3371 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
3373         * troff/env.cc (environment::possibly_break_line): Require that
3374         width total excluding width of final space node be greater than
3375         the target text length.
3377 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
3379         * troff/node.cc (kern_pair_node::vertical_extent): New function.
3381 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
3383         * troff/node.cc (charinfo_node): New class.
3384         (glyph_node, composite_node): Derive from charinfo_node.  Change
3385         member functions accordingly.
3387 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
3389         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
3391 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
3393         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
3395         * devps/generate/textmap (notsubset): Add.
3397         * tmac/tmac.a4: New file.
3399 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
3401         * pic/main.cc (had_parse_error): New variable.
3402         (do_picture, do_whole_file): Set had_parse_error if yyparse()
3403         returns non-zero.
3404         (main): Return 1 if had_parse_error is true.
3406 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
3408         * grolj4/lj4.cc (main): Avoid use of strtoul.
3410 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
3412         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
3413         iso_8859_1 or $LESSCHARSET is latin1.
3415 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
3417         * hpftodit: New directory.
3418         * Makefile.in (CCPROGDIRS): Add hpftodit.
3419         * devlj4/generate: New directory.
3421 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
3423         * configure.in: Don't use AC_VFORK.
3424         * groff/pipeline.c (run_pipeline): Use fork() always.
3426 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
3428         * grops/ps.cc (main): Use %1 not %s in error message for -w.
3430         * Makefile.in (CCPROGDIRS): Add grolj4.
3431         (DEVDIRS): Add devlj4.
3432         * grolj4, devlj4: New directories.
3433         * tmac/troffrc: Handle lj4.
3434         * tmac/tmac.lj4: New file.
3436 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
3438         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
3440 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
3442         * troff/input.cc (do_if_request): At end of second string, switch
3443         environments before getting next token.
3445 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
3447         * devps/psstrip.sed: Split rule that strips whitespace on either
3448         side of delimiters.
3450 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
3452         * troff/node.h (font_family::make_definition): Add return value to
3453         declaration.  * troff/symbol.h (symbol::operator==,
3454         symbol::operator!=): Likewise.
3456 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
3458         * groff/groff.cc (main, help, synopsis): Handle -S.
3459         (possible_command::insert_arg): New function.
3461         * tmac/tmac.safer: New file.
3462         * tmac/msafer.man: New file.
3463         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
3465 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
3467         * pic/pic.h, pic/main.cc (safer_flag): New variable.
3468         * pic/pic.y (placeless_element): Avoid unsafe operations if
3469         `safer_flag' is set.
3470         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
3472 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
3474         * eqn/lex.cc (get_token): Put call to add_context() in block to
3475         work around Sun C++ 4.0 bug.
3477         * include/stringclass.h (operator +): Use ?: instead of `if' to
3478         work around Sun C++ 4.0 bug.
3480 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
3482         * tbl/main.cc (process_format): Accept - as a synonym for the _
3483         key letter.
3485         * libbib/index.cc (minus_one): Don't declare as const.
3487 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
3489         * troff/input.cc (get_char_for_escape_name): Push back a newline.
3491 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
3493         * troff/input.cc (write_macro_request): New function.
3494         (init_input_requests): Bind write_macro_request to writem.
3496 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
3498         * tmac/tmac.s (@EN): Turn filling back on even if there was no
3499         equation.
3501         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
3503         * tmac/tmac.s (@TS): Renamed from TS.
3504         (TS): Call LP then TS again.
3505         (cov*ab-init): Alias @TS to TS.
3507         * tmac/tmac.s: Allow QP or RS to initialize.
3509         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
3510         Move initializations of PS and LL here.
3511         (par@init): Don't initialize HY.  Avoid changing environment 0.
3512         (par*env-init): Don't all par@reset.
3514 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
3516         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
3518 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
3520         * Makefile.in (MDEFINES): Add LDFLAGS.
3521         (LDFLAGS): Add definition line.
3523 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
3525         * troff/input.cc (get_optional_char): Split off error check into...
3526         (check_missing_character): New function.
3527         * troff/token.h: Declare it.
3528         * troff/env.cc (margin_character): Don't call get_optional_char.
3529         Only call tok.next() after making the node.
3531         * include/lib.h (getopt): Make 2nd argument char *const *.
3533 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
3535         * nroff/conftest.sh: Deleted.
3537 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
3539         * pic/make-dos-dist: Deleted.
3541 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
3543         * devps/psstrip.sed: Strip comments before stripping trailing
3544         white space.
3546 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
3548         * Version 1.09 released.
3550 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
3552         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
3554 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
3556         * libgroff/font.cc (font::load_desc): Fix typo in error message.
3558 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
3560         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
3561         about returning without a value.
3563         * troff/charinfo.h (charinfo::get_special_translation): Cast
3564         TRANSLATE_NONE to int.
3566         * refer/token.cc (lookup_token, store_token): Remove bogus loop
3567         test.  Fix test so that it works with n unsigned.
3569         * pic/pic.y (defaults_table): Fully bracket initializer.
3570         * pic/lex.cc (lookup_keyword): Likewise.
3571         * eqn/lex.cc (token_table, def_table): Likewise.
3572         * eqn/box.cc (param_table): Likewise.
3573         * troff/input.cc (warning_table): Likewise.
3574         * libgroff/font.cc (table): Likewise.
3575         * grops/ps.cc (ps_printer::special): Likewise.
3576         * grops/psrm.cc (resource_manager::process_file): Likewise.
3577         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
3578         * refer/command.cc (command_table): Likewise.
3579         * addftinfo/addftinfo.cc (param_table): Likewise.
3581         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
3582         about temp's being unused.
3583         (unused): New function.
3585         * groff/pipeline.cc: Declare c_fatal.
3587         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
3588         uchar.
3590         * libbib/index.cc (index_search_item::load): Prevent compiler
3591         warnings about fd_closer's being unused.
3592         (unused): New function.
3594 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
3596         * troff/input.cc (copy_mode_error): Make `prefix' static.
3597         Fix typo.
3599         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
3600         defined.
3601         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
3602         HAVE_CC_OSFCN_H and modify accordingly.
3604         * troff/input.cc (init_charset_table): radicalex overlaps
3605         horizontally.
3607         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
3608         udodo!hans@relay.NL.net).
3609         * groff/configure.in: Call it.
3611         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
3612         * groff/configure.in: Call it.
3613         * include/lib.h: Conditionalize declaration of pclose.
3615         * troff/div.cc (last_page_number): New global variable.
3616         (top_level_diversion::begin_page): Exit if we just printed the
3617         last page.
3618         * troff/div.h (last_page_number): Declare it.
3619         * troff/input.cc (parse_output_page_list): Set last_page_number.
3621         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
3622         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
3623         tmac/tmac.X: Likewise.
3624         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
3625         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
3627 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
3629         * tmac/doc-ditroff (hK): Remove groff specific code which
3630         prevented page-breaks between separate manual entries.  If this is
3631         the first page, don't set the page number to 1.
3633         * acgroff.m4 (GROFF_POSIX): New macro.
3634         * configure.in: Use it.
3636         * troff/node.cc (class real_output_file,
3637         real_output_file::real_output_file,
3638         real_output_file::~real_output_file): Conditionalize use of
3639         popen/pclose on POPEN_MISSING.
3640         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
3641         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
3642         (pipe_source): Similarily.
3644         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
3646         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
3647         presence of declarations by trying to compile example with
3648         conflicting declarations.  (gcc only gives a warning for missing
3649         declarations.)
3651 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
3653         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
3654         (from Ulrich Lauther).
3656 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
3658         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
3660 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
3662         * indxbib/indxbib.cc (write_hash_table): Add code for case where
3663         pointers and ints have different sizes.
3665 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
3667         * tmac/tmac.s (par*env-init): Call par@reset.
3669 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
3671         * tmac/tmac.s (@IP): Switch to a new environment when diverting
3672         tag.
3673         (par*push-tag-env, par*pop-tag-env): New macros.
3675 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
3677         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
3678         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
3680         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
3681         comment.  Include <time.h>.
3683 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
3685         * grops/ps.cc (is_small_h, is_small_v): Deleted.
3686         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
3687         lines.
3689 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
3691         * troff/input.cc (read_request): Only print a prompt if reading
3692         from the terminal.  Also clearerr on EOF if reading from the
3693         terminal.  Declare isatty.
3695 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
3697         * refer/label.y: Rename map_t to map_func and extractor_t to
3698         extractor_func.
3700 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
3702         * include/assert.h: Don't use volatile.
3703         * libgroff/assert.cc: Likewise.
3705 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
3707         * troff/input.cc (abort_request): Look at character in tok before
3708         calling get_copy().
3710 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
3712         * troff/troff.h (NO_RETURN): Deleted.
3713         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
3714         * troff/input.cc (exit_troff): Likewise
3716         * Makefile.in: Remove `Making ...' messages since GNU make now
3717         gives these. 
3719         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
3721 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
3723         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
3724         to constant 1 inch.
3726 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
3728         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
3730 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
3732         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
3733         MARK_REG if there was no left delimiter.
3735 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
3737         * pic/troff.cc (troff_output::text): Set line thickness to
3738         relative before outputting text.
3740         * tmac/tmac.e (@k): Don't zero ?T.
3741         ((z): Likewise.
3743 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
3745         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
3747 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
3749         * troff/input.cc (decode_args): Warn about unquoted tabs (from
3750         Paul Eggert).
3752 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
3754         * troff/input.cc (ignoring): New variable.
3755         (ignore): Set ignoring during call to do_define_macro.
3756         (do_define_macro): Clear ignoring before interpolating terminating
3757         macro.
3758         (copy_mode_error): New function.
3759         (get_char_for_escape_name, read_long_escape_name,
3760         interpolate_arg): Use copy_mode_error.
3761         (warning_table): Add WARN_IG.
3762         * troff/troff.h (WARN_IG): Declare.
3763         (WARN_TOTAL): Change accordingly.
3765         * groff/pipeline.c (strsignal): Rename to xstrsignal.
3766         * groff/groff.cc (strsignal): Delete declaration.
3768 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
3770         * troff/div.cc (page_offset): Use 'm' as default scaling.
3772 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
3774         * nroff/nroff.sh: Ignore -u.
3776 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
3778         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
3780 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
3782         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
3783         drawing box.
3784         (B2): With -Tascii, leave additional vertical space before
3785         and after. Ensure that the left and right indent is restored to
3786         what it was even if the point size changes.  Don't call
3787         par@finish. Change the indent, line length and title length
3788         directly.  With -Tascii, make the width of the box 1n less.
3789         (B1): Remember 1n at the current point size.  Don't call
3790         par@reset.  Change the indent, line length and title length
3791         directly.  Ensure that the temporary indent is preserved.
3792         (par*box-mark-top): Turn off no spacing mode.
3794 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
3796         * Makefile.in (dist): Use .gz suffix.
3798 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
3800         * troff/input.cc (main): Add return 0.
3801         * pic/main.cc (main): Use return instead of exit.
3802         * tbl/main.cc (main): Likewise.
3803         * eqn/main.cc (main): Likewise.
3804         * grops/ps.cc (main): Likewise.
3805         * grotty/tty.cc (main): Likewise.
3806         * groff/groff.cc (main): Likewise.
3807         * grodvi/dvi.cc (main): Likewise.
3808         * refer/refer.cc (main): Likewise.
3809         * indxbib/indxbib.cc (main): Likewise.
3810         * lkbib/lkbib.cc (main): Likewise.
3811         * soelim/soelim.cc (main): Likewise.
3812         * addftinfo/addftinfo.cc (main): Likewise.
3813         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
3814         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
3816         * troff/token.h (process_input_stack): Don't declare as static.
3817         * troff/input.cc: Likewise.
3819         * troff/node.c (invalidate_fontno): Make it a static member of
3820         class font_family.  Change callers.
3821         * troff/node.c: Change declaration.
3823         * tbl/main.cc (struct input_entry_format): Add explicit public
3824         specifier.
3825         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
3826         struct double_hline_stuff): Likewise.
3827         * tbl/table.h (struct entry_format): Likewise.
3828         * pic/object.h (struct saved_state): Likewise.
3830         * include/stringclass.h: Add forward declarations of friend
3831         functions that are later declared as inline.  Don't include inline
3832         specifier in friend declaration.
3834         * libgroff/lib.h: Declare popen and pclose.
3835         * acgroff.m4 (GROFF_POPEN): New macro.
3836         * configure.in: Call it.
3838         * include/lib.h (PI): New constant. Undef first if necessary.
3839         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
3840         * grops/ps.cc (degrees, radians): Likewise.
3841         * libgroff/font.cc (font::get_skew): Likewise.
3843         * grops/ps.cc (is_ascii): New function.
3844         (ps_output::put_string): Use is_ascii.  Use csprint rather than
3845         isprint.
3846         (ps_printer::define_encoding): Use csspace.
3847         * libgroff/strtol.c (ISASCII): New macro.
3848         (strtol): Cast arguments to is*() and tolower() to unsigned char.
3849         Use ISASCII rather than isascii.
3850         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
3851         * libgroff/cset.cc: Likewise.
3852         * libdriver/input.cc: Include cset.h.
3853         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
3854         than isdigit().
3856         * refer/refer.cc (main): Use %ld rather than %d for longs.
3858         * libbib/index.cc (index_search_item_iterator::get_tag): Use
3859         S_ISREG macro.
3861         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
3863 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
3865         * troff/input.cc (hyphenation_code): Skip white space between
3866         char/code pairs.
3868 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
3870         * tbl/table.h (table::entry_list_tailp): New member.
3871         (table::table): Initialize it.
3872         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
3873         behaviour.
3875 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
3877         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
3878         with negative horizontal positions. Remove casts of glyph::hpos to
3879         int.
3880         (USHRT_MAX): Delete definition.
3881         (SHRT_MAX, SHRT_MIN): New definitions.
3882         (glyph::hpos): Change type to short.
3883         (tty_printer::end_page): Output multiple backspaces if necessary.
3884          Remove casts of glyph::hpos to int.
3885         
3886 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
3888         * tmac/tmac.s (@RT): New definition.
3890 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
3892         * refer/refer.cc (do_file): Make sure current_filename is set when
3893         filename is "-".
3895         * pic/common.cc (common_output::dot_line): Handle zero length
3896         lines.
3898 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
3900         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
3901         (par@init): Initialize \n[HY].
3903 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
3905         * troff/dictionary.cc (dictionary::remove): Continue when
3906         r < j < i.
3908 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
3910         * Makefile.com (.y.cc): Avoid ending up with two versions of
3911         $(YTABH).
3913 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
3915         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
3916         (\(,C): Likewise.  Also fix typo.
3918 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
3920         * lib.h: Delete extraneous semi-colon.
3922         * Add pso request: `so' from a pipe.
3923         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
3924         (file_iterator::close): New function.
3925         (file_iterator::~file_iterator, file_iterator::next_file): Use
3926         file_iterator::close.
3927         (file_iterator::backtrace): Say `process' rather than `file' when
3928         the stream is popened.
3929         (pipe_source): New function.
3930         (init_input_requests): Bind ".pso" to pipe_source.
3932 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
3934         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
3936         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
3937         digits in lower case.
3939 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
3941         * Version 1.08 released.
3943         * Makefile.in (dist): Insert || true after ln -s commands that
3944         might fail.
3946         * mm: Update to mm 1.16.
3948         * acgroff.m4 (GROFF_CSH_HACK): New macro.
3949         * configure.in: Call GROFF_CSH_HACK.  Substitute for
3950         SH_SCRIPT_SED_CMD.
3951         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
3952         MDEFINES.
3953         * nroff/Makefile.sub (nroff): New target.
3954         (install_data): Install nroff.
3955         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
3956         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
3958 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
3960         * eqn/Makefile.sub (neqn): Add chmod +x.
3962         * grog/Makefile.sub (grog): Remove spurious semi-colon.
3964 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
3966         * troff/input.cc (string_iterator::string_iterator()): Initialize
3967         lineno and count.
3969 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
3971         * troff/div.cc (macro_diversion::space,
3972         top_level_diversion::space): Don't set high_water_mark.
3973         (macro_diversion::output, top_level_diversion::output): Don't
3974         include post line space in high water mark.
3976 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
3978         * eqn/eqn.y: Don't define YYDEBUG.
3979         * pic/pic.y: Likewise.
3981 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
3983         * tmac/tmac.e ([3): Add space after comma following editors.
3984         Change double spaces to single spaces.
3985         ([4): Change double spaces to single spaces.
3987         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
3988         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
3989         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
3990         after %!PS-Adobe- (for Newsprint).
3992         * troff/div.cc (top_level_diversion::begin_page): When
3993         before_first_page is 1, set page_number to 1.
3995 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
3997         * eqn/box.cc (box::top_level): Protect equation with \&.
3999 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
4001         * groff/groff.cc (possible_command::set_name): Delete old name.
4003         * groff/groff.cc (possible_command::~possible_command): Use
4004         a_delete.
4006         * troff/node.cc (troff_output_file::begun_page): New member.
4007         (troff_output_file::troff_output_file): Initialize it.
4008         (troff_output_file::really_begin_page): Only output V command if a
4009         page has been begun.
4011         * pic/pic.y (placeless_element): Delete argument to PRINT after
4012         use.
4014 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
4016         * Make wrapman work.
4017         * troff/div.h (class top_level_diversion): Replace
4018         first_page_begun by before_first_page (with opposite sense).
4019         * Change first_page_begun to before_first_page inverting sense.
4020         * troff/div.cc (class nl_reg): New class.
4021         (init_div_requests): Use class nl_reg for \n(nl.
4022         (top_level_diversion::begin_page): Don't call
4023         output_file::begin_page if before_first_page is 2;
4024         reset before_first_page afterwards.  If have_next_page_number is
4025         false, then always increment page_number.
4026         * tmac/tmac.an: Set traps within TH rather than at the top-level.
4027         Restore compatibility mode after loading, and then disable
4028         compatibility mode in TH.
4030 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
4032         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
4033         past last line.
4034         * troff/node.h (output_file::trailer): Declare.
4035         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
4036         * troff/node.cc (output_file::trailer): New function.
4037         (troff_output_file::~troff_output_file): Move most code into...
4038         (troff_output_file::trailer): New function.
4039         (class troff_output_file): Delete page_length member. Declare
4040         trailer().
4041         (troff_output_file::really_begin_page): Use current page length
4042         for final V command.
4044         * tbl/main.cc (struct options): New decimal_point_char member.
4045         (options::options): Initialize this.
4046         (process_options): Implement decimalpoint option.
4047         (process_data): Pass decimal_point_char option to table::table.
4048         * tbl/table.h (class table): New decimal_point_char member.
4049         (table::table): Add additional argument.
4050         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
4051         second argument specifying decimal point character.  Use this
4052         instead of '.'.
4053         (table::table): Initialize decimal_point_char.
4054         (table::add_entry): Change call to find_dot.
4056         * troff/input.cc (get_copy, token::next): Implement \V.
4057         (interpolate_environment_variable): New function.
4059 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
4061         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
4062         * pic/pic.y: Likewise.
4064         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
4065         Add casts to int.
4066         * refer/ref.cc (reference::insert_field, reference::delete_field):
4067         Likewise.
4068         * troff/number.cc (parse_term): Likewise.
4070         * acgroff.m4 (GROFF_PROG_YACC): New macro.
4071         * configure.in: Use GROFF_PROG_YACC.
4073         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
4074         and g++.
4075         * Makefile.in (OPTIMIZE): New define.
4076         (DEBUG): Empty by default.
4077         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
4079         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
4080         (GROFF_ARRAY_DELETE): Likewise.
4081         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
4083         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
4085         * devps/psstrip.sed: Use different delimiter on last line (so that
4086         it works with BSD 4.4 sed.)
4088 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
4090         * devps/psstrip.sed: Delete comments.
4092         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
4093         optind, opterr, optarg.
4094         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
4095         opterr, optarg.
4097 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
4099         * Makefile.in (check): Dummy target.
4101 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
4103         * Version 1.07 released.
4105         * Integrate mm 1.11.
4107         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
4108         where start_col was meant.
4110 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
4112         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
4114 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
4116         * troff/input.cc (token::next): Make \z\o'...' and similar things
4117         work.
4119         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
4120         constants.
4121         (environment): Add margin_character_flags member.
4122         * env.cc (environment::environment(symbol),
4123         environment::environment(const environment *): Initialize
4124         margin_character_flags.
4125         (margin_character): Rewrite.
4126         (environment::output_line): Add a margin character if
4127         margin_character_flags is non-zero.  Turn off the
4128         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
4129         zero, use margin_character_node without copying and then set
4130         margin_character_node to 0.
4132         * devps/DESC.in: Change minimum size to 1000.
4134 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
4136         * troff/symbol.h (symbol::hash): Change return type to unsigned
4137         long.
4138         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
4139         Add casts to int.
4141         * test-groff: Use -r rather than -x.
4143         * grops/psfig.diff: Include in distribution again.
4145 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
4147         * Makefile.in (dist): Use gzip.
4149 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
4151         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
4152         unistd.h as well as in stdlib.h.
4153         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
4154         defined; otherwise include <sys/types.h> and <unistd.h> if
4155         UNISTD_H_DECLARES_GETOPT is defined.
4157         * configure.in: use builtin(include, ... rather than include(...
4158         * configure: Regenerate with autoconf 1.3.
4160         * libdriver/print.cc (printer::adjust_arc_center): Use new
4161         algorithm suggested by Andy Fyfe.
4163         * libdriver/printer.cc (printer::adjust_arc_center): New function.
4164         * include/printer.h: Declare this.
4165         * grops/ps.cc (ps_printer::draw): Use it.
4166         * grodvi/dvi.cc (dvi_printer::draw): Use it.
4168 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
4170         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
4172 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
4174         * eqn/main.cc (main): Handle "eqn -".
4176 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
4178         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
4180         * mm: Integrate version 1.08.
4182         * pic/troff.cc (troff_output::finish_picture): Set
4183         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
4184         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
4185         if it's not defined. Check whether the register is non-zero rather
4186         than whether it's not defined.
4187         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
4189         * indxbib/indxbib.cc: Move all signal handling into...
4190         * indxbib/signal.c: New file.
4191         * configure.in: Call AC_RETSIGTYPE.
4193         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
4194         * configure.in: Call GROFF_STRUCT_EXCEPTION.
4195         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
4197         * troff/input.cc (token::token, token::operator=): Work round SGI
4198         C++ bug.
4199         * pic/object.cc (position::position): Likewise.
4201 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
4203         * pic/pic.h: Move declaration of hypot().
4205 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
4207         * pic/pic.h: Declare hypot().
4209         * pic/pic.h: Define M_PI if necessary.
4211 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
4213         * tmac/tmac.e (re): Add alternative version that doesn't use groff
4214         `.ta T' feature.
4216         * devps/prologue.ps (RE): Handle the possibility that the old font
4217         doesn't have a FontName entry.
4219 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
4221         * tmac/tmac.e (fam): Redefine to set family in environment 2.
4222         (@C): Use @fam not fam.
4224 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
4226         * lookbib/lookbib.cc (main): Change type of start to const char *.
4227         * lkbib/lkbib.cc (main): Likewise.
4229         * eqn/lex.cc (definition::definition): Don't use member
4230         initializer syntax for members of anonymous unions.
4232         * troff/input.cc (input_stack::backtrace): Change type of to const
4233         char *.
4235 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
4237         * include/stringclass.h (class string): Declare inline friend
4238         functions as inline in class declaration.
4239         * troff/hvunits.h (class hunits, class vunits): Likewise.
4240         * include/refid.h (class reference_id): Likewise
4241         * troff/troff.h (points_to_units(units), scale(units, double)):
4242         Delete declarations.
4243         * libdriver/input.cc (get_char): Delete declaration.
4244         * include/lib.h: Change 2nd argument of getopt from const char **
4245         to char **.
4246         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
4247         char **' before assigning to a `const char **'.
4248         * tbl/table.cc: Delete extra declarations of prints().
4250 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
4252         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
4253         char **' before assigning to a `const char **'.
4255         * libgroff/errarg.cc (errarg::errarg): Don't use member
4256         initializer syntax for members of anonymous unions.
4258 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
4260         * mm: Integrate version 1.07.
4262 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
4264         * troff/input.c (translate2): Rename to
4265         (translate_no_transparent).
4266         (init_input_requests): Rename tr2 to trnt.
4268 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
4270         * troff/charinfo.h (class charinfo): Add transparent_translate field.
4271         (charinfo::set_translation, charinfo::set_special_translation):
4272         Add second argument that specifies value for
4273         transparent_translate.
4274         (charinfo::get_translation, charinfo::get_special_translation):
4275         Add optional second argument that specifies whether translation is
4276         being used for transparent throughput.
4277         * troff/input.cc (charinfo::set_translation,
4278         charinfo::set_special_translation): Handle second argument.
4279         (charinfo::charinfo): Initialize transparent_translate.
4280         (translate): Split main part off into
4281         (do_translate): New function.  Pass argument saying whether
4282         translation applies to transparent throughput.
4283         (translate2): New request.
4284         (init_input_requests): Bind translate2 to `tr2'.
4286 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
4288         * tbl/table.h (class table): Add `nokeep' flag.
4289         * tbl/main.cc (process_options): Handle `nokeep' option.
4290         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
4291         table::do_bottom): Don't output keep/release macro definitions or
4292         calls when `nokeep' option has been specified.
4294 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
4296         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
4298 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
4300         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
4301         block_entry::divert, alphabetic_block_entry::divert): Add extra
4302         argument giving column separation.
4303         (table::compute_widths): Pass column separation to
4304         table_entry::divert().
4305         (block_entry::do_divert): If an entry spans multiple columns and a
4306         minimumum width has been specified for each column, then set the
4307         line length to the sum of the widths (plus possibly the column
4308         separations).
4310         * troff/input.cc (set_escape_char): Don't set the escape_char
4311         until after calling has_arg().
4313 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
4315         * tbl/table.cc (table::do_top): Add missing \s0 for double box
4316         case.
4318         * tbl/table.cc (table::print_double_hline): Avoid extra new line
4319         in case where r > nrows - 1.
4321         * tbl/table.cc (BODY_HEIGHT): Deleted.
4322         (LINE_SEP): New definition.
4323         (table::print_single_hline, table::print_double_hline,
4324         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
4325         table::do_row, table::do_top): Use LINE_SEP space before a line
4326         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
4328         * tbl/table.cc (text_entry::print_contents): New function.
4329         (text_string_name, right_text_string_name): Deleted.
4330         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
4331         (simple_text_entry::do_width, numeric_text_entry::do_width,
4332         alphabetic_text_entry::do_width): Don't store the contents of the
4333         entry in a string.
4334         (left_text_entry::simple_print, right_text_entry::simple_print,
4335         center_text_entry::simple_print,
4336         alphabetic_text_entry::simple_print,
4337         numeric_text_entry::simple_print): Print the entry directly
4338         instead of using the stored string.
4340 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
4342         * devps/Makefile: Strip PostScript files.
4343         * devps/prologue: Rename to...
4344         * devps/prologue.ps.
4345         * devps/psstrip.sed: New file.
4346         * devps/download: Use .pfa rather than .ps for installed versions
4347         of fonts.
4349 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
4351         * troff/env.cc (input_trap): Give a warning if the argument is out
4352         of range.
4354         * troff/env.cc (adjust): Treat negative argument as missing. Round
4355         argument > 5 down to 5.
4357         * troff/env.cc (center, right_justify): Make negative argument zero.
4359         * troff/div.cc (page_offset, vertical_position_traps): Treat
4360         invalid argument as missing.
4361         * troff/env.cc (line_spacing, line_length, title_length, indent,
4362         underline, hyphen_line_max_request, control_char,
4363         no_break_control_char, widow_control_request, adjust, input_trap,
4364         point_size): Likewise.
4365         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
4366         constant_space): Likewise.
4367         * troff/input.cc (compatible, shift, warn_request,
4368         set_escape_char): Likewise.
4370         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
4371         * tbl/table.cc (table::table): Likewise.
4373         * Makefile.dev (install_dev): depends on $(DEVFILES).
4375 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
4377         * devX75, devX75-12, devX100, devX100-12: New directories.
4378         * Makefile.in: Add these to DEVDIRS.
4380         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
4381         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
4382         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
4383         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
4384         targets.
4385         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
4386         (uninstall): New target.
4387         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
4388         uninstall_prog, uninstall_dev): New targets.
4390         * troff/div.cc (return_request): Treat an invalid argument as
4391         missing.
4393 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
4395         * tmac/tmac.e ((f): Set up the environment even when there's a
4396         current diversion.  Transperently throughput a call to @N.
4397         (@N): New macro.
4399 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
4401         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
4402         up to vertical resolution.
4404         * tbl/table.cc (table::do_row): Change row number after printing
4405         stuff list.
4407         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
4409 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
4411         * Rename CHANGES to NEWS.
4413 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
4415         * libgroff/new.cc (operator new): Avoid calling malloc(0).
4417 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
4419         * man.ultrix: Removed.
4421 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
4423         * Makefile.comm (extraclean): Delete files whose names begin with
4424         `='.
4426         * pic/troff.cc (troff_output::text): Fix typo in implementation of
4427         aligned text.
4429 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
4431         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
4432         * troff/div.cc (page_length, need_space, space_request): Treat
4433         invalid optional argument as missing.
4434         * troff/env.cc (number_lines): If the first argument is present
4435         but not a number, turn on line numbering, don't change the next
4436         line number and parse the remaining arguments.
4438         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
4440 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
4442         * eqn/box.h: Change declaration accordingly.
4443         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
4444         the specified size was bad but don't give an error.  Check for
4445         overflow.
4446         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
4447         * eqn/lex (do_size): Likewise.
4449 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
4451         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
4452         compatible headers.
4454 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
4456         * tbl/table.cc (table::init_output): Improve error message when
4457         table won't fit on one page.
4459 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
4461         * pic/troff.cc (troff_output::start_picture): Generate line
4462         containing a horizontal motion equal to the width of the picture.
4464         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
4465         using GROFF_COMMAND_PREFIX environment variable.
4467 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
4469         * mdate.sh: Use $NF rather than $(NF).
4471 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
4473         * pic/main.cc (main):  Use %1 not %c in argument to warning.
4475         * eqn/main.cc (main): Output code to check that geqn was given the
4476         correct -T option.
4478 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
4480         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
4481         `ln -s ../Makefile .; make; rm -f Makefile'.
4483         * troff/hyphen: Rename to...
4484         * troff/hyphen.us:
4485         * troff/input.cc (main): Delete -H option. Don't call
4486         read_hyphen_file().
4487         * troff/env.cc: Include searchpath.h and macropath.h.
4488         (exception_dictionary): Deleted.
4489         (ht): Deleted.
4490         (read_hyphen_file): Deleted.
4491         (hyphenation_language): New struct.
4492         (class trie, class hyphen_trie): Move declarations up.
4493         (trie_node::~trie_node): Deleted.
4494         (trie::delete_trie_node): New function.
4495         (trie::do_delete): New pure virtual function.
4496         (hyphen_trie::do_delete): New function.
4497         (trie::~trie): New function.
4498         (hyphen_trie::~hyphen_trie): New function.
4499         (trie::clear): No need to chcek that tp is not 0.
4500         (current_language, language_dictionary): New variables.
4501         (hyphen_word): Give an error if no current language.  Use
4502         exceptions dictionary in current language.
4503         (hyphen_trie::read_patterns_file): Find file using macro_path.
4504         Allow comments (starting with %) in patterns file.  Don't make it
4505         a fatal error if the file can't be found.
4506         (hyphenate): Return if no current language.  Get the exceptions
4507         dictionary and the hyphenation patterns from the current language.
4508         (set_hyphenation_language): New variable.
4509         (hyphenation_patterns_file): New function.
4510         (hyphenation_language_reg): New class.
4511         (hyphenation_language_reg::get_string): New function.
4512         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
4513         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
4514         register.
4515         * groff/groff.cc (main, help, synopsis): Delete -H option.
4516         * include/Makefile.sub: Don't define HYPHENFILE.
4517         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
4518         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
4519         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
4520         hyphenation patterns.
4522 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
4524         * eqn/neqn.sh: New file.
4525         * eqn/Makefile.sub: Handle neqn.sh.
4527         * eqn/eqn.h: Declare `nroff' variable.
4528         * eqn/box.cc (param_table): Add `nroff' param.
4529         (nroff): Define it.
4530         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
4531         variable.
4532         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
4534         * troff/troff.h (WARN_FONT): New warning.
4535         (WARN_TOTAL): Change accordingly.
4536         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
4537         (warning_table): Add WARN_FONT.
4538         * troff/node.cc (mount_font_no_translate): Pass argument to
4539         font::load_font.  If this is non-zero, give a warning.
4540         Don't give an error message when accessing a font that has already
4541         been found to be invalid.
4542         * include/font.h (font::load, font::load_font): Add additional
4543         optional argument which suppresses error message if the font is
4544         not found.
4545         * libgroff/font.cc (font::load_font): Handle additional argument.
4546         (font::load): Add additional argument. If this is non-null, set it
4547         to 1 and don't give error message.
4549         * include/printer.h (printer::end_page): Add argument giving
4550         length of page.
4551         * libdriver/input.cc (do_file): Pass this.
4552         * grops/ps.cc (ps_printer::end_page): Add argument.
4553         * grodvi/dvi.cc (dvi_printer::end_page,
4554         draw_dvi_printer::end_page): Add argument.
4555         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
4556         columns_per_page members. New member nlines.
4557         (DEFAULT_LINES_PER_PAGE): Deleted.
4558         (tty_printer::tty_printer): Don't compute lines_per_page from
4559         font::paperlength. Don't compute columns_per_page from
4560         font::paperwidth.
4561         (tty_printer::add_char): Don't check horizontal position against
4562         columns_per_page. Grow glyphs vector if neccessary.
4563         (tty_printer::end_page): Add argument giving page_length in units.
4564         Discard lines past end of page.
4566 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
4568         * tmac/tmac.tty-char: Fix definition of \(/l.
4570         * tmac/tmac.X: Define \(en.
4572 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
4574         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
4575         lpq, then use lp rather than lpr.
4577         * tmac/tmac.s (par@reset): Don't call `ad'.
4578         (par*env-init): Call `ad'.
4580 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
4582         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
4583         date.
4585         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
4586         * indxbib/indxbib.cc: Likewise.
4588 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
4590         * libgroff/putenv.c: New file.
4591         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
4592         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
4593         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
4594         stdlib.h with AC_HAVE_HEADERS.
4596 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
4598         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
4599         does not exist.
4601 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
4603         * eqn/box.cc (gsize): Make it an int.
4604         (set_gsize): Parse argument handling increment or decrement.
4605         (box::top_level): Convert gsize to a string.
4607         * troff/input.cc (exit_troff): Make buf unsigned char [].
4608         Call to make_temp_iterator casts buf to char*.
4610         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
4612         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
4613         * Makefile.cpg (depend.temp): Likewise.
4615         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
4617         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
4619 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
4621         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
4623 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
4625         * Version 1.06 released.
4627         * Integrate mm 1.04.
4629 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
4631         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
4633 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
4635         * afmtodit/afmtodit.pl: Add -n option that disables generation of
4636         ligatures command.
4637         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
4638         afmtodit. Regenerate.
4640         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
4641         @f back past the current position.
4643         * tmac/tmac.e: Change calls to @R so that comments are not part of
4644         arguments.
4646 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
4648         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
4650         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
4651         check that we can link a call to a function declared in <stdio.h>.
4652         (GROFF_UNISTD_H): New macro.
4653         * configure.in: Call it.
4654         * Makefile.in: Document it.
4655         * include/posix.h: New file.
4656         * troff/troff.h: Don't include <osfcn.h>
4657         * troff/input.cc: Include posix.h.
4658         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
4659         osfcn.h.
4660         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
4661         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
4662         <fcntl.h>.
4663         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
4664         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
4665         * libbib/search.cc (O_RDONLY): Delete definition.
4666         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
4667         Don't include <osfcn.h>.
4669         * acgroff.m4 (GROFF_TIME_T): New macro.
4670         * configure.in: Call it.
4671         * Makefile.in: Document it.
4673         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
4674         * configure.in: Call it.
4675         * Makefile.in: Document -DTRADITIONAL_CPP.
4676         * include/ptable.h: Don't include generic.h.
4677         (name2): Define it.
4679         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
4680         Afterwards remove [T1 and [T2.
4681         (ref*spec!0, ref*spec!2): Use T1 rather than T.
4682         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
4683         (ref*add-T2): Renamed from ref*add-T.
4684         (ref*add-T1): New macro.
4686 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
4688         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
4690         * libbib/index.cc: Include <fcntl.h>.
4691         (O_RDONLY): Define if necessary.
4692         (make_index_search_item, index_search_item_iterator::get_tag,
4693         index_search_item::check_files): Use O_RDONLY.
4694         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
4695         (O_RDONLY): Define if necessary.
4696         (search_list::add_file): Use O_RDONLY.
4697         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
4698         <sys/stat.h>.
4699         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
4700         (main): Use these.
4702         * libbib/index.cc (S_ISREG): Define it if necessary.
4703         (index_search_item::load): Use S_ISREG.
4705         * include/driver.h: Include <errno.h>.
4707 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
4709         * eqn/box.cc (body_height): Increase default value to 85.
4710         (body_depth): Increase default value to 35.
4712 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
4714         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
4715         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
4716         protected from expansion with \E.
4718         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
4720         * Makefile (Makefile): New target.
4722         * Makefile.sub (configure, distfiles): New targets.
4724         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
4725         construct.
4727 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
4729         * eqn/box.cc (param_table): Add body_height and body_depth.
4731         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
4733 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
4735         * psbb/Makefile.sub: Don't link with libgroff.a.
4737         * acgroff.m4 (GROFF_PUTENV): New macro.
4738         * configure.in: Call GROFF_PUTENV.
4739         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
4740         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
4741         is defined.
4743         * troff/env.cc (distribute_space): Rename force_forward argument
4744         to force_reverse.  Reverse the list if force_reverse is true.
4746 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
4748         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
4750         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
4751         height or depth to be negative.  Guard against SUP_RAISE quantity
4752         being negative.
4754 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
4756         * devps/generate/textmap: Add `an' (arrowhorizex).
4757         * tmac/tmac.ps: \(an overlaps horizontally.
4758         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
4760         * devps/symbolchars: Add arrowverttp, arrowvertbt.
4761         * devps/textmap: Add arrowvertex.
4762         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
4763         updownarrow delimiters.
4764         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
4766         * tbl/table.cc (simple_entry::position_vertically,
4767         block_entry::position_vertically):  For a centered entry, perform
4768         the motion in two stages.
4770         * refer/refer.cc (split_punct): Don't call lookup_token if there
4771         is no token.
4773 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
4775         * troff/input.cc (token::next): Delete token_node after copying
4776         token.
4778         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
4779         cur_point_size.
4781         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
4783         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
4785 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
4787         * grops/ps.cc (usage): -b option takes an argument.
4789         * devps/prologue (PLG): New procedure.
4790         * grops/ps.cc (main, usage): New -g option.
4791         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
4792         length using PLG.
4794 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
4796         * include/cset.h: Include <limits.h> if we have it.
4798         * libgroff/illegal.cc: New file.
4799         * include/lib.h (illegal_input_char): Use table.
4800         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
4801         * pic/lex.cc (ARG1): Renumber to 14.
4802         * eqn/lex.cc (ARG1: Likewise.
4804         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
4805         (eg 1.05.90) correctly.
4807 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
4809         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
4810         Rename $r and $R registers to $v and $V.
4811         ($r, $R): Initialize to 0.
4812         (@v, @V): New macros.
4813         (sz): Call @v.
4814         (@M): Call @V.
4816         * troff/input.cc (main, usage): Add -R option that says not to
4817         load troffrc.
4818         * eqn/main.cc (main, usage): Rename -n to -R.
4820 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
4822         * devps/DESC.in: Leave font positions 5-9 blank.
4823         * devdvi/DESC.in: Likewise.
4825         * grog/grog.pl: Handle `.PS <file' correctly.
4827         * troff/input.cc (input_stack::push): Improve error message when
4828         input stack limit exceeded.
4830 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
4832         * refer/refer.cc (main): Fix typo in handling of `a' option.
4834         * refer/refer.cc (do_bib): In state START after a newline remain
4835         in state START.
4837         * groff/groff.sh: Deleted.
4838         * groff/Makefile.sub: Delete handling of groff.sh.
4840         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
4841         to determine whether to use \X'ps:...'.
4842         * tmac/troffrc: Set 0p register to 0.
4843         * tmac/tmac.ps: Set 0p register to 1.
4845         * groff/groff.cc: Support -X option. Give warning for -TXps and
4846         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
4847         * tmac/troffrc: Support -r.X=1.
4849         * pic/troff.cc (troff_output::dot): Don't test
4850         zero_length_line_flag.
4852 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
4854         * include/lib.h: Declare getopt() and friends unless
4855         STDLIB_H_DECLARES_GETOPT is defined.
4857         * doc/chars.tr: Delete.
4858         * man/groff_char.man: New file.
4860 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
4862         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
4863         user has changed register format.
4865 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
4867         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
4868         `postpro' command in DESC file.  Get spooler command from `print'
4869         command in DESC file.  Execute spooler command with /bin/sh.
4871         * groff/groff.cc: Split Unix-specific parts into...
4872         * groff/pipeline.c: New file.
4874         * LICENSE: Delete.
4875         * COPYING: New file.
4876         * all files: Update copyright notices.
4878         * Rearrange files.  Redo Makefiles.  Use autoconf.
4880 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
4882         * troff/input.c (charinfo_to_node_list): Interpret character
4883         definition with escape_char of `\'.
4885 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
4887         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
4888         Define INT_DIGITS as big enough for 64-bit integer.
4889         * lib/strtol.c: Don't include lib.h.
4890         * lib/lib.h: Delete ifdef __cplusplus stuff.
4892 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
4894         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
4895         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
4896         get DESC from current directory.
4898 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
4900         * tbl/main.c (main): Always reset the line number when reading
4901         from stdin.
4903         * tbl/table.c (table::print_single_hline, table::print_double_hline,
4904         table::define_bottom_macro, table::do_row, table::do_top): Round
4905         vertical spacing up to vertical resolution.
4907 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
4909         * ps/ps.h (enum resource_type): Avoid comma at end of
4910         enumerator-list.
4911         * dvi/dvi.c (class dvi_printer): Likewise.
4912         * dvi/tfmtodit.c (gf::load): Likewise.
4913         * refer/label.y (struct expression): Likewise.
4914         * refer/refer.c (class label_processing_state): Likewise.
4915         * refer/indxbib.c (do_file): Likewise.
4916         * troff/troff.c (enum warning_type): Likewise.
4917         * tbl/main.c (process_data): Likewise.
4918         * troff/charinfo.h (class charinfo):
4920 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
4922         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
4924 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
4926         * groff.c: Move to new groff subdirectory.
4927         * groff/Makefile: New file.
4928         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
4930         * man/mdate.sh: Use ls -L if supported.
4932         * Consolidate all header files produced by gendef into lib/defs.h.
4933         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
4934         Don't include path.h.
4935         * lib/Makefile (path.h): Don't generate.
4936         * troff/input.c: Include defs.h. Don't include config.h.
4937         * troff/Makefile (config.h): Don't generate.
4938         * refer/index.h: Don't include suffix.h.
4939         * refer/index.c: Include defs.h.
4940         * refer/indxbib.c: Include defs.h.
4941         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
4942         defs.h.
4943         * refer/Makefile (suffix.h, path.h): Don't generate.
4944         * groff.c: Don't include config.h. Include defs.h.
4945         * Makefile (config.h): Don't generate.
4946         (lib/defs.h): Generate.
4947         (topclean): Remove lib/defs.h.
4949 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
4951         * lib/malloc.c, lib/getpagesize.h: Deleted.
4952         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
4953         related stuff.
4954         * lib/Makefile: Delete malloc-related stuff.
4955         * lib/new.c: Workaround COOKIE_BUG if necessary.
4957         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
4958         needed header files directly.
4959         * refer/refer.h: Omit definition of DEFAULT_INDEX.
4960         * Makefile: Include definition of DEFAULT_INDEX in path.h.
4962 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
4964         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
4965         argument.
4966         * lib/font (font::load_desc, font::load): Don't split argument of
4967         unknown command.
4968         (font::handle_unknown_font_command): Change type.
4969         * ps/ps.c (ps_font::handle_unknown_font_command,
4970         handle_unknown_desc_command): Change type.
4971         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
4973 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
4975         * lib/font.h (font::handle_unknown_font_command): Add file and
4976         line arguments.
4977         * lib/font.c (font::handle_unknown_font_command):
4978         * ps/ps.c (ps_font::handle_unknown_font_command):
4979         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
4980         lineno arguments.  Use _with_file_and_line functions for error
4981         reporting.
4983         * lib/fontfile.c (font::unknown_desc_command_handler): New static
4984         data member.
4985         * lib/font.c (font::set_unknown_desc_command_handler): New
4986         function.
4987         (font::load_desc): For unknown commands, call
4988         unknown_desc_command_handler if not null.
4989         * lib/font.h (class font): Declare them.
4990         (FONT_COMMAND_HANDLER): New typedef.
4991         * ps/ps.c (handle_unknown_desc_command): New function.
4992         (main): Set bflag if we had a -b option. Call
4993         font::set_unknown_desc_command_handler.
4994         (broken.h): Don't include.
4995         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
4996         submake 
4997         * ps/devps/Makefile: Add `broken' command to DESC file using
4998         BROKEN_SPOOLER_FLAGS.
5000         * macros/tmac.e ([, ]): Add as synonyms for { and }.
5002         * macros/tmac.e ($p): Only exdent if \$3 > 0.
5004         * macros/tmac.e (@R, @S): New macros.
5005         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
5006         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
5007         Declare $H, $[0-9], .. macros with @S.
5008         Declare |0, |1, |2, |3 strings with @S.
5010         * macros/tmac.e (@S): Rename to @U.
5012         * macros/tmac.e (@z): Define @b and bp as empty instead of
5013         deleting them,
5015         * macros/tmac.e (@m): Deleted.
5016         (@h): Don't call @m.
5017         (@z): Don't set @m trap.
5019         * macros/tmac.e ($h, $f): Define |z as empty string.
5021         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
5022         (@q): Likewise.
5024         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
5025         removing them.
5026         ()f): Likewise for * register.
5028         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
5029         argument is missing, don't change $R.  Call sr with three
5030         arguments when initializing.
5032 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
5034         * macros/tmac.e (sr): New macro.
5035         Initialize $r and $R using sr.
5037         * macros/tmac.e (,): Delete \*(#[.
5039         * troff/env.c (set_tabs): Read the tab type even if the position
5040         is bad.  Allow the position of the first tab stop to be negative.
5042 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
5044         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
5045         _POSIX_VERSION.
5046         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
5047         rather than -DPATHCONF_MISSING.
5048         * Makefile: Get rid of PATHCONF_MISSING.
5050         * refer/map.c: New file.
5051         * refer/index.c: Interface to mmap through map.c.  Rename map_size
5052         to map_len.
5053         * refer/Makefile: Handle map.c.
5054         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
5056 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
5058         * Makefile: RANLIB should be `true' if there is no ranlib.
5059         * lib/Makefile (libgroff.a): Simplify.
5060         * driver/Makefile (libdriver.a): Simplify.
5062         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
5063         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
5064         defined.
5066 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
5068         * troff/env.c (compare_ranges): Declare as extern "C".
5070         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
5072         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
5074 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
5076         * pic/troff.c (troff_output::text): Merge in grops_output::text,
5077         but conditionalize use of \X based on \*(.T.
5078         (grops_output::*): Deleted.
5079         * pic/output.h: Delete declaration of make_grops_output.
5080         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
5081         by default. -n sets it to 0.
5082         (usage): Corresponding changes.
5083         * groff.c (main): Don't pass -x or -p to pic.
5084         * groff.sh: Likewise.
5086         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
5087         to be non-zero.
5089         * ps/devps/afmtodit: Change calculation of asc_boundary and
5090         desc_boundary.  Make these bounds inclusive.
5091         * ps/devps: Regenerate font files.
5093 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
5095         * macros/tmac.latin1: New file.
5096         * macros/tmac.tty-char: Use tmac.latin1.
5097         (tmac.tty-tr): Deleted.
5098         * macros/Makefile: Install tmac.latin1.
5099         * macros/tmac.dvi: Use tmac.latin1.
5100         * macros/troffrc: Translate \[char160] onto no-break space here.
5101         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
5103 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
5105         * macros/tmac.Xps: Use `do' request.
5107         * macros/tmac.ps: Use `do' request.
5109         * macros/tmac.e (@C): Use `do' request.
5111         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
5112         * macros/Makefile: Install tmac.X*.
5114         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
5115         * tty/Makefile: Don't install tmac.tty*.
5116         * macros/Makefile: Install tmac.tty*.
5118         * dvi/tmac.dvi: Move to macros.
5119         * dvi/Makefile: Don't install tmac.dvi.
5120         * macros/Makefile: Install tmac.dvi.
5122         * ps/tmac.ps*: Move to macros.
5123         * ps/Makefile: Don't install tmac.ps*.
5124         * macros/Makefile: Install tmac.ps*.
5126         * eqn/box.c: Provide draw_lines parameter corresponding to -D
5127         option.
5128         * macros/eqnrc: Set draw_lines parameter based on device.
5129         * groff.c: Don't pass -D flag to eqn.
5130         * groff.sh: Likewise.
5131         * eqn/main.c: Warn about use of -D.
5133         * troff/input.c (process_startup_file): New function.
5134         (main): Call process_startup_file().
5135         * macros/troffrc: New file.
5136         * macros/Makefile: Install troffrc.
5137         * groff.c (main): Don't pass extra -m option to troff. For a 
5138         pseudo device pass the name of the pseudo device to troff using
5139         -d.
5140         * groff.sh: Likewise.
5141         * groff.c (possible_command::prepend_arg): Deleted.
5143         * troff/input.c (do_request): New function.
5144         (init_input_requests): Bind "do" to do_request.
5146         * eqn/main.c (main): Instead of loading eqnchar from device directory,
5147         load eqnrc from macro directory.
5148         * macros/eqnrc: New file.
5149         * macros/Makefile: Install eqnrc.
5150         * ps/devps/eqnchar: Deleted.
5151         * ps/devps/Makefile: Don't install eqnchar.
5152         * dvi/devdvi/eqnchar: Deleted.
5153         * dvi/devdvi/Makefile: Don't install eqnchar.
5154         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
5155         variable optM.
5157         * lib/device.[ch]: New files.
5158         * lib/font.h (font::set_device_name, font::get_device_name):
5159         Deleted.
5160         * lib/fontfile.c: Use device.h.
5161         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
5162         * troff/input.c: Delete definition of `device'.
5163         (main): Don't initialize device.
5164         * troff/troff.h: Include device.h rather than declaring device.
5165         * troff/Makefile: No need to handle DEVICE.
5166         * driver/input.c: Include device.h. Don't use
5167         font::{set,get}_device_name.
5168         * groff.c, Makefile: Rename device.h to config.h.
5169         * groff.c: Use library device variable.
5170         * eqn/main.c: Use library device variable.
5171         * eqn/Makefile: No need to handle DEVICE.
5173         * lib/searchpath.[ch]: New files.
5174         * lib/Makefile: Handle searchpath.[ch].
5175         * troff/input.c (open_file, init_dirs): Deleted.
5176         (macro_dirs): Deleted.
5177         (open_mac_file, macro_source): Use class search_path.
5178         (add_string, struct string_list): Move definition.
5179         (main): Change -M option to use macro_path. Delete call to
5180         init_dirs().
5181         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
5182         Rewrite to use class search_path.
5183         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
5184         * lib/Makefile: fontfile.c depends on searchpath.h.
5185         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
5186         MACROPATH.
5187         * lib/macropath.[ch]: New files.
5188         * troff/Makefile: No need to handle MACROPATH.
5190         * troff/input.c: Delete DUMP code.
5191         * lib/fontfile.c, lib/font.h: Delete
5192         font::forget_command_line_font_dirs.
5194         * troff/input.c (push_token): New function.
5195         (handle_first_page_transition): Use push_token().
5196         (process_input_stack): Change handling of a space at the beginning
5197         of the line.
5199 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
5201         * troff/input.c (font_dirs): Delete unused variable.
5203         * eqn/lex.c (do_set): Correct error messages.
5205 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
5207         * troff/input.c (do_define_string): Allow the string name to be
5208         followed immediately by a tab.
5209         (define_character): Likewise.
5211 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
5213         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
5214         be negative.
5216         * troff/input.c (input_iterator::is_file): New virtual function.
5217         (file_iterator::is_file): New function.
5218         (input_stack::end_file): New function.
5219         (input_stack::next_file): Handle the situation where there is no
5220         file on the input stack correctly.  Avoid making two passes over
5221         the input stack.
5222         (next_file): Make the filename optional; in this case call
5223         input_stack::end_file().
5225 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
5227         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
5228         produce a real _ charater when the current font is CW and _
5229         otherwise.
5231         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
5232         expression to work around gcc 2.2 bug.
5234 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
5236         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
5238         * troff/env.c (environment::add_padding): New function.
5239         (environment::add_char): Use add_padding().
5240         (environment::space): Likewise.
5241         (environment::wrap_up_field): Add some padding if there is none
5242         and there's no current tab.
5243         * troff/env.h: Declare environment::add_padding.
5245 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
5247         * pic/pic.y: undef fmod and rand before declaring them.
5249 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
5251         * troff/input.c (main): If the DESC file specifies a font name of
5252         0, then leave the corresponding font position empty.
5254         * nroff.sh: New file.
5255         * Makefile (install.nobin): Install nroff.sh.
5257         * tty/devlatin1/R.proto: Add ao as synonym for de.
5258         * tty/tmac.tty-char: Define ao as o.
5260         * tty/dev{ascii,latin1}/R.proto: Add aq.
5261         * tty/tmac.tty-char: Delete definition of aq.
5263 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
5265         * troff/input.c (init_charset_table): Don't translate 0240.
5266         * ps/tmac.ps: Translate char160 to space.
5267         * dvi/tmac.dvi: Likewise.
5268         * tty/tmac.tty: Likewise.
5270 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
5272         * dvi/tmac.dvi: Add support for all Latin-1 characters.
5274         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
5275         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
5276         \(oe, \(r?, \(r!.
5278         * tty/tmac.tty-char: Add \(ah.
5280         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
5281         No need to define \(FM and \(!/. Conditionalize all character
5282         definitions.
5284         * ps/devps/lgreekmap: Add +h, +f, +p.
5286         * ps/tmac.psnew: New file.
5287         * ps/Makefile: Install tmac.psnew.
5289         * troff/input.c (charinfo_to_node_list): Don't ever interpret
5290         character definitions in compatible mode.
5292         * troff/input.c (remove_character): New function.
5293         (init_input_requests): Bind remove_character to "rchar".
5295         * ps/tmac.psold: New file.
5296         * ps/Makefile: Install tmac.psold.
5297         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
5298         characters into tmac.psold.  Make these definitions unconditional.
5300         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
5302         * ps/tmac.ps: Don't define \('c and \('C.
5304         * ps/devps/textmap: Move Greek characters to...
5305         * ps/devps/symbolchars:
5307 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
5309         * ps/devps/text.enc: Add quotesingle.
5310         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
5311         * tty/tmac.tty-char: Likewise.
5312         * dvi/devdvi/texmi.map: Add +h, +f, +p.
5313         * dvi/devdvi/texi.map: Add Fn.
5314         * dvi/devdvi/msam.map: Add lz.
5315         * dvi/tmac.dvi: Handle Bq, bq, aq.
5317         * pic/lex.c (get_token): Recognize 'th.
5318         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
5320 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
5322         * ps/devps/textmap: Move di, mu, +- to...
5323         * ps/devps/symbolchars:
5325         * macros/tmac.s (@XS): Don't call par@reset or fi.
5326         (XA): Call LP. Turn off adjustment. Reduce line length.
5328         * macros/tmac.s: Initially alias XS to LP.
5329         (XS): Rename to @XS.
5330         (cov*ab-init): Alias XS to @XS.
5332 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
5334         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
5335         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
5336         (token::is_size, token::changes_env): Deleted.
5337         * troff/number.c (parse_term): No need to process \s explicitly.
5338         Call tok.next() only after scale indicator has been processed.
5339         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
5340         \f etc explicitly.
5341         (token::next): Handle \s, \f, \S, \H immediately rather than
5342         returning them as tokens.
5343         (token::operator==, token::description, token::add_to_node_list,
5344         token::process): Remove handling of deleted tokens.
5346         * troff/env.c (environment::add_char): When adding padding
5347         indicator character, call start_line() if necessary.
5349 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
5351         * ps/devps/afmtodit: Don't output 0 kerns.
5353         * ps/devps/afmtodit: Remove directory from name of encoding in
5354         font description file.
5356         * ps/devps/afmtodit: Improve error messages.
5358         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
5360         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
5361         * ps/devps/FontMakefile: Deleted.
5362         * ps/devps/afmname: New file.
5364         * ps/devps/symbol.sed: New file.
5365         * ps/devps/symbol.diff: Deleted.
5366         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
5367         Generate zapfdr.afm from zapfd.afm.
5369         * tty/tmac.tty (tty-char): Prefix definition with ".
5371         * macros/tmac.an (TP): Don't start a diversion if one has already
5372         been started.
5374         * tty/tmac.tty-char: Add Latin-1 characters.
5376         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
5378 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
5380         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
5381         Move declaration of struct horizontal_span.
5383         * tbl/table.c (table::table): Initialize span_list.
5384         (table::~table): Delete span_list.
5386         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
5388         * ps/devps/Makefile: Avoid dependency on GNU make.
5390         * ps/tmac.ps: Check that character does not already exist before
5391         defining it.
5393         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
5394         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
5395         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
5396         files.
5398         * tty/tmac.tty-char: New file.
5399         * tty/Makefile: Install tmac.tty-char.
5400         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
5401         tmac.tty-char.
5403         * tty/tmac.tty: Fix definition of \(34.
5405         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
5406         bracket-drawing characters onto |. Add *o.
5408         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
5409         only if current_field.
5411         * troff/dictionary.c (dictionary::lookup): Free old_table after
5412         rehashing. 
5414 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
5416         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
5417         whose glyphs are identical to glyphs of some Roman character.
5419         * tty/devlatin1/R.proto (bu): Deleted.
5420         * tty/devascii/R.proto (bu): Deleted.
5421         * tty/tmac.tty: Add definition of \(bu.
5423         * eqn/main.c (do_file): Pass FILE as argument.
5424         (main): Automatically load eqnchar.  New options -F and -n.
5425         Pass do_file an opened FILE.
5426         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
5427         No need to include font.h.
5428         * groff.sh: Likewise.  Don't need to use - for standard input.
5429         Prefix files with -- if first file starts with -.
5431         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
5433         * troff/env.c (environment::possibly_break_line): Don't set line
5434         to 0 across call to output_line().  Don't call output_line() until
5435         after discarding nodes after break.
5437 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
5439         * request.h (macro::empty): Declare it.
5440         * input.c (macro::empty): New method.
5441         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
5442         macro is empty.
5444 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
5446         * troff/env.c (environment::start_field): Decrement space_total
5447         when a space is frozen.
5449 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
5451         * macros/tmac.an (R): Delete macro.
5453         * troff/input.c (get_copy, token::next): Support \# (like \" but
5454         newline is ignored).
5456         * troff/input.c (token::next): Fix error message in 'Y' case.
5458 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
5460         * eqn/delim.c (define_extensible_string): Recognize any prefix of
5461         a delimiter name.
5463 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
5465         * c++test.c: Include <osfcn.h>.
5467         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
5468         <errno.h> doesn't.
5470 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
5472         * tbl/table.c (table::divide_span): Don't count column separation
5473         if expand was specified.
5475         * tbl/main.c (process_format): Don't ignore width specs in
5476         continued format.  Give warning for changing equal widths or
5477         column separation in continued format.
5478         (process_data): Set column separation, minimum width, equal
5479         columns at end of table.
5481 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
5483         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
5484         node::add_discretionary_hyphen): Use soft_hyphen_char.
5485         (set_soft_hyphen_char): New function.
5486         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
5488         * Makefile (c++tested): Give more helpful message if test fails.
5490 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
5492         * troff/input.c (init_charset_table): Translate 0240 to
5493         an unbreakable space.
5495         * troff/token.h (token::hyphen_indicator): New function.
5496         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
5497         translation.
5498         * troff/input.c (translate): Allow translation to \%.
5499         * troff/node.c (node::add_char): Handle
5500         TRANSLATE_HYPHEN_INDICATOR.     
5501         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
5503         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
5504         for \(hy.
5506         * tty/devlatin1/R.proto: \(hy and - should print as 055.
5508 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
5510         * groff.c (run_commands): If the last command gets a SIGPIPE send
5511         a SIGPIPE to all children than haven't yet terminated.  When
5512         command terminates, set pid field to -1.
5514 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
5516         * groff.c (main): Pass an appropriate -filename option to gxditview.
5518 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
5520         * Makefile.bd (install): Remove existing program before copying.
5522         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
5523         programs which have Unix counterparts to be installed with
5524         user-specified prefix.
5526         * troff/input.c (exit_troff): Don't check if exit_started.
5527         (exit_request): Don't call exit_troff if exit_started.
5529         * Makefile.bd (install.mm): Rename to install.dwbmm.
5531 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
5533         * driver/input.c (do_file): Add missing break for '#' case.
5535 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
5537         * troff/input.c (input_stack::clear):  Clear past any boundaries and
5538         then add the boundaries back.
5540         * troff/input.c (exit_troff): Return immediately if already
5541         exiting.
5543         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
5544         end macro.
5545         (pg*end-page): If the text has ended and there are no more
5546         footnotes or keeps, exit.
5548         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
5550         * troff/input.c (init_charset_table): Make \(rq transparent by
5551         default.
5553         * macros/tmac.an: Define lq and rq strings.
5555         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
5557 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
5559         * troff/env.c (environment::final_break): New function.
5560         (environment::newline): Set prev_line_interrupted to 2 if
5561         exit_started.
5562         * troff/env.h: Declare environment::final_break.
5563         * troff/input.c (exit_troff): Call environment::final_break()
5564         instead of environment::do_break().
5566         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
5567         doesn't already exist.
5568         * macros/man.local: New file.
5569         * macros/tmac.an: Load man.local.
5570         * macros/man.ultrix: New file.
5572 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
5574         * troff/input.c (exit_groff): Rename to...
5575         (exit_troff): New function.
5577         * troff/div.c (exit_started, done_end_macro,
5578         seen_last_page_ejector): New global variables.
5579         (began_page_in_end_macro): New static variable.
5580         (exit_flag): Deleted.
5581         (top_level_diversion::top_level_diversion): Initialize
5582         last_page_count.
5583         (top_level_diversion): More elaborate test for whether
5584         cleanup_and_exit() should be called.
5585         Set began_page_in_end_macro if the end macro isn't yet finished.
5586         * troff/div.h (top_level_diversion::last_page_count): New data
5587         member.
5588         (top_level_diversion::set_last_page): New function.
5589         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
5590         * troff/env.c (do_break): Zero prev_line_interrupted.
5591         * troff/input.c (exit_flag): Delete declaration.
5592         (LAST_PAGE_EJECTOR): New magic cookie.
5593         (token::next): Handle LAST_PAGE_EJECTOR.
5594         (exit_groff): Set exit_started and done_end_macro instead of
5595         exit_flag.  Call top_level_diversion::set_last_page.  Push a
5596         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
5597         another ejection after setting seen_last_page_ejector.
5599 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
5601         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
5603         * macros/tmac.e (TH): Make sure there's room for the initial
5604         header.
5606         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
5607         Set FVS in points rather than units.
5609 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
5611         * troff/div.c (top_level_diversion::add_trap): Don't consider the
5612         position of empty slots.
5614 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
5616         * ps/devps/S: Fix height and depth of parenrightex.
5617         * ps/devps/symbol.diff: Regenerate.
5619 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
5621         * tmac.e (u): Do underlining as in -mgs.
5623 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
5625         * tty/tty.c (tty_printer::end_page): If overstriking is
5626         suppressed, still turn overstruck horizontal and vertical lines
5627         into +.
5629         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
5630         2.1.
5632         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
5634 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
5636         * Version 1.05 released.
5638 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
5640         * tty/tty.c: Instead of keeping an array of glyphs and then
5641         sorting it, keep a ordered linked list of glyphs for each line.
5643         * driver/driver.h: Include stddef.h.
5645         * tty/tty.c (compare_glyph):
5646         * refer/refer.c (rcompare):
5647         * troff/env.c (compare_ranges): Arguments of qsort comparison
5648         function should be const void *.
5650         * troff/number.c (parse_term):
5651         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
5652         switch statement.
5654         * refer/label.y (consider_authors): Don't access variables
5655         constructed under a condition outside that condition: put braces
5656         round for statement containing declaration; redeclare use of same
5657         variable later.
5659         * pic/pic.y (text_expr): Delete production that allows
5660         parenthesised text_expr.
5661         (expr): Allow a conditional_expr to appear in parentheses.
5662         (conditional_expr): Rename to any_expr.
5664         * mm: Install new version 1.01 from jh.
5666         * lib/font.c (font::get_width): Cache scaled widths.
5667         (font::font): Initialize widths_cache.
5668         (font::~font): Destroy widths_cache.
5669         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
5671 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
5673         * c++test.c, c++test.ref: New files.
5674         * Makefile: Check that the C++ compiler works.
5676         * ps/tmac.pspic (PSPIC): Do a break.
5678         * ps/tmac.ps: Move definition of PSPIC into...
5679         * ps/tmac.pspic: New file.
5680         (PSPIC): Draw box around picture, but make it invisible to grops.
5681         * ps/tmac.ps: Load tmac.pspic.
5682         * ps/Makefile: Install tmac.pspic.
5684 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
5686         * lib/font.c (scale_round): If n is negative,
5687         subtract .5 before truncating floating point result.
5689         * lib/fontfile.c: Include <errno.h>.
5691 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
5693         * driver/input.c (get_char): Inline. Don't update current_lineno.
5694         Change callers to up date current_lineno if necessary.
5695         Use get_char() instead of getc(current_file).
5697 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
5699         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
5701 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
5703         * tty/tty.c (tmac.tty): Define \(rg as (R).
5705 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
5707         * lib/lib.h: New define a_delete.
5708         * Use a_delete instead of delete when deleting an array of objects
5709         without destructors.
5711         * lib/lib.h: Rename adelete to ad_delete.
5712         * Change uses of adelete.
5714 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
5716         * eqn/eqn.y: Include lib.h.
5718         * troff/node.c (grow_font_table): Delete old_font_table.
5720         * mm: Install new version from jh.
5722 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
5724         * tbl/table.h (format_type): Make global instead of local to class
5725         entry_format.  Prefix enumerators with FORMAT_.
5726         * tbl/table.c, tbl/main.c: Corresponding changes.
5727         * refer/token.h (token_type): Make global.  Prefix enumerators
5728         with TOKEN_.
5729         * refer/token.[ch]: Corresponding changes.
5730         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
5732         * troff/div.c (node::set_vertical_size): Don't name argument.
5734 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
5736         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
5737         * lib/lib.h: Define adelete accordingly.
5738         * pic/object.c (graphic_object::graphic_object):
5739         * tbl/main.c (format::~format):
5740         * tbl/table.c (table::~table):
5741         * refer/ref.c (reference::~reference, reference::merge,
5742         reference::insert_field, reference::delete_field): Use adelete.
5744         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
5745         * refer/token.h:
5746         * tbl/table.h: Corresponding changes.
5748         * common.c (common_output::dashed_arc, common_output::dotted_arc):
5749         Ensure total_angle is positive.
5751 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
5753         * refer/ref.c (reference::merge, reference::insert_field,
5754         reference::delete_field): Avoid delete[0].
5756         * refer/token.c (init_special_chars): Move calls to cmupper
5757         outside calls to init_two_char_letter to work around bug in gcc
5758         2.0.
5760 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
5762         * lib/new.c (operator new): Use __builtin_new for g++.
5764         * pic/object.c (graphic_object::~graphic_object):  Don't use
5765         delete [] on 0.
5767         * pic/object.c (output::compute_scale): Initialize max_width and
5768         max_height.
5770 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
5772         * troff/input.c (write_request): Call fflush.
5774         * troff/node.h (class composite_node): Move declaration to node.c
5775         * troff/input.c (charinfo_to_node): Rename to ...
5776         (charinfo_to_node_list): Return node list rather than composite
5777         node.
5778         * troff/node.c (make_composite_node): New function.
5779         (make_node, add_char): Call make_composite_node instead of
5780         charinfo_to_node.
5781         (class composite_node): Add a tfont * member.  Delete font_size
5782         member.
5783         (composite_node::composite_node, composite_node::copy,
5784         composite_node::size): Corresponding changes.
5785         (composite_node::tprint): Provide constant spacing, emboldening
5786         and track kerning as specified in tfont.
5787         (composite_node::width): Change width calculation accordingly.
5788         * troff/env.h (environment::composite): New member.
5789         (environment::is_composite, environment::set_composite): New
5790         functions.
5791         * troff/env.c (environment::environment): Initialize composite.
5792         * troff/input.c (charinfo_to_node): Call
5793         environment::set_composite.
5794         * troff/node.c (make_composite_node, make_glyph_node): Use the
5795         plain version of the tfont if the environment is composite.
5797         * troff/node.c (font_info::get_space_width): Additional argument
5798         giving space_size.  Handle constant space correctly. Scale by
5799         space_size unless constant spaced.
5800         (env_sentence_space_width): New function.
5801         * troff/node.h: Declare it.
5802         * troff/env.h (environment::get_space_size,
5803         environment::get_sentence_space_size,
5804         environment::get_narrow_space_width,
5805         environment::get_half_narrow_space_width): Make inline.
5806         (environment::get_space_width): Make inline.  Just call
5807         env_space_width.
5808         * troff/env.c: Delete definitions for funtions made inline.
5809         (environment::space_newline, environment::space): Use
5810         env_sentence_space_width(). Don't scale by space_size.
5811         * troff/node.h: Move declarations of env*space_width() functions
5812         into env.h.
5814 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
5816         * macros/tmac.s (PS): Don't try to set negative indent.
5818 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
5820         * pic/pic.y: Fix min function.
5822 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
5824         * man/mdate.sh: Clear LANGUAGE.
5826 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
5828         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
5829         * pic/lex.c: New COMMAND keyword.
5830         * pic/pic.y (print_args, print_arg): New rules.
5831         (placeless_element): Use print_args for PRINT.
5832         New COMMAND element.
5834 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
5836         * troff/input.c (terminal): Handle missing argument correctly.
5838         * pic/pic.y (text_expr): New rule.
5840         * pic/pic.y: Implement := operator.
5842 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
5844         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
5845         mdoc.
5847 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
5849         * ps/devps/dingbatsrmap: Include this in the distribution.
5851         * macros/tmac.doc: Replace with new version from 2nd Networking
5852         Release. Fix loading of doc-* files.
5853         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
5854         * macros/tmac.doc.old: New file.  Apply fixes that had been
5855         applied to old tmac.doc.
5856         * macros/tmac.andoc: Check that we're running under groff.
5857         * macros/Makefile: Rework.
5859 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
5861         * tbl/table.h (format_type): 
5862         * refer/token.h (token_type): If NESTED_TYPES is defined, use
5863         typedef to make these types visible at file scope.
5864         * Makefile: Add NESTED_TYPES configuration option.
5866         * troff/div.c (mark): At the top level use the value of
5867         nl_reg_contents rather than the current vertical position.
5869 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
5871         * tty/tty.c: Implement \D for horizontal or vertical lines.
5872         (tty_printer::set_char): Use vec_used+2 as serial number.
5873         Don't allow size of vector to exceed USHRT_MAX-2.
5874         Split off part into...
5875         (tty_printer::add_char): New function.
5876         (tty_printer::draw): New function.
5877         (compare_glyph): Handle equal serial numbers.
5878         (tty_printer::end_page): Handle overstruck characters from \D.
5879         (main, usage): Implement -d option.
5881 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
5883         * tbl/main.c (process_format):
5884         * eqn/text.c (split_text):
5885         * troff/input.c (token::next): Use inner block for declarations
5886         with initializers in switch statement.
5888 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
5890         * pic/common.c (common_output::dash_line): Cope with zero-length
5891         lines.
5893 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
5895         * Version 1.04 released.
5897 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
5899         * macros/tmac.an (TH): Define a macro an-init to define variables
5900         based on command line arguments.
5901         (an-header): Call it.
5903 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
5905         * Makefile (install.mm): Rename to install.dwbmm.
5907         * Makefile: Integrate mm.
5908         * mm: New directory.
5910 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
5912         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
5913         <sys/types.h>.
5915         * pic/troff.c (troff_output::simple_spline,
5916         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
5917         shadowing parameter.
5919         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
5921         * lib/ptable.h: Add explicit casts when converting from unsigned
5922         long to unsigned.
5924         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
5925         * dvi/devdvi/Makefile: Install SA, SB.
5927         * refer/indxbib.c: Add declaration of mktemp.
5929         * refer/lookbib.c: Add declaration of isatty.
5931 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
5933         * pic/lex.c (interpolate_macro_with_args):  While collecting
5934         arguments, keep track of whether we're in a string.
5936 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
5938         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
5939         down with \v, so as to avoid problems with top of page trap
5940         setting no space mode.
5942 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
5944         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
5946 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
5948         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
5949         Improve error message.
5951 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
5953         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
5954         printf("%03o");
5956 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
5958         * groff.c (possible_command::execp): Always use _exit() after a
5959         failed exec.
5961         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
5962         NO_SYS_WAIT_H   configuration options.
5963         * groff.c: Use these options.  Use POSIX-style macros to extract
5964         fields from the status returned by wait().
5966 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
5968         * tbl/table.c (table::compute_separation_factor): Allow the
5969         separation factor to drop to 0.
5971 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
5973         * refer/search.c: Include <errno.h>.
5975 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
5977         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
5979         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
5980         C++. 
5982         * pic/lex.c (input_stack::bol): Move definition out of class body.
5984         * pic/main.c: On MSDOS munge argv[0].
5986         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
5988         * lib/ptable.c (hash_string): Use unsigned long rather than
5989         unsigned.
5990         (next_ptable_size): Use unsigned rather than int.  Give an error
5991         message if we've hit the largest table size.
5992         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
5993         table size.
5995         * pic/object.h (object_spec): Make flags unsigned long.  Declare
5996         flags as const unisgned long rather than as enums.
5998         * pic/output.c: Deleted.
6000         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
6002         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
6003         Add additional argument.
6004         (line_entry::note_double_vrule_on_{left,right}): Set value of
6005         douvle_vrule_on_{right,left} flag according to argument.
6006         (simple_line_entry::simple_print,
6007         simple_line_entry::double_line_print): If adjacent to double vrule
6008         on a corner extend rather than shorten the rule by half the double
6009         vrule sep.
6011         * troff/number.c (parse_term): In checking for overflow, handle the
6012         case where the current horizontal position is negative.
6014 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
6016         * pic/object.c (draw_arrow): Check for object having zero length.
6018 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
6020         * eqn/main.c (do_file): Split off inline equation handling into...
6021         (inline_equation): New function.  Search for starting delimiter
6022         using...
6023         (delim_search): New function. Don't recognize a delimiter that
6024         occurs in the name of an escape sequence, number register, string
6025         etc.
6027 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
6029         * eqn/delim.c (delim_box::compute_metrics): Don't call
6030         define_extensible_string if left is 0.
6031         (delim_box::output):  Don't print the left delimiter if left is 0.
6032         (delim_box::debug_print): Check for left == 0 before calling printf.
6034 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
6036         * troff/Makefile (majorminor.c): Include only digits in
6037         minor_version.
6039 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
6041         * refer/dirnamemax.c: new file.
6042         * refer/genlimits.c: Deleted.
6043         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
6044         Don't check path length.
6045         * refer/Makefile: Add dir_name_max.o; delete genlimits.
6046         * Makefile: Add PATHCONF_MISSING option.
6048         * refer/indxbib.c (get_cwd): New function.
6049         (main): Use get_cwd().
6050         * lib/getcwd.c: New file.
6051         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
6052         GETCWD in SUBFLAGS.
6053         * lib/Makefile: Compile getcwd.o.
6055         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
6056         userdict.
6058         * refer/indxbib.c (main): Check success of mktemp.
6060         * lib/tmpfile.c: New file.
6061         * lib/Makefile: Add tmpfile.c.
6062         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
6063         * ps/ps.h: Delete declaration of mktemp().
6064         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
6065         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
6066         * driver/driver.h: No need now to include errno.h.
6068         * everywhere: Set errno to 0 before calling fopen().
6070         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
6071         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
6072         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
6074 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
6076         * troff/env.h (translate_space_to_dummy): Declare it.
6077         * troff/env.c (environment::space_newline, environment::space):
6078         If translate_space_to_dummy is set then make the width of spaces 0.
6079         * troff/input.c (translate): If the second character of a
6080         translation is a space, translate to unbreakable space.  If the
6081         first character is a space, set or clear translate_space_to_dummy
6082         according to whether the second character is \&.  Weird!
6084 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
6086         * groff.c (run_commands): Don't use non-zero exit code because a
6087         command gets SIGPIPE.
6089         * groff.c, groff.sh: Use -mXps with -TXps.
6091         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
6092         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
6093         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
6094         (ps_printer::special): New specials invis and endinvis.
6095         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
6096         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
6097         (ps_printer::end_page): Check that invis_count == 0.
6098         (ps_printer::invis_count): New member.
6099         (ps_printer::ps_printer): Initialize invis_count to 0.
6101         * troff/env.c (environment::hyphenate_line): Hyphenation
6102         indicator at beginning of word inhibits splitting after -, \(em
6103         etc.
6105         * pic/pic.y (element): Allow another element to follow } without
6106         any intervening separator.
6108 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
6110         * pic/lex.c (get_delimited): Allow tabs before delimiter.
6112 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
6114         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
6115         declaration of wait() in header files.
6116         * Makefile: Get rid of -DHAVE_UNION_WAIT.
6118         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
6120         * lib/lib.h: Declare return type of strerror as char *.
6122         * man/Makefile: Add g flag to sed substitutions.
6123         * Makefile (shgroff, bindist): Likewise.
6125 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
6127         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
6128         * ps/devps/prologue (PBEGIN): Define showpage after pushing
6129         userdict.
6131 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
6133         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
6134         userdict.
6136 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
6138         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
6139         group.
6141 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
6143         * troff/input.c (define_number_reg):  If currently undefined,
6144         don't define it if the argument is an invalid expression.
6146         * Makefile: Ignore return value of `if' commands without `else'
6147         parts.
6149         * Makefile: Split up CPPDEFINES into a series of separate
6150         configuration options.
6152         * troff/input.c (init_registers): Use time_t instead of long
6153         unless LONG_FOR_TIME_T is defined.  Use returned result rather
6154         than passing pointer.
6155         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
6157         * lib/Makefile (fontpath.h): Use gendef.
6159 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
6161         * troff/input.c (input_iterator::shift): Delete argument name.
6162         * troff/node.c (suppress_output_file::really_begin_page,
6163         suppress_output_file::really_transparent_char, node::ascii_print,
6164         node::tprint): Delete names of unused arguments.
6166 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
6168         * refer/label.y (string):  Pass $4 to command_error.
6170 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
6172         * Version 1.03 released.
6174 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
6176         * Makefile: Pass definition of SHELL in SUBFLAGS.
6178         * gendef: New file.
6179         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
6180         ps/Makefile: Use gendef to construct header files that are
6181         constructed from the Makefile.
6183         * macros/Makefile: make all should build stripped version of tmac.e.
6185         * refer/Makefile (clean): Remove y.output.
6187 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
6189         * ps/pfbtops.c (main): Add -v option which prints out a version
6190         number.
6191         * ps/Makefile (pfbtops): Link with libgroff.a.
6193 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
6195         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
6196         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
6198         * refer/lkbib.c (main): Always terminate reference with blank
6199         line.
6200         * refer/lookbib.c (main): Likewise.
6202         * refer/linear.c (file_buffer::load): Check that the file is not a
6203         binary file.
6205         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
6206         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
6207         Delete second inclusion of <sys/param.h>.
6209 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
6211         * troff/token.h (token::special): Deleted.
6213         * tbl/main.c (process_format): Rework so that opt->tab_char is
6214         recognized only when appropriate.
6216         * ps/Makefile (clean): Remove pfbtops.
6218 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
6220         * lib/font.c (text_file::next): Don't return if we have got a
6221         blank line.
6223 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
6225         * refer/refer.c (store_reference): Get hash code from old_table[i]
6226         when rehashing the table.
6228 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
6230         * eqn/box.c (box::top_level): Save size and prev size using \R and
6231         restore it afterwards. Set the size to the size at the beginning
6232         of the line.
6233         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
6234         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
6236         * refer/Makefile (limits.h): Use ./genlimits.
6238 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
6240         * refer/index.c: Delete declarations of stat() and fstat().
6242 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
6244         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
6246 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
6248         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
6250 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
6252         * troff/input.c (token::get_char): Handle \e.
6254         * refer/linear.c: Delete declarations of fstat() and stat().
6256 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
6258         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
6259         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
6261 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
6263         * troff/input.c (do_define_macro): Improve error handling for end
6264         of file while defining macro.
6266 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
6268         * eqn/box.h: Fix declaration of set_gsize.
6269         * eqn/box.c (set_gsize): Make argument const char *.
6270         (gsize): Declare as char *.
6271         * eqn/main.c (main): Don't convert gsize to int.
6272         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
6274         * Version 1.02 released.
6276 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
6278         * macros/tmac.andoc: New file.
6279         * macros/Makefile: Install tmac.andoc.
6281         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
6282         operator new and delete on OP_DELETE_BROKEN not being defined.
6283         * Makefile: Mention OP_DELETE_BROKEN.
6285 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
6287         * Makefile (bindist): Pass SUBFLAGS.
6289 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
6291         * Makefile, groff.c: Pass definitions to groff.c via device.h.
6293         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
6294         parameter.
6296         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
6298         * ps/ps.h, ps/psrm.c: Make comment_table and
6299         header_comment_table local to resource_manager::process_file.
6301         * groff.sh: With -TXps pass -printCommand option to gxditview.
6303         * groff.c (possible_command::print): Implement using
6304         append_arg_to_string.
6306         * xditview: Merge in new implementation with own ChangeLog.
6308 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
6310         * groff.c (main): Implement PRINT_OPTION.
6311         (append_arg_to_string): New command.
6312         (device_table): Set PRINT_OPTION flag for Xps.
6314 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
6316         * troff/groff.h: Rename to troff.h.
6318         * pic/lex.c (lookup_keyword, docmp): New functions.
6319         (get_token): Use new lookup_keyword.
6320         Don't include key.h.
6321         * pic/key.[ch], pic/pic.gperf: Deleted.
6322         * pic/Makefile: Remove gperf stuff.
6324         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
6325         into output.h.
6326         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
6328         * troff/Makefile, troff/node.c: Move definition of
6329         STORE_WIDTH into node.c.
6331         * etc/grog.pl, etc/grog.sh: Support -mdoc.
6333 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
6335         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
6336         dvi/devdvi/texb.map: Add lq and rq.
6337         dvi/devdvi: Regenerate fonts.
6338         * ps/devps/textmap: Add lq and rq.
6339         * ps/devps: Regenerate fonts.
6340         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
6341         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
6343         * pic/object.c (position_rectangle): When checking radius
6344         cope with possiblity that width or height is negative.
6345         (box_object::box_object): Have separate xrad and yrad with
6346         signs matching signs of dim components.
6347         (box_object::{north,south}_{east,west}): Use xrad and yrad.
6348         (box_object::print): With rounded boxes use absolute values
6349         for dim and rad arguments.
6351         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
6352         in fontpath.h.
6354         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
6356         * various files: Add explicit destructors to keep Saber CC +d
6357         happy.
6359 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
6361         * eqn/box.c (box::top_level): Restore fonts correctly after
6362         font changes in line containing inline equation.  Also
6363         restore previous font as well as current font.
6364         * eqn/pbox.h: Define necessary string and register names.
6366         * troff/input.c (token::next): Case 'R' calls do_register.
6367         (do_register): New function.
6369 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
6371         * groff.c, groff.sh: Support Xps device.  Allow each device
6372         to have a pseudo_name and a real_name.
6374         * groff.c (run_commands): Don't print `Broken pipe' messages.
6376         * ps/pfbtops.c: New file.
6377         * ps/Makefile: Add pfbtops.
6379         * troff/number.c (parse_term): Improved error message.
6381 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
6383         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
6385         * Makefile: Integrate refer.
6386         * refer: New directory.
6387         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
6388         man/lkbib.man: New files.
6389         * man/Makefile: Support refer man pages.
6391         * lib/lib.h: Declare is_prime.
6392         * lib/prime.c: New file.
6394         * troff/input.c (macro_source): New function.
6395         (init_input_requests): Bind "mso" to macro_source.
6397         * troff/env.c (environment::possibly_break_line): Maintain
6398         pointer to pointer to node to be split in ndp so as to avoid
6399         using address of freed node.
6401         * troff/env.c (environment::hyphenate_line): Maintain pointer to
6402         pointer to first node to be hyphenated in startp so as to
6403         avoid using address of freed node.
6405         * troff/env.c (class trie, class hyphen_trie): Make the
6406         elements of the trie be of type char not unsigned char.
6407         Declare arguments to be const char* instead of unsigned char *.
6408         
6409         * troff/env.c (hyphenate): Initialize hbuf[0].
6411         * troff/input.c (set_string): Declare p to be char * and cast
6412         *p to unsigned char when necessary.
6414         * troff/input.c (do_define_macro): Declare s to be const
6415         char*. Cast element to unisgned char when necessary, Declare
6416         d to be an int.  Handle EOF better.
6418         * troff/Makefile, troff/input.c: Different scheme for passing
6419         definitions of MACROPATH, HYPHENFILE and DEVICE.
6421 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
6423         * tty/devascii/R.proto: Delete entry for em.
6424         * tty/devlatin1/R.proto: Likewise.
6426 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
6428         * troff/input.c (translate): Stop when we get a space. Treat eof
6429         like newline.
6431         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
6433 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
6435         * tbl/main.c (process_format): A font name following a `f'
6436         modifier that starts with a digit can be only one character long.
6437         Also deal with EOF on the second character of the font name.
6439 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
6441         * troff/input.c (token::next): Turn \~ into an
6442         unbreakable_space_node.
6443         * troff/node.c (unbreakable_space_node): New class.
6444         * troff/node.h: Declare it.
6446 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
6448         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
6449         it's >= 0, before outputting it as a single byte.
6451 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
6453         * lib/font.c: Make font_char_metric::code an int.
6454         (font::get_code): Change return type to int.
6455         (font::load): Allow code to be arbitrary integer.
6456         * lib/font.h (font::get_code): Change return type to int.
6457         (font::number_to_index): Change argument type to int.
6458         * troff/input.c (token::next):  In case 'N', allow any value.
6459         Store value in token::val.
6460         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
6461         (token::get_char, token::add_to_node_list, token::process): Get
6462         number from val.
6463         (charinfo::set_number): Change argument to int.
6464         (charinfo::get_number):  Require that NUMBERED flag be set.
6465         (get_charinfo_by_number): Store numbered characters not between 0
6466         and 255 in a dictionary.
6467         * troff/charinfo.h (get_charinfo_by_number): Change argument type
6468         to int.
6469         (charinfo::number): Change type to int.
6470         (charinfo::set_number): Change type of set_number to int.
6471         * troff/node.c (troff_output_file::put_char_width,
6472         troff_output_file::put_char): Test whether character is numbered
6473         using charinfo::numbered().
6474         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
6475         values of num.
6476         * lib/nametoindex.c: New implementation to cope with arbitrary
6477         number characters.
6479         * troff/input.c (token::operator==): Test val for
6480         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
6481         TOKEN_SIZE.
6483         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
6484         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
6486 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
6488         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
6489         variable.
6491         * all Makefiles: rm targets of cp and >.
6493         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
6494         it.
6496         * eqn/lex.c (def_table): Add dollar.
6498 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
6500         * troff/input.c (do_width): Push back newline before closing delim
6501         like do_bracket.
6503 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
6505         * groff.c (possible_command::prepend_arg): New function.
6506         (main): Prepend device -m option.
6507         * groff.sh: Put device -m options before command-line options.
6509 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
6511         * macros/tmac.an (IP): Quote argument to TP.
6513         * ps/ps.c (main): New option -b, which sets...
6514         (broken_flags): New variable.
6515         (ps_printer::~ps_printer): Incorporate the setup section in the
6516         prolog if (broken_flags & NO_SETUP_SECTION).
6517         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
6518         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
6519         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
6520         ps_printer::print_needed_font_comment,
6521         ps_printer::print_supplied_font_comment,
6522         ps_printer::print_include_font_comments,
6523         ps_printer::lookup_doc_font, ps_printer::download_fonts,
6524         ps_printer::read_download_file, read_document_fonts, add_font,
6525         skip_line, parse_fonts_arg, document_font::document_font,
6526         document_font::~document_font, document_font::download,
6527         ps_output::include_file):  Deleted.
6528         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
6529         rather than %!PS-Adobe-2.0.  Make calls to
6530         resource_manager::need_font for each font that we used. Replace
6531         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
6532         print_supplied_font_comment, print_needed_font_comment by call to
6533         resource_manager::print_header_comments. Output %%Orientation
6534         comment. Output %%Requirements: numcopies comment if ncopies > 1.
6535         Don't output the prolog directly.  Instead call
6536         resource_manager::output_prolog.  Only define #copies when ncopies
6537         > 1.  Delete calls to print_include_font_comments  and
6538         download_fonts.  Add call to resource_manager::document_setup.
6539         (ps_printer::do_file): Call resource_manager::import_file instead
6540         of including it ourselves.
6541         (ps_printer::do_import): Likewise.  Also don't call
6542         merge_import_fonts. Push userdict on the dictionary stack before
6543         and pop it afterwards.
6544         Move declaration of ps_output into ps.h.
6545         * ps/psrm.c: New file implementing resource_manager class.
6546         * ps/ps.h: New file declaring ps_output and resource_manager
6547         classes.
6548         * ps/devps/zapfdr.ps:
6549         * ps/devps/symbolsl.ps:
6550         * ps/devps/prologue:  Use 3.0 conventions.
6551         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
6552         Add default definition of BROKEN_SPOOLER_FLAGS.
6553         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
6554         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
6556 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
6558         * etc/grog.pl: New file.
6559         * Makefile (GROG): New variable.
6560         Add GROG to SUBFLAGS.
6561         * etc/Makefile (GROG): New variable.
6562         (install.nobin): Install $(GROG) rather than grog.sh.
6564 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
6566         * eqn/special.c (special_box::compute_metrics): Make the input and
6567         output strings the same.  Get the new height and depth from the
6568         predefined height and depth registers.  Also make subscript kern
6569         and skew available.
6570         (special_box::compute_subscript_kern, special_box::compute_skew):
6571         New functions.
6573         * eqn/box.c (pointer_box::compute_skew,
6574         simple_box::compute_metrics, box::top_level)
6575         * eqn/text.c (prime_box::compute_metrics,
6576         prime_box::comput_subscript_kern)
6577         * eqn/limit.c (limit_box::compute_metrics):
6578         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
6579         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
6580         negative numbers in `nr' requests with a leading 0.
6582 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
6584         * eqn/special.c: New file.
6585         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
6586         Add new rule for simple.
6587         * eqn/lex.c (token_table): Add SPECIAL.
6588         * eqn/box.h: Declare make_special_box.
6589         * eqn/Makefile: Add special.[co].
6591 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
6593         * ps/devps/prologue: Possibly set packing to true while defining.
6594         Create grops dictionary here.  Initialize local variables before
6595         defining procedures.
6596         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
6597         the dictionary stack. Set strokeadjust and overprint to false if
6598         the relevant operators are defined.
6599         (PEND): New procedure.
6600         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
6601         prologue.  Do everything else in the setup section.
6602         (ps_printer::do_import): Just call PBEGIN and PEND around the
6603         picture. Also push userdict before, and pop it afterwards.
6605 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
6607         * troff/node.c (bracket_node::tprint): Brackets were being printed
6608         1m too low.
6610         * macros/tmac.an (SH, SS): Set fill mode.
6612 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
6614         * troff/div.c (top_level_diversion::begin_page): Set
6615         high_water_mark to 0.
6617 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
6619         * man/mdate.sh: New file.
6620         * man/mdate.c: Deleted.
6621         * man/Makefile: Use mdate.sh instead of mdate.
6622         (mdate): Deleted.
6624         * eqn/lex.c (do_gsize): Supply missing argument to error message.
6626 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
6628         * man/mdate.c: New file.
6629         * man/*.man: Replace modification date by @MDATE@.
6630         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
6631         (mdate): New target.
6633         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
6634         Remove illegal input characters.
6636 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
6638         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
6640 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
6642         * troff/div.c (begin_page): Change behaviour when
6643         !first_page_begun and !break_flag.
6645         * troff/input.c (do_name_test): Return 0 if argument is empty.
6647         * troff/input.c (read_long_escape_name): Require closing ] to be
6648         at same input level as opening [.
6650         * troff/input.c (read_increment_and_escape_name): New function.
6651         (get_copy, process_input_stack): Use this for \n.
6653 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
6655         * troff/div.c (top_level_diversion::begin_page): Ignore the
6656         current value of page_number if !first_page_begun.
6658         * groff.c (main): Fix declaration of buf.
6660         * troff/input.c (do_name_test): New function.
6661         (token::next): Implement \A.
6662         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
6663         (token::description, token::add_to_node_list, token::process):
6664         Handle TOKEN_ESCAPE.
6665         * troff/token.h: New token TOKEN_ESCAPE.
6667 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
6669         * pic/main.c (do_picture): Allow space before and after filename
6670         following `<'.  Check that the filename is not empty.
6672 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
6674         * Version 1.01 released. 
6676         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
6678         * dvi/tmac.dvi: ftr HR to H.
6680         * macros/tmac.e: Round up computation of $r.
6682         * xditview/tmac.X:  Don't give up completely in compatibility mode.
6683         Use \n(.s instead of \n[.s].
6685         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
6686         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
6687         Add u to factors inside \s[...]. Rename frac to dvi-frac.
6688         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
6689         short names in the char definitions.
6691         * ps/tmac.ps: Don't give up completely in compatibility mode.
6692         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
6693         quote in front of \n(.s. Add u to factors inside \s[...].
6695 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
6697         * tty/tmac.tty: Call the nroff request.
6699         * macros/tmac.e ((x, )x):  Better definitions that work properly
6700         in a diversion.
6701         (@0, @1): Helper macros for (x.
6703         * macros/tmac.e ($s, hl): Use \l rather than \D.
6705         * tty/tmac.tty: Make it work better in compatibility mode.
6706         (pchar): Rename to tty-char.
6708         * macros/tmac.e (@E): New macro.
6709         (r, i, b, rb, bi): Use @E.
6711         * macros/tmac.e (@F): Don't use (;...) syntax.
6713         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
6714         it was modified for groff.
6716         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
6718         * macros/tmac.e (<., .>): Removed.
6719         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
6721         * macros/tmac.e: Remove check that groff is being used.
6723         * macros/tmac.e (@C): Change families only if using groff; turn
6724         compatibility mode off while changing familes. Save compatibility
6725         mode before changing families and restore it afterwards.
6727         * macros/tmac.e (@h): Remove test for offset + line length.
6729         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
6730         (lo, th, ac): Define to call @S instead of using als.
6732         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
6733         the ratio of the vertical spacing to the point size in units
6734         expressed as a percentage.  Use these instead of $10r and $10R,
6735         Delete $10r and $10R.
6737         * lib/font.c (font::load): In default computation of space_width,
6738         divide by sizescale.  Use scale_round.
6740         * macros/tmac.an (TP): Don't call `nf'.
6741         (an-do-tag): Don't call `fi'.
6743 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
6745         * troff/input.c (process_input_stack): Handle the case where
6746         spaces at the beginning of an input line are followed by a
6747         newline.
6749 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
6751         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
6752         * groff.sh: Use pic -x with the dvi device.
6754         * dvi/devdvi/FontMakefile (H): Don't use -s.
6756         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
6757         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
6758         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
6759         in FONTS.
6761 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
6763         * ps/psfig.diff: New file.
6764         * ps/tmac.psfig: New file.
6766 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
6768         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
6769         (]-): Don't call ref*do-tl.
6771         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
6773         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
6774         (fn@do-FS): Rename to fn*do-FS.
6776         * troff/input.c (transparent_translate): New function.
6777         (process_input_stack): Apply transparent_translate before calling
6778         diversion::transparent_output(unsigned char).
6780 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
6782         * troff/input.c (do_define_macro): Define the macro before calling
6783         skip_line.
6785         * xditview/Makefile: Add DEVICES variable.  Change install target
6786         to use this.
6788 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
6790         * groff.c (run_commands): Handle the possibility that there are
6791         child processes other than those forked by us.
6793 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
6795         * lib/string.c (string::append): New function.
6796         * lib/stringclass.h: Declare it.
6798 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
6800         * eqn/main.c (main): New option -N which sets
6801         no_newline_in_delim_flag. 
6802         (do_file): If no_newline_in_delim_flag is set don't allow newlines
6803         in delimiters.
6804         * groff.c (main): Pass -N on to eqn.
6805         (help, synopsis): Mention -N.
6806         * groff.sh: Implement -N.
6808 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
6810         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
6811         (]-): Call ref*do-tl if ref*need-tl is non-zero.
6812         (XP): Allow as initializer.
6814 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
6816         * troff/env.c (environment::wrap_up_field): If field_spaces are
6817         non-zero and we have a current_tab, subtract padding from
6818         tab_distance.  If this makes tab_distance <= 0, use the next tab
6819         stop instead.  If there isn't any next tab or it's a left tab,
6820         wrap up the current tab.
6821         (environment::start_field): Initialize tab_precedes_field.
6822         (environment::wrap_up_tab): If there's a current field, update
6823         pre_field_width, field_distance and tab_precedes_field.
6824         * troff/env.h (environment::tab_precedes_field): New member.
6826 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
6828         * ps/ps.c (ps_printer::do_file): New function.
6829         (ps_printer::special): Bind to `file' special.
6830         (ps_printer::do_exec): Set ndefined_styles to 0.
6832 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
6834         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
6835         Avoid stripping first character from the start of unrecognized
6836         escapes.  Use lex_error instead of error to report errors.
6837         * eqn/lex.c (get_token): Rework handling of escapes.
6838         (lex_error): Move declaration into...
6839         * eqn/eqn.h.
6841         * xditview/xditview.c (main): Make -page option work.
6843         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
6845 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
6847         * macros/tmac.s (B2): Correct size of box.
6849 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
6851         * macros/tmac.s (B2): Postpone drawing the box until in the
6852         top-level diversion.
6854         * tty/tmac.tty: Add font translations for C, CR, CW.
6856         * groff.c (synopsis, help): Document -i.
6857         * groff.sh: Implement -i.
6859         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
6860         Simplify the construction of SN.
6862         * troff/number.c (parse_term): Give `|' a higher precedence.
6863         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
6864         accordingly.
6866         * macros/tmac.s (B2): Use par@finish instead of par@reset.
6868 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
6870         * lib/string.c (string::move): New function.
6871         * lib/stringclass.h: Declare it.
6873 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
6875         * troff/env.c (distribute_space): Add optional argument
6876         `force_forward'.
6877         (environment::wrap_up_field): Call distribute_space with
6878         `force_forward' argument of 1.
6880 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
6882         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
6883         Inline it.  Move reallocation into...
6884         (string::grow1): New function.
6885         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
6886         dependencies to include library header files.
6887         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
6889 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
6891         * macros/tmac.s (@NH): Use the same number registers than -ms does
6892         for the heading level counters.  Use the same string that -ms does
6893         for the number for this heading.
6895 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
6897         * lib/new.c (operator new): Cast result of malloc to char *.
6899         * troff/input.c (spring_trap, lookup_request): Add assert that nm
6900         is not null.
6902 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
6904         * groff.c (main): Support -i.
6906 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
6908         * pic/pic.h: Include <osfcn.h>.
6910         * ps/ps.c: Add declaration of mktemp.
6912         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
6913         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
6914         argument as union wait *.
6915         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
6916         argument to union wait *.
6918 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
6920         * tty/tmac.tty: Add definition of \(co.
6922         * pic/object.c (make_arc): Only increase radius when radius
6923         strictly less than d.
6924         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
6925         more than once.
6927         * troff/env.c (environment::environment(symbol),
6928         environment::environment(const environment *)):  Initialize
6929         input_trap_count.
6931 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
6933         * tbl/main.c (main): Add exit(0).
6935         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
6937         * pic/main.c (main):
6938         * eqn/main.c (main):
6939         * tbl/main.c (main):
6940         * etc/soelim.c (main):
6941         * driver/printer.c (printer::~printer):
6942         * troff/node.c (real_output_file::~real_output_file,
6943         real_output_file::flush):  Check for errors on stdout.
6945         * most files: Add 1991 to copyright notice.
6947         * macros/tmac.s: Don't test \n(.x and \n(.y.
6949         * troff/input.c (token::next): Rename `escape_char' label to
6950         `handle_escape_char' and `normal_char' label to
6951         `handle_normal_char'.
6953 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
6955         * groff.c (main, synopsis, help): Support -a option.
6956         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
6957         to trflags while parsing options.
6959 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
6961         * troff/number.c (parse_term): With `m', `M' and `n' scale
6962         indicators, convert scale factor to hunits before scaling.
6964 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
6966         * lib/font.c (scale_round): Better test for overflow when n is
6967         negative.
6969 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
6971         * tbl/main.c (process_format): Add second argument of type
6972         options*. Change callers.  Allow opt->tab_char as well as '\t'
6973         between format items.
6975 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
6977         * macros/tmac.an (PD): With no arguments, make sure register PD is
6978         at least \n[.V].
6979         (TH): Call PD with no argument, instead of setting register PD
6980         directly.
6982 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
6984         * Version 1.00 released.
6986 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
6988         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
6990         * dvi/devdvi/DESC: Mount CW instead of CR.
6992         * dvi/tmac.dvi: Add definition of \(tm.
6994         * dvi/devdvi/texsy.map: Add lh, and rh.
6995         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
6996         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
6998         * dvi/devdvi/FontMakefile: Generate H from cmss10.
6999         * dvi/devdvi/Makefile: Install H.
7000         * dvi/devdvi/H: New file.
7002 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
7004         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
7005         be 0.
7007 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
7009         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
7011         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
7013         * macros/tmac.s (@EN): Handle the case where the equation is empty
7014         but the label is not.
7016 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
7018         * troff/groff.h: New warning category WARN_SPACE.
7019         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
7020         WARN_SPACE to warning_table.
7021         (interpolate_macro): Give a warning of type WARN_SPACE if the name
7022         is longer than two characters and is not defined, but the first
7023         two characters do make a defined name.
7025         * PROBLEMS: New file.
7027         * CHANGES: New file.
7028         * README-0.6, README-1.00: Deleted.
7030         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
7031         * xditview/devX75/Makefile: Make devX75-12.
7032         * xditview/devX100/Makefile: Make devX100-12.
7034         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
7035         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
7037 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
7039         * README-0.7: Rename to README-1.00.
7041         * macros/tmac.pic: New file.
7042         * macros/Makefile (install.nobin): Install tmac.pic.
7044 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
7046         * troff/env.c (hyphen_word): Correct the test for whether the
7047         token is a hyphen.  Reset npos to 0.
7049         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
7051 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
7053         * macros/tmac.s (ds*common-end): Call par*reset.
7054         (PE): Likewise.
7055         (par@reset-indent): Deleted.
7057         * macros/tmac.s (@IP): Divert the label.
7059 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
7061         * xditview/draw.c (setGC): Use a line width of .1m rather than
7062         .04m by default; round rather than truncate value.
7064         * tbl/table.c (class empty_entry): New class.
7065         (empty_entry::empty_entry, empty_entry::line_type): New functions.
7066         (table::add_entry): Represent empty entries by objects of type
7067         empty_entry.
7068         (table_entry::line_type): Return -1.
7069         (table::determine_row_type): Ignore entries with line_type 0.
7070         Treat type -1 as non-lines.
7072 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
7074         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
7075         macros/tmac.s: Rename \(-d to \(Sd.
7077 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
7079         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
7080         * xditview/libXdvi/DviChar.c: Likewise.
7081         * dvi/devdvi/texsy.map: Add `<<', `>>'.
7083 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
7085         * troff/div.c (top_level_diversion::begin_page): Call
7086         init_output() if the_output is 0.
7088 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
7090         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
7091         ESCAPE_c.
7092         (get_copy): Turn \E into ESCAPE_E.
7093         (token::process, asciify): Handle ESCAPE_E.
7095         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
7096         (RD): New macro.
7097         (DS): Implement `.DS R'.
7099 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
7101         * macros/tmac.s (FS): New macro.
7103         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
7105         * macros/tmac.s (cov*tl-init): Remove after first execution
7106         instead of aliasing to @nop.  Call top of page macro explicitly
7107         instead of setting trap; call @init first.  Set pg@top as top of
7108         page macro.
7109         (cov*auto-init): Deleted.  Set cov*tl-init instead of
7110         cov*auto-init as top of page trap. 
7111         (TL, LP): Do a break instead of calling cov*tl-init.
7112         (cov*print): With RP format but no TL, alias FS and FE to @FS and
7113         @FE; in this case also give a warning and always start another
7114         page. No need to set pg@top here.
7115         (cov*tl-init): Rename to cov*first-page-init.
7117         * macros/tmac.s (RP): Do `.pn 0'.
7118         (cov*tl-init): With RP format don't do `.pn 0'.
7120         * macros/tmac.s (pg@cs-top): Set no space mode.
7122         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
7123         (cov*ab-init): Alias TL, AU and AI to these.
7125 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
7127         * macros/tmac.s (@EQ): Move the space before the equation into @EN
7128         (@EN): Do nothing unless \n[dl] is > 0.
7130 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
7132         * pic/object.c (ellipse_object::radius): New function.
7134         * VERSION: Change version to 0.7.
7136         * tbl/table.c (block_entry::do_divert): Declare return type as
7137         void.
7138         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
7140 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
7142         * troff/column.c: New file.
7143         * troff/Makefile: Corresponding changes.
7145         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
7146         Friend of vunits.
7148         * troff/div.c (top_level_diversion::space): If the space causes
7149         the first-page transition and springs a trap, truncate the space
7150         to 0.
7152 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
7154         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
7155         the document.
7157         * pic/troff.c (troff_output::line_thickness,
7158         troff_output::set_fill): Do a horizontal motion to compensate for
7159         the width of the \D escape sequence.
7161 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
7163         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
7164         (not X75).
7166         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
7167         to printf.
7169         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
7170         Supply empty definition.
7171         (text_entry::simple_print, simple_text_entry::simple_print):
7172         Delete declarations.
7173         (table::add_entry): Represent empty entries by objects of type
7174         `simple_entry'.
7176 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
7178         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
7180         * tbl/table.c (left_text_entry::add_tab): New function.
7182         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
7183         initialize like LP.
7185 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
7187         * troff/env.c (environment::start_field): Give an error message if
7188         there is no next tab.
7190 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
7192         * troff/env.c (hyphenate): Skip initial elements with zero
7193         hyphenation code.
7195         * macros/tmac.s (par@init): Keep VS in points rather than units.
7197 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
7199         * pic/main.c (main): Implement `-c' option.
7200         * pic/output.h: Declare make_tpic_output().
7201         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
7202         protected.
7203         (tpic_output): New class.
7204         (tpic_output::tpic_output, tpic_output::set_pen_size,
7205         tpic_output::command, make_tpic_output): New functions.
7207 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
7209         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
7210         if they're not already defined.
7211         * tbl/table.c (init_output): Don't test \n(.g.
7213         * troff/input.c (do_if_request): Delete `g' condition. Recognize
7214         `d', `r' and `c' conditions even in compatibility mode.
7216 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
7218         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
7219         box.
7221 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
7223         * troff/env.h (environment::prev_line_interrupted): New member.
7224         (environment::get_prev_line_interrupted): New function.
7225         * troff/env.c (environment::newline): Set prev_line_interrupted.
7226         (environment::environment(const environment *),
7227         environment::environment(symbol)): Initialize
7228         prev_line_interrupted.
7229         * troff/input.c (process_input_stack): Don't give special
7230         treatment to space and newline at the beginning of the line if the
7231         previous line was interrupted.
7233 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
7235         * eqn/eqn.y: Disallow PRIME by itself.
7236         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
7237         PRIME.
7238         (def_table): Remove definition of '.  Define prime to be `.
7240         * eqn/eqn.y: Split off part of rule `script' into a new rule
7241         `nonsup'.
7243 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
7245         * macros/tmac.s ({, }): New string aliases.
7247 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
7249         * README-0.7: New file.
7251 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
7253         * macros/tmac.s: New file.
7254         * man/groff_ms.man: New file.
7255         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
7256         * Makefile.bd: Similarily.
7257         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
7258         definition of TMAC_S.
7259         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
7260         * macros/TODO: New file.
7262 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
7264         * troff/env.c (right_justify): New function.
7265         (init_env_requests): Bind this to request "rj".
7266         (center_lines): Set right_justify_lines to 0. If we get a bad
7267         integer, center 1 line.
7268         (environment::environment(symbol), environment::environment(const
7269         environment *)): Initialize right_justify_lines.
7270         (environment::get_right_justify_lines): New function.
7271         (init_env_requests): Bind this to number_register ".rj".
7273         * troff/env.c (environment::choose_breakpoint): Implement
7274         hyphenation_margin and hyphenation_space.
7275         (environment::get_hyphenation_space,
7276         environment::get_hyphenation_margin): New functions.
7277         (init_env_requests): Bind these to .hys and .hym.
7278         (hyphenation_space_request, hyphenation_margin_request): New
7279         functions
7280         (init_env_requests): Bind these to hys and hym.
7281         (environment::environment(symbol), environment::environment(const
7282         environment *)): Initialize hyphenation_margin and
7283         hyphenation_space.
7284         * troff/env.h: Corresponding changes to class environment.
7286 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
7288         * troff/div.c (blank_line): Always do a break.
7290         * eqn/box.c (do_text): Turn off escapes while appending text to
7291         string.
7293 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
7295         * troff/input.c (while_break_request, while_continue_request): New
7296         functions.
7297         (init_input_requests): Bind these to "break" and "continue".
7298         (while_depth, while_break_flag): New variables.
7299         (while_request): Update while_depth.  Break out of loop if
7300         while_break_flag is set.
7302 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
7304         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
7305         rather than 0.
7307 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
7309         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
7311         * stringify: New file.
7312         * Makefile (groff.o): Use stringify.
7314         * xditview/tmac.X: Remove definition of \(rn.
7315         * xditview/libXdvi/DviChar.c: Remove radicalex from
7316         Adobe_symbol_map.
7318 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
7320         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
7321         (alphabetic_block_entry::alphabetic_block_entry,
7322         alphabetic_block_entry::divert, alphabetic_block_entry::print):
7323         New functions.
7324         (block_entry::divert): Split off body into ...
7325         (block_entry::do_divert): If the block is alphabetic, subtract 2n
7326         from the line length; also update the span width to dl+2n, and the
7327         alphabetic span width to dl.
7329         * driver/input.c (do_file):  While reading argument to D command,
7330         when expanding buffer, multiply szp by sizeof(int) rather than 2
7331         in the argument to memcpy.
7333         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
7334         width of alphabetic columns.
7336 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
7338         * troff/node.c (lookup_family): Supply second argument to lookup.
7340         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
7341         search, return immediately if v is 0.
7343         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
7344         (troff_output::start_picture): Set this reg.
7345         (troff_output::end_picture): Remove this reg
7346         * eqn/box.c (box::extra_space): Don't produce `\x's if
7347         EQN_NO_EXTRA_SPACE_REG is defined.
7349         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
7350         * eqn/text.c (split_text): Map ' to \(fm when it's the first
7351         character.
7353 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
7355         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
7356         requests.
7358         * troff/div.c (top_level_diversion::top_level_diversion):
7359         Initialize page_number to 0.
7361 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
7363         * groff/troff (environment::environment(const environment *)):
7364         Initialize name to e->name, rather than "anonymous".
7366 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
7368         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
7369         requested_page.  Split middle part into ...
7370         (FindPage): New function.
7371         (SetValues): If we don't yet know the last page, and the requested
7372         page is greater than the current page, call FindPage.
7373         Update the font_map_string before doing this.
7375         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
7376         Translate \(lh and \(rh into left and right double arrows.
7378         * troff/node.c (class hyphen_inhibitor_node): New class.
7379         (hyphen_inhibitor_node::hyphen_inhibitor_node,
7380         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
7381         hyphen_inhibitor_node::type,
7382         hyphen_inhibitor_node::get_hyphenation_type): New functions.
7383         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
7384         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
7385         word.
7387 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
7389         * troff/node.h (dummy_node::get_hyphenation_type,
7390         transparent_dummy_node::get_hyphenation_type):  Declare them.
7391         * troff/node.c: (dummy_node::get_hyphenation_type,
7392         transparent_dummy_node::get_hyphenation_type): New functions.
7394 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
7396         * xditview/libXdvi/draw.c: If M_PI not defined after including
7397         math.h, then define it.
7399         * xditview/Makefile: Add definition of AR. Pass it to the submake
7400         in libXdvi.
7401         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
7403 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
7405         * troff/dictionary.h (object_dictionary::alias): Declare return
7406         value as int.
7407         * troff/dictionary.c (object_dictionary::alias): Return non-zero
7408         if the old name was defined.
7409         * troff/input.c (alias_macro): Give a warning if the old name was
7410         not defined.
7411         * troff/reg.c (alias_reg): Likewise.
7413 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
7415         * troff/input.c (token::next): Delete implementation of \R.
7417         * macros/Makefile: Strip comments from tmac.e while installing it.
7419         * troff/input.c: New variable `nroff_mode'.
7420         (troff_request, nroff_request): New functions.
7421         (init_input_requests): Bind `troff' and `nroff' to troff_request
7422         and nroff_request.
7423         (do_if_request): Compute results of t and n conditions from
7424         nroff_mode.
7426         * text/text.c (split_text): Fix typo in >=.
7428         * eqn/lex.c: Add definition of `==' to def_table.
7430 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
7432         * pic/tex.c (tex_output::start_picture): Change the definitions of
7433         \graph and \graphtemp so that they work properly with Plain TeX.
7435         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
7436         argument to `ar' is not less than the first.
7438         * pic/pic.y: Allow a comma between elements of the variable list
7439         in the argument to `reset'.
7441         * pic/object.c (arc_object::arc_object): Fix computation of
7442         radius.
7444         * eqn/main.c (main): Add exit(0).
7446 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
7448         * troff/div.c (begin_page): Test no_space_mode after doing the
7449         break, but still push the page ejector cookie before doing the
7450         break.  Also set the next page number after doing the break.
7451         
7452         * xditview/xditview.c (NewFile): Don't set the title and icon name
7453         if this is the first file and its name is `-'.
7454         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
7455         the X75 and X100 devices.
7456         (main): If a device has the XT_OPTION flag set and there's exactly
7457         one file argument, pass the driver -xrm and -title options to set
7458         the icon name and window title to the name of the file.
7460         * troff/env.c (environment_switch): If there was an argument but
7461         it wasn't a valid number or name, then pop an environment but
7462         don't give an error message on underflow.
7464         * troff/number.c (start_number): Correct spelling in error message.
7466         * troff/input.c (token::delimiter): Don't print an error message
7467         if err is false.
7469         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
7470         ParseDrawFunction if dw->display_enable is true.
7472 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
7474         * pic/pic.y: Parse text positioning like normal attributes, so as
7475         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
7476         positioning attribute.
7478 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
7480         * tbl/main.c (process_data): When in state START while reading a
7481         text block, don't change to state MIDDLE if c is a newline.
7483 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
7485         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
7486         so as to avoid shadowing parameter.
7488 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
7490         * tbl/table.c (trim_space): Deleted.
7491         (table::add_entry): Don't call trim_space.
7493 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
7495         * VERSION: Change version to 0.6.
7497         * troff/number.c (parse_expr): Make == work.
7499 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
7501         * man/grog.man: New file.
7502         * man/Makefile: Add grog.n to MAN1PAGES.
7503         * etc/grog.sh: New file.
7504         * etc/Makefile: Install grog.sh as grog.
7506 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
7508         * troff/input.c (token::next): Implement \E.
7510 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
7512         * xditview/tmac.X: Change font translations to match tmac.ps.
7514         * troff/input.c (non_empty_name_warning): Don't give a warning if
7515         `\{' terminates the name.
7517 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
7519         * ps/devps/symbol.diff: New file.
7520         * ps/devps/FontMakefile: Mention symbol.diff.
7522 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
7524         * troff/node.c (font_position): Use get_long_name to read the
7525         external_name.
7527         * troff/env.c (environment_switch): If we get a number that's < 0
7528         or >= NENVIRONMENTS, treat it like a name.
7529         Change NENVIRONMENTS to 10.
7531         * troff/groff.h: Remove definition of FONTS_MAX.
7532         * troff/node.h (class font_family): Make map a pointer instead of
7533         an array. Add a map_size member. Make it a class. Make nm const
7534         and public. Make invalidate_fontno a friend.
7535         * troff/node.c: Define font_table_size. Make font_info a pointer
7536         rather than an array.
7537         (class troff_output_file): Allocate font_position dynamically. Add
7538         nfont_positions member.
7539         (troff_output_file::set_font): Grow font_position if necessary.
7540         (troff_output_file::~troff_output_file): Delete font_position.
7541         (troff_output_file::troff_output_file): Allocate font_position.
7542         (grow_font_table): New function.
7543         (troff_output_file::really_begin_page,
7544         troff_output_file:really_copy_page): Use nfont_positions rather
7545         than FONTS_MAX.
7546         (mount_font_no_translate, mount_style): Call grow_font_table if
7547         necessary.
7548         (font_family::font_family): Allocate map.
7549         (font_family::make_definite): Grow map if necessary. Use
7550         font_table_size instead of FONTS_MAX.
7551         (font_family::~font_family): New function.
7552         (invalidate_fontno): Use font_family::map_size.
7553         (get_fontno, env_space_width, env_half_narrow_space_width,
7554         env_narrow_space_width, symbol_fotno, is_good_fontno,
7555         get_bold_fontno, make_glyph_node): Use font_table_size rather than
7556         FONTS_MAX.
7557         (next_available_font_position): Never return 0.
7559 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
7561         * ps/tmac.ps: Add font translations for compatibility with dpost.
7563 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
7565         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
7566         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
7567         Move definitions baseline_sep, shift_down, column_sep,
7568         matrix_side_sep into...
7569         * eqn/box.c: Add them to param_table.
7570         * eqn/pbox.h: Add declarations to pbox.h.
7572         * troff/input.c (set_string): Cast value to unsigned char *.
7574         * troff/token.h (process_input_stack): Declare it static before
7575         declaring it a friend.
7577 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
7579         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
7580         and bottom.
7581         * dvi/devdvi/EX: Regenerate.
7583         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
7584         transparent.
7586 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
7588         * eqn/lex.c: In defaults_table, make definition of `dot' call
7589         `dot_def'.  Don't explicitly make it roman.  Similarily for other
7590         accents.
7592         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
7593         argument.
7594         (for_input::get, for_input::peek): Use this.
7595         (do_for): Add by_is_multiplicative argument.
7596         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
7597         Change semantic value of optional_by to be a double plus a flag
7598         saying whethet the by clause is multiplicative.
7600         * eqn/lex.c (get_delimited_text): Remember location of start of
7601         definition.  Improve error handling when EOF is encountered.
7603         * lib/font.h: Rename handle_x_command to
7604         handle_unknown_font_command.
7605         * lib/font.c (font::load): Call handle_unknown_font_command for
7606         any unknown command in the font description file.  Don't call
7607         handle_x_command. Include the name of the command in the argv.
7608         Improve message for unknown command after kernpairs or charset
7609         command.
7610         * ps/ps.c (ps_font::handle_x_command): Rename to
7611         handle_unknown_font_command.  Remove message about `x download'
7612         command.  Give error message for wrong number of arguments.
7613         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
7614         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
7615         handle_unknown_font_command. Give an error message for wrong
7616         number of arguments.  Rename design_size to designsize.
7617         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
7618         checksum', `designsize' instead of `design_size'.
7620 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
7622         * eqn/*.[chy]: Change underaccent to uaccent.
7624         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
7625         give it the same precedence as ACCENT.
7626         * eqn/other.c (make_underaccent_box): New function.
7627         * eqn/box.h: Declare it.
7628         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
7629         def_table.
7631 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
7633         * pic/pic.y (reset_all): New function. Called in rule for RESET.
7634         (parse_init): Call reset_all.
7635         (define_variable): When defining scale reset only those
7636         pre-defined variables that are scaled.
7637         (defaults_table): Add `scale' as non-scaled value.
7639         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
7640         together with the text; allow any number of positioning words;
7641         allow center as a positioning word.
7643         * pic/object.c (output::compute_scale): Get picture maximum height
7644         and width from variables called maxpswid and maxpsht.
7645         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
7647 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
7649         * pic/object.c (object_spec::make_text): Multiply textht by number
7650         of text items.
7652         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
7653         occur.
7654         (do_sprintf): New function.
7655         (pic.gperf): Add sprintf token.
7656         (text, sprintf): New rules.
7658         * pic/pic.y: `rand()' with no arguments returns a random number
7659         in the range [0,1).
7661         * pic/pic.y: Allow a bare expression to be an attribute: change
7662         precedences to support this.  Change optional_ordinal rule to
7663         optional_ordinal_last to avoid reduce/reduce conflict.
7664         * pic/object.c (object_spec::object_spec): Initialize direction.
7666         * pic/pic.y: Implement ^ operator meaning exponentiation.
7668         * troff/node.h: Add default argument to mount_font.
7669         * troff/node.c (font_position): Read an optional third argument
7670         giving the external_name.
7671         (mount_font): Add optional argument giving the external_name.
7672         (mount_font_not_translate): Have additional argument giving
7673         external name.  Use this name to load the font.  Pass both names
7674         to font_info::font_info.
7675         (font_info::font_info): Have additional argument giving
7676         external_name.
7677         (class tfont): New member external_name.
7678         (font_info::get_tfont): Use external name to construct tfont_spec.
7680 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
7682         * eqn/lex.c (init_table): Add argument giving device.  Define
7683         name of device to be "1".
7684         (do_ifdef): Counts as true if the argument has been defined with
7685         `define'.
7686         * eqn/main.c (main): Call init_table with device argument. Make
7687         device local to main.
7688         * eqn/eqn.h: Change declaration of init_table. Remove declaration
7689         of device.
7691         * pic/lex.c (get_delimited): Allow text to be delimited by
7692         matching {}s.  Don't recognize ending delimiter within a string.
7694         * troff/input.c (get_delim_name): New function.
7695         (token::next): Implement \C.
7697         * lib/font.c (font::load): Grok ---.  Add an alias for each
7698         character based on its code.
7699         (font::get_code_width): Deleted.
7700         * lib/font.h (class font): Declare font::number_to_index().
7701         Remove declaration of font::get_code_width.
7702         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
7703         to indices of named characters.
7704         (font::number_to_index): New function.
7705         * troff/input.c (font::number_to_index): New function.
7706         (get_charinfo_by_number, charinfo::get_number,
7707         charinfo::set_number): New functions.
7708         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
7709         (token::process, token::description, token::get_char,
7710         token::add_to_node_list, token::operator==): Handle
7711         TOKEN_NUMBERED_CHAR.
7712         * troff/charinfo.h: Declare get_charinfo_by_number,
7713         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
7714         charinfo class.
7715         (charinfo::numbered): New function.
7716         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
7717         * troff/env.h (class environment): Remove declaration of ...
7718         * troff/env.c (environment::make_numbered_char_node): Deleted.
7719         * troff/node.c (make_numbered_node): Deleted.
7720         (class numbered_glyph_node): Remove.
7721         (troff_output_file::put_char_width, troff_output_file::put_char):
7722         Handle numbered chars.
7723         (troff_output_file::numbered_char): Removed.
7724         (tfont::get_code_width): Removed.
7725         (make_glyph_node): Don't search special fonts for numbered
7726         characters.
7727         * troff/node.h: Remove declaration of make_numbered_node.
7728         * driver/input.c (do_file): Handle N command.
7729         * driver/printer.h: Add declaration of ...
7730         * driver/printer.c (printer::set_numbered_char): New function.
7731         * dvi/tfmtodit.c (main): Generate unnamed entries.
7732         * ps/devps/afmtodit: Likewise.
7733         * xditview/xtotroff.c (MapFont): Likewise.
7734         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
7736         * tbl/main.c (process_format): If multiple widths are specified
7737         for a column but all the widths are the same, don't give an error
7738         message.
7740         * tbl/table.c (table::do_row): If the current row is all lines and
7741         the stuff doesn't contains a line, mark the top of the row after
7742         printing stuff before the row.  If the current row is not all
7743         lines and the stuff doesn't contain a line, don't unnecessarily
7744         mark the top of the row before printing the stuff.
7745         
7746 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
7748         * troff/groff.h: Remove MAX_PATH.
7749         * troff/input.c (open_file): Dynamically allocate space for the
7750         path.
7751         (open_mac_file, process_macro_file): Corresponding changes.
7753 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
7755         * troff/node.h (class output_file): Make copy_file pure.  Add
7756         vspace method ifdef COLUMN. Add is_printing method.
7757         * troff/node.c: Add class printing_reg. Add class
7758         real_output_file. Derive other output_file classes from
7759         real_output_file; in these classes rename begin_page to
7760         really_begin_page, print_line to really_print_line, copy_file to
7761         really_copy_file, transparent_char to really_transparent_char.
7762         Move output_file::flush to real_output_file. Add printing member
7763         to class output_file.
7764         * troff/div.h: Remove printing member from top_level_diversion.
7765         Add vspace member function to class diversion ifdef COLUMN. Add
7766         some declarations ifdef COLUMN.
7767         * troff/div.c (top_level_diversion::copy_file,
7768         top_level_diversion::transparent_output,
7769         top_level_diversion::output): Don't test printing member before
7770         output.
7771         * troff/input.c: Handle initial variable_space_request ifdef
7772         COLUMN.
7773         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
7774         but comment it out.
7776 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
7778         * troff/div.c (diversion::need): Make any space forced.  If we
7779         sprung a trap, set truncated_space to minus the distance to the
7780         trap and set needed_space to the amount that was needed.
7781         (top_level_diversion::space): A forced space turns no_space_mode
7782         off.
7783         (class constant_vunits_reg): New class.
7784         (init_div_requests): Implement number registers .trunc and .ne
7785         using constant_vunits_reg.
7786         (class truncated_space_reg): Deleted.   
7788         * troff/div.h: Don't have a no_space_mode member in diversion.
7789         Instead have it in top_level_diversion.
7790         * troff/div.c (diversion::diversion): Don't initialize
7791         no_space_mode.
7792         (top_level_diversion::top_level_diversion): Initialize
7793         no_space_mode.
7794         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
7795         (macro_diversion::output): Don't clear no_space_mode.
7797         * troff/input.c (diverted_space_node::reread): Don't call
7798         environment::do_break.  In fill mode, act like a blank line.
7799         (diverted_copy_file_node::reread): Don't call
7800         environment::do_break.
7802         * troff/div.c (blank_line): New function.
7803         * troff/div.h: Declare it.
7804         * troff/input.c (process_input_stack): Call it.
7806         * troff/div.c (truncated_space_reg::get_string): New function.
7807         (init_div_requests): Bind to .trunc.
7808         (space_request, top_level_diversion::space,
7809         top_level_diversion::output, macro_diversion::space,
7810         macro_diversion::output): Update truncated_space.
7811         (macro_diversion::output): Redo calculations when trap sprung.
7812         (macro_diversion::output, macro_diversion::space): No need for
7813         trap_flag.
7815         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
7816         after truncating post line spacing.
7818 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
7820         * ps/devps/prologue (MF, SF): Make them work even if setfont is
7821         defined as a procedure rather than as an operator.
7823 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
7825         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
7827 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
7829         * troff/div.c (top_level_diversion::output): Merge
7830         output_file::print_line and output_file::end_of_line member
7831         functions.
7832         * troff/div.h (class output_file):
7833         * troff/node.c (troff_output_file::print_line,
7834         troff_output_file::end_of_line, output_file::end_of_line,
7835         ascii_output_file::print_line, suppress_output_file::print_line):
7836         Corresponding changes.  
7838 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
7840         * troff/input.c (token::next): Don't give a warning for `\.'.
7842         * troff/env.c (environment::get_center_lines): New function.
7843         (init_env_requests): Bind number register .ce to it.
7844         * troff/env.h: Declare it.
7845         * tbl/table.c (table::init_output): Define reset macro to restore
7846         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
7847         Then do .ce 0.
7848         (table::print): If center option not given, then imply center
7849         option if SAVED_CENTER_REG > 0.
7851 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
7853         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
7854         Troff.ps from DOWNLOAD.
7855         
7856         * troff/Makefile: Change comment in DEFINES to avoid confusing
7857         System V make.
7859         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
7860         code.  Don't try to catch errors with stopped.
7861         (check_line_lengths): New function.
7862         * ps/devps/prologue (EXEC): Deleted.
7863         (EBEGIN, EEND): New procedures.
7865 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
7867         * troff/input.c: Include request.h before node.h.
7868         * troff/node.c: Likewise.
7869         * troff/env.c: Likewise.
7870         * troff/div.c: Likewise.
7871         * troff/node.h (class special_node): Store argument as a macro
7872         rather than a char *.
7873         * troff/node.c (special_node::special_node, special_node::copy):
7874         Grok this.
7875         (special_node::~special_node): Deleted.
7876         (special_node::tprint): Deleted.
7877         (special_node::tprint_start, special_node::tprint_end,
7878         special_node::tprint_char): New functions.
7879         (troff_output_file::special): Deleted.
7880         (troff_output_file::start_special, troff_output_file::end_special,
7881         troff_output_file::special_char): New functions.
7882         * troff/input.c (special_node::tprint): New function.
7883         (do_special): Use macro not char *.
7884         (do_transparent_macro): Deleted.
7885         (token::next): Don't call do_transparent_macro.
7887         * troff/input.c (token::next): Add 'Y' case.
7888         (do_transparent_macro): New function.
7889         * troff/node.c (troff_output_file::special): Handle newlines with
7890         argument using new continuation convention.
7891         * driver/input.c (get_string): Cope with continuation convention.
7892         (do_file): Don't call skip_line after calling get_string(1).
7893         * ps/ps.c (ps_printer::special, ps_printer::do_import,
7894         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
7895         arg.
7896         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
7897         with +.
7899 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
7901         * troff/input.c (asciify): By default, illegal input characters
7902         should return empty string.
7904         * troff/input.c (copy_file): Handle first page transition like title.
7905         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
7907         * troff/input.c (token::next): Improve error message for EOF after
7908         escape character.
7909         (input_char_description): New function.
7910         (get_char_for_escape_name): Use input_char_description.
7911         (token::next): Warn about unrecognized escape sequences.
7912         (warning_table): Add WARN_ESCAPE.
7913         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
7914         accordingly.
7916         * troff/token.h: Remove declaration of process_input_stack.
7918         * troff/input.c: Remove declaration of init_hyphen_requests.
7919         * troff/request.h: Correct spelling in declaration of same.
7921         * troff/input.c (token::next): Check whether escape_char is 0.
7923 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
7925         * groff.c (main, usage, help): Implement -P and -L options.
7926         * groff.sh: Likewise.
7928         * troff/input.c (token::next): Use some gotos to avoid code
7929         duplication.
7931         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
7932         Avoid calling symbol::symbol if name empty.
7934 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
7936         * troff/input.c (init_input_requests): Make \n(.x return the major
7937         version number and \n(.y return the minor version number.
7938         * troff/Makefile: Construct file majorminor.c defining
7939         major_version and minor_version automatically from ../VERSION.
7941         * troff/node.c (class glyph_node): Make operator new and operator
7942         delete public.
7943         (class ligature_node): Similarily.
7945         * troff/input.c (operator==(const macro &, const macro &)): New
7946         function.
7947         (non_interpreted_node::same): Use this.
7948         (string_iterator::string_iterator): Make macro& argument const.
7950         * troff/input.c (input_iterator::get): New function. Don't make
7951         asciify_macro or class non_interpreted_node friends of class
7952         input_iterator.
7953         (non_interpreted_node::interpret): Use input_iterator::get.
7954         (asciify_macro): Likewise.
7956         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
7957         ~non_interpreted_node): Deleted.
7958         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
7959         Deleted.
7961         * troff/symbol.h: Make all symbol member functions const.
7963         * lib/strtol.c: New file.
7964         * lib/Makefile: Add strtol.c.
7965         * Makefile: Define STRTOL as strtol.o to include strtol in
7966         libgroff.a.
7968 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
7970         * pic/troff.c (troff_output::simple_circle): Divide by scale.
7972 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
7974         * troff/input.c (do_special): Use input_level.
7976         * troff/token.h (TOKEN_BACKSPACE): New token.
7977         (token::backspace): New function.
7978         * troff/input.c (token::description, token::next, token::process):
7979         Grok TOKEN_BACKSPACE.
7980         (do_special): Turn TOKEN_BACKSPACE back into \b.
7982         * troff/token.h (token::leader): New function.
7983         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
7985         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
7987         * troff/input.c (do_special): Use token::description in error
7988         message.
7990 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
7992         * troff/input.c (decode_args): Combine quoted and
7993         quote_input_level variables. Make it a for (;;) loop.
7995         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
7997         * troff/input.c (read_long_escape_name): The test for whether to
7998         expand buffer was off by 1.
7999         (read_string): Similarily.
8001 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
8003         * troff/input.c: Use `const int' rather than `static const int'.
8005         * troff/div.h (diversion::copy_file): Declare as pure virtual.
8006         (macro_diversion::copy_file): New function.
8007         * troff/node.h: New class diverted_copy_file_node.
8008         * troff/node.c: Implement it.
8009         * troff/input.c (copy_file): Use diversion::copy_file. Handle
8010         first page transition by pushing a diverted_copy_file_node.
8011         * troff/input.c (token::next, process_input_stack): Don't handle
8012         COPY_FILE_REQUEST.
8014 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
8016         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
8017         whether space widths need adjusting.
8019         * troff/charinfo.h: Generalize translated_to_space to
8020         special_translation so as to allow translation to \&.
8021         * troff/input.c (translate): Allow translation to \&.
8022         (charinfo::*): Corresponding changes.
8023         * troff/node.c (make_node, node::add_char): Corresponding changes.
8024         * troff/node.h (dummy_node::dummy_node): Allow optional first
8025         argument.
8027         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
8028         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
8029         TOKEN_REQUEST.
8030         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
8031         TOKEN_REQUEST with an argument of TITLE_REQUEST.
8032         (token::process): Grok that.
8033         * troff/input.c (copy_file): Handle first page transition like
8034         title by pushing a COPY_FILE_REQUEST cookie.
8035         (token::next, process_input_stack): Grok that.
8036         * troff/node.h (output_file::copy_file): Add x and y arguments.
8037         Make it non-pure.
8038         * troff/div.c (top_level_diversion::copy_file): Supply them.
8039         * troff/node.c (troff_output_file::copy_file): Add x and y
8040         arguments; moveto specified position.  Invalidate font_position
8041         array after copying file.
8042         (output_file::copy_file): New function.
8043         (suppressed_output_file::copy_file, ascii_output::copy_file):
8044         Removed.
8045         * troff/input.c (transparent_file): New function.
8046         (init_input_requests): Bind to "trf".
8047         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
8048         (process_input_stack): Likewise.
8050         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
8052         * troff/node.c (init_node_requests): New number registers .kern
8053         pointing to global_kern_mode, and .lg pointing to
8054         global_ligature_mode.
8056         * troff/node.c (ligature): Don't change it if we get a bad
8057         integer.
8059         * troff/input.c (do_define_string): Don't strip tabs.
8061         * troff/input.c (asciify_macro): Make the string_iterator auto.
8063         * troff/node.c (init_font_requests): Rename to...
8064         (init_node_requests):
8065         * troff/node.h: Change declaration.
8066         * troff/input.c (main): Change call.
8068         * troff/input.c (node::reread, diverted_space_node::reread): New
8069         methods.
8070         (process_input_stack): Call reread rather than
8071         get_diverted_space_node.
8072         * troff/node.c (node::get_diverted_space_node,
8073         diverted_space_node::get_diverted_space_node): Removed.
8074         * troff/node.h: Declare reread methods instead of
8075         get_diverted_space_node methods. Make `n' member private.
8076         * troff/input.c: (token::diverted_space): Removed.
8077         * troff/token.h: Removed declaration.
8078         
8080 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
8082         * eqn/script.c (script_box::compute_metrics): Don't let
8083         SUP_RAISE_FORMAT become negative.
8085         * tbl/table.c (table::do_row): Entries that don't end in the
8086         this row shouldn't make the row non-blank.
8087         
8088         * tbl/table.c (table::make_columns_equal): Only set the width of
8089         columns which are marked as equal.
8090         
8091         * tbl/main.c (process_data): Before issuing excess data error,
8092         if last character was a newline unget it; then get it again after
8093         the error.  Also include the contents of the entry in the message.
8095         * groff.c: New file.
8096         * Makefile: Build groff from groff.c.  Make it possible to use
8097         either groff.sh or groff.c as groff.
8098         * Makefile.bd: Similarily.
8100 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
8102         * groff.sh: Don't delay expansion of $@ in assignment to files.
8103         Remove occurrences of \".
8105 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
8107         * all Makefiles: Simplify and rearrange.
8109         * Makefile: Handle fmod like malloc.
8110         * lib/Makefile: Similarily.
8111         * lib/fmod.c: Remove #ifdef NEED_FMOD.
8113         * Makefile: Rename OPTIMISE to OPTIMIZE.
8115         * groff.sh: Remove assignment to PATH.
8116         * Makefile: Remove SHPATH variable.
8117         * Makefile.bd: Similarily.
8119         * groff.sh: Add -V option to print the pipeline instead of
8120         executing it.
8122 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
8124         * lib/font.c: Split off file searching into ...
8125         * lib/fontfile.c: New file.
8127         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
8129 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
8131         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
8132         Also change misleading comment.
8133         (table::do_vspan): Change similarily misleading comment.
8134         * tbl/main.c (process_data): A format row with an explicit `s'
8135         uses up a data line, even if all the other columns are `_' or `='.
8137         * troff/input.c (token::description): Fix description of
8138         TOKEN_DUMMY and TOKEN_EMPTY.
8140 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
8142         * groff.sh: Fix description of -Z in help message.
8144 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
8146         * pic/object.c (object_spec::make_object): Allow negative and zero
8147         line thicknesses.
8148         * pic/pic.y: Give linethick default value of -1.0.
8149         * pic/troff.c (troff_output::troff_output): Initialize
8150         last_line_thickness to BAD_THICKNESS.
8151         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
8152         (troff_output::line_thickness): Canonicalize negative thicknesses
8153         to RELATIVE_THICKNESS.
8154         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
8155         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
8156         to -1.0.
8157         (tex_output::start_picture): Set pen_size to -2.0.
8159         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
8160         0, then use 0 linewidth.
8161         (ps_printer::ps_printer): Initialize line_thickness to -1.
8163         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
8165         * ps/devps/symbolchars: Remove `or'.
8166         * ps/tmac.ps: Implement \(or with .char.
8168         * ps/devps/symbolchars: Move most characters into textmap.
8169         * ps/devps/textmap: Add names for troff bracket characters. Remove
8170         ul, ru, br, bv.
8172         * ps/devps/TSymbol.ps: Removed.
8173         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
8174         * ps/tmac.ps: Do with .char what TSymbol did.
8175         * ps/devps/download: Remove TSymbol.
8177         * ps/devps/T: Removed.
8178         * ps/devps/Troff.ps: Removed.
8179         * ps/devps/Troff.afm: Removed.
8180         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
8181         * ps/devps/download: Remove Troff.
8182         * ps/devps/FontMakefile: Remove T target.
8183         * ps/devps/DESC-A4: Remove T from font list.
8184         * ps/devps/DESC-letter: Likewise.
8186         * troff/input.c (macro_to_node): Rename to ...
8187         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
8188         character's definition while processing it.
8189         * troff/node.c (node::add_char, make_node): Change calls to
8190         macro_to_node accordingly.
8192         * troff/input.c (token::next): Translate \_ to \(ul.
8194         * tty/devascii/R.proto: Add `|'.
8195         * tty/devlatin1/R.proto: Likewise.
8197 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
8199         * man: Put the version number in all the man pages.
8201 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
8203         * Makefile.bd: New file.
8204         * README.bd: New file.
8206         * VERSION: New file.
8207         * lib/version.c: Removed.
8208         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
8209         in clean target.
8211         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
8212         environment variable.
8214         * all Makefiles: Split install target into install.bin for
8215         binaries, and install.nobin for everything else.
8216         * Makefile: Add bindist target.
8218         * man/afmtodit.man: New file.
8219         * man/Makefile: Add afmtodit.n to MAN1PAGES.
8220         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
8221         in BINDIR.
8222         * ps/Makefile: Pass BINDIR to make install in devps.
8224         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
8225         the space character.
8227         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
8229 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
8231         * ps/ps.c: Redo font downloading.
8232         * ps/devps/download: New file.
8233         * ps/devps/Makefile: Add download to DEVICEFILES.
8234         * ps/devps/afmtodit: Remove -d option.
8235         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
8236         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
8237         * ps/devps/zapfdr.ps: Likewise.
8238         * ps/devps/TSymbol.ps: Likewise.
8240 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
8242         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
8244 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
8246         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
8247         then strip the first line if it starts with %.
8248         * Makefile: Add a comment about this.
8250         * man/tfmtodit.man: New file.
8251         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
8252         * dvi/Makefile: Install tfmtodit in BINDIR.
8254         * dvi/tfmtodit.c (usage): Mention -v option.
8256 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
8258         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
8259         * troff/node.c (troff_output_file::transparent_char): Don't call
8260         flush_tbuf.
8262         * eqn: Add check_tabs method to most box classes.
8263         * eqn/box.c (box::top_level): Call check_tabs.
8265         * eqn/script.c (script_box::output): Use \Z.
8266         * eqn/limit.c (limit_box::output): Use \Z.
8268         * eqn/box.c (box::top_level): Use itoa.
8270 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
8272         * dvi/tmac.dvi: Add font translations for CR, C, TT.
8273         * dvi/devdvi/Makefile: Don't make links to CW.
8275         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
8276         HX, HD.
8277         * xditview/tmac.X: Likewise.
8279         * troff/node.c: Add font translation feature.
8280         (get_font_translation): New function.
8281         (symbol_fontno): Translate the font name.
8282         (mount_font_no_translate): Rename to mount_font to this.
8283         (mount_font): New function.
8284         (font_family::make_definite): Call mount_font_no_translate instead
8285         of mount_font.
8286         (mount_style): Translate the font name.
8287         (font_translate): New function.
8288         (init_font_requests): Bind "ftr" to font_translate.
8290         * ps/devps/prologue (SN): New procedure that rounds a position to
8291         the nearest (pixel + (.25,.25)).
8292         (DL): Use SN to round endpoints.
8294         * lib/version.c: Changed version to 0.5.
8296 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
8298         * Makefile: Move definition of PAGE to the very beginning, so that
8299         people are less likely to miss it.
8301 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
8303         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
8305         * troff/env.c (environment::choose_breakpoint): Make `can't find
8306         breakpoint' error a warning of type WARN_BREAK.  Change message to
8307         `can't break line'.
8308         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
8309         code 040000.
8310         * troff/input.c: Add WARN_BREAK to warning_table.  Include
8311         WARN_BREAK in DEFAULT_WARNING_MASK.
8313         * tty/tmac.tty: Add definition of \(+-.
8315         * groff.sh: Remove `--' option to set command.
8317         * dvi/devdvi/texsy.map: Remove duplicate md entry.
8319         * ps/devps/eqnchar: Better definition of cdot using md.
8320         * dvi/devdvi/eqnchar:  Likewise.
8321         * xditview/devX100/eqnchar:  Likewise.
8322         * xditview/devX75/eqnchar: Likewise.
8323         * eqn/lex.c: Add definition of cdot.
8325 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
8327         * troff/input.c (get_optional_char): New function.
8328         * troff/input.c (set_page_character): Use get_optional_char(),
8329         rather than has_arg() and tok.get_char(1).
8330         * troff/env.c (tab_character, leader_character, hyphen_char,
8331         field_characters): Likewise.
8332         (margin_character): Likewise.  Also always delete the
8333         margin_character_node.
8335         * troff/input.c (token::get_char): Use token::description.
8337         * troff/input.c (has_arg): Don't skip over tab and \}.
8338         * troff/number.c (start_number): Give a warning if the number
8339         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
8341 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
8343         * troff/input.c (empty_name_warning, non_empty_name_warning): New
8344         functions.
8345         (get_name, get_long_name): Use these.  Rename `warn' argument to
8346         `required'.
8348         * troff/node.c (get_fontno): Test that the symbol is not null.
8350         * troff/input.c (token::description): New function.
8351         * troff/number.c (parse_term): Use token::description in `numeric
8352         expression expected' message.
8353         * troff/groff.h: Add WARN_MISSING.
8354         * troff/number.c (start_number): New function.
8355         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
8356         get_incr_number): Use start_number().
8357         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
8358         default.
8359         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
8360         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
8361         token::descripion.
8362         * troff/input.c (token::get_char): Use WARN_MISSING.
8363         * troff/input.c (token::delimiter): Use token::description.
8364         * troff/env.c (environment_switch): Back out Aug 3 change.
8365         * troff/input.c (has_arg): Skip over \}s and tabs but give a
8366         warning.
8367         * troff/token.h (token::tab): New function.
8368         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
8369         * troff/reg.c (alter_format): Likewise.
8370         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
8372 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
8374         * troff (most files): Redo warnings. Divide warnings into various
8375         categories; warning() has an additional first argument indicating
8376         the category it falls into.
8377         * troff/input.c (main): -w now takes an argument. New option -W.
8378         (enable_warning, disable_warning): New functions.
8380         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
8381         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
8383 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
8385         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
8386         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
8387         * xditview/devX75/eqnchar: Likewise.
8388         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
8390         * eqn/other.c: When bar or over applies to a single character
8391         don't produce an overline_box or an underline_box. Instead produce
8392         an accent_box or an underaccent_box, with the accent a line
8393         whose width is accent_width.  New classes underaccent_box,
8394         overline_char_box and underline_char_box.
8395         * eqn/box.h: Move overline_box, underline_box, accent_box class
8396         declarations into eqn/other.c. Add declarations of
8397         make_underline_box, make_overline_box, make_accent_box.
8398         * eqn/eqn.y: Call make_overline_box, make_underline_box
8399         make_accent_box instead of constructors.
8400         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
8402         * eqn/other.c: Add accent_box::~accent_box.
8403         * eqn/box.h: Declare it.
8405         * groff.sh: With -Tps, use eqn -D.
8407         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
8408         rather than \l.
8409         (underline_box::output): Similarily.
8410         (accent_box::output): Use \Z.
8412         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
8413         bit smaller.)
8415 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
8417         * troff/div.c (top_level_diversion::transparent_output(unsigned
8418         char)): Use asciify.
8419         * troff/input.c (asciify): Don't make it static.
8420         * troff/token.h (asciify): Declare it.
8421         
8422         * troff/input.c (get_name, get_long_name, token::get_char,
8423         token::delimiter): Add an extra default argument which says
8424         whether a warning should be printed.
8425         * troff: Pass a non-zero argument to one of these rather than
8426         printing a warning directly.
8428 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
8430         * troff: Consistently use symbol::is_null.
8432         * troff/dictionary.h: Move some inline functions into
8433         dictionary.c.
8435         * troff/request.h: Move inline functions into input.c.
8436         (request_or_macro::invoke): Make it pure.
8438         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
8439         * troff/input.c (init_input_requests): Use class constant_int_reg.
8440         (class compatible_reg): Deleted.
8441         * troff/div.c (init_div_requests): Use class constant_int_reg.
8442         (class last_post_line_extra_space_reg): Deleted.
8444         * troff/env.c (tab_character): Don't change the tab character if
8445         we get an invalid argument.
8446         (hyphen_char): Similarily.
8448         * troff/reg.c (alter_format): Check that nm is not null.
8450         * Makefile, groff.sh: Make it possible to customize the commands
8451         used for printing PostScript and dvi files. Also make it possible
8452         to customize the path used by groff.sh.
8454         * eqn/eqn.y: Make `left' right associative.
8456 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
8458         * pic/pic.h: Added definition of M_SQRT2 for those systems that
8459         don't have it.
8461         * pic/pic.h: Removed definition of INT_MAX.
8463         * troff/node.c (italic_corrected_node::vertical_extent): Omit
8464         `return'.
8466         * troff/input.c (token::next):  Handle \R like \n.
8468 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
8470         * ps/tmac.pc (PSPIC): Simplify.
8472         * troff/env.c (tab_stops::to_string):
8473         * pic/pic.y (object_type_name):
8474         * pic/troff.c (simple_output::line):
8475         * pic/tex.c (tex_output::spline):
8476         * pic/object.c (object_spec::make_object):
8477         * tbl/main.c (process_data):  Add cases to switch statements to
8478         avoid cfront warnings. (Some of these are spurious, since the
8479         switch already has a default case.)
8481         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
8482         `ps-'.  Don't test systat; instead check number of arguments to
8483         ps-bb.
8485 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
8487         * macros/tmac.e: Do not decrease the page offset by 0.5i.
8489         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
8490         Unlink the file as soon as we have opened it, so that we don't
8491         have to bother with signal handlers.
8492         (handler): Deleted.
8493         (fatal_error_exit): Deleted.
8494         (main): Don't call signal.
8496         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
8497         can be ignored.
8498         * dvi/devdvi/Makefile: Use the -k option with S and MI.
8500         * pic/pic.y:  If there is a label, or an nth construction before
8501         the first `.' in the argument to `with', ignore it and generate a
8502         warning.
8503         * pic/lex.c (lex_warning): New function.
8505         * tbl/table.c (table::init_output): In section keep and release
8506         macro, use 0 indent when diverting and the correct indent when
8507         rereading.
8509         * troff/input.c (interpolate_number_format): Do not interpolate
8510         anything if the number register is not defined.
8512         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
8514 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
8516         * ps/devps/prologue (PICTURE): Set components of graphics state to
8517         their default values.
8519         * ps/devps/text.enc: Add trademark
8520         * ps/devps/textmap: Add names for club, spade, heart, diamond,
8521         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
8522         * ps/devps/symbolchars: Add names for summation and product.
8524         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
8525         suchthat. Add pp. Add upper-case letters.
8527         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
8528         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
8529         Upsilon.
8531         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
8532         rA (right angle bracket) to ra.  Introduce names for double-headed
8533         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
8534         * ps/devps/textmap: Likewise for ps device.
8535         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
8536         * tty/devascii/R.proto: Rename lA to la and rA to ra.
8537         * tty/devascii/R.proto: Likewise.
8538         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
8539         \(uA, \(dA.
8540         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
8542         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
8544         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
8545         def_table.
8547 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
8549         * troff/div.c (when_request): Use symbol::is_null rather than
8550         has_arg to determine whether we have an argument.
8551         (change_trap): Remove the trap if we get an invalid number. Give
8552         an error if we don't get at least the macro name.
8553         (diversion_trap): Remove trap if we get an invalid name or number.
8555         * troff/env.c (environment_switch): Pop if we get an invalid
8556         symbol or numeric expression.
8558         * troff/input.c (do_define_macro):  If EOF is encoutered while
8559         defining the macro, do tok.next() before returning.
8561         * troff/token.h (has_arg): Move definition from here, to ...
8562         * troff/input.c (has_arg): ... here
8564         * troff/env.c (space_size): Do nothing if we get an invalid argument.
8565         * troff/input.c (shift): Likewise.
8567         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
8568         for `.c'.
8570         * pic/troff.c (troff_output::start_picture):  Comment out calls to
8571         `..'.
8573         * eqn/main.c (do_file): Subtract 1 from current_lineno if
8574         interpret_lf_args succeeds.
8576         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
8577         \\.  This avoids problems with \$N.
8579         * groff.sh: Pass -C to preprocessors.
8581         * lib/lf.c (interpret_lf_args):  Be more flexible.
8583         * tbl/main.c (main): Add -C option.
8584         (table_input::get): Do not recognize TE if followed by character
8585         other than a space or newline unless -C option given.
8586         (process_input_file): Likewise for lf, TS.
8587         (process_data): Likewise for lf in text blocks.
8589         * eqn/main.c (main): Add -C option.
8590         (do_file): Don't recognize EQ, EN or lf if followed by character
8591         other than space or newline unless -C option given.
8592         * eqn/lex.c (file_input::read_line): Similarily.
8593         * eqn/eqn.h: Declare compatible_flag.
8595         * etc/soelim.c (main): Add -C option.
8596         (interpret_lf_args): Use version in libgroff.
8597         (do_file):
8599         * pic/main.c (main): Add -C option, which sets compatible_flag.
8600         (top_input::get), (top_input::peek):  If -C option not given,
8601         do not recognize .PS/.PE/.PF/.lf if followed by a character
8602         other than space or newline.
8603         * pic/lex.c (file_input::read_line): Similarily.
8604         * pic/pic.h: Add declaration of compatible_flag.
8606 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
8608         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
8610         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
8611         derived from node.  New class space_char_hmotion_node.
8612         * troff/input.c (asciify_macro): New function.
8613         * troff/input.c (init_input_requests): New request `asciify' bound
8614         to asciify_macro.
8615         * macros/mm.diff: New file.
8616         * Makefile:  In install.mm target use `patch' to apply
8617         macros/mm.diff.
8619         * troff/input.c (macro::print_size): Just print the size in bytes.
8621         * troff/div.c (return_request): Correct the argument
8622         interpretation.
8624 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
8626         * troff/node.h (class composite_node): Add sz member.
8627         * troff/node.c (composite_node::size): Return sz.
8628         * troff/input.c (macro_to_node):  Use the initial size in the
8629         environment as the size of the composite_node.
8631         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
8632         default.
8634 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
8636         * troff/div.c (change_trap): If we get a bad number expression,
8637         do nothing.
8639 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
8641         * lib/matherr.c (matherr): Define this only if math.h defines
8642         TLOSS.
8644 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
8646         * troff/div.c (macro_diversion::distance_to_next_trap): If there
8647         no diversion trap return vunits(INT_MAX - vresolution).
8649 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
8651         * troff/input.c (do_zero_width): New implementation that doesn't
8652         use a temporary environment. Use instead:
8653         (token::add_to_node_list): New function.
8654         * troff/env.c (environment::get_prev_char_height),
8655         (environment::get_prev_char_height),
8656         (environment::get_prev_char_skew): New functions.
8657         (environment::get_prev_char): New function.
8658         (environment::get_prev_char_width): Change to use get_prev_char.
8659         (init_env_request): Implement new registers .cht, .cdp, .csk.
8660         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
8661         \Z being processed in a separate environment.
8663 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
8665         * tbl/table.c: Removed TABLE_BOTTOM_REG.
8667         * tbl/table.c (table::init_output): In the section release macro,
8668         give a warning message if the section won't fit on one page.
8670         * tbl/table.c (table::do_top): Emit table keep only if table is
8671         boxed.
8672         (table::do_bottom): Likewise for table release.
8673         (table::table), (table::add_vertical_rule):  Remove reference to
8674         keep member.
8675         * tbl/table.h: Remove keep member.
8677         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
8678         SECTION_RELEASE_MACRO, if there's not enough space before the next
8679         trap to output the diversion, call T# ourselves, set
8680         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
8681         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
8682         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
8683         vertical position and return to it before turning traps on again.
8684         
8685 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
8687         * troff/node.c, troff/node.h: In classes derived from node,
8688         replace prev_char_width method by last_char_node method.
8689         * troff/env.c (environment::get_prev_char_width): Use
8690         node::last_char_node rather than node::get_prev_char_width.
8692         * Makefile: Added comment about -fno-inline on 68030-based
8693         Apollos.
8695         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
8696         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
8697         expressions using sizeof to int.
8698         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
8700         * macros/tmac.e (TS):  Don't move @f back past the current
8701         position.
8703 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
8705         * ps/ps.c (main): Buffer stderr.
8706         * dvi/dvi.c (main): Likewise.
8707         * tty/tty.c (main): Likewise.
8709         * ps/ps.c (ps_printer::do_import): Improve error handling.
8711         * troff/input.c (abort_request): Use asciify.
8713         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
8714         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
8715         type of first argument int rather than char.  This works around a
8716         bug on the 68030 based Apollo using g++ 1.37.1.
8718         * tbl/table.h (class table): Add `keep' member.
8719         * tbl/table.c (table::table): Initialize `keep'.
8720         (table::add_vertical_rule): Set `keep' to 1.
8721         (table::do_top): Only emit table keep macro is `keep' is non-zero.
8722         (table::do_bottom): Likewise for table release macro.
8723         (table::do_row): Emit section keep macro even if the row is 0.
8725 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
8727         * macros/tmac.e (@C): Preserve the font family across the change
8728         in environments.
8730 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
8732         * lib/font.c: Initialize font::hor and font::vert to 1.
8733         (font::load_desc): Check the values of font::hor and font::vert.
8735         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
8736         be included in a C compilation.
8737         (iftoa): Use INT_DIGITS. Include lib.h.
8738         (itoa): Likewise.
8739         (as_string): Likewise.
8740         * tbl/table.c: Removed definition of INT_DIGITS.
8741         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
8742         * troff/input.c (input_input_requests): Likewise.
8743         * ps/ps.c (make_encoding_name): Likewise.
8744         (ps_printer::set_style): Likewise.
8745         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
8747         * tty/devascii/R.proto: Map fm onto '.
8748         * tty/devlatin1/R.proto: Likewise.
8750 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
8752         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
8753         argument to \w is at a different input level.
8755         * tbl/table.c (table::init_output): Define a new macro
8756         REPEATED_VPT_MACRO, like vpt but if in a diversion also
8757         transparently outputs itself.
8758         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
8759         vpt.
8760         (table::do_row): Likewise.
8762         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
8763         TRANSPARENT_STRING_NAME.
8765         * tbl/table.c (table::init_output): In the table release macro
8766         print an error message and don't produce any output if after
8767         issuing the need request the table still will not fit.  Also
8768         remove the diversion after bringing it back.
8770         * tbl/table.c (table::init_output): Define a new macro
8771         REPEATED_MARK_MACRO, like mk but if in a diversion also
8772         transparently outputs itself.
8773         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
8774         is necessary because .TH might not call .T#.
8775         (table::do_top): Likewise TOP_REG.
8776         (table::define_bottom_macro): If TOP_REG is no longer valid, use
8777         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
8778         table header might contain just the two top rules.
8780 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
8782         * troff/div.c: Implement new request `ptr' to print all traps.
8784         * troff/env.c (init_env_requests): Implement `.tabs' reg with
8785         init_string_env_reg.
8786         * troff/env.c (class tab_reg): Deleted.
8788 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
8790         * troff/div.c: New number register .pn returns the number of the
8791         next page as set by the pn request.
8793         * macros/tmac.an: Redid headers and footers.  Number each manual
8794         entry starting from 1 unless \nC is > 0, like Sun.  Added an
8795         optional 5th argument to .TH which specifies the manual name and
8796         appears in the center of the header.  Understand the X, P and D
8797         registers like Sun.
8799 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
8801         * troff/env.c (init_env_requests): New number register `.lt' to
8802         return the title length.
8804         * troff/node.h (class transparent_dummy_node): New class.
8805         * troff/node.c (class transparent_dummy_node): Provide member
8806         functions. 
8807         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
8808         than a dummy_node.
8810         * troff/input.c (token::next): New escape sequence \).
8811         * troff/input.c (get_copy): Recognize \) in copy mode.
8813         * troff/input.c (input_stack::clear): New function.
8814         * troff/input.c (exit_request): Use input_stack::clear.
8816         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
8817         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
8819         * troff/env.c: Move set_page_character to input.c.  Move
8820         page_character to input.c also.
8821         * troff/env.c (title): Split off the reading of the parts of the
8822         title into read_title_parts.
8823         * troff/input.c (read_title_parts): New function.  Check the
8824         input_level when testing whether a token matches the delimiter.
8826         * troff/input.c (exit_request): New function.
8827         * troff/input.c (init_input_requests): Bind ex request to
8828         exit_request rather than exit_groff.
8830         * troff/input.c (exit_groff): Call tok.next() before
8831         process_input_stack().
8833 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
8835         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
8836         * troff/env.h: ditto.
8837         * troff/input.c: ditto.
8839         * troff/env.c (environment::is_empty): Test pending_lines.
8841         * troff/env.c (environment::have_pending_lines): Removed.
8843         * troff/input.c: Add request to flush pending lines from the
8844         environment.
8846         * troff/env.c, troff/env.h: Add automatic widow control feature.
8848         * troff/input.c (exit_groff):  Do process_input_stack() after
8849         do_break() but before setting exit_flag to 2.
8851         * troff/input.c: Remove FLUSH_PENDING_LINES and
8852         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
8853         environment after END_TRAP token seen, but only if there aren't
8854         any more traps still unfinished.
8855         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
8857 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
8859         * troff/env.c: Rename the `retain_size' member of class
8860         pending_output_line to `no_fill'.
8862         * troff/env.c (title): When the line is output, make the
8863         retain_size argument !fill.
8865         * troff/node.h: Add `hyphenated' member to struct breakpoint.
8866         * troff/node.c (space_node::get_breakpoints),
8867         (dbreak_node::get_breakpoints):  Fill this in.
8868         * troff/env.c:  Allow specification of maximum number of
8869         consecutive hyphenated lines.
8871         * troff/env.c (environment::is_empty): Add test for !current_tab.
8873 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
8875         * troff/env.c (environment::hyphenate_line): Don't completely give
8876         up if the word is not to be hyphenated; continue so that breaks
8877         can be made at break_char_node's.
8879         * lib/lib.h: Only define INT_MAX if it's not already defined;
8880         undef INT_MIN if it's already defined.
8882         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
8884         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
8885         This works around a bug in AT&T C++ 2.0 used with an ANSI C
8886         compiler.
8887         
8888         * macros/tmac.an (an-header): Set no-space mode.
8890         * macros/tmac.an (TH): Start a new page if necessary.
8892         * Started using ChangeLog at version 0.4.
8894 Local Variables:
8895 version-control: never
8896 coding: latin-1
8897 End: