Fix computation of .trunc register. Additionally, its value (and
[s-roff.git] / ChangeLog
blob1f478b8fafadb1acede578ca23f1e310db407926
1 2002-10-29  Werner LEMBERG  <wl@gnu.org>
3         Fix computation of .trunc register.  Additionally, its value (and
4         the value of the .ne register) is now always set before entering the
5         trap.
7         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
8         `needed_space' before calling `space'.
9         (top_level_diversion::space): Remove special code for 'sp before the
10         first page.
11         Call `begin_page' with the discarded space as a parameter.
12         (top_level_diversion::begin_page): Add optional parameter to set
13         `truncated_space'.
14         * src/roff/troff/div.h: Updated.
16         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
17         \n[.ne].
19         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
20         (LP): Remove superfluous call to `br'.
21         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
22         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
24 2002-10-26  Werner LEMBERG  <wl@gnu.org>
26         * tmac/doc-ditroff: Remove useless switch/variable -rC.
27         (doc-setup-header): Don't set page register `%'.
28         * tmac/doc-nroff: Remove variable `C'.
29         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
30         (doc-setup-header): Don't set page register `%'.
31         Don't call `bp'.
32         * tmac/doc-common (doc-header): Call `ns'.
33         (doc-paragraph): Protect .sp with .br so that it survives traps
34         possibly set by the user.
35         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
37         * tmac/doc*: Replace ' with . for consistency if no effect.
39 2002-10-26  Werner LEMBERG  <wl@gnu.org>
41         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
42         so that it survives traps possibly set by the user.
44         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
45         (troff_output_file::set_font): Call flush_tbuf if necessary.
46         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
47         flush_tbuf and do_motion only if necessary.
48         (troff_output_file::start_special,
49         troff_output_file::put_char_width, troff_output_file::put_char,
50         troff_output_file::draw): Updated.
51         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
52         vmotion_node::tprint): Undo change 2002-10-23.
54 2002-10-25  Werner LEMBERG  <wl@gnu.org>
56         * tmac/www.tmac (DC): Fix case of overlapping images.
58 2002-10-23  Werner LEMBERG  <wl@gnu.org>
60         * src/roff/troff/node.cc (troff_output_file::fill_color,
61         troff_output_file::glyph_color): Set current color before testing
62         color_flag.
63         (troff_output_file::put_char_width, troff_output_file::put_char,
64         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
65         before glyph_color.
66         (troff_output_file::file_color, troff_output_file::glyph_color):
67         Call do_motion.
68         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
69         vmotion_node::tprint): Move first, then call fill_color.
71 2002-10-20  Werner LEMBERG  <wl@gnu.org>
73         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
74         possible to use multiple main macro packages.
76 2002-10-19  Werner LEMBERG  <wl@gnu.org>
78         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
79         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
80         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
81         is set.
82         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
83         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
85 2002-10-16  Werner LEMBERG  <wl@gnu.org>
87         * NEWS, doc/webpage.ms: Updated.
89 2002-10-14  Werner LEMBERG  <wl@gnu.org>
91         * src/roff/troff/node.cc (troff_output_file::put_char_width,
92         troff_output_file::put_char, troff_output_file::fill_color,
93         troff_output_file::glyph_color): Handle case where color pointer
94         is null.
96 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
98         Add the new -r option to grotty.  It is similar to the -i option
99         except it tells grotty(1) to use the "reverse video" attribute to
100         render italic fonts.
102         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
103         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
104         (tty_printer::make_underline, tty_printer::put_color,
105         tty_printer::end_page): Use it.
106         (main): Add -r switch.
107         (usage): Updated.
108         * src/devices/grotty/grotty.man: Document it.
110 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
112         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
113         cast to `unsigned char' to properly read patterns with 8bit
114         characters.
116 2002-10-08  Werner LEMBERG  <wl@gnu.org>
118         * REVISION: Increased to 2.
120 Version 1.18.1 released
121 =======================
123 2002-10-08  Werner LEMBERG  <wl@gnu.org>
125         * doc/webpage.ms, NEWS: Updated.
127 2002-10-07  Werner LEMBERG  <wl@gnu.org>
129         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
130         suppress additional whitespace after the header.
132         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
133         with NetBSD.
135         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
137 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
139         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
140         (Dt): Use it to improve language localization (especially Russian
141         and French).
143 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
145         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
146         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
147         drawing commands.
148         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
149         curve type.
150         Call `picurve' for BSPLINE.
151         (HGPrintElt): Handle BSPLINE.
152         * src/preproc/grn/README: Document it.
154 2002-10-03  Werner LEMBERG  <wl@gnu.org>
156         * src/roff/troff/node.cc (break_char_node::col): New variable.
157         Updated constructor.
158         (space_node::tprint, word_space_node::tprint): Call `fill_color'
159         unconditionally.
160         (space_node::space_node): Remove assertion.
161         (break_char_node::add_self): Pass color argument to space node.
162         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
163         Ditto.
164         * src/roff/troff/env.cc (environment::do_break,
165         environment::add_padding): Ditto.
167 2002-10-02  Werner LEMBERG  <wl@gnu.org>
169         Redesigning color support in troff.  Colors are no longer
170         represented as separate nodes but are now part of glyph nodes and
171         friends.  This fixes the current formatting misbehaviour due to the
172         changes introduced on 2002-09-20.  Some extra code is necessary for
173         proper grotty support: Without adding color variables to
174         space-related nodes, the background color would be changed too late.
176         * src/roff/troff/node.h, src/roff/troff/node.cc:
177         s/current_pagecolor/current_fill_color/.
178         s/current_glyphcolor/current_glyph_color/.
179         (glyph_color_node, fill_color_node): Removed.
180         (node::get_glyph_color, node::get_fill_color): New virtual member
181         functions.
182         (space_node::col): New variable.
183         Updated constructors of space_node and derived classes accordingly.
184         (hmotion_node::col): New variable.
185         Updated constructors of hmotion_node and space_char_hmotion_node
186         accordingly.
187         (vmotion_node::col): New variable.
188         Updated constructor accordingly.
189         (draw_node::gcol, draw_node::fcol): New variables.
190         Updated constructor accordingly.
191         (special_node::gcol, special_node::fcol): New variables.
192         Updated constructors accordingly.
193         (troff_output_file::put_char, troff_output_file::put_charwidth,
194         troff_output_file::draw): Set glyph and fill color.
195         (troff_output_file::start_special): Set glyph and fill color.
196         Always set current font.
197         (troff_output_file::fill_color, troff_output_file::glyph_color):
198         Don't call `do_motion'.
199         (glyph_node::gcol, glyph_node::fcol): New variables.
200         Updated constructors of glyph_node and ligature_node accordingly.
201         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
202         member functions.
203         (glyph_node::merge_glyph_node,
204         kern_pair_node::add_discretionary_hyphen,
205         node::add_discretionary_hyphen): Updated.
206         (break_char_node::merge_self): Updated.
207         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
208         vmotion_node::tprint): Handle color.
209         (make_glyph_node, make_node, node::add_char): Updated.
211         * src/roff/troff/env.cc (environment::space_newline,
212         environment::space, environment::output_line, environment::do_break,
213         environment::make_tab_node, environment::add_padding, title):
214         Updated.
215         (environment_switch, environment_copy): Don't add color nodes.
217         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
218         nothing.
219         (token::next): Updated.
220         \m and \M now are as transparent as \s.
221         (process_input_stack, token::add_to_node_list, token::process,
222         read_draw_node): Updated.
223         (charinfo_to_node_list): Don't add color nodes.
225         * doc/groff.texinfo: Updated.
227 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
229         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
230         strings.
232 2002-09-27  Colin Watson  <cjwatson@debian.org>
234         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
236 2002-09-23  Werner LEMBERG  <wl@gnu.org>
238         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
239         appropriate.
240         (DEFAULT_LINEWIDTH_FACTOR): New macro.
241         (linewidth_factor): New global variable.
242         (lbp_printer::set_line_thickness): Fix case for size < 0, using
243         linewidth_factor.
244         (long_options): Add -w/--linewidth option.
245         (usage): Updated.
246         (main): Handle -w option to set linewidth_factor.
247         (lbp_printer::lbp_printer): Initialize req_linethickness, not
248         line_thickness.
250         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
252 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
254         Fixed a bug in the line thickness setting code.
256         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
257         variable.
258         (lbp_printer::set_line_thickness): Pass environment as second
259         parameter.
260         Implement it actually.
261         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
262         and `set_line_thickness, depending on the current font size.
264 2002-09-21  Werner LEMBERG  <wl@gnu.org>
266         Some Debian patches.
268         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
269         * src/roff/troff/node.cc (bracket_node::copy): Initialize
270         `list->last'.
272 2002-09-20  Werner LEMBERG  <wl@gnu.org>
274         * configure: Regenerated with autoconf 2.54.
276 2002-09-20  Werner LEMBERG  <wl@gnu.org>
278         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
279         glyph_color.
280         Rename cur_fill_color to fill_color.
281         * src/roff/troff/env.cc: Updated.
283 2002-09-20  Werner LEMBERG  <wl@gnu.org>
285         * src/roff/troff/env.cc (title): Copy color status after processing
286         title.
287         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
288         fill color nodes to reset colors properly.
290         * tmac/www.tmac (DC): Fix color handling.
292         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
293         * doc/groff.texinfo: Fixing documentation of `tl' request.
294         * doc/webpage.ms: Updated.
296 2002-09-19  Werner LEMBERG  <wl@gnu.org>
298         * src/roff/troff/env.cc (environent_switch, environment_copy):
299         Emit glyph and fill color nodes to initialize colors properly.
301 2002-09-17  Colin Watson  <cjwatson@debian.org>
303         * src/roff/troff/env.cc (environment::set_glyph_color,
304         environment::set_fill_color): Fix typo which prevented \m[] work
305         correctly.
307 2002-09-17  Werner LEMBERG  <wl@gnu.org>
309         Add left and right italic correction to non-slanted PS fonts.  This
310         is an experimental feature to improve image rendering of grohtml.
312         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
313         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
314         * font/devps/*: All non-slanted fonts regenerated.
315         * NEWS: Updated.
317 2002-09-16  Werner LEMBERG  <wl@gnu.org>
319         Add a site-specific font directory.
321         * Makefile.in (localfontdir, legacyfontdir): New variables.
322         (fontpath): Use them.
323         (MDEFINES, uninstall_dirs): Updated.
324         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
325         Remove `FONTPATH' and `MACROPATH'.
327         * src/roff/troff/troff.man, NEWS: Updated.
328         * doc/groff.texinfo (Font Directories): New section.
329         Other minor fixes.
331         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
332         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
333         src/preproc/grn/grn.man: Minor fixes.
335         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
336         Remove unused variable.
338 2002-09-11  Werner LEMBERG  <wl@gnu.org>
340         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
341         * man/groff_out.man: Fix documentation of 'N'.
343 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
345         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
346         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
347         set.
348         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
349         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
350         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
351         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
352         PRE_TAG>: Call `begin' with `FALSE'.
354 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
356         * src/libs/libgroff/string.cc (string::extract): Fix position of
357         terminating null byte.
359 2002-09-08  Werner LEMBERG  <wl@gnu.org>
361         Add global option `nospaces' to tbl so that leading and trailing
362         spaces in data items are ignored.
364         * src/libs/libgroff/string.cc (string::remove_spaces): New member
365         function to remove leading and trailing spaces.
366         * src/include/stringclass.h: Updated.
368         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
370         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
371         option.
372         Fix typo in error messages.
373         (process_data): Implement `nospaces' option.
374         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
376 2002-09-07  Werner LEMBERG  <wl@gnu.org>
378         * src/include/config.hin: Add `HAVE_ISATTY'.
379         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
380         `fname' member.
381         * src/libs/libgroff/tmpname.cc: Include `time.h'.
382         * src/libs/libdriver/input.cc (Char): Add `operator==' and
383         `operator!=' for `char'.
384         * doc/groff.texinfo: Replace @ifnottex block for top node with
385         @ifhtml block.
387 2002-09-06  Werner LEMBERG  <wl@gnu.org>
389         * doc/Makefile.in (.texinfo.html): Add -I switch.
390         * doc/groff.texinfo: Add @ifnottex block for top node to make
391         translation to HTML work.
393 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
395         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
396         (get_papersize, determine_vertical_offset): Removed.
397         (char_buffer::do_image): Always specify letter size.
398         (main): Updated.
399         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
400         -sPAPERSIZE.
402 2002-09-05  Werner LEMBERG  <wl@gnu.org>
404         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
405         default indentation.
407 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
409         * src/preproc/html/pre-html.cc (imageList::createPage): Use
410         -sPAPERSIZE for gs.
411         (generateImages): Clean up push-back buffer.
413 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
415         * doc/groff.texinfo: Minor fixes.
417 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
419         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
420         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
421         (gsPaper): Removed.
422         (determine_vertical_offset): Use LETTER_LENGTH.
423         (createPage): Moved to ...
424         (imageList::createPage): This.
425         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
426         (imageList::getMaxX): New function.
427         (createImage): Moved to ...
428         (imageList::createImage): This.
429         (imageList::createImages): New function.
430         (generateImages): Read `maxx' directly.
431         Updated.
432         (scanArguments): Don't specify `gsPaper' for `-o'.
433         (makeTempFiles): Call `xtmpfile' with the last argument set to
434         `TRUE'.
436 2002-08-24  Werner LEMBERG  <wl@gnu.org>
438         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
439         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
440         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
441         * src/preproc/html/pushback.cc: Include nonposix.h.
442         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
443         conditionally.
445 2002-08-23  Werner LEMBERG  <wl@gnu.org>
447         Use $(OBJEXT) for the object file extension.
449         * Makefile.comm (.SUFFIXES): Add .obj.
450         (.cc.obj, .c.obj): New implicit rules.
451         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
452         (MDEFINES): Add EXEEXT and OBJEXT.
453         * */Makefile.sub: s/.o/.$(OBJEXT)/.
455 2002-08-22  Werner LEMBERG  <wl@gnu.org>
457         * INSTALL: Mention texinfo 4.2 as a prerequisite.
459 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
461         * src/devices/grohtml/post-html.cc (colType): Make enum global to
462         the file.
463         (html_printer::update_min_max, html_printer::add_table_end): New
464         methods.
465         (html_printer::lookahead_for_tables): Use them.
466         Reset page offset correctly.
467         (html_printer::~html_printer): Add creation of creator comment up.
469 2002-08-20  Werner LEMBERG  <wl@gnu.org>
471         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
472         * man/groff_tmac.man: Fix typos.
473         * man/groff_font.man: Minor reordering.
474         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
475         * contrib/groffer/groffer.man: Fix typos.
477 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
479         Avoid endless loops while scanning for tables.
481         * src/devices/grohtml/post-html.cc (list::insert): Set
482         ptr->right->left.
483         (html_printer::next_horiz_pos): Add `text_glob' argument; update
484         all callers.
485         Return immediately if that argument is NULL.
486         (html_printer::calc_nf): Don't test if `g' is NULL.
487         (html_printer::lookahead_for_tables): Use
488         `glyphs.move_right_get_data'.
489         Don't test if `g' is NULL.
491 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
493         A better fix, replacing fix 2002-08-15, for increasing SIZE.
495         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
496         a pointer.
497         (char_block::char_block): Allocate `buffer'.
498         (char_buffer::add_string): Use it.
500 2002-08-15  Werner LEMBERG  <wl@gnu.org>
502         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
503         src/devices/grodvi/grodvi.man: Document default line thickness.
505 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
507         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
508         8192.
510 2002-08-14  Werner LEMBERG  <wl@gnu.org>
512         * doc/webpage.ms: Updated.
514 2002-08-09  Werner LEMBERG  <wl@gnu.org>
516         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
517         unbreakable space.
519 2002-08-08  Aaron Campbell <aaron@monkey.org>
521         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
522         (&& -> &).
524 2002-08-08  Werner LEMBERG  <wl@gnu.org>
526         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
527         tok.next().
528         (read_gray): Ditto.
529         Don't push back a space but a newline onto the stack.
531 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
533         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
534         inadvertently.
536         * src/devices/grohtml/post-html.cc (html_printer::end_font,
537         html_printer::start_font): Handle them.
538         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
539         reset bold and tt.
540         (html_text::do_bold): Don't reset italic and tt.
541         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
542         * font/devhtml/DESC.proto: Add those fonts.
543         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
545 2002-08-07  Werner LEMBERG  <wl@gnu.org>
547         * MORE.STUFF: Added gpresent.
549         * tmac/trace.tmac: Show nesting level by a corresponding amount of
550         whitespace before printing the logging message.
552 2002-07-31  Colin Watson  <cjwatson@debian.org>
554         * src/devices/grohtml/html-table.cc (html_table::finish_row):
555         Initialize `n' to zero.  This fixes a segfault on ARM.
557 2002-07-30  Werner LEMBERG  <wl@gnu.org>
559         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
561 2002-07-29  Werner LEMBERG  <wl@gnu.org>
563         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
564         final semicolon.
566 2002-07-28  Colin Watson  <cjwatson@debian.org>
568         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
569         `.ps'.
570         (html_printer::html_printer): Initialize `pointsize'.
572 2002-07-26  Werner LEMBERG  <wl@gnu.org>
574         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
575         gnu.png.
576         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
577         (gnu.eps): Add -rle switch to pnmtops.
578         (distfiles): Add gnu.eps and gnu.png.
580 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
582         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
583         Add `operator!='.
585 2002-07-24  Werner LEMBERG  <wl@gnu.org>
587         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
588         ' \+' but '  *' for sed.
589         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
591 2002-07-23  Werner LEMBERG  <wl@gnu.org>
593         * doc/groff.texinfo: Document `papersize' keyword.
594         * NEWS, man/groff_font.man: Updated.
596 2002-07-23  Colin Watson  <cjwatson@debian.org>
598         Extend papersize keyword to accept more than a single entry.  The
599         first valid will be used.
601         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
602         (font::scan_papersize): Really skip final newline.
603         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
605 2002-07-23  Werner LEMBERG  <wl@gnu.org>
607         * configure.ac: Test for isatty.
608         * configure: Regenerated.
609         * src/include/posix.h: Check HAVE_ISATTY.
610         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
611         * src/utils/lookbib/lookbib.cc: Include posix.h.
612         Don't declare isatty.
614 2002-07-21  Werner LEMBERG  <wl@gnu.org>
616         * NEWS: Add `output' request.
618         * REVISION: Increased to 1.
620 Version 1.18.0 released
621 =======================
623 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
625         Allow internal glyph indices > 0xFF in grohtml for input characters.
627         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
628         as parameter.
629         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
630         Updated all callers.
631         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
632         (html_printer): Updated.
634 2002-07-19  Werner LEMBERG  <wl@gnu.org>
636         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
637         * font/devutf8/R.proto: Adding some missing glyphs.
638         * font/devutf8/NOTES: Updated.
640         * tmac/dvi.tmac: Add more composite glyphs.
641         * tmac/html.tmac: Updated.
643         * man/groff_char.man: Add `sum' and `product' entities.
645         * NEWS: Updated.
647 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
649         Improved table, tab, and indenting support.
651         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
652         string_iterator::suppress_newline_flag): Removed.  Updated all
653         function which have used it.
655         * src/roff/troff/env.cc: Include `input.h'.
656         (environment::add_node): Accept 0 as parameter.
657         (environment::add_html_tag): Add `force' parameter.
658         Updated all callers.
659         (environment::add_html_tag_tabs): Ditto.
660         For the moment, support left-aligned tabs only.
661         (environment::make_html_tag): New function.
662         (fill, no_fill): Set .br html tag additionally.
663         (environment::newline): Emit `eol.ce' or `eol' tag for html.
664         (environment::add_html_tag_eol): Removed.
665         (tab_stops::distance_to_next_tab): Add variant for handling 
666         nextpos'.
667         (environment::distance_to_next_tab): Ditto.
668         Updated all callers.
669         (environment::handle_tab): Handle tabs for html.
670         
671         * src/roff/troff/env.h: Updated.
673         * src/roff/troff/div.cc: Updated all callers of
674         `environment::add_html_tag'.
676         * src/devices/grohtml/html-table.cc,
677         src/devices/grohtml/html-table.h: New files.
679         * src/devices/grohtml/html-text.cc (html_text): New members
680         `blank_para' and `start_space'.
681         (html_text::issue_tag): Don't emit TABLE_TAG.
682         Handle indentation for PRE_TAG and P_TAG.
683         (html_text::end_tag): Updated.
684         (html_text::table_is_void, html_text::issue_table_begin,
685         html_text::issue_table_end): Removed.
686         (html_text::do_push): Simplified.
687         [DEBUGGING]: Small fix.
688         (html_text::push_para): Add new parameter for indentation; updated
689         all callers.
690         Handle PRE_TAG.
691         (html_text::do_indent, html_text::do_table, html_text::done_table,
692         html_text::is_in_table): Removed.
693         (html_text::do_pre): Handle P_TAG also.
694         (html_text::shutdown): Handle p->indent.
695         (html_text::check_emit_text): Simplified.
696         (html_text::do_emittext): Reset `blank_para'.
697         (html_text::do_para): Add new parameter for indentation; updated
698         all callers.
699         (html_text::remove_indent): New function.
700         (html_text::do_space): Handle verbatim text properly.
701         (html_text::ever_emitted_text, html_text::starts_with_space,
702         html_text::remove_para_align): New functions.
703         (html_text::dump_stack_element, html_text::dump_stack): Updated.
705         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
706         Updated.
708         * src/devices/grohtml/post-html.cc: Include html-table.h.
709         (INDENTATION): Removed.
710         (text_glob): Added many `is_<foo>' functions.
711         Added table description `tab'.
712         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
713         member functions.
714         (list): Add `insert' and `move_to' member functions.
715         (page): Add `insert_tag' member function.
716         (page::dump_page) [DEBUG_TABLES]: Improved.
717         (html_printer): Add `table' and `max_linelength' elements.
718         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
719         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
720         `remove_tabs', `remove_courier_tabs'.
721         (html_printer::emit_raw): Handle indentation.
722         (html_printer::do_center, html_printer::write_header): Updated.
723         (html_printer::is_courier_until_eol): Check for tag.
724         (html_printer::do_linelength): Handle max_linelength.
725         (html_printer::do_page_offset, html_printer::do_indentation): Handle
726         fill_on.
727         (html_printer::do_tempindent): Updated.
728         (html_printer::do_indentedparagraph): Removed.
729         (html_printer::do_indent): Simplified.
730         (html_printer::do_eol): Use `ever_emitted_text'.
731         (html_printer::do_flush, html_printer::do_links): Don't call
732         done_table.
733         (html_printer::do_break): Handle end_tempindent.
734         (html_printer::troff_tag): Get argument.
735         Don't handle `.ip'.
736         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
737         (html_printer::flush_page): Call `lookahead_for_tables'.
738         Don't call `done_table'.
739         (html_printer::add_to_sbuf): Always call do_indent.
741         * src/devices/grohtml/Makefile.sub: Updated.
743         * tmac/an-old.tmac (TP): Don't handle html device specially.
744         (an-do-tag-html): New function which will be used instead of
745         `an-do-tag' if html device is used.
747         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
749         * tmac/s.tmac (@IP): Don't handle html device specially.
750         (@IP-html): New function which will be used instead of `@IP' if
751         html device is used.
753         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
754         is a hack which will eventually vanish again.
755         (PIMG): Handle `-C' option correctly if not html.
756         (HR): Use HTML-NS.
758 2002-07-17  Werner LEMBERG  <wl@gnu.org>
760         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
762 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
764         * contrib/pic2graph/pic2graph.*: Use convert(1).
765         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
767 2002-07-14  Bernd Warken  <bwarken@mayn.de>
769         * tmac/groff_trace.man: New file.
770         * tmac/Makefile.sub: Updated.
771         * NEWS: Updated.
773 2002-07-13  Werner LEMBERG  <wl@gnu.org>
775         * src/roff/groff/groff.man: Add some cross references.
777 2002-07-12  Werner LEMBERG  <wl@gnu.org>
779         * src/roff/troff/input.cc (substring_request): Add warnings for
780         string indices out of range.
782 2002-07-11  Werner LEMBERG  <wl@gnu.org>
784         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
785         * font/devdvi/*EC: Regenerated.
787 2002-07-10  Bernd Warken  <bwarken@mayn.de>
789         * man/groff_char.man: Updated and extended.
791 2002-07-10  Werner LEMBERG  <wl@gnu.org>
793         * src/roff/troff/input.cc (length_macro): Renamed to...
794         (length_request): This.
795         Move call of `tok.next()' to the very end, otherwise the register
796         value hasn't been updated yet.
797         (init_input_requests): Updated.
799 2002-07-09  Werner LEMBERG  <wl@gnu.org>
801         * src/roff/troff/input.cc (substring_macro): Renamed to...
802         (substring_request): This.
803         (init_input_requests): Updated.
804         * src/roff/troff/request.h: Updated.
806 2002-07-08  Robert D. Goulding <goulding@Princeton.EDU>
808         * src/roff/grog/grog.sh: Fix typo.
810 2002-07-08  Werner LEMBERG  <wl@gnu.org>
812         * win32-diffs: Updated.
814         Handle `papersize' keyword properly in DESC.
816         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
817         type.
818         Updated all callers.
819         * src/libs/libgroff/paper.cc: Add four more paper formats used by
820         grolj4.
821         * src/include/paper.h: Updated.
823         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
824         Other minor C syntax fixes.
825         (papersize, paperlength, paperwidth): Renamed to `user_*'.
826         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
827         members.
828         (lbp_printer::lbp_printer): Pass three arguments.
829         Set paper dimensions properly.
830         (make_printer, main): Updated.
831         (handle_unknown_desc_command): Fix error messages.
832         (main): Handle papersize keyword in DESC properly.
834         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
835         `user_paper_size'.
836         (lbp_printer::lbp_printer): Pass an argument.
837         Set paper_size properly.
838         (handle_unknown_desc_command): Removed.
839         (make_printer, main): Updated.
840         * src/devices/grolj4/grolj4.man: Minor documentation fix.
842         * man/groff_font.man, NEWS: Updated.
844 2002-07-07  Werner LEMBERG  <wl@gnu.org>
846         Integrated eqn2graph, contributed by Eric S. Raymond.
848         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
849         files.
850         * Makefile.in, NEWS: Updated.
852 2002-06-04  Werner LEMBERG  <wl@gnu.org>
854         Changing the substring request to make it fit better with other
855         string manipulation functions in other programming languages:
856         Index 0 is now the first character in the string, and index -1
857         indicates the last character.  Since this request didn't work
858         properly anyway in the last release, it doesn't harm too much to
859         change the syntax.
861         * src/roff/troff/input.cc (substring_macro): Use loops to get
862         the real string length (ignoring COMPATIBLE_SAVE and
863         COMPATIBLE_RESTORE) and offsets.
864         Implement change described above.
866         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
867         (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
869         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
871 2002-06-03  Werner LEMBERG  <wl@gnu.org>
873         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
874         COMPATIBLE_RESTORE are completely ignored.
876         * src/roff/troff/input.cc (char_list::set, char_list::get): New
877         functions.
878         (macro): `length' field renamed to `len'.
879         Added new field `empty_macro' (1 if macro is empty), to be used
880         instead of checking `len'.
881         Updated all callers.
882         (macro::empty): Updated.
883         (macro::length, macro::set, macro::get): New functions.
884         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
885         Set `empty_macro'.
886         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
887         COMPATIBLE_RESTORE pairs.
888         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
889         * src/roff/troff/request.h: Updated.
891         * doc/groff.texinfo: Document .chop's behaviour better.
893 2002-06-02  Werner LEMBERG  <wl@gnu.org>
895         * doc/pic.ms: Fix documentation for the addition of positions.
897         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
899 2002-06-29  Werner LEMBERG  <wl@gnu.org>
901         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
903         * src/roff/troff/input.cc (have_string_arg): New global variable.
904         (read_mode): New enumeration.
905         (read_escape_name): Use it.  Update all calls.
906         (read_long_escape_name): Use it.  Update all calls.
907         Set have_string_arg if appropriate.
908         (get_char_for_escape_name): Add parameter for handling space
909         character.
910         (interpolate_string_with_args, decode_string_args): New functions.
911         (get_copy, token::next): Call it if necessary.
912         (interpolate_string): Fix error message.
914         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
915         Document it.
917 2002-06-24  Bernd Warken  <bwarken@mayn.de>
919         * man/groff_tmac.man: Updated and extended.
921 2002-06-24  Werner LEMBERG  <wl@gnu.org>
923         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
925 2002-06-23  Werner LEMBERG  <wl@gnu.org>
927         * doc/pic.ms: Improve documentation of composite block objects.
929 2002-06-22  Werner LEMBERG  <wl@gnu.org>
931         * src/roff/troff/input.cc (init_registers): Add three registers
932         `seconds', `minutes', and `hours' to hold the current time.
934         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
935         Updated.
937 2002-06-20  Werner LEMBERG  <wl@gnu.org>
939         Make \X accept both `\ ' and `\~', converting them to single space
940         characters.
942         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
943         (token::unstretchable_space): New inline function.
944         * src/roff/troff/input.cc (token::next, token::delimiter,
945         token::description, token::add_to_node_list, token::process): Handle
946         TOKEN_UNSTRETCHABLE_NODE.
947         (encode_char): Handle tok.stretchable_space and
948         tok.unstretchable_space.
950         * NEWS, doc/groff.texinfo: Document it..
952 2002-06-19  Werner LEMBERG  <wl@gnu.org>
954         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
956         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
957         keyword to enable/disable SGR output.
958         (tty_printer::change_fill_color): New function.
959         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
961         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
962         call.
964 2002-06-18  Werner LEMBERG  <wl@gnu.org>
966         Add a `color' request and a `.color' register to control usage of
967         colours.
969         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
970         (color_flag): This (which is the inverse).
971         (activate_color): New function.
972         (main, init_input_requests): Updated.
973         * src/roff/troff/troff.h, src/roff/troff/node.cc
974         (troff_output_file::fill_color, troff_output_file::glyph_color):
975         Updated.
977         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
978         Document the changes.
980 2002-06-17  Colin Watson  <cjwatson@debian.org>
982         Circumvent bug in autoconf 2.53 regarding top_builddir.
984         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
985         * Makefile.in, doc/Makefile.in:
986         s/@top_builddir@/@groff_top_builddir@/.
987         * configure: Regenerated (with autoconf 2.53).
989 2002-06-17  Werner LEMBERG  <wl@gnu.org>
991         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
992         `paperwidth' and `paperlength' for the `papersize' keyword.
994 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
996         * src/devices/grops/grops.man: Add info about Type 42 fonts.
998 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
1000         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
1001         html_printer::do_linelength, html_printer::do_pageoffset,
1002         html_printer::do_indentation, html_printer::do_tempindent,
1003         html_printer::do_break, html_printer::begin_page): Clear indented
1004         text.
1005         * tmac/html.tmac: Disable hyphenation.
1007 2002-06-15  Werner LEMBERG  <wl@gnu.org>
1009         Don't produce HTML files if utility programs are missing.
1011         * Makefile.in (make_html, make_install_html): New variables.
1012         (MDEFINES): Updated.
1014         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
1015         utility programs.
1016         * configure.ac: Use it.
1017         * configure: Regenerated.
1019         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
1020         (HTMLEXAMPLESFILES): This new variable.
1021         (EXAMPLESIMAGEFILES): Renamed to...
1022         (HTMLEXAMPLEIMAGEFILES): This.
1023         (CLEANADD): Add HTMLEXAMPLEFILES.
1024         (all): Use `make_html'.
1025         (html): New target.
1026         (install_data): Use `make_install_html'.
1027         Move html stuff to...
1028         (install_html): This new target.
1029         (uninstall_sub): Updated.
1031 2002-06-14  Bernd Warken  <bwarken@mayn.de>
1033         * src/roff/grog/Makefile.sub (grog): Renamed to...
1034         (grog.old): This.
1035         (grog): New rule to always install grog.sh as grog.
1037 2002-06-08  Bernd Warken  <bwarken@mayn.de>
1039         * src/roff/grog/grog.pl: Fix typo.
1041 2002-06-07  Werner LEMBERG  <wl@gnu.org>
1043         * doc/groff.texinfo: Add more info on .tr arguments.
1045 2002-06-05  Werner LEMBERG  <wl@gnu.org>
1047         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1049         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
1050         * configure: Regenerated.
1052 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1054         * src/roff/troff/symbol.cc (table_sizes): Add more values.
1056         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
1058 2002-06-04  Werner LEMBERG  <wl@gnu.org>
1060         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
1061         is not initialized at the time we need it in case `--prefix' hasn't
1062         been set.  Check for `ac_default_prefix' also.
1063         Test for `papersize' keyword also and generalize allowed whitespace.
1064         * configure: Regenerated.
1066         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
1067         `paperlength'.
1069         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
1070         with...
1071         (src_version, src_revision): New variables to avoid overwriting
1072         from parent make process.
1073         (version.cc): Updated.
1075         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
1076         (linebuf, linebufsize): New global variables.
1077         (sys_fatal): Use `fatal' to abort properly.
1078         (get_line): New function.
1079         (get_resolution): Use it.
1080         Improve error messages.
1081         (get_papersize): Check `papersize' also.
1082         Use `get_line'.
1083         Improve error messages.
1085 2002-06-03  Werner LEMBERG  <wl@gnu.org>
1087         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
1088         should be removed only if builddir is not srcdir.
1089         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
1090         (clean): Depend on `mostlyclean'.
1091         (distclean): Depend on `clean'.
1092         (realclean, extraclean): Depend on `distclean'.
1093         (.y.cc, .y.o): Simplified.  The output files are no longer written
1094         to srcdir but to builddir.
1095         * Makefile.in (MDEFINES): Add `version' and `revision'.
1096         (uninstall_dirs): Fix order of directories.
1097         * doc/Makefile.sub (version, revision): Removed.
1098         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
1099         Added `HTMLDOCFILES'.
1100         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
1101         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
1102         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
1103         as prefix.
1105         * doc/texinfo.tex (\authortt): New macro.
1106         (\shortcontt): Define.
1107         (\titlepage): Set \tt to \authortt while defining \authorfont.
1108         (\appendixbox): New macro.
1109         (\chapmacro, \appendixentry): Use \appendixbox to get even
1110         indentation for letters.
1111         (\summarycontents): Set \tt.
1112         (\internalpagesize): Add two arguments for real paper width and
1113         height as needed by pdfTeX.
1114         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
1115         Updated.
1116         (\tempdima, \tempdimb): New temporary dimensions.
1117         (\pagesizesyyy): Updated.
1119 2002-06-02  Werner LEMBERG  <wl@gnu.org>
1121         Adding a new keyword `papersize' to the DESC file format (similar
1122         but not completely identical to grolbp's extension).  grops now has
1123         a -p command line option to override `papersize'.  Finally, grolbp
1124         has been adapted to the new syntax.
1126         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
1127         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
1128         elements.
1129         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
1130         (CCSRCS): Add `paper.cc'.
1132         * src/include/font.h (font): Add `papersize' element.
1133         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
1134         (font::scan_papersize): New function.
1135         (font::load_desc): Use it for handling `papersize' keyword.
1136         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
1138         * src/devices/grops/ps.cc: Include paper.h.
1139         (user_paper_length): New global variable.
1140         (ps_printer): Use paper length as initializer.
1141         (make_printer): Updated.
1142         (main): Handle new `-p' option.
1143         * src/devices/grops/grops.man: Updated.
1145         * src/devices/grolbp/lbp.cc: Include paper.h.
1146         s/papersizes/lbp_papersizes/.
1147         (set_papersize): Use new `papersizes' array.
1148         (handle_unknown_desc_command): Don't handle `papersize'.
1149         (main): Use `font::scan_papersize' for handling `-p' option.
1150         * src/devices/grolbp/grolbp.man: Updated.
1152         * man/groff_font.man: Document `papersize'.
1153         * NEWS: Updated.
1155 2002-05-30  Werner LEMBERG  <wl@gnu.org>
1157         * src/devices/grops/TODO: Updated.
1158         * src/devices/grops/grops.man: More info on paper formats.
1159         * man/groff_font.man: Document `paperheight' and `paperwidth'.
1161 2002-05-29  Werner LEMBERG  <wl@gnu.org>
1163         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
1164         to list only if srcdir != currdir.
1165         (distfiles): New target.
1167         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
1168         (NOMAKEDIRS): New variable.
1169         (DISTDIRS): Use it.
1171 2002-05-26  Werner LEMBERG  <wl@gnu.org>
1173         Add .output request, similar to \! at top-level.
1175         * src/roff/troff/input.cc (transparent): Remove unused declaration.
1176         (output_request): New function.
1177         (init_input_requests): Add it.
1178         Sorted.
1179         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1180         Document it.
1182         * Makefile.in (MDEFINES): Add INSTALL_INFO.
1183         (prepare_examples): Fix typo.
1184         * doc/groff.texinfo (@direntry): Fix it.
1186 2002-05-25  Werner LEMBERG  <wl@gnu.org>
1188         Including the doc subdir into groff's Makefile system.
1190         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
1191         * configure.ac: Use it.
1192         Generate `doc/Makefile'.
1193         * configure: Regenerated.
1195         * Makefile.in (infodir, INSTALL_INFO): New variables.
1196         (MDEFINES, uninstall_dirs): Updated.
1197         (OTHERDIRS): Add `doc'.
1198         * Makefile.comm (CLEANDIRADD): New variable.
1199         (mostlyclean): Use it.
1201         * doc/Makefile.sub, doc/Makefile.in: New files.
1202         * doc/Makefile: Removed.
1204         * NEWS, INSTALL: Updated.
1206 2002-05-24  Werner LEMBERG  <wl@gnu.org>
1208         * doc/homepage.ms: Renamed to ...
1209         * doc/webpage.ms: This.
1210         Use `.NHR'.
1212 2002-05-23  Werner LEMBERG  <wl@gnu.org>
1214         Integrating the `mom' macro package, contributed by Peter Schaffter
1215         <df191@ncf.ca>.
1217         * contrib/mom/*: New subdirectory tree.
1218         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
1219         be used for documentation files.
1220         (MDEFINES, uninstall_dirs): Use them.
1221         (OTHERDIRS): Add contrib/mom.
1222         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
1223         @HTMLDOCDIR@.
1224         * MANIFEST, NEWS: Updated.
1226 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
1228         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
1229         if at outer level; at start-up we are at outer level.
1231         * src/roff/troff/input.cc (do_suppress): Implement it.
1232         Simplify \O[3].
1234         Add option -p to show progress information.
1235         pre-grohtml will now render only one page at a time, reducing the
1236         size of needed disk resources enormously.
1238         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
1239         (imagePageName): New global variable.
1240         (psPageName, show_progress, currentPageNo): New global variables.
1241         (html_system): Close saved stderr and stdout handles.
1242         (write_end_image): Accept a parameter to control \O escape.
1243         (write_start_image): Adapted to new \O meaning.
1244         (char_buffer::write_upto_newline): Updated.
1245         (createAllPages): Replaced with...
1246         (createPage): This new function to create a single page for images.
1247         It uses `psselect' from the psutils package.
1248         (removeAllPages): Removed.
1249         (createImage): Updated.
1250         Handle progress display.
1251         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
1252         (scanArguments): Add option -p.
1253         (makeTempFiles): Updated to create temp files for psPageName and
1254         imagePageName.
1255         (removeTempFiles): Removed.
1256         (main): Updated.
1258         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
1259         html_printer::write_header): Append `\0' to `buffer'.
1260         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
1261         (main): Handle -p.
1262         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
1263         Handle `text_emitted'.
1264         (html_text::table_is_void): Slightly rewritten.
1265         (stop): New external symbol.
1266         (html_text::do_push) [DEBUGGING]: Use it and simplify.
1267         (html_text::shutdown): Call `dump_stack'.
1268         (html_text::do_space): Rewritten.
1269         * src/devices/grohtml/grohtml.man: Document -p and the need of
1270         `psselect'.
1272         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
1273         new \O syntax.
1274         Call \O[0] if `ps4html' is active.
1275         * tmac/s.tmac (@EQ, @EN): Handle html better.
1276         (@TS, TE): Ditto.
1277         * tmac/html.tmac: Don't use black for background colour.
1279         * src/roff/troff/node.cc: Include `div.h'.
1280         (troff_output_file::really_print_line): Don't use `is_on'. 
1281         (troff_output_file::word_marker, troff_output_file::flush_tbuf
1282         troff_output_file::check_charinfo,
1283         troff_output_file::put_char_width, troff_output_file::put_char,
1284         troff_output_file::determine_line_limits, troff_output_file::draw,
1285         real_output_file::begin_page, glyph_color_node::tprintf,
1286         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
1287         Use `is_on'.
1288         (troff_output_file::really_on): Call `do_motion'.
1289         (suppress_node::tprint): Use `get_page_number' instead of `%'
1290         register.
1291         Call `reset_output_registers' conditionally on `is_on'.
1293         * doc/groff.texinfo: Document new syntax of \O.
1294         * NEWS, man/groff_diff.man: Updated.
1296 2002-05-22  Werner LEMBERG  <wl@gnu.org>
1298         * MORE.STUFF: Add info about David Frey's deroff implementation.
1299         Mention troff.org.
1301 2002-05-16  Werner LEMBERG  <wl@gnu.org>
1303         Pic's `with' attribute now accepts positions.
1305         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
1306         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
1307         conflicts.
1308         (object_spec): Add rule for `WITH' and `position'.
1309         (relative_path): Give `corner' the precedence of `CHOP'.
1310         * src/preproc/pic/object.h (path): New members `pos' and
1311         `is_position'.
1312         * src/preproc/pic/object.cc: Updated initializers of `path'.
1313         (path::follow): Handle `is_position'.
1315         * doc/pic.ms: Completely updated grammar description.
1316         Many typographical improvements.
1318 2002-05-15  Werner LEMBERG  <wl@gnu.org>
1320         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
1321         code of x in range 0-127) also.
1322         * doc/groff.texinfo, man/groff_diff.man: Updated.
1324         Added keywords `north', `south', `east', and `west' for corners
1325         in pic.
1327         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
1328         and WEST.
1329         (yylex): Handle them.
1330         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
1331         (corner): Handle them.
1333 2002-05-14  Werner LEMBERG  <wl@gnu.org>
1335         * src/devices/grops/grops.man: Clarify handling of `download' file.
1337 2002-05-11  Werner LEMBERG  <wl@gnu.org>
1339         Adding `warnscale' and `spreadwarn' requests, based on a patch from
1340         Jeffrey Friedl <jfriedl@yahoo.com>.
1342         * src/roff/troff/input.cc (spread_limit, warn_scale,
1343         warn_scaling_indicator): New global variables.
1344         (warnscale_request, spreadwarn_requests): New functions.
1345         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
1346         (init_input_requests): Updated.
1347         (error_type): Add `OUTPUT_WARNING'.
1348         (do_error): Handle it.
1349         (output_warning): New warning function which shows output location.
1350         * src/roff/troff/env.h (spread_limit): New external variable.
1351         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
1352         `output_warning'.
1353         (distribute_space): Emit warning if added space is larger than
1354         `spread_limit'.
1355         (environment::possibly_break_line): Emit warning if a line can't
1356         be adjusted on both sides.
1358         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
1360 2002-05-08  Werner LEMBERG  <wl@gnu.org>
1362         * src/roff/troff/node.cc (special_node::special_node): Use
1363         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
1364         \X''\% crashes, for example.
1366         * doc/groff.texinfo: Document \! and \? used at top-level.
1368 2002-05-06  Werner LEMBERG  <wl@gnu.org>
1370         * src/preproc/pic/pic.man: Fix some keyword syntax.
1371         Other minor typographical fixes.
1373         * src/roff/groff/groff.man: Fix typos.
1375 2002-05-04  Werner LEMBERG  <wl@gnu.org>
1377         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
1378         (ShortOpt[]): This to avoid problems with refer.
1380         * doc/pic.ms: Fix typo.
1381         Fix pic grammar description.
1383         * tmac/an-old.tmac (ne): Use de1, not de.
1385 2002-05-03  Werner LEMBERG  <wl@gnu.org>
1387         * doc/groff.texinfo: Finished separation of glyphs and characters.
1388         Don't use the string `Appendix' for appendix headers (both in
1389         the text and the table of contents).
1390         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
1391         directories.
1393         Use registers LL and LT (similar to -ms) for controlling the
1394         length of title and line, respectively, in the -man and -mdoc
1395         macro packages.
1397         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
1398         (doc-setup-page-layout): Use \n[LL] and \n[LT].
1399         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
1400         (TH): Use \n[LL].
1401         (an-header, an-p-footer): Use \n[LT].
1402         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
1403         doc/groff.texinfo: Document it.
1405 2002-05-02  Werner LEMBERG  <wl@gnu.org>
1407         * doc/fdl.texi: New file.
1408         * doc/groff.texinfo: Include it.
1409         Define and use @copying.
1410         Starting with separating glyph, symbol, and character.
1412 2002-04-27  Werner LEMBERG  <wl@gnu.org>
1414         * Makefile.in (EXEEXT): Set it.
1415         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
1416         programs.
1418         * src/include/nonposix.h: Define GS_NAME.
1419         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
1421         Some preliminary changes for EMX support under OS/2.
1423         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
1424         __EMX__ similar to __MSDOS__.
1425         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
1427 2002-04-25  Werner LEMBERG  <wl@gnu.org>
1429         * doc/groff.texinfo: Integrated groff_out.man.
1430         Some macro fixes.
1432 2002-04-23  Werner LEMBERG  <wl@gnu.org>
1434         * man/groff_out.man: Minor fixes.
1436 2002-04-23  Werner LEMBERG  <wl@gnu.org>
1438         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
1439         correct page references.
1440         Fixed many index entries.
1442 2002-04-23  Bernd Warken  <bwarken@mayn.de>
1444         * man/roff.man: Enlarged.
1446 2002-04-22  Werner LEMBERG  <wl@gnu.org>
1448         * doc/groff.texinfo: More examples, other fixes.
1450 2002-04-20  Werner LEMBERG  <wl@gnu.org>
1452         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
1453         will now form a chain, e.g.
1455           .pi foo
1456           .pi bar
1458         is now the same as
1460           .pi foo | bar
1462         This is for compatibility with plan 9's troff.
1464         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
1465         with UNIX troff.
1466         * NEWS: Updated.
1468         * doc/groff.texinfo: Add documentation of remaining requests and
1469         registers.
1471 2002-04-19  Werner LEMBERG  <wl@gnu.org>
1473         * doc/groff.texinfo: Add documentation of remaining escapes.
1475         * font/devdvi/generate/tc.map: Remove entry for `sr'.
1476         * font/devdvi/*TC: Regenerated.
1478 2002-04-18  Werner LEMBERG  <wl@gnu.org>
1480         * src/roff/troff/input.cc (token::next): Make \H behave consistently
1481         if not in compatibility mode, i.e., increment relative to the
1482         previous height.
1483         * doc/groff.texinfo: Updated accordingly.
1485 2002-04-17  Werner LEMBERG  <wl@gnu.org>
1487         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
1489 2002-04-16  Bernd Warken  <bwarken@mayn.de>
1491         * src/roff/groff/groff.man: Improve documentation of -P option.
1492         Other minor fixes.
1494 2002-04-15  Werner LEMBERG  <wl@gnu.org>
1496         Add new escape \F to switch font family.
1498         * src/roff/troff/input.cc (token::next): Handle \F.
1499         * src/roff/troff/env.cc (environment::set_family): Handle
1500         `interrupted' flag.
1501         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1502         Document it.
1504 2002-04-14  Werner LEMBERG  <wl@gnu.org>
1506         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
1507         spaces in tags.
1509 2002-04-13  Werner LEMBERG  <wl@gnu.org>
1511         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
1512         \m[] and \M[], respectively.
1514         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
1515         (symbol::symbol): Handle NULL string and empty string differently.
1516         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
1517         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
1518         Add optional parameter.
1519         Updated calling functions.
1520         (get_copy, do_glyph_color, do_fill_color, token::next): Use
1521         `symbol::is_empty'.
1522         * src/roff/troff/env.cc (environment::set_font): Ditto.
1524         * src/preproc/pic/troff.cc (troff_output::set_fill,
1525         troff_output::reset_color: Updated.
1527         * tmac/www.tmac: Updated.
1529         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
1530         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
1531         Updated.
1533         * tmac/Xps.tmac: Remove some redundant code.
1535         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
1536         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
1537         man/groff_out.man, man/groff.man, man/groff_diff.man,
1538         src/roff/groff/groff.man: Replace \f[P] with \f[].
1540 2002-04-13  Bernd Warken  <bwarken@mayn.de>
1542         * src/include/printer.h, src/libs/libdriver/printer.cc
1543         (printer::change_fill_color): New member function.
1544         * src/libs/libdriver/input.cc (parse_D_command): Use it.
1546 2002-04-12  Werner LEMBERG  <wl@gnu.org>
1548         * doc/groff.texinfo: Completed pass on gtroff reference.
1550 2002-04-11  Werner LEMBERG  <wl@gnu.org>
1552         * doc/groff.texinfo: More fixes.
1554 2002-04-11  Bernd Warken  <bwarken@mayn.de>
1556         * src/include/color.h: Decorate with `const'.
1557         Use `size_t'.
1558         Include `stddef.h'.
1559         * src/libs/libgroff.color.cc: Decorate with `const'.
1560         Use `size_t'.
1561         (color::color): Initialize members.
1562         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
1563         command according to the documentation.
1565         * man/groff_out.man: Updated.
1566         Minor fixes.
1568 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
1570         * src/preproc/html/pre-html.cc (write_start_image): Remove
1571         redundant output.
1572         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
1574         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
1575         \C'hy' caused an assertion failure.
1577         * src/roff/troff/env.cc (environment::environment): Initialize
1578         `emitted_node'.
1579         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
1581 2002-04-10  Werner LEMBERG  <wl@gnu.org>
1583         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1584         Document pvs request and .pvs register.
1586 2002-04-09  Werner LEMBERG  <wl@gnu.org>
1588         * doc/groff.texinfo: Improve and fix documentation of diversions
1589         and environments.
1591 2002-04-08  Werner LEMBERG  <wl@gnu.org>
1593         * doc/groff.texinfo: Fix documentation of drawing functions.
1594         Other minor fixes.
1596 2002-04-07  Werner LEMBERG  <wl@gnu.org>
1598         * doc/groff.texinfo: Better documentation of double quotes as
1599         arguments.
1600         Other minor fixes.
1602 2002-04-06  Werner LEMBERG  <wl@gnu.org>
1604         * man/groff_font.man: Document names of special characters better.
1605         * doc/groff.texinfo: Minor improvements.
1607         * tmac/lbp.tmac: Load latin1.tmac.
1608         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
1610         * font/devX*/*: Regenerated (all chars > 0x80 removed).
1612 2002-04-05  Werner LEMBERG  <wl@gnu.org>
1614         * tmac/tty.tmac: Don't use shc request.
1615         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
1616         * NEWS: Updated.
1618         * man/groff_diff.man: Minor fixes.
1620         * font/devlbp/*: Remove all `charXXX' entities.
1622         * src/libs/libgroff/font.cc (font::~font): Deallocate
1623         `special_device_coding'.
1624         (font::load): Use `new' for allocating `special_device_coding'.
1625         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
1626         Removed unused member.
1628 2002-04-05  Werner LEMBERG  <wl@gnu.org>
1630         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
1631         (resource_manager::do_begin_binary,
1632         resource_manager::do_begin_data): Use it.
1634         * doc/texinfo.tex: Updated to version 4.2.
1636         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
1637         (token::zero_width_break): New inline function.
1638         * src/roff/troff/input.cc (token::next): Use it.
1639         (token::description): Updated.
1640         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
1641         (token::add_to_node_list, token::process): Use it.
1642         * NEWS, doc/groff.texinfo: Updated.
1644         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
1645         * tmac/tty.tmac: Add missing backslash.
1647 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1649         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
1650         `.ps' register instead of `.s' to handle fractional point sizes.
1651         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
1652         limit_box::output): Ditto.
1653         * src/preproc/eqn/other.cc (size_box::compute_metrics,
1654         size_box::output): Ditto.
1655         * src/preproc/eqn/over.cc (over_box::compute_metrics,
1656         over_box::output): Ditto.
1657         * src/preproc/eqn/script.cc (script_box::compute_metrics,
1658         script_box::output): Ditto.
1659         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
1660         sqrt_box::output): Ditto.
1662 2002-04-03  Michael Selway  <mas@ssl.co.uk>
1664         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
1665         Fix typo.
1667 2002-04-03  Werner LEMBERG  <wl@gnu.org>
1669         * doc/homepage.ms: Reduce title size.
1670         * doc/groff.texinfo: Fix documentation of .t register.
1671         Fix handling of colon.
1672         Fix `\' vs. `\\'.
1674         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
1675         only if page length is positive to avoid a loop.
1677         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
1678         tbl.
1680 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
1682         * src/include/nonposix.h, src/roff/groff/pipeline.c:
1683         s/__CYGWIN32__/__CYGWIN__/.
1685 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
1687         * doc/gnu.xpm: New image contributed by Emily Mulley.
1688         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
1689         (homepage.html): Be dependent on gnu.eps.
1690         * doc/homepage.ms: Updated to new image.
1692         * src/devices/grohtml/post-html.cc (html_printer): New member
1693         `sbuf_prev_hpos'.
1694         (html_printer::flush_sbuf, html_printer::set_char): Set it.
1695         (html_printer::sbuf_continuation): Use it.
1697 2002-03-28  Werner LEMBERG  <wl@gnu.org>
1699         * src/libs/libgroff/getopt.c: Updated to latest version.
1701         * tmac/README: More on hyphen.tex license.
1703 2002-03-26  Larry Kollar  <kollar@alltel.net>
1705         * doc/groff.texinfo: Add documentation of most missing requests.
1707 2002-03-25  Werner LEMBERG  <wl@gnu.org>
1709         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
1710         of `+-', `mu', and `di', respectively.
1712         * font/devascii/R.proto, font/devutf8/R.proto,
1713         font/devlatin1/R.proto, font/devhtml/R.proto,
1714         font/devcp1047/R.proto, font/devlpb/*: Add them.
1715         * font/devps/generate/textmap: Ditto.
1716         * font/devps/*: Regenerated.
1717         * font/devlj4/generate/text.map: Add them.
1718         * font/devlj4/*: Regenerated.
1719         * font/devdvi/generate/tc.map: Use them.
1720         * font/devdvi/generate/texsy.map: Add them.
1721         * font/devdvi/*: Regenerated.
1722         * font/devX*/*: Regenerated.
1724         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
1725         tmac/tty-char.tmac: Updated.
1727         * NEWS, man/groff_char.man: Updated.
1729 2002-03-24  Werner LEMBERG  <wl@gnu.org>
1731         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
1732         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
1733         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
1734         we use `.fchar' in dvi.tmac.
1735         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
1736         * tmac/Xps.tmac: Simplify some char definitions.
1737         Add definition for \[f/].
1738         * man/groff_char.man: Updated for new X.tmac.
1740         * tmac/README: New file.
1742 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
1744         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
1745         internal .y.o rule took precendence over the .y.cc rule, compiling
1746         the yacc files with gcc instead of g++.
1748 2002-03-23  Werner LEMBERG  <wl@gnu.org>
1750         * tmac/dvi.tmac: Add replacement font for `CB'.
1752         * tmac/doc.tmac: s/request/macro/ in messages.
1753         (doc-generic-macro): Improve error message.
1754         * tmac/groff_mdoc.man: Minor improvements.
1756 2002-03-22  Werner LEMBERG  <wl@gnu.org>
1758         * doc/groff.texinfo: Document possible conflict between `tr' and
1759         `char' requests.
1761 2002-03-21  Werner LEMBERG  <wl@gnu.org>
1763         Improve handling of hyphenation patterns.  It is now possible to
1764         use most of TeX's pattern files unmodified.  To make the process
1765         more flexible, a new request `hpfcode' has been added which
1766         provides a character code mapping for the `hpf' request.  See
1767         comment before hpf_getc() for more details.
1769         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
1770         functions.
1771         (read_patterns_file): Additional parameter for exception dictionary.
1772         Extended to recognize \pattern, \hyphenation, and \endinput.
1773         (do_hyphenation_patterns_file): Updated.
1774         * src/roff/troff/env.h (hpf_code_table): New extern.
1776         * src/roff/troff/input.cc (hpf_code_table): New array.
1777         (init_hpf_code_table, hyphenation_patterns_file_code): New
1778         functions.
1779         (hyphenation_code): Handle translation from `trin' correctly.
1780         (main, init_input_requests): Updated.
1781         (charinfo::set_translation): Handle hyphenation code also.
1783         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
1784         inline function.
1786         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
1787         char' is used for offsets in hyphenation exceptions.
1789         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
1791         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1793 2002-03-20  Larry Kollar  <kollar@alltel.net>
1795         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
1796         requests.
1798 2002-03-18  Werner LEMBERG  <wl@gnu.org>
1800         * tmac/html.tmac: Fix serious typo.
1802 2002-03-17  Larry Kollar  <kollar@alltel.net>
1804         * doc/groff.texinfo: Add documentation for `writec' request.
1806 2002-03-17  Werner LEMBERG  <wl@gnu.org>
1808         Added request `hpfa' to append hyphenation patterns.
1810         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1811         parameter `append'.
1812         (hyphenation_patterns_file): Renamed to...
1813         (do_hyphenation_patterns_file): This.
1814         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
1815         functions.
1816         (init_hyphen_requests): Updated.
1817         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1819 2002-03-16  Werner LEMBERG  <wl@gnu.org>
1821         Added request `writec' in analogy to `tmc'.
1823         * src/roff/troff/input.cc (write_request): Renamed to...
1824         (do_write_request): This.
1825         Added one parameter.
1826         (write_request, write_request_continue): New functions.
1827         (init_input_requests): Updated.
1828         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1830         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
1831         5-10000pt.
1832         * NEWS: Document it.
1834 2002-03-15  Werner LEMBERG  <wl@gnu.org>
1836         * man/groff.man: Add writem request.
1838         Add request `trin' (translate input) to make `.asciify' work
1839         correctly.  This is necessary since `charXXX' entity names are no
1840         longer hardcoded in font definition files.
1842         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
1843         `translate_input' members.
1844         (charinfo::set_asciify_code, charinfo::get_asciify_code,
1845         charinfo::set_translation_input): New methods.
1846         (charinfo::set_translation): Add third argument.
1847         * src/roff/troff/input.cc (charinfo:set_translation): Set
1848         `asciify_code'.
1849         (do_translate): Add second argument.
1850         (translate_input): New function.
1851         (init_input_requests): Updated.
1852         * src/roff/troff/node.cc (glyph_node::asciify,
1853         composite_node::asciify): Use `get_asciify_code'.
1855         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
1857         * NEWS, man/groff.man, man/groff_diff.man: Updated.
1859 2002-03-14  Larry Kollar  <kollar@alltel.net>
1861         * doc/groff.texinfo: Improve documentation of .RS and .RE.
1863 2002-03-14  Werner LEMBERG  <wl@gnu.org>
1865         Add a new request `sizes' similar to the `sizes' command in DESC
1866         files.
1868         * src/roff/troff/env.cc (override_sizes): New function.
1869         (init_env_requests): Use it.
1870         * src/roff/troff/token.h: Export `read_string'.
1871         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1873 2002-03-12  Werner LEMBERG  <wl@gnu.org>
1875         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
1877 2002-03-10  Werner LEMBERG  <wl@gnu.org>
1879         * tmac/pspic.tmac: Add support for -Tdvi.
1880         * tmac/dvi.tmac: Include pspic.tmac.
1881         * src/devices/grodvi/grodvi.man: Document it.
1882         * NEWS: Updated.
1884         * font/devlj4/generate/Makefile: Fix URL of metric files.
1886 2002-03-09  Werner LEMBERG  <wl@gnu.org>
1888         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
1890 2002-03-09  Larry Kollar  <kollar@alltel.net>
1892         * tmac/groff_ms.man: Add documentation for RS and RE macros.
1894 2002-03-08  Werner LEMBERG  <wl@gnu.org>
1896         * doc/groff.texinfo: Fixes for texinfo 4.1.
1898 2002-03-07  Werner LEMBERG  <wl@gnu.org>
1900         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
1901         included.
1902         Handle CYGWIN properly.
1904 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
1906         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
1907         * tmac/lbp.tmac: Add some font translations.
1909 2002-03-02  Werner LEMBERG  <wl@gnu.org>
1911         * font/devcp1047/R.proto, font/devlatin1/R.proto,
1912         font/devhtml/R.proto: Remove `charXXX'  entries.
1913         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
1914         where appropriate.
1916         * font/devlj4/generate/text.map: Remove `charXXX' entries.
1917         * font/devlj4/*: Regenerated all font definition files.
1918         * tmac/lj4.tmac: Load latin1.tmac.
1920         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
1921         from 2000-06-17: LJ4 metric files are *not* text files.
1923         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
1924         register to test for EBCDIC.
1926 2002-03-01  Werner LEMBERG  <wl@gnu.org>
1928         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
1929         files (as grops already does).
1930         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
1931         files.
1932         * src/devices/grops/grops.man: Document comment lines in encoding
1933         files.
1935         * tmac/cp1047.tmac: New file.
1936         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
1937         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
1938         * tmac/Makefile.sub (NORMALFILES): Updated.
1940         * tmac/ec.tmac: Don't load latin1.tmac again.
1942         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
1943         font/devps/generate/dingbats.map,
1944         font/devps/generate/dingbats.rmap, font/devps/text.enc,
1945         font/devps/generate/Makefile (symbolmap): Add header comment.
1946         * font/devps/generate/textmap: Ditto.
1947         Remove `charXXX' entries.
1948         * font/devps/symbolmap: Regenerated.
1949         * font/devps/*: Regenerated all font definition files.
1951 2002-02-28  Werner LEMBERG  <wl@gnu.org>
1953         Add color support to grodvi (for drawing colors are currently
1954         translated to gray values).
1956         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
1957         (dvi_printer): Add `cur_color' member.
1958         (dvi_printer::set_color): New function.
1959         (draw_dvi_printer): Remove `fill'.
1960         (draw_dvi_printer::fill_next): Pass environment as parameter.
1961         Update code for new color support translated to gray.
1962         (dvi_printer::set_char): Updated.
1963         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
1964         changes crossing the page border.
1965         (dvi_printer::draw): Updated.
1966         Remove cases `f' and `F'.
1967         * tmac/dvi.tmac: Add color definitions.
1968         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1970         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
1971         used incorrectly.
1973         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
1974         versions of autoconf.
1975         * configure: Updated.
1977         * doc/homepage.ms: Use `.blm'.
1978         * tmac/www.tmac (www-depth): New auxiliary variable.
1979         (www-pop-level): Don't issue HTML tag.
1980         (ULS, ULE, LI): Use absolute indentation.
1982         * src/devices/grops/ps.cc (ps_printer::begin_page,
1983         ps_printer::end_page): Switch forth and back to default color while
1984         starting a new page.
1986 2002-02-27  Werner LEMBERG  <wl@gnu.org>
1988         Add EC and TC fonts to devdvi.
1990         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
1991         * font/devdvi/generate/cork.map: Renamed to...
1992         * font/devdvi/generate/ec.map: This.
1993         Remove entry for `aq'.
1994         * font/devdvi/generate/tc.map: New file.
1995         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
1996         EC and TC fonts.
1997         (FONTS): Updated.
1998         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
1999         * font/devdvi/Makefile.sub (DEVFILES): Updated.
2000         * tmac/ec.tmac: New file.
2001         * tmac/Makefile.sub (NORMALFILES): Updated.
2002         * NEWS, src/devices/grodvi/grodvi.man: Updated.
2003         * man/groff_char.man: Check `ECFONTS' register.
2005         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
2007 2002-02-26  Werner LEMBERG  <wl@gnu.org>
2009         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
2010         * font/devdvi/generate/cork.map: Add 'y and 'Y.
2011         * font/devdvi/*: Updated.
2012         * tmac/dvi.tmac: Formatting.
2014         Add font `HBI' for the dvi output.
2015         Add support for font families `T' and `H'.
2017         * font/devdvi/HBI: New file.
2018         * font/devdvi/B: Renamed to ...
2019         * font/devdvi/TB: This.
2020         * font/devdvi/BI: Renamed to ...
2021         * font/devdvi/TBI: This.
2022         * font/devdvi/I: Renamed to ...
2023         * font/devdvi/TI: This.
2024         * font/devdvi/R: Renamed to ...
2025         * font/devdvi/TR: This.
2026         * font/devdvi/H: Renamed to ...
2027         * font/devdvi/HR: This.
2028         * font/devdvi/Makefile.sub (DEVFILES): Updated.
2029         * font/devdvi/generate/Makefile (HBI): New rule.
2030         (FONTS): Updated.
2031         (R, I, B, BI, H): Renamed to ...
2032         (TR, TI, TB, TBI, HR): This, respectively.
2033         (srcdir): Fixed.
2034         * NEWS, src/devices/grodvi/grodvi.man: Updated.
2035         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
2036         Add `styles' and `family' keywords.
2037         * tmac/dvi.tmac: Alias `H' to `HR'.
2038         Add some fspecial requests for italic fonts.
2039         Add TR and TI as special.
2040         Add support for `_' with font CWI.
2042         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
2043         operator `:'.  Until now, the expression `0:1' would return 2
2044         instead of 1.
2046 2002-02-25  Werner LEMBERG  <wl@gnu.org>
2048         * man/groff_char.man: Added some missing PS glyph names (from the
2049         Adobe Glyph List).
2050         * font/devps/generate/textmap, font/devps/symbolmap: Add
2051         `arrowupdn'.
2053         * doc/groff.texinfo: Minor additions and fixes.
2054         * man/groff_diff.man: Remove documentation of fp request.  This
2055         is already covered in the original troff manual.
2056         Updated to be consistent with other doc files.
2057         * NEWS: Updated.
2059 2002-02-24  Werner LEMBERG  <wl@gnu.org>
2061         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
2062         TTYDEVDIRS.
2063         Define new variable OTHERDEVDIRS (containing `font/devlj4
2064         font/devlbp' if not EBCDIC).
2065         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
2066         (OTHERDEVDIRS): New variable.
2067         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
2068         * configure: Regenerated.
2070         * NEWS, src/devices/grotty/grotty.man: Updated.
2072 2002-02-23  Werner LEMBERG  <wl@gnu.org>
2074         * src/roff/troff/input.cc (do_overstrike, do_bracket,
2075         get_line_arg): Honour input level.
2077         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
2079         * font/*/*: Implement it in all font files.
2080         * font/devps/generate/textmap, font/devps/generate/symbolchars,
2081         * font/devps/symbolmap: Updated.
2082         * font/devlj4/generate/text.map: Updated.
2083         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
2084         * font/devdvi/generate/texmi.map: Updated.
2086         * font/devutf8/R.proto: Remove all `charXXX' entries.
2087         * font/devutf8/NOTES: Updated.
2089         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
2090         version 4.1.0.
2092         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
2094         * NEWS, man/groff_char.man: Updated.
2096 2002-02-21  Phil Lobbes <phil@perkpartners.com>
2098         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
2100 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2102         * src/roff/grog/grog.pl: Fix computation of $refer.
2104 2002-02-19  Werner LEMBERG  <wl@gnu.org>
2106         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
2107         `snprintf' and `vsnprintf'.
2109         * src/include/htmlindicate.h: Renamed to...
2110         * src/include/htmlhint.h: This.
2111         * src/include/Makefile.sub: Updated.
2112         * src/preproc/eqn/main.cc: Updated.
2114 2002-02-18  Werner LEMBERG  <wl@gnu.org>
2116         * man/roff.man, man/groff_out.man, man/groff.man,
2117         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
2118         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
2120         * win32-diffs: Updated.
2122 2002-02-17  Werner LEMBERG  <wl@gnu.org>
2124         * doc/Makefile (clean): Add *.eps.
2125         (MEMACROS): Removed.
2126         (TFLAG): New variable.
2127         (TROFF): Use it.
2128         Add -ww.
2129         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
2130         (.me.dit): Fixed.
2131         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
2133         * tmac/www.tmac: Use dummy diversion while resetting and disabling
2134         `.tl'.
2135         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
2136         unstripped.
2137         * src/roff/troff/troff.man: Fix order of parameter description.
2139         * NEWS: Updated.
2141 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
2143         Simplify image handling for grohtml.
2144         Fix <p> bug.
2146         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
2147         comment out.
2148         (html_text::dump_stack): Don't emit newline while debugging.
2149         (html_text::do_push) [DEBUGGING]: Print more info.
2150         (html_text::check_emit_text): Fix handling of <p>.
2151         * src/devices/grohtml/html.h: Updated.
2152         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
2153         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
2154         send its data to stderr also.
2155         Update all callers.
2156         (simple_output::space_or_newline) [DEBUGGING]: Removed.
2157         * src/devices/grohtml/post-html.cc (html_printer::do_links,
2158         html_printer::html_printer): Remove `DEBUGGING' conditionals.
2160         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
2161         Removed.
2162         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
2163         is_inline_image): Removed.
2164         (html_begin_suppress, html_end_suppress): Don't take a parameter.
2165         (graphic_start, graphic_end): Removed.
2166         * src/include/htmlindicate.h: Updated.
2167         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
2168         (macroset_template): New global variable.
2169         (makeFileName): Use `macroset_template'.
2170         (write_end_image): Don't take a parameter.
2171         Don't emit newline.
2172         (write_start_image: Don't emit newline.
2173         (char_buffer::write_upto_newline): Updated.
2174         (char_buffer::skip_to_newline): Renamed to ...
2175         (char_buffer::skip_until_newline): This.
2176         Fix code.
2177         (char_buffer::write_file_troff, char_buffer::write_file_html):
2178         Simplified.
2179         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
2180         (removeAllPages): Remove `DEBUGGING' conditionals.
2181         (addRegDef, dump_args): New functions.
2182         (char_buffer::do_html, char_buffer::do_image): Handle
2183         `www-image-template' command line variable.
2184         Add more debugging code.
2185         (addps4html): Removed.
2186         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
2188         * src/preproc/eqn/main.cc: Include `ctype.h'.
2189         (suppress_html): Removed.
2190         (do_file): Updated.
2191         (inline_equation): Use `html_begin_suppress' and
2192         `html_end_suppress'.
2193         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
2194         (troff_output::start_picture, troff_output::finish_picture):
2195         Updated.
2196         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
2197         (process_input_file): Updated.
2199         * src/roff/troff/div.cc (page_number): Set page number only if the
2200         `ps4html' register isn't defined.
2201         * src/roff/troff/input.cc (image_no): New external variable.
2202         (do_suppress): Use it.
2203         * src/roff/troff/node.h (suppress_node::image_id): New member.
2204         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
2205         (suppress_node::suppress_node): Initialize `image_id' member.
2206         (suppress_node::same): Handle `image_id' also.
2207         (suppress_node::copy): Updated.
2208         (last_image_id): New global variable.
2209         (suppress_node::tprint): Use it.
2211         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
2212         HTML-IMAGE-END.
2213         * tmac/pspic.mac (PSPIC): Fix html support.
2214         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
2215         * tmac/www.tmac (www-image-template): Set up.
2216         (HTMLINDEX): Renamed to...
2217         (HX): This.
2218         (BODYCOLOR): Renamed to...
2219         (BCL): This.
2220         (BACKGROUND): Renamed to...
2221         (BGIMG): This.
2222         (URL): Change order of parameters for consistency.
2223         (MAILTO): Renamed to...
2224         (MTO): This.
2225         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
2226         (IMG, PIMG, MPIMG): This.
2227         (HTML-H-BEGIN, HTML-H-END): Renamed to...
2228         (HnS, HnE): This.
2229         (LINKS): Renamed to...
2230         (LK): This.
2231         (LINE): Renamed to...
2232         (HR): This.
2233         (NO-AUTO-RULE): Renamed to...
2234         (NHR): This.
2235         (HTML-TL): Renamed to...
2236         (HTL): This.
2237         (UL-BEGIN, UL-END): Renamed to...
2238         (ULS, ULE): This.
2239         (DROPCAP): Renamed to...
2240         (DC): This.
2241         (TS, TE, EQ, EN): Provide default definitions.
2242         (www-make-unique-name): Updated.
2243         (HTML-IMAGE-INLINE): Fix typo.
2244         * tmac/groff_www.man: Updated.
2246         * doc/Makefile (homepage.html): Add option -r to grohtml.
2247         Use shortened image name.
2248         * doc/groff.texinfo: Updated info on grohtml strings and macros.
2249         * doc/homepage.ms: Updated and extended.
2251 2002-02-14  Werner LEMBERG  <wl@gnu.org>
2253         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
2255         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
2256         SGR_BACK_DEFAULT_COLOR): Replaced with ...
2257         (tty_printer::put_color): Use it.
2258         (ttr_printer::end_page): Simplify.
2260 2002-02-13  Werner LEMBERG  <wl@gnu.org>
2262         * tmac/groff_tmac.man: Moved to...
2263         * man/groff_tmac.man: This place.
2264         * tmac/Makefile.sub, man/Makefile.sub: Updated.
2266 2002-02-12  Werner LEMBERG  <wl@gnu.org>
2268         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
2269         $(COMPILE.c) to not include groff's assert.h.
2271         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
2272         variable.
2273         * NEWS, src/drivers/grotty/grotty.man: Document it.
2275 2002-02-11  Werner LEMBERG  <wl@gnu.org>
2277         * src/libs/snprintf/snprintf.c: Updated to latest version
2278         (2002-02-11).
2280         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
2281         test whether there is `.]' also.
2282         Don't check for spaces after `.['.
2283         * src/roff/grog/grog.sh: Do the same.
2285 2002-02-10  Werner LEMBERG  <wl@gnu.org>
2287         Illegal -> Invalid.
2289         * src/libs/libgroff/illegal.cc: Renamed to ...
2290         * src/libs/libgroff/invalid.cc: This.
2291         (illegal_char_table): Renamed to ...
2292         (invalid_char_table): This.
2293         * src/libs/libgroff/Makefile.sub: Updated.
2294         * win32-diffs: Updated.
2296         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
2297         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
2298         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
2299         font::load), src/preproc/eqn/main.cc (read_line, main),
2300         src/preproc/eqn/lex.cc (file_input::read_line),
2301         src/preproc/pic/lex.cc (file_input::read_line,
2302         simple_file_input::get, simple_file_input::peek),
2303         src/preproc/pic/main.cc (top_input::get, top_input::peek),
2304         src/preproc/pic/pic.man, src/preproc/refer/main.cc
2305         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
2306         do_bib), src/preproc/tbl/main.cc (table_input::get),
2307         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
2308         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
2309         do_zero_width, read_request, encode_char, ps_get_line,
2310         transparent_file, get_char_for_escape_name, transparent_translate,
2311         asciify, input_char_description, read_string, set_string),
2312         src/roff/troff/env.cc (environment::add_html_tag),
2313         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
2315         * src/include/lib.h: Updated.
2317         * src/preproc/eqn/eqn.cc: Removed.
2319         * NEWS: Updated.
2321         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
2323 2002-02-09  Werner LEMBERG  <wl@gnu.org>
2325         * doc/gnu.xpm: New image.
2326         * doc/Makefile (DOCS): Add homepage.ps.
2327         Add rules for converting xpm->png and xpm->eps.
2328         Use `gnu.{xpm,eps}' as image names.
2329         * doc/homepage.ms: Updated.
2331 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
2333         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
2334         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
2335         Remove calls to `B1' and `B2'
2336         (PNG-IMAGE): New macro for inclusion of images in PNG format.
2337         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
2338         auxiliary variables for MARGIN-PNG-IMAGE.
2339         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
2340         auxiliary macros for MARGIN-PNG-IMAGE.
2341         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
2342         the margin.
2343         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
2344         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
2345         (DROPCAP): New macro to produce dropcap characters.
2346         (www-do-image): Renamed back to...
2347         (HTML-DO-IMAGE): This.
2348         Updated all callers.
2350         * doc/Makefile (gnubw.eps): Updated.
2351         * doc/homepage.ms: Updated.
2353 2002-02-08  Werner LEMBERG  <wl@gnu.org>
2355         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
2356         Added `linethick' to table in section `Style Variables'.
2358 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
2360         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
2362 2002-02-07  Werner LEMBERG  <wl@gnu.org>
2364         Adding options -C (compatibility mode) and -c (grotty's old output
2365         scheme) to nroff.
2367         * src/roff/nroff/nroff.sh: Implement it.
2368         Remove `-Wall'.
2369         * NEWS, src/roff/nroff/nroff.man: Updated.
2371         * PROBLEMS: Document bison 1.32 bug.
2373         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
2375         * src/roff/troff/node.cc (make_tfont): Define it earlier.
2376         * src/roff/troff/div.h: Add prototype for `end_diversions'.
2377         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
2378         * src/roff/troff/env.h: Add prototype for `title'.
2380         Adding EBCDIC support to grotty.
2382         * src/devices/grotty/tty.cc (CSI): New macro.
2383         (SGR_*, tty_printer::put_color): Use it.
2385 2002-02-06  Werner LEMBERG  <wl@gnu.org>
2387         Implementing color support in grotty.  The new switch -c activates
2388         the old drawing scheme, disabling color at the same time.  The new
2389         switch `-i' selects italic instead of underlining (SGR only).
2391         * src/devices/grotty/tty.cc (putstring): New define instead of
2392         `fputs'.  Updated all callers.
2393         (old_drawing_scheme): New global variable.
2394         (COLOR_CHANGE): New enum value.
2395         (SGR_*): New defines containing color handling escape sequences.
2396         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
2397         (glyph): New members `back_color_idx' and `fore_color_idx'.
2398         (glyph::order): Add COLOR_CHANGE.
2399         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
2400         `is_underline', `is_bold', `cu_flag', `tty_colors'.
2401         New methods `make_underline', `make_bold', `color_to_idx',
2402         `change_color', `put_color'.
2403         (cu_flag): Moved into `tty_printer' class.
2404         (tty_printer::tty_printer): Initialize colors.
2405         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
2406         tty_printer::draw, tty_printer::end_page): Handle colors also.
2407         (main): Add options `-c' and `-i'.
2408         (usage): Updated.
2409         * NEWS, src/devices/grotty/grotty.man: Updated.
2411         * src/include/errarg.h (errarg): Add support for `unsigned int'.
2412         * src/libs/libgroff/errarg.c: Implement it.
2414         * src/include/printer.h (printer): Add `change_color' method
2415         (currently used by grotty only).
2416         * src/libs/libdriver/printer.cc: Implement it.
2417         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
2418         call to `pr->change_color'.
2420         * src/roff/troff/node.cc (troff_output_file::fill_color,
2421         troff_output_file::glyph_color): Call `do_motion'.
2423         * tmac/tty.tmac: Add color definitions.
2425         * src/roff/groff/groff.man: Minor fixes.
2427 2002-02-05  Bernd Warken  <bwarken@mayn.de>
2429         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
2430         it.  This is a preparation for future changes.
2432 2002-02-05  Werner LEMBERG  <wl@gnu.org>
2434         * src/roff/troff/input.cc (process_input_stack): Fix the case
2435         where leading spaces are followed by \f or \s; previously, an
2436         incorrect space width has been used.
2438         * doc/roff.man (quoted_char): Fix argument.
2439         (comment): Define string.
2441 2002-02-04  Larry Kollar  <kollar@alltel.net>
2443         * doc/groff.texinfo: More fixes.
2445 2002-02-04  Werner LEMBERG  <wl@gnu.org>
2447         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
2448         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
2449         `restore_compatibility' before `output_string' -- the LINE_STRING
2450         register now already contains proper switches from and to
2451         compatibility mode.
2453         * man/groff_char.man: Add Euro symbol.
2454         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
2455         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
2456         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
2457         Other minor fixes.
2459         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
2460         texinfo->pdf.
2461         (.texinfo.html): Add support for texinfo->html.
2463 2002-02-03  Werner LEMBERG  <wl@gnu.org>
2465         Added three new requests `ds1', `as1', and `ami'.  The former two
2466         are equivalent to `ds' and `as' with the difference that
2467         compatibility mode is saved on entry, switched off during string
2468         expansion, and restored on exit.  The latter is the pendant to `dei'
2469         for `am'.
2471         (do_define_string): Use `define_mode' and `calling mode'.
2472         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
2473         end of string, respectively.
2474         (define_string, append_string): Use `calling_mode'.
2475         (define_nocomp_string, append_nocomp_string,
2476         define_string_indirect): New functions.
2477         (init_input_requests): Updated.
2478         * NEWS, man/groff_diff.man, man/groff.man: Document it.
2480         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
2481         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
2482         mm macro package accesses this string register directly.
2483         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
2485         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
2486         compatibility mode.
2488 2002-02-02  Larry Kollar  <kollar@alltel.net>
2490         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
2492 2002-01-31  Werner LEMBERG  <wl@gnu.org>
2494         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
2496 2002-01-31  Bernd Warken  <bwarken@mayn.de>
2498         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
2499         * man/groff_out.man: Revised and updated.
2501 2002-01-30  Bernd Warken  <bwarken@mayn.de>
2503         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
2504         out the unused `{' and `}' commands.  Undefined by default.
2505         (IntArray): Make `data' private.
2506         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
2507         new methods instead.
2508         (skip_line_D, skip_to_end_of_line): New functions.
2509         (get_D_fixed_args): Use `skip_line_D'.
2510         Changed to handle dummy odd arguments by ...
2511         (get_D_fixed_args_odd_dummy): This new function.
2512         (get_D_variable_args): Split some code into ...
2513         (get_possibly_integer_args): This new function.
2514         (send_draw): Use more `const'.
2515         (delete_current_env): New function.
2516         (position_to_end_of_args): Use `size_t'.
2517         Updated.
2518         (send_draw): Updated.
2519         (parse_D_command): Handle `c', `C', and `t' better.
2520         Updated.
2521         (do_file): Updated.
2523 2002-01-29  Werner LEMBERG  <wl@gnu.org>
2525         * NEWS: Revised.
2526         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
2527         @Def...ListEnd which replaces @Def...x.  This is necessary to get
2528         proper HTML output -- see the comment in the file for more
2529         information.
2530         Updated all calls.
2532 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
2534         Fixes to make color changes of 2002-01-21 work with grohtml.
2536         * src/devices/grohtml/post-html.cc (style): Updated.
2537         (html_printer): Remove unused methods.
2538         (html_printer::do_font, html_printer::draw, html_printer::set_char,
2539         html_printer::special): Updated.
2540         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
2541         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
2542         Added some debugging code.
2543         (html_text::start_tag): Updated.
2544         (html_text::do_push): New method.
2545         (html_text::push_para): Call it.
2546         Add method for handling color.
2547         (html_text::do_color): Updated.
2548         (html_text::shutdown): Handle color.
2549         * src/devices/grohtml/html-text.h (tag_definition): New member
2550         `col'.
2551         Updated.
2553 2002-01-28  Werner LEMBERG  <wl@gnu.org>
2555         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
2557 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
2559         Add two switches -a and -g to control the antialiasing bits for
2560         text and graphics, respectively.
2562         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
2563         `-g'.
2564         * src/devices/grohtml/grohtml.man: Document them.
2565         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
2566         New macros.
2567         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
2568         (setupAntiAlias): New function.
2569         (createAllPages): Updated.
2570         (scanArguments): Handle `-a' and `-g'.
2571         (main): Call `setupAntiAlias'.
2572         * NEWS: Updated.
2574 2002-01-27  Werner LEMBERG  <wl@gnu.org>
2576         * doc/groff.texinfo (Def*): Call index function after deffn.
2578         * tmac/html.tmac: Call `nroff' request.
2580 2002-01-26  Larry Kollar  <kollar@alltel.net>
2582         * tmac/groff_ms.man: Add some omissions.
2584 2002-01-25  Larry Kollar  <kollar@alltel.net>
2586         * tmac/groff_ms.man: Typographical improvements.
2588 2002-01-25  Werner LEMBERG  <wl@gnu.org>
2590         * doc/groff.texinfo: Updated version and copyright.
2591         * src/devices/grops/grops.man: Updated.
2593         * tmac/groff_tmac.man: Fix `ig' macro.
2595         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
2596         nroff mode.
2597         Use `.ne' unconditionally everywhere.
2598         (TS): Only insert some vertical space.  Doing a page break is no
2599         longer necessary due to the redefinition of the `ne' request.
2601         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
2602         warning for unknown subcommands but parse and pass them to the
2603         device driver.
2605 2002-01-24  Werner LEMBERG  <wl@gnu.org>
2607         * tmac/groff_www.man, NEWS: Fix typos.
2609 2002-01-21  Werner LEMBERG  <wl@gnu.org>
2611         Complete revision of color support:
2613           Adapt programs to the new libdriver/input.cc.
2615           Color spaces are no longer converted to RGB but transferred as-is
2616           in the troff intermediate output format.
2618           Handle default color gracefully.  troff now supports a `default'
2619           color (which can't be changed).
2621           grops will now use the proper color space functions if available.
2623           Update pic.
2625         Note that currently grohtml doesn't handle colors properly.  This
2626         has to be fixed.
2628         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
2629         (ui_to_a): New function.
2630         * src/include/lib.h: Updated.
2632         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
2633         (color): Simplified; removed all `double' members and methods.
2634         A new array `components' now holds the color parameters.
2635         (color::is_default, color::get_components): New methods.
2636         (color::operator==, color:operator!=): New.
2637         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
2638         to make access to the `components' array more comprehensible.
2639         * src/libs/libgroff/color.cc: Implement new color support.
2640         (atoh): Small fixes.
2641         (color::read_encoding): Simplified for new troff intermediate color
2642         output format.
2643         (default_color): New global variable.
2645         * src/roff/troff/input.cc (default_symbol): New global variable.
2646         (lookup_color): Use it.
2647         (default_black): Removed.
2648         (do_glyph_color, do_fill_color): Simplified.
2649         (define_color): Handle default color.
2650         Improve warnings.
2651         (do_if_request): Handle default color.
2652         * src/roff/troff/env.cc (environment::environment): Initialize
2653         colors with `default_color'.
2654         * src/roff/troff/node.cc (troff_output_file::put): Add method
2655         for `unsigned int'.
2656         (troff_output_file::hex): Removed.
2657         (troff_output_file::fill_color, troff_output_file::glyph_color):
2658         Updated to include/color.h and libdriver/input.cc.
2660         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
2661         fill color properly (identically to the outline color).  \D'f...'
2662         doesn't work any more.
2663         All function calls to it updated.
2665         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
2666         Updated.
2667         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
2668         Updated.
2670         * src/devices/grops/ps.cc (ps_output::put_color): New method.
2671         (ps_printer::sbuf_color): Make a real member instead of pointer.
2672         (ps_printer::fill_color, ps_printer::output_color): Removed.
2673         (ps_printer::ps_printer): Updated.
2674         (ps_printer::set_char): Ditto.
2675         (ps_printer::set_color): Use various color schemes.
2676         Use `put_color' method.
2677         (ps_printer::flush_sbuf): Don't set color.
2678         (ps_printer::fill_path): Take `environment' as parameter.
2679         Simplify color handling.
2680         (ps_printer::set_line_thickness): Renamed to ...
2681         (ps_printer::set_line_thickness_and_color): This (and updated).
2682         (ps_printer::set_color): Change second parameter from `complete'
2683         to `fill' which better describes what it does.
2684         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
2685         and text in the right order.
2686         Updated.
2687         Remove branches for `f' and `F'; this is handled by
2688         libdriver/input.cc.
2689         * src/devices/grops/ps.h: Updated.
2690         * font/devps/prologue (FL): Redefined.
2691         ({F,C}r,k,g: New color functions (with and without filling).
2693         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
2694         * man/groff_diff.man, man/groff.man, man/groff_out.man,
2695         doc/groff.texinfo, NEWS: Updated.
2697 2002-01-20  Bernd Warken  <bwarken@mayn.de>
2699         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
2700         in this file for what has been changed.
2702 2002-01-19  Werner LEMBERG  <wl@gnu.org>
2704         * test-groff: Fix GROFF_FONT_PATH.
2705         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
2706         is read before .TH or .Dd is parsed.
2708 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
2710         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
2711         quadrant boundaries.
2713 2002-01-18  Werner LEMBERG  <wl@gnu.org>
2715         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
2716         applied last patch.
2718 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
2720         * tmac/doc.common: Initialize %I register for the %I macro to
2721         avoid (harmless) warning.
2722         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
2723         when in the SYNOPSIS section.
2725 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
2727         * src/preproc/pic/lex.cc (get_token): Fix typo.
2729 2002-01-17  Werner LEMBERG  <wl@gnu.org>
2731         * devices/grops/ps.cc: Fix incorrectly applied last patch.
2733 2002-01-17  Larry Kollar  <kollar@alltel.net>
2735         * tmac/groff_ms.man: Completely rewritten.
2737 2002-01-16  Werner LEMBERG  <wl@gnu.org>
2739         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
2741 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2743         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
2744         fill colors.
2745         (ps_printer::draw): Ditto.
2747 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
2749         * tmac/groff_mdoc.man: Minor fixes.
2751 2002-01-13  Werner LEMBERG  <wl@gnu.org>
2753         * man/groff_out.man: Some fixes.
2755 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
2757         * doc/pic.ms: Fix typos.
2759 2002-01-12  Werner LEMBERG  <wl@gnu.org>
2761         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
2763 2002-01-10  Werner LEMBERG  <wl@gnu.org>
2765         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
2766         symbols.
2767         * NEWS: Updated.
2769 2002-01-09  Bernd Warken  <bwarken@mayn.de>
2771         * man/groff_out.man: Revised.
2772         * man/roff.man: Minor fixes.
2773         * src/roff/troff/troff.man: Some reordering.
2775 2002-01-09  Werner LEMBERG  <wl@gnu.org>
2777         * tmac/an-old.tmac: Add dummy macros for equation support.
2779 2002-01-07  Werner LEMBERG  <wl@gnu.org>
2781         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
2783         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
2784         man pages.
2785         * tmac/groff_man.man: Small improvements.
2787 2002-01-07  Bernd Warken  <bwarken@mayn.de>
2789         * man/groff_diff.man: Revised.
2791 2002-01-06  Werner LEMBERG  <wl@gnu.org>
2793         * tmac/www.tmac: Remove extraneous backslash.
2795 2002-01-06  Bernd Warken  <bwarken@mayn.de>
2797         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
2799 2002-01-05  Werner LEMBERG  <wl@gnu.org>
2801         Integrated groffer, contributed by Bernd Warken.
2803         * contrib/groffer/*: New.       
2804         * Makefile.in, NEWS: Updated.
2806 2002-01-04  Werner LEMBERG  <wl@gnu.org>
2808         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
2809         registers defined in macro packages.
2810         Revising the ms part.
2812 2002-01-04  Larry Kollar  <kollar@alltel.net>
2814         * doc/groff.texinfo: Add documentation for ms macros.
2816 2002-01-02  Werner LEMBERG  <wl@gnu.org>
2818         First step in adding PS support for the Euro symbol.  `eu' is the
2819         official Euro logo, `Eu' is a font-specific glyph variant.
2821         * font/devps/text.enc: Add `Euro' at position 9.
2822         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
2823         * font/devps/symbolmap: Regenerated.
2825         * NEWS: Updated.
2827 2002-01-02  Bernd Warken  <bwarken@mayn.de>
2829         * man/roff.man: Revised.
2831 2002-01-01  Bernd Warken  <bwarken@mayn.de>
2833         * src/roff/groff/groff.man: Completely rewritten.
2835 2001-12-31  Werner LEMBERG  <wl@gnu.org>
2837         * doc/Makefile: Updated.
2839 2001-12-30  Werner LEMBERG  <wl@gnu.org>
2841         * tmac/www.tmac: Make all names of internal macros/registers/strings
2842         lowercase, and prepend `www-'.
2843         Other minor changes.
2844         * src/roff/troff/troff.man: Add preprocessor string at BOF.
2846 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
2848         Implement option `-b' in grohtml to set the HTML background colour.
2850         * src/devices/grohtml/post-html.cc (default_background): New global
2851         variable.
2852         (html_printer::html_printer): Initialize `background' to
2853         `default_background'.
2854         (main): Implement option `-b'.
2855         (usage): Updated.
2856         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
2857         of `-b' option.
2858         * src/devices/grohtml/grohtml.man: Updated.
2859         * doc/Makefile (.ms.html): Use `-b'.
2860         * tmac/html.tmac: Don't set background color.
2862         Add new grohtml tag `.html-tl'.
2864         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
2865         member variable.
2866         (title_desc::title_desc): Updated.
2867         (html_printer::troff_tag): Handle `.html-tl'.
2868         (html_printer::write_title): Use `with_h1'.
2869         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
2870         (HTML-TL): New macro.
2872         Add support for unordered lists in HTML.
2874         * tmac/www.tmac (www-level): New auxiliary register.
2875         (www-level1, www-level2, www-level3): New auxiliary strings.
2876         (www-push-level, www-pop-level): New auxiliary macros
2877         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
2879         Miscellaneous.
2881         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
2882         (DEFAULT_VERTICAL_OFFSET): Removed.
2883         (IMAGE_BOARDER_PIXELS): Set to 0.
2884         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
2885         (vertical_offset): Initialize with 0.
2886         (gsPaper): New global variable.
2887         (get_resolution): Scan for and return unsigned int.
2888         (get_papersize): New function to get paper length from devps/DESC.
2889         (determine_vertical_offset): New function.
2890         (createAllPages): Produce gray-level images and use proper page
2891         length.
2892         (createImage): Use `-quiet' option of pnmcrop.
2893         (addZ): Fix passing of `-Z'.
2894         (scanArguments): Fix handling of `-o'.
2895         (main): Call `determine_vertical_offset'.
2896         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
2897         code for `l'.
2899         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
2900         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
2901         glyph descenders properly.
2903         * doc/homepage.ms: Include `gnubw.eps'.
2904         * doc/Makefile (gnubw.eps): New rule.
2905         (homepage.html): Depend on `gnubw.eps'.
2907 2001-12-25  Werner LEMBERG  <wl@gnu.org>
2909         * src/roff/troff/input.cc (default_black): Fix return value.
2911 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
2913         * tmac/doc-common (Dt): Change output of architecture strings.
2914         Do some syntax cleanup.
2915         * tmac/groff_mdoc.man: Updated.
2917 2001-12-23  Werner LEMBERG  <wl@gnu.org>
2919         Adding an `itc' request (input line trap accepting \c).
2921         * src/roff/troff/env.h (environment): New member
2922         `continued_input_trap'.
2923         Make `do_input_trap' a friend function instead of `input_trap'.
2924         * src/roff/troff/env.cc (environment::environment,
2925         environment::copy): Updated.
2926         (environment::newline): Implement it.
2927         (do_input_trap): New function.
2928         (input_trap): Call `do_input_trap'.
2929         (input_trap_continued): New function.
2930         (init_env_requests): Updated.
2931         * src/roff/troff/TODO: Updated.
2933         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
2934         `.it'.
2936         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
2938 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
2940         * tmac/doc-common, tmac/doc-syms: Small updates.
2942 2001-12-22  Colin Watson  <cjwatson@debian.org>
2944         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
2946 2001-12-22  Bernd Warken  <bwarken@mayn.de>
2948         * MANIFEST: New file.
2950 2001-12-22  Werner LEMBERG  <wl@gnu.org>
2952         * src/preproc/grn/grn.man: Updated.
2954 2001-12-22  Solar Designer  <solar@openwall.com>
2956         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
2957         (DBRead): Use it.
2959 2001-12-19  Werner LEMBERG  <wl@gnu.org>
2961         Implement a fallback character request `.fchar'.
2963         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
2964         (is_fallback): New inline function.
2965         * src/roff/troff/input.cc (do_define_character): New function.
2966         (define_character): Call `do_define_character'.
2967         (define_fallback_character): New function.
2968         (init_input_requests): Add `fchar'.
2969         (charinfo::charinfo): Updated.
2970         (charinfo::set_macro): New argument to set `fallback' flag.
2971         * src/roff/troff/node.cc (make_glyph_node, make_node,
2972         node::add_char): Check `fallback' flag.
2973         * NEWS, man/groff_diff.man, man/groff_man: Updated.
2975 2001-12-16  Werner LEMBERG  <wl@gnu.org>
2977         * groff.texinfo: Document exact search algorithm for glyphs.
2979 2001-12-15  Werner LEMBERG  <wl@gnu.org>
2981         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
2982         the left side of $(MANPAGES) rule to make it always non-empty.
2984 2001-12-14  Werner LEMBERG  <wl@gnu.org>
2986         * src/roff/troff/input.cc (default_black): Define default color
2987         `black' if not yet defined.
2989 2001-12-13  Werner LEMBERG  <wl@gnu.org>
2991         Implement new string-valued register `.fn' to return the current
2992         real (internal) font name.
2994         * env.cc (environment::get_font_name_string): New function.
2995         (init_env_requests): Add `.fn' register.
2996         * env.h (environment): Updated.
2997         * node.cc (font_info): Make `get_font_name' a friend.
2998         (get_font_name): New function.
2999         * node.h: Updated.
3001         * man/groff_diff.man, man/groff.man, NEWS: Updated.
3003 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3005         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
3007 2001-12-12  Werner LEMBERG  <wl@gnu.org>
3009         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
3011 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
3013         * man/groff_diff.man: Adding documentation for \O.
3015 2001-12-10  Werner LEMBERG  <wl@gnu.org>
3017         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
3018         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
3020 2001-12-09  Werner LEMBERG  <wl@gnu.org>
3022         * man/roff.man: Revised.
3023         * src/roff/groff/groff.man: Replace man page references with a
3024         pointer to roff.man.
3026 2001-12-09  Bernd Warken  <bwarken@mayn.de>
3028         * man/roff.man: Completely rewritten.
3030 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3032         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
3034 2001-12-05  Werner LEMBERG  <wl@gnu.org>
3036         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
3037         longer used.
3038         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
3039         order of initializers.
3040         * NEWS: Updated.
3042 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
3044         * doc/groff.texinfo: Fix documentation of \O.
3046         * src/devices/grohtml/html-text.cc (html_text::do_indent,
3047         html_text::do_table, html_text::do_emittext, html_text::do_para):
3048         Use `const' for first argument.
3049         (html_text::do_table): Use cast.
3050         * src/devices/grohtml/html-text.h: Updated.
3051         * src/devices/grohtml/output.cc (simple_output::put_string): Add
3052         method for `const string &s'.
3053         * src/devices/grohtml/html.h: Updated.
3054         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
3055         (ANCHOR_TEMPLATE): Modified.
3056         (manufacture_headings): New global variable to handle `-h' option.
3057         (is_subsection): Removed.
3058         (char_buffer::add_string): Add `const' to first argument.
3059         Protect against invalid string argument.
3060         Add method for `const string &s'.
3061         (text_glob): Completely redesigned.
3062         (page): Use `const' for strings and remove string length variable.
3063         (page::add_html): Removed.
3064         (page::add_end_encode): New member function.
3065         (to_unicode): Moved upwards.
3066         (title_desc, header_desc): Updated.
3067         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
3068         definition.
3069         (html_printer::is_bold, html_printer::make_bold): New member
3070         functions.
3071         (html_printer::end_of_line): Updated.
3072         (generate_img_src, html_printer::do_auto_image,
3073         html_printer::do_title, html_printer::write_header,
3074         html_printer::determine_header_level, html_printer::do_heading,
3075         html_printer::do_linelength, html_printer::do_pageoffset,
3076         html_printer::do_indentation, html_printer::do_tempindent,
3077         html_printer::do_indentedparagraph, html_printer::do_break,
3078         html_printer::flush_sbuf, get_html_translation,
3079         html_printer::begin_page, html_printer::special): Rewritten to get
3080         rid of static string length limit.
3081         (html_printer::troff_tag): Added `.no-auto-rule'.
3082         (html_printer::flush_globs): Small fix.
3083         (html_printer::determine_space): Don't compute `space_width'.
3084         (html_printer::translate_to_html): Renamed to ...
3085         (html_printer::emit_html): This (with updates).
3086         (html_printer::write_header): Implement `-h' option.
3087         (html_printer::draw): Remove commented-out code.  Handle `F'
3088         command.
3089         (html_printer::add_char_to_sbuf): Removed.
3090         (html_printer::add_to_sbuf): Rewritten.
3091         (html_printer::sbuf_continuation): Fixed.
3092         (html_printer::seen_backwards_escape, reverse,
3093         html_printer::remove_last_char_from_sbuf): Removed.
3094         (char_translate_to_html, str_translate_to_html): Removed.
3095         (html_printer::overstrike): New function member.
3096         (html_printer::set_char): Use it.
3097         (html_printer::do_body): New function member.
3098         (html_printer::~html_printer): Use it.
3099         (main): Handle `-h' option.
3100         (usage): Updated.
3101         * src/devices/grohtml/grohtml.man: Document -h switch.
3103         * src/preproc/html/pre-html.cc: Include searchpath.h
3104         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
3105         (get_resolution): New function.
3106         (checkImageDir): Use `0777' permissions in mkdir()
3107         (write_start_image): Rewritten to use `\O[5...]'.
3108         (createImage, generateImages): Updated.
3109         (main): Handle `F' and `h' options.
3110         Use `get_resolution'.
3112         * src/roff/troff/input.cc (begin, end, image): Removed.
3113         (do_suppress): Take parameter.
3114         Handle modified syntax of `\O'.
3115         (token::next): Updated.
3116         (init_markup_requests): Removed.
3117         (main): Updated.
3119         * src/roff/troff/div.h: Add declaration for begin_page().
3121         * tmac/color-html.tmac: Removed.  Contents moved to...
3122         * tmac/html.tmac: Here.  Set background color.
3123         * tmac/color.tmac: Removed.  Contents moved to...
3124         * tmac/ps.tmac: Here.
3125         * tmac/www.tmac: Remove the title command when generating images
3126         for html.
3127         (NO_AUTO_RULE): New macro.
3128         (HTML_DO_IMAGE): Use revised `\O' escapes.
3129         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
3131 2001-12-02  Werner LEMBERG  <wl@gnu.org>
3133         * tmac/groff_mdoc.man: Fix typo.
3135 2001-12-01  Colin Watson  <cjwatson@debian.org>
3137         * man/roff.man: Fix typo.
3139 2001-11-29  Werner LEMBERG  <wl@gnu.org>
3141         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
3142         stdlib.h.
3144         * src/roff/troff/input.cc (read_draw_node): Emit error message if
3145         more than one argument to \D'f ...'.
3147         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
3149 2001-11-28  Werner LEMBERG  <wl@gnu.org>
3151         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
3152         loaded only once.
3154         * tmac/groff_man.man: Minor cosmetic fix.
3156 2001-11-27  Werner LEMBERG  <wl@gnu.org>
3158         * src/roff/groff/groff.man, tmac/groff_tmac.man,
3159         tmac/groff_www.man: s/mwww/www/.
3161 2001-11-26  Werner LEMBERG  <wl@gnu.org>
3163         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
3164         * configure: Regenerated.
3165         * win32-diffs: Updated.
3167         * tmac/groff_mwww.tmac: Renamed to ...
3168         * tmac/groff_www.tmac: This.
3169         * tmac/mwww.tmac: Removed.
3170         * NEWS, tmac/Makefile.sub: Updated.
3172 2001-11-21  Werner LEMBERG  <wl@gnu.org>
3174         * doc/groff.texinfo: Improve documentation of the `\v' escape.
3175         Fix explanation of `\D' and `rt'.
3177 2001-11-20  Werner LEMBERG  <wl@gnu.org>
3179         * tmac/an-old.tmac (an-header): Set header length equal to page
3180         width.
3181         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
3182         minor fixes.
3183         * NEWS: Small fix.
3185 2001-11-19  Werner LEMBERG  <wl@gnu.org>
3187         * NEWS, man/Makefile.sub: Updated.
3189 2001-11-19  Bernd Warken  <bwarken@mayn.de>
3191         * man/ditroff.man: New file.
3193 2001-11-17  Werner LEMBERG  <wl@gnu.org>
3195         * man/groff_differences.man: Renamed to ...
3196         * man/groff_diff.man: This.  Updated.
3197         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
3199         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
3200         * src/preproc/html/pushback.cc: This.  Updated.
3201         * src/preproc/html/pushbackbuffer.h: Renamed to ...
3202         * src/preproc/html/pushback.h: This.
3203         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
3204         Updated.
3206         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
3207         * src/libs/libgroff/htmlhint.cc: This.
3208         * src/libs/libgroff/Makefile.sub: Updated.
3210         * tmac/an-old.tmac (an-end): Fix page length.
3212 2001-11-16  Werner LEMBERG  <wl@gnu.org>
3214         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
3215         * man/Makefile.sub: Include groff_differences.man.
3216         * VERSION: Set to 1.18.
3217         * REVISION: Set to 0.
3219 2001-11-16  Bernd Warken  <bwarken@mayn.de>
3221         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
3222         the second dot (or ending macro name) to end a macro.
3223         * doc/groff.texinfo: Doc fix.
3225 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
3227         * tmac/doc-common (doc-header): Handle very long document titles
3228         better.
3230 2001-11-16  Werner LEMBERG  <wl@gnu.org>
3232         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
3234 2001-11-15  Werner LEMBERG  <wl@gnu.org>
3236         * src/roff/troff/troff.man: Revised and split into troff.man and...
3237         * man/groff_differences.man: New file.
3238         * NEWS: Updated.
3240 2001-11-13  Werner LEMBERG  <wl@gnu.org>
3242         * tmac/an-old.tmac (TS, TE): New macros for table support.
3244 2001-11-12  Werner LEMBERG  <wl@gnu.org>
3246         * src/include/lib.h: Provide a fix for emx to not include
3247         groff-getopt.h.
3249 2001-10-27  Werner LEMBERG  <wl@gnu.org>
3251         * src/roff/troff/input.cc (substring_macro): Fix computation of
3252         boundary values.
3254 2001-10-20  Werner LEMBERG  <wl@gnu.org>
3256         Undo change from 2001-08-28.
3258         * src/roff/troff/input.cc (have_input): New global variable.
3259         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
3260         in compatibility mode.
3261         (process_input_stack): Use it.
3263 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
3265         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
3266         being handled as end-of-sentence characters,
3268 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
3270         * src/roff/troff/input.cc (file_iterator): New members
3271         `suppress_newline_flag' and `seen_escape'.
3272         (file_iterator::next_file): Updated.
3273         (file_iterator::fill): Use it.
3274         (string_iterator): New member `suppress_newline_flag'.
3275         (string_iterator::fill): Set it.
3276         (get_color_element): Use MAX_COLOR_VAL.
3277         * src/roff/troff/env.cc (environment): Remove `need_eol'.
3278         (no_fill): Don't set `env->ignore_next_eol'.
3279         (environment::newline): Handle `eol' tag properly.
3280         Emit `eol.ce'.
3281         (environment::add_html_tag): Set `env->ignore_next_eol'.
3282         Don't handle `.ce'.
3283         * src/roff/troff/env.h (environment): Updated.
3285         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
3286         member function.
3287         (html_printer::outstanding_eol): New member function.
3288         (html_printer::do_title): Use new functions.
3289         (html_printer::troff_tag): Test `id_eol_ce'.
3291 2001-10-10  Werner LEMBERG  <wl@gnu.org>
3293         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
3294         files work with -C also.
3296 2001-10-05  Werner LEMBERG  <wl@gnu.org>
3298         * doc/pic.ms: Minor fix.
3299         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
3300         as a valid command line switch.
3301         * src/devices/grohtml/post-html.cc (main): Ditto.
3302         (usage): Updated.
3303         * src/devices/grohtml/grohtml.man: Updated.
3304         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
3306 2001-10-04  Werner LEMBERG  <wl@gnu.org>
3308         Implementing color support in troff, pic, grops, and grohtml.  These
3309         changes are based on a major patch provided by Gaius Mulley
3310         <gaius@glam.ac.uk>.
3312         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
3313         definitions with both hex values and fractions.
3315         New escapes: \m and \M for drawing and background color,
3316         respectively.  This corresponds to the troff output commands `m'
3317         and `DF'.
3319         groff and troff accept command line switch `-c' to disable color
3320         output (which is automatically disabled in compatibility mode).
3322         New scaling indicator `f' for fractions (1f = 65536u).
3324         New conditional operator `m' to test for defined colors with `if'
3325         and `ie'.
3327         New keywords `color' (or `colour', `colored', `coloured'), `outline'
3328         (or `outlined'), and `shaded' added to pic.
3330         * src/include/color.h: New file.
3331         * src/include/driver.h: Include it.
3332         * src/include/printer.h: Include color.h.
3333         (environment): New members `col' and `fill'.
3334         (printer): Remove `adjust_arc_center' member function.
3335         * src/include/Makefile.sub: Updated.
3337         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
3338         `env.fill'.
3339         Handle `m' and `DF' troff commands.
3340         * src/libs/libgroff/color.cc: New file.
3341         * src/libs/libgroff/Makefile.sub: Updated.
3343         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
3344         (stop): Removed.
3345         (createImage): Fix computation of `y2'.
3346         Use `pnmcrop' also.
3347         (buffer::write_file_html): Remove calls to `stop'.
3349         * src/preproc/pic/common.h (common_output): New abstract function
3350         members `set_color', `reset_color', `get_last_filled', and
3351         `get_outline_color'.
3352         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
3353         (object_spec): Add members `shaded' and `outlined'.
3354         * src/preproc/pic/output.h (output): `command' is now abstract.
3355         New function members `set_color', `reset_color', `get_last_filled',
3356         and `get_outline_color'.
3357         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
3358         `outline[d]', and `shaded'.
3359         * src/preproc/pic/object.cc (output::command): Removed.
3360         (output::set_location): Moved to output.h.
3361         (graphic_object): Add protected members `outline_color' and
3362         `color_fill'.
3363         Add member functions `set_outline_color', `get_outline_color', and
3364         `set_fill_color'.
3365         (closed_object): Add member function `set_fill_color'.
3366         Add member `color_fill'.
3367         (graphic_object::print_text): Use `out->set_color' and
3368         `out->reset_color'.
3369         (box_object::print, ellipse_object::print, circle_object::print,
3370         line_object::print, spline_object::print, arc_object::print): Ditto.
3371         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
3372         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
3373         `SHADED', making them `%left'.
3374         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
3375         * src/preproc/pic/tex.cc (tex_output): New dummy function members
3376         `set_color', `reset_color', `get_last_filled', and
3377         `get_outline_color'.
3378         * src/preproc/pic/troff.cc (simple_output): New abstract function
3379         members `set_color', `reset_color', and `get_last_filled'.
3380         (simple_output::polygon, simple_output::circle,
3381         simple_output::ellipse): Use `get_last_filled'.
3382         (troff_output): New members `last_filled' and `last_outlined'.
3383         New function members `set_color', `reset_color', `get_last_filled',
3384         and `get_outline_color'.
3385         (troff_output::finish_picture): Use `reset_color'.
3386         (troff_output::set_fill): Test `last_filled'.
3387         * src/preproc/pic/pic.man: Updated.
3389         * src/roff/groff/groff.cc (main): Implement `-c' option.
3390         (synopsis, help): Updated.
3391         src/roff/groff/groff.man: Updated.
3393         * src/roff/troff/troff.h: Include color.h.
3394         (warning_type): Add WARN_COLOR.
3395         * src/roff/troff/env.h (environment): New members
3396         `{cur,prev}_{glyph,fill}_color'.
3397         New member functions `get_{prev_,}{glyph,fill}_color'.
3398         * src/roff/troff/env.cc: Initialize and implement them.
3399         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
3400         Replace `NULL' with `0' everywhere for consistency.
3401         (lookup_color, default_black, do_glyph_color, do_fill_color,
3402         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
3403         define_color): New functions.
3404         (token::next): Implement \M and \m escapes.
3405         (do_if_request): Implement `m' operator.
3406         (usage): Updated.
3407         (main): Implement `-c' option.
3408         (init_markup_requests): Add `defcolor' request.
3409         (warning_table): Add `color' warning.
3410         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
3411         classes.
3412         * src/roff/troff/node.cc (troff_output_file): New members
3413         `current_{page,glyph}color'.  New member functions `put_hex',
3414         `glyph_color', and `fill_color'.
3415         (glyph_color_node::*, fill_color_node::*): Implement it.
3416         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
3417         (parse_term): Add support for `f'.
3418         * src/roff/troff/troff.man: Updated.
3420         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
3421         entry for `F'.
3422         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
3423         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
3425         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
3426         (tag_definition): Use `void *' for arg1.
3427         (html_text): New member functions `do_color' and `done_color'.
3428         Use `void *' for second parameter of `push_para' member function.
3429         New `push_para' member function with a single parameter.
3430         Use `char *' for parameter of `issue_table_begin' member funtion.
3431         New `issue_color_begin' member function.
3432         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
3433         COLOR_TAG.
3434         (html_text::issue_color_begin): New function.
3435         (html_text::issue_table_begin): Use `char *' for parameter.
3436         (html_text::start_tag, html_text::shutdown,
3437         html_text::check_emit_text): Updated.
3438         (html_text::push_para): Use `void *' for second parameter.
3439         Add same function with only one parameter.
3440         (html_text::do_*): Updated.
3441         (html_text::do_color, html_text::done_color): New functions.
3442         * src/devices/grohtml/post-html.cc (style): New member `col'.
3443         Mew member `style' with 6 parameters.
3444         (style::style, style::operator==): Updated.
3445         (html_printer::do_font): Use it.
3446         (html_printer::draw): Add dummy entry for `F'.
3447         (html_printer::set_char): Updated.
3448         * src/devices/grohtml/grohtml.man: Updated.
3450         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
3451         trailing zeroes removed.
3452         (ps_printer): New members `sbuf_color', `fill_color', and
3453         `output_color'.
3454         Removed member `fill'.
3455         New member function `set_color'.
3456         (ps_printer::ps_printer, ps_printer::set_char): Updated.
3457         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
3458         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
3460         * tmac/color-html.tmac, tmac/color.tmac: New files.
3461         * tmac/troffrc: Include them.
3462         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
3463         * tmac/Makefile.sub: Updated.
3465         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
3466         man/groff.man: Updated.
3467         * font/devps/prologue.ps: Define FC and CO functions.
3469 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3471         Fix incorrect cropping of images and incorrect handling of special
3472         characters.  Fix handling of file names in \O.
3474         * src/include/geometry.h: New file.
3475         * src/libs/libgroff/geometry.cc: New file.
3476         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
3477         to `geometry.cc'.
3478         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
3479         initial spaces.
3480         (do_suppress): Updated.
3481         * src/roff/troff/node.cc: Include geometry.h.
3482         (troff_output_file::flush_tbuf): Fixed parameters to
3483         `check_output_limits'.
3484         (troff_output_file::check_charinfo): Ditto.
3485         (troff_output_file::determine_line_limits): Add support for `Da'
3486         and `Dl' commands.
3488         * src/devices/grohtml/post-html.cc (str_translate_to_html):
3489         Add new parameter `is_special' to decode special characters from
3490         escape sequences.
3491         (html_printer::do_title, html_printer::do_heading,
3492         html_printer::do_indentedparagraph,
3493         html_printer::translate_to_html, html_printer::special): Updated.
3495 2001-10-03  Werner LEMBERG  <wl@gnu.org>
3497         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
3498         Fix entry for config.h.
3499         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
3500         * tmac/troffrc: Translate nonbreakable space character to `\~'.
3501         * src/preproc/eqn/eqn.man: Document -d command line option.
3503 2001-09-27  Werner LEMBERG  <wl@gnu.org>
3505         * man/groff.man: Use
3507           .ev xxx
3508           .na
3509           .nh
3510           <table>
3511           .ev
3513         instead of the old code (`.ad .hy' after the table) to suppress
3514         incorrect hyphenation for grohtml output.
3516 2001-09-22  Werner LEMBERG  <wl@gnu.org>
3518         * man/groff_font.man, man/groff_out.man: Minor fixes.
3520 2001-09-20  Werner LEMBERG  <wl@gnu.org>
3522         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
3523         Arnold Robbins <arnold@skeeve.com>).
3525 2001-09-09  Werner LEMBERG  <wl@gnu.org>
3527         * configure: Regenerated with autoconf 2.52.
3529         * doc/groff.texinfo: Complete revision of indices.
3531 2001-09-07  Werner LEMBERG  <wl@gnu.org>
3533         * doc/Makefile (clean): Updated to delete all indices.
3535 2001-09-05  Werner LEMBERG  <wl@gnu.org>
3537         * src/roff/troff/troff.man: Remove superfluous line.
3539         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
3540         given on the command line (or rather, if only the default warnings
3541         are set).
3543 2001-09-03  Werner LEMBERG  <wl@gnu.org>
3545         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
3546         use .ne for TTY devices.
3548 2001-08-31  Werner LEMBERG  <wl@gnu.org>
3550         * src/roff/troff/token.h, src/roff/troff/input.cc:
3551         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
3553 2001-08-28  Werner LEMBERG  <wl@gnu.org>
3555         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
3556         * src/roff/troff/input.cc (token::next): Return
3557         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
3558         compatibility mode.
3559         (token::description): Updated.
3560         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
3561         (token::add_to_node_list, token::process): Ignore
3562         TOKEN_TRANSPARENT_ESCAPE.
3564 2001-08-27  Werner LEMBERG  <wl@gnu.org>
3566         * tmac/an-old.tmac: Fix `S' string.
3568 2001-08-26  Werner LEMBERG  <wl@gnu.org>
3570         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
3572 2001-08-25  Werner LEMBERG  <wl@gnu.org>
3574         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
3575         backslashes).
3576         Many other minor fixes.
3578         * configure.ac: Add message at end to inform how to compile
3579         xditview.
3580         * configure: Regenerated.
3582 2001-08-24  Werner LEMBERG  <wl@gnu.org>
3584         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
3585         Updated to latest version of libc.
3587 2001-08-23  Werner LEMBERG  <wl@gnu.org>
3589         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
3590         Autoconf 2.50 and newer can handle this.
3591         * configure: Regenerated.
3593 2001-08-21  Werner LEMBERG  <wl@gnu.org>
3595         * doc/pic.ms: Fix typo.
3596         * src/preproc/tbl/tbl.man: Document case of global options.
3598 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3600         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
3601         handling of `CR' font.
3603 2001-08-20  Werner LEMBERG  <wl@gnu.org>
3605         Use a config.h file.
3607         * src/include/lib.h: Include config.h.
3608         * All C files: Ditto (if necessary).
3609         * All C++ source and header files: Include lib.h first (if
3610         necessary).
3612         * src/include/config.hin: New file (autogenerated by autoheader).
3613         * stamp-h.in: New file.
3614         * configure.ac: Updated.
3615         * aclocal.m4: Add third parameters to AC_DEFINE macros.
3616         (GROFF_ARRAY_DELETE): Simplified.
3617         * Makefile.sub (DISTCLEANFILES): Updated.
3618         Added targets for remaking config.status, config.hin, config.h,
3619         stamp-h.in, and stamp-h.
3620         * configure: Regenerated.
3622 2001-08-19  Werner LEMBERG  <wl@gnu.org>
3624         * NEWS: Updated.
3626 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
3628         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
3629         (do_sprintf): Use snprintf().
3631 2001-08-18  Werner LEMBERG  <wl@gnu.org>
3633         * src/libs/snprintf/*: Added an snprintf module written by Mark
3634         Martinec.
3635         * src/libs/libgroff/Makefile.sub: Updated.
3636         * configure.ac: Add test for snprintf().
3637         * Makefile.in: Updated.
3638         * configure: Regenerated.
3640         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
3641         uses snprintf().
3643 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
3645         * tmac/doc.tmac (Ex): New implementation.
3646         * tmac/doc-common, tmac/groff_tmac.man: Updated.
3648 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
3650         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
3651         argument.
3652         * tmac/groff_tmac.man: Updated.
3654 2001-08-13  Werner LEMBERG  <wl@gnu.org>
3656         * src/preproc/tbl/tbl.man: Minor documentation update.
3658 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3660         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
3661         * configure.ac: Add declaration test for gettimeofday().
3662         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
3663         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
3664         * configure: Regenerated.
3666 2001-08-11  Werner LEMBERG  <wl@gnu.org>
3668         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
3669         * configure.ac: Add declaration test for strcasecmp().
3670         * Makefile.in: Updated.
3671         * configure: Regenerated.
3672         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
3673         this is necessary because groff's mkstemp.cc is C++.
3674         Add declaration conditionally for strcasecmp().
3676 2001-08-10  Werner LEMBERG  <wl@gnu.org>
3678         Integrated pic2graph, contributed by Eric S. Raymond.
3680         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
3681         files.
3682         * Makefile.in, NEWS: Updated.
3684         * src/preproc/tbl/tbl.man: Revised.
3686 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
3688         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
3690 2001-08-09  Werner LEMBERG  <wl@gnu.org>
3692         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
3693         requests.
3695 2001-08-08  Paul Eggert  <eggert@twinsun.com>
3697         * Makefile.sub (configure): Depend on configure.ac, not
3698         configure.in.
3699         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
3701 2001-08-07  Werner LEMBERG  <wl@gnu.org>
3703         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
3704         fixes.
3706 2001-08-06  Werner LEMBERG  <wl@gnu.org>
3708         * src/roff/troff/troff.man: Improve documentation of -E option.
3710 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3712         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
3713         Simplified.
3715 2001-07-27  Werner LEMBERG  <wl@gnu.org>
3717         * src/preproc/refer/refer.cc: Undo last change.
3718         * src/devices/grohtml/post-html.cc: Ditto.
3720 2001-07-26  Werner LEMBERG  <wl@gnu.org>
3722         * src/preproc/refer/refer.cc: Include `lib.h'.
3723         * src/devices/grohtml/post-html.cc: Ditto.
3725 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
3727         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
3728         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
3729         * Makefile.in: Comment updated.
3730         * configure: Regenerated.
3732 2001-07-25  Werner LEMBERG  <wl@gnu.org>
3734         * src/preproc/pic/pic.cc: Removed.
3735         * src/preproc/pic/pic_tab.h: Removed.
3736         * src/preproc/refer/label.cc: Removed.
3738         * doc/Makefile (.ms.html): Don't use a file name extension in
3739         argument to grohtml's -I option.
3740         * Makefile.in (dist): Remove CVS directories.
3741         Call `distfiles' target.
3743         * src/devices/grohtml/grohtml.man: Add information about valid
3744         versions of pnmtopng.
3745         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
3746         name instead of number.
3748 2001-07-24  Werner LEMBERG  <wl@gnu.org>
3750         * doc/groff.texinfo: Minor fixes.
3752 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
3754         * doc/Makefile (.ms.html): Put image files into a subdirectory.
3755         (clean): Updated.
3757 2001-07-20  Werner LEMBERG  <wl@gnu.org>
3759         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
3760         * src/libs/libgroff/mkstemp.cc: New file.
3761         * src/libs/libgroff/mksdir.cc: New file.
3762         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
3763         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
3764         * src/libs/libgroff/Makefile.sub: Updated.
3765         * src/include/lib.h: Add mksdir() prototype.
3766         * src/include/posix.h: Define S_IXUSR if not yet defined.
3768         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
3769         (createAllPages): Use mksdir() instead of current code.
3770         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
3771         (main): [!HAVE_MKSTEMP]: Removed.
3773         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
3774         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
3775         macros.
3776         * configure.ac: Add tests for stdint.h, sys/time.h, and
3777         gettimeofday().
3778         Call new GROFF_xxx macros.
3779         * configure: Regenerated.
3780         * Makefile.in: Comments updated.
3782 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
3784         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
3785         instead of current code.
3786         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
3787         * src/roff/groff/groff.cc (possible_command::insert_args): New
3788         function.
3789         (main): Use it for predriver handling instead of insert_arg().
3791 2001-07-19  Werner LEMBERG  <wl@gnu.org>
3793         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
3794         groff also.
3796         * src/include/posix.h: Define S_IWUSR if not yet defined.
3798 2001-07-18  Werner LEMBERG  <wl@gnu.org>
3800         * NEWS: Updated.
3802 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
3804         * tmac/groff_mdoc.man: Document new -width and -column syntax.
3805         Some other minor fixes.
3806         * tmac/an-old.tmac: Add `AT' and `UC' macros.
3808 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
3810         Replace call to `troff' with `groff -Z' to make it aware of
3811         GROFF_BIN_PATH.
3813         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
3814         (troff_command, command_prefix): Removed.
3815         (alterDeviceTo): Use groff.
3816         (addZ): New function.
3817         (char_buffer::do_html): Use it.
3818         (scanArguments): Use TROFF_COMMAND.
3819         (findPrefix): Removed.
3820         (main): Updated.
3821         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
3823 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
3825         * doc/pic.ms: Documentation fixes.
3827 2001-07-17  Werner LEMBERG  <wl@gnu.org>
3829         Replace atexit() with global destructor.
3831         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
3832         (xtmpfile_list_init): New global structure to deallocate
3833         xtmpfile_list on exit.  Its destructor inherits most code from
3834         remove_tmp_files().
3835         (remove_tmp_files): Deleted.
3836         (add_tmp_file): Simplified.
3838 2001-07-16  Werner LEMBERG  <wl@gnu.org>
3840         Replace strdup() with strsave().
3842         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
3843         (set_papersize): Use strsave() and a_delete.
3844         (main): Use strsave().
3845         * src/preproc/html/pre-html.cc (make_message, createAllPages,
3846         removeAllPages): Use strsave() and a_delete.
3848         * configure.ac: Remove test for strdup.
3849         * Makefile.in: Comment updated.
3850         * configure: Regenerated.
3852 2001-07-15  Werner LEMBERG  <wl@gnu.org>
3854         * win32-diffs: Updated.
3856 2001-07-14  Werner LEMBERG  <wl@gnu.org>
3858         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
3859         removing the old one.
3860         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
3862 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3864         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
3866 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
3868         Merge -xwidth into -width.  Add -xwidth functionality to -column
3869         also.
3871         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
3872         avoid warning.
3873         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
3874         string immediately following a leading dot starts with a valid mdoc
3875         argument.
3876         Add similar code to the -column branch.
3877         (doc-Bl-usage): Updated.
3878         * groff_mdoc.man: s/-xwidth/-width/.
3880 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
3882         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
3883         running into centered or non-formatted text.
3885 2001-07-11  Werner LEMBERG  <wl@gnu.org>
3887         Introduce short and long prefixes to have the selection at run-time
3888         whether there is a 8+3 limit for names of temporary files.
3890         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
3891         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
3892         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
3893         variables.
3894         (temp_init): New global structure to initialize above three
3895         variables.
3896         (xtmptemplate): Use two parameters for long and short prefix.
3897         Simplify code use above three variables.
3898         (xtmpfile): Use long and short prefixes as parameters.
3899         * src/include/lib.h: Updated.
3901         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
3902         with ...
3903         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
3904         (createAllPages, makeTempFiles): Updated.
3906 2001-07-09  Werner LEMBERG  <wl@gnu.org>
3908         * REVISION: Increased to 3.
3910 Version 1.17.2 released
3911 =======================
3913 2001-07-07  Werner LEMBERG  <wl@gnu.org>
3915         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
3916         to size_t.
3918 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3920         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
3921         Fix synopsis.
3922         * tmac/groff_mdoc.man: Fix synopsis.
3924 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3926         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
3927         Restore `doc-Pa-font'.
3929 2001-07-04  Werner LEMBERG  <wl@gnu.org>
3931         * src/utils/indxbib/dirnamemax.c: Moved to ...
3932         * src/libs/libgroff/maxfilename.cc: Here.
3933         s/dir_name_max/file_name_max/.
3934         Add copyright.
3935         * src/include/lib.h: Add file_name_max.
3936         * src/utils/indxbib/indxbib.cc: Updated.
3937         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
3938         Updated.
3940         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
3941         as empty.
3942         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
3944         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
3945         REGION_TEMPLATE): New macros.
3946         (createAllPages, makeTempFiles): Use them.
3947         Include `nonposix.h'.
3948         (html_system): New function.
3949         (createAllPages, createImage): Use it.
3950         Use EXE_EXT.
3952         * tmac/www.tmac: Fix typos.
3954 2001-07-03  Werner LEMBERG  <wl@gnu.org>
3956         * tmac/www.tmac: Disable hyphenation in normal text only if output
3957         device is html.
3958         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
3959         * tmac/groff_mwww.man, NEWS: Updated.
3961 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
3963         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
3964         image location.
3966 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
3968         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
3969         doc-display-ps-stack): Implement font and font size stack for
3970         displays.
3972 2001-07-02  Werner LEMBERG  <wl@gnu.org>
3974         * REVISION: Increased to 2.
3975         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
3977         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
3978         beginning of a line.
3979         * src/groff/grog/grog.sh: Ditto.
3981 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
3983         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
3984         make it portable.
3986 2001-06-27  Werner LEMBERG  <wl@gnu.org>
3988         Fix problems with preprocessor string for `man' program.
3990         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
3991         Updated/added copyright.
3992         Moved Emacs's local variable to identify nroff mode to the end of
3993         the file; add local variable if missing.
3995 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
3997         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
3998         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
3999         * configure: Regenerated.
4001 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
4003         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
4004         * configure: Regenerated.
4006 2001-06-24  Werner LEMBERG  <wl@gnu.org>
4008         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
4009         but www.tmac.
4010         * doc/pic.ms: Fix typos.
4012 Version 1.17.1 released
4013 =======================
4015 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
4017         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
4018         * configure: Updated.
4020 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
4022         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
4023         image names.
4024         * src/roff/troff/dic.cc (blank_line): Add html tag.
4026 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
4028         * src/roff/troff/input.cc (do_suppress): Fix typo.
4030 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
4032         Added two new options (-D and -I) to specify image names and a
4033         subdirectory to place the images in.
4035         Change syntax from \\Ox to \\O[x].
4037         * src/devices/grohtml/post-html.cc (main): Add options.
4038         (usage): Updated.
4039         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
4040         Use `NULL' instead of `0' for null string pointers.
4041         (MAX_RETRIES): New macro.
4042         (lengthOfintToStr, intToStr, make_message): New functions.
4043         (makeFileName): Make function static.
4044         Implement -D and -I options.
4045         (checkImageDir): New function.
4046         (write_end_image, write_start_image): Use new syntax of \O.
4047         (createAllPages, removeAllPages): Implement -D and -I options.  Use
4048         make_message().
4049         (createImage): Use make_message().
4050         (addps4html): Add guard for malloc().
4051         (usage, scanArguments): Updated.
4052         (makeTempFiles): Use mkstemp().
4053         (removeTempFiles): Use unlink().
4054         (findPrefix): Add guard for malloc().
4055         (main): Updated.
4056         * src/roff/troff/input.cc (get_delim_file_name): New function to
4057         parse \O.
4058         (do_suppress): Updated to parse new syntax.
4059         * src/devices/grohtml/grohtml.man: Updated.
4060         * tmac/www.tmac: Updated to new syntax.
4062         * NEWS: Updated.
4064 2001-06-15  Werner LEMBERG  <wl@gnu.org>
4066         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
4068         * src/devices/grohtml/grohtml.man: Minor improvements.
4070 2001-06-14  Werner LEMBERG  <wl@gnu.org>
4072         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
4074 2001-06-11  Werner LEMBERG  <wl@gnu.org>
4076         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
4077         line to specify preprocessor options -- mandb 2.3.1 only recognizes
4078         the former.
4079         * src/preproc/grn/grn.man: Add proper '\" string.
4081 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
4083         * test-groff: Don't use PATH but GROFF_BIN_PATH.
4085 2001-06-08  Werner LEMBERG  <wl@gnu.org>
4087         Updated to autoconf 2.50.
4089         * configure.in: Renamed to...
4090         * configure.ac: This.
4091         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
4092         (GROFF_OS390): Updated.
4093         * configure: Regenerated.
4095 2001-05-18  Werner LEMBERG  <wl@gnu.org>
4097         * src/roff/troff/env.c, src/roff/troff/env.h,
4098         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
4099         from 2000-12-21.
4101 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
4103         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
4105 2001-05-16  Werner LEMBERG  <wl@gnu.org>
4107         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
4108         less than or equal zero; set it to 1 then.
4109         * src/roff/troff/node.h (node::node): Initialize `last'.
4111 2001-05-08  Werner LEMBERG  <wl@gnu.org>
4113         * tmac/an-old.tmac: Make predefined strings work in compatibility
4114         mode.
4115         Add troff version guard.
4116         * tmac/doc.tmac: Simplify version guard.
4118 2001-05-07  Werner LEMBERG  <wl@gnu.org>
4120         The .ns and .rs requests are now honoured not only in the top-level
4121         but in all diversions (similar to UNIX troff).
4123         This change is based on a patch from Tadziu Hoffmann
4124         <hoffmann@usm.uni-muenchen.de>.
4126         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
4127         (top_level_diversion): Remove `no_space_mode' member.
4128         * src/roff/troff/div.cc (diversion::diversion,
4129         top_level_diversion::top_level_diversion): Updated.
4130         (macro_diversion::output): Reset `no_space_mode'.
4131         (no_space, restore_spacing): Use `curdiv' unconditionally.
4132         (space_request, blank_line): Check `curdiv->no_space_mode'.
4133         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
4134         `curdiv' unconditionally.
4135         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4136         Updated.
4138 2001-05-06  Werner LEMBERG  <wl@gnu.org>
4140         Added two new requests `de1' and `am1' which are similar to `de' and
4141         `am' with the difference that compatibility mode is saved on entry,
4142         switched off during macro execution, and restored on exit.
4144         * src/roff/troff/input.h: Added two new special characters
4145         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
4146         * src/roff/troff/input.cc (input_iterator): Added two member
4147         functions `save_compatible_flag' and `get_compatible_flag'.
4148         (input_stack): Ditto.
4149         (string_iterator): Ditto.  Also add private member
4150         `saved_compatible_flag'.
4151         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4152         (calling_mode): New enumeration.
4153         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
4154         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
4155         (define_macro, define_indirect_macro, append_macro, ignore): Use
4156         `calling_mode'.
4157         (define_nocomp_macro, append_nocomp_macro): New functions.
4158         (init_input_requests): Updated.
4159         (do_request): Rename local variable `saved_compatible_flag' to
4160         `old_compatible_flag'.
4161         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4163         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
4164         public and trap-invoked macros.  As a consequence, the man macros
4165         work in compatibility mode also.
4167 2001-05-06  Solar Designer  <solar@openwall.com>
4169         * Makefile.in: Use $(mandir).
4171 2001-05-06  Alexios Zavras  <zvr@pobox.com>
4173         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
4175 2001-05-05  Werner LEMBERG  <wl@gnu.org>
4177         Added `.ns' number register: Returns 1 in no-space mode (if in
4178         top-level diversion), 0 otherwise.
4180         * src/roff/troff/div.cc (no_space_mode_reg): New class.
4181         (init_div_requests): Updated.
4182         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4183         Document it.
4185 2001-05-04  Werner LEMBERG  <wl@gnu.org>
4187         * src/roff/nroff/nroff.man: Improved documentation (especially
4188         locales).
4190 2001-05-02  Werner LEMBERG  <wl@gnu.org>
4192         Added `brp' request: This is \p as a request.
4194         * src/roff/troff/env.cc (environment::do_break): Add parameter
4195         `spread'.
4196         (do_break_request): New function (was `break_request').
4197         (break_request): Calls `do_break_request'.
4198         (break_spread_request): New; calls `do_break_request'.
4199         (init_env_requests): Updated.
4200         * src/roff/troff/env.h: Updated.
4201         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4203         * REVISION: Increased to 1.
4204         * win32-diffs: Updated.
4206 2001-05-01  Werner LEMBERG  <wl@gnu.org>
4208         * tmac/an-old.tmac: Fix minor compatibility mode issue.
4209         * tmac/troffrc-end: Make it really work in compatibility mode.
4211 2001-04-27  Werner LEMBERG  <wl@gnu.org>
4213         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
4214         stdlib.h.
4216 2001-04-22  Werner LEMBERG  <wl@gnu.org>
4218         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
4219         latest versions from glibc CVS archive.
4221         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
4222         <c.zeelenberg@hccnet.nl>.
4224 2001-04-21  Werner LEMBERG  <wl@gnu.org>
4226         * configure.in: Move check for mkstemp() to...
4227         * aclocal.m4 (GROFF_MKSTEMP): This new function.
4228         * configure: Regenerated.
4230         * src/include/groff-getopt.h: Don't use variable names in
4231         declarations.
4233         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
4234         * src/devices/grohtml/Makefile.sub,
4235         src/devices/grohtml/post-html.cc: Updated.
4237 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
4239         * configure.in: Add special check for mkstemp().
4240         * src/libs/libgroff/tmpfile.cc: Use it.
4241         * src/utils/indxbib/indxbib.cc: Ditto.
4242         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
4243         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
4244         `const'.
4246 2001-04-20  Bruce Lilly  <blilly@erols.com>
4248         `Version_string' as C++ object was not visible to linker from C
4249         object files.
4250         Add `const' to `Version_string'.
4252         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
4253         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
4254         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
4255         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
4256         (scanArguments), src/preproc/refer/refer.cc (main),
4257         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
4258         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
4259         (main), src/devices/grohtml/post-html.cc (main),
4260         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
4261         (main), src/utils/hpftodit/hpftodit.cc (main),
4262         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
4263         (main), src/utils/lkbib/lkbib.cc (main),
4264         src/utils/addftinfo/addftinfo.cc (main): Implement it.
4266         * src/roff/groff/pipeline.c: Add _UWIN.
4267         * src/include/nonposix.h: Ditto.
4269 2001-04-20  Werner LEMBERG  <wl@gnu.org>
4271         * src/include/lib.h: Use HAVE_STRERROR.
4272         * src/roff/groff/pipeline.c: Ditto.
4273         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
4274         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
4275         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
4276         * win32-diffs: Updated.
4277         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
4279 2001-04-19  Werner LEMBERG  <wl@gnu.org>
4281         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
4282         instead of hardwired `"troff"'.
4283         (char_buffer::read_file): Remove unused variables.
4284         (char_buffer::write_file_troff): Ditto.
4285         (char_buffer::write_file_html): Ditto.
4286         (generateImages): Ditto.
4287         (abs): Removed.
4288         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
4290         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
4292         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
4293         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
4294         index_search_item::search1): Ditto.
4295         * src/roff/troff/node.h (width_list): Reorder members.
4296         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
4297         (lookup_warning): Ditto.
4298         (prepend_string): Commented out.
4299         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
4300         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
4301         * src/preproc/tbl/main.cc (process_format): Ditto.
4302         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
4303         compiler warnings.
4304         * src/preproc/pic/pic.cc: Updated.
4305         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
4306         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
4307         * src/preproc/refer/command.cc (execute_command): Ditto.
4308         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
4309         * src/preproc/refer/token.cc (lookup_token): Ditto.
4310         * src/preproc/soelim/soelim.cc: Ditto.
4311         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
4312         (isHexDigit): Commented out.
4313         (pushBackBuffer::isString): Remove unused variable.
4314         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
4315         warning.
4316         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
4317         resource_manager::read_resource_arg, read_one_of, parse_extensions):
4318         Ditto.
4319         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
4320         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
4321         lookup_paper_size): Ditto.
4322         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
4323         (text_glob, element_list): Reorder members.
4324         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
4325         compiler warning.
4326         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
4327         return value to `void'.
4328         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
4329         of initializers.
4330         * src/devices/grohtml/html.h (simple_output::check_newline,
4331         simple_output::space_or_newline, simple_output::enable_newlines):
4332         Add return value.
4333         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
4334         compiler warnings.
4335         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
4336         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
4337         output_ligatures, output_charset, read_map): Ditto.
4338         * src/utils/lookbib/lookbib.cc (main): Ditto.
4339         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
4340         (do_file): Fix typo (`=' -> `==').
4341         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
4342         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
4344 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
4346         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
4347         Fix usage of GROFF_BIN_PATH.
4348         * src/roff/nroff/nroff.man: Updated.
4350 2001-04-18  Werner LEMBERG  <wl@gnu.org>
4352         * NEWS: Fixing typos.
4353         Updated.
4355 Version 1.17 released
4356 =====================
4358 2001-04-17  Werner LEMBERG  <wl@gnu.org>
4360         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
4361         directory, not in $(srcdir).
4363 2001-04-16  Werner LEMBERG  <wl@gnu.org>
4365         * doc/groff.texinfo: More info on conditionals.
4367 2001-04-15  Werner LEMBERG  <wl@gnu.org>
4369         * doc/groff.texinfo: Added some info about groff internals.
4371         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
4372         about missing special character only if the name is non-null.
4374 2001-04-14  Werner LEMBERG  <wl@gnu.org>
4376         Removing the grohtml-old device driver which is now obsolete.
4378         * src/devices/grohtml-old/*: Removed.
4379         * font/devhtml-old/*: Removed.
4380         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
4381         Remove comments.
4382         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
4383         * test-groff (PATH): Updated.
4384         * tmac/Makefile.sub (NORMALFILES): Updated.
4385         * tmac/an-old.tmac: Remove special code for html-old device.
4386         Replace `html-or-html-old' register with `an-html'.
4387         * tmac/eqnrc: Updated.
4388         * tmac/html-old.tmac: Removed.
4389         * tmac/troffrc, tmac/troffrc-end: Updated.
4390         * tmac/www.tmac: Remove special code for html-old device.
4391         Replace `html-or-html-old' register with `www-html'.
4393         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
4394         src/libs/libgroff/htmlindicate.cc (graphic_end),
4395         include/htmlindicate.h, src/preproc/grn/*.cc,
4396         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
4397         single argument for consistency with rest of source code.
4399         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
4401 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
4403         * src/roff/troff/troff.man: Fixing typos.
4405 2001-04-13  Werner LEMBERG  <wl@gnu.org>
4407         * doc/pic.ms: Fixing many font switches.
4408         * doc/groff.texinfo: Fixes, additions.
4409         * MORE.STUFF: Updated.
4411 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
4413         * src/devices/grohtml/grohtml.man: Updated manual page regarding
4414         simple anchor.
4415         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
4416         cropping of images.
4417         (removeTempFiles): New function to tidy up temporary files.
4418         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
4419         Many fixes to do with the new inline suppress node and image regions
4420         are much tighter.
4421         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
4422         (generate_img_src): New function.
4423         (html_printer::do_auto_image): Utilizes it.
4424         (do_heading, do_title): Include inline images within their contents.
4425         (html_printer::begin_page): Tidied up comments that are issued to
4426         the html output file.
4427         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
4428         than courier.
4429         (text_glob::is_br): New method used by do_heading.
4430         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
4431         equivalent diversion.
4432         * src/include/html-strings.h: Altered image tags to reflect the
4433         inline image node.
4434         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
4435         parameter.
4436         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
4437         it is already inside a pic image.  Only emit tags if the argument
4438         `-Tps:html' is present.
4439         * src/preproc/tbl/main.cc: Changes to reflect additional
4440         `html_end_suppress' parameter.
4441         * src/roff/troff/env.cc: Only emit eol tag if a node has been
4442         emitted since the last eol tag was written.
4443         * src/roff/troff/env.h: New boolean `emitted_node'.
4444         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
4445         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
4446         * src/roff/troff/node.cc (check_charinfo): New method. 
4447         (troff_output_file::determine_line_limits): Alterations to limit
4448         checking.
4449         * tmac/www.tmac: Changes to reflect new suppress nodes.
4450           
4451 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
4453         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
4454         Escape the html_glyph in the buffer.
4455         (str_translate_to_html): Output the unescaped escaped_char.
4456         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
4457         `frame=void', not `frame=none'.  Add `border=0'.
4459 2001-04-12  Werner LEMBERG  <wl@gnu.org>
4461         * PROBLEMS: Add some words on how to avoid wrapper macros.
4463 2001-04-11  Blake McBride  <blake@florida-software.com>
4465         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
4467 2001-04-11  Werner LEMBERG  <wl@gnu.org>
4469         * font/devlbp/Makefile.sub (CLEANADD): Set it.
4470         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
4471         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
4472         * Makefile.sub (DISTCLEANFILES): Here.
4474         * libs/libgroff/new.cc: Include `nonposix.h'.
4475         * win32-diffs: Updated.
4477 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
4479         Added skeleton macro for defunct macros.
4481         Updated documentation.
4483         When inside displays, an empty input line warning should be
4484         suppressed.  If another macro call is put inside a display,
4485         all subsequent empty lines found in that display caused a
4486         warning to be emitted.
4488         * tmac/doc.tmac (doc-defunct-macro): New macro.
4489         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
4490         (doc-restore-global-vars): Fixed typo.
4491         (doc-empty-line): Check the `doc-display-depth' register to
4492         determine whether we are inside display or not.
4494         * tmac/doc-common: Removed `Or' and `Sf' registers.
4495         Moved obsolete `Ds' macro to doc.tmac.
4497         * tmac/groff_mdoc.man: Bump document date.
4498         Document `.Vt' under ``Variable Types''.
4499         Removed documentation for obsolete `.Or' macro.
4501 2001-04-10  Werner LEMBERG  <wl@gnu.org>
4503         * NEWS: Updated.
4504         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
4506 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
4508         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
4509         (usage): Add stream argument. Don't exit.
4510         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
4511         Write --version output to stdout, not stderr.
4512         (usage): Add stream argument. Don't exit.
4513         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
4514         (usage): Add stream argument. Don't exit.
4515         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
4516         constants.
4517         (usage): Add stream argument. Don't exit.
4518         (main): Write --help output to stdout, not stderr.
4519         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
4520         (usage): Add stream argument. Don't exit.
4521         * src/devices/grops/ps.cc (main): Accept --help and --version.
4522         (usage): Add stream argument. Don't exit.
4523         * src/devices/grotty/tty.cc (main): Accept --help and --version.
4524         (usage): Add stream argument. Don't exit.
4525         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
4526         (main): Accept --help and --version.
4527         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
4528         (main): Accept --help and --version.
4529         * src/preproc/html/pre-html.cc (usage): Add stream argument.
4530         (scanArguments): Accept --help and --version.
4531         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
4532         (main): Accept --help and --version.
4533         * src/preproc/refer/refer.cc (main): Accept --help and --version.
4534         (usage): Add stream argument. Don't exit.
4535         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
4536         exit.
4537         (main): Accept --help and --version.
4538         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
4539         (main): Accept --help and --version.
4540         * src/roff/groff/groff.cc (main): Accept --help and --version.
4541         (synopsis): Add stream argument.
4542         (help): Write --help output to stdout, not stderr.
4543         (usage): Add stream argument. Don't exit.
4544         * src/roff/grog/grog.pl: Accept --help and --version.
4545         (help): New sub.
4546         * src/roff/grog/grog.sh: Accept --help and --version.
4547         * src/roff/nroff/nroff.sh: Accept --help and --version.
4548         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
4549         (usage): Add stream argument. Don't exit.
4550         (main): Accept --help and --version.
4551         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
4552         (usage): New function with stream argument, doesn't exit.
4553         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
4554         (usage): New function with stream argument, doesn't exit.
4555         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
4556         (usage): Add stream argument. Don't exit.
4557         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
4558         (main): Accept --help and --version.
4559         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
4560         exit.
4561         (main): Accept --help and --version.
4562         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
4563         (main): Accept --help and --version.
4564         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
4565         (usage): Add stream argument. Don't exit.
4567 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
4569         Fix indentation in SYNOPSIS.
4571         Updated to include changes of latest BSD mdoc version (basically,
4572         the only change is that `.Fn' and `.Fc' put a final semicolon after
4573         a function declaration in the SYNOPSIS section).
4575         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
4576         (doc-in-synopsis-section): New variable.  Updated all related
4577         functions.
4578         (doc-indent-synopsis-active): New register.
4579         (Nd, Fn, Fo): Use it.
4580         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
4581         `.Cd' with long argument line produces indented wrapped lines. 
4582         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
4583         undesirable line break to be output.
4584         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
4585         `.rs'.
4586         (Fn, Fc): Add final `;' to output.
4587         (doc-save-global-vars, doc-restore-global-vars): Updated.
4588         * tmac/doc-common: Remove `Ex' register.
4589         Updated.
4590         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
4591         copyright.
4593 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
4595         * tmac/doc.tmac (Cd): Simplify code.
4596         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
4598 2001-04-06  Werner LEMBERG  <wl@gnu.org>
4600         Implement continuous underlining for nroff mode.  To do that, a new
4601         request in the ditroff language has been added: `x u N' (N is 0
4602         or 1).
4604         \X and \Y are now transparent to end-of-sentence recognition.
4606         * src/include/printer.h (printer): Add `type' parameter to `special'
4607         method.
4608         * src/libs/libdriver/printer.cc (printer::special): Updated.
4609         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
4611         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
4612         specials of type `p'.
4613         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
4614         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
4615         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
4616         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
4617         (glyph::order): New method.
4618         (tty_printer::add_char): Use it.
4619         (tty_printer::special): New method.
4620         (tty_printer::end_page): Implement it.
4622         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
4623         * src/roff/troff/node.cc (special_node::special_node): Add parameter
4624         to set `no_init_string'.
4625         (special_node::tprint_start): Use it.
4626         (special_node::same, special_node::copy): Updated.
4627         (special_node::ends_sentence): New method.
4628         (troff_output_file::start_special): Add parameter to include
4629         inititialization of special conditionally.
4631         * src/roff/troff/env.h (environment): New member `underline_spaces'.
4632         * src/roff/troff/env.cc (do_underline_special): New function.
4633         (environment::set_font): Use it.
4634         (do_underline): Use it.  This was `underline()'.
4635         (underline): Call `do_underline()'.
4636         (continuous_underline): New function which calls `do_underline()'.
4637         (environment::newline): Use `do_underline_special()'.
4638         (init_env_requests): Updated.
4640         * NEWS, man/troff_out.man: Updated.
4642 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
4644         * font/devutf8/R.proto: Fix code of 'shc'.
4646 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
4648         Many fixes.  Diag lists can now be nested also; additionally,
4649         `-compact' and `-offset' are supported.
4651         * tmac/doc.tmac (doc-have-indent): Replaced with ...
4652         (doc-list-have-indent-stackXXX): A new register stack.
4653         (doc-have-diag-list): Removed.
4654         (Bl): Use `doc-list-have-indent-stackXXX'.
4655         (El): Updated.
4656         (doc-diag-list): Use `doc-compact-list-stackXXX'.
4657         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
4658         (doc-set-vertical-and-indent): Ditto.
4659         (doc-next-list-depth): Removed.
4660         (doc-increment-list-stack): Updated.
4661         (doc-decrement-list-stack): Use `doc-list-depth' instead of
4662         `doc-next-list-depth'.
4663         (doc-end-list, doc-end-column-list): Don't use
4664         `doc-increment-list-stack'.
4665         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
4666         (doc-save-global-vars, doc-restore-global-vars): Updated.
4667         * tmac/doc-common: Updated.
4668         * tmac/groff_mdoc.man: Updated.
4669         * NEWS: Fix typo.
4671 2001-04-02  Werner LEMBERG  <wl@gnu.org>
4673         * src/devices/grotty/grotty.man: Fix grammatical error.
4675 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
4677         Remove .Ld from mdoc package; replace it with special handling of
4678         `...'.
4680         * tmac/doc-common: Remove `Ld' register.
4681         Uncomment `doc-volume-ds-*' strings.
4682         Remove `doc-operating-system-default'.
4683         (Os): Updated.
4684         * tmac/doc-syms (Ld): Removed.
4685         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
4686         `...' specially.
4687         * NEWS: Updated.
4689         * tmac/groff_mdoc.man: Many fixes and updates.
4691 2001-03-29  Werner LEMBERG  <wl@gnu.org>
4693         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
4694         Bond <tkb@tkb.mpl.com>.
4695         * tmac/www.tmac: Save compatibility mode.
4697 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
4699         * tmac/groff_mdoc.man: Many fixes.
4701 2001-03-28  Werner LEMBERG  <wl@gnu.org>
4703         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
4704         isn't recognized.
4706 2001-03-27  Werner LEMBERG  <wl@gnu.org>
4708         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
4709         diversion.  This fixes overlong tags.
4711 2001-03-26  Werner LEMBERG  <wl@gnu.org>
4713         * doc/groff.texinfo: Fixed and improved documentation of fonts.
4714         * tmac/doc-syms: Fix error messages.
4715         * tmac/an-old.tmac: Remove incorrect double backslashes.
4717 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
4719         * tmac/Makefile.sub: Strip mdoc.local also
4720         * tmac/strip.sed: Fixed.
4722 2001-03-24  Werner LEMBERG  <wl@gnu.org>
4724         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
4725         selecting the font size.
4726         * tmac/groff_mdoc.man, NEWS: Document it.
4728 2001-03-23  Werner LEMBERG  <wl@gnu.org>
4730         * src/roff/troff/div.cc (save_vertical_space): Add default argument
4731         to `sv' request.
4732         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
4733         argument to restore previous font family.
4734         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
4736         * doc/groff.texinfo: More fixes and additions (mainly for font
4737         manipulating commands).
4739         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
4740         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
4741         * tmac/Makefile.sub, NEWS: Updated.
4743 2001-03-23  Werner LEMBERG  <wl@gnu.org>
4745         Replaced mdoc implementation.  The new version is `state of the
4746         art', using almost all new features of groff 1.17 -- it won't run
4747         with older versions.
4749         * tmac/doc.tmac: Completely rewritten.
4750         * tmac/doc-common: Ditto.
4751         * tmac/doc-nroff: Ditto.
4752         * tmac/doc-ditroff: Ditto.
4753         * tmac/doc-syms: Ditto.
4754         * tmac/mdoc.local: New file.
4755         * tmac/groff_mdoc.samples.man: Replaced with ...
4756         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
4757         * tmac/strip.sed: Updated.
4758         * tmac/Makefile.sub: Updated.
4759         * INSTALL: Updated.
4761         * tmac/groff_man.man: Add `man.local' to the FILES section.
4763 2001-03-22  Werner LEMBERG  <wl@gnu.org>
4765         * doc/groff.texinfo: Added many @noindent.
4766         Replaced @end_Example -> @endExample.
4767         Added info whether registers are r/o.
4768         Many other additions and fixes.
4770 2001-03-21  Werner LEMBERG  <wl@gnu.org>
4772         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
4773         in makeinfo of texinfo 4.0) to be used in @Def* macros.
4774         Improved @Def* macros: Now the exact syntax of request, register,
4775         and escapes is shown.
4776         Added macros for parentheses and brackets to be used in @Def*.
4777         Many fixes and improvements of the documentation.
4779 2001-03-20  Werner LEMBERG  <wl@gnu.org>
4781         * doc/groff.texinfo: Added new index: `st' (for strings).
4782         Added macros @Defstr(x).
4783         Added macro @Example (adding @group).
4784         Other minor improvements.
4786 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4788         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
4789         `rq' for requests.  `fn' is no longer used.
4790         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
4791         Removed @Deffn(x).
4793         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
4794         number with name of man page.
4796 2001-03-19  Larry Kollar  <kollar@alltel.net>
4798         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
4799         consistency.
4801 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4803         * man/groff_font.man: Document `prepro', `postpro', and `print'.
4804         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
4805         * src/devices/grohtml/grohtml.man: Fixing typos.
4807 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
4809         * tmac/s.tmac (@IP): Pass `.ip' html tag.
4810         * tmac/groff_mwww.man: Remove .LINE macro
4811         * tmac/www.tmac (LINE): Add `.ti'.
4813         * src/devices/grohtml/post-html.cc (html_printer): New member
4814         `indent'.
4815         (html_printer::emit_raw): Use it.
4816         (html_printer::do_linelength): Ditto.
4817         (html_printer::do_pageoffset): Ditto.
4818         (html_printer::do_indentation): Ditto.
4819         (html_printer::do_tempindent): Ditto.
4820         (html_printer::do_break): Ditto.
4821         (html_printer::begin_page): Ditto.
4822         (html_printer::do_indentedparagraph): New function.
4823         (html_printer::troff_tag): Handle `.ip'.
4824         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
4825         Add `<td width=...>' handling.
4826         (html_text::do_table): Add parameter.
4827         (html_text::do_indent): Updated.
4828         * src/devices/groohtml/html-text.h: Updated.
4830 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
4832         Introduced simple html tables to implement indentation.
4834         * src/devices/grohtml/html.h (word, word_list): New structures.
4835         (simple_output): Use it.
4836         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
4837         (html_printer): Improve indentation handling.
4838         (html_printer::emit_raw): Set `in_table' element.  Handle
4839         indentation if set.
4840         (html_printer::write_header): Move conditional downwards.
4841         Don't allow whitespace in tags.
4842         (html_printer::do_linelength): Handle line length and indentation
4843         conditionally.
4844         (html_printer::do_pageoffset): Handle indentation conditionally.
4845         (html_printer::do_indentation): Ditto.
4846         (html_printer::do_tempindent): New function member.
4847         (html_printer::do_fill): Take care of indentation.
4848         (html_printer::do_flush): Finish table.
4849         (html_printer::do_links): Ditto.
4850         (html_printer::do_break): New function for handling `.br' and `.ti'.
4851         (html_printer::troff_tag): Use it.
4852         Handle `.ti'.
4853         (html_printer::flush_globs): Fix.
4854         (html_printer::flush_page): Finish table.
4855         (html_printer::html_printer): Fix error message.  Set up
4856         `linelength'.
4857         (html_printer::add_to_sbuf): Remove special handling of character
4858         code 255.
4859         (to_unicode): Remove `stop()'.
4860         (html_printer::write_title): Cleanup.
4861         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
4862         (html_printer::~html_printer): Flush text and end the line.
4863         Use `put_string()'.
4864         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
4865         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
4866         emission of tags.
4867         (html_text::start_tag): Disable newlines.
4868         (html_text::table_is_void): New function.
4869         (html_text::issue_table_begin): Ditto.
4870         (html_text::issue_table_end): Ditto.
4871         (html_text::push_para): Better table handling.
4872         (html_text::do_indent): New function.
4873         (html_text::do_table): Ditto.
4874         (html_text::done_table): Ditto.
4875         (html_text::do_tt): Handle PRE_TAG.
4876         (html_text::is_in_table): New function.
4877         (html_text::check_emit_text): Handle tables.
4878         (html_text::do_emittext): Use `nl()'.
4879         (html_text::do_para): Handle table.
4880         (html_text::remove_def): New function.
4881         * src/devices/grohtml/output.cc (word, word_list): Implement
4882         methods.
4883         (simple_output::end_line): Flush last word.
4884         (simple_output::simple_comment): Ditto.
4885         (simple_output::begin_comment): Recoded.
4886         (simple_output::end_comment): Ditto.
4887         (simple_output::comment_arg): Removed.
4888         (simple_output::check_newline): Improve test and flush last word.
4889         (simple_output::space_or_newline): Improved.
4890         (simple_output::write_newline): Replaced with...
4891         (simple_output::nl): This.
4892         (simple_output::put_raw_char): Flush last word.
4893         (simple_output::check_space): Removed.
4894         (simple_output::put_translated_string): Ditto.
4895         (simple_output::put_string): Simplified.
4896         (simple_output::put_number): Updated.
4897         (simple_output::put_float): Ditto.
4898         (simple_output::put_symbol): Removed.
4899         (simple_output::enable_newlines): Add `check_newline()'.
4900         (simple_output::flush_last_word): New function.
4902         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
4903         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
4905         * tmac/s.tmac (@PP, @IP): Add html conditional code.
4906         * tmac/an-old.tmac (TP): Ditto.
4908 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
4910         * mdate.sh: Make it POSIX compliant.
4912 2001-03-09  Werner LEMBERG  <wl@gnu.org>
4914         Added the `return' request to end a macro immediately.  It simply
4915         pops iterators from the input stack until a macro iterator is found.
4917         * src/roff/troff/input.cc (input_iterator::is_macro,
4918         macro_iterator::is_macro): New member.
4919         (input_return_boundary): New class to signal an immediate return
4920         to while_request().
4921         (input_stack::add_return_boundary, input_stack::is_return_boundary):
4922         New functions.
4923         (input_stack::clear): Use it.
4924         (input_stack::pop_macro): New function.
4925         (while_request): Use `is_return_boundary()'.
4926         (return_macro_request): New function.
4927         (init_input_requests): Use it.
4929         * src/roff/troff/TODO: Updated.
4930         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4932 2001-03-08  Werner LEMBERG  <wl@gnu.org>
4934         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
4935         cleanup.
4937 2001-03-07  Werner LEMBERG  <wl@gnu.org>
4939         Make `\B' more rigid.
4941         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
4942         parameter.
4943         (get_number_rigidly): New function.
4944         * src/roff/troff/input.cc (do_expr_test): Use it.
4945         * src/roff/troff/token.h: Updated.
4947         * src/roff/troff/request.h: Fix typo (init_html_request ->
4948         init_markup_request).
4950 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
4952         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
4953         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
4954         are now `.begin', `.end', `.image'.
4956         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
4957         (html_printer::add_to_sbuf): Changing type of `code' parameter.
4958         Use add_char_to_sbuf().
4959         (to_unicode): New function.
4960         (char_translate_to_html): Changing type of `ch' parameter.
4961         Use `to_unicode()'.
4962         (html_printer::~html_printer): Comment out doctype string.
4963         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
4964         instead of `.html-end'.
4965         (write_start_image): Use `.begin' and `.image' instead of
4966         `.html-begin' and `.html-image'.
4967         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
4968         (html_begin): Renamed to ...
4969         (begin): This.
4970         (html_end): Renamed to ...
4971         (end): This.
4972         (html_image): Renamed to ...
4973         (image): This.
4974         (init_html_requests): Renamed to ...
4975         (init_markup_requests): This.
4976         * tmac/www.tmac: Updated.
4978 2001-02-28  Bram  <bram@avontuur.org>
4980         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
4981         constructor.
4983 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
4985         * doc/meref.me: Fixing some typos.
4987 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4989         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
4990         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
4991         * src/roff/troff/node.h: Updated.
4993 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
4995         * tmac/groff_tmac.man: Fix typo.
4997 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4999         Fixing a bug which prevented proper end-of-sentence recognition
5000         between an `unformatted' box and the following text.  As a
5001         consequence, vertical line distances are no longer preserved in
5002         boxes after a call to `.unformat' -- because boxes aren't
5003         line-oriented (contrary to diversions), this doesn't make sense
5004         anyway.
5006         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
5007         value.
5008         (vertical_size_node::set_unformat_flag): New method.
5009         * src/roff/troff/node.hh: Updated.
5010         * src/roff/troff/input.cc (word_space_node::reread,
5011         hmotion_node::reread): Reset `unformat' flag after usage.
5012         (unformat_macro): Append only if `set_unformat_flag()' returns
5013         non-zero.
5014         * src/roff/troff/troff.man: Updated.
5016 2001-02-15  Werner LEMBERG  <wl@gnu.org>
5018         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
5019         documentation of `asciify' and `unformat' requests.
5021 2001-02-13  Werner LEMBERG  <wl@gnu.org>
5023         Redesigned the `unformat' request.  It is no longer connected with
5024         `asciify' but rather uses new `reread()' methods if the `unformat'
5025         flag is set.  Additionally, the handling of space characters after
5026         unformatting has been fixed so that they retain their width.
5028         * src/roff/troff/node.h (width_list): New structure to store
5029         original widths of spaces.
5030         (node): Added `unformat' member.
5031         Replaced `num_spaces' variable with `orig_width' list.
5032         * src/roff/troff/node.cc (*node::asciify,
5033         asciify_reverse_node_list): Removed `unformat_only' flag and related
5034         code.
5035         (word_space_node::asciify, word_space_node::word_space_node): Use
5036         `orig_width'.
5037         (word_space_node::~word_space_node): New destructor.
5038         (word_space_node::copy): Updated to handle `orig_width'.
5039         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
5040         (*node::merge_space): Update `orig_width' list if necessary.
5041         (*node::set_unformat_flag): New methods to set the `unformat' flag.
5042         * src/roff/troff/enc.cc (environment::space_newline): Use
5043         `width_list'.
5044         (environment::space): Added method to handle space width and
5045         sentence space width as parameters.  Use `width_list'.
5046         (environment::make_tab_node): Updated.
5047         * src/roff/troff/env.h: Updated.
5048         * src/roff/troff/input.cc (word_space_node::reread,
5049         unbreakable_space_node::reread, hmotion_node::reread): New methods
5050         to handle nodes specially if `unformat' flag is set.
5051         (do_asciify_macro): Renamed back to ...
5052         (asciify_macro): This.
5053         (unformat_macro): New implementation to simply set the `unformat'
5054         flag.
5056         * MORE.STUFF: Added more info about deroff.
5058 2001-02-08  Werner LEMBERG  <wl@gnu.org>
5060         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
5061         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
5062         and `add_self()' methods to avoid hyphenation.  For example, the
5063         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
5064         soft hyphen after `foo'.  Now the hyphen list is correctly
5065         `foo<ignore><ignore>bar'.
5067 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
5069         * tmac/groff_tmac.man: Fix `BIR' macro.
5071 2001-02-04  Werner LEMBERG  <wl@gnu.org>
5073         A new escape sequence `\:', inserting a zero-width break point.
5075         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
5076         * src/roff/troff/input.cc (get_copy, token::next, asciify):
5077         Implement it.
5078         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
5079         method.
5080         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
5081         and `asciify()' methods.
5082         * src/roff/troff/node.cc (space_node::space_node): Updated.
5083         (space_node::asciify): Handle `was_escape_colon'.
5084         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5086         Handle `\~' similar to other comparable requests.
5088         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
5089         label.
5090         (token::next): Move creation of an unbreakable_space_node to...
5091         (token::add_to_node_list): Here.
5093         Fix a bug which sometimes prevented hyphenation of words connected
5094         with `\~' or `\ ' (and other escape sequences handled as
5095         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
5096         (after a call to the `unformat' request).
5098         * src/roff/troff/env.h (environment::possibly_break_line,
5099         environment::hyphenate_line): Introducing `start_here' parameter.
5100         * src/roff/troff/env.cc (environment::space_newline,
5101         environment::space): Use it.
5102         (environment::possibly_break_line, environment::hyphenate_line):
5103         Implement it.
5104         * src/roff/troff/input.cc (process_input_stack): Use it.
5105         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
5106         space_char_hmotion_node, overstrike_node): Add
5107         `get_hyphenation_type()' method.
5108         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
5109         if `unformat_only' is active.
5111 2001-01-30  Werner LEMBERG  <wl@gnu.org>
5113         Implemented new read-only number register `.linetabs' which
5114         returns 1 if in line-tabs mode, 0 otherwise.
5116         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
5117         * src/roff/troff/env.cc (get_line_tabs): New function.
5118         (init_env_requests): Use it.
5119         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5121         * VERSION, REVISION: Changing to 1.17.0.
5123 2001-01-28  Werner LEMBERG  <wl@gnu.org>
5125         Fixed a bug which prevented hyphenation of words which are finished
5126         with `\)'.
5128         * src/roff/troff/token.h (token): Add enum type
5129         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
5130         * src/roff/troff/input.cc (token::next, token::description,
5131         get_line_arg, token::add_to_node_list, token::process): Use it.
5133 2001-01-27  Werner LEMBERG  <wl@gnu.org>
5135         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
5136         * src/roff/troff/div.cc (do_divert): Use it.
5138         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
5140 2001-01-25  Werner LEMBERG  <wl@gnu.org>
5142         Adding the `linetabs' request.  If set, tab distances are not
5143         computed relative to the input line but relative to the output line.
5145         * src/roff/troff/env.h (environment): New member `line_tabs'.
5146         * src/roff/troff/env.cc (line_tabs_request): Implement request.
5147         (environment::environment, environment::copy): Updated.
5148         (environment::distance_to_next_tab): Use `line_tabs'.
5149         (init_env_requests): Register request.
5150         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
5151         fixes.
5153 2001-01-24  Werner LEMBERG  <wl@gnu.org>
5155         Introducing a new read-only register `.int' which is set to a
5156         positive value if the last output line is interrupted (i.e., if it
5157         contains `\c').
5159         * src/roff/troff/env.cc (init_env_requests): Add it.
5160         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5162 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
5164         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
5165         * src/preproc/html/pre-html.cc (findPrefix): New function which
5166         generates the troff executable name via the system prefix.
5167         * src/preproc/eqn/main.cc: Modified warning message.
5169 2001-01-23  Werner LEMBERG  <wl@gnu.org>
5171         troff's `box' and `boxa' requests didn't preserve temporary
5172         indentation.
5174         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
5175         `saved_target_text_length' members.
5176         * src/roff/troff/div.cc (do_divert): Use them.
5178         Tabs (but not yet leaders and fields) are now handled correctly by
5179         `asciify' request.
5181         * node.h (hmotion_node): Add field `was_tab'.
5182         * env.cc (environment::make_tab_node): Set it.
5183         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
5185         Added new request `unformat' which will, contrary to `asciify',
5186         preserve font information after unformatting (i.e., only nodes
5187         dealing with horizontal space are converted back to input
5188         characters).
5190         * input.cc (asciify_macro): Renamed to ...
5191         (do_asciify_macro): this, having a new parameter `unformat_only'.
5192         (asciify_macro, unformat_macro): New; using do_asciify_macro.
5193         (init_input_requests): Added `unformat'.
5194         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
5195         parameter to control asciification process.
5196         * node.h (*_node::asciify): Ditto.
5197         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5199 2001-01-20  Werner LEMBERG  <wl@gnu.org>
5201         * doc/groff.texinfo: Minor improvement of `.in' documentation.
5203 2001-01-18  Werner LEMBERG  <wl@gnu.org>
5205         * tmac/ps.tmac: Remove call of psold.tmac.
5206         * tmac/psold.tmac: Comment updated.
5207         * tmac/psnew.tmac: Removed since no longer needed.
5208         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
5210         * font/devutf8/R.proto: Adding `shc' glyph.
5211         * font/devutf8/NOTES: Updated.
5213         * test-groff: Updated.
5215 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5217         First cut of the new html device driver.  Changes to pre-html and
5218         the new grohtml are too numerous to be documented here.
5220         Stuff related to `html' has been renamed to `html-old' and `html2'
5221         stuff has been renamed to `html' (including directories).  The new
5222         html device driver is therefore invoked as `-Thtml'.
5224         Added new `\O' escape to suppress output (needed by html driver).
5226         Added functions and code to pass info about input-level commands
5227         (`.in', `.fl', etc.) to html driver.
5229         Three new functions (.html-begin, .html-end, and .html-image) for
5230         better html handling: `html-begin' will execute the remaining line
5231         if at the outermost nesting level, increasing an internal counter.
5232         `html-end' does the same but decreases the internal counter.
5233         `html_image' puts its arguments into a special node (suppress_node)
5234         to define an image region.
5236         The `output' request has been removed.
5238         * tmac/html-tags.tmac: Removed.
5239         * tmac/arkup.tmac: Updated and renamed to ...
5240         * tmac/www.tmac: New file.
5241         * tmac/markup.tmac Updated and renamed to ...
5242         * tmac/mwww.tmac: New file.
5243         * tmac/Makefile.sub: Updated.
5244         * tmac/an-old.tmac: Updated.
5245         * tmac/eqnrc: Updated.
5246         * tmac/groff_man.man
5247         * tmac/groff_markup.man: Updated and renamed to ...
5248         * tmac/groff_mwww.man: New file.
5249         * tmac/groff_tmac.man: Updated.
5250         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
5251         * tmac/html.tmac: Updated and renamed from html2.tmac.
5252         * tmac/pspic.tmac: Updated html support.
5253         * tmac/s.tmac: Added html output support.
5254         * tmac/troffrc, tmac/troffrc-end: Updated.
5256         * Makefile.in, doc/Makefile: Updated.
5257         * doc/groff.texinfo: Added info about new `\O' escape.
5258         * doc/homepage.ms: Use `MAILTO' macro.
5260         * font/devhtml/DESC.proto: Add `C' font.
5261         * font/devhtml/Makefile.sub: Updated.
5262         * font/devhtml/R.proto: Minor fixes.
5263         * font/devhtml-old/Makefile.sub: Updated.
5265         * src/devices/grohtml-old/Makefile.sub: Updated.
5267         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
5268         method.
5269         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
5270         graphic_start): Add `inline' parameter.  Update.
5271         (html_end_suppress, graphic_end): Update.
5273         * src/include/html-strings.h: New file.
5274         * src/include/htmlindicate.h: Comments updated.
5275         * src/include/printer.h: Updated.
5277         * src/preproc/eqn/main.cc (do_file, main): Updated.
5278         * src/preproc/pic/troff.cc (troff_output::start_picture,
5279         troff_output::finish_picture): Updated.
5280         * src/preproc/tbl/main.cc (process_input_file): Updated.
5282         * src/roff/groff/groff.cc (main): Updated.
5283         Pass device arguments to predrivers also.
5284         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
5285         * src/roff/troff/env.h (environment): Updated.
5286         New elements `need_eol' and `ignore_next_eol' (for html output).
5287         * src/roff/troff/env.cc (environment::environment): Add initializers
5288         for `need_eol' and `ignore_next_eol'.
5289         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
5290         functions.
5291         (point_size, fill, no_fill, center, right_justify, line_length,
5292         indent, temporary_indent, break_request, handle_tab): Use
5293         `add_html_tag()'.
5294         (set_tabs): Use `add_html_tag_tabs()'.
5295         (environment::add_html_tag): Updated.
5296         (environment::do_break): Updated.
5297         * src/roff/troff/div.cc (space_request, flush_output): Use
5298         `environment::add_html_tag()'.
5299         * src/roff/troff/input.cc: Updated.
5300         New variable `html_level' to indicate nested `html-begin' requests.
5301         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
5302         (non_interpreted_char_node, token_node, non_interpreted_node): Add
5303         `force_tprint()' method.
5304         (token::next): Handle `\O'.
5305         (do_suppress): Implement it.
5306         (html_begin, html_end, html_image): New functions.
5307         (init_output_requests): Renamed to ...
5308         (init_html_requests): this.
5309         (main): Use it.
5310         (macro::append_str, macro::append_unsigned, macro::append_int): New
5311         methods.
5312         New variable `output_low_mark_miny' to limit minimal value of y.
5313         (reset_output_registers): Use it.
5314         (output_request): Removed.
5315         (get_output_registers): New function.
5316         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
5317         (*_node): Added `force_tprint()' if necessary.
5318         (special_node): New elements `tf' and `get_tfont()'.
5319         (suppress_node): New class.
5320         * src/roff/troff/node.cc:
5321         New global variables `image_no' and `suppress_start_page'.
5322         (real_output_file): New method `is_on()'.
5323         (troff_output_file): New method `start_special(tfont)'.
5324         (troff_output_file::really_print_line): Use `tprint' conditionally.
5325         (real_output_file::print_line): Updated.
5326         (real_output_file::on): Updated.
5327         (*_node): Added `force_tprint()'.
5328         (special_node::special_node): Initializer updated.
5329         (special_node::same, special_node::copy, special_node::tprint_start):
5330         Updated.
5331         (get_reg_int, get_reg_str): New functions.
5332         (suppress_node::*): New methods.
5333         New global variables last_position, last_image_filename;
5334         (min): New inline function.
5335         * src/roff/troff/reg.h, src/roff/troff/request.h,
5336         src/roff/troff/troff.h: Updated.
5338 2001-01-13  Werner LEMBERG  <wl@gnu.org>
5340         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
5341         documentation of `asciify' request.
5343 2001-01-12  Werner LEMBERG  <wl@gnu.org>
5345         * src/roff/troff/input.cc: Move definition of special characters
5346         like `ESCAPE_TILDE' to ...
5347         * src/roff/troff/input.h: New file.
5348         * src/roff/troff/Makefile.sub (HDRS): Add it.
5350         Extending the .asciify request to `unformat' space characters also.
5352         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
5353         to count input space characters.
5354         Update constructors to take care of it.
5355         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
5356         `ESCAPE_SPACE' instead of normal space.
5357         (word_space_node::asciify): New method.
5358         (unbreakable_space_node::asciify): New method.
5359         (word_space_node::merge_space): New method.
5360         * src/roff/troff/env.cc (environment::space_newline,
5361         environment::space): Add code to initialize `num_spaces' (using the
5362         constructor of `word_space_node').
5363         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5364         Document it.
5366 2001-01-09  Werner LEMBERG  <wl@gnu.org>
5368         * man/groff_char.man: Use table header traps only conditionally.
5370 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
5372         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
5374 2001-01-08  Werner LEMBERG  <wl@gnu.org>
5376         Introducing the `box' and `boxa' requests which are similar to
5377         `di' resp. `da' but omitting a partially filled line (which is
5378         restored after ending the diversion).
5380         * src/roff/troff/div.h (diversion): Add elements to save partially
5381         filled line.
5382         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
5383         partially filled line.
5384         (divert, divert_append): Updated.
5385         (box, box_append): New functions.
5386         (init_div_requests): Use them.
5387         * src/roff/troff/env.h (environment): do_divert() is now a friend.
5388         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5390         * doc/groff.texinfo: Fix documentation of `lf' request.
5392 2000-12-25  Werner LEMBERG  <wl@gnu.org>
5394         * src/roff/troff/troff.man, NEWS: Document `writem' request.
5396 2000-12-21  Werner LEMBERG  <wl@gnu.org>
5398         Ignore `ss' request if in compatibility mode.
5400         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
5401         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
5402         * src/roff/troff/env.cc (space_size): Use it.
5404         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
5405         `ss' request in nroff mode.
5407         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
5408         changes.
5410 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
5412         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
5414 2000-12-13  Werner LEMBERG  <wl@gnu.org>
5416         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
5417         * src/preproc/eqn/neqn.man: Small fixes and additions.
5419 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
5421         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
5422         Fixing typo.
5424         * src/preproc/eqn/neqn.man: New file.
5426         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
5427         negative' warning.
5429         * tmac/e.tmac: Add `T&' macro.
5430         Fix `indent cannot be negative' warning.
5431         * tmac/s.tmac: Fix `indent cannot be negative' warning.
5433 2000-12-07  Werner LEMBERG  <wl@gnu.org>
5435         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
5437 2000-12-06  Werner LEMBERG  <wl@gnu.org>
5439         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
5440         `alloca' symbol .
5442         * MORE.STUFF: Added info about deroff for djgpp.
5444         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
5445         documentation of -rcR switch.
5447 2000-12-03  Werner LEMBERG  <wl@gnu.org>
5449         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
5450         if -rcR=1 (which is now the default in nroff mode), a single, very
5451         long page is created instead of multiple pages: All `ne' and `wh'
5452         requests are put into conditionals; a new macro `an-end' is added to
5453         be called with `em'.
5455         Some other minor cleanups.
5457         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
5459 2000-12-02  Werner LEMBERG  <wl@gnu.org>
5461         Fixing a bug which prevented hyphenation in words followed
5462         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
5464         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
5465         Adding possibly_break_line().
5466         * src/roff/troff/env.h (environment): Make possibly_break_line()
5467         public.
5469         Make `\~' usable in .tr request.
5471         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
5472         (token): Add stretchable_space().
5473         * src/roff/troff/input.cc (token::next, token::delimiter,
5474         token::description, process_input_stack, do_translate,
5475         add_to_node_list, token::process): Use it.
5476         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
5477         for adjusting the space.
5478         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
5479         for stretchable space.
5480         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
5481         (make_node): Add code for stretchable space.
5482         * src/roff/troff/env.cc (environment::add_char): Use it.
5483         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
5484         (get_copy, token::next, transparent_translate, asciify): Use it.
5486         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
5487         doc/groff.texinfo: Updated.
5488         * man/groff.man: Small reorderings.
5490 2000-11-23  Werner LEMBERG  <wl@gnu.org>
5492         * NEWS: Fixes.
5493         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
5494         option.
5495         * src/roff/troff/input.cc (main): Add `config_macro_path' and
5496         `safer_macro_path' to -M option.
5497         * src/roff/troff/troff.man: Fixes.
5499 2000-11-22  Werner LEMBERG  <wl@gnu.org>
5501         Use safer path (except for config files) if -U isn't specified.  Add
5502         a special macro path (without home and current directory) for config
5503         files.  Add home directory to unsafe path for consistency.  Don't
5504         include the home directory in the font path.
5506         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
5507         `macro_path'.
5508         * src/include/macropath.h: Add `config_macrp_path'.
5509         * src/libs/libgroff/fontfile.cc: Fix font path.
5510         * src/roff/troff/input.cc (process_startup_file): Use
5511         `config_macro_path'.
5512         (main): Select unsafe path if -U is given.
5514         * src/preproc/eqn/main.cc (main): Fixing search path for
5515         configuration file.
5516         * src/preproc/eqn/eqn.man: Updated.
5518         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
5519         Updated.
5521         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
5522         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
5523         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5524         src/devices/grotty/grotty.man: Updated.
5526         * Makefile.in: Fix comments.
5528 2000-11-17  Werner LEMBERG  <wl@gnu.org>
5530         * tmac/safer.tmac: Empty file added (again) for compatibility
5531         reasons.
5532         * tmac/Makefile.sub: Updated.
5534 2000-11-16  Werner LEMBERG  <wl@gnu.org>
5536         * src/devices/grodvi/dvi.cc (main),
5537         src/devices/grohtml2/post-html.cc (main),
5538         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5539         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5540         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5541         (main), src/preproc/html2/pre-html.cc (main),
5542         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5543         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5544         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5545         (main), src/utils/hpftodit/hpftodit.cc (main),
5546         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
5547         (main), src/utils/lookbib/lookbib.cc (main),
5548         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
5549         (main): Use stdout for -v.
5550         * src/roff/groff/groff.cc (run_commands),
5551         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
5552         to make direct printing to stdout possible.
5553         * src/roff/groff/pipeline.h: Updated.
5555         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
5556         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
5557         * src/utils/afmtodit/afmtodit.man: Updated.
5559         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
5560         (version): New function.
5561         (usage): Updated.
5562         * src/utils/addftinfo/addftinfo.man: Updated.
5564         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
5565         Fixing copyright dates.
5567         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
5568         replacing it.
5570         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
5571         version_string.
5573         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
5575 2000-11-15  Werner LEMBERG  <wl@gnu.org>
5577         In all programs, make -v return immediately with exit status 0 to
5578         be compliant with the GNU standard.
5580         * src/devices/grodvi/dvi.cc (main),
5581         src/devices/grohtml2/post-html.cc (main),
5582         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5583         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5584         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5585         (main), src/preproc/html2/pre-html.cc (main),
5586         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5587         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5588         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5589         (main): Implement it.
5590         * NEWS: Updated.
5592         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
5593         and postprocessors to the -v option.
5595         * src/roff/grog/grog.pl: Implement -v.
5596         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
5597         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5599         * src/roff/nroff/nroff.sh: Implement -v.
5600         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
5601         * src/roff/nroff/nroff.man: Updated.
5602         
5603         * src/preproc/eqn/main.cc (main): Fix comment typo.
5605         * MORE.STUFF: Added info about djgpp port of grap.
5607 2000-11-14  Werner LEMBERG  <wl@gnu.org>
5609         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
5610         mode (or rather, implemented non-compatibility mode).
5611         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5613         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
5614         replacing it -- we don't find gxditview otherwise.
5615         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
5617         * src/preproc/pic/depend: Removed.  Unnecessary.
5619         Implemented dummy keyword `solid' in pic for compatibility with
5620         AT&T pic.
5622         * lex.cc (lookup_keyword): Added `solid'.
5623         * pic.y: Added SOLID with dummy rule.
5624         * pic.cc, pic_tab.h: Regenerated.
5625         * doc/pic.ms: Updated.
5627 2000-11-13  Werner LEMBERG  <wl@gnu.org>
5629         For security reasons, don't use the current directory but the home
5630         directory while searching and scanning troffrc and troffrc-end.
5631         Similarly, replace the current directory with the home directory
5632         in the font path.
5634         * Makefile.in (fontpath, tmacpath): Remove current directory.
5636         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
5637         two parameters `add_home' and `add_current'.
5638         (search_path::~search_path, search_path::command_line_dir,
5639         search_path::open_file): Remove tests for `dirs' being zero.
5640         * src/include/searchpath.h: Adjust.
5641         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
5642         `safer_macro_path'.
5643         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
5645         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
5646         * src/roff/troff/input.cc: Use `mac_path', initialized with
5647         `macro_path'.
5648         (process_startup_file): Set `mac_path' to `safer_macro_path'.
5649         * src/roff/troff/env.cc: Use `mac_path'.
5651         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
5653         * NEWS, man/roff.man, src/roff/troff/troff.man,
5654         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
5655         Updated.
5657 2000-11-12  Werner LEMBERG  <wl@gnu.org>
5659         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
5661         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
5662         * configure.in: Fix typo in comment.
5663         * configure: Regenerated.
5665         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
5666         copyright dates.
5668 2000-11-08  Werner LEMBERG  <wl@gnu.org>
5670         Add system tmac directory (/usr/local/lib/groff/site-tmac).
5672         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
5673         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
5674         $(systemtmacdir).
5675         Use @libdir@.
5676         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
5677         * tmac/Makefile.sub (install_data): Create
5678         $(systemtmacdir) and $(localtmacdir).
5679         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
5680         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
5681         NEWS, doc/groff.texinfo: Updated and minor fixes.
5683         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
5684         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
5685         $(systemtmacdir) since the wrapper files are platform-dependent.
5687 2000-11-01  Werner LEMBERG  <wl@gnu.org>
5689         * doc/groff.texinfo: Fix typo.
5691 2000-10-26  Werner LEMBERG  <wl@gnu.org>
5693         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
5694           tmac.doc.old -> doc-old.tmac
5695           tmac.an.old  -> an-old.tmac
5697         * tmac/tmac.*: Moved to ...
5698         * tmac/*.tmac: this.
5699         * tmac/man.local: Fix comment.
5700         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
5701         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
5702         Added some `FILES' sections.  More use of @...@ directives.  Other
5703         minor updates.
5704         * arch/djgpp/README, font/devutf8/NOTES: Updated.
5705         * doc/homepage.ms, doc/groff.texinfo: Updated.
5706         * man/groff.man, man/roff.man: Updated.
5707         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
5708         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5709         src/devices/grotty/grotty.man: Updated.
5710         * src/preproc/pic/pic.man: Updated.
5711         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
5712         instead of -mdoc.old.
5713         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
5714         * src/roff/nroff/nroff.man: Updated.
5715         * NEWS: Updated.
5717         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
5719         * tmac/mm.diff: Removed -- it has no use now since the mm package
5720         is part of groff.
5722         * tmac/*: Removed trailing spaces.
5724         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
5725         the tmac subdirectory also).
5727         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
5728         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
5729         stuff since it is no longer needed.
5731         * README, PROBLEMS: Updated.
5733 2000-10-25  Werner LEMBERG  <wl@gnu.org>
5735         Invert current behaviour: Search first FOOBAR.tmac, then
5736         tmac.FOOBAR.
5738         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
5739         (open_mac_file, macro_source): Implement it.
5740         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
5741         doc/groff.texinfo, NEWS: Document it.
5743         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
5744         Small documentation improvements.
5746         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
5747         subdirectory also).
5749         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
5751 2000-10-24  Werner LEMBERG  <wl@gnu.org>
5753         Add local tmac directory (groff/site-tmac).
5755         * Makefile.in: Add $(localtmacdir).
5756         (uninstall_dirs): Add $(localtmacdir).
5757         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
5758         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
5759         in $(localtmacdir).  Create $(localtmacdir).
5760         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
5761         Updated and minor fixes.
5763         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
5765         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
5767 2000-10-23  Werner LEMBERG  <wl@gnu.org>
5769         Move hyphen.us to tmac directory.
5771         * src/roff/troff/hyphen.us: Removed.
5772         * src/tmac/hyphen.us: Added.
5773         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
5775         Change installation structure for data files from .../groff/... to
5776         .../groff/<version><revision>/... to be conform with other GNU
5777         programs.
5779         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
5780         doc/Makefile: Implement it.
5781         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
5782         * configure: Updated.
5783         * arch/djgpp/README, font/devutf8/NOTES: Use it.
5784         * NEWS: Document it.
5785         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
5786         @MACRODIR@ instead of hard-coded directories.
5788 2000-10-22  Werner LEMBERG  <wl@gnu.org>
5790         Implement $GROFF_BIN_PATH environment variable (which defaults to
5791         $bindir) used for child programs of groff and similar wrappers.
5793         * gendefs.sh: Improve documentation.
5794         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
5795         src/preproc/eqn/Makefile.sub (neqn),
5796         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
5797         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
5798         $GROFF_BIN_PATH.
5799         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
5800         $GROFF_PATH__ (the latter for communication with troff).
5801         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
5802         set.
5803         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
5804         doc/groff.texinfo: Document it.
5806         * doc/groff.texinfo: Improve documentation of troff's -a option.
5808 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
5810         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
5811         non-intrusive eol marker.
5812         (troff_output_file::determine_line_limits): New function.
5813         (troff_output_file::draw): Use it.
5814         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
5815         output_pending_lines() instead of output_line().
5816         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
5817         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
5818         createImage): Small fixes.
5819         
5820 2000-10-14  Werner LEMBERG  <wl@gnu.org>
5822         Replace tmac.safer with a real secure solution.
5824         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
5825         system_request, pipe_output): Disable requests if in safer mode.
5826         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
5827         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
5828         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
5829         doc/groff.texinfo, src/roff/groff/groff.man,
5830         src/roff/troff/troff.man, arch/djgpp/README: Updated.
5832         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
5833         (resource_manager::output_prolog): Replace setenv() with putenv().
5835 2000-10-09  Werner LEMBERG  <wl@gnu.org>
5837         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
5838         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
5839         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
5840         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
5841         compilation errors with some compilers.  It seems that this code
5842         is no longer necessary -- if yes, it is easy to add some #ifdef's
5843         for that particular old-fashioned compiler.
5845         * MORE.STUFF: Added info about Meta-tbl.
5847         * doc/groff.texinfo: Added more info about `.if "..."..."'.
5849 2000-10-07  Werner LEMBERG  <wl@gnu.org>
5851         Adding a new escape sequence \B'...': If the string between
5852         the delimiters is a valid numeric expression, return the character
5853         `1', and `0' otherwise.  This is an analogon to \A.
5855         * src/roff/troff/input.cc (do_expr_test): Implement it.
5856         (token::next): Use it.
5857         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
5859         * tmac/tmac.trace: Made independent from escape character.
5861 2000-10-06  Werner LEMBERG  <wl@gnu.org>
5863         Adding a new request .dei: define indirect.  The first and second
5864         parameter of .dei are taken from string registers instead directly;
5865         this very special request is needed to make tmac.trace independent
5866         from the escape character (which might even be disabled).
5868         * src/roff/troff/input.cc (do_define_macro): Implement it.
5869         (define_macro_indirect): New function.
5870         (init_input_requests): Use it.
5872         Adding two requests .ecs and .ecr: Save and restore the escape
5873         character.  These two requests are needed to make tmac.trace
5874         independent from the escape character (which might even be
5875         disabled).
5877         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
5878         Implement it.
5879         (init_input_requests): Use it.
5881         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5883 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
5885         Adding a new option -P and new environment variable GROPS_PROLOGUE
5886         to grops, selecting a different prologue file (minor modifications
5887         by WL).
5889         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
5890         src/devices/grops/ps.cc (main): Implement it.
5891         * src/devices/grops/grops.man, NEWS: Document it.
5893 2000-09-22  Werner LEMBERG  <wl@gnu.org>
5895         * INSTALL: Add info about selecting paper format.
5897 2000-09-21  Werner LEMBERG  <wl@gnu.org>
5899         * src/roff/troff/input.cc (main): Fixing compiler warning.
5900         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
5901         strings.h from the former to the latter.
5902         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
5903         stuff from the former to the latter.
5905 2000-09-11  Werner LEMBERG  <wl@gnu.org>
5907         Implementing two new requests .tm1 and .tmc: The former is similar
5908         to .tm but can output leading spaces; its syntax is similar to
5909         defining a string, i.e., a `"' can be used to mark the beginning of
5910         the string to be written to stderr: `.tm1 " test'.  The latter is
5911         similar to .tm1 but doesn't write out a final newline character.
5913         * src/roff/troff/input.cc (terminal1, terminal_continue,
5914         do_terminal): New functions.
5915         (init_input_requests): Use them.
5916         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5918 2000-09-09  Werner LEMBERG  <wl@gnu.org>
5920         * tmac/groff_mdoc.samples.man: Small fixes.
5922 2000-09-08  Werner LEMBERG  <wl@gnu.org>
5924         * tmac/groff_mdoc.man: Fixing typo.
5926 2000-09-02  Werner LEMBERG  <wl@gnu.org>
5928         Implementing a .nop request which does nothing.
5930         * src/roff/troff/input.cc (nop_request): New function.
5931         (init_input_requests): Use it.
5932         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5934 2000-09-01  Werner LEMBERG  <wl@gnu.org>
5936         * doc/groff.texinfo: Added some comments.
5938 2000-08-30  Werner LEMBERG  <wl@gnu.org>
5940         * src/roff/troff/TODO: Updated.
5942 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5944         * doc/groff.texinfo: Fix comment how to compile the DVI file.
5946 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5948         * font/devps/generate/Makefile (SHELL): Define explicitly to
5949         "/bin/sh", for non-Unix platforms.
5950         (extraclean): Use a more portable "" quoting instead of a
5951         backslash (which doesn't work on DOS/Windows).
5952         
5953         * font/devlj4/generate/Makefile (extraclean): Ditto.
5955         * font/devdvi/generate/Makefile (extraclean): Ditto.
5957 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5959         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
5960         src/roff/troff/troff.man: Document Eli's latest changes.
5962 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5964         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
5965         macro file names of the form NAME.tmac as well as tmac.NAME.
5967 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5969         * src/include/posix.h: Remove definition of FILENAME_MAX.
5971         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
5972         `sys_fatal' and `stop' function().
5974         * test-groff: Updated.
5976 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
5978         Added the new troff command .output <arg> to suppress output (while
5979         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
5980         registers (for passing the output dimensions to the output device).
5982         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
5983         parameter.
5984         * src/roff/troff/node.h, src/roff/troff/node.cc
5985         (troff_output_file::really_print_line,
5986         ascii_output_file::really_print_line,
5987         supress_output_file::really_print_line): Use `width' parameter.
5988         (troff_output_file::really_on, troff_output_file::really_off,
5989         output_file::on, output_file::off, real_output_file::on,
5990         real_output_file::off, real_output_file::really_on,
5991         real_output_file::really_off): New functions.
5992         (real_output_file:public output_file): New variable `output_on'.
5993         (real_output_file::begin_page, real_output_file::copy_file,
5994         real_output_file::transparent_char, real_output_file::print_line):
5995         Use it.
5996         (real_output_file::print_line): Use check_output_limits.
5997         * src/roff/troff/reg.h, src/roff/troff/request.h,
5998         src/roff/troff/input.cc (assign_registers): New function to remove
5999         two `goto's.
6000         (do_ps_file): Use it.
6001         (check_output_limits, reset_output_registers, output_request,
6002         init_output_requests): New functions.
6003         (init_input_requests): Updated.
6005         Added new grohtml2 device and html2 preprocessor (coding
6006         not yet finished) which will eventually replace grohtml.
6008         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
6009         Updated.
6010         * src/include/htmlindicate.h, src/include/htmlindicate
6011         (html_begin_suppress, html_end_suppress): New functions.
6012         * src/preproc/tbl/main.cc: Use it.
6013         * src/roff/groff/groff.cc: Add support for html2 device (which will
6014         automatically invoke the html2 preprocessor).
6015         * src/roff/troff/input.cc (is_html2): New variable.
6016         * src/roff/troff/troff.h, src/roff/troff/env.h,
6017         src/roff/troff/env.cc (environment::add_html_tag): New function
6018         (uses `is_html2').
6019         (environment::do_break): Use it.
6020         * font/devhtml2/*: New files.
6021         * src/devices/grohtml2: New device.
6022         * src/preproc/html2: New preprocessor.
6023         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
6025 2000-08-23  Werner LEMBERG  <wl@gnu.org>
6027         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
6029 2000-08-22  Werner LEMBERG  <wl@gnu.org>
6031         * src/include/lib.h: Provide a fix for IRIX to not include
6032         groff-getopt.h.
6034 2000-08-18  Werner LEMBERG  <wl@gnu.org>
6036         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
6037         since some non-GNU sed programs can't handle null regexps.
6038         * configure, src/preproc/eqn/Makefile.sub,
6039         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
6041         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
6042         bug (string.h and strings.h are both needed according to latest
6043         POSIX standard).
6045         * MORE.STUFF: Added info about unroff and troffcvt.
6047 2000-08-08  Werner LEMBERG  <wl@gnu.org>
6049         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
6050         used before -ms.
6052         * tmac/tmac.man.old: Remove unused number register.
6054         * tmac.doc: Minor documentation fix.
6056 2000-08-07  Paul Eggert  <eggert@twinsun.com>
6058         * src/roff/groff/pipeline.c (is_system_shell):
6059         Fix typo: "monocased_shell" no longer exists.
6061 2000-08-07  Paul Eggert  <eggert@twinsun.com>
6063         Remove FILENAME_MAX limits.
6065         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
6066         that the argument length is less than FILENAME_MAX.
6067         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
6068         Use struct hack to allocate and free file name.
6069         (struct xtmpfile_list): fname is now part of the structure,
6070         not a pointer to another string.
6072 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
6074         * src/include/posix.h: Add a default value for FILENAME_MAX.
6076 2000-08-06  Paul Eggert  <eggert@twinsun.com>
6078         Add support for new BSD-style man pages (with ".Dd" instead of
6079         ".TH"), so that "groff -man" understands both styles, even
6080         when running "groff -man" on a host whose system man page
6081         macros don't support ".Dd".
6083         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
6084         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
6085         in case the system man macros don't define Dd or TH.
6087         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
6088         * tmac/tmac.an: New one-line file.
6089         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
6091 2000-08-06  Werner LEMBERG  <wl@gnu.org>
6093         * src/roff/troff/troff.man: Fixing typos.
6095 Version 1.16.1 released
6096 =======================
6098 2000-07-31  Werner LEMBERG  <wl@gnu.org>
6100         Preparing release 1.16.1.
6102         * REVISION: Revision number set to 1.
6103         * MORE.STUFF: Added info about port to DOS.
6104         * NEWS, win32-diffs: Updated.
6106         * src/include/nonposix.h: Remove first line -- this file is used
6107         in C also.
6109         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
6110         link to it.
6112 2000-07-30  Werner LEMBERG  <wl@gnu.org>
6114         * doc/texinfo.tex: Update to latest version.
6116 2000-06-28  Paul Eggert  <eggert@twinsun.com>
6118         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
6119         commands that fail.  Don't assume that "export a=b" is valid shell
6120         syntax.  This is needed for Solaris 2.5.1.
6122         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
6123         comment about missing Solaris headers.
6125         * PROBLEMS: Add section about problems with Sun Make and VPATH.
6127 2000-06-25  Werner LEMBERG  <wl@gnu.org>
6129         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
6130         SET_BINARY().
6132         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
6134         * win32-diffs: Updated.
6135         * README.WIN32: Added CRs to make all Windows editors happy.
6137         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
6138         src/roff/groff/pipeline.c).
6140 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
6142         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
6143         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
6145 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
6147         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
6148         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
6149         are binary files.
6150         (main): Support non-Posix systems with several different styles of
6151         slash characters in file names.
6153         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
6154         (main) [SET_BINARY]: Switch stdin into binary mode.
6156         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
6157         (main): Support file names with several possible slash-type
6158         characters, as given by DIR_SEPS[] in nonposix.h.
6159         (main) [__MSDOS__]: If renaming the temporary index file fails
6160         because it has more than one dot in its trunk, replace the dot
6161         with an underscore and try again.
6162         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
6163         Newline.
6164         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
6166         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
6167         (File::File): Open the input file in binary mode.  Strip CR
6168         characters from each CR-LF pair.
6169         (xbasename): Support file names with several possible slash-type
6170         characters, as given by DIR_SEPS[] in nonposix.h.
6172         * src/include/Makefile.sub (HDRS): Add nonposix.h.
6174         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
6175         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
6176         [!_POSIX_VERSION]: Define for traditional Unix systems.
6177         (real_output_file::real_output_file): Remove the MSVC-specific
6178         call to popen, use instead POPEN_WT, appropriately defined on
6179         nonposix.h.  #include nonposix.h.
6180         (real_output_file::~real_output_file): Remove the MSVC-specific
6181         call to pclose, a suitable macro is now defined on nonposix.h.
6182         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
6183         and WEXITSTATUS instead of assuming traditional Unix
6184         interpretation of the status returned by pclose.
6186         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
6187         call to popen, use POPEN_RT instead (appropriately defined on
6188         nonposix.h).  #include nonposix.h.
6189         (ps_bbox_request): Open the PostScript file in binary mode.
6190         Close the file after processing it.
6191         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
6192         nonposix.h.
6194         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
6195         A version of run_pipeline that doesn't use `fork'.
6196         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
6197         (system_shell_name, system_shell_dash_c)
6198         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
6199         the ugliness of testing DOS/Windows file names for equality, and
6200         support both stock shells and ports of Unix shells.
6202         * src/roff/groff/groff.cc: #include nonposix.h.
6203         (BSHELL): Definition moved to nonposix.h.
6204         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
6205         instead of a literal "-c".
6206         (xbasename): Support file names with several possible slash-type
6207         characters, as given by DIR_SEPS[] in nonposix.h.
6208         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
6209         of literal strings.
6211         * src/preproc/soelim/soelim.cc: #include nonposix.h.
6212         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
6214         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
6215         pic_tab.h.
6217         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
6219         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
6220         eqn_tab.h.
6222         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
6224         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
6225         P_tmpdir is defined, use it instead of the literal "/tmp".
6226         (remove_tmp_files, add_tmp_file): New functions.
6227         (xtmpfile): Record temporary files and register an atexit function
6228         to delete them explicitly, instead of relying on the OS to do
6229         that, which doesn't work on non-Unix systems.
6231         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
6232         (search_path::search_path): Use PATH_SEP instead of a literal
6233         colon.
6234         (search_path::command_line_dir): Ditto.
6235         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
6236         to support non-Posix systems.
6238         * src/libs/libbib/search.cc: #include nonposix.h.
6239         (search_list::add_file): Open the file in binary mode.
6241         * src/libs/libbib/linear.cc: #include nonposix.h.
6242         (file_buffer::load): Remove \r characters preceding \n from the
6243         loaded buffer.
6245         * src/libs/libbib/index.cc: #include nonposix.h.
6246         (make_index_search_item): Open index_filename in O_BINARY mode.
6247         (index_search_item_iterator::get_tag): Ditto.  Remove \r
6248         characters before \n characters.
6249         (index_search_item::check_files): Open files in binary mode.
6250         (index_search_item::munge_filename): Support DOS-style file names
6251         with backslashes and drive letters, use IS_ABSOLUTE.
6253         * src/devices/grops/ps.cc: #include nonposix.h.
6254         (main) [SET_BINARY]: Switch stdout to binary mode.
6256         * src/devices/grolj4/lj4.cc: #include nonposix.h.
6257         (main) [SET_BINARY]: Switch stdout to binary mode.
6259         * src/devices/grolbp/lbp.cc: #include nonposix.h
6260         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
6262         * src/devices/grodvi/dvi.cc: #include nonposix.h.
6263         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
6264         nonposix.h).
6265         (main) [SET_BINARY]: Switch stdout to binary mode.
6266         [_MSC_VER]: Remove an explicit call to _setmode.
6268         * src/include/nonposix.h: New file.
6270         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
6271         operation when building with DJGPP.
6272         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
6273         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
6274         ENVSETUP.
6276         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
6277         MS-DOS.
6278         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
6279         etc. can include a semi-colon on DOS/Windows.
6280         (depend.temp): Use depend1.temp instead of depend.temp1, to
6281         prevent files from overerwiting each other on 8+3 filesystems.
6283         * gendef.sh (t): Change definition to work with DOS/Windows.
6285         doc/groff.texinfo: Apart of some typo corrections, I also changed
6286         some index entris, to make them more non-ambiguous, and also put
6287         @ignore around some parts that are not yet written, to allow the
6288         Info output be readable.
6290 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
6292         Replaced specific checks for function declarations with a generic
6293         routine taken from GNU bfd.
6295         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
6296         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
6297         * configure.in: Use it.
6298         * src/devices/grolbp/lbp.cc, src/include/lib.h,
6299         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
6300         src/roff/groff/groff.cc: Use it.
6301         * Makefile.in, configure: Updated.
6303 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
6305         * src/devides/grolbp/lbp.h: Removed unused variables.
6307 2000-05-31  Keith Thompson  <kst@sdsc.edu>
6309         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
6310         strncasecmp().
6312 2000-05-31  Werner LEMBERG  <wl@gnu.org>
6314         * aclocal.m4 (GROFF_SRAND): New function to test the return value
6315         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
6316         * configure.in: Use it.
6317         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
6318         * configure, Makefile.in: Updated.
6320         * configure.in: Add test for strncasecmp().
6321         * src/include/lib.h: Use it.
6323 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
6325         * src/preproc/grn/Makefile.sub: Add MLIB.
6327 2000-05-29  Nix  <nix@esperi.demon.co.uk>
6329         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
6331 2000-05-29  Werner LEMBERG  <wl@gnu.org>
6333         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
6335         * PROBLEMS: Small update.
6337         * src/devices/grolbp/lbp.cc: Various small fixes.
6339 2000-05-28  Keith Thompson  <kst@sdsc.edu>
6341         * src/roff/nroff/nroff.sh: Fix main loop syntax.
6343         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
6345 2000-05-25  Werner LEMBERG  <wl@gnu.org>
6347         * man/roff.man: Removed unused macro.
6349 2000-05-24  Werner LEMBERG  <wl@gnu.org>
6351         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
6352         This is needed e.g. if you do
6353         `make distclean; ./configure; make dist'.
6355 Version 1.16 released
6356 =====================
6358 2000-05-23  Werner LEMBERG  <wl@gnu.org>
6360         Adding font CWI (constant width italic) to devdvi.
6362         * font/devdvi/CWI: New file.
6363         * font/devdvi/generate/Makefile: Add generating rule.
6364         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
6365         tmac/tmac.dvi: Use it.
6366         * NEWS: Announce it.
6368         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
6369         * font/devlj4/generate/Makefile: Cosmetic changes only.
6371         * man/groff.man: Removed most of the redundant description of
6372         special characters (which is in groff_char.man).  Added font
6373         translation CB->CR for devdvi.  Other minor fixes.
6375         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
6376         (registered) symbols.
6378 2000-05-22  Werner LEMBERG  <wl@gnu.org>
6380         * doc/Makefile: Added rule for creating info files.
6382         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
6383         AMS font metrics.
6384         * font/devdvi/generate/Makefile: Fixed dependencies.
6386         * font/devps/*: Regenerated.  Heavy changes for Bookman and
6387         NewCentury Schoolbook!
6388         * font/devps/generate/afmname: Will now run with GNU awk.
6389         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
6390         * font/devps/generate/Makefile: Cosmetic changes only.
6392 2000-05-21  Werner LEMBERG  <wl@gnu.org>
6394         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
6395         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
6396         `.SS' now produces a heading with a smaller size than `.SH'. 
6397         Completely formatted.
6398         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
6400         * man/groff.man: Improved table appearance.  Use of `eo' request
6401         to reduce number of doubled backslashes in macro definitions.
6402         Replacing `\e' with `\(rs'.  Other minor fixes.
6404         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
6405         to have correct line number.
6407         * INSTALL: Small improvement.
6409 2000-05-20  Bernd Warken  <bwarken@mayn.de>
6411         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
6412         WL).
6414 2000-05-19  Bernd Warken  <bwarken@mayn.de>
6416         * man/groff.man: Complete update (with a lot of corrections by WL).
6418 2000-05-18  Werner LEMBERG  <wl@gnu.org>
6420         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
6422         * font/*/*: Implement it.
6423         * man/groff_char.man, NEWS: Document it.
6425         * src/include/unix.h: Removed.  It isn't used.
6427         * doc/groff.texinfo: Slight improvements.
6429 2000-05-17  Werner LEMBERG  <wl@gnu.org>
6431         * README, win32-diffs: Small fixes and improvements.
6433 2000-05-16  Werner LEMBERG  <wl@gnu.org>
6435         * FDL: New file (the Free Documentation License version 1.1).
6437         * doc/groff.texinfo: Added many start-up values for gtroff.
6438         Some structural improvements of the source code.
6440 2000-05-15  Werner LEMBERG  <wl@gnu.org>
6442         * src/roff/troff/input.cc: Added small comment about troffrc-end.
6443         * src/roff/troff/troff.man: Added info about troffrc-end.
6445 2000-05-14  Werner LEMBERG  <wl@gnu.org>
6447         * Makefile.in (EXTRADIRS): Fix typos.
6448         (dist): Handle deletion of old .tar.gz file correctly.
6449         (DISTDIRS): Include all tty output devices.
6451         * doc/groff.texinfo: Adding more cross references; countless other
6452         fixes.
6454 2000-05-13  Werner LEMBERG  <wl@gnu.org>
6456         * MORE.STUFF: Added Robert Marks's utilities.
6458 2000-05-12  Werner LEMBERG  <wl@gnu.org>
6460         Added win32 port contributed by Blake McBride
6461         <blake@florida-software.com>.
6463         * README.WIN32, win32-diffs: New files.
6464         * NEWS: Updated.
6466         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
6467         (tmove, tmove2): Added parentheses to avoid compiler warnings.
6468         (change): Removed unused variables.
6470         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
6471         (savebounds): Changed return value from `int' to `void'.
6472         * src/preproc/grn/hdb.cc: Ditto.
6474         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
6475         final backslash in comment to avoid compiler warning.
6477         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
6479         * doc/groff.texinfo: More fixes.
6481 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
6483         * tmac/tmac.doc: Documentation fix.
6485 2000-05-11  Werner LEMBERG  <wl@gnu.org>
6487         * doc/groff.texinfo: Reading the source code shows up a lot of
6488         omissions and incorrect data...  More conversion to @Deffn macros.
6490 2000-05-10  Werner LEMBERG  <wl@gnu.org>
6492         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
6493         dependency.
6495         * src/roff/troff/request.h: Removing unused `no_break_flag'.
6497 2000-05-09  Werner LEMBERG  <wl@gnu.org>
6499         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
6500         improvements.
6502         * doc/groff.texinfo: Extended history section.  More conversion to
6503         @Deffn macros.  More .tr documentation.
6505 2000-05-07  Werner LEMBERG  <wl@gnu.org>
6507         * doc/groff.texinfo: Completed tab section.  Added info about
6508         fields.
6510 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
6512         * PROBLEMS: Describe configure script fix for OS/390 Unix.
6514 2000-05-05  Werner LEMBERG  <wl@gnu.org>
6516         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
6517         LaTeX 2e).
6518         * NEWS: Document it.
6520         * man/troff.man: Minor optical improvements.
6522 2000-05-03  Werner LEMBERG  <wl@gnu.org>
6524         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
6526         * font/*/*: Implement it.
6527         * man/groff_char.man, NEWS: Document it.
6529 2000-05-02  Werner LEMBERG  <wl@gnu.org>
6531         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
6532         expansion.
6533         * NEWS: Document the three new man pages.
6535         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
6536         * configure: Updated.
6538         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
6540 2000-05-01  Werner LEMBERG  <wl@gnu.org>
6542         Added grap support to grog.
6544         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
6545         * src/roff/grog/grog.man: Document it.
6547         * doc/groff.texinfo, NEWS: Add info about grap support.
6549         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
6550         (with slight fixes by me).
6552         * tmac/groff_tmac.man: New file documenting tmac mechanism.
6553         * tmac/Makefile.sub: Add groff_tmac.man.
6554         * man/roff.man: New file giving overview of roff system.
6555         * man/troff.man: A short reference of troff.
6556         * man/Makefile.sub: Add roff.man and troff.man.
6558 2000-04-30  Werner LEMBERG  <wl@gnu.org>
6560         Added grap support to groff.
6562         * src/roff/groff/groff.cc: Implement it.
6563         * src/roff/groff/groff.man: Document it.
6565         * src/devices/grotty/grotty.man: Add cp1047 device.
6566         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
6567         Ditto.
6568         * src/roff/groff/groff.man: Ditto.
6569         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
6570         * doc/groff.texinfo: Ditto.
6572         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
6573         for cp1047.
6575 2000-04-29  Werner LEMBERG  <wl@gnu.org>
6577         * man/groff_char.man: Add `pc' glyph.
6578         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
6579         * tmac/tmac.tty: Add `pc' glyph.
6580         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
6581         we use cp1047 output device.
6583         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
6584         there are still hardcoded latin1->unicode values in utf8's font
6585         definition files.
6586         * configure: Updated.
6587         * NEWS: Minor clarification.  Updated.
6589         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
6590         Unix.
6592 2000-04-28  Werner LEMBERG  <wl@gnu.org>
6594         Adding EBCDIC code page 1047.
6596         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
6597         font/devcp1047/DESC.proto: New files.
6599         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
6600         either ascii/latin1 or cp1047.
6601         * Makefile.in: Use it.
6602         * configure: Updated.
6604         Replacing and/or adding `md' (mathdot) glyph with `pc'
6605         (periodcentered) in all text fonts.
6607         * font/*/*: Change it.
6609 2000-04-27  Werner LEMBERG  <wl@gnu.org>
6611         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
6613         * configure.in: Add check for strings.h.
6614         * src/include/driver.h: Use HAVE_STRINGS_H.
6615         * src/devices/grolbp/lpb.cc: Remove string.h.
6617         * src/include/groff-getopt.h: New file.  It will be used instead of
6618         getopt.h (to be included in lib.h) to avoid endless problems with
6619         picky C++ compilers.
6620         * src/include/lib.h: Use groff-getopt.h.
6621         * src/include/Makefile.sub: Updated.
6623         * configure: Updated.
6624         * Makefile.in: Updated.
6626         * NEWS: Mention EBCDIC support.
6628 2000-04-26  Werner LEMBERG  <wl@gnu.org>
6630         * TODO: Some additions.
6632 2000-04-25  Werner LEMBERG  <wl@gnu.org>
6634         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
6635         of mso request.
6637 2000-04-23  Werner LEMBERG  <wl@gnu.org>
6639         * src/roff/troff/troff.man: Minor fixes.
6641 2000-04-22  Werner LEMBERG  <wl@gnu.org>
6643         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
6644         `.T' string register and the incompatible definition of the `.T'
6645         number register (compared to Unix troff).
6647         * man/groff_char.man: Add some missing characters.
6648         * font/devutf8/NOTES: Update.
6650 2000-04-21  Werner LEMBERG  <wl@gnu.org>
6652         * src/include/htmlindicate.h, src/include/lib.h,
6653         src/include/posix.h: Fix copyright.
6655         * src/include/Makefile.sub: Update.
6657 2000-04-20  Werner LEMBERG  <wl@gnu.org>
6659         * src/roff/troff/input.cc (input_char_description): Removing
6660         superfluous space char.
6662         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
6664         * doc/groff.texinfo: Document EBCDIC.
6666 2000-04-19  Werner LEMBERG  <wl@gnu.org>
6668         Introducing `shc' as the glyph name for the soft hyphen character.
6670         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
6671         font/devlatin1/R.proto: Use it.
6673         * NEWS: Updated.
6675 2000-04-18  Werner LEMBERG  <wl@gnu.org>
6677         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
6678         dependency on ASCII order.
6680 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
6682         * src/libs/libgroff/illegal.c: Added EBCDIC table.
6683         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
6685         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
6686         to increase portability.
6688 2000-04-15  Werner LEMBERG  <wl@gnu.org>
6690         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
6691         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
6692         the generic `\n' if under OS/390 Unix.
6694         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
6696         * configure: Regenerated.
6698 2000-04-14  Werner LEMBERG  <wl@gnu.org>
6700         * doc/groff.texinfo: More conversions to @Deffn.
6702 2000-04-12  Werner LEMBERG  <wl@gnu.org>
6704         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
6705         with `:'.
6707         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
6709 2000-04-10  Werner LEMBERG  <wl@gnu.org>
6711         * doc/groff.texinfo: More conversions to @Deffn.
6713 2000-04-08  Werner LEMBERG  <wl@gnu.org>
6715         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
6716         Updated to latest version (glibc 2.1.3).
6718 2000-04-07  Werner LEMBERG  <wl@gnu.org>
6720         * doc/Makefile (clean): Include more index files.
6721         Add rule texinfo->dvi.
6723 2000-04-05  Werner LEMBERG  <wl@gnu.org>
6725         * doc/groff.texinfo: Added new index `op' for operators.  More
6726         info on end of sentence characters.  More use of @Deffn.
6728 2000-03-30  Werner LEMBERG  <wl@gnu.org>
6730         * */*.man: Adding a note that a whitespace can be inserted between
6731         a command line option and its parameter -- we are using GNU getopt.
6733         * src/roff/groff/groff.man: Add example of `-m mandoc'.
6735 2000-03-28  Werner LEMBERG  <wl@gnu.org>
6737         Correct anachronism of calling the man macro file with `-man'
6738         instead of `-m man' etc.
6740         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
6741         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
6742         load tmac.<package>.
6744         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
6746         * NEWS: Updated.
6748         * doc/groff.texinfo: Updated.
6750         * tmac/groff_man.man: Copyright added.
6752 2000-03-27  Werner LEMBERG  <wl@gnu.org>
6754         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
6755         typeset the request resp. escape name with a tt font -- due to a
6756         bug in texinfo.tex it is necessary to use the `-e' switch with
6757         texi2dvi.
6759         Improving info about usage of groff units.
6761         Other minor fixes.
6763 2000-03-20  Werner LEMBERG  <wl@gnu.org>
6765         * doc/groff.texinfo: Added section about man macro package
6766         (I've basically taken groff_man.man).  Introducing new indices `ma'
6767         for macros/strings and `gl' for glyph names.  Other minor fixes.
6769         * tmac/groff_man.man: Fixed some typos.
6771 2000-03-19  Werner LEMBERG  <wl@gnu.org>
6773         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
6774         Other minor fixes.
6776         * doc/texinfo.tex: New file.
6778 2000-03-18  Werner LEMBERG  <wl@gnu.org>
6780         * doc/groff.texinfo: Improved section on number registers.  Other
6781         minor updates.
6783 2000-03-16  Werner LEMBERG  <wl@gnu.org>
6785         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
6786         synopsis.
6788         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
6789         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
6790         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
6791         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
6793         * src/preproc/grn/grn.man: Better synopsis; added copyright.
6795         * src/roff/grog/grog.man: Updated copyright date.
6797 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
6799         * configure.in: Added test for strdup.
6801         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
6802         is available.
6804         Replaced dynamic allocation of arrays `[...]' with `new' operator.
6806         Other minor fixes.
6808 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
6810         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
6812 2000-03-11  Werner LEMBERG  <wl@gnu.org>
6814         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
6815         compilers silent.
6816         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
6817         * src/include/lib.h: Remove some spaces.
6819 2000-03-10  Werner LEMBERG  <wl@gnu.org>
6821         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
6822         initializers from arguments (some compilers don't like this).
6824 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
6826         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
6827         used by pic and eqn to tell grohtml where the graphic regions start
6828         and end.
6829         * src/libs/libgroff/Makefile.sub: Use it.
6830         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
6831         graphic_start() and graphic_end() from htmlindicate.cc.
6833 2000-03-09  Werner LEMBERG  <wl@gnu.org>
6835         * tmac/tmac.safer: Will now work correctly in compatibility mode.
6836         * tmac/groff_man.man: More fixes.
6838 2000-03-08  Werner LEMBERG  <wl@gnu.org>
6840         * doc/Makefile: Added texput.log to the `clean' target.
6841         * doc/groff.texinfo: Added info about delimiters for escapes.
6843 2000-03-08  Bernd Warken  <bwarken@mayn.de>
6845         * src/preproc/pic/pic.man: Add info on conversion of pic images to
6846         other graphic formats.
6848 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
6850         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
6851         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
6852         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
6853         files.
6855 2000-03-07  Werner LEMBERG  <wl@gnu.org>
6857         * doc/groff.texinfo: Spelling fixes.
6859 2000-03-06  Werner LEMBERG  <wl@gnu.org>
6861         * tmac/groff_man.man: Completely revised to cover everything in
6862         tmac.an.
6864         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
6865         Other minor fixings.
6866         * src/roff/troff/env.cc (environment_copy): Improve error message and
6867         fix itoa->i_to_a.
6868         * src/roff/troff/TODO: Updated.
6870         * doc/Makefile: Bug fixes -- this is still provisional, though...
6872         * tmac/eqnrc: Small fixes.
6874 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
6876         Adding a request `evc' to copy environments.
6878         * src/roff/troff/env.cc (environment::copy, environment_copy):
6879         Implement it.
6880         * src/roff/troff/env.h: Add prototype.
6882 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
6884         Adding strsep() -- Solaris 8 doesn't have it.
6886         * configure.in: Test it.
6887         * src/devices/grolbp/lbp.cc: Add code.
6889 2000-03-05  Werner LEMBERG  <wl@gnu.org>
6891         * src/roff/troff/div.cc (macro_diversion::output,
6892         top_level_diversion::output): Fixing an incompatibility with
6893         original troff: \x'0' updates the .a register also.  Thanks to
6894         <Andries.Brouwer@cwi.nl> for pointing this out.
6895         * doc/groff.texinfo: Document it.
6897         * Makefile.in: Create Makefile.dep if necessary before calling the
6898         submake process to avoid warning about nonexistent file.
6900         * NEWS, PROJECTS: Updated.
6902 2000-03-04  Werner LEMBERG  <wl@gnu.org>
6904         * tmac/troffrc: Add tmac.lbp.
6906 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
6908         * tmac/tmac.lbp: New file.
6909         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
6910         command.
6912 2000-03-03  Werner LEMBERG  <wl@gnu.org>
6914         * Makefile.in: Fixing $(subdir).
6916         * README, NEWS: Small fixes.
6918         * test-groff: Adding path to grolbp.
6920         * configure.in: The (new) file src/xditview/Imakefile.in will be
6921         also configured -- it is now possible to build gxditview in a
6922         directory different from $srcdir.
6924 2000-03-02  Blake McBride  <blake@florida-software.com>
6926         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
6928         * MORE.STUFF: Added website of bell labs and info about plot2dev.
6930 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
6932         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
6933         files.
6935 2000-02-29  Werner LEMBERG  <wl@gnu.org>
6937         Adding GNU getopt to the groff distribution.
6939         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
6940         New files.
6941         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
6942         * aclocal.a4: Remove GROFF_GETOPT function.
6943         * configure.in, Makefile.in, PROBLEMS: Update.
6944         * src/include/lib.h: Replace getopt tests with getopt.h.
6945         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
6947         * doc/groff.texinfo: Further checking/updating.  Adding more index
6948         entries.
6950         * man/groff_out.man: Fix nroff mode activation (for emacs).
6951         * man/groff_font.man: Add missing ligature.
6953 2000-02-28  Werner LEMBERG  <wl@gnu.org>
6955         * doc/groff.texinfo: Further checking/updating.  Adding more index
6956         entries.
6958         * src/devices/grolbp/grolbp.man: Added a comment line at the
6959         beginning of the file (similar to shell scripts) which indicates
6960         that `tbl' should be used as a preprocessor.
6962 2000-02-27  Blake McBride  <blake@florida-software.com>
6964         Adapting groff to MS Visual C++ 6.0 compiler (tested with
6965         Windows NT 4.0).  Uses _MSC_VER define where necessary.
6967         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
6968         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
6969         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
6970         src/include/lib.h, src/libs/libgroff/errarg.cc,
6971         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
6972         src/preproc/refer/label.y, src/preproc/refer/label.cc,
6973         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
6974         src/roff/troff/div.cc, src/roff/troff/env.cc,
6975         src/roff/troff/input.cc, src/roff/troff/node.cc,
6976         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
6977         if_to_a() to avoid name clashes.
6978         * src/include/posix.h: Don't use unistd.h.
6979         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
6980         clause for integrating non-Unix xtmpfile() code.
6981         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
6982         structure; use "rt" for popen() in pipe_source(); add getpid()
6983         dummy function.
6984         * src/roff/troff/node.cc: Use special versions of popen() in
6985         real_output_file() and pclose() in ~real_output_file().
6987 2000-02-27  Werner LEMBERG  <wl@gnu.org>
6989         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
6990         LBP-8 series laser printers).  This code has been contributed by
6991         Francisco Andrés Verdú <pandres@dragonet.es>.
6993         * src/devices/grolbp/*: The grolbp output device.
6994         * font/devlpb/*: The font description files.
6995         * Makefile.in: Add grolpb and devlbp subdirectories.
6997         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
6998         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
6999         typographic fixes.
7001         * doc/groff.texinfo: Further checking/updating.  Adding more index
7002         entries.
7004         * NEWS: Updated.
7006         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
7008         * man/groff_font.man: Adding info about obsolete DESC keywords.
7009         * src/devices/grolj4/grolj4.man: Documenting additional DESC
7010         keywords.
7012 2000-02-26  Werner LEMBERG  <wl@gnu.org>
7014         * src/preproc/grn/grn.man: Added info about the gremlin file format
7015         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
7017 2000-02-25  Werner LEMBERG  <wl@gnu.org>
7019         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
7020         friends to be non-integer.
7022         * src/preproc/grn/grn.man: Document it.
7024         * doc/groff.texinfo: Further checking/updating.  Adding more index
7025         entries.
7027 2000-02-24  Werner LEMBERG  <wl@gnu.org>
7029         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
7030         line thicknesses to be integer multiples of this value.
7032         * src/preproc/grn/grn.man: Commenting out the -s option -- the
7033         corresponding code doesn't work (yet).
7035         * doc/groff.texinfo: Further checking/updating.  Adding more index
7036         entries.
7038 2000-02-23  Werner LEMBERG  <wl@gnu.org>
7040         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
7041         specify line thickness instead of base units.  The new default
7042         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
7043         thick lines respectively.
7045         Removed unused variable `prevval'.
7047         * src/preproc/grn/grn.man: Updated.
7049 2000-02-22  Werner LEMBERG  <wl@gnu.org>
7051         * src/preproc/grn/main.cc: Slight formatting.
7053         * src/roff/groff/groff.man: Formatting fix.
7054         * src/preproc/grn/grn.man: Ditto.
7056         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
7058         * doc/groff.texinfo: Further checking/updating.
7060 2000-02-21  Werner LEMBERG  <wl@gnu.org>
7062         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
7064         * test-groff: Added grn subdir to path.
7066         * doc/groff.texinfo: Some restructing and other small improvements.
7068         * src/roff/groff/groff.cc (help): Fixed info string.
7070 2000-02-20  Werner LEMBERG  <wl@gnu.org>
7072         * doc/meref.me: Fix description of .GS request.
7074         * src/roff/troff/troff.man: Fixing typo.
7076         Adding the `grn' preprocessor for gremlin graphic files.
7078         * src/preproc/grn/*: This is the Berkeley distribution written by
7079         David Slattengren and Barry Roitblat, adapted to groff by Daniel
7080         Senderowicz and Werner Lemberg.
7082         * doc/grnexampl.{me,g}: A sample for grn.
7084         * Makefile.in: Added subdirectory entry for grn.
7086         * src/roff/groff/groff.cc: Added support for grn.  It can be now
7087         called with the switch `-g'.
7089         * src/roff/groff/groff.man: Updated.
7091         * src/roff/grog/grog.{man,pl,sh}: Updated.
7093         * NEWS: Updated.
7095 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
7097         * src/include/lib.h: Added xtmptemplate and made xtmpfile
7098         parametrically polymorphic.
7100         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
7101         and the alterations to xtmpfile.
7102         xtmpfile can be requested to return the filename created
7103         and asked not to unlink the temp file.  The default behaviour
7104         if parameters are absent is exactly the same as before.
7106 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
7108         A new request `length' is available which returns the length of a
7109         string in a number register:
7111         * src/roff/troff/input.cc (length_macro): Implement it.
7112         * src/roff/troff/input.cc (init_input_requests): Register it.
7114 2000-02-11  Werner LEMBERG  <wl@gnu.org>
7116         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
7117         of the `substring' request.
7119         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
7120         request.
7122         * src/roff/troff/TODO, NEWS: Updated.
7124 2000-02-09  Werner LEMBERG  <wl@gnu.org>
7126         * src/roff/groff/groff.man: Added an example.
7128 2000-02-06  Werner LEMBERG  <wl@gnu.org>
7130         I've considerably modified the directory structure of the
7131         distribution to get a more vertical layout.  For example, the number
7132         of top level directories has been reduced from 42 to 6.
7134         As a consequence, many changes, especially to the makefiles, were
7135         necessary:
7137         * The makefile variables `top_builddir' and `top_srcdir' have been
7138         introduced.  Virtually all relative paths have been replaced with
7139         absolute ones using these two variables.
7141         * Dependencies (in the files `Makefile.dep') are no longer part of
7142         the distribution.  Instead, they are created during a `make install'
7143         in the build directory.
7145         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
7146         make `top_srcdir' and `top_builddir' absolute.
7148         Some other changes:
7150         * Man pages now depend on the files `VERSION' and `REVISION'.
7152         * The added shell script `mkinstalldirs' will replace `mkdir' in
7153         almost all cases.
7155         * VERSION: Version number increased to 1.16.
7157 2000-02-04  Werner LEMBERG  <wl@gnu.org>
7159         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
7161         * Makefile.in: Removed $(tmac_m) since it is no longer needed
7162         (after an update of the mm stuff).
7164         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
7166 2000-02-03  Werner LEMBERG  <wl@gnu.org>
7168         The .psbb request will now also accept Mac PS images (i.e. using LF
7169         as the EOL character).
7171         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
7172         (with slight modifications).
7173         * troff/input.cc (do_ps_file): Use it.
7175         * test-groff: Add grohtml and grolj4 output devices to PATH.
7177 2000-01-30  Werner LEMBERG  <wl@gnu.org>
7179         * NEWS, MORE.STUFF: Updated.
7181 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
7183         Add the `srand' command to pic.
7185         * pic/lex.cc, pic/pic.y: Implement it.
7186         * pic/pic.man: Document it.
7187         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
7189 2000-01-30  Werner LEMBERG  <wl@gnu.org>
7191         Add a new request `.psbb'.  This does exactly what the external
7192         program psbb did.  It scans a PostScript image file for a
7193         %%BoundingBox comment and extracts the bounding box values (in
7194         PostScript units) which are then stored in the four new (read-only)
7195         number registers `llx', `lly', `urx', and `ury'.
7197         This will allow the usage of the .PSPIC macro without worrying
7198         about unsafe behaviour of groff, i.e., it will work without the
7199         `-U' switch of groff.
7201         * troff/input.cc: Implement it.
7202         * tmac/tmac.pspic: Use it.
7203         * troff/troff.man, grops/grops.man, NEWS: Document it.
7204         * psbb/*, Makefile.in: Remove it since it is no longer needed.
7206         This is bloody C code simply adapted from psbb.c!  Any improvements
7207         welcome.
7209 2000-01-29  Werner LEMBERG  <wl@gnu.org>
7211         * man/groff_font.man: Minor clarifications.
7213         * NEWS: Updated.
7215 2000-01-28  Werner LEMBERG  <wl@gnu.org>
7217         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
7219 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
7221         * man/groff_font.man: Brought up to date regarding tcommand
7222         extensions.
7223         * libgroff/font.cc: Handle everything after `--' as a comment
7224         in the font files.
7225         * devps/*: Added comment delimiter inside devps font files.
7227 2000-01-28  Werner LEMBERG  <wl@gnu.org>
7229         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
7230         \fC...\fP (which now works as expected).
7232         * troff/troff.man: Fix typo.
7234 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7236         Completed the pass_filenames implementation in troff.
7238         * libdriver/input.cc: Will read the new `F' tcommand.
7239         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
7240         * troff/input.cc: Use it.
7242 2000-01-26  Werner LEMBERG  <wl@gnu.org>
7244         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
7245         font will now be updated even if an invalid font is selected.
7247 2000-01-24  Werner LEMBERG  <wl@gnu.org>
7249         * doc/homepage.ms: Updated for new tmac.arkup.
7251         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
7253         * tmac/tmac.arkup: Cleanup.
7255         Added `\&' to .HTML macro to `leave vertical mode', so to say.
7257         Removed obsolete .LINK macro completely.
7259         The macros .URL, .FTP, and .MAILTO now accept a third argument which
7260         will be immediately appended to the second argument (to be used with
7261         punctuation, for example).
7263         Disabled .CDFTP macro temporarily for security reasons.
7265         * tmac/groff_markup.man: Complete revision for latest changes in
7266         tmac.arkup -- note that it does not yet format correctly with
7267         grohtml :-(
7269 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
7271         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
7272         * devutf8/R.proto: Add mappings for wp, lh, rh.
7273         * devutf8/NOTES: Updated.
7275 2000-01-23  Werner LEMBERG  <wl@gnu.org>
7277         * doc/groff.texinfo: Updated version/copyright info.
7279 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
7281         Added support for two new directives in device descriptions:
7282         `pass_filenames' (to pass the input file name to the output device)
7283         and `use_charnames_in_special' (to support e.g. accented characters
7284         in the `X' request).
7286         * include/font.h, troff/charinfo.h: Declare it.
7288         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
7290         * devhtml/DESC: Use it.
7292         * troff/input.cc: New function encoded_char.
7294         * troff/token.h: Add test for `specialness'.
7296 2000-01-21  Werner LEMBERG  <wl@gnu.org>
7298         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
7299         mistake from the list of files to be installed.
7301 2000-01-18  Werner LEMBERG  <wl@gnu.org>
7303         * README: Added info how to apply patches.
7305 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
7307         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
7309 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7311         * troff/input.cc: Add support for troffrc-end.
7313         * tbl/main.cc: Altered to issue table-start and table-end special
7314         characters if using the html device.
7316         * devhtml/*: Modified font files to incorporate html encoding of
7317         characters.
7319         * tmac/groff_markup.man: New file documenting tmac.arkup.
7321         * tmac/troffrc-end: New file.  This is invoked after all user
7322         specified macros.  Currently used by the html device to include
7323         tmac.html.  Thus no need for users to specify -mhtml anymore.
7325         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
7326         (MAN7): Add groff_markup.man.
7328         * tmac/tmac.an, tmac/tmac.html: Small html updates.
7330         * tmac/troffrc: tmac.arkup will now be called for the html device.
7332         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
7333         extra device specific information about fonts.
7335         * doc/homepage.ms: New file.  It is an example how an HTML home page
7336         could look like with grohtml.
7338         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
7340 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
7342         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
7343         of Im, Re.
7345         * devutf8/NOTES: Updated.
7347 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
7349         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
7350         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
7351         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7352         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
7353         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
7354         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
7355         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
7356         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
7357         warnings.
7359         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
7361 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
7363         grolj4: Paper size will be searched case-insensitively.
7365         * include/lib.h: Add check for strcasecmp().
7366         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
7367         * configure.in: Check for strcasecmp().
7369 2000-01-11  Werner LEMBERG  <wl@gnu.org>
7371         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
7372         `REVISION'.
7374 2000-01-10  Werner LEMBERG  <wl@gnu.org>
7376         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
7377         revision scheme.
7379         Add a new read-only register, `.Y', which contains the groff
7380         revision.
7382         * troff/input.cc (init_input_requests): Define it.
7383         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
7384         * doc/groff.texinfo, troff/troff.man: Document it.
7386         * libgroff/Makefile.sub (version.cc): Add definition of
7387         `Version_string[]', consisting of `<major>.<minor>.<revision>'
7388         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
7389         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
7390         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
7391         troff/input.cc, pfbtops/pfbtops.c: Use it.
7393 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
7395         Add a revision scheme to the groff package.
7397         * REVISION: New file.
7398         * libgroff/Makefile.sub (version.cc): Use it to define
7399         `revision_string[]'.
7400         * grops/psrm.cc: Use revision_string (converted to an unsigned
7401         integer) in constructor of resource_manager.
7403 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
7405         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
7406         files.
7407         * Makefile.in (DEVDIRS): Add devutf8.
7408         * grotty/tty.cc: Include device.h.
7409         (glyph): Change type of `code' to `unsigned int'.
7410         (tty_printer): New field is_utf8.  Constructor takes device argument.
7411         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
7412         (tty_printer::add_char): Change type of first arg to `unsigned int'.
7413         (tty_printer::put_char): New function.
7414         (tty_printer::end_page): Use put_char() instead of ::putchar().
7415         (make_printer): Pass device to tty_printer constructor.
7416         * nroff.sh: Determine default device by calling 'locale'.  As a
7417         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
7418         Recognize UTF-8 locales.
7419         * tmac/eqnrc: Recognize utf8 like latin1.
7420         * tmac/troffrc: Device utf8 needs tmac.tty.
7422 2000-01-07  Werner LEMBERG  <wl@gnu.org>
7424         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
7426 2000-01-07  Paul Eggert  <eggert@twinsun.com>
7428         Add a new predefined writeable number register, `year',
7429         which contains the current year.
7431         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
7432         * tmac/tmac.s: Use it.
7433         * troff/input.cc (init_registers): Initialize it.
7435 2000-01-06  Werner LEMBERG  <wl@gnu.org>
7437         * PROBLEMS: Fixed typo.
7439 2000-01-04  Paul Eggert  <eggert@twinsun.com>
7441         * PROBLEMS: Add Y2k advice for the yr number register.
7443 2000-01-03  Paul Eggert  <eggert@twinsun.com>
7445         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
7447 2000-01-02  Werner LEMBERG  <wl@gnu.org>
7449         * tmac/tmac.arkup: Slight modification of macros to provide better
7450         appearance for non-HTML formats.
7452 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
7454         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
7455         does not automatically translate to malloc(n) on all OSes
7456         (e.g., SunOS) so do it explicitly.  Also, check the returned
7457         value.
7459 2000-01-01  Werner LEMBERG  <wl@gnu.org>
7461         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
7463         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
7464         expects this variable
7466 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
7468         * doc/Makefile: Added instructions to create HTML and text
7469         versions of some files.
7471 1999-12-31  Werner LEMBERG  <wl@gnu.org>
7473         * Updated INSTALL.gen.
7475         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
7476         better resp. correctly with non-HTML devices.
7478 Version 1.15 released
7479 =====================
7481 1999-12-28  Werner LEMBERG  <wl@gnu.org>
7483         * NEWS, VERSION: Changed to 1.15
7485 1999-12-27  Paul Eggert  <eggert@twinsun.com>
7487         * nroff/nroff.man: -S is safer, not safe.
7489         * groff/groff.cc (main): Use `safer', not `safe', in variable
7490         names.  This does not change the behavior.
7492         * troff/input.cc (main): Likewise.
7494         * nroff/nroff.sh: Likewise.
7496         * troff/input.cc (prepend_string): New function.
7497         (main): Prepend -msafer, so that we check macro libraries for
7498         safety.
7500         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
7502 Version 1.14 released
7503 =====================
7505 1999-12-26  Werner LEMBERG  <wl@gnu.org>
7507         * NEWS, VERSION: Changed to 1.14.
7509 1999-12-24  Werner LEMBERG  <wl@gnu.org>
7511         * refer/refer.cc: Fixing the last fix.
7513 Version 1.13 released
7514 =====================
7516 1999-12-23  Werner LEMBERG  <wl@gnu.org>
7518         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
7519         number disappear.
7521         * NEWS: Updated.
7523         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
7525         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
7526         document conventions, the version number must be a real.
7528 Version 1.12.1 released
7529 =======================
7531 1999-12-22  Werner LEMBERG  <wl@gnu.org>
7533         * VERSION: Changed to 1.12.1.
7535 1999-12-22  Alan Rooks  <arooks@istar.ca>
7537         * refer/refer.cc (do_file): Slight modification to satisfy the
7538         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
7539         UnixWare 7.1.
7541 1999-12-20  Werner LEMBERG  <wl@gnu.org>
7543         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
7544         notices.
7546         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
7547         list of unsafe requests.
7549         * pic/pic.man: Fixed a typo.
7551         * man/groff_out.man: Fixed a typo.
7553 1999-12-18  Werner LEMBERG  <wl@gnu.org>
7555         * Makefile.in: Doc fixes.
7557 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
7559         * groff/groff.cc: Missing `U' option added to getopt().
7561         * troff/troff.man: Missing `U' option added to synopsis.
7563 Version 1.12 released
7564 =====================
7566 1999-12-14  Werner LEMBERG  <wl@gnu.org>
7568         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
7569         to the synopsis.
7571         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
7572         with the more appropriate terms `safer' and `unsafe'.
7574         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
7575         sys_nerr and sys_errlist[].
7577         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
7579         * pic/pic.y, pic/pic.cc: Added check for fmod().
7581 1999-12-13  Werner LEMBERG  <wl@gnu.org>
7583         * VERSION: Changed to 1.12.
7585         Here some patches from various sources; most of them taken from
7586         the Debian distribution.
7588         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
7589         tmac/Makefile.sub: New files copied directly from the NetBSD
7590         distribution.  Probably, some additional adaptation later on is
7591         necessary...
7593         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
7594         of unsafe requests.
7596         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
7597         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
7598         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
7599         (`-S') is now the default.
7601         * README, NEWS: Updated.
7603 1999-12-09  Werner LEMBERG  <wl@gnu.org>
7605         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
7607         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
7609 1999-12-06  Werner LEMBERG  <wl@gnu.org>
7611         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
7612         grief than relief today.  Additionally, it is against the GNU
7613         coding standards.
7615         * configure: Recreated.
7617 1999-12-05  Werner LEMBERG  <wl@gnu.org>
7619         * configure.in: Added GROFF_LIBM.
7621         * configure: Recreated.
7623         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
7624         necessary.
7626         * Makefile.in: Added definition of $(LIBM).
7628         * Makefile.comm (LIBM): Removed.
7630         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
7632 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
7634         * doc/Makefile: Added rule for generation pic.html.
7636         (clean): Files produced by grohtml will be removed also.
7638         * doc/pic.ms: Small fix.
7640         * tmac/tmac.html: Fixed suppression of headers.
7642 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
7644         * tmac/tmac.html: Fixing horizontal arrows.
7646         Turning off hyphenation.
7648         * tmac/tmac.an: Improved support for grohtml; better indentation,
7649         no footers/headers.
7651 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
7653         * tmac/tmac.arkup: Added CDFTP macro
7655         * tmac/tmac.html: All headers are turned off for ms, me, and mm
7656         macros.
7658         * tmac/troffrc: Some additions for HTML stuff.
7660 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
7662         * tmac/tmac.html: Small changes.
7664 1999-09-26  Werner LEMBERG  <wl@gnu.org>
7666         * doc/groff.texinfo: Minor fixes.
7668 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
7670         * devhtml/TR: Changed spacewidth to 3.
7672         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
7674         * tmac/tmac.html: Moved markup macros to tmap.arkup.
7676         * tmac/tmac.arkup: New file.
7678         * grohtml/ChangeLog: New file.
7680 1999-09-16  Werner LEMBERG  <wl@gnu.org>
7682         * doc/groff.texinfo (Common Features): Added Copying chapter.
7683         Changed format to @smallbook.
7685 1999-09-15  Werner LEMBERG  <wl@gnu.org>
7687         * NEWS: Added info about groff.texinfo.
7689         * doc/groff.texinfo: Will now compile (using texi2dvi) without
7690         warning messages.
7692 1999-09-14  Werner LEMBERG  <wl@gnu.org>
7694         * groff/groff.man: More updates.
7696 1999-09-13  Werner LEMBERG  <wl@gnu.org>
7698         * doc/groff.texinfo: New file.  This manual is still very
7699         rudimentary.  It has been originally contributed by Trent
7700         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
7701         additions by me.
7703         * INSTALL: Added information about the `doc' subdir
7705         * troff/troff.man: Minor fixes.
7707         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
7708         reordered options.
7710         * troff/input.cc (usage): Added missing `-ffam' to usage message.
7712         * Makefile.in (dist): groff-$(version).tar.gz must be removed
7713         also, otherwise it is included itself in another call of `make
7714         dist'.
7716         * groff/groff.cc (synopsis): Removed superfluous space.
7718         * PROJECTS, PROBLEMS, NEWS: Updated.
7720         * VERSION: Updated to 1.12beta.
7722         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
7724         * README: Updated: Included documentation about CVS repository,
7725         mailing lists, and daily snapshots.
7727         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
7729 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
7731         * tmac/tmac.an: If the tag didn't fit into the space that the
7732         macro `TP' specifies, the rest of the tag went into the space for
7733         the next line.
7735 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
7737         * grolj4/lj4.cc: Added duplex printing (option `-d').
7739         * grolj4/grolj4.man: Document duplex printing.
7741 1999-09-12  Werner LEMBERG  <wl@gnu.org>
7743         * doc/Makefile (pic.ps): Fixed rule which caused problems with
7744         non-GNUish sed programs.
7746         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
7747         definition.
7749         * configure.in (LIBS): Added `-lc'
7751         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
7753         * pic/tex.cc (solid_arc): Casting M_PI to double.
7755         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
7757         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
7758         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
7759         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
7761         * groff/groff_man.man: New file.  This manual page was originally
7762         written for the Debian GNU/Linux system by Susan G. Kleinmann
7763         <sgk@debian.org>.
7765         * eqn/list.cc (list_box::compute_metrics,
7766         list_box::compute_sublist_width): Removed variable declaration to
7767         avoid shadowing warnings.
7769         * grops/psrm.cc (resource_manager::process_file): Ditto.
7771         * tfmtodit/tfmtodit.cc (main): Ditto.
7773         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
7774         to avoid shadowing warnings.
7776         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
7777         shadowing loop variable.
7779         * groff/groff.man, troff/troff.man: Added doc about grohtml.
7781 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
7783         New grohtml frontend to convert groff input to html.
7785         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
7787         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
7789         * tmac/eqnrc: Added html device.
7791         * tmac/tmac.html: New file.
7793         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
7794         (troff_output::start_picture, troff_output::finish_picture),
7795         tbl/main.cc (process_input_file):
7796         Surrounded output with `graphics_start' and `graphics_end' so that
7797         the html driver can identify non-text portions.
7799         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
7800         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
7801         grotty/tty.ps (tty_printer::set_char): Additional parameter
7802         `name'.
7804         * include/printer.h: Class printer: New function
7805         set_char_and_width; new variables (is_char_named, is_named_set,
7806         named_command, named_char_s, named_char_n) to hold information
7807         about named characters -- needed by the html driver.
7809         * libdriver/printer.cc (printer::set_ascii_char,
7810         printer::set_special_char): Use set_char_and_width.
7812         * devhtml/*: New device files for html driver.
7814         * grohtml/*: New driver grohtml.
7816 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
7818         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
7819         default strings.
7821 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
7823         * libgroff/string.cc (search): Small fix to test against NULL
7824         pointer.
7826 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
7828         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
7829         \b'abc') were stacked in reverse order when processed in a
7830         diversion.
7832         * troff/node.h: Added `*last' to struct `node' to make the above
7833         fix work.
7835         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
7836         The default scale for the 'f' and 't' graphics functions were 'm'
7837         rather than 'u' (i.e., no scaling).
7839 1999-09-11  Peter Miller  <peterm@jna.com.au>
7841         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
7842         do_file), soelim/soelim.man: Added `-I file' option to soelim,
7843         defining include paths.
7845         * soelim/soelim.cc (include_path_append): New function.
7847 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
7849         * tbl/main.cc (process_options): Unix (at least Documenter's
7850         Workbench) tbl allows arbitrary non-alpha characters between
7851         options.
7853 1999-09-11  Paul Eggert  <eggert@twinsun.com>
7855         Y2k fixes.  Don't assume that the current year precedes 2000.
7857         * doc/meref.me: Add \n(y2, \n(y4.
7859         * tmac/doc-common (Yr): New number register.
7860         (Dd): Don't assume current year precedes 2000.
7862         * tmac/tmac.e (td): Likewise.
7863         (y2, y4): New number registers.
7865         * pic/pic.man: Update reference for pic paper to May, 1991
7866         version.
7868 1999-09-11  Werner LEMBERG  <wl@gnu.org>
7870         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7871         Removed quotation marks which prevented correct expansion of
7872         $(tmac_wrap).
7874         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
7876 1999-09-10  Werner LEMBERG  <wl@gnu.org>
7878         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
7879         `config.cache'.
7881         * Removed configure.old.
7883 1999-08-31  Werner LEMBERG  <wl@gnu.org>
7885         * VERSION: Updated to 1.11.1
7887 1999-05-27  Werner LEMBERG  <wl@gnu.org>
7889         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
7891         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7892         added quotations around $(tmac_wrap) to avoid syntax error if
7893         variable is empty.
7895         * configure: Newly generated using autoconf 2.13.
7897         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
7899 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
7901         * README, PROJECTS, NEWS, INSTALL, VERSION, 
7902         doc/Makefile. doc/pic.ms, groff/groff.man:
7903         Prepare for 1.11 release.  No code changes.
7904         Documentation for pic added (doc/pic.ms).
7906 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
7908         * Version 1.10 released.
7910 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
7912         * afmtodit/afmtodit.pl: Avoid comment on first line.
7914 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
7916         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
7917         * configure.in: Call it.
7919         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
7920         (distfiles): Doesn't depend on config.log or config.cache.
7922 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
7924         * grog/grog.sh: Use print "" rather than print in END rule.
7926 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
7928         * tbl/main.cc (process_data): Don't give error for excess data
7929         entries that are comments.
7931 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
7933         * tbl/main.cc (process_data): Fix case where new for-scope rules
7934         silently change meaning of code.
7936 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
7938         * troff/env.cc (hyphenate): Loop over all consecutive sequences
7939         of non-zero hyphenation codes.
7941 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
7943         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
7945 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
7947         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
7949 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
7951         * tmac/tmac.andoc: Make it work in compatibility mode.
7953         * refer/token.h (token_info::is_range_sep): New function.
7954         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
7955         * refer/ref.cc (reference::output): More sophisticated check for
7956         multiple pages.
7958         * devps/prologue.ps (MANUAL): New procedure.
7959         * grops/ps.cc (main): New -m option.
7960         (usage): Include -m.
7961         (ps_printer::~ps_printer): Implement -m.
7963         * aclocal.m4 (GROFF_G): New macro.
7964         * configure.in: Call it.
7965         * Makefile.in (g): Provided by configure.
7967         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
7969         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
7970         translations.
7972         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
7973         (tmac_m, tmac_s): Deleted.
7974         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
7975         tmac_s_prefix): New variables.
7976         (MDEFINES): Change accordingly.
7977         * Makefile.comm (.man.n): Use new TMAC_* variables.
7978         * configure.in (GROFF_TMAC): Call.
7979         * aclocal.m4 (GROFF_TMAC): Define.
7980         * tmac/Makefile.sub (stamp_wrap): New target.
7981         (install_data, uninstall_sub): Handle macro wrapping.
7983 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
7985         * tbl/main.cc (main): Ignore -T option.
7987 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
7989         * devlj4/generate/special.map: Add definition of \(nb.
7991         * tmac/tmac.dvi: Add definition of \(nb.
7993         * troff/dictionary.c (dictionary::dictionary): association::v gets
7994         initialized by association::association.
7996         * tmac/Makefile.sub: Avoid using temporary files when installing.
7998         * troff/env.cc (environment::set_font): Make bad font number a
7999         warning.
8001         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
8003         * Makefile.in (datadir): Use share rather than lib.
8005         * groff/groff.cc (basename): Rename to xbasename.
8007 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
8009         * Makefile (CCLIBS): Don't use.
8010         * Makefile.ccpg: Likewise.
8012         * acgroff.m4: Rename to...
8013         * aclocal.m4: Modify extensively for autoconf 2.
8014         * configure.in: Likewise.
8015         * Makefile.in: Likewise.
8017         * groff/pipeline.c (const): Declare as empty if __STDC__ not
8018         defined.
8019         (xstrsignal): Check for definition of NSIG. Conditionalize
8020         on SYS_SIGLIST_DECLARED.  Make return type const.
8022 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
8024         * troff/input.cc (interpolate_macro): Rephrase missing space
8025         warning.
8027 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8029         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
8030         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
8031         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
8032         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
8033         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
8034         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
8035         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
8036         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
8037         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
8038         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
8039         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
8040         Fix 'for' scoping.
8042 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
8044         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
8045         string_iterator.
8046         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
8047         file.
8048         (macro_iterator::macro_iterator): Add additional argument.
8050 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
8052         * troff/div.cc (vertical_size::vertical_size): In place of integer
8053         specifying line spacing use cunits specifying post vertical
8054         space.
8055         (macro_diversion::output, top_level_diversion::output): Likewise.
8056         * troff/div.h: Change declarations accordingly.
8057         * troff/env.cc (pending_output_line): Replace ls field by post_vs
8058         field.
8059         (pending_output_line::pending_output_line,
8060         pending_output_line::output, environment::output,
8061         environment::output_line, environment::output_title,
8062         environment::hyphenate_line):  In place of
8063         integer specifying line spacing use cunits specifying post vertical
8064         space.
8065         (environment::environment): Add post_vertical_spacing and
8066         prev_post_vertical_spacing arguments.
8067         (environment::get_post_vertical_spacing): New function.
8068         (environment::total_post_vertical_spacing): New function.
8069         (environment::post_vertical_spacing): New function.
8070         (init_env_requests): Initialize pvs request and .pvs register.
8071         * troff/env.h: Change declarations.
8073 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
8075         * tmac/tmac.pspic: Immediately remove the temporary file.
8077 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
8079         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
8080         height is specified.
8082 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
8084         * tbl/table.c (struct vertical rule, class table_entry): Use int
8085         not short for start_row and end_row.
8087 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
8089         * troff/input.cc (trapping_blank_line, blank_line_macro): New
8090         functions.
8091         (diverted_space_node::reread, process_input_stack): Call
8092         trapping_blank_line() rather than blank_line().
8093         (init_input_requests): Bind "blm" to blank_line_macro().
8095         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
8097 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
8099         * troff/env.cc (environment::possibly_break_line): Require that
8100         width total excluding width of final space node be greater than
8101         the target text length.
8103 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
8105         * troff/node.cc (kern_pair_node::vertical_extent): New function.
8107 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
8109         * troff/node.cc (charinfo_node): New class.
8110         (glyph_node, composite_node): Derive from charinfo_node.  Change
8111         member functions accordingly.
8113 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
8115         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
8117 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
8119         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
8121         * devps/generate/textmap (notsubset): Add.
8123         * tmac/tmac.a4: New file.
8125 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
8127         * pic/main.cc (had_parse_error): New variable.
8128         (do_picture, do_whole_file): Set had_parse_error if yyparse()
8129         returns non-zero.
8130         (main): Return 1 if had_parse_error is true.
8132 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
8134         * grolj4/lj4.cc (main): Avoid use of strtoul.
8136 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
8138         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
8139         iso_8859_1 or $LESSCHARSET is latin1.
8141 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
8143         * hpftodit: New directory.
8144         * Makefile.in (CCPROGDIRS): Add hpftodit.
8145         * devlj4/generate: New directory.
8147 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
8149         * configure.in: Don't use AC_VFORK.
8150         * groff/pipeline.c (run_pipeline): Use fork() always.
8152 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
8154         * grops/ps.cc (main): Use %1 not %s in error message for -w.
8156         * Makefile.in (CCPROGDIRS): Add grolj4.
8157         (DEVDIRS): Add devlj4.
8158         * grolj4, devlj4: New directories.
8159         * tmac/troffrc: Handle lj4.
8160         * tmac/tmac.lj4: New file.
8162 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
8164         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
8166 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
8168         * troff/input.cc (do_if_request): At end of second string, switch
8169         environments before getting next token.
8171 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
8173         * devps/psstrip.sed: Split rule that strips whitespace on either
8174         side of delimiters.
8176 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
8178         * troff/node.h (font_family::make_definition): Add return value to
8179         declaration.  * troff/symbol.h (symbol::operator==,
8180         symbol::operator!=): Likewise.
8182 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
8184         * groff/groff.cc (main, help, synopsis): Handle -S.
8185         (possible_command::insert_arg): New function.
8187         * tmac/tmac.safer: New file.
8188         * tmac/msafer.man: New file.
8189         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
8191 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
8193         * pic/pic.h, pic/main.cc (safer_flag): New variable.
8194         * pic/pic.y (placeless_element): Avoid unsafe operations if
8195         `safer_flag' is set.
8196         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
8198 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
8200         * eqn/lex.cc (get_token): Put call to add_context() in block to
8201         work around Sun C++ 4.0 bug.
8203         * include/stringclass.h (operator +): Use ?: instead of `if' to
8204         work around Sun C++ 4.0 bug.
8206 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
8208         * tbl/main.cc (process_format): Accept - as a synonym for the _
8209         key letter.
8211         * libbib/index.cc (minus_one): Don't declare as const.
8213 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
8215         * troff/input.cc (get_char_for_escape_name): Push back a newline.
8217 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
8219         * troff/input.cc (write_macro_request): New function.
8220         (init_input_requests): Bind write_macro_request to writem.
8222 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
8224         * tmac/tmac.s (@EN): Turn filling back on even if there was no
8225         equation.
8227         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
8229         * tmac/tmac.s (@TS): Renamed from TS.
8230         (TS): Call LP then TS again.
8231         (cov*ab-init): Alias @TS to TS.
8233         * tmac/tmac.s: Allow QP or RS to initialize.
8235         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
8236         Move initializations of PS and LL here.
8237         (par@init): Don't initialize HY.  Avoid changing environment 0.
8238         (par*env-init): Don't all par@reset.
8240 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
8242         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
8244 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
8246         * Makefile.in (MDEFINES): Add LDFLAGS.
8247         (LDFLAGS): Add definition line.
8249 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
8251         * troff/input.cc (get_optional_char): Split off error check into...
8252         (check_missing_character): New function.
8253         * troff/token.h: Declare it.
8254         * troff/env.cc (margin_character): Don't call get_optional_char.
8255         Only call tok.next() after making the node.
8257         * include/lib.h (getopt): Make 2nd argument char *const *.
8259 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
8261         * nroff/conftest.sh: Deleted.
8263 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
8265         * pic/make-dos-dist: Deleted.
8267 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
8269         * devps/psstrip.sed: Strip comments before stripping trailing
8270         white space.
8272 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
8274         * Version 1.09 released.
8276 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
8278         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
8280 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
8282         * libgroff/font.cc (font::load_desc): Fix typo in error message.
8284 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
8286         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
8287         about returning without a value.
8289         * troff/charinfo.h (charinfo::get_special_translation): Cast
8290         TRANSLATE_NONE to int.
8292         * refer/token.cc (lookup_token, store_token): Remove bogus loop
8293         test.  Fix test so that it works with n unsigned.
8295         * pic/pic.y (defaults_table): Fully bracket initializer.
8296         * pic/lex.cc (lookup_keyword): Likewise.
8297         * eqn/lex.cc (token_table, def_table): Likewise.
8298         * eqn/box.cc (param_table): Likewise.
8299         * troff/input.cc (warning_table): Likewise.
8300         * libgroff/font.cc (table): Likewise.
8301         * grops/ps.cc (ps_printer::special): Likewise.
8302         * grops/psrm.cc (resource_manager::process_file): Likewise.
8303         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
8304         * refer/command.cc (command_table): Likewise.
8305         * addftinfo/addftinfo.cc (param_table): Likewise.
8307         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
8308         about temp's being unused.
8309         (unused): New function.
8311         * groff/pipeline.cc: Declare c_fatal.
8313         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
8314         uchar.
8316         * libbib/index.cc (index_search_item::load): Prevent compiler
8317         warnings about fd_closer's being unused.
8318         (unused): New function.
8320 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
8322         * troff/input.cc (copy_mode_error): Make `prefix' static.
8323         Fix typo.
8325         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
8326         defined.
8327         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
8328         HAVE_CC_OSFCN_H and modify accordingly.
8330         * troff/input.cc (init_charset_table): radicalex overlaps
8331         horizontally.
8333         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
8334         udodo!hans@relay.NL.net).
8335         * groff/configure.in: Call it.
8337         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
8338         * groff/configure.in: Call it.
8339         * include/lib.h: Conditionalize declaration of pclose.
8341         * troff/div.cc (last_page_number): New global variable.
8342         (top_level_diversion::begin_page): Exit if we just printed the
8343         last page.
8344         * troff/div.h (last_page_number): Declare it.
8345         * troff/input.cc (parse_output_page_list): Set last_page_number.
8347         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
8348         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
8349         tmac/tmac.X: Likewise.
8350         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
8351         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
8353 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
8355         * tmac/doc-ditroff (hK): Remove groff specific code which
8356         prevented page-breaks between separate manual entries.  If this is
8357         the first page, don't set the page number to 1.
8359         * acgroff.m4 (GROFF_POSIX): New macro.
8360         * configure.in: Use it.
8362         * troff/node.cc (class real_output_file,
8363         real_output_file::real_output_file,
8364         real_output_file::~real_output_file): Conditionalize use of
8365         popen/pclose on POPEN_MISSING.
8366         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
8367         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
8368         (pipe_source): Similarily.
8370         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
8372         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
8373         presence of declarations by trying to compile example with
8374         conflicting declarations.  (gcc only gives a warning for missing
8375         declarations.)
8377 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
8379         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
8380         (from Ulrich Lauther).
8382 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
8384         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
8386 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
8388         * indxbib/indxbib.cc (write_hash_table): Add code for case where
8389         pointers and ints have different sizes.
8391 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
8393         * tmac/tmac.s (par*env-init): Call par@reset.
8395 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
8397         * tmac/tmac.s (@IP): Switch to a new environment when diverting
8398         tag.
8399         (par*push-tag-env, par*pop-tag-env): New macros.
8401 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
8403         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
8404         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
8406         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
8407         comment.  Include <time.h>.
8409 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
8411         * grops/ps.cc (is_small_h, is_small_v): Deleted.
8412         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
8413         lines.
8415 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
8417         * troff/input.cc (read_request): Only print a prompt if reading
8418         from the terminal.  Also clearerr on EOF if reading from the
8419         terminal.  Declare isatty.
8421 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
8423         * refer/label.y: Rename map_t to map_func and extractor_t to
8424         extractor_func.
8426 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
8428         * include/assert.h: Don't use volatile.
8429         * libgroff/assert.cc: Likewise.
8431 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
8433         * troff/input.cc (abort_request): Look at character in tok before
8434         calling get_copy().
8436 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
8438         * troff/troff.h (NO_RETURN): Deleted.
8439         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
8440         * troff/input.cc (exit_troff): Likewise
8442         * Makefile.in: Remove `Making ...' messages since GNU make now
8443         gives these. 
8445         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
8447 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
8449         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
8450         to constant 1 inch.
8452 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
8454         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
8456 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
8458         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
8459         MARK_REG if there was no left delimiter.
8461 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
8463         * pic/troff.cc (troff_output::text): Set line thickness to
8464         relative before outputting text.
8466         * tmac/tmac.e (@k): Don't zero ?T.
8467         ((z): Likewise.
8469 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
8471         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
8473 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
8475         * troff/input.cc (decode_args): Warn about unquoted tabs (from
8476         Paul Eggert).
8478 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
8480         * troff/input.cc (ignoring): New variable.
8481         (ignore): Set ignoring during call to do_define_macro.
8482         (do_define_macro): Clear ignoring before interpolating terminating
8483         macro.
8484         (copy_mode_error): New function.
8485         (get_char_for_escape_name, read_long_escape_name,
8486         interpolate_arg): Use copy_mode_error.
8487         (warning_table): Add WARN_IG.
8488         * troff/troff.h (WARN_IG): Declare.
8489         (WARN_TOTAL): Change accordingly.
8491         * groff/pipeline.c (strsignal): Rename to xstrsignal.
8492         * groff/groff.cc (strsignal): Delete declaration.
8494 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
8496         * troff/div.cc (page_offset): Use 'm' as default scaling.
8498 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
8500         * nroff/nroff.sh: Ignore -u.
8502 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
8504         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
8506 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
8508         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
8509         drawing box.
8510         (B2): With -Tascii, leave additional vertical space before
8511         and after. Ensure that the left and right indent is restored to
8512         what it was even if the point size changes.  Don't call
8513         par@finish. Change the indent, line length and title length
8514         directly.  With -Tascii, make the width of the box 1n less.
8515         (B1): Remember 1n at the current point size.  Don't call
8516         par@reset.  Change the indent, line length and title length
8517         directly.  Ensure that the temporary indent is preserved.
8518         (par*box-mark-top): Turn off no spacing mode.
8520 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
8522         * Makefile.in (dist): Use .gz suffix.
8524 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
8526         * troff/input.cc (main): Add return 0.
8527         * pic/main.cc (main): Use return instead of exit.
8528         * tbl/main.cc (main): Likewise.
8529         * eqn/main.cc (main): Likewise.
8530         * grops/ps.cc (main): Likewise.
8531         * grotty/tty.cc (main): Likewise.
8532         * groff/groff.cc (main): Likewise.
8533         * grodvi/dvi.cc (main): Likewise.
8534         * refer/refer.cc (main): Likewise.
8535         * indxbib/indxbib.cc (main): Likewise.
8536         * lkbib/lkbib.cc (main): Likewise.
8537         * soelim/soelim.cc (main): Likewise.
8538         * addftinfo/addftinfo.cc (main): Likewise.
8539         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
8540         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
8542         * troff/token.h (process_input_stack): Don't declare as static.
8543         * troff/input.cc: Likewise.
8545         * troff/node.c (invalidate_fontno): Make it a static member of
8546         class font_family.  Change callers.
8547         * troff/node.c: Change declaration.
8549         * tbl/main.cc (struct input_entry_format): Add explicit public
8550         specifier.
8551         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
8552         struct double_hline_stuff): Likewise.
8553         * tbl/table.h (struct entry_format): Likewise.
8554         * pic/object.h (struct saved_state): Likewise.
8556         * include/stringclass.h: Add forward declarations of friend
8557         functions that are later declared as inline.  Don't include inline
8558         specifier in friend declaration.
8560         * libgroff/lib.h: Declare popen and pclose.
8561         * acgroff.m4 (GROFF_POPEN): New macro.
8562         * configure.in: Call it.
8564         * include/lib.h (PI): New constant. Undef first if necessary.
8565         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
8566         * grops/ps.cc (degrees, radians): Likewise.
8567         * libgroff/font.cc (font::get_skew): Likewise.
8569         * grops/ps.cc (is_ascii): New function.
8570         (ps_output::put_string): Use is_ascii.  Use csprint rather than
8571         isprint.
8572         (ps_printer::define_encoding): Use csspace.
8573         * libgroff/strtol.c (ISASCII): New macro.
8574         (strtol): Cast arguments to is*() and tolower() to unsigned char.
8575         Use ISASCII rather than isascii.
8576         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
8577         * libgroff/cset.cc: Likewise.
8578         * libdriver/input.cc: Include cset.h.
8579         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
8580         than isdigit().
8582         * refer/refer.cc (main): Use %ld rather than %d for longs.
8584         * libbib/index.cc (index_search_item_iterator::get_tag): Use
8585         S_ISREG macro.
8587         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
8589 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
8591         * troff/input.cc (hyphenation_code): Skip white space between
8592         char/code pairs.
8594 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
8596         * tbl/table.h (table::entry_list_tailp): New member.
8597         (table::table): Initialize it.
8598         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
8599         behaviour.
8601 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
8603         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
8604         with negative horizontal positions. Remove casts of glyph::hpos to
8605         int.
8606         (USHRT_MAX): Delete definition.
8607         (SHRT_MAX, SHRT_MIN): New definitions.
8608         (glyph::hpos): Change type to short.
8609         (tty_printer::end_page): Output multiple backspaces if necessary.
8610          Remove casts of glyph::hpos to int.
8611         
8612 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
8614         * tmac/tmac.s (@RT): New definition.
8616 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
8618         * refer/refer.cc (do_file): Make sure current_filename is set when
8619         filename is "-".
8621         * pic/common.cc (common_output::dot_line): Handle zero length
8622         lines.
8624 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
8626         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
8627         (par@init): Initialize \n[HY].
8629 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
8631         * troff/dictionary.cc (dictionary::remove): Continue when
8632         r < j < i.
8634 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
8636         * Makefile.com (.y.cc): Avoid ending up with two versions of
8637         $(YTABH).
8639 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
8641         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
8642         (\(,C): Likewise.  Also fix typo.
8644 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
8646         * lib.h: Delete extraneous semi-colon.
8648         * Add pso request: `so' from a pipe.
8649         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
8650         (file_iterator::close): New function.
8651         (file_iterator::~file_iterator, file_iterator::next_file): Use
8652         file_iterator::close.
8653         (file_iterator::backtrace): Say `process' rather than `file' when
8654         the stream is popened.
8655         (pipe_source): New function.
8656         (init_input_requests): Bind ".pso" to pipe_source.
8658 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
8660         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
8662         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
8663         digits in lower case.
8665 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
8667         * Version 1.08 released.
8669         * Makefile.in (dist): Insert || true after ln -s commands that
8670         might fail.
8672         * mm: Update to mm 1.16.
8674         * acgroff.m4 (GROFF_CSH_HACK): New macro.
8675         * configure.in: Call GROFF_CSH_HACK.  Substitute for
8676         SH_SCRIPT_SED_CMD.
8677         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
8678         MDEFINES.
8679         * nroff/Makefile.sub (nroff): New target.
8680         (install_data): Install nroff.
8681         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
8682         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
8684 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
8686         * eqn/Makefile.sub (neqn): Add chmod +x.
8688         * grog/Makefile.sub (grog): Remove spurious semi-colon.
8690 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
8692         * troff/input.cc (string_iterator::string_iterator()): Initialize
8693         lineno and count.
8695 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
8697         * troff/div.cc (macro_diversion::space,
8698         top_level_diversion::space): Don't set high_water_mark.
8699         (macro_diversion::output, top_level_diversion::output): Don't
8700         include post line space in high water mark.
8702 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
8704         * eqn/eqn.y: Don't define YYDEBUG.
8705         * pic/pic.y: Likewise.
8707 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
8709         * tmac/tmac.e ([3): Add space after comma following editors.
8710         Change double spaces to single spaces.
8711         ([4): Change double spaces to single spaces.
8713         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
8714         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
8715         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
8716         after %!PS-Adobe- (for Newsprint).
8718         * troff/div.cc (top_level_diversion::begin_page): When
8719         before_first_page is 1, set page_number to 1.
8721 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
8723         * eqn/box.cc (box::top_level): Protect equation with \&.
8725 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
8727         * groff/groff.cc (possible_command::set_name): Delete old name.
8729         * groff/groff.cc (possible_command::~possible_command): Use
8730         a_delete.
8732         * troff/node.cc (troff_output_file::begun_page): New member.
8733         (troff_output_file::troff_output_file): Initialize it.
8734         (troff_output_file::really_begin_page): Only output V command if a
8735         page has been begun.
8737         * pic/pic.y (placeless_element): Delete argument to PRINT after
8738         use.
8740 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
8742         * Make wrapman work.
8743         * troff/div.h (class top_level_diversion): Replace
8744         first_page_begun by before_first_page (with opposite sense).
8745         * Change first_page_begun to before_first_page inverting sense.
8746         * troff/div.cc (class nl_reg): New class.
8747         (init_div_requests): Use class nl_reg for \n(nl.
8748         (top_level_diversion::begin_page): Don't call
8749         output_file::begin_page if before_first_page is 2;
8750         reset before_first_page afterwards.  If have_next_page_number is
8751         false, then always increment page_number.
8752         * tmac/tmac.an: Set traps within TH rather than at the top-level.
8753         Restore compatibility mode after loading, and then disable
8754         compatibility mode in TH.
8756 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
8758         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
8759         past last line.
8760         * troff/node.h (output_file::trailer): Declare.
8761         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
8762         * troff/node.cc (output_file::trailer): New function.
8763         (troff_output_file::~troff_output_file): Move most code into...
8764         (troff_output_file::trailer): New function.
8765         (class troff_output_file): Delete page_length member. Declare
8766         trailer().
8767         (troff_output_file::really_begin_page): Use current page length
8768         for final V command.
8770         * tbl/main.cc (struct options): New decimal_point_char member.
8771         (options::options): Initialize this.
8772         (process_options): Implement decimalpoint option.
8773         (process_data): Pass decimal_point_char option to table::table.
8774         * tbl/table.h (class table): New decimal_point_char member.
8775         (table::table): Add additional argument.
8776         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
8777         second argument specifying decimal point character.  Use this
8778         instead of '.'.
8779         (table::table): Initialize decimal_point_char.
8780         (table::add_entry): Change call to find_dot.
8782         * troff/input.cc (get_copy, token::next): Implement \V.
8783         (interpolate_environment_variable): New function.
8785 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
8787         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
8788         * pic/pic.y: Likewise.
8790         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
8791         Add casts to int.
8792         * refer/ref.cc (reference::insert_field, reference::delete_field):
8793         Likewise.
8794         * troff/number.cc (parse_term): Likewise.
8796         * acgroff.m4 (GROFF_PROG_YACC): New macro.
8797         * configure.in: Use GROFF_PROG_YACC.
8799         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
8800         and g++.
8801         * Makefile.in (OPTIMIZE): New define.
8802         (DEBUG): Empty by default.
8803         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
8805         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
8806         (GROFF_ARRAY_DELETE): Likewise.
8807         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
8809         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
8811         * devps/psstrip.sed: Use different delimiter on last line (so that
8812         it works with BSD 4.4 sed.)
8814 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
8816         * devps/psstrip.sed: Delete comments.
8818         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
8819         optind, opterr, optarg.
8820         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
8821         opterr, optarg.
8823 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
8825         * Makefile.in (check): Dummy target.
8827 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
8829         * Version 1.07 released.
8831         * Integrate mm 1.11.
8833         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
8834         where start_col was meant.
8836 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
8838         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
8840 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
8842         * troff/input.cc (token::next): Make \z\o'...' and similar things
8843         work.
8845         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
8846         constants.
8847         (environment): Add margin_character_flags member.
8848         * env.cc (environment::environment(symbol),
8849         environment::environment(const environment *): Initialize
8850         margin_character_flags.
8851         (margin_character): Rewrite.
8852         (environment::output_line): Add a margin character if
8853         margin_character_flags is non-zero.  Turn off the
8854         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
8855         zero, use margin_character_node without copying and then set
8856         margin_character_node to 0.
8858         * devps/DESC.in: Change minimum size to 1000.
8860 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
8862         * troff/symbol.h (symbol::hash): Change return type to unsigned
8863         long.
8864         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
8865         Add casts to int.
8867         * test-groff: Use -r rather than -x.
8869         * grops/psfig.diff: Include in distribution again.
8871 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
8873         * Makefile.in (dist): Use gzip.
8875 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
8877         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
8878         unistd.h as well as in stdlib.h.
8879         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
8880         defined; otherwise include <sys/types.h> and <unistd.h> if
8881         UNISTD_H_DECLARES_GETOPT is defined.
8883         * configure.in: use builtin(include, ... rather than include(...
8884         * configure: Regenerate with autoconf 1.3.
8886         * libdriver/print.cc (printer::adjust_arc_center): Use new
8887         algorithm suggested by Andy Fyfe.
8889         * libdriver/printer.cc (printer::adjust_arc_center): New function.
8890         * include/printer.h: Declare this.
8891         * grops/ps.cc (ps_printer::draw): Use it.
8892         * grodvi/dvi.cc (dvi_printer::draw): Use it.
8894 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
8896         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
8898 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
8900         * eqn/main.cc (main): Handle "eqn -".
8902 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
8904         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
8906         * mm: Integrate version 1.08.
8908         * pic/troff.cc (troff_output::finish_picture): Set
8909         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
8910         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
8911         if it's not defined. Check whether the register is non-zero rather
8912         than whether it's not defined.
8913         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
8915         * indxbib/indxbib.cc: Move all signal handling into...
8916         * indxbib/signal.c: New file.
8917         * configure.in: Call AC_RETSIGTYPE.
8919         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
8920         * configure.in: Call GROFF_STRUCT_EXCEPTION.
8921         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
8923         * troff/input.cc (token::token, token::operator=): Work round SGI
8924         C++ bug.
8925         * pic/object.cc (position::position): Likewise.
8927 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
8929         * pic/pic.h: Move declaration of hypot().
8931 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
8933         * pic/pic.h: Declare hypot().
8935         * pic/pic.h: Define M_PI if necessary.
8937 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
8939         * tmac/tmac.e (re): Add alternative version that doesn't use groff
8940         `.ta T' feature.
8942         * devps/prologue.ps (RE): Handle the possibility that the old font
8943         doesn't have a FontName entry.
8945 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
8947         * tmac/tmac.e (fam): Redefine to set family in environment 2.
8948         (@C): Use @fam not fam.
8950 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
8952         * lookbib/lookbib.cc (main): Change type of start to const char *.
8953         * lkbib/lkbib.cc (main): Likewise.
8955         * eqn/lex.cc (definition::definition): Don't use member
8956         initializer syntax for members of anonymous unions.
8958         * troff/input.cc (input_stack::backtrace): Change type of to const
8959         char *.
8961 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
8963         * include/stringclass.h (class string): Declare inline friend
8964         functions as inline in class declaration.
8965         * troff/hvunits.h (class hunits, class vunits): Likewise.
8966         * include/refid.h (class reference_id): Likewise
8967         * troff/troff.h (points_to_units(units), scale(units, double)):
8968         Delete declarations.
8969         * libdriver/input.cc (get_char): Delete declaration.
8970         * include/lib.h: Change 2nd argument of getopt from const char **
8971         to char **.
8972         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
8973         char **' before assigning to a `const char **'.
8974         * tbl/table.cc: Delete extra declarations of prints().
8976 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
8978         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
8979         char **' before assigning to a `const char **'.
8981         * libgroff/errarg.cc (errarg::errarg): Don't use member
8982         initializer syntax for members of anonymous unions.
8984 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
8986         * mm: Integrate version 1.07.
8988 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
8990         * troff/input.c (translate2): Rename to
8991         (translate_no_transparent).
8992         (init_input_requests): Rename tr2 to trnt.
8994 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
8996         * troff/charinfo.h (class charinfo): Add transparent_translate field.
8997         (charinfo::set_translation, charinfo::set_special_translation):
8998         Add second argument that specifies value for
8999         transparent_translate.
9000         (charinfo::get_translation, charinfo::get_special_translation):
9001         Add optional second argument that specifies whether translation is
9002         being used for transparent throughput.
9003         * troff/input.cc (charinfo::set_translation,
9004         charinfo::set_special_translation): Handle second argument.
9005         (charinfo::charinfo): Initialize transparent_translate.
9006         (translate): Split main part off into
9007         (do_translate): New function.  Pass argument saying whether
9008         translation applies to transparent throughput.
9009         (translate2): New request.
9010         (init_input_requests): Bind translate2 to `tr2'.
9012 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
9014         * tbl/table.h (class table): Add `nokeep' flag.
9015         * tbl/main.cc (process_options): Handle `nokeep' option.
9016         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
9017         table::do_bottom): Don't output keep/release macro definitions or
9018         calls when `nokeep' option has been specified.
9020 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
9022         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
9024 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
9026         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
9027         block_entry::divert, alphabetic_block_entry::divert): Add extra
9028         argument giving column separation.
9029         (table::compute_widths): Pass column separation to
9030         table_entry::divert().
9031         (block_entry::do_divert): If an entry spans multiple columns and a
9032         minimumum width has been specified for each column, then set the
9033         line length to the sum of the widths (plus possibly the column
9034         separations).
9036         * troff/input.cc (set_escape_char): Don't set the escape_char
9037         until after calling has_arg().
9039 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
9041         * tbl/table.cc (table::do_top): Add missing \s0 for double box
9042         case.
9044         * tbl/table.cc (table::print_double_hline): Avoid extra new line
9045         in case where r > nrows - 1.
9047         * tbl/table.cc (BODY_HEIGHT): Deleted.
9048         (LINE_SEP): New definition.
9049         (table::print_single_hline, table::print_double_hline,
9050         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
9051         table::do_row, table::do_top): Use LINE_SEP space before a line
9052         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
9054         * tbl/table.cc (text_entry::print_contents): New function.
9055         (text_string_name, right_text_string_name): Deleted.
9056         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
9057         (simple_text_entry::do_width, numeric_text_entry::do_width,
9058         alphabetic_text_entry::do_width): Don't store the contents of the
9059         entry in a string.
9060         (left_text_entry::simple_print, right_text_entry::simple_print,
9061         center_text_entry::simple_print,
9062         alphabetic_text_entry::simple_print,
9063         numeric_text_entry::simple_print): Print the entry directly
9064         instead of using the stored string.
9066 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
9068         * devps/Makefile: Strip PostScript files.
9069         * devps/prologue: Rename to...
9070         * devps/prologue.ps.
9071         * devps/psstrip.sed: New file.
9072         * devps/download: Use .pfa rather than .ps for installed versions
9073         of fonts.
9075 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
9077         * troff/env.cc (input_trap): Give a warning if the argument is out
9078         of range.
9080         * troff/env.cc (adjust): Treat negative argument as missing. Round
9081         argument > 5 down to 5.
9083         * troff/env.cc (center, right_justify): Make negative argument zero.
9085         * troff/div.cc (page_offset, vertical_position_traps): Treat
9086         invalid argument as missing.
9087         * troff/env.cc (line_spacing, line_length, title_length, indent,
9088         underline, hyphen_line_max_request, control_char,
9089         no_break_control_char, widow_control_request, adjust, input_trap,
9090         point_size): Likewise.
9091         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
9092         constant_space): Likewise.
9093         * troff/input.cc (compatible, shift, warn_request,
9094         set_escape_char): Likewise.
9096         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
9097         * tbl/table.cc (table::table): Likewise.
9099         * Makefile.dev (install_dev): depends on $(DEVFILES).
9101 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
9103         * devX75, devX75-12, devX100, devX100-12: New directories.
9104         * Makefile.in: Add these to DEVDIRS.
9106         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
9107         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
9108         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
9109         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
9110         targets.
9111         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
9112         (uninstall): New target.
9113         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
9114         uninstall_prog, uninstall_dev): New targets.
9116         * troff/div.cc (return_request): Treat an invalid argument as
9117         missing.
9119 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
9121         * tmac/tmac.e ((f): Set up the environment even when there's a
9122         current diversion.  Transperently throughput a call to @N.
9123         (@N): New macro.
9125 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
9127         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
9128         up to vertical resolution.
9130         * tbl/table.cc (table::do_row): Change row number after printing
9131         stuff list.
9133         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
9135 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
9137         * Rename CHANGES to NEWS.
9139 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
9141         * libgroff/new.cc (operator new): Avoid calling malloc(0).
9143 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
9145         * man.ultrix: Removed.
9147 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
9149         * Makefile.comm (extraclean): Delete files whose names begin with
9150         `='.
9152         * pic/troff.cc (troff_output::text): Fix typo in implementation of
9153         aligned text.
9155 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
9157         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
9158         * troff/div.cc (page_length, need_space, space_request): Treat
9159         invalid optional argument as missing.
9160         * troff/env.cc (number_lines): If the first argument is present
9161         but not a number, turn on line numbering, don't change the next
9162         line number and parse the remaining arguments.
9164         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
9166 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
9168         * eqn/box.h: Change declaration accordingly.
9169         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
9170         the specified size was bad but don't give an error.  Check for
9171         overflow.
9172         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
9173         * eqn/lex (do_size): Likewise.
9175 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
9177         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
9178         compatible headers.
9180 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
9182         * tbl/table.cc (table::init_output): Improve error message when
9183         table won't fit on one page.
9185 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
9187         * pic/troff.cc (troff_output::start_picture): Generate line
9188         containing a horizontal motion equal to the width of the picture.
9190         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
9191         using GROFF_COMMAND_PREFIX environment variable.
9193 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
9195         * mdate.sh: Use $NF rather than $(NF).
9197 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
9199         * pic/main.cc (main):  Use %1 not %c in argument to warning.
9201         * eqn/main.cc (main): Output code to check that geqn was given the
9202         correct -T option.
9204 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
9206         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
9207         `ln -s ../Makefile .; make; rm -f Makefile'.
9209         * troff/hyphen: Rename to...
9210         * troff/hyphen.us:
9211         * troff/input.cc (main): Delete -H option. Don't call
9212         read_hyphen_file().
9213         * troff/env.cc: Include searchpath.h and macropath.h.
9214         (exception_dictionary): Deleted.
9215         (ht): Deleted.
9216         (read_hyphen_file): Deleted.
9217         (hyphenation_language): New struct.
9218         (class trie, class hyphen_trie): Move declarations up.
9219         (trie_node::~trie_node): Deleted.
9220         (trie::delete_trie_node): New function.
9221         (trie::do_delete): New pure virtual function.
9222         (hyphen_trie::do_delete): New function.
9223         (trie::~trie): New function.
9224         (hyphen_trie::~hyphen_trie): New function.
9225         (trie::clear): No need to chcek that tp is not 0.
9226         (current_language, language_dictionary): New variables.
9227         (hyphen_word): Give an error if no current language.  Use
9228         exceptions dictionary in current language.
9229         (hyphen_trie::read_patterns_file): Find file using macro_path.
9230         Allow comments (starting with %) in patterns file.  Don't make it
9231         a fatal error if the file can't be found.
9232         (hyphenate): Return if no current language.  Get the exceptions
9233         dictionary and the hyphenation patterns from the current language.
9234         (set_hyphenation_language): New variable.
9235         (hyphenation_patterns_file): New function.
9236         (hyphenation_language_reg): New class.
9237         (hyphenation_language_reg::get_string): New function.
9238         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
9239         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
9240         register.
9241         * groff/groff.cc (main, help, synopsis): Delete -H option.
9242         * include/Makefile.sub: Don't define HYPHENFILE.
9243         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
9244         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
9245         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
9246         hyphenation patterns.
9248 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
9250         * eqn/neqn.sh: New file.
9251         * eqn/Makefile.sub: Handle neqn.sh.
9253         * eqn/eqn.h: Declare `nroff' variable.
9254         * eqn/box.cc (param_table): Add `nroff' param.
9255         (nroff): Define it.
9256         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
9257         variable.
9258         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
9260         * troff/troff.h (WARN_FONT): New warning.
9261         (WARN_TOTAL): Change accordingly.
9262         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
9263         (warning_table): Add WARN_FONT.
9264         * troff/node.cc (mount_font_no_translate): Pass argument to
9265         font::load_font.  If this is non-zero, give a warning.
9266         Don't give an error message when accessing a font that has already
9267         been found to be invalid.
9268         * include/font.h (font::load, font::load_font): Add additional
9269         optional argument which suppresses error message if the font is
9270         not found.
9271         * libgroff/font.cc (font::load_font): Handle additional argument.
9272         (font::load): Add additional argument. If this is non-null, set it
9273         to 1 and don't give error message.
9275         * include/printer.h (printer::end_page): Add argument giving
9276         length of page.
9277         * libdriver/input.cc (do_file): Pass this.
9278         * grops/ps.cc (ps_printer::end_page): Add argument.
9279         * grodvi/dvi.cc (dvi_printer::end_page,
9280         draw_dvi_printer::end_page): Add argument.
9281         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
9282         columns_per_page members. New member nlines.
9283         (DEFAULT_LINES_PER_PAGE): Deleted.
9284         (tty_printer::tty_printer): Don't compute lines_per_page from
9285         font::paperlength. Don't compute columns_per_page from
9286         font::paperwidth.
9287         (tty_printer::add_char): Don't check horizontal position against
9288         columns_per_page. Grow glyphs vector if neccessary.
9289         (tty_printer::end_page): Add argument giving page_length in units.
9290         Discard lines past end of page.
9292 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
9294         * tmac/tmac.tty-char: Fix definition of \(/l.
9296         * tmac/tmac.X: Define \(en.
9298 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
9300         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
9301         lpq, then use lp rather than lpr.
9303         * tmac/tmac.s (par@reset): Don't call `ad'.
9304         (par*env-init): Call `ad'.
9306 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
9308         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
9309         date.
9311         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
9312         * indxbib/indxbib.cc: Likewise.
9314 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
9316         * libgroff/putenv.c: New file.
9317         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
9318         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
9319         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
9320         stdlib.h with AC_HAVE_HEADERS.
9322 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
9324         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
9325         does not exist.
9327 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
9329         * eqn/box.cc (gsize): Make it an int.
9330         (set_gsize): Parse argument handling increment or decrement.
9331         (box::top_level): Convert gsize to a string.
9333         * troff/input.cc (exit_troff): Make buf unsigned char [].
9334         Call to make_temp_iterator casts buf to char*.
9336         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
9338         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
9339         * Makefile.cpg (depend.temp): Likewise.
9341         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
9343         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
9345 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
9347         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
9349 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
9351         * Version 1.06 released.
9353         * Integrate mm 1.04.
9355 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
9357         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
9359 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
9361         * afmtodit/afmtodit.pl: Add -n option that disables generation of
9362         ligatures command.
9363         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
9364         afmtodit. Regenerate.
9366         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
9367         @f back past the current position.
9369         * tmac/tmac.e: Change calls to @R so that comments are not part of
9370         arguments.
9372 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
9374         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
9376         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
9377         check that we can link a call to a function declared in <stdio.h>.
9378         (GROFF_UNISTD_H): New macro.
9379         * configure.in: Call it.
9380         * Makefile.in: Document it.
9381         * include/posix.h: New file.
9382         * troff/troff.h: Don't include <osfcn.h>
9383         * troff/input.cc: Include posix.h.
9384         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
9385         osfcn.h.
9386         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
9387         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
9388         <fcntl.h>.
9389         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
9390         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
9391         * libbib/search.cc (O_RDONLY): Delete definition.
9392         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
9393         Don't include <osfcn.h>.
9395         * acgroff.m4 (GROFF_TIME_T): New macro.
9396         * configure.in: Call it.
9397         * Makefile.in: Document it.
9399         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
9400         * configure.in: Call it.
9401         * Makefile.in: Document -DTRADITIONAL_CPP.
9402         * include/ptable.h: Don't include generic.h.
9403         (name2): Define it.
9405         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
9406         Afterwards remove [T1 and [T2.
9407         (ref*spec!0, ref*spec!2): Use T1 rather than T.
9408         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
9409         (ref*add-T2): Renamed from ref*add-T.
9410         (ref*add-T1): New macro.
9412 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
9414         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
9416         * libbib/index.cc: Include <fcntl.h>.
9417         (O_RDONLY): Define if necessary.
9418         (make_index_search_item, index_search_item_iterator::get_tag,
9419         index_search_item::check_files): Use O_RDONLY.
9420         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
9421         (O_RDONLY): Define if necessary.
9422         (search_list::add_file): Use O_RDONLY.
9423         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
9424         <sys/stat.h>.
9425         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
9426         (main): Use these.
9428         * libbib/index.cc (S_ISREG): Define it if necessary.
9429         (index_search_item::load): Use S_ISREG.
9431         * include/driver.h: Include <errno.h>.
9433 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
9435         * eqn/box.cc (body_height): Increase default value to 85.
9436         (body_depth): Increase default value to 35.
9438 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
9440         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
9441         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
9442         protected from expansion with \E.
9444         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
9446         * Makefile (Makefile): New target.
9448         * Makefile.sub (configure, distfiles): New targets.
9450         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
9451         construct.
9453 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
9455         * eqn/box.cc (param_table): Add body_height and body_depth.
9457         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
9459 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
9461         * psbb/Makefile.sub: Don't link with libgroff.a.
9463         * acgroff.m4 (GROFF_PUTENV): New macro.
9464         * configure.in: Call GROFF_PUTENV.
9465         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
9466         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
9467         is defined.
9469         * troff/env.cc (distribute_space): Rename force_forward argument
9470         to force_reverse.  Reverse the list if force_reverse is true.
9472 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
9474         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
9476         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
9477         height or depth to be negative.  Guard against SUP_RAISE quantity
9478         being negative.
9480 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
9482         * devps/generate/textmap: Add `an' (arrowhorizex).
9483         * tmac/tmac.ps: \(an overlaps horizontally.
9484         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
9486         * devps/symbolchars: Add arrowverttp, arrowvertbt.
9487         * devps/textmap: Add arrowvertex.
9488         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
9489         updownarrow delimiters.
9490         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
9492         * tbl/table.cc (simple_entry::position_vertically,
9493         block_entry::position_vertically):  For a centered entry, perform
9494         the motion in two stages.
9496         * refer/refer.cc (split_punct): Don't call lookup_token if there
9497         is no token.
9499 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
9501         * troff/input.cc (token::next): Delete token_node after copying
9502         token.
9504         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
9505         cur_point_size.
9507         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
9509         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
9511 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
9513         * grops/ps.cc (usage): -b option takes an argument.
9515         * devps/prologue (PLG): New procedure.
9516         * grops/ps.cc (main, usage): New -g option.
9517         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
9518         length using PLG.
9520 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
9522         * include/cset.h: Include <limits.h> if we have it.
9524         * libgroff/illegal.cc: New file.
9525         * include/lib.h (illegal_input_char): Use table.
9526         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
9527         * pic/lex.cc (ARG1): Renumber to 14.
9528         * eqn/lex.cc (ARG1: Likewise.
9530         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
9531         (eg 1.05.90) correctly.
9533 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
9535         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
9536         Rename $r and $R registers to $v and $V.
9537         ($r, $R): Initialize to 0.
9538         (@v, @V): New macros.
9539         (sz): Call @v.
9540         (@M): Call @V.
9542         * troff/input.cc (main, usage): Add -R option that says not to
9543         load troffrc.
9544         * eqn/main.cc (main, usage): Rename -n to -R.
9546 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
9548         * devps/DESC.in: Leave font positions 5-9 blank.
9549         * devdvi/DESC.in: Likewise.
9551         * grog/grog.pl: Handle `.PS <file' correctly.
9553         * troff/input.cc (input_stack::push): Improve error message when
9554         input stack limit exceeded.
9556 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
9558         * refer/refer.cc (main): Fix typo in handling of `a' option.
9560         * refer/refer.cc (do_bib): In state START after a newline remain
9561         in state START.
9563         * groff/groff.sh: Deleted.
9564         * groff/Makefile.sub: Delete handling of groff.sh.
9566         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
9567         to determine whether to use \X'ps:...'.
9568         * tmac/troffrc: Set 0p register to 0.
9569         * tmac/tmac.ps: Set 0p register to 1.
9571         * groff/groff.cc: Support -X option. Give warning for -TXps and
9572         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
9573         * tmac/troffrc: Support -r.X=1.
9575         * pic/troff.cc (troff_output::dot): Don't test
9576         zero_length_line_flag.
9578 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
9580         * include/lib.h: Declare getopt() and friends unless
9581         STDLIB_H_DECLARES_GETOPT is defined.
9583         * doc/chars.tr: Delete.
9584         * man/groff_char.man: New file.
9586 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
9588         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
9589         user has changed register format.
9591 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
9593         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
9594         `postpro' command in DESC file.  Get spooler command from `print'
9595         command in DESC file.  Execute spooler command with /bin/sh.
9597         * groff/groff.cc: Split Unix-specific parts into...
9598         * groff/pipeline.c: New file.
9600         * LICENSE: Delete.
9601         * COPYING: New file.
9602         * all files: Update copyright notices.
9604         * Rearrange files.  Redo Makefiles.  Use autoconf.
9606 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
9608         * troff/input.c (charinfo_to_node_list): Interpret character
9609         definition with escape_char of `\'.
9611 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
9613         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
9614         Define INT_DIGITS as big enough for 64-bit integer.
9615         * lib/strtol.c: Don't include lib.h.
9616         * lib/lib.h: Delete ifdef __cplusplus stuff.
9618 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
9620         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
9621         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
9622         get DESC from current directory.
9624 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
9626         * tbl/main.c (main): Always reset the line number when reading
9627         from stdin.
9629         * tbl/table.c (table::print_single_hline, table::print_double_hline,
9630         table::define_bottom_macro, table::do_row, table::do_top): Round
9631         vertical spacing up to vertical resolution.
9633 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
9635         * ps/ps.h (enum resource_type): Avoid comma at end of
9636         enumerator-list.
9637         * dvi/dvi.c (class dvi_printer): Likewise.
9638         * dvi/tfmtodit.c (gf::load): Likewise.
9639         * refer/label.y (struct expression): Likewise.
9640         * refer/refer.c (class label_processing_state): Likewise.
9641         * refer/indxbib.c (do_file): Likewise.
9642         * troff/troff.c (enum warning_type): Likewise.
9643         * tbl/main.c (process_data): Likewise.
9644         * troff/charinfo.h (class charinfo):
9646 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
9648         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
9650 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
9652         * groff.c: Move to new groff subdirectory.
9653         * groff/Makefile: New file.
9654         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
9656         * man/mdate.sh: Use ls -L if supported.
9658         * Consolidate all header files produced by gendef into lib/defs.h.
9659         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
9660         Don't include path.h.
9661         * lib/Makefile (path.h): Don't generate.
9662         * troff/input.c: Include defs.h. Don't include config.h.
9663         * troff/Makefile (config.h): Don't generate.
9664         * refer/index.h: Don't include suffix.h.
9665         * refer/index.c: Include defs.h.
9666         * refer/indxbib.c: Include defs.h.
9667         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
9668         defs.h.
9669         * refer/Makefile (suffix.h, path.h): Don't generate.
9670         * groff.c: Don't include config.h. Include defs.h.
9671         * Makefile (config.h): Don't generate.
9672         (lib/defs.h): Generate.
9673         (topclean): Remove lib/defs.h.
9675 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
9677         * lib/malloc.c, lib/getpagesize.h: Deleted.
9678         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
9679         related stuff.
9680         * lib/Makefile: Delete malloc-related stuff.
9681         * lib/new.c: Workaround COOKIE_BUG if necessary.
9683         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
9684         needed header files directly.
9685         * refer/refer.h: Omit definition of DEFAULT_INDEX.
9686         * Makefile: Include definition of DEFAULT_INDEX in path.h.
9688 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
9690         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
9691         argument.
9692         * lib/font (font::load_desc, font::load): Don't split argument of
9693         unknown command.
9694         (font::handle_unknown_font_command): Change type.
9695         * ps/ps.c (ps_font::handle_unknown_font_command,
9696         handle_unknown_desc_command): Change type.
9697         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
9699 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
9701         * lib/font.h (font::handle_unknown_font_command): Add file and
9702         line arguments.
9703         * lib/font.c (font::handle_unknown_font_command):
9704         * ps/ps.c (ps_font::handle_unknown_font_command):
9705         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
9706         lineno arguments.  Use _with_file_and_line functions for error
9707         reporting.
9709         * lib/fontfile.c (font::unknown_desc_command_handler): New static
9710         data member.
9711         * lib/font.c (font::set_unknown_desc_command_handler): New
9712         function.
9713         (font::load_desc): For unknown commands, call
9714         unknown_desc_command_handler if not null.
9715         * lib/font.h (class font): Declare them.
9716         (FONT_COMMAND_HANDLER): New typedef.
9717         * ps/ps.c (handle_unknown_desc_command): New function.
9718         (main): Set bflag if we had a -b option. Call
9719         font::set_unknown_desc_command_handler.
9720         (broken.h): Don't include.
9721         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
9722         submake 
9723         * ps/devps/Makefile: Add `broken' command to DESC file using
9724         BROKEN_SPOOLER_FLAGS.
9726         * macros/tmac.e ([, ]): Add as synonyms for { and }.
9728         * macros/tmac.e ($p): Only exdent if \$3 > 0.
9730         * macros/tmac.e (@R, @S): New macros.
9731         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
9732         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
9733         Declare $H, $[0-9], .. macros with @S.
9734         Declare |0, |1, |2, |3 strings with @S.
9736         * macros/tmac.e (@S): Rename to @U.
9738         * macros/tmac.e (@z): Define @b and bp as empty instead of
9739         deleting them,
9741         * macros/tmac.e (@m): Deleted.
9742         (@h): Don't call @m.
9743         (@z): Don't set @m trap.
9745         * macros/tmac.e ($h, $f): Define |z as empty string.
9747         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
9748         (@q): Likewise.
9750         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
9751         removing them.
9752         ()f): Likewise for * register.
9754         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
9755         argument is missing, don't change $R.  Call sr with three
9756         arguments when initializing.
9758 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
9760         * macros/tmac.e (sr): New macro.
9761         Initialize $r and $R using sr.
9763         * macros/tmac.e (,): Delete \*(#[.
9765         * troff/env.c (set_tabs): Read the tab type even if the position
9766         is bad.  Allow the position of the first tab stop to be negative.
9768 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
9770         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
9771         _POSIX_VERSION.
9772         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
9773         rather than -DPATHCONF_MISSING.
9774         * Makefile: Get rid of PATHCONF_MISSING.
9776         * refer/map.c: New file.
9777         * refer/index.c: Interface to mmap through map.c.  Rename map_size
9778         to map_len.
9779         * refer/Makefile: Handle map.c.
9780         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
9782 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
9784         * Makefile: RANLIB should be `true' if there is no ranlib.
9785         * lib/Makefile (libgroff.a): Simplify.
9786         * driver/Makefile (libdriver.a): Simplify.
9788         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
9789         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
9790         defined.
9792 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
9794         * troff/env.c (compare_ranges): Declare as extern "C".
9796         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
9798         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
9800 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
9802         * pic/troff.c (troff_output::text): Merge in grops_output::text,
9803         but conditionalize use of \X based on \*(.T.
9804         (grops_output::*): Deleted.
9805         * pic/output.h: Delete declaration of make_grops_output.
9806         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
9807         by default. -n sets it to 0.
9808         (usage): Corresponding changes.
9809         * groff.c (main): Don't pass -x or -p to pic.
9810         * groff.sh: Likewise.
9812         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
9813         to be non-zero.
9815         * ps/devps/afmtodit: Change calculation of asc_boundary and
9816         desc_boundary.  Make these bounds inclusive.
9817         * ps/devps: Regenerate font files.
9819 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
9821         * macros/tmac.latin1: New file.
9822         * macros/tmac.tty-char: Use tmac.latin1.
9823         (tmac.tty-tr): Deleted.
9824         * macros/Makefile: Install tmac.latin1.
9825         * macros/tmac.dvi: Use tmac.latin1.
9826         * macros/troffrc: Translate \[char160] onto no-break space here.
9827         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
9829 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
9831         * macros/tmac.Xps: Use `do' request.
9833         * macros/tmac.ps: Use `do' request.
9835         * macros/tmac.e (@C): Use `do' request.
9837         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
9838         * macros/Makefile: Install tmac.X*.
9840         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
9841         * tty/Makefile: Don't install tmac.tty*.
9842         * macros/Makefile: Install tmac.tty*.
9844         * dvi/tmac.dvi: Move to macros.
9845         * dvi/Makefile: Don't install tmac.dvi.
9846         * macros/Makefile: Install tmac.dvi.
9848         * ps/tmac.ps*: Move to macros.
9849         * ps/Makefile: Don't install tmac.ps*.
9850         * macros/Makefile: Install tmac.ps*.
9852         * eqn/box.c: Provide draw_lines parameter corresponding to -D
9853         option.
9854         * macros/eqnrc: Set draw_lines parameter based on device.
9855         * groff.c: Don't pass -D flag to eqn.
9856         * groff.sh: Likewise.
9857         * eqn/main.c: Warn about use of -D.
9859         * troff/input.c (process_startup_file): New function.
9860         (main): Call process_startup_file().
9861         * macros/troffrc: New file.
9862         * macros/Makefile: Install troffrc.
9863         * groff.c (main): Don't pass extra -m option to troff. For a 
9864         pseudo device pass the name of the pseudo device to troff using
9865         -d.
9866         * groff.sh: Likewise.
9867         * groff.c (possible_command::prepend_arg): Deleted.
9869         * troff/input.c (do_request): New function.
9870         (init_input_requests): Bind "do" to do_request.
9872         * eqn/main.c (main): Instead of loading eqnchar from device directory,
9873         load eqnrc from macro directory.
9874         * macros/eqnrc: New file.
9875         * macros/Makefile: Install eqnrc.
9876         * ps/devps/eqnchar: Deleted.
9877         * ps/devps/Makefile: Don't install eqnchar.
9878         * dvi/devdvi/eqnchar: Deleted.
9879         * dvi/devdvi/Makefile: Don't install eqnchar.
9880         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
9881         variable optM.
9883         * lib/device.[ch]: New files.
9884         * lib/font.h (font::set_device_name, font::get_device_name):
9885         Deleted.
9886         * lib/fontfile.c: Use device.h.
9887         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
9888         * troff/input.c: Delete definition of `device'.
9889         (main): Don't initialize device.
9890         * troff/troff.h: Include device.h rather than declaring device.
9891         * troff/Makefile: No need to handle DEVICE.
9892         * driver/input.c: Include device.h. Don't use
9893         font::{set,get}_device_name.
9894         * groff.c, Makefile: Rename device.h to config.h.
9895         * groff.c: Use library device variable.
9896         * eqn/main.c: Use library device variable.
9897         * eqn/Makefile: No need to handle DEVICE.
9899         * lib/searchpath.[ch]: New files.
9900         * lib/Makefile: Handle searchpath.[ch].
9901         * troff/input.c (open_file, init_dirs): Deleted.
9902         (macro_dirs): Deleted.
9903         (open_mac_file, macro_source): Use class search_path.
9904         (add_string, struct string_list): Move definition.
9905         (main): Change -M option to use macro_path. Delete call to
9906         init_dirs().
9907         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
9908         Rewrite to use class search_path.
9909         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
9910         * lib/Makefile: fontfile.c depends on searchpath.h.
9911         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
9912         MACROPATH.
9913         * lib/macropath.[ch]: New files.
9914         * troff/Makefile: No need to handle MACROPATH.
9916         * troff/input.c: Delete DUMP code.
9917         * lib/fontfile.c, lib/font.h: Delete
9918         font::forget_command_line_font_dirs.
9920         * troff/input.c (push_token): New function.
9921         (handle_first_page_transition): Use push_token().
9922         (process_input_stack): Change handling of a space at the beginning
9923         of the line.
9925 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
9927         * troff/input.c (font_dirs): Delete unused variable.
9929         * eqn/lex.c (do_set): Correct error messages.
9931 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
9933         * troff/input.c (do_define_string): Allow the string name to be
9934         followed immediately by a tab.
9935         (define_character): Likewise.
9937 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
9939         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
9940         be negative.
9942         * troff/input.c (input_iterator::is_file): New virtual function.
9943         (file_iterator::is_file): New function.
9944         (input_stack::end_file): New function.
9945         (input_stack::next_file): Handle the situation where there is no
9946         file on the input stack correctly.  Avoid making two passes over
9947         the input stack.
9948         (next_file): Make the filename optional; in this case call
9949         input_stack::end_file().
9951 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
9953         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
9954         produce a real _ charater when the current font is CW and _
9955         otherwise.
9957         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
9958         expression to work around gcc 2.2 bug.
9960 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
9962         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
9964         * troff/env.c (environment::add_padding): New function.
9965         (environment::add_char): Use add_padding().
9966         (environment::space): Likewise.
9967         (environment::wrap_up_field): Add some padding if there is none
9968         and there's no current tab.
9969         * troff/env.h: Declare environment::add_padding.
9971 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
9973         * pic/pic.y: undef fmod and rand before declaring them.
9975 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
9977         * troff/input.c (main): If the DESC file specifies a font name of
9978         0, then leave the corresponding font position empty.
9980         * nroff.sh: New file.
9981         * Makefile (install.nobin): Install nroff.sh.
9983         * tty/devlatin1/R.proto: Add ao as synonym for de.
9984         * tty/tmac.tty-char: Define ao as o.
9986         * tty/dev{ascii,latin1}/R.proto: Add aq.
9987         * tty/tmac.tty-char: Delete definition of aq.
9989 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
9991         * troff/input.c (init_charset_table): Don't translate 0240.
9992         * ps/tmac.ps: Translate char160 to space.
9993         * dvi/tmac.dvi: Likewise.
9994         * tty/tmac.tty: Likewise.
9996 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
9998         * dvi/tmac.dvi: Add support for all Latin-1 characters.
10000         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
10001         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
10002         \(oe, \(r?, \(r!.
10004         * tty/tmac.tty-char: Add \(ah.
10006         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
10007         No need to define \(FM and \(!/. Conditionalize all character
10008         definitions.
10010         * ps/devps/lgreekmap: Add +h, +f, +p.
10012         * ps/tmac.psnew: New file.
10013         * ps/Makefile: Install tmac.psnew.
10015         * troff/input.c (charinfo_to_node_list): Don't ever interpret
10016         character definitions in compatible mode.
10018         * troff/input.c (remove_character): New function.
10019         (init_input_requests): Bind remove_character to "rchar".
10021         * ps/tmac.psold: New file.
10022         * ps/Makefile: Install tmac.psold.
10023         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
10024         characters into tmac.psold.  Make these definitions unconditional.
10026         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
10028         * ps/tmac.ps: Don't define \('c and \('C.
10030         * ps/devps/textmap: Move Greek characters to...
10031         * ps/devps/symbolchars:
10033 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
10035         * ps/devps/text.enc: Add quotesingle.
10036         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
10037         * tty/tmac.tty-char: Likewise.
10038         * dvi/devdvi/texmi.map: Add +h, +f, +p.
10039         * dvi/devdvi/texi.map: Add Fn.
10040         * dvi/devdvi/msam.map: Add lz.
10041         * dvi/tmac.dvi: Handle Bq, bq, aq.
10043         * pic/lex.c (get_token): Recognize 'th.
10044         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
10046 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
10048         * ps/devps/textmap: Move di, mu, +- to...
10049         * ps/devps/symbolchars:
10051         * macros/tmac.s (@XS): Don't call par@reset or fi.
10052         (XA): Call LP. Turn off adjustment. Reduce line length.
10054         * macros/tmac.s: Initially alias XS to LP.
10055         (XS): Rename to @XS.
10056         (cov*ab-init): Alias XS to @XS.
10058 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
10060         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
10061         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
10062         (token::is_size, token::changes_env): Deleted.
10063         * troff/number.c (parse_term): No need to process \s explicitly.
10064         Call tok.next() only after scale indicator has been processed.
10065         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
10066         \f etc explicitly.
10067         (token::next): Handle \s, \f, \S, \H immediately rather than
10068         returning them as tokens.
10069         (token::operator==, token::description, token::add_to_node_list,
10070         token::process): Remove handling of deleted tokens.
10072         * troff/env.c (environment::add_char): When adding padding
10073         indicator character, call start_line() if necessary.
10075 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
10077         * ps/devps/afmtodit: Don't output 0 kerns.
10079         * ps/devps/afmtodit: Remove directory from name of encoding in
10080         font description file.
10082         * ps/devps/afmtodit: Improve error messages.
10084         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
10086         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
10087         * ps/devps/FontMakefile: Deleted.
10088         * ps/devps/afmname: New file.
10090         * ps/devps/symbol.sed: New file.
10091         * ps/devps/symbol.diff: Deleted.
10092         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
10093         Generate zapfdr.afm from zapfd.afm.
10095         * tty/tmac.tty (tty-char): Prefix definition with ".
10097         * macros/tmac.an (TP): Don't start a diversion if one has already
10098         been started.
10100         * tty/tmac.tty-char: Add Latin-1 characters.
10102         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
10104 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
10106         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
10107         Move declaration of struct horizontal_span.
10109         * tbl/table.c (table::table): Initialize span_list.
10110         (table::~table): Delete span_list.
10112         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
10114         * ps/devps/Makefile: Avoid dependency on GNU make.
10116         * ps/tmac.ps: Check that character does not already exist before
10117         defining it.
10119         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
10120         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
10121         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
10122         files.
10124         * tty/tmac.tty-char: New file.
10125         * tty/Makefile: Install tmac.tty-char.
10126         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
10127         tmac.tty-char.
10129         * tty/tmac.tty: Fix definition of \(34.
10131         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
10132         bracket-drawing characters onto |. Add *o.
10134         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
10135         only if current_field.
10137         * troff/dictionary.c (dictionary::lookup): Free old_table after
10138         rehashing. 
10140 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
10142         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
10143         whose glyphs are identical to glyphs of some Roman character.
10145         * tty/devlatin1/R.proto (bu): Deleted.
10146         * tty/devascii/R.proto (bu): Deleted.
10147         * tty/tmac.tty: Add definition of \(bu.
10149         * eqn/main.c (do_file): Pass FILE as argument.
10150         (main): Automatically load eqnchar.  New options -F and -n.
10151         Pass do_file an opened FILE.
10152         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
10153         No need to include font.h.
10154         * groff.sh: Likewise.  Don't need to use - for standard input.
10155         Prefix files with -- if first file starts with -.
10157         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
10159         * troff/env.c (environment::possibly_break_line): Don't set line
10160         to 0 across call to output_line().  Don't call output_line() until
10161         after discarding nodes after break.
10163 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
10165         * request.h (macro::empty): Declare it.
10166         * input.c (macro::empty): New method.
10167         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
10168         macro is empty.
10170 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
10172         * troff/env.c (environment::start_field): Decrement space_total
10173         when a space is frozen.
10175 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
10177         * macros/tmac.an (R): Delete macro.
10179         * troff/input.c (get_copy, token::next): Support \# (like \" but
10180         newline is ignored).
10182         * troff/input.c (token::next): Fix error message in 'Y' case.
10184 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
10186         * eqn/delim.c (define_extensible_string): Recognize any prefix of
10187         a delimiter name.
10189 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
10191         * c++test.c: Include <osfcn.h>.
10193         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
10194         <errno.h> doesn't.
10196 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
10198         * tbl/table.c (table::divide_span): Don't count column separation
10199         if expand was specified.
10201         * tbl/main.c (process_format): Don't ignore width specs in
10202         continued format.  Give warning for changing equal widths or
10203         column separation in continued format.
10204         (process_data): Set column separation, minimum width, equal
10205         columns at end of table.
10207 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
10209         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
10210         node::add_discretionary_hyphen): Use soft_hyphen_char.
10211         (set_soft_hyphen_char): New function.
10212         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
10214         * Makefile (c++tested): Give more helpful message if test fails.
10216 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
10218         * troff/input.c (init_charset_table): Translate 0240 to
10219         an unbreakable space.
10221         * troff/token.h (token::hyphen_indicator): New function.
10222         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
10223         translation.
10224         * troff/input.c (translate): Allow translation to \%.
10225         * troff/node.c (node::add_char): Handle
10226         TRANSLATE_HYPHEN_INDICATOR.     
10227         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
10229         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
10230         for \(hy.
10232         * tty/devlatin1/R.proto: \(hy and - should print as 055.
10234 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
10236         * groff.c (run_commands): If the last command gets a SIGPIPE send
10237         a SIGPIPE to all children than haven't yet terminated.  When
10238         command terminates, set pid field to -1.
10240 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
10242         * groff.c (main): Pass an appropriate -filename option to gxditview.
10244 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
10246         * Makefile.bd (install): Remove existing program before copying.
10248         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
10249         programs which have Unix counterparts to be installed with
10250         user-specified prefix.
10252         * troff/input.c (exit_troff): Don't check if exit_started.
10253         (exit_request): Don't call exit_troff if exit_started.
10255         * Makefile.bd (install.mm): Rename to install.dwbmm.
10257 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
10259         * driver/input.c (do_file): Add missing break for '#' case.
10261 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
10263         * troff/input.c (input_stack::clear):  Clear past any boundaries and
10264         then add the boundaries back.
10266         * troff/input.c (exit_troff): Return immediately if already
10267         exiting.
10269         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
10270         end macro.
10271         (pg*end-page): If the text has ended and there are no more
10272         footnotes or keeps, exit.
10274         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
10276         * troff/input.c (init_charset_table): Make \(rq transparent by
10277         default.
10279         * macros/tmac.an: Define lq and rq strings.
10281         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
10283 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
10285         * troff/env.c (environment::final_break): New function.
10286         (environment::newline): Set prev_line_interrupted to 2 if
10287         exit_started.
10288         * troff/env.h: Declare environment::final_break.
10289         * troff/input.c (exit_troff): Call environment::final_break()
10290         instead of environment::do_break().
10292         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
10293         doesn't already exist.
10294         * macros/man.local: New file.
10295         * macros/tmac.an: Load man.local.
10296         * macros/man.ultrix: New file.
10298 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
10300         * troff/input.c (exit_groff): Rename to...
10301         (exit_troff): New function.
10303         * troff/div.c (exit_started, done_end_macro,
10304         seen_last_page_ejector): New global variables.
10305         (began_page_in_end_macro): New static variable.
10306         (exit_flag): Deleted.
10307         (top_level_diversion::top_level_diversion): Initialize
10308         last_page_count.
10309         (top_level_diversion): More elaborate test for whether
10310         cleanup_and_exit() should be called.
10311         Set began_page_in_end_macro if the end macro isn't yet finished.
10312         * troff/div.h (top_level_diversion::last_page_count): New data
10313         member.
10314         (top_level_diversion::set_last_page): New function.
10315         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
10316         * troff/env.c (do_break): Zero prev_line_interrupted.
10317         * troff/input.c (exit_flag): Delete declaration.
10318         (LAST_PAGE_EJECTOR): New magic cookie.
10319         (token::next): Handle LAST_PAGE_EJECTOR.
10320         (exit_groff): Set exit_started and done_end_macro instead of
10321         exit_flag.  Call top_level_diversion::set_last_page.  Push a
10322         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
10323         another ejection after setting seen_last_page_ejector.
10325 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
10327         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
10329         * macros/tmac.e (TH): Make sure there's room for the initial
10330         header.
10332         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
10333         Set FVS in points rather than units.
10335 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
10337         * troff/div.c (top_level_diversion::add_trap): Don't consider the
10338         position of empty slots.
10340 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
10342         * ps/devps/S: Fix height and depth of parenrightex.
10343         * ps/devps/symbol.diff: Regenerate.
10345 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
10347         * tmac.e (u): Do underlining as in -mgs.
10349 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
10351         * tty/tty.c (tty_printer::end_page): If overstriking is
10352         suppressed, still turn overstruck horizontal and vertical lines
10353         into +.
10355         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
10356         2.1.
10358         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
10360 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
10362         * Version 1.05 released.
10364 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
10366         * tty/tty.c: Instead of keeping an array of glyphs and then
10367         sorting it, keep a ordered linked list of glyphs for each line.
10369         * driver/driver.h: Include stddef.h.
10371         * tty/tty.c (compare_glyph):
10372         * refer/refer.c (rcompare):
10373         * troff/env.c (compare_ranges): Arguments of qsort comparison
10374         function should be const void *.
10376         * troff/number.c (parse_term):
10377         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
10378         switch statement.
10380         * refer/label.y (consider_authors): Don't access variables
10381         constructed under a condition outside that condition: put braces
10382         round for statement containing declaration; redeclare use of same
10383         variable later.
10385         * pic/pic.y (text_expr): Delete production that allows
10386         parenthesised text_expr.
10387         (expr): Allow a conditional_expr to appear in parentheses.
10388         (conditional_expr): Rename to any_expr.
10390         * mm: Install new version 1.01 from jh.
10392         * lib/font.c (font::get_width): Cache scaled widths.
10393         (font::font): Initialize widths_cache.
10394         (font::~font): Destroy widths_cache.
10395         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
10397 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
10399         * c++test.c, c++test.ref: New files.
10400         * Makefile: Check that the C++ compiler works.
10402         * ps/tmac.pspic (PSPIC): Do a break.
10404         * ps/tmac.ps: Move definition of PSPIC into...
10405         * ps/tmac.pspic: New file.
10406         (PSPIC): Draw box around picture, but make it invisible to grops.
10407         * ps/tmac.ps: Load tmac.pspic.
10408         * ps/Makefile: Install tmac.pspic.
10410 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
10412         * lib/font.c (scale_round): If n is negative,
10413         subtract .5 before truncating floating point result.
10415         * lib/fontfile.c: Include <errno.h>.
10417 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
10419         * driver/input.c (get_char): Inline. Don't update current_lineno.
10420         Change callers to up date current_lineno if necessary.
10421         Use get_char() instead of getc(current_file).
10423 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
10425         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
10427 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
10429         * tty/tty.c (tmac.tty): Define \(rg as (R).
10431 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
10433         * lib/lib.h: New define a_delete.
10434         * Use a_delete instead of delete when deleting an array of objects
10435         without destructors.
10437         * lib/lib.h: Rename adelete to ad_delete.
10438         * Change uses of adelete.
10440 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
10442         * eqn/eqn.y: Include lib.h.
10444         * troff/node.c (grow_font_table): Delete old_font_table.
10446         * mm: Install new version from jh.
10448 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
10450         * tbl/table.h (format_type): Make global instead of local to class
10451         entry_format.  Prefix enumerators with FORMAT_.
10452         * tbl/table.c, tbl/main.c: Corresponding changes.
10453         * refer/token.h (token_type): Make global.  Prefix enumerators
10454         with TOKEN_.
10455         * refer/token.[ch]: Corresponding changes.
10456         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
10458         * troff/div.c (node::set_vertical_size): Don't name argument.
10460 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
10462         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
10463         * lib/lib.h: Define adelete accordingly.
10464         * pic/object.c (graphic_object::graphic_object):
10465         * tbl/main.c (format::~format):
10466         * tbl/table.c (table::~table):
10467         * refer/ref.c (reference::~reference, reference::merge,
10468         reference::insert_field, reference::delete_field): Use adelete.
10470         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
10471         * refer/token.h:
10472         * tbl/table.h: Corresponding changes.
10474         * common.c (common_output::dashed_arc, common_output::dotted_arc):
10475         Ensure total_angle is positive.
10477 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
10479         * refer/ref.c (reference::merge, reference::insert_field,
10480         reference::delete_field): Avoid delete[0].
10482         * refer/token.c (init_special_chars): Move calls to cmupper
10483         outside calls to init_two_char_letter to work around bug in gcc
10484         2.0.
10486 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
10488         * lib/new.c (operator new): Use __builtin_new for g++.
10490         * pic/object.c (graphic_object::~graphic_object):  Don't use
10491         delete [] on 0.
10493         * pic/object.c (output::compute_scale): Initialize max_width and
10494         max_height.
10496 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
10498         * troff/input.c (write_request): Call fflush.
10500         * troff/node.h (class composite_node): Move declaration to node.c
10501         * troff/input.c (charinfo_to_node): Rename to ...
10502         (charinfo_to_node_list): Return node list rather than composite
10503         node.
10504         * troff/node.c (make_composite_node): New function.
10505         (make_node, add_char): Call make_composite_node instead of
10506         charinfo_to_node.
10507         (class composite_node): Add a tfont * member.  Delete font_size
10508         member.
10509         (composite_node::composite_node, composite_node::copy,
10510         composite_node::size): Corresponding changes.
10511         (composite_node::tprint): Provide constant spacing, emboldening
10512         and track kerning as specified in tfont.
10513         (composite_node::width): Change width calculation accordingly.
10514         * troff/env.h (environment::composite): New member.
10515         (environment::is_composite, environment::set_composite): New
10516         functions.
10517         * troff/env.c (environment::environment): Initialize composite.
10518         * troff/input.c (charinfo_to_node): Call
10519         environment::set_composite.
10520         * troff/node.c (make_composite_node, make_glyph_node): Use the
10521         plain version of the tfont if the environment is composite.
10523         * troff/node.c (font_info::get_space_width): Additional argument
10524         giving space_size.  Handle constant space correctly. Scale by
10525         space_size unless constant spaced.
10526         (env_sentence_space_width): New function.
10527         * troff/node.h: Declare it.
10528         * troff/env.h (environment::get_space_size,
10529         environment::get_sentence_space_size,
10530         environment::get_narrow_space_width,
10531         environment::get_half_narrow_space_width): Make inline.
10532         (environment::get_space_width): Make inline.  Just call
10533         env_space_width.
10534         * troff/env.c: Delete definitions for funtions made inline.
10535         (environment::space_newline, environment::space): Use
10536         env_sentence_space_width(). Don't scale by space_size.
10537         * troff/node.h: Move declarations of env*space_width() functions
10538         into env.h.
10540 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
10542         * macros/tmac.s (PS): Don't try to set negative indent.
10544 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
10546         * pic/pic.y: Fix min function.
10548 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
10550         * man/mdate.sh: Clear LANGUAGE.
10552 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
10554         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
10555         * pic/lex.c: New COMMAND keyword.
10556         * pic/pic.y (print_args, print_arg): New rules.
10557         (placeless_element): Use print_args for PRINT.
10558         New COMMAND element.
10560 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
10562         * troff/input.c (terminal): Handle missing argument correctly.
10564         * pic/pic.y (text_expr): New rule.
10566         * pic/pic.y: Implement := operator.
10568 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
10570         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
10571         mdoc.
10573 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
10575         * ps/devps/dingbatsrmap: Include this in the distribution.
10577         * macros/tmac.doc: Replace with new version from 2nd Networking
10578         Release. Fix loading of doc-* files.
10579         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
10580         * macros/tmac.doc.old: New file.  Apply fixes that had been
10581         applied to old tmac.doc.
10582         * macros/tmac.andoc: Check that we're running under groff.
10583         * macros/Makefile: Rework.
10585 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
10587         * tbl/table.h (format_type): 
10588         * refer/token.h (token_type): If NESTED_TYPES is defined, use
10589         typedef to make these types visible at file scope.
10590         * Makefile: Add NESTED_TYPES configuration option.
10592         * troff/div.c (mark): At the top level use the value of
10593         nl_reg_contents rather than the current vertical position.
10595 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
10597         * tty/tty.c: Implement \D for horizontal or vertical lines.
10598         (tty_printer::set_char): Use vec_used+2 as serial number.
10599         Don't allow size of vector to exceed USHRT_MAX-2.
10600         Split off part into...
10601         (tty_printer::add_char): New function.
10602         (tty_printer::draw): New function.
10603         (compare_glyph): Handle equal serial numbers.
10604         (tty_printer::end_page): Handle overstruck characters from \D.
10605         (main, usage): Implement -d option.
10607 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
10609         * tbl/main.c (process_format):
10610         * eqn/text.c (split_text):
10611         * troff/input.c (token::next): Use inner block for declarations
10612         with initializers in switch statement.
10614 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
10616         * pic/common.c (common_output::dash_line): Cope with zero-length
10617         lines.
10619 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
10621         * Version 1.04 released.
10623 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
10625         * macros/tmac.an (TH): Define a macro an-init to define variables
10626         based on command line arguments.
10627         (an-header): Call it.
10629 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
10631         * Makefile (install.mm): Rename to install.dwbmm.
10633         * Makefile: Integrate mm.
10634         * mm: New directory.
10636 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
10638         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
10639         <sys/types.h>.
10641         * pic/troff.c (troff_output::simple_spline,
10642         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
10643         shadowing parameter.
10645         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
10647         * lib/ptable.h: Add explicit casts when converting from unsigned
10648         long to unsigned.
10650         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
10651         * dvi/devdvi/Makefile: Install SA, SB.
10653         * refer/indxbib.c: Add declaration of mktemp.
10655         * refer/lookbib.c: Add declaration of isatty.
10657 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
10659         * pic/lex.c (interpolate_macro_with_args):  While collecting
10660         arguments, keep track of whether we're in a string.
10662 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
10664         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
10665         down with \v, so as to avoid problems with top of page trap
10666         setting no space mode.
10668 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
10670         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
10672 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
10674         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
10675         Improve error message.
10677 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
10679         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
10680         printf("%03o");
10682 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
10684         * groff.c (possible_command::execp): Always use _exit() after a
10685         failed exec.
10687         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
10688         NO_SYS_WAIT_H   configuration options.
10689         * groff.c: Use these options.  Use POSIX-style macros to extract
10690         fields from the status returned by wait().
10692 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
10694         * tbl/table.c (table::compute_separation_factor): Allow the
10695         separation factor to drop to 0.
10697 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
10699         * refer/search.c: Include <errno.h>.
10701 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
10703         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
10705         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
10706         C++. 
10708         * pic/lex.c (input_stack::bol): Move definition out of class body.
10710         * pic/main.c: On MSDOS munge argv[0].
10712         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
10714         * lib/ptable.c (hash_string): Use unsigned long rather than
10715         unsigned.
10716         (next_ptable_size): Use unsigned rather than int.  Give an error
10717         message if we've hit the largest table size.
10718         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
10719         table size.
10721         * pic/object.h (object_spec): Make flags unsigned long.  Declare
10722         flags as const unisgned long rather than as enums.
10724         * pic/output.c: Deleted.
10726         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
10728         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
10729         Add additional argument.
10730         (line_entry::note_double_vrule_on_{left,right}): Set value of
10731         douvle_vrule_on_{right,left} flag according to argument.
10732         (simple_line_entry::simple_print,
10733         simple_line_entry::double_line_print): If adjacent to double vrule
10734         on a corner extend rather than shorten the rule by half the double
10735         vrule sep.
10737         * troff/number.c (parse_term): In checking for overflow, handle the
10738         case where the current horizontal position is negative.
10740 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
10742         * pic/object.c (draw_arrow): Check for object having zero length.
10744 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
10746         * eqn/main.c (do_file): Split off inline equation handling into...
10747         (inline_equation): New function.  Search for starting delimiter
10748         using...
10749         (delim_search): New function. Don't recognize a delimiter that
10750         occurs in the name of an escape sequence, number register, string
10751         etc.
10753 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
10755         * eqn/delim.c (delim_box::compute_metrics): Don't call
10756         define_extensible_string if left is 0.
10757         (delim_box::output):  Don't print the left delimiter if left is 0.
10758         (delim_box::debug_print): Check for left == 0 before calling printf.
10760 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
10762         * troff/Makefile (majorminor.c): Include only digits in
10763         minor_version.
10765 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
10767         * refer/dirnamemax.c: new file.
10768         * refer/genlimits.c: Deleted.
10769         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
10770         Don't check path length.
10771         * refer/Makefile: Add dir_name_max.o; delete genlimits.
10772         * Makefile: Add PATHCONF_MISSING option.
10774         * refer/indxbib.c (get_cwd): New function.
10775         (main): Use get_cwd().
10776         * lib/getcwd.c: New file.
10777         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
10778         GETCWD in SUBFLAGS.
10779         * lib/Makefile: Compile getcwd.o.
10781         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
10782         userdict.
10784         * refer/indxbib.c (main): Check success of mktemp.
10786         * lib/tmpfile.c: New file.
10787         * lib/Makefile: Add tmpfile.c.
10788         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
10789         * ps/ps.h: Delete declaration of mktemp().
10790         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
10791         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
10792         * driver/driver.h: No need now to include errno.h.
10794         * everywhere: Set errno to 0 before calling fopen().
10796         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
10797         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
10798         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
10800 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
10802         * troff/env.h (translate_space_to_dummy): Declare it.
10803         * troff/env.c (environment::space_newline, environment::space):
10804         If translate_space_to_dummy is set then make the width of spaces 0.
10805         * troff/input.c (translate): If the second character of a
10806         translation is a space, translate to unbreakable space.  If the
10807         first character is a space, set or clear translate_space_to_dummy
10808         according to whether the second character is \&.  Weird!
10810 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
10812         * groff.c (run_commands): Don't use non-zero exit code because a
10813         command gets SIGPIPE.
10815         * groff.c, groff.sh: Use -mXps with -TXps.
10817         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
10818         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
10819         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
10820         (ps_printer::special): New specials invis and endinvis.
10821         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
10822         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
10823         (ps_printer::end_page): Check that invis_count == 0.
10824         (ps_printer::invis_count): New member.
10825         (ps_printer::ps_printer): Initialize invis_count to 0.
10827         * troff/env.c (environment::hyphenate_line): Hyphenation
10828         indicator at beginning of word inhibits splitting after -, \(em
10829         etc.
10831         * pic/pic.y (element): Allow another element to follow } without
10832         any intervening separator.
10834 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
10836         * pic/lex.c (get_delimited): Allow tabs before delimiter.
10838 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
10840         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
10841         declaration of wait() in header files.
10842         * Makefile: Get rid of -DHAVE_UNION_WAIT.
10844         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
10846         * lib/lib.h: Declare return type of strerror as char *.
10848         * man/Makefile: Add g flag to sed substitutions.
10849         * Makefile (shgroff, bindist): Likewise.
10851 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
10853         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
10854         * ps/devps/prologue (PBEGIN): Define showpage after pushing
10855         userdict.
10857 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
10859         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
10860         userdict.
10862 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
10864         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
10865         group.
10867 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
10869         * troff/input.c (define_number_reg):  If currently undefined,
10870         don't define it if the argument is an invalid expression.
10872         * Makefile: Ignore return value of `if' commands without `else'
10873         parts.
10875         * Makefile: Split up CPPDEFINES into a series of separate
10876         configuration options.
10878         * troff/input.c (init_registers): Use time_t instead of long
10879         unless LONG_FOR_TIME_T is defined.  Use returned result rather
10880         than passing pointer.
10881         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
10883         * lib/Makefile (fontpath.h): Use gendef.
10885 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
10887         * troff/input.c (input_iterator::shift): Delete argument name.
10888         * troff/node.c (suppress_output_file::really_begin_page,
10889         suppress_output_file::really_transparent_char, node::ascii_print,
10890         node::tprint): Delete names of unused arguments.
10892 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
10894         * refer/label.y (string):  Pass $4 to command_error.
10896 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
10898         * Version 1.03 released.
10900 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
10902         * Makefile: Pass definition of SHELL in SUBFLAGS.
10904         * gendef: New file.
10905         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
10906         ps/Makefile: Use gendef to construct header files that are
10907         constructed from the Makefile.
10909         * macros/Makefile: make all should build stripped version of tmac.e.
10911         * refer/Makefile (clean): Remove y.output.
10913 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
10915         * ps/pfbtops.c (main): Add -v option which prints out a version
10916         number.
10917         * ps/Makefile (pfbtops): Link with libgroff.a.
10919 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
10921         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
10922         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
10924         * refer/lkbib.c (main): Always terminate reference with blank
10925         line.
10926         * refer/lookbib.c (main): Likewise.
10928         * refer/linear.c (file_buffer::load): Check that the file is not a
10929         binary file.
10931         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
10932         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
10933         Delete second inclusion of <sys/param.h>.
10935 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
10937         * troff/token.h (token::special): Deleted.
10939         * tbl/main.c (process_format): Rework so that opt->tab_char is
10940         recognized only when appropriate.
10942         * ps/Makefile (clean): Remove pfbtops.
10944 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
10946         * lib/font.c (text_file::next): Don't return if we have got a
10947         blank line.
10949 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
10951         * refer/refer.c (store_reference): Get hash code from old_table[i]
10952         when rehashing the table.
10954 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
10956         * eqn/box.c (box::top_level): Save size and prev size using \R and
10957         restore it afterwards. Set the size to the size at the beginning
10958         of the line.
10959         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
10960         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
10962         * refer/Makefile (limits.h): Use ./genlimits.
10964 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
10966         * refer/index.c: Delete declarations of stat() and fstat().
10968 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
10970         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
10972 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
10974         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
10976 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
10978         * troff/input.c (token::get_char): Handle \e.
10980         * refer/linear.c: Delete declarations of fstat() and stat().
10982 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
10984         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
10985         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
10987 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
10989         * troff/input.c (do_define_macro): Improve error handling for end
10990         of file while defining macro.
10992 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
10994         * eqn/box.h: Fix declaration of set_gsize.
10995         * eqn/box.c (set_gsize): Make argument const char *.
10996         (gsize): Declare as char *.
10997         * eqn/main.c (main): Don't convert gsize to int.
10998         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
11000         * Version 1.02 released.
11002 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
11004         * macros/tmac.andoc: New file.
11005         * macros/Makefile: Install tmac.andoc.
11007         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
11008         operator new and delete on OP_DELETE_BROKEN not being defined.
11009         * Makefile: Mention OP_DELETE_BROKEN.
11011 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
11013         * Makefile (bindist): Pass SUBFLAGS.
11015 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
11017         * Makefile, groff.c: Pass definitions to groff.c via device.h.
11019         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
11020         parameter.
11022         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
11024         * ps/ps.h, ps/psrm.c: Make comment_table and
11025         header_comment_table local to resource_manager::process_file.
11027         * groff.sh: With -TXps pass -printCommand option to gxditview.
11029         * groff.c (possible_command::print): Implement using
11030         append_arg_to_string.
11032         * xditview: Merge in new implementation with own ChangeLog.
11034 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
11036         * groff.c (main): Implement PRINT_OPTION.
11037         (append_arg_to_string): New command.
11038         (device_table): Set PRINT_OPTION flag for Xps.
11040 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
11042         * troff/groff.h: Rename to troff.h.
11044         * pic/lex.c (lookup_keyword, docmp): New functions.
11045         (get_token): Use new lookup_keyword.
11046         Don't include key.h.
11047         * pic/key.[ch], pic/pic.gperf: Deleted.
11048         * pic/Makefile: Remove gperf stuff.
11050         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
11051         into output.h.
11052         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
11054         * troff/Makefile, troff/node.c: Move definition of
11055         STORE_WIDTH into node.c.
11057         * etc/grog.pl, etc/grog.sh: Support -mdoc.
11059 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
11061         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
11062         dvi/devdvi/texb.map: Add lq and rq.
11063         dvi/devdvi: Regenerate fonts.
11064         * ps/devps/textmap: Add lq and rq.
11065         * ps/devps: Regenerate fonts.
11066         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
11067         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
11069         * pic/object.c (position_rectangle): When checking radius
11070         cope with possiblity that width or height is negative.
11071         (box_object::box_object): Have separate xrad and yrad with
11072         signs matching signs of dim components.
11073         (box_object::{north,south}_{east,west}): Use xrad and yrad.
11074         (box_object::print): With rounded boxes use absolute values
11075         for dim and rad arguments.
11077         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
11078         in fontpath.h.
11080         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
11082         * various files: Add explicit destructors to keep Saber CC +d
11083         happy.
11085 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
11087         * eqn/box.c (box::top_level): Restore fonts correctly after
11088         font changes in line containing inline equation.  Also
11089         restore previous font as well as current font.
11090         * eqn/pbox.h: Define necessary string and register names.
11092         * troff/input.c (token::next): Case 'R' calls do_register.
11093         (do_register): New function.
11095 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
11097         * groff.c, groff.sh: Support Xps device.  Allow each device
11098         to have a pseudo_name and a real_name.
11100         * groff.c (run_commands): Don't print `Broken pipe' messages.
11102         * ps/pfbtops.c: New file.
11103         * ps/Makefile: Add pfbtops.
11105         * troff/number.c (parse_term): Improved error message.
11107 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
11109         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
11111         * Makefile: Integrate refer.
11112         * refer: New directory.
11113         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
11114         man/lkbib.man: New files.
11115         * man/Makefile: Support refer man pages.
11117         * lib/lib.h: Declare is_prime.
11118         * lib/prime.c: New file.
11120         * troff/input.c (macro_source): New function.
11121         (init_input_requests): Bind "mso" to macro_source.
11123         * troff/env.c (environment::possibly_break_line): Maintain
11124         pointer to pointer to node to be split in ndp so as to avoid
11125         using address of freed node.
11127         * troff/env.c (environment::hyphenate_line): Maintain pointer to
11128         pointer to first node to be hyphenated in startp so as to
11129         avoid using address of freed node.
11131         * troff/env.c (class trie, class hyphen_trie): Make the
11132         elements of the trie be of type char not unsigned char.
11133         Declare arguments to be const char* instead of unsigned char *.
11134         
11135         * troff/env.c (hyphenate): Initialize hbuf[0].
11137         * troff/input.c (set_string): Declare p to be char * and cast
11138         *p to unsigned char when necessary.
11140         * troff/input.c (do_define_macro): Declare s to be const
11141         char*. Cast element to unisgned char when necessary, Declare
11142         d to be an int.  Handle EOF better.
11144         * troff/Makefile, troff/input.c: Different scheme for passing
11145         definitions of MACROPATH, HYPHENFILE and DEVICE.
11147 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
11149         * tty/devascii/R.proto: Delete entry for em.
11150         * tty/devlatin1/R.proto: Likewise.
11152 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
11154         * troff/input.c (translate): Stop when we get a space. Treat eof
11155         like newline.
11157         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
11159 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
11161         * tbl/main.c (process_format): A font name following a `f'
11162         modifier that starts with a digit can be only one character long.
11163         Also deal with EOF on the second character of the font name.
11165 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
11167         * troff/input.c (token::next): Turn \~ into an
11168         unbreakable_space_node.
11169         * troff/node.c (unbreakable_space_node): New class.
11170         * troff/node.h: Declare it.
11172 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
11174         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
11175         it's >= 0, before outputting it as a single byte.
11177 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
11179         * lib/font.c: Make font_char_metric::code an int.
11180         (font::get_code): Change return type to int.
11181         (font::load): Allow code to be arbitrary integer.
11182         * lib/font.h (font::get_code): Change return type to int.
11183         (font::number_to_index): Change argument type to int.
11184         * troff/input.c (token::next):  In case 'N', allow any value.
11185         Store value in token::val.
11186         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
11187         (token::get_char, token::add_to_node_list, token::process): Get
11188         number from val.
11189         (charinfo::set_number): Change argument to int.
11190         (charinfo::get_number):  Require that NUMBERED flag be set.
11191         (get_charinfo_by_number): Store numbered characters not between 0
11192         and 255 in a dictionary.
11193         * troff/charinfo.h (get_charinfo_by_number): Change argument type
11194         to int.
11195         (charinfo::number): Change type to int.
11196         (charinfo::set_number): Change type of set_number to int.
11197         * troff/node.c (troff_output_file::put_char_width,
11198         troff_output_file::put_char): Test whether character is numbered
11199         using charinfo::numbered().
11200         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
11201         values of num.
11202         * lib/nametoindex.c: New implementation to cope with arbitrary
11203         number characters.
11205         * troff/input.c (token::operator==): Test val for
11206         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
11207         TOKEN_SIZE.
11209         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
11210         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
11212 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
11214         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
11215         variable.
11217         * all Makefiles: rm targets of cp and >.
11219         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
11220         it.
11222         * eqn/lex.c (def_table): Add dollar.
11224 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
11226         * troff/input.c (do_width): Push back newline before closing delim
11227         like do_bracket.
11229 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
11231         * groff.c (possible_command::prepend_arg): New function.
11232         (main): Prepend device -m option.
11233         * groff.sh: Put device -m options before command-line options.
11235 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
11237         * macros/tmac.an (IP): Quote argument to TP.
11239         * ps/ps.c (main): New option -b, which sets...
11240         (broken_flags): New variable.
11241         (ps_printer::~ps_printer): Incorporate the setup section in the
11242         prolog if (broken_flags & NO_SETUP_SECTION).
11243         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
11244         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
11245         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
11246         ps_printer::print_needed_font_comment,
11247         ps_printer::print_supplied_font_comment,
11248         ps_printer::print_include_font_comments,
11249         ps_printer::lookup_doc_font, ps_printer::download_fonts,
11250         ps_printer::read_download_file, read_document_fonts, add_font,
11251         skip_line, parse_fonts_arg, document_font::document_font,
11252         document_font::~document_font, document_font::download,
11253         ps_output::include_file):  Deleted.
11254         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
11255         rather than %!PS-Adobe-2.0.  Make calls to
11256         resource_manager::need_font for each font that we used. Replace
11257         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
11258         print_supplied_font_comment, print_needed_font_comment by call to
11259         resource_manager::print_header_comments. Output %%Orientation
11260         comment. Output %%Requirements: numcopies comment if ncopies > 1.
11261         Don't output the prolog directly.  Instead call
11262         resource_manager::output_prolog.  Only define #copies when ncopies
11263         > 1.  Delete calls to print_include_font_comments  and
11264         download_fonts.  Add call to resource_manager::document_setup.
11265         (ps_printer::do_file): Call resource_manager::import_file instead
11266         of including it ourselves.
11267         (ps_printer::do_import): Likewise.  Also don't call
11268         merge_import_fonts. Push userdict on the dictionary stack before
11269         and pop it afterwards.
11270         Move declaration of ps_output into ps.h.
11271         * ps/psrm.c: New file implementing resource_manager class.
11272         * ps/ps.h: New file declaring ps_output and resource_manager
11273         classes.
11274         * ps/devps/zapfdr.ps:
11275         * ps/devps/symbolsl.ps:
11276         * ps/devps/prologue:  Use 3.0 conventions.
11277         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
11278         Add default definition of BROKEN_SPOOLER_FLAGS.
11279         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
11280         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
11282 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
11284         * etc/grog.pl: New file.
11285         * Makefile (GROG): New variable.
11286         Add GROG to SUBFLAGS.
11287         * etc/Makefile (GROG): New variable.
11288         (install.nobin): Install $(GROG) rather than grog.sh.
11290 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
11292         * eqn/special.c (special_box::compute_metrics): Make the input and
11293         output strings the same.  Get the new height and depth from the
11294         predefined height and depth registers.  Also make subscript kern
11295         and skew available.
11296         (special_box::compute_subscript_kern, special_box::compute_skew):
11297         New functions.
11299         * eqn/box.c (pointer_box::compute_skew,
11300         simple_box::compute_metrics, box::top_level)
11301         * eqn/text.c (prime_box::compute_metrics,
11302         prime_box::comput_subscript_kern)
11303         * eqn/limit.c (limit_box::compute_metrics):
11304         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
11305         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
11306         negative numbers in `nr' requests with a leading 0.
11308 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
11310         * eqn/special.c: New file.
11311         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
11312         Add new rule for simple.
11313         * eqn/lex.c (token_table): Add SPECIAL.
11314         * eqn/box.h: Declare make_special_box.
11315         * eqn/Makefile: Add special.[co].
11317 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
11319         * ps/devps/prologue: Possibly set packing to true while defining.
11320         Create grops dictionary here.  Initialize local variables before
11321         defining procedures.
11322         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
11323         the dictionary stack. Set strokeadjust and overprint to false if
11324         the relevant operators are defined.
11325         (PEND): New procedure.
11326         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
11327         prologue.  Do everything else in the setup section.
11328         (ps_printer::do_import): Just call PBEGIN and PEND around the
11329         picture. Also push userdict before, and pop it afterwards.
11331 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
11333         * troff/node.c (bracket_node::tprint): Brackets were being printed
11334         1m too low.
11336         * macros/tmac.an (SH, SS): Set fill mode.
11338 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
11340         * troff/div.c (top_level_diversion::begin_page): Set
11341         high_water_mark to 0.
11343 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
11345         * man/mdate.sh: New file.
11346         * man/mdate.c: Deleted.
11347         * man/Makefile: Use mdate.sh instead of mdate.
11348         (mdate): Deleted.
11350         * eqn/lex.c (do_gsize): Supply missing argument to error message.
11352 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
11354         * man/mdate.c: New file.
11355         * man/*.man: Replace modification date by @MDATE@.
11356         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
11357         (mdate): New target.
11359         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
11360         Remove illegal input characters.
11362 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
11364         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
11366 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
11368         * troff/div.c (begin_page): Change behaviour when
11369         !first_page_begun and !break_flag.
11371         * troff/input.c (do_name_test): Return 0 if argument is empty.
11373         * troff/input.c (read_long_escape_name): Require closing ] to be
11374         at same input level as opening [.
11376         * troff/input.c (read_increment_and_escape_name): New function.
11377         (get_copy, process_input_stack): Use this for \n.
11379 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
11381         * troff/div.c (top_level_diversion::begin_page): Ignore the
11382         current value of page_number if !first_page_begun.
11384         * groff.c (main): Fix declaration of buf.
11386         * troff/input.c (do_name_test): New function.
11387         (token::next): Implement \A.
11388         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
11389         (token::description, token::add_to_node_list, token::process):
11390         Handle TOKEN_ESCAPE.
11391         * troff/token.h: New token TOKEN_ESCAPE.
11393 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
11395         * pic/main.c (do_picture): Allow space before and after filename
11396         following `<'.  Check that the filename is not empty.
11398 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
11400         * Version 1.01 released. 
11402         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
11404         * dvi/tmac.dvi: ftr HR to H.
11406         * macros/tmac.e: Round up computation of $r.
11408         * xditview/tmac.X:  Don't give up completely in compatibility mode.
11409         Use \n(.s instead of \n[.s].
11411         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
11412         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
11413         Add u to factors inside \s[...]. Rename frac to dvi-frac.
11414         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
11415         short names in the char definitions.
11417         * ps/tmac.ps: Don't give up completely in compatibility mode.
11418         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
11419         quote in front of \n(.s. Add u to factors inside \s[...].
11421 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
11423         * tty/tmac.tty: Call the nroff request.
11425         * macros/tmac.e ((x, )x):  Better definitions that work properly
11426         in a diversion.
11427         (@0, @1): Helper macros for (x.
11429         * macros/tmac.e ($s, hl): Use \l rather than \D.
11431         * tty/tmac.tty: Make it work better in compatibility mode.
11432         (pchar): Rename to tty-char.
11434         * macros/tmac.e (@E): New macro.
11435         (r, i, b, rb, bi): Use @E.
11437         * macros/tmac.e (@F): Don't use (;...) syntax.
11439         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
11440         it was modified for groff.
11442         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
11444         * macros/tmac.e (<., .>): Removed.
11445         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
11447         * macros/tmac.e: Remove check that groff is being used.
11449         * macros/tmac.e (@C): Change families only if using groff; turn
11450         compatibility mode off while changing familes. Save compatibility
11451         mode before changing families and restore it afterwards.
11453         * macros/tmac.e (@h): Remove test for offset + line length.
11455         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
11456         (lo, th, ac): Define to call @S instead of using als.
11458         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
11459         the ratio of the vertical spacing to the point size in units
11460         expressed as a percentage.  Use these instead of $10r and $10R,
11461         Delete $10r and $10R.
11463         * lib/font.c (font::load): In default computation of space_width,
11464         divide by sizescale.  Use scale_round.
11466         * macros/tmac.an (TP): Don't call `nf'.
11467         (an-do-tag): Don't call `fi'.
11469 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
11471         * troff/input.c (process_input_stack): Handle the case where
11472         spaces at the beginning of an input line are followed by a
11473         newline.
11475 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
11477         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
11478         * groff.sh: Use pic -x with the dvi device.
11480         * dvi/devdvi/FontMakefile (H): Don't use -s.
11482         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
11483         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
11484         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
11485         in FONTS.
11487 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
11489         * ps/psfig.diff: New file.
11490         * ps/tmac.psfig: New file.
11492 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
11494         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
11495         (]-): Don't call ref*do-tl.
11497         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
11499         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
11500         (fn@do-FS): Rename to fn*do-FS.
11502         * troff/input.c (transparent_translate): New function.
11503         (process_input_stack): Apply transparent_translate before calling
11504         diversion::transparent_output(unsigned char).
11506 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
11508         * troff/input.c (do_define_macro): Define the macro before calling
11509         skip_line.
11511         * xditview/Makefile: Add DEVICES variable.  Change install target
11512         to use this.
11514 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
11516         * groff.c (run_commands): Handle the possibility that there are
11517         child processes other than those forked by us.
11519 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
11521         * lib/string.c (string::append): New function.
11522         * lib/stringclass.h: Declare it.
11524 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
11526         * eqn/main.c (main): New option -N which sets
11527         no_newline_in_delim_flag. 
11528         (do_file): If no_newline_in_delim_flag is set don't allow newlines
11529         in delimiters.
11530         * groff.c (main): Pass -N on to eqn.
11531         (help, synopsis): Mention -N.
11532         * groff.sh: Implement -N.
11534 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
11536         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
11537         (]-): Call ref*do-tl if ref*need-tl is non-zero.
11538         (XP): Allow as initializer.
11540 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
11542         * troff/env.c (environment::wrap_up_field): If field_spaces are
11543         non-zero and we have a current_tab, subtract padding from
11544         tab_distance.  If this makes tab_distance <= 0, use the next tab
11545         stop instead.  If there isn't any next tab or it's a left tab,
11546         wrap up the current tab.
11547         (environment::start_field): Initialize tab_precedes_field.
11548         (environment::wrap_up_tab): If there's a current field, update
11549         pre_field_width, field_distance and tab_precedes_field.
11550         * troff/env.h (environment::tab_precedes_field): New member.
11552 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
11554         * ps/ps.c (ps_printer::do_file): New function.
11555         (ps_printer::special): Bind to `file' special.
11556         (ps_printer::do_exec): Set ndefined_styles to 0.
11558 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
11560         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
11561         Avoid stripping first character from the start of unrecognized
11562         escapes.  Use lex_error instead of error to report errors.
11563         * eqn/lex.c (get_token): Rework handling of escapes.
11564         (lex_error): Move declaration into...
11565         * eqn/eqn.h.
11567         * xditview/xditview.c (main): Make -page option work.
11569         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
11571 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
11573         * macros/tmac.s (B2): Correct size of box.
11575 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
11577         * macros/tmac.s (B2): Postpone drawing the box until in the
11578         top-level diversion.
11580         * tty/tmac.tty: Add font translations for C, CR, CW.
11582         * groff.c (synopsis, help): Document -i.
11583         * groff.sh: Implement -i.
11585         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
11586         Simplify the construction of SN.
11588         * troff/number.c (parse_term): Give `|' a higher precedence.
11589         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
11590         accordingly.
11592         * macros/tmac.s (B2): Use par@finish instead of par@reset.
11594 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
11596         * lib/string.c (string::move): New function.
11597         * lib/stringclass.h: Declare it.
11599 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
11601         * troff/env.c (distribute_space): Add optional argument
11602         `force_forward'.
11603         (environment::wrap_up_field): Call distribute_space with
11604         `force_forward' argument of 1.
11606 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
11608         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
11609         Inline it.  Move reallocation into...
11610         (string::grow1): New function.
11611         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
11612         dependencies to include library header files.
11613         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
11615 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
11617         * macros/tmac.s (@NH): Use the same number registers than -ms does
11618         for the heading level counters.  Use the same string that -ms does
11619         for the number for this heading.
11621 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
11623         * lib/new.c (operator new): Cast result of malloc to char *.
11625         * troff/input.c (spring_trap, lookup_request): Add assert that nm
11626         is not null.
11628 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
11630         * groff.c (main): Support -i.
11632 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
11634         * pic/pic.h: Include <osfcn.h>.
11636         * ps/ps.c: Add declaration of mktemp.
11638         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
11639         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
11640         argument as union wait *.
11641         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
11642         argument to union wait *.
11644 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
11646         * tty/tmac.tty: Add definition of \(co.
11648         * pic/object.c (make_arc): Only increase radius when radius
11649         strictly less than d.
11650         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
11651         more than once.
11653         * troff/env.c (environment::environment(symbol),
11654         environment::environment(const environment *)):  Initialize
11655         input_trap_count.
11657 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
11659         * tbl/main.c (main): Add exit(0).
11661         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
11663         * pic/main.c (main):
11664         * eqn/main.c (main):
11665         * tbl/main.c (main):
11666         * etc/soelim.c (main):
11667         * driver/printer.c (printer::~printer):
11668         * troff/node.c (real_output_file::~real_output_file,
11669         real_output_file::flush):  Check for errors on stdout.
11671         * most files: Add 1991 to copyright notice.
11673         * macros/tmac.s: Don't test \n(.x and \n(.y.
11675         * troff/input.c (token::next): Rename `escape_char' label to
11676         `handle_escape_char' and `normal_char' label to
11677         `handle_normal_char'.
11679 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
11681         * groff.c (main, synopsis, help): Support -a option.
11682         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
11683         to trflags while parsing options.
11685 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
11687         * troff/number.c (parse_term): With `m', `M' and `n' scale
11688         indicators, convert scale factor to hunits before scaling.
11690 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
11692         * lib/font.c (scale_round): Better test for overflow when n is
11693         negative.
11695 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
11697         * tbl/main.c (process_format): Add second argument of type
11698         options*. Change callers.  Allow opt->tab_char as well as '\t'
11699         between format items.
11701 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
11703         * macros/tmac.an (PD): With no arguments, make sure register PD is
11704         at least \n[.V].
11705         (TH): Call PD with no argument, instead of setting register PD
11706         directly.
11708 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
11710         * Version 1.00 released.
11712 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
11714         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
11716         * dvi/devdvi/DESC: Mount CW instead of CR.
11718         * dvi/tmac.dvi: Add definition of \(tm.
11720         * dvi/devdvi/texsy.map: Add lh, and rh.
11721         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
11722         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
11724         * dvi/devdvi/FontMakefile: Generate H from cmss10.
11725         * dvi/devdvi/Makefile: Install H.
11726         * dvi/devdvi/H: New file.
11728 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
11730         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
11731         be 0.
11733 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
11735         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
11737         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
11739         * macros/tmac.s (@EN): Handle the case where the equation is empty
11740         but the label is not.
11742 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
11744         * troff/groff.h: New warning category WARN_SPACE.
11745         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
11746         WARN_SPACE to warning_table.
11747         (interpolate_macro): Give a warning of type WARN_SPACE if the name
11748         is longer than two characters and is not defined, but the first
11749         two characters do make a defined name.
11751         * PROBLEMS: New file.
11753         * CHANGES: New file.
11754         * README-0.6, README-1.00: Deleted.
11756         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
11757         * xditview/devX75/Makefile: Make devX75-12.
11758         * xditview/devX100/Makefile: Make devX100-12.
11760         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
11761         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
11763 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
11765         * README-0.7: Rename to README-1.00.
11767         * macros/tmac.pic: New file.
11768         * macros/Makefile (install.nobin): Install tmac.pic.
11770 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
11772         * troff/env.c (hyphen_word): Correct the test for whether the
11773         token is a hyphen.  Reset npos to 0.
11775         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
11777 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
11779         * macros/tmac.s (ds*common-end): Call par*reset.
11780         (PE): Likewise.
11781         (par@reset-indent): Deleted.
11783         * macros/tmac.s (@IP): Divert the label.
11785 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
11787         * xditview/draw.c (setGC): Use a line width of .1m rather than
11788         .04m by default; round rather than truncate value.
11790         * tbl/table.c (class empty_entry): New class.
11791         (empty_entry::empty_entry, empty_entry::line_type): New functions.
11792         (table::add_entry): Represent empty entries by objects of type
11793         empty_entry.
11794         (table_entry::line_type): Return -1.
11795         (table::determine_row_type): Ignore entries with line_type 0.
11796         Treat type -1 as non-lines.
11798 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
11800         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
11801         macros/tmac.s: Rename \(-d to \(Sd.
11803 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
11805         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
11806         * xditview/libXdvi/DviChar.c: Likewise.
11807         * dvi/devdvi/texsy.map: Add `<<', `>>'.
11809 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
11811         * troff/div.c (top_level_diversion::begin_page): Call
11812         init_output() if the_output is 0.
11814 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
11816         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
11817         ESCAPE_c.
11818         (get_copy): Turn \E into ESCAPE_E.
11819         (token::process, asciify): Handle ESCAPE_E.
11821         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
11822         (RD): New macro.
11823         (DS): Implement `.DS R'.
11825 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
11827         * macros/tmac.s (FS): New macro.
11829         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
11831         * macros/tmac.s (cov*tl-init): Remove after first execution
11832         instead of aliasing to @nop.  Call top of page macro explicitly
11833         instead of setting trap; call @init first.  Set pg@top as top of
11834         page macro.
11835         (cov*auto-init): Deleted.  Set cov*tl-init instead of
11836         cov*auto-init as top of page trap. 
11837         (TL, LP): Do a break instead of calling cov*tl-init.
11838         (cov*print): With RP format but no TL, alias FS and FE to @FS and
11839         @FE; in this case also give a warning and always start another
11840         page. No need to set pg@top here.
11841         (cov*tl-init): Rename to cov*first-page-init.
11843         * macros/tmac.s (RP): Do `.pn 0'.
11844         (cov*tl-init): With RP format don't do `.pn 0'.
11846         * macros/tmac.s (pg@cs-top): Set no space mode.
11848         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
11849         (cov*ab-init): Alias TL, AU and AI to these.
11851 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
11853         * macros/tmac.s (@EQ): Move the space before the equation into @EN
11854         (@EN): Do nothing unless \n[dl] is > 0.
11856 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
11858         * pic/object.c (ellipse_object::radius): New function.
11860         * VERSION: Change version to 0.7.
11862         * tbl/table.c (block_entry::do_divert): Declare return type as
11863         void.
11864         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
11866 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
11868         * troff/column.c: New file.
11869         * troff/Makefile: Corresponding changes.
11871         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
11872         Friend of vunits.
11874         * troff/div.c (top_level_diversion::space): If the space causes
11875         the first-page transition and springs a trap, truncate the space
11876         to 0.
11878 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
11880         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
11881         the document.
11883         * pic/troff.c (troff_output::line_thickness,
11884         troff_output::set_fill): Do a horizontal motion to compensate for
11885         the width of the \D escape sequence.
11887 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
11889         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
11890         (not X75).
11892         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
11893         to printf.
11895         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
11896         Supply empty definition.
11897         (text_entry::simple_print, simple_text_entry::simple_print):
11898         Delete declarations.
11899         (table::add_entry): Represent empty entries by objects of type
11900         `simple_entry'.
11902 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
11904         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
11906         * tbl/table.c (left_text_entry::add_tab): New function.
11908         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
11909         initialize like LP.
11911 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
11913         * troff/env.c (environment::start_field): Give an error message if
11914         there is no next tab.
11916 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
11918         * troff/env.c (hyphenate): Skip initial elements with zero
11919         hyphenation code.
11921         * macros/tmac.s (par@init): Keep VS in points rather than units.
11923 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
11925         * pic/main.c (main): Implement `-c' option.
11926         * pic/output.h: Declare make_tpic_output().
11927         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
11928         protected.
11929         (tpic_output): New class.
11930         (tpic_output::tpic_output, tpic_output::set_pen_size,
11931         tpic_output::command, make_tpic_output): New functions.
11933 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
11935         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
11936         if they're not already defined.
11937         * tbl/table.c (init_output): Don't test \n(.g.
11939         * troff/input.c (do_if_request): Delete `g' condition. Recognize
11940         `d', `r' and `c' conditions even in compatibility mode.
11942 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
11944         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
11945         box.
11947 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
11949         * troff/env.h (environment::prev_line_interrupted): New member.
11950         (environment::get_prev_line_interrupted): New function.
11951         * troff/env.c (environment::newline): Set prev_line_interrupted.
11952         (environment::environment(const environment *),
11953         environment::environment(symbol)): Initialize
11954         prev_line_interrupted.
11955         * troff/input.c (process_input_stack): Don't give special
11956         treatment to space and newline at the beginning of the line if the
11957         previous line was interrupted.
11959 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
11961         * eqn/eqn.y: Disallow PRIME by itself.
11962         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
11963         PRIME.
11964         (def_table): Remove definition of '.  Define prime to be `.
11966         * eqn/eqn.y: Split off part of rule `script' into a new rule
11967         `nonsup'.
11969 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
11971         * macros/tmac.s ({, }): New string aliases.
11973 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
11975         * README-0.7: New file.
11977 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
11979         * macros/tmac.s: New file.
11980         * man/groff_ms.man: New file.
11981         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
11982         * Makefile.bd: Similarily.
11983         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
11984         definition of TMAC_S.
11985         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
11986         * macros/TODO: New file.
11988 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
11990         * troff/env.c (right_justify): New function.
11991         (init_env_requests): Bind this to request "rj".
11992         (center_lines): Set right_justify_lines to 0. If we get a bad
11993         integer, center 1 line.
11994         (environment::environment(symbol), environment::environment(const
11995         environment *)): Initialize right_justify_lines.
11996         (environment::get_right_justify_lines): New function.
11997         (init_env_requests): Bind this to number_register ".rj".
11999         * troff/env.c (environment::choose_breakpoint): Implement
12000         hyphenation_margin and hyphenation_space.
12001         (environment::get_hyphenation_space,
12002         environment::get_hyphenation_margin): New functions.
12003         (init_env_requests): Bind these to .hys and .hym.
12004         (hyphenation_space_request, hyphenation_margin_request): New
12005         functions
12006         (init_env_requests): Bind these to hys and hym.
12007         (environment::environment(symbol), environment::environment(const
12008         environment *)): Initialize hyphenation_margin and
12009         hyphenation_space.
12010         * troff/env.h: Corresponding changes to class environment.
12012 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
12014         * troff/div.c (blank_line): Always do a break.
12016         * eqn/box.c (do_text): Turn off escapes while appending text to
12017         string.
12019 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
12021         * troff/input.c (while_break_request, while_continue_request): New
12022         functions.
12023         (init_input_requests): Bind these to "break" and "continue".
12024         (while_depth, while_break_flag): New variables.
12025         (while_request): Update while_depth.  Break out of loop if
12026         while_break_flag is set.
12028 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
12030         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
12031         rather than 0.
12033 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
12035         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
12037         * stringify: New file.
12038         * Makefile (groff.o): Use stringify.
12040         * xditview/tmac.X: Remove definition of \(rn.
12041         * xditview/libXdvi/DviChar.c: Remove radicalex from
12042         Adobe_symbol_map.
12044 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
12046         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
12047         (alphabetic_block_entry::alphabetic_block_entry,
12048         alphabetic_block_entry::divert, alphabetic_block_entry::print):
12049         New functions.
12050         (block_entry::divert): Split off body into ...
12051         (block_entry::do_divert): If the block is alphabetic, subtract 2n
12052         from the line length; also update the span width to dl+2n, and the
12053         alphabetic span width to dl.
12055         * driver/input.c (do_file):  While reading argument to D command,
12056         when expanding buffer, multiply szp by sizeof(int) rather than 2
12057         in the argument to memcpy.
12059         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
12060         width of alphabetic columns.
12062 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
12064         * troff/node.c (lookup_family): Supply second argument to lookup.
12066         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
12067         search, return immediately if v is 0.
12069         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
12070         (troff_output::start_picture): Set this reg.
12071         (troff_output::end_picture): Remove this reg
12072         * eqn/box.c (box::extra_space): Don't produce `\x's if
12073         EQN_NO_EXTRA_SPACE_REG is defined.
12075         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
12076         * eqn/text.c (split_text): Map ' to \(fm when it's the first
12077         character.
12079 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
12081         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
12082         requests.
12084         * troff/div.c (top_level_diversion::top_level_diversion):
12085         Initialize page_number to 0.
12087 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
12089         * groff/troff (environment::environment(const environment *)):
12090         Initialize name to e->name, rather than "anonymous".
12092 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
12094         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
12095         requested_page.  Split middle part into ...
12096         (FindPage): New function.
12097         (SetValues): If we don't yet know the last page, and the requested
12098         page is greater than the current page, call FindPage.
12099         Update the font_map_string before doing this.
12101         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
12102         Translate \(lh and \(rh into left and right double arrows.
12104         * troff/node.c (class hyphen_inhibitor_node): New class.
12105         (hyphen_inhibitor_node::hyphen_inhibitor_node,
12106         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
12107         hyphen_inhibitor_node::type,
12108         hyphen_inhibitor_node::get_hyphenation_type): New functions.
12109         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
12110         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
12111         word.
12113 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
12115         * troff/node.h (dummy_node::get_hyphenation_type,
12116         transparent_dummy_node::get_hyphenation_type):  Declare them.
12117         * troff/node.c: (dummy_node::get_hyphenation_type,
12118         transparent_dummy_node::get_hyphenation_type): New functions.
12120 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
12122         * xditview/libXdvi/draw.c: If M_PI not defined after including
12123         math.h, then define it.
12125         * xditview/Makefile: Add definition of AR. Pass it to the submake
12126         in libXdvi.
12127         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
12129 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
12131         * troff/dictionary.h (object_dictionary::alias): Declare return
12132         value as int.
12133         * troff/dictionary.c (object_dictionary::alias): Return non-zero
12134         if the old name was defined.
12135         * troff/input.c (alias_macro): Give a warning if the old name was
12136         not defined.
12137         * troff/reg.c (alias_reg): Likewise.
12139 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
12141         * troff/input.c (token::next): Delete implementation of \R.
12143         * macros/Makefile: Strip comments from tmac.e while installing it.
12145         * troff/input.c: New variable `nroff_mode'.
12146         (troff_request, nroff_request): New functions.
12147         (init_input_requests): Bind `troff' and `nroff' to troff_request
12148         and nroff_request.
12149         (do_if_request): Compute results of t and n conditions from
12150         nroff_mode.
12152         * text/text.c (split_text): Fix typo in >=.
12154         * eqn/lex.c: Add definition of `==' to def_table.
12156 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
12158         * pic/tex.c (tex_output::start_picture): Change the definitions of
12159         \graph and \graphtemp so that they work properly with Plain TeX.
12161         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
12162         argument to `ar' is not less than the first.
12164         * pic/pic.y: Allow a comma between elements of the variable list
12165         in the argument to `reset'.
12167         * pic/object.c (arc_object::arc_object): Fix computation of
12168         radius.
12170         * eqn/main.c (main): Add exit(0).
12172 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
12174         * troff/div.c (begin_page): Test no_space_mode after doing the
12175         break, but still push the page ejector cookie before doing the
12176         break.  Also set the next page number after doing the break.
12177         
12178         * xditview/xditview.c (NewFile): Don't set the title and icon name
12179         if this is the first file and its name is `-'.
12180         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
12181         the X75 and X100 devices.
12182         (main): If a device has the XT_OPTION flag set and there's exactly
12183         one file argument, pass the driver -xrm and -title options to set
12184         the icon name and window title to the name of the file.
12186         * troff/env.c (environment_switch): If there was an argument but
12187         it wasn't a valid number or name, then pop an environment but
12188         don't give an error message on underflow.
12190         * troff/number.c (start_number): Correct spelling in error message.
12192         * troff/input.c (token::delimiter): Don't print an error message
12193         if err is false.
12195         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
12196         ParseDrawFunction if dw->display_enable is true.
12198 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
12200         * pic/pic.y: Parse text positioning like normal attributes, so as
12201         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
12202         positioning attribute.
12204 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
12206         * tbl/main.c (process_data): When in state START while reading a
12207         text block, don't change to state MIDDLE if c is a newline.
12209 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
12211         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
12212         so as to avoid shadowing parameter.
12214 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
12216         * tbl/table.c (trim_space): Deleted.
12217         (table::add_entry): Don't call trim_space.
12219 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
12221         * VERSION: Change version to 0.6.
12223         * troff/number.c (parse_expr): Make == work.
12225 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
12227         * man/grog.man: New file.
12228         * man/Makefile: Add grog.n to MAN1PAGES.
12229         * etc/grog.sh: New file.
12230         * etc/Makefile: Install grog.sh as grog.
12232 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
12234         * troff/input.c (token::next): Implement \E.
12236 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
12238         * xditview/tmac.X: Change font translations to match tmac.ps.
12240         * troff/input.c (non_empty_name_warning): Don't give a warning if
12241         `\{' terminates the name.
12243 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
12245         * ps/devps/symbol.diff: New file.
12246         * ps/devps/FontMakefile: Mention symbol.diff.
12248 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
12250         * troff/node.c (font_position): Use get_long_name to read the
12251         external_name.
12253         * troff/env.c (environment_switch): If we get a number that's < 0
12254         or >= NENVIRONMENTS, treat it like a name.
12255         Change NENVIRONMENTS to 10.
12257         * troff/groff.h: Remove definition of FONTS_MAX.
12258         * troff/node.h (class font_family): Make map a pointer instead of
12259         an array. Add a map_size member. Make it a class. Make nm const
12260         and public. Make invalidate_fontno a friend.
12261         * troff/node.c: Define font_table_size. Make font_info a pointer
12262         rather than an array.
12263         (class troff_output_file): Allocate font_position dynamically. Add
12264         nfont_positions member.
12265         (troff_output_file::set_font): Grow font_position if necessary.
12266         (troff_output_file::~troff_output_file): Delete font_position.
12267         (troff_output_file::troff_output_file): Allocate font_position.
12268         (grow_font_table): New function.
12269         (troff_output_file::really_begin_page,
12270         troff_output_file:really_copy_page): Use nfont_positions rather
12271         than FONTS_MAX.
12272         (mount_font_no_translate, mount_style): Call grow_font_table if
12273         necessary.
12274         (font_family::font_family): Allocate map.
12275         (font_family::make_definite): Grow map if necessary. Use
12276         font_table_size instead of FONTS_MAX.
12277         (font_family::~font_family): New function.
12278         (invalidate_fontno): Use font_family::map_size.
12279         (get_fontno, env_space_width, env_half_narrow_space_width,
12280         env_narrow_space_width, symbol_fotno, is_good_fontno,
12281         get_bold_fontno, make_glyph_node): Use font_table_size rather than
12282         FONTS_MAX.
12283         (next_available_font_position): Never return 0.
12285 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
12287         * ps/tmac.ps: Add font translations for compatibility with dpost.
12289 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
12291         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
12292         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
12293         Move definitions baseline_sep, shift_down, column_sep,
12294         matrix_side_sep into...
12295         * eqn/box.c: Add them to param_table.
12296         * eqn/pbox.h: Add declarations to pbox.h.
12298         * troff/input.c (set_string): Cast value to unsigned char *.
12300         * troff/token.h (process_input_stack): Declare it static before
12301         declaring it a friend.
12303 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
12305         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
12306         and bottom.
12307         * dvi/devdvi/EX: Regenerate.
12309         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
12310         transparent.
12312 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
12314         * eqn/lex.c: In defaults_table, make definition of `dot' call
12315         `dot_def'.  Don't explicitly make it roman.  Similarily for other
12316         accents.
12318         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
12319         argument.
12320         (for_input::get, for_input::peek): Use this.
12321         (do_for): Add by_is_multiplicative argument.
12322         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
12323         Change semantic value of optional_by to be a double plus a flag
12324         saying whethet the by clause is multiplicative.
12326         * eqn/lex.c (get_delimited_text): Remember location of start of
12327         definition.  Improve error handling when EOF is encountered.
12329         * lib/font.h: Rename handle_x_command to
12330         handle_unknown_font_command.
12331         * lib/font.c (font::load): Call handle_unknown_font_command for
12332         any unknown command in the font description file.  Don't call
12333         handle_x_command. Include the name of the command in the argv.
12334         Improve message for unknown command after kernpairs or charset
12335         command.
12336         * ps/ps.c (ps_font::handle_x_command): Rename to
12337         handle_unknown_font_command.  Remove message about `x download'
12338         command.  Give error message for wrong number of arguments.
12339         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
12340         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
12341         handle_unknown_font_command. Give an error message for wrong
12342         number of arguments.  Rename design_size to designsize.
12343         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
12344         checksum', `designsize' instead of `design_size'.
12346 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
12348         * eqn/*.[chy]: Change underaccent to uaccent.
12350         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
12351         give it the same precedence as ACCENT.
12352         * eqn/other.c (make_underaccent_box): New function.
12353         * eqn/box.h: Declare it.
12354         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
12355         def_table.
12357 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
12359         * pic/pic.y (reset_all): New function. Called in rule for RESET.
12360         (parse_init): Call reset_all.
12361         (define_variable): When defining scale reset only those
12362         pre-defined variables that are scaled.
12363         (defaults_table): Add `scale' as non-scaled value.
12365         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
12366         together with the text; allow any number of positioning words;
12367         allow center as a positioning word.
12369         * pic/object.c (output::compute_scale): Get picture maximum height
12370         and width from variables called maxpswid and maxpsht.
12371         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
12373 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
12375         * pic/object.c (object_spec::make_text): Multiply textht by number
12376         of text items.
12378         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
12379         occur.
12380         (do_sprintf): New function.
12381         (pic.gperf): Add sprintf token.
12382         (text, sprintf): New rules.
12384         * pic/pic.y: `rand()' with no arguments returns a random number
12385         in the range [0,1).
12387         * pic/pic.y: Allow a bare expression to be an attribute: change
12388         precedences to support this.  Change optional_ordinal rule to
12389         optional_ordinal_last to avoid reduce/reduce conflict.
12390         * pic/object.c (object_spec::object_spec): Initialize direction.
12392         * pic/pic.y: Implement ^ operator meaning exponentiation.
12394         * troff/node.h: Add default argument to mount_font.
12395         * troff/node.c (font_position): Read an optional third argument
12396         giving the external_name.
12397         (mount_font): Add optional argument giving the external_name.
12398         (mount_font_not_translate): Have additional argument giving
12399         external name.  Use this name to load the font.  Pass both names
12400         to font_info::font_info.
12401         (font_info::font_info): Have additional argument giving
12402         external_name.
12403         (class tfont): New member external_name.
12404         (font_info::get_tfont): Use external name to construct tfont_spec.
12406 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
12408         * eqn/lex.c (init_table): Add argument giving device.  Define
12409         name of device to be "1".
12410         (do_ifdef): Counts as true if the argument has been defined with
12411         `define'.
12412         * eqn/main.c (main): Call init_table with device argument. Make
12413         device local to main.
12414         * eqn/eqn.h: Change declaration of init_table. Remove declaration
12415         of device.
12417         * pic/lex.c (get_delimited): Allow text to be delimited by
12418         matching {}s.  Don't recognize ending delimiter within a string.
12420         * troff/input.c (get_delim_name): New function.
12421         (token::next): Implement \C.
12423         * lib/font.c (font::load): Grok ---.  Add an alias for each
12424         character based on its code.
12425         (font::get_code_width): Deleted.
12426         * lib/font.h (class font): Declare font::number_to_index().
12427         Remove declaration of font::get_code_width.
12428         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
12429         to indices of named characters.
12430         (font::number_to_index): New function.
12431         * troff/input.c (font::number_to_index): New function.
12432         (get_charinfo_by_number, charinfo::get_number,
12433         charinfo::set_number): New functions.
12434         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
12435         (token::process, token::description, token::get_char,
12436         token::add_to_node_list, token::operator==): Handle
12437         TOKEN_NUMBERED_CHAR.
12438         * troff/charinfo.h: Declare get_charinfo_by_number,
12439         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
12440         charinfo class.
12441         (charinfo::numbered): New function.
12442         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
12443         * troff/env.h (class environment): Remove declaration of ...
12444         * troff/env.c (environment::make_numbered_char_node): Deleted.
12445         * troff/node.c (make_numbered_node): Deleted.
12446         (class numbered_glyph_node): Remove.
12447         (troff_output_file::put_char_width, troff_output_file::put_char):
12448         Handle numbered chars.
12449         (troff_output_file::numbered_char): Removed.
12450         (tfont::get_code_width): Removed.
12451         (make_glyph_node): Don't search special fonts for numbered
12452         characters.
12453         * troff/node.h: Remove declaration of make_numbered_node.
12454         * driver/input.c (do_file): Handle N command.
12455         * driver/printer.h: Add declaration of ...
12456         * driver/printer.c (printer::set_numbered_char): New function.
12457         * dvi/tfmtodit.c (main): Generate unnamed entries.
12458         * ps/devps/afmtodit: Likewise.
12459         * xditview/xtotroff.c (MapFont): Likewise.
12460         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
12462         * tbl/main.c (process_format): If multiple widths are specified
12463         for a column but all the widths are the same, don't give an error
12464         message.
12466         * tbl/table.c (table::do_row): If the current row is all lines and
12467         the stuff doesn't contains a line, mark the top of the row after
12468         printing stuff before the row.  If the current row is not all
12469         lines and the stuff doesn't contain a line, don't unnecessarily
12470         mark the top of the row before printing the stuff.
12471         
12472 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
12474         * troff/groff.h: Remove MAX_PATH.
12475         * troff/input.c (open_file): Dynamically allocate space for the
12476         path.
12477         (open_mac_file, process_macro_file): Corresponding changes.
12479 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
12481         * troff/node.h (class output_file): Make copy_file pure.  Add
12482         vspace method ifdef COLUMN. Add is_printing method.
12483         * troff/node.c: Add class printing_reg. Add class
12484         real_output_file. Derive other output_file classes from
12485         real_output_file; in these classes rename begin_page to
12486         really_begin_page, print_line to really_print_line, copy_file to
12487         really_copy_file, transparent_char to really_transparent_char.
12488         Move output_file::flush to real_output_file. Add printing member
12489         to class output_file.
12490         * troff/div.h: Remove printing member from top_level_diversion.
12491         Add vspace member function to class diversion ifdef COLUMN. Add
12492         some declarations ifdef COLUMN.
12493         * troff/div.c (top_level_diversion::copy_file,
12494         top_level_diversion::transparent_output,
12495         top_level_diversion::output): Don't test printing member before
12496         output.
12497         * troff/input.c: Handle initial variable_space_request ifdef
12498         COLUMN.
12499         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
12500         but comment it out.
12502 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
12504         * troff/div.c (diversion::need): Make any space forced.  If we
12505         sprung a trap, set truncated_space to minus the distance to the
12506         trap and set needed_space to the amount that was needed.
12507         (top_level_diversion::space): A forced space turns no_space_mode
12508         off.
12509         (class constant_vunits_reg): New class.
12510         (init_div_requests): Implement number registers .trunc and .ne
12511         using constant_vunits_reg.
12512         (class truncated_space_reg): Deleted.   
12514         * troff/div.h: Don't have a no_space_mode member in diversion.
12515         Instead have it in top_level_diversion.
12516         * troff/div.c (diversion::diversion): Don't initialize
12517         no_space_mode.
12518         (top_level_diversion::top_level_diversion): Initialize
12519         no_space_mode.
12520         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
12521         (macro_diversion::output): Don't clear no_space_mode.
12523         * troff/input.c (diverted_space_node::reread): Don't call
12524         environment::do_break.  In fill mode, act like a blank line.
12525         (diverted_copy_file_node::reread): Don't call
12526         environment::do_break.
12528         * troff/div.c (blank_line): New function.
12529         * troff/div.h: Declare it.
12530         * troff/input.c (process_input_stack): Call it.
12532         * troff/div.c (truncated_space_reg::get_string): New function.
12533         (init_div_requests): Bind to .trunc.
12534         (space_request, top_level_diversion::space,
12535         top_level_diversion::output, macro_diversion::space,
12536         macro_diversion::output): Update truncated_space.
12537         (macro_diversion::output): Redo calculations when trap sprung.
12538         (macro_diversion::output, macro_diversion::space): No need for
12539         trap_flag.
12541         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
12542         after truncating post line spacing.
12544 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
12546         * ps/devps/prologue (MF, SF): Make them work even if setfont is
12547         defined as a procedure rather than as an operator.
12549 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
12551         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
12553 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
12555         * troff/div.c (top_level_diversion::output): Merge
12556         output_file::print_line and output_file::end_of_line member
12557         functions.
12558         * troff/div.h (class output_file):
12559         * troff/node.c (troff_output_file::print_line,
12560         troff_output_file::end_of_line, output_file::end_of_line,
12561         ascii_output_file::print_line, suppress_output_file::print_line):
12562         Corresponding changes.  
12564 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
12566         * troff/input.c (token::next): Don't give a warning for `\.'.
12568         * troff/env.c (environment::get_center_lines): New function.
12569         (init_env_requests): Bind number register .ce to it.
12570         * troff/env.h: Declare it.
12571         * tbl/table.c (table::init_output): Define reset macro to restore
12572         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
12573         Then do .ce 0.
12574         (table::print): If center option not given, then imply center
12575         option if SAVED_CENTER_REG > 0.
12577 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
12579         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
12580         Troff.ps from DOWNLOAD.
12581         
12582         * troff/Makefile: Change comment in DEFINES to avoid confusing
12583         System V make.
12585         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
12586         code.  Don't try to catch errors with stopped.
12587         (check_line_lengths): New function.
12588         * ps/devps/prologue (EXEC): Deleted.
12589         (EBEGIN, EEND): New procedures.
12591 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
12593         * troff/input.c: Include request.h before node.h.
12594         * troff/node.c: Likewise.
12595         * troff/env.c: Likewise.
12596         * troff/div.c: Likewise.
12597         * troff/node.h (class special_node): Store argument as a macro
12598         rather than a char *.
12599         * troff/node.c (special_node::special_node, special_node::copy):
12600         Grok this.
12601         (special_node::~special_node): Deleted.
12602         (special_node::tprint): Deleted.
12603         (special_node::tprint_start, special_node::tprint_end,
12604         special_node::tprint_char): New functions.
12605         (troff_output_file::special): Deleted.
12606         (troff_output_file::start_special, troff_output_file::end_special,
12607         troff_output_file::special_char): New functions.
12608         * troff/input.c (special_node::tprint): New function.
12609         (do_special): Use macro not char *.
12610         (do_transparent_macro): Deleted.
12611         (token::next): Don't call do_transparent_macro.
12613         * troff/input.c (token::next): Add 'Y' case.
12614         (do_transparent_macro): New function.
12615         * troff/node.c (troff_output_file::special): Handle newlines with
12616         argument using new continuation convention.
12617         * driver/input.c (get_string): Cope with continuation convention.
12618         (do_file): Don't call skip_line after calling get_string(1).
12619         * ps/ps.c (ps_printer::special, ps_printer::do_import,
12620         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
12621         arg.
12622         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
12623         with +.
12625 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
12627         * troff/input.c (asciify): By default, illegal input characters
12628         should return empty string.
12630         * troff/input.c (copy_file): Handle first page transition like title.
12631         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
12633         * troff/input.c (token::next): Improve error message for EOF after
12634         escape character.
12635         (input_char_description): New function.
12636         (get_char_for_escape_name): Use input_char_description.
12637         (token::next): Warn about unrecognized escape sequences.
12638         (warning_table): Add WARN_ESCAPE.
12639         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
12640         accordingly.
12642         * troff/token.h: Remove declaration of process_input_stack.
12644         * troff/input.c: Remove declaration of init_hyphen_requests.
12645         * troff/request.h: Correct spelling in declaration of same.
12647         * troff/input.c (token::next): Check whether escape_char is 0.
12649 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
12651         * groff.c (main, usage, help): Implement -P and -L options.
12652         * groff.sh: Likewise.
12654         * troff/input.c (token::next): Use some gotos to avoid code
12655         duplication.
12657         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
12658         Avoid calling symbol::symbol if name empty.
12660 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
12662         * troff/input.c (init_input_requests): Make \n(.x return the major
12663         version number and \n(.y return the minor version number.
12664         * troff/Makefile: Construct file majorminor.c defining
12665         major_version and minor_version automatically from ../VERSION.
12667         * troff/node.c (class glyph_node): Make operator new and operator
12668         delete public.
12669         (class ligature_node): Similarily.
12671         * troff/input.c (operator==(const macro &, const macro &)): New
12672         function.
12673         (non_interpreted_node::same): Use this.
12674         (string_iterator::string_iterator): Make macro& argument const.
12676         * troff/input.c (input_iterator::get): New function. Don't make
12677         asciify_macro or class non_interpreted_node friends of class
12678         input_iterator.
12679         (non_interpreted_node::interpret): Use input_iterator::get.
12680         (asciify_macro): Likewise.
12682         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
12683         ~non_interpreted_node): Deleted.
12684         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
12685         Deleted.
12687         * troff/symbol.h: Make all symbol member functions const.
12689         * lib/strtol.c: New file.
12690         * lib/Makefile: Add strtol.c.
12691         * Makefile: Define STRTOL as strtol.o to include strtol in
12692         libgroff.a.
12694 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
12696         * pic/troff.c (troff_output::simple_circle): Divide by scale.
12698 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
12700         * troff/input.c (do_special): Use input_level.
12702         * troff/token.h (TOKEN_BACKSPACE): New token.
12703         (token::backspace): New function.
12704         * troff/input.c (token::description, token::next, token::process):
12705         Grok TOKEN_BACKSPACE.
12706         (do_special): Turn TOKEN_BACKSPACE back into \b.
12708         * troff/token.h (token::leader): New function.
12709         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
12711         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
12713         * troff/input.c (do_special): Use token::description in error
12714         message.
12716 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
12718         * troff/input.c (decode_args): Combine quoted and
12719         quote_input_level variables. Make it a for (;;) loop.
12721         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
12723         * troff/input.c (read_long_escape_name): The test for whether to
12724         expand buffer was off by 1.
12725         (read_string): Similarily.
12727 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
12729         * troff/input.c: Use `const int' rather than `static const int'.
12731         * troff/div.h (diversion::copy_file): Declare as pure virtual.
12732         (macro_diversion::copy_file): New function.
12733         * troff/node.h: New class diverted_copy_file_node.
12734         * troff/node.c: Implement it.
12735         * troff/input.c (copy_file): Use diversion::copy_file. Handle
12736         first page transition by pushing a diverted_copy_file_node.
12737         * troff/input.c (token::next, process_input_stack): Don't handle
12738         COPY_FILE_REQUEST.
12740 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
12742         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
12743         whether space widths need adjusting.
12745         * troff/charinfo.h: Generalize translated_to_space to
12746         special_translation so as to allow translation to \&.
12747         * troff/input.c (translate): Allow translation to \&.
12748         (charinfo::*): Corresponding changes.
12749         * troff/node.c (make_node, node::add_char): Corresponding changes.
12750         * troff/node.h (dummy_node::dummy_node): Allow optional first
12751         argument.
12753         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
12754         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
12755         TOKEN_REQUEST.
12756         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
12757         TOKEN_REQUEST with an argument of TITLE_REQUEST.
12758         (token::process): Grok that.
12759         * troff/input.c (copy_file): Handle first page transition like
12760         title by pushing a COPY_FILE_REQUEST cookie.
12761         (token::next, process_input_stack): Grok that.
12762         * troff/node.h (output_file::copy_file): Add x and y arguments.
12763         Make it non-pure.
12764         * troff/div.c (top_level_diversion::copy_file): Supply them.
12765         * troff/node.c (troff_output_file::copy_file): Add x and y
12766         arguments; moveto specified position.  Invalidate font_position
12767         array after copying file.
12768         (output_file::copy_file): New function.
12769         (suppressed_output_file::copy_file, ascii_output::copy_file):
12770         Removed.
12771         * troff/input.c (transparent_file): New function.
12772         (init_input_requests): Bind to "trf".
12773         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
12774         (process_input_stack): Likewise.
12776         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
12778         * troff/node.c (init_node_requests): New number registers .kern
12779         pointing to global_kern_mode, and .lg pointing to
12780         global_ligature_mode.
12782         * troff/node.c (ligature): Don't change it if we get a bad
12783         integer.
12785         * troff/input.c (do_define_string): Don't strip tabs.
12787         * troff/input.c (asciify_macro): Make the string_iterator auto.
12789         * troff/node.c (init_font_requests): Rename to...
12790         (init_node_requests):
12791         * troff/node.h: Change declaration.
12792         * troff/input.c (main): Change call.
12794         * troff/input.c (node::reread, diverted_space_node::reread): New
12795         methods.
12796         (process_input_stack): Call reread rather than
12797         get_diverted_space_node.
12798         * troff/node.c (node::get_diverted_space_node,
12799         diverted_space_node::get_diverted_space_node): Removed.
12800         * troff/node.h: Declare reread methods instead of
12801         get_diverted_space_node methods. Make `n' member private.
12802         * troff/input.c: (token::diverted_space): Removed.
12803         * troff/token.h: Removed declaration.
12804         
12806 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
12808         * eqn/script.c (script_box::compute_metrics): Don't let
12809         SUP_RAISE_FORMAT become negative.
12811         * tbl/table.c (table::do_row): Entries that don't end in the
12812         this row shouldn't make the row non-blank.
12813         
12814         * tbl/table.c (table::make_columns_equal): Only set the width of
12815         columns which are marked as equal.
12816         
12817         * tbl/main.c (process_data): Before issuing excess data error,
12818         if last character was a newline unget it; then get it again after
12819         the error.  Also include the contents of the entry in the message.
12821         * groff.c: New file.
12822         * Makefile: Build groff from groff.c.  Make it possible to use
12823         either groff.sh or groff.c as groff.
12824         * Makefile.bd: Similarily.
12826 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
12828         * groff.sh: Don't delay expansion of $@ in assignment to files.
12829         Remove occurrences of \".
12831 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
12833         * all Makefiles: Simplify and rearrange.
12835         * Makefile: Handle fmod like malloc.
12836         * lib/Makefile: Similarily.
12837         * lib/fmod.c: Remove #ifdef NEED_FMOD.
12839         * Makefile: Rename OPTIMISE to OPTIMIZE.
12841         * groff.sh: Remove assignment to PATH.
12842         * Makefile: Remove SHPATH variable.
12843         * Makefile.bd: Similarily.
12845         * groff.sh: Add -V option to print the pipeline instead of
12846         executing it.
12848 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
12850         * lib/font.c: Split off file searching into ...
12851         * lib/fontfile.c: New file.
12853         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
12855 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
12857         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
12858         Also change misleading comment.
12859         (table::do_vspan): Change similarily misleading comment.
12860         * tbl/main.c (process_data): A format row with an explicit `s'
12861         uses up a data line, even if all the other columns are `_' or `='.
12863         * troff/input.c (token::description): Fix description of
12864         TOKEN_DUMMY and TOKEN_EMPTY.
12866 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
12868         * groff.sh: Fix description of -Z in help message.
12870 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
12872         * pic/object.c (object_spec::make_object): Allow negative and zero
12873         line thicknesses.
12874         * pic/pic.y: Give linethick default value of -1.0.
12875         * pic/troff.c (troff_output::troff_output): Initialize
12876         last_line_thickness to BAD_THICKNESS.
12877         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
12878         (troff_output::line_thickness): Canonicalize negative thicknesses
12879         to RELATIVE_THICKNESS.
12880         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
12881         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
12882         to -1.0.
12883         (tex_output::start_picture): Set pen_size to -2.0.
12885         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
12886         0, then use 0 linewidth.
12887         (ps_printer::ps_printer): Initialize line_thickness to -1.
12889         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
12891         * ps/devps/symbolchars: Remove `or'.
12892         * ps/tmac.ps: Implement \(or with .char.
12894         * ps/devps/symbolchars: Move most characters into textmap.
12895         * ps/devps/textmap: Add names for troff bracket characters. Remove
12896         ul, ru, br, bv.
12898         * ps/devps/TSymbol.ps: Removed.
12899         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
12900         * ps/tmac.ps: Do with .char what TSymbol did.
12901         * ps/devps/download: Remove TSymbol.
12903         * ps/devps/T: Removed.
12904         * ps/devps/Troff.ps: Removed.
12905         * ps/devps/Troff.afm: Removed.
12906         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
12907         * ps/devps/download: Remove Troff.
12908         * ps/devps/FontMakefile: Remove T target.
12909         * ps/devps/DESC-A4: Remove T from font list.
12910         * ps/devps/DESC-letter: Likewise.
12912         * troff/input.c (macro_to_node): Rename to ...
12913         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
12914         character's definition while processing it.
12915         * troff/node.c (node::add_char, make_node): Change calls to
12916         macro_to_node accordingly.
12918         * troff/input.c (token::next): Translate \_ to \(ul.
12920         * tty/devascii/R.proto: Add `|'.
12921         * tty/devlatin1/R.proto: Likewise.
12923 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
12925         * man: Put the version number in all the man pages.
12927 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
12929         * Makefile.bd: New file.
12930         * README.bd: New file.
12932         * VERSION: New file.
12933         * lib/version.c: Removed.
12934         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
12935         in clean target.
12937         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
12938         environment variable.
12940         * all Makefiles: Split install target into install.bin for
12941         binaries, and install.nobin for everything else.
12942         * Makefile: Add bindist target.
12944         * man/afmtodit.man: New file.
12945         * man/Makefile: Add afmtodit.n to MAN1PAGES.
12946         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
12947         in BINDIR.
12948         * ps/Makefile: Pass BINDIR to make install in devps.
12950         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
12951         the space character.
12953         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
12955 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
12957         * ps/ps.c: Redo font downloading.
12958         * ps/devps/download: New file.
12959         * ps/devps/Makefile: Add download to DEVICEFILES.
12960         * ps/devps/afmtodit: Remove -d option.
12961         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
12962         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
12963         * ps/devps/zapfdr.ps: Likewise.
12964         * ps/devps/TSymbol.ps: Likewise.
12966 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
12968         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
12970 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
12972         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
12973         then strip the first line if it starts with %.
12974         * Makefile: Add a comment about this.
12976         * man/tfmtodit.man: New file.
12977         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
12978         * dvi/Makefile: Install tfmtodit in BINDIR.
12980         * dvi/tfmtodit.c (usage): Mention -v option.
12982 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
12984         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
12985         * troff/node.c (troff_output_file::transparent_char): Don't call
12986         flush_tbuf.
12988         * eqn: Add check_tabs method to most box classes.
12989         * eqn/box.c (box::top_level): Call check_tabs.
12991         * eqn/script.c (script_box::output): Use \Z.
12992         * eqn/limit.c (limit_box::output): Use \Z.
12994         * eqn/box.c (box::top_level): Use itoa.
12996 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
12998         * dvi/tmac.dvi: Add font translations for CR, C, TT.
12999         * dvi/devdvi/Makefile: Don't make links to CW.
13001         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
13002         HX, HD.
13003         * xditview/tmac.X: Likewise.
13005         * troff/node.c: Add font translation feature.
13006         (get_font_translation): New function.
13007         (symbol_fontno): Translate the font name.
13008         (mount_font_no_translate): Rename to mount_font to this.
13009         (mount_font): New function.
13010         (font_family::make_definite): Call mount_font_no_translate instead
13011         of mount_font.
13012         (mount_style): Translate the font name.
13013         (font_translate): New function.
13014         (init_font_requests): Bind "ftr" to font_translate.
13016         * ps/devps/prologue (SN): New procedure that rounds a position to
13017         the nearest (pixel + (.25,.25)).
13018         (DL): Use SN to round endpoints.
13020         * lib/version.c: Changed version to 0.5.
13022 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
13024         * Makefile: Move definition of PAGE to the very beginning, so that
13025         people are less likely to miss it.
13027 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
13029         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
13031         * troff/env.c (environment::choose_breakpoint): Make `can't find
13032         breakpoint' error a warning of type WARN_BREAK.  Change message to
13033         `can't break line'.
13034         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
13035         code 040000.
13036         * troff/input.c: Add WARN_BREAK to warning_table.  Include
13037         WARN_BREAK in DEFAULT_WARNING_MASK.
13039         * tty/tmac.tty: Add definition of \(+-.
13041         * groff.sh: Remove `--' option to set command.
13043         * dvi/devdvi/texsy.map: Remove duplicate md entry.
13045         * ps/devps/eqnchar: Better definition of cdot using md.
13046         * dvi/devdvi/eqnchar:  Likewise.
13047         * xditview/devX100/eqnchar:  Likewise.
13048         * xditview/devX75/eqnchar: Likewise.
13049         * eqn/lex.c: Add definition of cdot.
13051 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
13053         * troff/input.c (get_optional_char): New function.
13054         * troff/input.c (set_page_character): Use get_optional_char(),
13055         rather than has_arg() and tok.get_char(1).
13056         * troff/env.c (tab_character, leader_character, hyphen_char,
13057         field_characters): Likewise.
13058         (margin_character): Likewise.  Also always delete the
13059         margin_character_node.
13061         * troff/input.c (token::get_char): Use token::description.
13063         * troff/input.c (has_arg): Don't skip over tab and \}.
13064         * troff/number.c (start_number): Give a warning if the number
13065         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
13067 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
13069         * troff/input.c (empty_name_warning, non_empty_name_warning): New
13070         functions.
13071         (get_name, get_long_name): Use these.  Rename `warn' argument to
13072         `required'.
13074         * troff/node.c (get_fontno): Test that the symbol is not null.
13076         * troff/input.c (token::description): New function.
13077         * troff/number.c (parse_term): Use token::description in `numeric
13078         expression expected' message.
13079         * troff/groff.h: Add WARN_MISSING.
13080         * troff/number.c (start_number): New function.
13081         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
13082         get_incr_number): Use start_number().
13083         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
13084         default.
13085         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
13086         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
13087         token::descripion.
13088         * troff/input.c (token::get_char): Use WARN_MISSING.
13089         * troff/input.c (token::delimiter): Use token::description.
13090         * troff/env.c (environment_switch): Back out Aug 3 change.
13091         * troff/input.c (has_arg): Skip over \}s and tabs but give a
13092         warning.
13093         * troff/token.h (token::tab): New function.
13094         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
13095         * troff/reg.c (alter_format): Likewise.
13096         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
13098 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
13100         * troff (most files): Redo warnings. Divide warnings into various
13101         categories; warning() has an additional first argument indicating
13102         the category it falls into.
13103         * troff/input.c (main): -w now takes an argument. New option -W.
13104         (enable_warning, disable_warning): New functions.
13106         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
13107         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
13109 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
13111         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
13112         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
13113         * xditview/devX75/eqnchar: Likewise.
13114         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
13116         * eqn/other.c: When bar or over applies to a single character
13117         don't produce an overline_box or an underline_box. Instead produce
13118         an accent_box or an underaccent_box, with the accent a line
13119         whose width is accent_width.  New classes underaccent_box,
13120         overline_char_box and underline_char_box.
13121         * eqn/box.h: Move overline_box, underline_box, accent_box class
13122         declarations into eqn/other.c. Add declarations of
13123         make_underline_box, make_overline_box, make_accent_box.
13124         * eqn/eqn.y: Call make_overline_box, make_underline_box
13125         make_accent_box instead of constructors.
13126         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
13128         * eqn/other.c: Add accent_box::~accent_box.
13129         * eqn/box.h: Declare it.
13131         * groff.sh: With -Tps, use eqn -D.
13133         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
13134         rather than \l.
13135         (underline_box::output): Similarily.
13136         (accent_box::output): Use \Z.
13138         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
13139         bit smaller.)
13141 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
13143         * troff/div.c (top_level_diversion::transparent_output(unsigned
13144         char)): Use asciify.
13145         * troff/input.c (asciify): Don't make it static.
13146         * troff/token.h (asciify): Declare it.
13147         
13148         * troff/input.c (get_name, get_long_name, token::get_char,
13149         token::delimiter): Add an extra default argument which says
13150         whether a warning should be printed.
13151         * troff: Pass a non-zero argument to one of these rather than
13152         printing a warning directly.
13154 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
13156         * troff: Consistently use symbol::is_null.
13158         * troff/dictionary.h: Move some inline functions into
13159         dictionary.c.
13161         * troff/request.h: Move inline functions into input.c.
13162         (request_or_macro::invoke): Make it pure.
13164         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
13165         * troff/input.c (init_input_requests): Use class constant_int_reg.
13166         (class compatible_reg): Deleted.
13167         * troff/div.c (init_div_requests): Use class constant_int_reg.
13168         (class last_post_line_extra_space_reg): Deleted.
13170         * troff/env.c (tab_character): Don't change the tab character if
13171         we get an invalid argument.
13172         (hyphen_char): Similarily.
13174         * troff/reg.c (alter_format): Check that nm is not null.
13176         * Makefile, groff.sh: Make it possible to customize the commands
13177         used for printing PostScript and dvi files. Also make it possible
13178         to customize the path used by groff.sh.
13180         * eqn/eqn.y: Make `left' right associative.
13182 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
13184         * pic/pic.h: Added definition of M_SQRT2 for those systems that
13185         don't have it.
13187         * pic/pic.h: Removed definition of INT_MAX.
13189         * troff/node.c (italic_corrected_node::vertical_extent): Omit
13190         `return'.
13192         * troff/input.c (token::next):  Handle \R like \n.
13194 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
13196         * ps/tmac.pc (PSPIC): Simplify.
13198         * troff/env.c (tab_stops::to_string):
13199         * pic/pic.y (object_type_name):
13200         * pic/troff.c (simple_output::line):
13201         * pic/tex.c (tex_output::spline):
13202         * pic/object.c (object_spec::make_object):
13203         * tbl/main.c (process_data):  Add cases to switch statements to
13204         avoid cfront warnings. (Some of these are spurious, since the
13205         switch already has a default case.)
13207         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
13208         `ps-'.  Don't test systat; instead check number of arguments to
13209         ps-bb.
13211 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
13213         * macros/tmac.e: Do not decrease the page offset by 0.5i.
13215         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
13216         Unlink the file as soon as we have opened it, so that we don't
13217         have to bother with signal handlers.
13218         (handler): Deleted.
13219         (fatal_error_exit): Deleted.
13220         (main): Don't call signal.
13222         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
13223         can be ignored.
13224         * dvi/devdvi/Makefile: Use the -k option with S and MI.
13226         * pic/pic.y:  If there is a label, or an nth construction before
13227         the first `.' in the argument to `with', ignore it and generate a
13228         warning.
13229         * pic/lex.c (lex_warning): New function.
13231         * tbl/table.c (table::init_output): In section keep and release
13232         macro, use 0 indent when diverting and the correct indent when
13233         rereading.
13235         * troff/input.c (interpolate_number_format): Do not interpolate
13236         anything if the number register is not defined.
13238         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
13240 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
13242         * ps/devps/prologue (PICTURE): Set components of graphics state to
13243         their default values.
13245         * ps/devps/text.enc: Add trademark
13246         * ps/devps/textmap: Add names for club, spade, heart, diamond,
13247         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
13248         * ps/devps/symbolchars: Add names for summation and product.
13250         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
13251         suchthat. Add pp. Add upper-case letters.
13253         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
13254         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
13255         Upsilon.
13257         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
13258         rA (right angle bracket) to ra.  Introduce names for double-headed
13259         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
13260         * ps/devps/textmap: Likewise for ps device.
13261         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
13262         * tty/devascii/R.proto: Rename lA to la and rA to ra.
13263         * tty/devascii/R.proto: Likewise.
13264         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
13265         \(uA, \(dA.
13266         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
13268         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
13270         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
13271         def_table.
13273 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
13275         * troff/div.c (when_request): Use symbol::is_null rather than
13276         has_arg to determine whether we have an argument.
13277         (change_trap): Remove the trap if we get an invalid number. Give
13278         an error if we don't get at least the macro name.
13279         (diversion_trap): Remove trap if we get an invalid name or number.
13281         * troff/env.c (environment_switch): Pop if we get an invalid
13282         symbol or numeric expression.
13284         * troff/input.c (do_define_macro):  If EOF is encoutered while
13285         defining the macro, do tok.next() before returning.
13287         * troff/token.h (has_arg): Move definition from here, to ...
13288         * troff/input.c (has_arg): ... here
13290         * troff/env.c (space_size): Do nothing if we get an invalid argument.
13291         * troff/input.c (shift): Likewise.
13293         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
13294         for `.c'.
13296         * pic/troff.c (troff_output::start_picture):  Comment out calls to
13297         `..'.
13299         * eqn/main.c (do_file): Subtract 1 from current_lineno if
13300         interpret_lf_args succeeds.
13302         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
13303         \\.  This avoids problems with \$N.
13305         * groff.sh: Pass -C to preprocessors.
13307         * lib/lf.c (interpret_lf_args):  Be more flexible.
13309         * tbl/main.c (main): Add -C option.
13310         (table_input::get): Do not recognize TE if followed by character
13311         other than a space or newline unless -C option given.
13312         (process_input_file): Likewise for lf, TS.
13313         (process_data): Likewise for lf in text blocks.
13315         * eqn/main.c (main): Add -C option.
13316         (do_file): Don't recognize EQ, EN or lf if followed by character
13317         other than space or newline unless -C option given.
13318         * eqn/lex.c (file_input::read_line): Similarily.
13319         * eqn/eqn.h: Declare compatible_flag.
13321         * etc/soelim.c (main): Add -C option.
13322         (interpret_lf_args): Use version in libgroff.
13323         (do_file):
13325         * pic/main.c (main): Add -C option, which sets compatible_flag.
13326         (top_input::get), (top_input::peek):  If -C option not given,
13327         do not recognize .PS/.PE/.PF/.lf if followed by a character
13328         other than space or newline.
13329         * pic/lex.c (file_input::read_line): Similarily.
13330         * pic/pic.h: Add declaration of compatible_flag.
13332 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
13334         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
13336         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
13337         derived from node.  New class space_char_hmotion_node.
13338         * troff/input.c (asciify_macro): New function.
13339         * troff/input.c (init_input_requests): New request `asciify' bound
13340         to asciify_macro.
13341         * macros/mm.diff: New file.
13342         * Makefile:  In install.mm target use `patch' to apply
13343         macros/mm.diff.
13345         * troff/input.c (macro::print_size): Just print the size in bytes.
13347         * troff/div.c (return_request): Correct the argument
13348         interpretation.
13350 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
13352         * troff/node.h (class composite_node): Add sz member.
13353         * troff/node.c (composite_node::size): Return sz.
13354         * troff/input.c (macro_to_node):  Use the initial size in the
13355         environment as the size of the composite_node.
13357         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
13358         default.
13360 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
13362         * troff/div.c (change_trap): If we get a bad number expression,
13363         do nothing.
13365 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
13367         * lib/matherr.c (matherr): Define this only if math.h defines
13368         TLOSS.
13370 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
13372         * troff/div.c (macro_diversion::distance_to_next_trap): If there
13373         no diversion trap return vunits(INT_MAX - vresolution).
13375 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
13377         * troff/input.c (do_zero_width): New implementation that doesn't
13378         use a temporary environment. Use instead:
13379         (token::add_to_node_list): New function.
13380         * troff/env.c (environment::get_prev_char_height),
13381         (environment::get_prev_char_height),
13382         (environment::get_prev_char_skew): New functions.
13383         (environment::get_prev_char): New function.
13384         (environment::get_prev_char_width): Change to use get_prev_char.
13385         (init_env_request): Implement new registers .cht, .cdp, .csk.
13386         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
13387         \Z being processed in a separate environment.
13389 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
13391         * tbl/table.c: Removed TABLE_BOTTOM_REG.
13393         * tbl/table.c (table::init_output): In the section release macro,
13394         give a warning message if the section won't fit on one page.
13396         * tbl/table.c (table::do_top): Emit table keep only if table is
13397         boxed.
13398         (table::do_bottom): Likewise for table release.
13399         (table::table), (table::add_vertical_rule):  Remove reference to
13400         keep member.
13401         * tbl/table.h: Remove keep member.
13403         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
13404         SECTION_RELEASE_MACRO, if there's not enough space before the next
13405         trap to output the diversion, call T# ourselves, set
13406         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
13407         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
13408         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
13409         vertical position and return to it before turning traps on again.
13410         
13411 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
13413         * troff/node.c, troff/node.h: In classes derived from node,
13414         replace prev_char_width method by last_char_node method.
13415         * troff/env.c (environment::get_prev_char_width): Use
13416         node::last_char_node rather than node::get_prev_char_width.
13418         * Makefile: Added comment about -fno-inline on 68030-based
13419         Apollos.
13421         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
13422         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
13423         expressions using sizeof to int.
13424         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
13426         * macros/tmac.e (TS):  Don't move @f back past the current
13427         position.
13429 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
13431         * ps/ps.c (main): Buffer stderr.
13432         * dvi/dvi.c (main): Likewise.
13433         * tty/tty.c (main): Likewise.
13435         * ps/ps.c (ps_printer::do_import): Improve error handling.
13437         * troff/input.c (abort_request): Use asciify.
13439         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
13440         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
13441         type of first argument int rather than char.  This works around a
13442         bug on the 68030 based Apollo using g++ 1.37.1.
13444         * tbl/table.h (class table): Add `keep' member.
13445         * tbl/table.c (table::table): Initialize `keep'.
13446         (table::add_vertical_rule): Set `keep' to 1.
13447         (table::do_top): Only emit table keep macro is `keep' is non-zero.
13448         (table::do_bottom): Likewise for table release macro.
13449         (table::do_row): Emit section keep macro even if the row is 0.
13451 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
13453         * macros/tmac.e (@C): Preserve the font family across the change
13454         in environments.
13456 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
13458         * lib/font.c: Initialize font::hor and font::vert to 1.
13459         (font::load_desc): Check the values of font::hor and font::vert.
13461         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
13462         be included in a C compilation.
13463         (iftoa): Use INT_DIGITS. Include lib.h.
13464         (itoa): Likewise.
13465         (as_string): Likewise.
13466         * tbl/table.c: Removed definition of INT_DIGITS.
13467         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
13468         * troff/input.c (input_input_requests): Likewise.
13469         * ps/ps.c (make_encoding_name): Likewise.
13470         (ps_printer::set_style): Likewise.
13471         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
13473         * tty/devascii/R.proto: Map fm onto '.
13474         * tty/devlatin1/R.proto: Likewise.
13476 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
13478         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
13479         argument to \w is at a different input level.
13481         * tbl/table.c (table::init_output): Define a new macro
13482         REPEATED_VPT_MACRO, like vpt but if in a diversion also
13483         transparently outputs itself.
13484         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
13485         vpt.
13486         (table::do_row): Likewise.
13488         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
13489         TRANSPARENT_STRING_NAME.
13491         * tbl/table.c (table::init_output): In the table release macro
13492         print an error message and don't produce any output if after
13493         issuing the need request the table still will not fit.  Also
13494         remove the diversion after bringing it back.
13496         * tbl/table.c (table::init_output): Define a new macro
13497         REPEATED_MARK_MACRO, like mk but if in a diversion also
13498         transparently outputs itself.
13499         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
13500         is necessary because .TH might not call .T#.
13501         (table::do_top): Likewise TOP_REG.
13502         (table::define_bottom_macro): If TOP_REG is no longer valid, use
13503         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
13504         table header might contain just the two top rules.
13506 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
13508         * troff/div.c: Implement new request `ptr' to print all traps.
13510         * troff/env.c (init_env_requests): Implement `.tabs' reg with
13511         init_string_env_reg.
13512         * troff/env.c (class tab_reg): Deleted.
13514 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
13516         * troff/div.c: New number register .pn returns the number of the
13517         next page as set by the pn request.
13519         * macros/tmac.an: Redid headers and footers.  Number each manual
13520         entry starting from 1 unless \nC is > 0, like Sun.  Added an
13521         optional 5th argument to .TH which specifies the manual name and
13522         appears in the center of the header.  Understand the X, P and D
13523         registers like Sun.
13525 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
13527         * troff/env.c (init_env_requests): New number register `.lt' to
13528         return the title length.
13530         * troff/node.h (class transparent_dummy_node): New class.
13531         * troff/node.c (class transparent_dummy_node): Provide member
13532         functions. 
13533         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
13534         than a dummy_node.
13536         * troff/input.c (token::next): New escape sequence \).
13537         * troff/input.c (get_copy): Recognize \) in copy mode.
13539         * troff/input.c (input_stack::clear): New function.
13540         * troff/input.c (exit_request): Use input_stack::clear.
13542         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
13543         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
13545         * troff/env.c: Move set_page_character to input.c.  Move
13546         page_character to input.c also.
13547         * troff/env.c (title): Split off the reading of the parts of the
13548         title into read_title_parts.
13549         * troff/input.c (read_title_parts): New function.  Check the
13550         input_level when testing whether a token matches the delimiter.
13552         * troff/input.c (exit_request): New function.
13553         * troff/input.c (init_input_requests): Bind ex request to
13554         exit_request rather than exit_groff.
13556         * troff/input.c (exit_groff): Call tok.next() before
13557         process_input_stack().
13559 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
13561         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
13562         * troff/env.h: ditto.
13563         * troff/input.c: ditto.
13565         * troff/env.c (environment::is_empty): Test pending_lines.
13567         * troff/env.c (environment::have_pending_lines): Removed.
13569         * troff/input.c: Add request to flush pending lines from the
13570         environment.
13572         * troff/env.c, troff/env.h: Add automatic widow control feature.
13574         * troff/input.c (exit_groff):  Do process_input_stack() after
13575         do_break() but before setting exit_flag to 2.
13577         * troff/input.c: Remove FLUSH_PENDING_LINES and
13578         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
13579         environment after END_TRAP token seen, but only if there aren't
13580         any more traps still unfinished.
13581         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
13583 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
13585         * troff/env.c: Rename the `retain_size' member of class
13586         pending_output_line to `no_fill'.
13588         * troff/env.c (title): When the line is output, make the
13589         retain_size argument !fill.
13591         * troff/node.h: Add `hyphenated' member to struct breakpoint.
13592         * troff/node.c (space_node::get_breakpoints),
13593         (dbreak_node::get_breakpoints):  Fill this in.
13594         * troff/env.c:  Allow specification of maximum number of
13595         consecutive hyphenated lines.
13597         * troff/env.c (environment::is_empty): Add test for !current_tab.
13599 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
13601         * troff/env.c (environment::hyphenate_line): Don't completely give
13602         up if the word is not to be hyphenated; continue so that breaks
13603         can be made at break_char_node's.
13605         * lib/lib.h: Only define INT_MAX if it's not already defined;
13606         undef INT_MIN if it's already defined.
13608         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
13610         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
13611         This works around a bug in AT&T C++ 2.0 used with an ANSI C
13612         compiler.
13613         
13614         * macros/tmac.an (an-header): Set no-space mode.
13616         * macros/tmac.an (TH): Start a new page if necessary.
13618         * Started using ChangeLog at version 0.4.
13620 Local Variables:
13621 version-control: never
13622 coding: latin-1
13623 End: