1 2002-10-14 Werner LEMBERG <wl@gnu.org>
3 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4 troff_output_file::put_char, troff_output_file::fill_color,
5 troff_output_file::glyph_color): Handle case where color pointer
8 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
10 Add the new -r option to grotty. It is similar to the -i option
11 except it tells grotty(1) to use the "reverse video" attribute to
14 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
15 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
16 (tty_printer::make_underline, tty_printer::put_color,
17 tty_printer::end_page): Use it.
18 (main): Add -r switch.
20 * src/devices/grotty/grotty.man: Document it.
22 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
24 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
25 cast to `unsigned char' to properly read patterns with 8bit
28 2002-10-08 Werner LEMBERG <wl@gnu.org>
30 * REVISION: Increased to 2.
32 Version 1.18.1 released
33 =======================
35 2002-10-08 Werner LEMBERG <wl@gnu.org>
37 * doc/webpage.ms, NEWS: Updated.
39 2002-10-07 Werner LEMBERG <wl@gnu.org>
41 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
42 suppress additional whitespace after the header.
44 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
47 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
49 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
51 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
52 (Dt): Use it to improve language localization (especially Russian
55 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
57 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
58 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
60 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
62 Call `picurve' for BSPLINE.
63 (HGPrintElt): Handle BSPLINE.
64 * src/preproc/grn/README: Document it.
66 2002-10-03 Werner LEMBERG <wl@gnu.org>
68 * src/roff/troff/node.cc (break_char_node::col): New variable.
70 (space_node::tprint, word_space_node::tprint): Call `fill_color'
72 (space_node::space_node): Remove assertion.
73 (break_char_node::add_self): Pass color argument to space node.
74 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
76 * src/roff/troff/env.cc (environment::do_break,
77 environment::add_padding): Ditto.
79 2002-10-02 Werner LEMBERG <wl@gnu.org>
81 Redesigning color support in troff. Colors are no longer
82 represented as separate nodes but are now part of glyph nodes and
83 friends. This fixes the current formatting misbehaviour due to the
84 changes introduced on 2002-09-20. Some extra code is necessary for
85 proper grotty support: Without adding color variables to
86 space-related nodes, the background color would be changed too late.
88 * src/roff/troff/node.h, src/roff/troff/node.cc:
89 s/current_pagecolor/current_fill_color/.
90 s/current_glyphcolor/current_glyph_color/.
91 (glyph_color_node, fill_color_node): Removed.
92 (node::get_glyph_color, node::get_fill_color): New virtual member
94 (space_node::col): New variable.
95 Updated constructors of space_node and derived classes accordingly.
96 (hmotion_node::col): New variable.
97 Updated constructors of hmotion_node and space_char_hmotion_node
99 (vmotion_node::col): New variable.
100 Updated constructor accordingly.
101 (draw_node::gcol, draw_node::fcol): New variables.
102 Updated constructor accordingly.
103 (special_node::gcol, special_node::fcol): New variables.
104 Updated constructors accordingly.
105 (troff_output_file::put_char, troff_output_file::put_charwidth,
106 troff_output_file::draw): Set glyph and fill color.
107 (troff_output_file::start_special): Set glyph and fill color.
108 Always set current font.
109 (troff_output_file::fill_color, troff_output_file::glyph_color):
110 Don't call `do_motion'.
111 (glyph_node::gcol, glyph_node::fcol): New variables.
112 Updated constructors of glyph_node and ligature_node accordingly.
113 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
115 (glyph_node::merge_glyph_node,
116 kern_pair_node::add_discretionary_hyphen,
117 node::add_discretionary_hyphen): Updated.
118 (break_char_node::merge_self): Updated.
119 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
120 vmotion_node::tprint): Handle color.
121 (make_glyph_node, make_node, node::add_char): Updated.
123 * src/roff/troff/env.cc (environment::space_newline,
124 environment::space, environment::output_line, environment::do_break,
125 environment::make_tab_node, environment::add_padding, title):
127 (environment_switch, environment_copy): Don't add color nodes.
129 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
131 (token::next): Updated.
132 \m and \M now are as transparent as \s.
133 (process_input_stack, token::add_to_node_list, token::process,
134 read_draw_node): Updated.
135 (charinfo_to_node_list): Don't add color nodes.
137 * doc/groff.texinfo: Updated.
139 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
141 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
144 2002-09-27 Colin Watson <cjwatson@debian.org>
146 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
148 2002-09-23 Werner LEMBERG <wl@gnu.org>
150 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
152 (DEFAULT_LINEWIDTH_FACTOR): New macro.
153 (linewidth_factor): New global variable.
154 (lbp_printer::set_line_thickness): Fix case for size < 0, using
156 (long_options): Add -w/--linewidth option.
158 (main): Handle -w option to set linewidth_factor.
159 (lbp_printer::lbp_printer): Initialize req_linethickness, not
162 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
164 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
166 Fixed a bug in the line thickness setting code.
168 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
170 (lbp_printer::set_line_thickness): Pass environment as second
172 Implement it actually.
173 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
174 and `set_line_thickness, depending on the current font size.
176 2002-09-21 Werner LEMBERG <wl@gnu.org>
180 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
181 * src/roff/troff/node.cc (bracket_node::copy): Initialize
184 2002-09-20 Werner LEMBERG <wl@gnu.org>
186 * configure: Regenerated with autoconf 2.54.
188 2002-09-20 Werner LEMBERG <wl@gnu.org>
190 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
192 Rename cur_fill_color to fill_color.
193 * src/roff/troff/env.cc: Updated.
195 2002-09-20 Werner LEMBERG <wl@gnu.org>
197 * src/roff/troff/env.cc (title): Copy color status after processing
199 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
200 fill color nodes to reset colors properly.
202 * tmac/www.tmac (DC): Fix color handling.
204 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
205 * doc/groff.texinfo: Fixing documentation of `tl' request.
206 * doc/webpage.ms: Updated.
208 2002-09-19 Werner LEMBERG <wl@gnu.org>
210 * src/roff/troff/env.cc (environent_switch, environment_copy):
211 Emit glyph and fill color nodes to initialize colors properly.
213 2002-09-17 Colin Watson <cjwatson@debian.org>
215 * src/roff/troff/env.cc (environment::set_glyph_color,
216 environment::set_fill_color): Fix typo which prevented \m[] work
219 2002-09-17 Werner LEMBERG <wl@gnu.org>
221 Add left and right italic correction to non-slanted PS fonts. This
222 is an experimental feature to improve image rendering of grohtml.
224 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
225 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
226 * font/devps/*: All non-slanted fonts regenerated.
229 2002-09-16 Werner LEMBERG <wl@gnu.org>
231 Add a site-specific font directory.
233 * Makefile.in (localfontdir, legacyfontdir): New variables.
234 (fontpath): Use them.
235 (MDEFINES, uninstall_dirs): Updated.
236 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
237 Remove `FONTPATH' and `MACROPATH'.
239 * src/roff/troff/troff.man, NEWS: Updated.
240 * doc/groff.texinfo (Font Directories): New section.
243 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
244 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
245 src/preproc/grn/grn.man: Minor fixes.
247 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
248 Remove unused variable.
250 2002-09-11 Werner LEMBERG <wl@gnu.org>
252 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
253 * man/groff_out.man: Fix documentation of 'N'.
255 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
257 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
258 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
260 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
261 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
262 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
263 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
264 PRE_TAG>: Call `begin' with `FALSE'.
266 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
268 * src/libs/libgroff/string.cc (string::extract): Fix position of
269 terminating null byte.
271 2002-09-08 Werner LEMBERG <wl@gnu.org>
273 Add global option `nospaces' to tbl so that leading and trailing
274 spaces in data items are ignored.
276 * src/libs/libgroff/string.cc (string::remove_spaces): New member
277 function to remove leading and trailing spaces.
278 * src/include/stringclass.h: Updated.
280 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
282 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
284 Fix typo in error messages.
285 (process_data): Implement `nospaces' option.
286 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
288 2002-09-07 Werner LEMBERG <wl@gnu.org>
290 * src/include/config.hin: Add `HAVE_ISATTY'.
291 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
293 * src/libs/libgroff/tmpname.cc: Include `time.h'.
294 * src/libs/libdriver/input.cc (Char): Add `operator==' and
295 `operator!=' for `char'.
296 * doc/groff.texinfo: Replace @ifnottex block for top node with
299 2002-09-06 Werner LEMBERG <wl@gnu.org>
301 * doc/Makefile.in (.texinfo.html): Add -I switch.
302 * doc/groff.texinfo: Add @ifnottex block for top node to make
303 translation to HTML work.
305 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
307 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
308 (get_papersize, determine_vertical_offset): Removed.
309 (char_buffer::do_image): Always specify letter size.
311 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
314 2002-09-05 Werner LEMBERG <wl@gnu.org>
316 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
319 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
321 * src/preproc/html/pre-html.cc (imageList::createPage): Use
323 (generateImages): Clean up push-back buffer.
325 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
327 * doc/groff.texinfo: Minor fixes.
329 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
331 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
332 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
334 (determine_vertical_offset): Use LETTER_LENGTH.
335 (createPage): Moved to ...
336 (imageList::createPage): This.
337 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
338 (imageList::getMaxX): New function.
339 (createImage): Moved to ...
340 (imageList::createImage): This.
341 (imageList::createImages): New function.
342 (generateImages): Read `maxx' directly.
344 (scanArguments): Don't specify `gsPaper' for `-o'.
345 (makeTempFiles): Call `xtmpfile' with the last argument set to
348 2002-08-24 Werner LEMBERG <wl@gnu.org>
350 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
351 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
352 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
353 * src/preproc/html/pushback.cc: Include nonposix.h.
354 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
357 2002-08-23 Werner LEMBERG <wl@gnu.org>
359 Use $(OBJEXT) for the object file extension.
361 * Makefile.comm (.SUFFIXES): Add .obj.
362 (.cc.obj, .c.obj): New implicit rules.
363 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
364 (MDEFINES): Add EXEEXT and OBJEXT.
365 * */Makefile.sub: s/.o/.$(OBJEXT)/.
367 2002-08-22 Werner LEMBERG <wl@gnu.org>
369 * INSTALL: Mention texinfo 4.2 as a prerequisite.
371 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
373 * src/devices/grohtml/post-html.cc (colType): Make enum global to
375 (html_printer::update_min_max, html_printer::add_table_end): New
377 (html_printer::lookahead_for_tables): Use them.
378 Reset page offset correctly.
379 (html_printer::~html_printer): Add creation of creator comment up.
381 2002-08-20 Werner LEMBERG <wl@gnu.org>
383 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
384 * man/groff_tmac.man: Fix typos.
385 * man/groff_font.man: Minor reordering.
386 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
387 * contrib/groffer/groffer.man: Fix typos.
389 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
391 Avoid endless loops while scanning for tables.
393 * src/devices/grohtml/post-html.cc (list::insert): Set
395 (html_printer::next_horiz_pos): Add `text_glob' argument; update
397 Return immediately if that argument is NULL.
398 (html_printer::calc_nf): Don't test if `g' is NULL.
399 (html_printer::lookahead_for_tables): Use
400 `glyphs.move_right_get_data'.
401 Don't test if `g' is NULL.
403 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
405 A better fix, replacing fix 2002-08-15, for increasing SIZE.
407 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
409 (char_block::char_block): Allocate `buffer'.
410 (char_buffer::add_string): Use it.
412 2002-08-15 Werner LEMBERG <wl@gnu.org>
414 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
415 src/devices/grodvi/grodvi.man: Document default line thickness.
417 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
419 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
422 2002-08-14 Werner LEMBERG <wl@gnu.org>
424 * doc/webpage.ms: Updated.
426 2002-08-09 Werner LEMBERG <wl@gnu.org>
428 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
431 2002-08-08 Aaron Campbell <aaron@monkey.org>
433 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
436 2002-08-08 Werner LEMBERG <wl@gnu.org>
438 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
441 Don't push back a space but a newline onto the stack.
443 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
445 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
448 * src/devices/grohtml/post-html.cc (html_printer::end_font,
449 html_printer::start_font): Handle them.
450 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
452 (html_text::do_bold): Don't reset italic and tt.
453 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
454 * font/devhtml/DESC.proto: Add those fonts.
455 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
457 2002-08-07 Werner LEMBERG <wl@gnu.org>
459 * MORE.STUFF: Added gpresent.
461 * tmac/trace.tmac: Show nesting level by a corresponding amount of
462 whitespace before printing the logging message.
464 2002-07-31 Colin Watson <cjwatson@debian.org>
466 * src/devices/grohtml/html-table.cc (html_table::finish_row):
467 Initialize `n' to zero. This fixes a segfault on ARM.
469 2002-07-30 Werner LEMBERG <wl@gnu.org>
471 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
473 2002-07-29 Werner LEMBERG <wl@gnu.org>
475 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
478 2002-07-28 Colin Watson <cjwatson@debian.org>
480 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
482 (html_printer::html_printer): Initialize `pointsize'.
484 2002-07-26 Werner LEMBERG <wl@gnu.org>
486 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
488 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
489 (gnu.eps): Add -rle switch to pnmtops.
490 (distfiles): Add gnu.eps and gnu.png.
492 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
494 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
497 2002-07-24 Werner LEMBERG <wl@gnu.org>
499 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
500 ' \+' but ' *' for sed.
501 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
503 2002-07-23 Werner LEMBERG <wl@gnu.org>
505 * doc/groff.texinfo: Document `papersize' keyword.
506 * NEWS, man/groff_font.man: Updated.
508 2002-07-23 Colin Watson <cjwatson@debian.org>
510 Extend papersize keyword to accept more than a single entry. The
511 first valid will be used.
513 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
514 (font::scan_papersize): Really skip final newline.
515 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
517 2002-07-23 Werner LEMBERG <wl@gnu.org>
519 * configure.ac: Test for isatty.
520 * configure: Regenerated.
521 * src/include/posix.h: Check HAVE_ISATTY.
522 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
523 * src/utils/lookbib/lookbib.cc: Include posix.h.
524 Don't declare isatty.
526 2002-07-21 Werner LEMBERG <wl@gnu.org>
528 * NEWS: Add `output' request.
530 * REVISION: Increased to 1.
532 Version 1.18.0 released
533 =======================
535 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
537 Allow internal glyph indices > 0xFF in grohtml for input characters.
539 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
541 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
543 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
544 (html_printer): Updated.
546 2002-07-19 Werner LEMBERG <wl@gnu.org>
548 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
549 * font/devutf8/R.proto: Adding some missing glyphs.
550 * font/devutf8/NOTES: Updated.
552 * tmac/dvi.tmac: Add more composite glyphs.
553 * tmac/html.tmac: Updated.
555 * man/groff_char.man: Add `sum' and `product' entities.
559 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
561 Improved table, tab, and indenting support.
563 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
564 string_iterator::suppress_newline_flag): Removed. Updated all
565 function which have used it.
567 * src/roff/troff/env.cc: Include `input.h'.
568 (environment::add_node): Accept 0 as parameter.
569 (environment::add_html_tag): Add `force' parameter.
571 (environment::add_html_tag_tabs): Ditto.
572 For the moment, support left-aligned tabs only.
573 (environment::make_html_tag): New function.
574 (fill, no_fill): Set .br html tag additionally.
575 (environment::newline): Emit `eol.ce' or `eol' tag for html.
576 (environment::add_html_tag_eol): Removed.
577 (tab_stops::distance_to_next_tab): Add variant for handling
579 (environment::distance_to_next_tab): Ditto.
581 (environment::handle_tab): Handle tabs for html.
583 * src/roff/troff/env.h: Updated.
585 * src/roff/troff/div.cc: Updated all callers of
586 `environment::add_html_tag'.
588 * src/devices/grohtml/html-table.cc,
589 src/devices/grohtml/html-table.h: New files.
591 * src/devices/grohtml/html-text.cc (html_text): New members
592 `blank_para' and `start_space'.
593 (html_text::issue_tag): Don't emit TABLE_TAG.
594 Handle indentation for PRE_TAG and P_TAG.
595 (html_text::end_tag): Updated.
596 (html_text::table_is_void, html_text::issue_table_begin,
597 html_text::issue_table_end): Removed.
598 (html_text::do_push): Simplified.
599 [DEBUGGING]: Small fix.
600 (html_text::push_para): Add new parameter for indentation; updated
603 (html_text::do_indent, html_text::do_table, html_text::done_table,
604 html_text::is_in_table): Removed.
605 (html_text::do_pre): Handle P_TAG also.
606 (html_text::shutdown): Handle p->indent.
607 (html_text::check_emit_text): Simplified.
608 (html_text::do_emittext): Reset `blank_para'.
609 (html_text::do_para): Add new parameter for indentation; updated
611 (html_text::remove_indent): New function.
612 (html_text::do_space): Handle verbatim text properly.
613 (html_text::ever_emitted_text, html_text::starts_with_space,
614 html_text::remove_para_align): New functions.
615 (html_text::dump_stack_element, html_text::dump_stack): Updated.
617 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
620 * src/devices/grohtml/post-html.cc: Include html-table.h.
621 (INDENTATION): Removed.
622 (text_glob): Added many `is_<foo>' functions.
623 Added table description `tab'.
624 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
626 (list): Add `insert' and `move_to' member functions.
627 (page): Add `insert_tag' member function.
628 (page::dump_page) [DEBUG_TABLES]: Improved.
629 (html_printer): Add `table' and `max_linelength' elements.
630 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
631 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
632 `remove_tabs', `remove_courier_tabs'.
633 (html_printer::emit_raw): Handle indentation.
634 (html_printer::do_center, html_printer::write_header): Updated.
635 (html_printer::is_courier_until_eol): Check for tag.
636 (html_printer::do_linelength): Handle max_linelength.
637 (html_printer::do_page_offset, html_printer::do_indentation): Handle
639 (html_printer::do_tempindent): Updated.
640 (html_printer::do_indentedparagraph): Removed.
641 (html_printer::do_indent): Simplified.
642 (html_printer::do_eol): Use `ever_emitted_text'.
643 (html_printer::do_flush, html_printer::do_links): Don't call
645 (html_printer::do_break): Handle end_tempindent.
646 (html_printer::troff_tag): Get argument.
648 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
649 (html_printer::flush_page): Call `lookahead_for_tables'.
650 Don't call `done_table'.
651 (html_printer::add_to_sbuf): Always call do_indent.
653 * src/devices/grohtml/Makefile.sub: Updated.
655 * tmac/an-old.tmac (TP): Don't handle html device specially.
656 (an-do-tag-html): New function which will be used instead of
657 `an-do-tag' if html device is used.
659 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
661 * tmac/s.tmac (@IP): Don't handle html device specially.
662 (@IP-html): New function which will be used instead of `@IP' if
665 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
666 is a hack which will eventually vanish again.
667 (PIMG): Handle `-C' option correctly if not html.
670 2002-07-17 Werner LEMBERG <wl@gnu.org>
672 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
674 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
676 * contrib/pic2graph/pic2graph.*: Use convert(1).
677 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
679 2002-07-14 Bernd Warken <bwarken@mayn.de>
681 * tmac/groff_trace.man: New file.
682 * tmac/Makefile.sub: Updated.
685 2002-07-13 Werner LEMBERG <wl@gnu.org>
687 * src/roff/groff/groff.man: Add some cross references.
689 2002-07-12 Werner LEMBERG <wl@gnu.org>
691 * src/roff/troff/input.cc (substring_request): Add warnings for
692 string indices out of range.
694 2002-07-11 Werner LEMBERG <wl@gnu.org>
696 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
697 * font/devdvi/*EC: Regenerated.
699 2002-07-10 Bernd Warken <bwarken@mayn.de>
701 * man/groff_char.man: Updated and extended.
703 2002-07-10 Werner LEMBERG <wl@gnu.org>
705 * src/roff/troff/input.cc (length_macro): Renamed to...
706 (length_request): This.
707 Move call of `tok.next()' to the very end, otherwise the register
708 value hasn't been updated yet.
709 (init_input_requests): Updated.
711 2002-07-09 Werner LEMBERG <wl@gnu.org>
713 * src/roff/troff/input.cc (substring_macro): Renamed to...
714 (substring_request): This.
715 (init_input_requests): Updated.
716 * src/roff/troff/request.h: Updated.
718 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
720 * src/roff/grog/grog.sh: Fix typo.
722 2002-07-08 Werner LEMBERG <wl@gnu.org>
724 * win32-diffs: Updated.
726 Handle `papersize' keyword properly in DESC.
728 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
731 * src/libs/libgroff/paper.cc: Add four more paper formats used by
733 * src/include/paper.h: Updated.
735 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
736 Other minor C syntax fixes.
737 (papersize, paperlength, paperwidth): Renamed to `user_*'.
738 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
740 (lbp_printer::lbp_printer): Pass three arguments.
741 Set paper dimensions properly.
742 (make_printer, main): Updated.
743 (handle_unknown_desc_command): Fix error messages.
744 (main): Handle papersize keyword in DESC properly.
746 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
748 (lbp_printer::lbp_printer): Pass an argument.
749 Set paper_size properly.
750 (handle_unknown_desc_command): Removed.
751 (make_printer, main): Updated.
752 * src/devices/grolj4/grolj4.man: Minor documentation fix.
754 * man/groff_font.man, NEWS: Updated.
756 2002-07-07 Werner LEMBERG <wl@gnu.org>
758 Integrated eqn2graph, contributed by Eric S. Raymond.
760 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
762 * Makefile.in, NEWS: Updated.
764 2002-06-04 Werner LEMBERG <wl@gnu.org>
766 Changing the substring request to make it fit better with other
767 string manipulation functions in other programming languages:
768 Index 0 is now the first character in the string, and index -1
769 indicates the last character. Since this request didn't work
770 properly anyway in the last release, it doesn't harm too much to
773 * src/roff/troff/input.cc (substring_macro): Use loops to get
774 the real string length (ignoring COMPATIBLE_SAVE and
775 COMPATIBLE_RESTORE) and offsets.
776 Implement change described above.
778 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
779 (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
781 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
783 2002-06-03 Werner LEMBERG <wl@gnu.org>
785 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
786 COMPATIBLE_RESTORE are completely ignored.
788 * src/roff/troff/input.cc (char_list::set, char_list::get): New
790 (macro): `length' field renamed to `len'.
791 Added new field `empty_macro' (1 if macro is empty), to be used
792 instead of checking `len'.
794 (macro::empty): Updated.
795 (macro::length, macro::set, macro::get): New functions.
796 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
798 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
799 COMPATIBLE_RESTORE pairs.
800 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
801 * src/roff/troff/request.h: Updated.
803 * doc/groff.texinfo: Document .chop's behaviour better.
805 2002-06-02 Werner LEMBERG <wl@gnu.org>
807 * doc/pic.ms: Fix documentation for the addition of positions.
809 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
811 2002-06-29 Werner LEMBERG <wl@gnu.org>
813 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
815 * src/roff/troff/input.cc (have_string_arg): New global variable.
816 (read_mode): New enumeration.
817 (read_escape_name): Use it. Update all calls.
818 (read_long_escape_name): Use it. Update all calls.
819 Set have_string_arg if appropriate.
820 (get_char_for_escape_name): Add parameter for handling space
822 (interpolate_string_with_args, decode_string_args): New functions.
823 (get_copy, token::next): Call it if necessary.
824 (interpolate_string): Fix error message.
826 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
829 2002-06-24 Bernd Warken <bwarken@mayn.de>
831 * man/groff_tmac.man: Updated and extended.
833 2002-06-24 Werner LEMBERG <wl@gnu.org>
835 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
837 2002-06-23 Werner LEMBERG <wl@gnu.org>
839 * doc/pic.ms: Improve documentation of composite block objects.
841 2002-06-22 Werner LEMBERG <wl@gnu.org>
843 * src/roff/troff/input.cc (init_registers): Add three registers
844 `seconds', `minutes', and `hours' to hold the current time.
846 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
849 2002-06-20 Werner LEMBERG <wl@gnu.org>
851 Make \X accept both `\ ' and `\~', converting them to single space
854 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
855 (token::unstretchable_space): New inline function.
856 * src/roff/troff/input.cc (token::next, token::delimiter,
857 token::description, token::add_to_node_list, token::process): Handle
858 TOKEN_UNSTRETCHABLE_NODE.
859 (encode_char): Handle tok.stretchable_space and
860 tok.unstretchable_space.
862 * NEWS, doc/groff.texinfo: Document it..
864 2002-06-19 Werner LEMBERG <wl@gnu.org>
866 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
868 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
869 keyword to enable/disable SGR output.
870 (tty_printer::change_fill_color): New function.
871 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
873 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
876 2002-06-18 Werner LEMBERG <wl@gnu.org>
878 Add a `color' request and a `.color' register to control usage of
881 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
882 (color_flag): This (which is the inverse).
883 (activate_color): New function.
884 (main, init_input_requests): Updated.
885 * src/roff/troff/troff.h, src/roff/troff/node.cc
886 (troff_output_file::fill_color, troff_output_file::glyph_color):
889 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
890 Document the changes.
892 2002-06-17 Colin Watson <cjwatson@debian.org>
894 Circumvent bug in autoconf 2.53 regarding top_builddir.
896 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
897 * Makefile.in, doc/Makefile.in:
898 s/@top_builddir@/@groff_top_builddir@/.
899 * configure: Regenerated (with autoconf 2.53).
901 2002-06-17 Werner LEMBERG <wl@gnu.org>
903 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
904 `paperwidth' and `paperlength' for the `papersize' keyword.
906 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
908 * src/devices/grops/grops.man: Add info about Type 42 fonts.
910 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
912 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
913 html_printer::do_linelength, html_printer::do_pageoffset,
914 html_printer::do_indentation, html_printer::do_tempindent,
915 html_printer::do_break, html_printer::begin_page): Clear indented
917 * tmac/html.tmac: Disable hyphenation.
919 2002-06-15 Werner LEMBERG <wl@gnu.org>
921 Don't produce HTML files if utility programs are missing.
923 * Makefile.in (make_html, make_install_html): New variables.
926 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
928 * configure.ac: Use it.
929 * configure: Regenerated.
931 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
932 (HTMLEXAMPLESFILES): This new variable.
933 (EXAMPLESIMAGEFILES): Renamed to...
934 (HTMLEXAMPLEIMAGEFILES): This.
935 (CLEANADD): Add HTMLEXAMPLEFILES.
936 (all): Use `make_html'.
938 (install_data): Use `make_install_html'.
939 Move html stuff to...
940 (install_html): This new target.
941 (uninstall_sub): Updated.
943 2002-06-14 Bernd Warken <bwarken@mayn.de>
945 * src/roff/grog/Makefile.sub (grog): Renamed to...
947 (grog): New rule to always install grog.sh as grog.
949 2002-06-08 Bernd Warken <bwarken@mayn.de>
951 * src/roff/grog/grog.pl: Fix typo.
953 2002-06-07 Werner LEMBERG <wl@gnu.org>
955 * doc/groff.texinfo: Add more info on .tr arguments.
957 2002-06-05 Werner LEMBERG <wl@gnu.org>
959 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
961 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
962 * configure: Regenerated.
964 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
966 * src/roff/troff/symbol.cc (table_sizes): Add more values.
968 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
970 2002-06-04 Werner LEMBERG <wl@gnu.org>
972 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
973 is not initialized at the time we need it in case `--prefix' hasn't
974 been set. Check for `ac_default_prefix' also.
975 Test for `papersize' keyword also and generalize allowed whitespace.
976 * configure: Regenerated.
978 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
981 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
983 (src_version, src_revision): New variables to avoid overwriting
984 from parent make process.
985 (version.cc): Updated.
987 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
988 (linebuf, linebufsize): New global variables.
989 (sys_fatal): Use `fatal' to abort properly.
990 (get_line): New function.
991 (get_resolution): Use it.
992 Improve error messages.
993 (get_papersize): Check `papersize' also.
995 Improve error messages.
997 2002-06-03 Werner LEMBERG <wl@gnu.org>
999 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
1000 should be removed only if builddir is not srcdir.
1001 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
1002 (clean): Depend on `mostlyclean'.
1003 (distclean): Depend on `clean'.
1004 (realclean, extraclean): Depend on `distclean'.
1005 (.y.cc, .y.o): Simplified. The output files are no longer written
1006 to srcdir but to builddir.
1007 * Makefile.in (MDEFINES): Add `version' and `revision'.
1008 (uninstall_dirs): Fix order of directories.
1009 * doc/Makefile.sub (version, revision): Removed.
1010 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
1011 Added `HTMLDOCFILES'.
1012 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
1013 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
1014 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
1017 * doc/texinfo.tex (\authortt): New macro.
1018 (\shortcontt): Define.
1019 (\titlepage): Set \tt to \authortt while defining \authorfont.
1020 (\appendixbox): New macro.
1021 (\chapmacro, \appendixentry): Use \appendixbox to get even
1022 indentation for letters.
1023 (\summarycontents): Set \tt.
1024 (\internalpagesize): Add two arguments for real paper width and
1025 height as needed by pdfTeX.
1026 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
1028 (\tempdima, \tempdimb): New temporary dimensions.
1029 (\pagesizesyyy): Updated.
1031 2002-06-02 Werner LEMBERG <wl@gnu.org>
1033 Adding a new keyword `papersize' to the DESC file format (similar
1034 but not completely identical to grolbp's extension). grops now has
1035 a -p command line option to override `papersize'. Finally, grolbp
1036 has been adapted to the new syntax.
1038 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
1039 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
1041 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
1042 (CCSRCS): Add `paper.cc'.
1044 * src/include/font.h (font): Add `papersize' element.
1045 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
1046 (font::scan_papersize): New function.
1047 (font::load_desc): Use it for handling `papersize' keyword.
1048 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
1050 * src/devices/grops/ps.cc: Include paper.h.
1051 (user_paper_length): New global variable.
1052 (ps_printer): Use paper length as initializer.
1053 (make_printer): Updated.
1054 (main): Handle new `-p' option.
1055 * src/devices/grops/grops.man: Updated.
1057 * src/devices/grolbp/lbp.cc: Include paper.h.
1058 s/papersizes/lbp_papersizes/.
1059 (set_papersize): Use new `papersizes' array.
1060 (handle_unknown_desc_command): Don't handle `papersize'.
1061 (main): Use `font::scan_papersize' for handling `-p' option.
1062 * src/devices/grolbp/grolbp.man: Updated.
1064 * man/groff_font.man: Document `papersize'.
1067 2002-05-30 Werner LEMBERG <wl@gnu.org>
1069 * src/devices/grops/TODO: Updated.
1070 * src/devices/grops/grops.man: More info on paper formats.
1071 * man/groff_font.man: Document `paperheight' and `paperwidth'.
1073 2002-05-29 Werner LEMBERG <wl@gnu.org>
1075 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
1076 to list only if srcdir != currdir.
1077 (distfiles): New target.
1079 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
1080 (NOMAKEDIRS): New variable.
1083 2002-05-26 Werner LEMBERG <wl@gnu.org>
1085 Add .output request, similar to \! at top-level.
1087 * src/roff/troff/input.cc (transparent): Remove unused declaration.
1088 (output_request): New function.
1089 (init_input_requests): Add it.
1091 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1094 * Makefile.in (MDEFINES): Add INSTALL_INFO.
1095 (prepare_examples): Fix typo.
1096 * doc/groff.texinfo (@direntry): Fix it.
1098 2002-05-25 Werner LEMBERG <wl@gnu.org>
1100 Including the doc subdir into groff's Makefile system.
1102 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
1103 * configure.ac: Use it.
1104 Generate `doc/Makefile'.
1105 * configure: Regenerated.
1107 * Makefile.in (infodir, INSTALL_INFO): New variables.
1108 (MDEFINES, uninstall_dirs): Updated.
1109 (OTHERDIRS): Add `doc'.
1110 * Makefile.comm (CLEANDIRADD): New variable.
1111 (mostlyclean): Use it.
1113 * doc/Makefile.sub, doc/Makefile.in: New files.
1114 * doc/Makefile: Removed.
1116 * NEWS, INSTALL: Updated.
1118 2002-05-24 Werner LEMBERG <wl@gnu.org>
1120 * doc/homepage.ms: Renamed to ...
1121 * doc/webpage.ms: This.
1124 2002-05-23 Werner LEMBERG <wl@gnu.org>
1126 Integrating the `mom' macro package, contributed by Peter Schaffter
1129 * contrib/mom/*: New subdirectory tree.
1130 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
1131 be used for documentation files.
1132 (MDEFINES, uninstall_dirs): Use them.
1133 (OTHERDIRS): Add contrib/mom.
1134 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
1136 * MANIFEST, NEWS: Updated.
1138 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
1140 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
1141 if at outer level; at start-up we are at outer level.
1143 * src/roff/troff/input.cc (do_suppress): Implement it.
1146 Add option -p to show progress information.
1147 pre-grohtml will now render only one page at a time, reducing the
1148 size of needed disk resources enormously.
1150 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
1151 (imagePageName): New global variable.
1152 (psPageName, show_progress, currentPageNo): New global variables.
1153 (html_system): Close saved stderr and stdout handles.
1154 (write_end_image): Accept a parameter to control \O escape.
1155 (write_start_image): Adapted to new \O meaning.
1156 (char_buffer::write_upto_newline): Updated.
1157 (createAllPages): Replaced with...
1158 (createPage): This new function to create a single page for images.
1159 It uses `psselect' from the psutils package.
1160 (removeAllPages): Removed.
1161 (createImage): Updated.
1162 Handle progress display.
1163 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
1164 (scanArguments): Add option -p.
1165 (makeTempFiles): Updated to create temp files for psPageName and
1167 (removeTempFiles): Removed.
1170 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
1171 html_printer::write_header): Append `\0' to `buffer'.
1172 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
1174 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
1175 Handle `text_emitted'.
1176 (html_text::table_is_void): Slightly rewritten.
1177 (stop): New external symbol.
1178 (html_text::do_push) [DEBUGGING]: Use it and simplify.
1179 (html_text::shutdown): Call `dump_stack'.
1180 (html_text::do_space): Rewritten.
1181 * src/devices/grohtml/grohtml.man: Document -p and the need of
1184 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
1186 Call \O[0] if `ps4html' is active.
1187 * tmac/s.tmac (@EQ, @EN): Handle html better.
1189 * tmac/html.tmac: Don't use black for background colour.
1191 * src/roff/troff/node.cc: Include `div.h'.
1192 (troff_output_file::really_print_line): Don't use `is_on'.
1193 (troff_output_file::word_marker, troff_output_file::flush_tbuf
1194 troff_output_file::check_charinfo,
1195 troff_output_file::put_char_width, troff_output_file::put_char,
1196 troff_output_file::determine_line_limits, troff_output_file::draw,
1197 real_output_file::begin_page, glyph_color_node::tprintf,
1198 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
1200 (troff_output_file::really_on): Call `do_motion'.
1201 (suppress_node::tprint): Use `get_page_number' instead of `%'
1203 Call `reset_output_registers' conditionally on `is_on'.
1205 * doc/groff.texinfo: Document new syntax of \O.
1206 * NEWS, man/groff_diff.man: Updated.
1208 2002-05-22 Werner LEMBERG <wl@gnu.org>
1210 * MORE.STUFF: Add info about David Frey's deroff implementation.
1213 2002-05-16 Werner LEMBERG <wl@gnu.org>
1215 Pic's `with' attribute now accepts positions.
1217 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
1218 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
1220 (object_spec): Add rule for `WITH' and `position'.
1221 (relative_path): Give `corner' the precedence of `CHOP'.
1222 * src/preproc/pic/object.h (path): New members `pos' and
1224 * src/preproc/pic/object.cc: Updated initializers of `path'.
1225 (path::follow): Handle `is_position'.
1227 * doc/pic.ms: Completely updated grammar description.
1228 Many typographical improvements.
1230 2002-05-15 Werner LEMBERG <wl@gnu.org>
1232 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
1233 code of x in range 0-127) also.
1234 * doc/groff.texinfo, man/groff_diff.man: Updated.
1236 Added keywords `north', `south', `east', and `west' for corners
1239 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
1241 (yylex): Handle them.
1242 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
1243 (corner): Handle them.
1245 2002-05-14 Werner LEMBERG <wl@gnu.org>
1247 * src/devices/grops/grops.man: Clarify handling of `download' file.
1249 2002-05-11 Werner LEMBERG <wl@gnu.org>
1251 Adding `warnscale' and `spreadwarn' requests, based on a patch from
1252 Jeffrey Friedl <jfriedl@yahoo.com>.
1254 * src/roff/troff/input.cc (spread_limit, warn_scale,
1255 warn_scaling_indicator): New global variables.
1256 (warnscale_request, spreadwarn_requests): New functions.
1257 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
1258 (init_input_requests): Updated.
1259 (error_type): Add `OUTPUT_WARNING'.
1260 (do_error): Handle it.
1261 (output_warning): New warning function which shows output location.
1262 * src/roff/troff/env.h (spread_limit): New external variable.
1263 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
1265 (distribute_space): Emit warning if added space is larger than
1267 (environment::possibly_break_line): Emit warning if a line can't
1268 be adjusted on both sides.
1270 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
1272 2002-05-08 Werner LEMBERG <wl@gnu.org>
1274 * src/roff/troff/node.cc (special_node::special_node): Use
1275 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
1276 \X''\% crashes, for example.
1278 * doc/groff.texinfo: Document \! and \? used at top-level.
1280 2002-05-06 Werner LEMBERG <wl@gnu.org>
1282 * src/preproc/pic/pic.man: Fix some keyword syntax.
1283 Other minor typographical fixes.
1285 * src/roff/groff/groff.man: Fix typos.
1287 2002-05-04 Werner LEMBERG <wl@gnu.org>
1289 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
1290 (ShortOpt[]): This to avoid problems with refer.
1292 * doc/pic.ms: Fix typo.
1293 Fix pic grammar description.
1295 * tmac/an-old.tmac (ne): Use de1, not de.
1297 2002-05-03 Werner LEMBERG <wl@gnu.org>
1299 * doc/groff.texinfo: Finished separation of glyphs and characters.
1300 Don't use the string `Appendix' for appendix headers (both in
1301 the text and the table of contents).
1302 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
1305 Use registers LL and LT (similar to -ms) for controlling the
1306 length of title and line, respectively, in the -man and -mdoc
1309 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
1310 (doc-setup-page-layout): Use \n[LL] and \n[LT].
1311 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
1313 (an-header, an-p-footer): Use \n[LT].
1314 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
1315 doc/groff.texinfo: Document it.
1317 2002-05-02 Werner LEMBERG <wl@gnu.org>
1319 * doc/fdl.texi: New file.
1320 * doc/groff.texinfo: Include it.
1321 Define and use @copying.
1322 Starting with separating glyph, symbol, and character.
1324 2002-04-27 Werner LEMBERG <wl@gnu.org>
1326 * Makefile.in (EXEEXT): Set it.
1327 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
1330 * src/include/nonposix.h: Define GS_NAME.
1331 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
1333 Some preliminary changes for EMX support under OS/2.
1335 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
1336 __EMX__ similar to __MSDOS__.
1337 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
1339 2002-04-25 Werner LEMBERG <wl@gnu.org>
1341 * doc/groff.texinfo: Integrated groff_out.man.
1344 2002-04-23 Werner LEMBERG <wl@gnu.org>
1346 * man/groff_out.man: Minor fixes.
1348 2002-04-23 Werner LEMBERG <wl@gnu.org>
1350 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
1351 correct page references.
1352 Fixed many index entries.
1354 2002-04-23 Bernd Warken <bwarken@mayn.de>
1356 * man/roff.man: Enlarged.
1358 2002-04-22 Werner LEMBERG <wl@gnu.org>
1360 * doc/groff.texinfo: More examples, other fixes.
1362 2002-04-20 Werner LEMBERG <wl@gnu.org>
1364 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
1365 will now form a chain, e.g.
1374 This is for compatibility with plan 9's troff.
1376 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
1380 * doc/groff.texinfo: Add documentation of remaining requests and
1383 2002-04-19 Werner LEMBERG <wl@gnu.org>
1385 * doc/groff.texinfo: Add documentation of remaining escapes.
1387 * font/devdvi/generate/tc.map: Remove entry for `sr'.
1388 * font/devdvi/*TC: Regenerated.
1390 2002-04-18 Werner LEMBERG <wl@gnu.org>
1392 * src/roff/troff/input.cc (token::next): Make \H behave consistently
1393 if not in compatibility mode, i.e., increment relative to the
1395 * doc/groff.texinfo: Updated accordingly.
1397 2002-04-17 Werner LEMBERG <wl@gnu.org>
1399 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
1401 2002-04-16 Bernd Warken <bwarken@mayn.de>
1403 * src/roff/groff/groff.man: Improve documentation of -P option.
1406 2002-04-15 Werner LEMBERG <wl@gnu.org>
1408 Add new escape \F to switch font family.
1410 * src/roff/troff/input.cc (token::next): Handle \F.
1411 * src/roff/troff/env.cc (environment::set_family): Handle
1413 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1416 2002-04-14 Werner LEMBERG <wl@gnu.org>
1418 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
1421 2002-04-13 Werner LEMBERG <wl@gnu.org>
1423 Implement \f[] as an alternative to \fP. Change \mP and \MP to
1424 \m[] and \M[], respectively.
1426 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
1427 (symbol::symbol): Handle NULL string and empty string differently.
1428 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
1429 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
1430 Add optional parameter.
1431 Updated calling functions.
1432 (get_copy, do_glyph_color, do_fill_color, token::next): Use
1434 * src/roff/troff/env.cc (environment::set_font): Ditto.
1436 * src/preproc/pic/troff.cc (troff_output::set_fill,
1437 troff_output::reset_color: Updated.
1439 * tmac/www.tmac: Updated.
1441 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
1442 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
1445 * tmac/Xps.tmac: Remove some redundant code.
1447 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
1448 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
1449 man/groff_out.man, man/groff.man, man/groff_diff.man,
1450 src/roff/groff/groff.man: Replace \f[P] with \f[].
1452 2002-04-13 Bernd Warken <bwarken@mayn.de>
1454 * src/include/printer.h, src/libs/libdriver/printer.cc
1455 (printer::change_fill_color): New member function.
1456 * src/libs/libdriver/input.cc (parse_D_command): Use it.
1458 2002-04-12 Werner LEMBERG <wl@gnu.org>
1460 * doc/groff.texinfo: Completed pass on gtroff reference.
1462 2002-04-11 Werner LEMBERG <wl@gnu.org>
1464 * doc/groff.texinfo: More fixes.
1466 2002-04-11 Bernd Warken <bwarken@mayn.de>
1468 * src/include/color.h: Decorate with `const'.
1471 * src/libs/libgroff.color.cc: Decorate with `const'.
1473 (color::color): Initialize members.
1474 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
1475 command according to the documentation.
1477 * man/groff_out.man: Updated.
1480 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
1482 * src/preproc/html/pre-html.cc (write_start_image): Remove
1484 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
1486 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
1487 \C'hy' caused an assertion failure.
1489 * src/roff/troff/env.cc (environment::environment): Initialize
1491 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
1493 2002-04-10 Werner LEMBERG <wl@gnu.org>
1495 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1496 Document pvs request and .pvs register.
1498 2002-04-09 Werner LEMBERG <wl@gnu.org>
1500 * doc/groff.texinfo: Improve and fix documentation of diversions
1503 2002-04-08 Werner LEMBERG <wl@gnu.org>
1505 * doc/groff.texinfo: Fix documentation of drawing functions.
1508 2002-04-07 Werner LEMBERG <wl@gnu.org>
1510 * doc/groff.texinfo: Better documentation of double quotes as
1514 2002-04-06 Werner LEMBERG <wl@gnu.org>
1516 * man/groff_font.man: Document names of special characters better.
1517 * doc/groff.texinfo: Minor improvements.
1519 * tmac/lbp.tmac: Load latin1.tmac.
1520 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
1522 * font/devX*/*: Regenerated (all chars > 0x80 removed).
1524 2002-04-05 Werner LEMBERG <wl@gnu.org>
1526 * tmac/tty.tmac: Don't use shc request.
1527 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
1530 * man/groff_diff.man: Minor fixes.
1532 * font/devlbp/*: Remove all `charXXX' entities.
1534 * src/libs/libgroff/font.cc (font::~font): Deallocate
1535 `special_device_coding'.
1536 (font::load): Use `new' for allocating `special_device_coding'.
1537 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
1538 Removed unused member.
1540 2002-04-05 Werner LEMBERG <wl@gnu.org>
1542 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
1543 (resource_manager::do_begin_binary,
1544 resource_manager::do_begin_data): Use it.
1546 * doc/texinfo.tex: Updated to version 4.2.
1548 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
1549 (token::zero_width_break): New inline function.
1550 * src/roff/troff/input.cc (token::next): Use it.
1551 (token::description): Updated.
1552 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
1553 (token::add_to_node_list, token::process): Use it.
1554 * NEWS, doc/groff.texinfo: Updated.
1556 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
1557 * tmac/tty.tmac: Add missing backslash.
1559 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1561 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
1562 `.ps' register instead of `.s' to handle fractional point sizes.
1563 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
1564 limit_box::output): Ditto.
1565 * src/preproc/eqn/other.cc (size_box::compute_metrics,
1566 size_box::output): Ditto.
1567 * src/preproc/eqn/over.cc (over_box::compute_metrics,
1568 over_box::output): Ditto.
1569 * src/preproc/eqn/script.cc (script_box::compute_metrics,
1570 script_box::output): Ditto.
1571 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
1572 sqrt_box::output): Ditto.
1574 2002-04-03 Michael Selway <mas@ssl.co.uk>
1576 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
1579 2002-04-03 Werner LEMBERG <wl@gnu.org>
1581 * doc/homepage.ms: Reduce title size.
1582 * doc/groff.texinfo: Fix documentation of .t register.
1583 Fix handling of colon.
1586 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
1587 only if page length is positive to avoid a loop.
1589 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
1592 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
1594 * src/include/nonposix.h, src/roff/groff/pipeline.c:
1595 s/__CYGWIN32__/__CYGWIN__/.
1597 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
1599 * doc/gnu.xpm: New image contributed by Emily Mulley.
1600 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
1601 (homepage.html): Be dependent on gnu.eps.
1602 * doc/homepage.ms: Updated to new image.
1604 * src/devices/grohtml/post-html.cc (html_printer): New member
1606 (html_printer::flush_sbuf, html_printer::set_char): Set it.
1607 (html_printer::sbuf_continuation): Use it.
1609 2002-03-28 Werner LEMBERG <wl@gnu.org>
1611 * src/libs/libgroff/getopt.c: Updated to latest version.
1613 * tmac/README: More on hyphen.tex license.
1615 2002-03-26 Larry Kollar <kollar@alltel.net>
1617 * doc/groff.texinfo: Add documentation of most missing requests.
1619 2002-03-25 Werner LEMBERG <wl@gnu.org>
1621 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
1622 of `+-', `mu', and `di', respectively.
1624 * font/devascii/R.proto, font/devutf8/R.proto,
1625 font/devlatin1/R.proto, font/devhtml/R.proto,
1626 font/devcp1047/R.proto, font/devlpb/*: Add them.
1627 * font/devps/generate/textmap: Ditto.
1628 * font/devps/*: Regenerated.
1629 * font/devlj4/generate/text.map: Add them.
1630 * font/devlj4/*: Regenerated.
1631 * font/devdvi/generate/tc.map: Use them.
1632 * font/devdvi/generate/texsy.map: Add them.
1633 * font/devdvi/*: Regenerated.
1634 * font/devX*/*: Regenerated.
1636 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
1637 tmac/tty-char.tmac: Updated.
1639 * NEWS, man/groff_char.man: Updated.
1641 2002-03-24 Werner LEMBERG <wl@gnu.org>
1643 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
1644 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
1645 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
1646 we use `.fchar' in dvi.tmac.
1647 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
1648 * tmac/Xps.tmac: Simplify some char definitions.
1649 Add definition for \[f/].
1650 * man/groff_char.man: Updated for new X.tmac.
1652 * tmac/README: New file.
1654 2002-03-23 Phil Lobbes <phil@perkpartners.com>
1656 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
1657 internal .y.o rule took precendence over the .y.cc rule, compiling
1658 the yacc files with gcc instead of g++.
1660 2002-03-23 Werner LEMBERG <wl@gnu.org>
1662 * tmac/dvi.tmac: Add replacement font for `CB'.
1664 * tmac/doc.tmac: s/request/macro/ in messages.
1665 (doc-generic-macro): Improve error message.
1666 * tmac/groff_mdoc.man: Minor improvements.
1668 2002-03-22 Werner LEMBERG <wl@gnu.org>
1670 * doc/groff.texinfo: Document possible conflict between `tr' and
1673 2002-03-21 Werner LEMBERG <wl@gnu.org>
1675 Improve handling of hyphenation patterns. It is now possible to
1676 use most of TeX's pattern files unmodified. To make the process
1677 more flexible, a new request `hpfcode' has been added which
1678 provides a character code mapping for the `hpf' request. See
1679 comment before hpf_getc() for more details.
1681 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
1683 (read_patterns_file): Additional parameter for exception dictionary.
1684 Extended to recognize \pattern, \hyphenation, and \endinput.
1685 (do_hyphenation_patterns_file): Updated.
1686 * src/roff/troff/env.h (hpf_code_table): New extern.
1688 * src/roff/troff/input.cc (hpf_code_table): New array.
1689 (init_hpf_code_table, hyphenation_patterns_file_code): New
1691 (hyphenation_code): Handle translation from `trin' correctly.
1692 (main, init_input_requests): Updated.
1693 (charinfo::set_translation): Handle hyphenation code also.
1695 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
1698 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
1699 char' is used for offsets in hyphenation exceptions.
1701 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
1703 * NEWS, man/groff_diff.man, man/groff.man: Document it.
1705 2002-03-20 Larry Kollar <kollar@alltel.net>
1707 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
1710 2002-03-18 Werner LEMBERG <wl@gnu.org>
1712 * tmac/html.tmac: Fix serious typo.
1714 2002-03-17 Larry Kollar <kollar@alltel.net>
1716 * doc/groff.texinfo: Add documentation for `writec' request.
1718 2002-03-17 Werner LEMBERG <wl@gnu.org>
1720 Added request `hpfa' to append hyphenation patterns.
1722 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1724 (hyphenation_patterns_file): Renamed to...
1725 (do_hyphenation_patterns_file): This.
1726 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
1728 (init_hyphen_requests): Updated.
1729 * NEWS, man/groff.man, man/groff_diff.man: Document it.
1731 2002-03-16 Werner LEMBERG <wl@gnu.org>
1733 Added request `writec' in analogy to `tmc'.
1735 * src/roff/troff/input.cc (write_request): Renamed to...
1736 (do_write_request): This.
1737 Added one parameter.
1738 (write_request, write_request_continue): New functions.
1739 (init_input_requests): Updated.
1740 * NEWS, man/groff.man, man/groff_diff.man: Document it.
1742 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
1744 * NEWS: Document it.
1746 2002-03-15 Werner LEMBERG <wl@gnu.org>
1748 * man/groff.man: Add writem request.
1750 Add request `trin' (translate input) to make `.asciify' work
1751 correctly. This is necessary since `charXXX' entity names are no
1752 longer hardcoded in font definition files.
1754 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
1755 `translate_input' members.
1756 (charinfo::set_asciify_code, charinfo::get_asciify_code,
1757 charinfo::set_translation_input): New methods.
1758 (charinfo::set_translation): Add third argument.
1759 * src/roff/troff/input.cc (charinfo:set_translation): Set
1761 (do_translate): Add second argument.
1762 (translate_input): New function.
1763 (init_input_requests): Updated.
1764 * src/roff/troff/node.cc (glyph_node::asciify,
1765 composite_node::asciify): Use `get_asciify_code'.
1767 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
1769 * NEWS, man/groff.man, man/groff_diff.man: Updated.
1771 2002-03-14 Larry Kollar <kollar@alltel.net>
1773 * doc/groff.texinfo: Improve documentation of .RS and .RE.
1775 2002-03-14 Werner LEMBERG <wl@gnu.org>
1777 Add a new request `sizes' similar to the `sizes' command in DESC
1780 * src/roff/troff/env.cc (override_sizes): New function.
1781 (init_env_requests): Use it.
1782 * src/roff/troff/token.h: Export `read_string'.
1783 * NEWS, man/groff_diff.man, man/groff.man: Document it.
1785 2002-03-12 Werner LEMBERG <wl@gnu.org>
1787 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
1789 2002-03-10 Werner LEMBERG <wl@gnu.org>
1791 * tmac/pspic.tmac: Add support for -Tdvi.
1792 * tmac/dvi.tmac: Include pspic.tmac.
1793 * src/devices/grodvi/grodvi.man: Document it.
1796 * font/devlj4/generate/Makefile: Fix URL of metric files.
1798 2002-03-09 Werner LEMBERG <wl@gnu.org>
1800 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
1802 2002-03-09 Larry Kollar <kollar@alltel.net>
1804 * tmac/groff_ms.man: Add documentation for RS and RE macros.
1806 2002-03-08 Werner LEMBERG <wl@gnu.org>
1808 * doc/groff.texinfo: Fixes for texinfo 4.1.
1810 2002-03-07 Werner LEMBERG <wl@gnu.org>
1812 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
1814 Handle CYGWIN properly.
1816 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
1818 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
1819 * tmac/lbp.tmac: Add some font translations.
1821 2002-03-02 Werner LEMBERG <wl@gnu.org>
1823 * font/devcp1047/R.proto, font/devlatin1/R.proto,
1824 font/devhtml/R.proto: Remove `charXXX' entries.
1825 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
1828 * font/devlj4/generate/text.map: Remove `charXXX' entries.
1829 * font/devlj4/*: Regenerated all font definition files.
1830 * tmac/lj4.tmac: Load latin1.tmac.
1832 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
1833 from 2000-06-17: LJ4 metric files are *not* text files.
1835 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
1836 register to test for EBCDIC.
1838 2002-03-01 Werner LEMBERG <wl@gnu.org>
1840 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
1841 files (as grops already does).
1842 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
1844 * src/devices/grops/grops.man: Document comment lines in encoding
1847 * tmac/cp1047.tmac: New file.
1848 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
1849 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
1850 * tmac/Makefile.sub (NORMALFILES): Updated.
1852 * tmac/ec.tmac: Don't load latin1.tmac again.
1854 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
1855 font/devps/generate/dingbats.map,
1856 font/devps/generate/dingbats.rmap, font/devps/text.enc,
1857 font/devps/generate/Makefile (symbolmap): Add header comment.
1858 * font/devps/generate/textmap: Ditto.
1859 Remove `charXXX' entries.
1860 * font/devps/symbolmap: Regenerated.
1861 * font/devps/*: Regenerated all font definition files.
1863 2002-02-28 Werner LEMBERG <wl@gnu.org>
1865 Add color support to grodvi (for drawing colors are currently
1866 translated to gray values).
1868 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
1869 (dvi_printer): Add `cur_color' member.
1870 (dvi_printer::set_color): New function.
1871 (draw_dvi_printer): Remove `fill'.
1872 (draw_dvi_printer::fill_next): Pass environment as parameter.
1873 Update code for new color support translated to gray.
1874 (dvi_printer::set_char): Updated.
1875 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
1876 changes crossing the page border.
1877 (dvi_printer::draw): Updated.
1878 Remove cases `f' and `F'.
1879 * tmac/dvi.tmac: Add color definitions.
1880 * NEWS, src/devices/grodvi/grodvi.man: Updated.
1882 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
1885 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
1886 versions of autoconf.
1887 * configure: Updated.
1889 * doc/homepage.ms: Use `.blm'.
1890 * tmac/www.tmac (www-depth): New auxiliary variable.
1891 (www-pop-level): Don't issue HTML tag.
1892 (ULS, ULE, LI): Use absolute indentation.
1894 * src/devices/grops/ps.cc (ps_printer::begin_page,
1895 ps_printer::end_page): Switch forth and back to default color while
1896 starting a new page.
1898 2002-02-27 Werner LEMBERG <wl@gnu.org>
1900 Add EC and TC fonts to devdvi.
1902 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
1903 * font/devdvi/generate/cork.map: Renamed to...
1904 * font/devdvi/generate/ec.map: This.
1905 Remove entry for `aq'.
1906 * font/devdvi/generate/tc.map: New file.
1907 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
1910 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
1911 * font/devdvi/Makefile.sub (DEVFILES): Updated.
1912 * tmac/ec.tmac: New file.
1913 * tmac/Makefile.sub (NORMALFILES): Updated.
1914 * NEWS, src/devices/grodvi/grodvi.man: Updated.
1915 * man/groff_char.man: Check `ECFONTS' register.
1917 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
1919 2002-02-26 Werner LEMBERG <wl@gnu.org>
1921 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
1922 * font/devdvi/generate/cork.map: Add 'y and 'Y.
1923 * font/devdvi/*: Updated.
1924 * tmac/dvi.tmac: Formatting.
1926 Add font `HBI' for the dvi output.
1927 Add support for font families `T' and `H'.
1929 * font/devdvi/HBI: New file.
1930 * font/devdvi/B: Renamed to ...
1931 * font/devdvi/TB: This.
1932 * font/devdvi/BI: Renamed to ...
1933 * font/devdvi/TBI: This.
1934 * font/devdvi/I: Renamed to ...
1935 * font/devdvi/TI: This.
1936 * font/devdvi/R: Renamed to ...
1937 * font/devdvi/TR: This.
1938 * font/devdvi/H: Renamed to ...
1939 * font/devdvi/HR: This.
1940 * font/devdvi/Makefile.sub (DEVFILES): Updated.
1941 * font/devdvi/generate/Makefile (HBI): New rule.
1943 (R, I, B, BI, H): Renamed to ...
1944 (TR, TI, TB, TBI, HR): This, respectively.
1946 * NEWS, src/devices/grodvi/grodvi.man: Updated.
1947 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
1948 Add `styles' and `family' keywords.
1949 * tmac/dvi.tmac: Alias `H' to `HR'.
1950 Add some fspecial requests for italic fonts.
1951 Add TR and TI as special.
1952 Add support for `_' with font CWI.
1954 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
1955 operator `:'. Until now, the expression `0:1' would return 2
1958 2002-02-25 Werner LEMBERG <wl@gnu.org>
1960 * man/groff_char.man: Added some missing PS glyph names (from the
1962 * font/devps/generate/textmap, font/devps/symbolmap: Add
1965 * doc/groff.texinfo: Minor additions and fixes.
1966 * man/groff_diff.man: Remove documentation of fp request. This
1967 is already covered in the original troff manual.
1968 Updated to be consistent with other doc files.
1971 2002-02-24 Werner LEMBERG <wl@gnu.org>
1973 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
1975 Define new variable OTHERDEVDIRS (containing `font/devlj4
1976 font/devlbp' if not EBCDIC).
1977 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
1978 (OTHERDEVDIRS): New variable.
1979 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
1980 * configure: Regenerated.
1982 * NEWS, src/devices/grotty/grotty.man: Updated.
1984 2002-02-23 Werner LEMBERG <wl@gnu.org>
1986 * src/roff/troff/input.cc (do_overstrike, do_bracket,
1987 get_line_arg): Honour input level.
1989 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1991 * font/*/*: Implement it in all font files.
1992 * font/devps/generate/textmap, font/devps/generate/symbolchars,
1993 * font/devps/symbolmap: Updated.
1994 * font/devlj4/generate/text.map: Updated.
1995 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1996 * font/devdvi/generate/texmi.map: Updated.
1998 * font/devutf8/R.proto: Remove all `charXXX' entries.
1999 * font/devutf8/NOTES: Updated.
2001 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
2004 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
2006 * NEWS, man/groff_char.man: Updated.
2008 2002-02-21 Phil Lobbes <phil@perkpartners.com>
2010 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
2012 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2014 * src/roff/grog/grog.pl: Fix computation of $refer.
2016 2002-02-19 Werner LEMBERG <wl@gnu.org>
2018 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
2019 `snprintf' and `vsnprintf'.
2021 * src/include/htmlindicate.h: Renamed to...
2022 * src/include/htmlhint.h: This.
2023 * src/include/Makefile.sub: Updated.
2024 * src/preproc/eqn/main.cc: Updated.
2026 2002-02-18 Werner LEMBERG <wl@gnu.org>
2028 * man/roff.man, man/groff_out.man, man/groff.man,
2029 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
2030 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
2032 * win32-diffs: Updated.
2034 2002-02-17 Werner LEMBERG <wl@gnu.org>
2036 * doc/Makefile (clean): Add *.eps.
2037 (MEMACROS): Removed.
2038 (TFLAG): New variable.
2041 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
2043 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
2045 * tmac/www.tmac: Use dummy diversion while resetting and disabling
2047 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
2049 * src/roff/troff/troff.man: Fix order of parameter description.
2053 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
2055 Simplify image handling for grohtml.
2058 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
2060 (html_text::dump_stack): Don't emit newline while debugging.
2061 (html_text::do_push) [DEBUGGING]: Print more info.
2062 (html_text::check_emit_text): Fix handling of <p>.
2063 * src/devices/grohtml/html.h: Updated.
2064 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
2065 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
2066 send its data to stderr also.
2068 (simple_output::space_or_newline) [DEBUGGING]: Removed.
2069 * src/devices/grohtml/post-html.cc (html_printer::do_links,
2070 html_printer::html_printer): Remove `DEBUGGING' conditionals.
2072 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
2074 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
2075 is_inline_image): Removed.
2076 (html_begin_suppress, html_end_suppress): Don't take a parameter.
2077 (graphic_start, graphic_end): Removed.
2078 * src/include/htmlindicate.h: Updated.
2079 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
2080 (macroset_template): New global variable.
2081 (makeFileName): Use `macroset_template'.
2082 (write_end_image): Don't take a parameter.
2084 (write_start_image: Don't emit newline.
2085 (char_buffer::write_upto_newline): Updated.
2086 (char_buffer::skip_to_newline): Renamed to ...
2087 (char_buffer::skip_until_newline): This.
2089 (char_buffer::write_file_troff, char_buffer::write_file_html):
2091 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
2092 (removeAllPages): Remove `DEBUGGING' conditionals.
2093 (addRegDef, dump_args): New functions.
2094 (char_buffer::do_html, char_buffer::do_image): Handle
2095 `www-image-template' command line variable.
2096 Add more debugging code.
2097 (addps4html): Removed.
2098 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
2100 * src/preproc/eqn/main.cc: Include `ctype.h'.
2101 (suppress_html): Removed.
2103 (inline_equation): Use `html_begin_suppress' and
2104 `html_end_suppress'.
2105 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
2106 (troff_output::start_picture, troff_output::finish_picture):
2108 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
2109 (process_input_file): Updated.
2111 * src/roff/troff/div.cc (page_number): Set page number only if the
2112 `ps4html' register isn't defined.
2113 * src/roff/troff/input.cc (image_no): New external variable.
2114 (do_suppress): Use it.
2115 * src/roff/troff/node.h (suppress_node::image_id): New member.
2116 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
2117 (suppress_node::suppress_node): Initialize `image_id' member.
2118 (suppress_node::same): Handle `image_id' also.
2119 (suppress_node::copy): Updated.
2120 (last_image_id): New global variable.
2121 (suppress_node::tprint): Use it.
2123 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
2125 * tmac/pspic.mac (PSPIC): Fix html support.
2126 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
2127 * tmac/www.tmac (www-image-template): Set up.
2128 (HTMLINDEX): Renamed to...
2130 (BODYCOLOR): Renamed to...
2132 (BACKGROUND): Renamed to...
2134 (URL): Change order of parameters for consistency.
2135 (MAILTO): Renamed to...
2137 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
2138 (IMG, PIMG, MPIMG): This.
2139 (HTML-H-BEGIN, HTML-H-END): Renamed to...
2141 (LINKS): Renamed to...
2143 (LINE): Renamed to...
2145 (NO-AUTO-RULE): Renamed to...
2147 (HTML-TL): Renamed to...
2149 (UL-BEGIN, UL-END): Renamed to...
2151 (DROPCAP): Renamed to...
2153 (TS, TE, EQ, EN): Provide default definitions.
2154 (www-make-unique-name): Updated.
2155 (HTML-IMAGE-INLINE): Fix typo.
2156 * tmac/groff_www.man: Updated.
2158 * doc/Makefile (homepage.html): Add option -r to grohtml.
2159 Use shortened image name.
2160 * doc/groff.texinfo: Updated info on grohtml strings and macros.
2161 * doc/homepage.ms: Updated and extended.
2163 2002-02-14 Werner LEMBERG <wl@gnu.org>
2165 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
2167 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
2168 SGR_BACK_DEFAULT_COLOR): Replaced with ...
2169 (tty_printer::put_color): Use it.
2170 (ttr_printer::end_page): Simplify.
2172 2002-02-13 Werner LEMBERG <wl@gnu.org>
2174 * tmac/groff_tmac.man: Moved to...
2175 * man/groff_tmac.man: This place.
2176 * tmac/Makefile.sub, man/Makefile.sub: Updated.
2178 2002-02-12 Werner LEMBERG <wl@gnu.org>
2180 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
2181 $(COMPILE.c) to not include groff's assert.h.
2183 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
2185 * NEWS, src/drivers/grotty/grotty.man: Document it.
2187 2002-02-11 Werner LEMBERG <wl@gnu.org>
2189 * src/libs/snprintf/snprintf.c: Updated to latest version
2192 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
2193 test whether there is `.]' also.
2194 Don't check for spaces after `.['.
2195 * src/roff/grog/grog.sh: Do the same.
2197 2002-02-10 Werner LEMBERG <wl@gnu.org>
2201 * src/libs/libgroff/illegal.cc: Renamed to ...
2202 * src/libs/libgroff/invalid.cc: This.
2203 (illegal_char_table): Renamed to ...
2204 (invalid_char_table): This.
2205 * src/libs/libgroff/Makefile.sub: Updated.
2206 * win32-diffs: Updated.
2208 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
2209 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
2210 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
2211 font::load), src/preproc/eqn/main.cc (read_line, main),
2212 src/preproc/eqn/lex.cc (file_input::read_line),
2213 src/preproc/pic/lex.cc (file_input::read_line,
2214 simple_file_input::get, simple_file_input::peek),
2215 src/preproc/pic/main.cc (top_input::get, top_input::peek),
2216 src/preproc/pic/pic.man, src/preproc/refer/main.cc
2217 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
2218 do_bib), src/preproc/tbl/main.cc (table_input::get),
2219 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
2220 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
2221 do_zero_width, read_request, encode_char, ps_get_line,
2222 transparent_file, get_char_for_escape_name, transparent_translate,
2223 asciify, input_char_description, read_string, set_string),
2224 src/roff/troff/env.cc (environment::add_html_tag),
2225 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
2227 * src/include/lib.h: Updated.
2229 * src/preproc/eqn/eqn.cc: Removed.
2233 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
2235 2002-02-09 Werner LEMBERG <wl@gnu.org>
2237 * doc/gnu.xpm: New image.
2238 * doc/Makefile (DOCS): Add homepage.ps.
2239 Add rules for converting xpm->png and xpm->eps.
2240 Use `gnu.{xpm,eps}' as image names.
2241 * doc/homepage.ms: Updated.
2243 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
2245 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
2246 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
2247 Remove calls to `B1' and `B2'
2248 (PNG-IMAGE): New macro for inclusion of images in PNG format.
2249 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
2250 auxiliary variables for MARGIN-PNG-IMAGE.
2251 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
2252 auxiliary macros for MARGIN-PNG-IMAGE.
2253 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
2255 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
2256 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
2257 (DROPCAP): New macro to produce dropcap characters.
2258 (www-do-image): Renamed back to...
2259 (HTML-DO-IMAGE): This.
2260 Updated all callers.
2262 * doc/Makefile (gnubw.eps): Updated.
2263 * doc/homepage.ms: Updated.
2265 2002-02-08 Werner LEMBERG <wl@gnu.org>
2267 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
2268 Added `linethick' to table in section `Style Variables'.
2270 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
2272 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
2274 2002-02-07 Werner LEMBERG <wl@gnu.org>
2276 Adding options -C (compatibility mode) and -c (grotty's old output
2279 * src/roff/nroff/nroff.sh: Implement it.
2281 * NEWS, src/roff/nroff/nroff.man: Updated.
2283 * PROBLEMS: Document bison 1.32 bug.
2285 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
2287 * src/roff/troff/node.cc (make_tfont): Define it earlier.
2288 * src/roff/troff/div.h: Add prototype for `end_diversions'.
2289 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
2290 * src/roff/troff/env.h: Add prototype for `title'.
2292 Adding EBCDIC support to grotty.
2294 * src/devices/grotty/tty.cc (CSI): New macro.
2295 (SGR_*, tty_printer::put_color): Use it.
2297 2002-02-06 Werner LEMBERG <wl@gnu.org>
2299 Implementing color support in grotty. The new switch -c activates
2300 the old drawing scheme, disabling color at the same time. The new
2301 switch `-i' selects italic instead of underlining (SGR only).
2303 * src/devices/grotty/tty.cc (putstring): New define instead of
2304 `fputs'. Updated all callers.
2305 (old_drawing_scheme): New global variable.
2306 (COLOR_CHANGE): New enum value.
2307 (SGR_*): New defines containing color handling escape sequences.
2308 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
2309 (glyph): New members `back_color_idx' and `fore_color_idx'.
2310 (glyph::order): Add COLOR_CHANGE.
2311 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
2312 `is_underline', `is_bold', `cu_flag', `tty_colors'.
2313 New methods `make_underline', `make_bold', `color_to_idx',
2314 `change_color', `put_color'.
2315 (cu_flag): Moved into `tty_printer' class.
2316 (tty_printer::tty_printer): Initialize colors.
2317 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
2318 tty_printer::draw, tty_printer::end_page): Handle colors also.
2319 (main): Add options `-c' and `-i'.
2321 * NEWS, src/devices/grotty/grotty.man: Updated.
2323 * src/include/errarg.h (errarg): Add support for `unsigned int'.
2324 * src/libs/libgroff/errarg.c: Implement it.
2326 * src/include/printer.h (printer): Add `change_color' method
2327 (currently used by grotty only).
2328 * src/libs/libdriver/printer.cc: Implement it.
2329 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
2330 call to `pr->change_color'.
2332 * src/roff/troff/node.cc (troff_output_file::fill_color,
2333 troff_output_file::glyph_color): Call `do_motion'.
2335 * tmac/tty.tmac: Add color definitions.
2337 * src/roff/groff/groff.man: Minor fixes.
2339 2002-02-05 Bernd Warken <bwarken@mayn.de>
2341 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
2342 it. This is a preparation for future changes.
2344 2002-02-05 Werner LEMBERG <wl@gnu.org>
2346 * src/roff/troff/input.cc (process_input_stack): Fix the case
2347 where leading spaces are followed by \f or \s; previously, an
2348 incorrect space width has been used.
2350 * doc/roff.man (quoted_char): Fix argument.
2351 (comment): Define string.
2353 2002-02-04 Larry Kollar <kollar@alltel.net>
2355 * doc/groff.texinfo: More fixes.
2357 2002-02-04 Werner LEMBERG <wl@gnu.org>
2359 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
2360 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
2361 `restore_compatibility' before `output_string' -- the LINE_STRING
2362 register now already contains proper switches from and to
2365 * man/groff_char.man: Add Euro symbol.
2366 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
2367 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
2368 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
2371 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
2373 (.texinfo.html): Add support for texinfo->html.
2375 2002-02-03 Werner LEMBERG <wl@gnu.org>
2377 Added three new requests `ds1', `as1', and `ami'. The former two
2378 are equivalent to `ds' and `as' with the difference that
2379 compatibility mode is saved on entry, switched off during string
2380 expansion, and restored on exit. The latter is the pendant to `dei'
2383 (do_define_string): Use `define_mode' and `calling mode'.
2384 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
2385 end of string, respectively.
2386 (define_string, append_string): Use `calling_mode'.
2387 (define_nocomp_string, append_nocomp_string,
2388 define_string_indirect): New functions.
2389 (init_input_requests): Updated.
2390 * NEWS, man/groff_diff.man, man/groff.man: Document it.
2392 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
2393 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
2394 mm macro package accesses this string register directly.
2395 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
2397 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
2400 2002-02-02 Larry Kollar <kollar@alltel.net>
2402 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
2404 2002-01-31 Werner LEMBERG <wl@gnu.org>
2406 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
2408 2002-01-31 Bernd Warken <bwarken@mayn.de>
2410 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
2411 * man/groff_out.man: Revised and updated.
2413 2002-01-30 Bernd Warken <bwarken@mayn.de>
2415 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
2416 out the unused `{' and `}' commands. Undefined by default.
2417 (IntArray): Make `data' private.
2418 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
2419 new methods instead.
2420 (skip_line_D, skip_to_end_of_line): New functions.
2421 (get_D_fixed_args): Use `skip_line_D'.
2422 Changed to handle dummy odd arguments by ...
2423 (get_D_fixed_args_odd_dummy): This new function.
2424 (get_D_variable_args): Split some code into ...
2425 (get_possibly_integer_args): This new function.
2426 (send_draw): Use more `const'.
2427 (delete_current_env): New function.
2428 (position_to_end_of_args): Use `size_t'.
2430 (send_draw): Updated.
2431 (parse_D_command): Handle `c', `C', and `t' better.
2435 2002-01-29 Werner LEMBERG <wl@gnu.org>
2438 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
2439 @Def...ListEnd which replaces @Def...x. This is necessary to get
2440 proper HTML output -- see the comment in the file for more
2444 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
2446 Fixes to make color changes of 2002-01-21 work with grohtml.
2448 * src/devices/grohtml/post-html.cc (style): Updated.
2449 (html_printer): Remove unused methods.
2450 (html_printer::do_font, html_printer::draw, html_printer::set_char,
2451 html_printer::special): Updated.
2452 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
2453 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
2454 Added some debugging code.
2455 (html_text::start_tag): Updated.
2456 (html_text::do_push): New method.
2457 (html_text::push_para): Call it.
2458 Add method for handling color.
2459 (html_text::do_color): Updated.
2460 (html_text::shutdown): Handle color.
2461 * src/devices/grohtml/html-text.h (tag_definition): New member
2465 2002-01-28 Werner LEMBERG <wl@gnu.org>
2467 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
2469 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
2471 Add two switches -a and -g to control the antialiasing bits for
2472 text and graphics, respectively.
2474 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
2476 * src/devices/grohtml/grohtml.man: Document them.
2477 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
2479 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
2480 (setupAntiAlias): New function.
2481 (createAllPages): Updated.
2482 (scanArguments): Handle `-a' and `-g'.
2483 (main): Call `setupAntiAlias'.
2486 2002-01-27 Werner LEMBERG <wl@gnu.org>
2488 * doc/groff.texinfo (Def*): Call index function after deffn.
2490 * tmac/html.tmac: Call `nroff' request.
2492 2002-01-26 Larry Kollar <kollar@alltel.net>
2494 * tmac/groff_ms.man: Add some omissions.
2496 2002-01-25 Larry Kollar <kollar@alltel.net>
2498 * tmac/groff_ms.man: Typographical improvements.
2500 2002-01-25 Werner LEMBERG <wl@gnu.org>
2502 * doc/groff.texinfo: Updated version and copyright.
2503 * src/devices/grops/grops.man: Updated.
2505 * tmac/groff_tmac.man: Fix `ig' macro.
2507 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
2509 Use `.ne' unconditionally everywhere.
2510 (TS): Only insert some vertical space. Doing a page break is no
2511 longer necessary due to the redefinition of the `ne' request.
2513 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
2514 warning for unknown subcommands but parse and pass them to the
2517 2002-01-24 Werner LEMBERG <wl@gnu.org>
2519 * tmac/groff_www.man, NEWS: Fix typos.
2521 2002-01-21 Werner LEMBERG <wl@gnu.org>
2523 Complete revision of color support:
2525 Adapt programs to the new libdriver/input.cc.
2527 Color spaces are no longer converted to RGB but transferred as-is
2528 in the troff intermediate output format.
2530 Handle default color gracefully. troff now supports a `default'
2531 color (which can't be changed).
2533 grops will now use the proper color space functions if available.
2537 Note that currently grohtml doesn't handle colors properly. This
2540 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
2541 (ui_to_a): New function.
2542 * src/include/lib.h: Updated.
2544 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
2545 (color): Simplified; removed all `double' members and methods.
2546 A new array `components' now holds the color parameters.
2547 (color::is_default, color::get_components): New methods.
2548 (color::operator==, color:operator!=): New.
2549 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
2550 to make access to the `components' array more comprehensible.
2551 * src/libs/libgroff/color.cc: Implement new color support.
2552 (atoh): Small fixes.
2553 (color::read_encoding): Simplified for new troff intermediate color
2555 (default_color): New global variable.
2557 * src/roff/troff/input.cc (default_symbol): New global variable.
2558 (lookup_color): Use it.
2559 (default_black): Removed.
2560 (do_glyph_color, do_fill_color): Simplified.
2561 (define_color): Handle default color.
2563 (do_if_request): Handle default color.
2564 * src/roff/troff/env.cc (environment::environment): Initialize
2565 colors with `default_color'.
2566 * src/roff/troff/node.cc (troff_output_file::put): Add method
2568 (troff_output_file::hex): Removed.
2569 (troff_output_file::fill_color, troff_output_file::glyph_color):
2570 Updated to include/color.h and libdriver/input.cc.
2572 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
2573 fill color properly (identically to the outline color). \D'f...'
2574 doesn't work any more.
2575 All function calls to it updated.
2577 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
2579 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
2582 * src/devices/grops/ps.cc (ps_output::put_color): New method.
2583 (ps_printer::sbuf_color): Make a real member instead of pointer.
2584 (ps_printer::fill_color, ps_printer::output_color): Removed.
2585 (ps_printer::ps_printer): Updated.
2586 (ps_printer::set_char): Ditto.
2587 (ps_printer::set_color): Use various color schemes.
2588 Use `put_color' method.
2589 (ps_printer::flush_sbuf): Don't set color.
2590 (ps_printer::fill_path): Take `environment' as parameter.
2591 Simplify color handling.
2592 (ps_printer::set_line_thickness): Renamed to ...
2593 (ps_printer::set_line_thickness_and_color): This (and updated).
2594 (ps_printer::set_color): Change second parameter from `complete'
2595 to `fill' which better describes what it does.
2596 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
2597 and text in the right order.
2599 Remove branches for `f' and `F'; this is handled by
2601 * src/devices/grops/ps.h: Updated.
2602 * font/devps/prologue (FL): Redefined.
2603 ({F,C}r,k,g: New color functions (with and without filling).
2605 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
2606 * man/groff_diff.man, man/groff.man, man/groff_out.man,
2607 doc/groff.texinfo, NEWS: Updated.
2609 2002-01-20 Bernd Warken <bwarken@mayn.de>
2611 * src/libs/libdriver/input.cc: Completely rewritten. See comments
2612 in this file for what has been changed.
2614 2002-01-19 Werner LEMBERG <wl@gnu.org>
2616 * test-groff: Fix GROFF_FONT_PATH.
2617 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
2618 is read before .TH or .Dd is parsed.
2620 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
2622 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
2623 quadrant boundaries.
2625 2002-01-18 Werner LEMBERG <wl@gnu.org>
2627 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
2630 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
2632 * tmac/doc.common: Initialize %I register for the %I macro to
2633 avoid (harmless) warning.
2634 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
2635 when in the SYNOPSIS section.
2637 2002-01-17 Bruno Haible <haible@clisp.cons.org>
2639 * src/preproc/pic/lex.cc (get_token): Fix typo.
2641 2002-01-17 Werner LEMBERG <wl@gnu.org>
2643 * devices/grops/ps.cc: Fix incorrectly applied last patch.
2645 2002-01-17 Larry Kollar <kollar@alltel.net>
2647 * tmac/groff_ms.man: Completely rewritten.
2649 2002-01-16 Werner LEMBERG <wl@gnu.org>
2651 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
2653 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
2655 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
2657 (ps_printer::draw): Ditto.
2659 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
2661 * tmac/groff_mdoc.man: Minor fixes.
2663 2002-01-13 Werner LEMBERG <wl@gnu.org>
2665 * man/groff_out.man: Some fixes.
2667 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
2669 * doc/pic.ms: Fix typos.
2671 2002-01-12 Werner LEMBERG <wl@gnu.org>
2673 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
2675 2002-01-10 Werner LEMBERG <wl@gnu.org>
2677 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
2681 2002-01-09 Bernd Warken <bwarken@mayn.de>
2683 * man/groff_out.man: Revised.
2684 * man/roff.man: Minor fixes.
2685 * src/roff/troff/troff.man: Some reordering.
2687 2002-01-09 Werner LEMBERG <wl@gnu.org>
2689 * tmac/an-old.tmac: Add dummy macros for equation support.
2691 2002-01-07 Werner LEMBERG <wl@gnu.org>
2693 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
2695 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
2697 * tmac/groff_man.man: Small improvements.
2699 2002-01-07 Bernd Warken <bwarken@mayn.de>
2701 * man/groff_diff.man: Revised.
2703 2002-01-06 Werner LEMBERG <wl@gnu.org>
2705 * tmac/www.tmac: Remove extraneous backslash.
2707 2002-01-06 Bernd Warken <bwarken@mayn.de>
2709 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
2711 2002-01-05 Werner LEMBERG <wl@gnu.org>
2713 Integrated groffer, contributed by Bernd Warken.
2715 * contrib/groffer/*: New.
2716 * Makefile.in, NEWS: Updated.
2718 2002-01-04 Werner LEMBERG <wl@gnu.org>
2720 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
2721 registers defined in macro packages.
2722 Revising the ms part.
2724 2002-01-04 Larry Kollar <kollar@alltel.net>
2726 * doc/groff.texinfo: Add documentation for ms macros.
2728 2002-01-02 Werner LEMBERG <wl@gnu.org>
2730 First step in adding PS support for the Euro symbol. `eu' is the
2731 official Euro logo, `Eu' is a font-specific glyph variant.
2733 * font/devps/text.enc: Add `Euro' at position 9.
2734 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
2735 * font/devps/symbolmap: Regenerated.
2739 2002-01-02 Bernd Warken <bwarken@mayn.de>
2741 * man/roff.man: Revised.
2743 2002-01-01 Bernd Warken <bwarken@mayn.de>
2745 * src/roff/groff/groff.man: Completely rewritten.
2747 2001-12-31 Werner LEMBERG <wl@gnu.org>
2749 * doc/Makefile: Updated.
2751 2001-12-30 Werner LEMBERG <wl@gnu.org>
2753 * tmac/www.tmac: Make all names of internal macros/registers/strings
2754 lowercase, and prepend `www-'.
2755 Other minor changes.
2756 * src/roff/troff/troff.man: Add preprocessor string at BOF.
2758 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
2760 Implement option `-b' in grohtml to set the HTML background colour.
2762 * src/devices/grohtml/post-html.cc (default_background): New global
2764 (html_printer::html_printer): Initialize `background' to
2765 `default_background'.
2766 (main): Implement option `-b'.
2768 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
2770 * src/devices/grohtml/grohtml.man: Updated.
2771 * doc/Makefile (.ms.html): Use `-b'.
2772 * tmac/html.tmac: Don't set background color.
2774 Add new grohtml tag `.html-tl'.
2776 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
2778 (title_desc::title_desc): Updated.
2779 (html_printer::troff_tag): Handle `.html-tl'.
2780 (html_printer::write_title): Use `with_h1'.
2781 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
2782 (HTML-TL): New macro.
2784 Add support for unordered lists in HTML.
2786 * tmac/www.tmac (www-level): New auxiliary register.
2787 (www-level1, www-level2, www-level3): New auxiliary strings.
2788 (www-push-level, www-pop-level): New auxiliary macros
2789 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
2793 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
2794 (DEFAULT_VERTICAL_OFFSET): Removed.
2795 (IMAGE_BOARDER_PIXELS): Set to 0.
2796 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
2797 (vertical_offset): Initialize with 0.
2798 (gsPaper): New global variable.
2799 (get_resolution): Scan for and return unsigned int.
2800 (get_papersize): New function to get paper length from devps/DESC.
2801 (determine_vertical_offset): New function.
2802 (createAllPages): Produce gray-level images and use proper page
2804 (createImage): Use `-quiet' option of pnmcrop.
2805 (addZ): Fix passing of `-Z'.
2806 (scanArguments): Fix handling of `-o'.
2807 (main): Call `determine_vertical_offset'.
2808 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
2811 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
2812 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
2813 glyph descenders properly.
2815 * doc/homepage.ms: Include `gnubw.eps'.
2816 * doc/Makefile (gnubw.eps): New rule.
2817 (homepage.html): Depend on `gnubw.eps'.
2819 2001-12-25 Werner LEMBERG <wl@gnu.org>
2821 * src/roff/troff/input.cc (default_black): Fix return value.
2823 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
2825 * tmac/doc-common (Dt): Change output of architecture strings.
2826 Do some syntax cleanup.
2827 * tmac/groff_mdoc.man: Updated.
2829 2001-12-23 Werner LEMBERG <wl@gnu.org>
2831 Adding an `itc' request (input line trap accepting \c).
2833 * src/roff/troff/env.h (environment): New member
2834 `continued_input_trap'.
2835 Make `do_input_trap' a friend function instead of `input_trap'.
2836 * src/roff/troff/env.cc (environment::environment,
2837 environment::copy): Updated.
2838 (environment::newline): Implement it.
2839 (do_input_trap): New function.
2840 (input_trap): Call `do_input_trap'.
2841 (input_trap_continued): New function.
2842 (init_env_requests): Updated.
2843 * src/roff/troff/TODO: Updated.
2845 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
2848 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
2850 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
2852 * tmac/doc-common, tmac/doc-syms: Small updates.
2854 2001-12-22 Colin Watson <cjwatson@debian.org>
2856 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
2858 2001-12-22 Bernd Warken <bwarken@mayn.de>
2860 * MANIFEST: New file.
2862 2001-12-22 Werner LEMBERG <wl@gnu.org>
2864 * src/preproc/grn/grn.man: Updated.
2866 2001-12-22 Solar Designer <solar@openwall.com>
2868 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
2871 2001-12-19 Werner LEMBERG <wl@gnu.org>
2873 Implement a fallback character request `.fchar'.
2875 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
2876 (is_fallback): New inline function.
2877 * src/roff/troff/input.cc (do_define_character): New function.
2878 (define_character): Call `do_define_character'.
2879 (define_fallback_character): New function.
2880 (init_input_requests): Add `fchar'.
2881 (charinfo::charinfo): Updated.
2882 (charinfo::set_macro): New argument to set `fallback' flag.
2883 * src/roff/troff/node.cc (make_glyph_node, make_node,
2884 node::add_char): Check `fallback' flag.
2885 * NEWS, man/groff_diff.man, man/groff_man: Updated.
2887 2001-12-16 Werner LEMBERG <wl@gnu.org>
2889 * groff.texinfo: Document exact search algorithm for glyphs.
2891 2001-12-15 Werner LEMBERG <wl@gnu.org>
2893 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
2894 the left side of $(MANPAGES) rule to make it always non-empty.
2896 2001-12-14 Werner LEMBERG <wl@gnu.org>
2898 * src/roff/troff/input.cc (default_black): Define default color
2899 `black' if not yet defined.
2901 2001-12-13 Werner LEMBERG <wl@gnu.org>
2903 Implement new string-valued register `.fn' to return the current
2904 real (internal) font name.
2906 * env.cc (environment::get_font_name_string): New function.
2907 (init_env_requests): Add `.fn' register.
2908 * env.h (environment): Updated.
2909 * node.cc (font_info): Make `get_font_name' a friend.
2910 (get_font_name): New function.
2913 * man/groff_diff.man, man/groff.man, NEWS: Updated.
2915 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2917 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
2919 2001-12-12 Werner LEMBERG <wl@gnu.org>
2921 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
2923 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
2925 * man/groff_diff.man: Adding documentation for \O.
2927 2001-12-10 Werner LEMBERG <wl@gnu.org>
2929 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
2930 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
2932 2001-12-09 Werner LEMBERG <wl@gnu.org>
2934 * man/roff.man: Revised.
2935 * src/roff/groff/groff.man: Replace man page references with a
2936 pointer to roff.man.
2938 2001-12-09 Bernd Warken <bwarken@mayn.de>
2940 * man/roff.man: Completely rewritten.
2942 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2944 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
2946 2001-12-05 Werner LEMBERG <wl@gnu.org>
2948 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
2950 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
2951 order of initializers.
2954 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
2956 * doc/groff.texinfo: Fix documentation of \O.
2958 * src/devices/grohtml/html-text.cc (html_text::do_indent,
2959 html_text::do_table, html_text::do_emittext, html_text::do_para):
2960 Use `const' for first argument.
2961 (html_text::do_table): Use cast.
2962 * src/devices/grohtml/html-text.h: Updated.
2963 * src/devices/grohtml/output.cc (simple_output::put_string): Add
2964 method for `const string &s'.
2965 * src/devices/grohtml/html.h: Updated.
2966 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
2967 (ANCHOR_TEMPLATE): Modified.
2968 (manufacture_headings): New global variable to handle `-h' option.
2969 (is_subsection): Removed.
2970 (char_buffer::add_string): Add `const' to first argument.
2971 Protect against invalid string argument.
2972 Add method for `const string &s'.
2973 (text_glob): Completely redesigned.
2974 (page): Use `const' for strings and remove string length variable.
2975 (page::add_html): Removed.
2976 (page::add_end_encode): New member function.
2977 (to_unicode): Moved upwards.
2978 (title_desc, header_desc): Updated.
2979 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
2981 (html_printer::is_bold, html_printer::make_bold): New member
2983 (html_printer::end_of_line): Updated.
2984 (generate_img_src, html_printer::do_auto_image,
2985 html_printer::do_title, html_printer::write_header,
2986 html_printer::determine_header_level, html_printer::do_heading,
2987 html_printer::do_linelength, html_printer::do_pageoffset,
2988 html_printer::do_indentation, html_printer::do_tempindent,
2989 html_printer::do_indentedparagraph, html_printer::do_break,
2990 html_printer::flush_sbuf, get_html_translation,
2991 html_printer::begin_page, html_printer::special): Rewritten to get
2992 rid of static string length limit.
2993 (html_printer::troff_tag): Added `.no-auto-rule'.
2994 (html_printer::flush_globs): Small fix.
2995 (html_printer::determine_space): Don't compute `space_width'.
2996 (html_printer::translate_to_html): Renamed to ...
2997 (html_printer::emit_html): This (with updates).
2998 (html_printer::write_header): Implement `-h' option.
2999 (html_printer::draw): Remove commented-out code. Handle `F'
3001 (html_printer::add_char_to_sbuf): Removed.
3002 (html_printer::add_to_sbuf): Rewritten.
3003 (html_printer::sbuf_continuation): Fixed.
3004 (html_printer::seen_backwards_escape, reverse,
3005 html_printer::remove_last_char_from_sbuf): Removed.
3006 (char_translate_to_html, str_translate_to_html): Removed.
3007 (html_printer::overstrike): New function member.
3008 (html_printer::set_char): Use it.
3009 (html_printer::do_body): New function member.
3010 (html_printer::~html_printer): Use it.
3011 (main): Handle `-h' option.
3013 * src/devices/grohtml/grohtml.man: Document -h switch.
3015 * src/preproc/html/pre-html.cc: Include searchpath.h
3016 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
3017 (get_resolution): New function.
3018 (checkImageDir): Use `0777' permissions in mkdir()
3019 (write_start_image): Rewritten to use `\O[5...]'.
3020 (createImage, generateImages): Updated.
3021 (main): Handle `F' and `h' options.
3022 Use `get_resolution'.
3024 * src/roff/troff/input.cc (begin, end, image): Removed.
3025 (do_suppress): Take parameter.
3026 Handle modified syntax of `\O'.
3027 (token::next): Updated.
3028 (init_markup_requests): Removed.
3031 * src/roff/troff/div.h: Add declaration for begin_page().
3033 * tmac/color-html.tmac: Removed. Contents moved to...
3034 * tmac/html.tmac: Here. Set background color.
3035 * tmac/color.tmac: Removed. Contents moved to...
3036 * tmac/ps.tmac: Here.
3037 * tmac/www.tmac: Remove the title command when generating images
3039 (NO_AUTO_RULE): New macro.
3040 (HTML_DO_IMAGE): Use revised `\O' escapes.
3041 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
3043 2001-12-02 Werner LEMBERG <wl@gnu.org>
3045 * tmac/groff_mdoc.man: Fix typo.
3047 2001-12-01 Colin Watson <cjwatson@debian.org>
3049 * man/roff.man: Fix typo.
3051 2001-11-29 Werner LEMBERG <wl@gnu.org>
3053 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
3056 * src/roff/troff/input.cc (read_draw_node): Emit error message if
3057 more than one argument to \D'f ...'.
3059 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
3061 2001-11-28 Werner LEMBERG <wl@gnu.org>
3063 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
3066 * tmac/groff_man.man: Minor cosmetic fix.
3068 2001-11-27 Werner LEMBERG <wl@gnu.org>
3070 * src/roff/groff/groff.man, tmac/groff_tmac.man,
3071 tmac/groff_www.man: s/mwww/www/.
3073 2001-11-26 Werner LEMBERG <wl@gnu.org>
3075 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
3076 * configure: Regenerated.
3077 * win32-diffs: Updated.
3079 * tmac/groff_mwww.tmac: Renamed to ...
3080 * tmac/groff_www.tmac: This.
3081 * tmac/mwww.tmac: Removed.
3082 * NEWS, tmac/Makefile.sub: Updated.
3084 2001-11-21 Werner LEMBERG <wl@gnu.org>
3086 * doc/groff.texinfo: Improve documentation of the `\v' escape.
3087 Fix explanation of `\D' and `rt'.
3089 2001-11-20 Werner LEMBERG <wl@gnu.org>
3091 * tmac/an-old.tmac (an-header): Set header length equal to page
3093 * doc/groff.texinfo: Improve documentation of `ne' request. Other
3097 2001-11-19 Werner LEMBERG <wl@gnu.org>
3099 * NEWS, man/Makefile.sub: Updated.
3101 2001-11-19 Bernd Warken <bwarken@mayn.de>
3103 * man/ditroff.man: New file.
3105 2001-11-17 Werner LEMBERG <wl@gnu.org>
3107 * man/groff_differences.man: Renamed to ...
3108 * man/groff_diff.man: This. Updated.
3109 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
3111 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
3112 * src/preproc/html/pushback.cc: This. Updated.
3113 * src/preproc/html/pushbackbuffer.h: Renamed to ...
3114 * src/preproc/html/pushback.h: This.
3115 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
3118 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
3119 * src/libs/libgroff/htmlhint.cc: This.
3120 * src/libs/libgroff/Makefile.sub: Updated.
3122 * tmac/an-old.tmac (an-end): Fix page length.
3124 2001-11-16 Werner LEMBERG <wl@gnu.org>
3126 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
3127 * man/Makefile.sub: Include groff_differences.man.
3128 * VERSION: Set to 1.18.
3129 * REVISION: Set to 0.
3131 2001-11-16 Bernd Warken <bwarken@mayn.de>
3133 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
3134 the second dot (or ending macro name) to end a macro.
3135 * doc/groff.texinfo: Doc fix.
3137 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
3139 * tmac/doc-common (doc-header): Handle very long document titles
3142 2001-11-16 Werner LEMBERG <wl@gnu.org>
3144 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
3146 2001-11-15 Werner LEMBERG <wl@gnu.org>
3148 * src/roff/troff/troff.man: Revised and split into troff.man and...
3149 * man/groff_differences.man: New file.
3152 2001-11-13 Werner LEMBERG <wl@gnu.org>
3154 * tmac/an-old.tmac (TS, TE): New macros for table support.
3156 2001-11-12 Werner LEMBERG <wl@gnu.org>
3158 * src/include/lib.h: Provide a fix for emx to not include
3161 2001-10-27 Werner LEMBERG <wl@gnu.org>
3163 * src/roff/troff/input.cc (substring_macro): Fix computation of
3166 2001-10-20 Werner LEMBERG <wl@gnu.org>
3168 Undo change from 2001-08-28.
3170 * src/roff/troff/input.cc (have_input): New global variable.
3171 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
3172 in compatibility mode.
3173 (process_input_stack): Use it.
3175 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
3177 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
3178 being handled as end-of-sentence characters,
3180 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
3182 * src/roff/troff/input.cc (file_iterator): New members
3183 `suppress_newline_flag' and `seen_escape'.
3184 (file_iterator::next_file): Updated.
3185 (file_iterator::fill): Use it.
3186 (string_iterator): New member `suppress_newline_flag'.
3187 (string_iterator::fill): Set it.
3188 (get_color_element): Use MAX_COLOR_VAL.
3189 * src/roff/troff/env.cc (environment): Remove `need_eol'.
3190 (no_fill): Don't set `env->ignore_next_eol'.
3191 (environment::newline): Handle `eol' tag properly.
3193 (environment::add_html_tag): Set `env->ignore_next_eol'.
3195 * src/roff/troff/env.h (environment): Updated.
3197 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
3199 (html_printer::outstanding_eol): New member function.
3200 (html_printer::do_title): Use new functions.
3201 (html_printer::troff_tag): Test `id_eol_ce'.
3203 2001-10-10 Werner LEMBERG <wl@gnu.org>
3205 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
3206 files work with -C also.
3208 2001-10-05 Werner LEMBERG <wl@gnu.org>
3210 * doc/pic.ms: Minor fix.
3211 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
3212 as a valid command line switch.
3213 * src/devices/grohtml/post-html.cc (main): Ditto.
3215 * src/devices/grohtml/grohtml.man: Updated.
3216 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
3218 2001-10-04 Werner LEMBERG <wl@gnu.org>
3220 Implementing color support in troff, pic, grops, and grohtml. These
3221 changes are based on a major patch provided by Gaius Mulley
3224 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
3225 definitions with both hex values and fractions.
3227 New escapes: \m and \M for drawing and background color,
3228 respectively. This corresponds to the troff output commands `m'
3231 groff and troff accept command line switch `-c' to disable color
3232 output (which is automatically disabled in compatibility mode).
3234 New scaling indicator `f' for fractions (1f = 65536u).
3236 New conditional operator `m' to test for defined colors with `if'
3239 New keywords `color' (or `colour', `colored', `coloured'), `outline'
3240 (or `outlined'), and `shaded' added to pic.
3242 * src/include/color.h: New file.
3243 * src/include/driver.h: Include it.
3244 * src/include/printer.h: Include color.h.
3245 (environment): New members `col' and `fill'.
3246 (printer): Remove `adjust_arc_center' member function.
3247 * src/include/Makefile.sub: Updated.
3249 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
3251 Handle `m' and `DF' troff commands.
3252 * src/libs/libgroff/color.cc: New file.
3253 * src/libs/libgroff/Makefile.sub: Updated.
3255 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
3257 (createImage): Fix computation of `y2'.
3259 (buffer::write_file_html): Remove calls to `stop'.
3261 * src/preproc/pic/common.h (common_output): New abstract function
3262 members `set_color', `reset_color', `get_last_filled', and
3263 `get_outline_color'.
3264 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
3265 (object_spec): Add members `shaded' and `outlined'.
3266 * src/preproc/pic/output.h (output): `command' is now abstract.
3267 New function members `set_color', `reset_color', `get_last_filled',
3268 and `get_outline_color'.
3269 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
3270 `outline[d]', and `shaded'.
3271 * src/preproc/pic/object.cc (output::command): Removed.
3272 (output::set_location): Moved to output.h.
3273 (graphic_object): Add protected members `outline_color' and
3275 Add member functions `set_outline_color', `get_outline_color', and
3277 (closed_object): Add member function `set_fill_color'.
3278 Add member `color_fill'.
3279 (graphic_object::print_text): Use `out->set_color' and
3281 (box_object::print, ellipse_object::print, circle_object::print,
3282 line_object::print, spline_object::print, arc_object::print): Ditto.
3283 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
3284 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
3285 `SHADED', making them `%left'.
3286 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
3287 * src/preproc/pic/tex.cc (tex_output): New dummy function members
3288 `set_color', `reset_color', `get_last_filled', and
3289 `get_outline_color'.
3290 * src/preproc/pic/troff.cc (simple_output): New abstract function
3291 members `set_color', `reset_color', and `get_last_filled'.
3292 (simple_output::polygon, simple_output::circle,
3293 simple_output::ellipse): Use `get_last_filled'.
3294 (troff_output): New members `last_filled' and `last_outlined'.
3295 New function members `set_color', `reset_color', `get_last_filled',
3296 and `get_outline_color'.
3297 (troff_output::finish_picture): Use `reset_color'.
3298 (troff_output::set_fill): Test `last_filled'.
3299 * src/preproc/pic/pic.man: Updated.
3301 * src/roff/groff/groff.cc (main): Implement `-c' option.
3302 (synopsis, help): Updated.
3303 src/roff/groff/groff.man: Updated.
3305 * src/roff/troff/troff.h: Include color.h.
3306 (warning_type): Add WARN_COLOR.
3307 * src/roff/troff/env.h (environment): New members
3308 `{cur,prev}_{glyph,fill}_color'.
3309 New member functions `get_{prev_,}{glyph,fill}_color'.
3310 * src/roff/troff/env.cc: Initialize and implement them.
3311 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
3312 Replace `NULL' with `0' everywhere for consistency.
3313 (lookup_color, default_black, do_glyph_color, do_fill_color,
3314 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
3315 define_color): New functions.
3316 (token::next): Implement \M and \m escapes.
3317 (do_if_request): Implement `m' operator.
3319 (main): Implement `-c' option.
3320 (init_markup_requests): Add `defcolor' request.
3321 (warning_table): Add `color' warning.
3322 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
3324 * src/roff/troff/node.cc (troff_output_file): New members
3325 `current_{page,glyph}color'. New member functions `put_hex',
3326 `glyph_color', and `fill_color'.
3327 (glyph_color_node::*, fill_color_node::*): Implement it.
3328 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
3329 (parse_term): Add support for `f'.
3330 * src/roff/troff/troff.man: Updated.
3332 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
3334 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
3335 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
3337 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
3338 (tag_definition): Use `void *' for arg1.
3339 (html_text): New member functions `do_color' and `done_color'.
3340 Use `void *' for second parameter of `push_para' member function.
3341 New `push_para' member function with a single parameter.
3342 Use `char *' for parameter of `issue_table_begin' member funtion.
3343 New `issue_color_begin' member function.
3344 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
3346 (html_text::issue_color_begin): New function.
3347 (html_text::issue_table_begin): Use `char *' for parameter.
3348 (html_text::start_tag, html_text::shutdown,
3349 html_text::check_emit_text): Updated.
3350 (html_text::push_para): Use `void *' for second parameter.
3351 Add same function with only one parameter.
3352 (html_text::do_*): Updated.
3353 (html_text::do_color, html_text::done_color): New functions.
3354 * src/devices/grohtml/post-html.cc (style): New member `col'.
3355 Mew member `style' with 6 parameters.
3356 (style::style, style::operator==): Updated.
3357 (html_printer::do_font): Use it.
3358 (html_printer::draw): Add dummy entry for `F'.
3359 (html_printer::set_char): Updated.
3360 * src/devices/grohtml/grohtml.man: Updated.
3362 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
3363 trailing zeroes removed.
3364 (ps_printer): New members `sbuf_color', `fill_color', and
3366 Removed member `fill'.
3367 New member function `set_color'.
3368 (ps_printer::ps_printer, ps_printer::set_char): Updated.
3369 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
3370 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
3372 * tmac/color-html.tmac, tmac/color.tmac: New files.
3373 * tmac/troffrc: Include them.
3374 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
3375 * tmac/Makefile.sub: Updated.
3377 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
3378 man/groff.man: Updated.
3379 * font/devps/prologue.ps: Define FC and CO functions.
3381 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
3383 Fix incorrect cropping of images and incorrect handling of special
3384 characters. Fix handling of file names in \O.
3386 * src/include/geometry.h: New file.
3387 * src/libs/libgroff/geometry.cc: New file.
3388 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
3390 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
3392 (do_suppress): Updated.
3393 * src/roff/troff/node.cc: Include geometry.h.
3394 (troff_output_file::flush_tbuf): Fixed parameters to
3395 `check_output_limits'.
3396 (troff_output_file::check_charinfo): Ditto.
3397 (troff_output_file::determine_line_limits): Add support for `Da'
3400 * src/devices/grohtml/post-html.cc (str_translate_to_html):
3401 Add new parameter `is_special' to decode special characters from
3403 (html_printer::do_title, html_printer::do_heading,
3404 html_printer::do_indentedparagraph,
3405 html_printer::translate_to_html, html_printer::special): Updated.
3407 2001-10-03 Werner LEMBERG <wl@gnu.org>
3409 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
3410 Fix entry for config.h.
3411 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
3412 * tmac/troffrc: Translate nonbreakable space character to `\~'.
3413 * src/preproc/eqn/eqn.man: Document -d command line option.
3415 2001-09-27 Werner LEMBERG <wl@gnu.org>
3417 * man/groff.man: Use
3425 instead of the old code (`.ad .hy' after the table) to suppress
3426 incorrect hyphenation for grohtml output.
3428 2001-09-22 Werner LEMBERG <wl@gnu.org>
3430 * man/groff_font.man, man/groff_out.man: Minor fixes.
3432 2001-09-20 Werner LEMBERG <wl@gnu.org>
3434 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
3435 Arnold Robbins <arnold@skeeve.com>).
3437 2001-09-09 Werner LEMBERG <wl@gnu.org>
3439 * configure: Regenerated with autoconf 2.52.
3441 * doc/groff.texinfo: Complete revision of indices.
3443 2001-09-07 Werner LEMBERG <wl@gnu.org>
3445 * doc/Makefile (clean): Updated to delete all indices.
3447 2001-09-05 Werner LEMBERG <wl@gnu.org>
3449 * src/roff/troff/troff.man: Remove superfluous line.
3451 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
3452 given on the command line (or rather, if only the default warnings
3455 2001-09-03 Werner LEMBERG <wl@gnu.org>
3457 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
3458 use .ne for TTY devices.
3460 2001-08-31 Werner LEMBERG <wl@gnu.org>
3462 * src/roff/troff/token.h, src/roff/troff/input.cc:
3463 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
3465 2001-08-28 Werner LEMBERG <wl@gnu.org>
3467 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
3468 * src/roff/troff/input.cc (token::next): Return
3469 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
3471 (token::description): Updated.
3472 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
3473 (token::add_to_node_list, token::process): Ignore
3474 TOKEN_TRANSPARENT_ESCAPE.
3476 2001-08-27 Werner LEMBERG <wl@gnu.org>
3478 * tmac/an-old.tmac: Fix `S' string.
3480 2001-08-26 Werner LEMBERG <wl@gnu.org>
3482 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
3484 2001-08-25 Werner LEMBERG <wl@gnu.org>
3486 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
3488 Many other minor fixes.
3490 * configure.ac: Add message at end to inform how to compile
3492 * configure: Regenerated.
3494 2001-08-24 Werner LEMBERG <wl@gnu.org>
3496 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
3497 Updated to latest version of libc.
3499 2001-08-23 Werner LEMBERG <wl@gnu.org>
3501 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
3502 Autoconf 2.50 and newer can handle this.
3503 * configure: Regenerated.
3505 2001-08-21 Werner LEMBERG <wl@gnu.org>
3507 * doc/pic.ms: Fix typo.
3508 * src/preproc/tbl/tbl.man: Document case of global options.
3510 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
3512 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
3513 handling of `CR' font.
3515 2001-08-20 Werner LEMBERG <wl@gnu.org>
3517 Use a config.h file.
3519 * src/include/lib.h: Include config.h.
3520 * All C files: Ditto (if necessary).
3521 * All C++ source and header files: Include lib.h first (if
3524 * src/include/config.hin: New file (autogenerated by autoheader).
3525 * stamp-h.in: New file.
3526 * configure.ac: Updated.
3527 * aclocal.m4: Add third parameters to AC_DEFINE macros.
3528 (GROFF_ARRAY_DELETE): Simplified.
3529 * Makefile.sub (DISTCLEANFILES): Updated.
3530 Added targets for remaking config.status, config.hin, config.h,
3531 stamp-h.in, and stamp-h.
3532 * configure: Regenerated.
3534 2001-08-19 Werner LEMBERG <wl@gnu.org>
3538 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
3540 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
3541 (do_sprintf): Use snprintf().
3543 2001-08-18 Werner LEMBERG <wl@gnu.org>
3545 * src/libs/snprintf/*: Added an snprintf module written by Mark
3547 * src/libs/libgroff/Makefile.sub: Updated.
3548 * configure.ac: Add test for snprintf().
3549 * Makefile.in: Updated.
3550 * configure: Regenerated.
3552 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
3555 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
3557 * tmac/doc.tmac (Ex): New implementation.
3558 * tmac/doc-common, tmac/groff_tmac.man: Updated.
3560 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
3562 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
3564 * tmac/groff_tmac.man: Updated.
3566 2001-08-13 Werner LEMBERG <wl@gnu.org>
3568 * src/preproc/tbl/tbl.man: Minor documentation update.
3570 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
3572 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
3573 * configure.ac: Add declaration test for gettimeofday().
3574 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
3575 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
3576 * configure: Regenerated.
3578 2001-08-11 Werner LEMBERG <wl@gnu.org>
3580 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
3581 * configure.ac: Add declaration test for strcasecmp().
3582 * Makefile.in: Updated.
3583 * configure: Regenerated.
3584 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
3585 this is necessary because groff's mkstemp.cc is C++.
3586 Add declaration conditionally for strcasecmp().
3588 2001-08-10 Werner LEMBERG <wl@gnu.org>
3590 Integrated pic2graph, contributed by Eric S. Raymond.
3592 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
3594 * Makefile.in, NEWS: Updated.
3596 * src/preproc/tbl/tbl.man: Revised.
3598 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
3600 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
3602 2001-08-09 Werner LEMBERG <wl@gnu.org>
3604 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
3607 2001-08-08 Paul Eggert <eggert@twinsun.com>
3609 * Makefile.sub (configure): Depend on configure.ac, not
3611 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
3613 2001-08-07 Werner LEMBERG <wl@gnu.org>
3615 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
3618 2001-08-06 Werner LEMBERG <wl@gnu.org>
3620 * src/roff/troff/troff.man: Improve documentation of -E option.
3622 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3624 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
3627 2001-07-27 Werner LEMBERG <wl@gnu.org>
3629 * src/preproc/refer/refer.cc: Undo last change.
3630 * src/devices/grohtml/post-html.cc: Ditto.
3632 2001-07-26 Werner LEMBERG <wl@gnu.org>
3634 * src/preproc/refer/refer.cc: Include `lib.h'.
3635 * src/devices/grohtml/post-html.cc: Ditto.
3637 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
3639 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
3640 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
3641 * Makefile.in: Comment updated.
3642 * configure: Regenerated.
3644 2001-07-25 Werner LEMBERG <wl@gnu.org>
3646 * src/preproc/pic/pic.cc: Removed.
3647 * src/preproc/pic/pic_tab.h: Removed.
3648 * src/preproc/refer/label.cc: Removed.
3650 * doc/Makefile (.ms.html): Don't use a file name extension in
3651 argument to grohtml's -I option.
3652 * Makefile.in (dist): Remove CVS directories.
3653 Call `distfiles' target.
3655 * src/devices/grohtml/grohtml.man: Add information about valid
3656 versions of pnmtopng.
3657 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
3658 name instead of number.
3660 2001-07-24 Werner LEMBERG <wl@gnu.org>
3662 * doc/groff.texinfo: Minor fixes.
3664 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
3666 * doc/Makefile (.ms.html): Put image files into a subdirectory.
3669 2001-07-20 Werner LEMBERG <wl@gnu.org>
3671 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
3672 * src/libs/libgroff/mkstemp.cc: New file.
3673 * src/libs/libgroff/mksdir.cc: New file.
3674 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
3675 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
3676 * src/libs/libgroff/Makefile.sub: Updated.
3677 * src/include/lib.h: Add mksdir() prototype.
3678 * src/include/posix.h: Define S_IXUSR if not yet defined.
3680 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
3681 (createAllPages): Use mksdir() instead of current code.
3682 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
3683 (main): [!HAVE_MKSTEMP]: Removed.
3685 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
3686 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
3688 * configure.ac: Add tests for stdint.h, sys/time.h, and
3690 Call new GROFF_xxx macros.
3691 * configure: Regenerated.
3692 * Makefile.in: Comments updated.
3694 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
3696 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
3697 instead of current code.
3698 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
3699 * src/roff/groff/groff.cc (possible_command::insert_args): New
3701 (main): Use it for predriver handling instead of insert_arg().
3703 2001-07-19 Werner LEMBERG <wl@gnu.org>
3705 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
3708 * src/include/posix.h: Define S_IWUSR if not yet defined.
3710 2001-07-18 Werner LEMBERG <wl@gnu.org>
3714 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
3716 * tmac/groff_mdoc.man: Document new -width and -column syntax.
3717 Some other minor fixes.
3718 * tmac/an-old.tmac: Add `AT' and `UC' macros.
3720 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
3722 Replace call to `troff' with `groff -Z' to make it aware of
3725 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
3726 (troff_command, command_prefix): Removed.
3727 (alterDeviceTo): Use groff.
3728 (addZ): New function.
3729 (char_buffer::do_html): Use it.
3730 (scanArguments): Use TROFF_COMMAND.
3731 (findPrefix): Removed.
3733 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
3735 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
3737 * doc/pic.ms: Documentation fixes.
3739 2001-07-17 Werner LEMBERG <wl@gnu.org>
3741 Replace atexit() with global destructor.
3743 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
3744 (xtmpfile_list_init): New global structure to deallocate
3745 xtmpfile_list on exit. Its destructor inherits most code from
3747 (remove_tmp_files): Deleted.
3748 (add_tmp_file): Simplified.
3750 2001-07-16 Werner LEMBERG <wl@gnu.org>
3752 Replace strdup() with strsave().
3754 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
3755 (set_papersize): Use strsave() and a_delete.
3756 (main): Use strsave().
3757 * src/preproc/html/pre-html.cc (make_message, createAllPages,
3758 removeAllPages): Use strsave() and a_delete.
3760 * configure.ac: Remove test for strdup.
3761 * Makefile.in: Comment updated.
3762 * configure: Regenerated.
3764 2001-07-15 Werner LEMBERG <wl@gnu.org>
3766 * win32-diffs: Updated.
3768 2001-07-14 Werner LEMBERG <wl@gnu.org>
3770 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
3771 removing the old one.
3772 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
3774 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3776 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
3778 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
3780 Merge -xwidth into -width. Add -xwidth functionality to -column
3783 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
3785 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
3786 string immediately following a leading dot starts with a valid mdoc
3788 Add similar code to the -column branch.
3789 (doc-Bl-usage): Updated.
3790 * groff_mdoc.man: s/-xwidth/-width/.
3792 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
3794 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
3795 running into centered or non-formatted text.
3797 2001-07-11 Werner LEMBERG <wl@gnu.org>
3799 Introduce short and long prefixes to have the selection at run-time
3800 whether there is a 8+3 limit for names of temporary files.
3802 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
3803 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
3804 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
3806 (temp_init): New global structure to initialize above three
3808 (xtmptemplate): Use two parameters for long and short prefix.
3809 Simplify code use above three variables.
3810 (xtmpfile): Use long and short prefixes as parameters.
3811 * src/include/lib.h: Updated.
3813 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
3815 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
3816 (createAllPages, makeTempFiles): Updated.
3818 2001-07-09 Werner LEMBERG <wl@gnu.org>
3820 * REVISION: Increased to 3.
3822 Version 1.17.2 released
3823 =======================
3825 2001-07-07 Werner LEMBERG <wl@gnu.org>
3827 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
3830 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
3832 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
3834 * tmac/groff_mdoc.man: Fix synopsis.
3836 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
3838 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
3839 Restore `doc-Pa-font'.
3841 2001-07-04 Werner LEMBERG <wl@gnu.org>
3843 * src/utils/indxbib/dirnamemax.c: Moved to ...
3844 * src/libs/libgroff/maxfilename.cc: Here.
3845 s/dir_name_max/file_name_max/.
3847 * src/include/lib.h: Add file_name_max.
3848 * src/utils/indxbib/indxbib.cc: Updated.
3849 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
3852 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
3854 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
3856 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
3857 REGION_TEMPLATE): New macros.
3858 (createAllPages, makeTempFiles): Use them.
3859 Include `nonposix.h'.
3860 (html_system): New function.
3861 (createAllPages, createImage): Use it.
3864 * tmac/www.tmac: Fix typos.
3866 2001-07-03 Werner LEMBERG <wl@gnu.org>
3868 * tmac/www.tmac: Disable hyphenation in normal text only if output
3870 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
3871 * tmac/groff_mwww.man, NEWS: Updated.
3873 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
3875 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
3878 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
3880 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
3881 doc-display-ps-stack): Implement font and font size stack for
3884 2001-07-02 Werner LEMBERG <wl@gnu.org>
3886 * REVISION: Increased to 2.
3887 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
3889 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
3890 beginning of a line.
3891 * src/groff/grog/grog.sh: Ditto.
3893 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
3895 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
3898 2001-06-27 Werner LEMBERG <wl@gnu.org>
3900 Fix problems with preprocessor string for `man' program.
3902 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
3903 Updated/added copyright.
3904 Moved Emacs's local variable to identify nroff mode to the end of
3905 the file; add local variable if missing.
3907 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
3909 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
3910 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
3911 * configure: Regenerated.
3913 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
3915 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
3916 * configure: Regenerated.
3918 2001-06-24 Werner LEMBERG <wl@gnu.org>
3920 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
3922 * doc/pic.ms: Fix typos.
3924 Version 1.17.1 released
3925 =======================
3927 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
3929 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
3930 * configure: Updated.
3932 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
3934 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
3936 * src/roff/troff/dic.cc (blank_line): Add html tag.
3938 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
3940 * src/roff/troff/input.cc (do_suppress): Fix typo.
3942 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
3944 Added two new options (-D and -I) to specify image names and a
3945 subdirectory to place the images in.
3947 Change syntax from \\Ox to \\O[x].
3949 * src/devices/grohtml/post-html.cc (main): Add options.
3951 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
3952 Use `NULL' instead of `0' for null string pointers.
3953 (MAX_RETRIES): New macro.
3954 (lengthOfintToStr, intToStr, make_message): New functions.
3955 (makeFileName): Make function static.
3956 Implement -D and -I options.
3957 (checkImageDir): New function.
3958 (write_end_image, write_start_image): Use new syntax of \O.
3959 (createAllPages, removeAllPages): Implement -D and -I options. Use
3961 (createImage): Use make_message().
3962 (addps4html): Add guard for malloc().
3963 (usage, scanArguments): Updated.
3964 (makeTempFiles): Use mkstemp().
3965 (removeTempFiles): Use unlink().
3966 (findPrefix): Add guard for malloc().
3968 * src/roff/troff/input.cc (get_delim_file_name): New function to
3970 (do_suppress): Updated to parse new syntax.
3971 * src/devices/grohtml/grohtml.man: Updated.
3972 * tmac/www.tmac: Updated to new syntax.
3976 2001-06-15 Werner LEMBERG <wl@gnu.org>
3978 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
3980 * src/devices/grohtml/grohtml.man: Minor improvements.
3982 2001-06-14 Werner LEMBERG <wl@gnu.org>
3984 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3986 2001-06-11 Werner LEMBERG <wl@gnu.org>
3988 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3989 line to specify preprocessor options -- mandb 2.3.1 only recognizes
3991 * src/preproc/grn/grn.man: Add proper '\" string.
3993 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
3995 * test-groff: Don't use PATH but GROFF_BIN_PATH.
3997 2001-06-08 Werner LEMBERG <wl@gnu.org>
3999 Updated to autoconf 2.50.
4001 * configure.in: Renamed to...
4002 * configure.ac: This.
4003 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
4004 (GROFF_OS390): Updated.
4005 * configure: Regenerated.
4007 2001-05-18 Werner LEMBERG <wl@gnu.org>
4009 * src/roff/troff/env.c, src/roff/troff/env.h,
4010 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
4013 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
4015 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
4017 2001-05-16 Werner LEMBERG <wl@gnu.org>
4019 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
4020 less than or equal zero; set it to 1 then.
4021 * src/roff/troff/node.h (node::node): Initialize `last'.
4023 2001-05-08 Werner LEMBERG <wl@gnu.org>
4025 * tmac/an-old.tmac: Make predefined strings work in compatibility
4027 Add troff version guard.
4028 * tmac/doc.tmac: Simplify version guard.
4030 2001-05-07 Werner LEMBERG <wl@gnu.org>
4032 The .ns and .rs requests are now honoured not only in the top-level
4033 but in all diversions (similar to UNIX troff).
4035 This change is based on a patch from Tadziu Hoffmann
4036 <hoffmann@usm.uni-muenchen.de>.
4038 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
4039 (top_level_diversion): Remove `no_space_mode' member.
4040 * src/roff/troff/div.cc (diversion::diversion,
4041 top_level_diversion::top_level_diversion): Updated.
4042 (macro_diversion::output): Reset `no_space_mode'.
4043 (no_space, restore_spacing): Use `curdiv' unconditionally.
4044 (space_request, blank_line): Check `curdiv->no_space_mode'.
4045 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
4046 `curdiv' unconditionally.
4047 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4050 2001-05-06 Werner LEMBERG <wl@gnu.org>
4052 Added two new requests `de1' and `am1' which are similar to `de' and
4053 `am' with the difference that compatibility mode is saved on entry,
4054 switched off during macro execution, and restored on exit.
4056 * src/roff/troff/input.h: Added two new special characters
4057 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
4058 * src/roff/troff/input.cc (input_iterator): Added two member
4059 functions `save_compatible_flag' and `get_compatible_flag'.
4060 (input_stack): Ditto.
4061 (string_iterator): Ditto. Also add private member
4062 `saved_compatible_flag'.
4063 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4064 (calling_mode): New enumeration.
4065 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
4066 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
4067 (define_macro, define_indirect_macro, append_macro, ignore): Use
4069 (define_nocomp_macro, append_nocomp_macro): New functions.
4070 (init_input_requests): Updated.
4071 (do_request): Rename local variable `saved_compatible_flag' to
4072 `old_compatible_flag'.
4073 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4075 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
4076 public and trap-invoked macros. As a consequence, the man macros
4077 work in compatibility mode also.
4079 2001-05-06 Solar Designer <solar@openwall.com>
4081 * Makefile.in: Use $(mandir).
4083 2001-05-06 Alexios Zavras <zvr@pobox.com>
4085 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
4087 2001-05-05 Werner LEMBERG <wl@gnu.org>
4089 Added `.ns' number register: Returns 1 in no-space mode (if in
4090 top-level diversion), 0 otherwise.
4092 * src/roff/troff/div.cc (no_space_mode_reg): New class.
4093 (init_div_requests): Updated.
4094 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4097 2001-05-04 Werner LEMBERG <wl@gnu.org>
4099 * src/roff/nroff/nroff.man: Improved documentation (especially
4102 2001-05-02 Werner LEMBERG <wl@gnu.org>
4104 Added `brp' request: This is \p as a request.
4106 * src/roff/troff/env.cc (environment::do_break): Add parameter
4108 (do_break_request): New function (was `break_request').
4109 (break_request): Calls `do_break_request'.
4110 (break_spread_request): New; calls `do_break_request'.
4111 (init_env_requests): Updated.
4112 * src/roff/troff/env.h: Updated.
4113 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4115 * REVISION: Increased to 1.
4116 * win32-diffs: Updated.
4118 2001-05-01 Werner LEMBERG <wl@gnu.org>
4120 * tmac/an-old.tmac: Fix minor compatibility mode issue.
4121 * tmac/troffrc-end: Make it really work in compatibility mode.
4123 2001-04-27 Werner LEMBERG <wl@gnu.org>
4125 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
4128 2001-04-22 Werner LEMBERG <wl@gnu.org>
4130 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
4131 latest versions from glibc CVS archive.
4133 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
4134 <c.zeelenberg@hccnet.nl>.
4136 2001-04-21 Werner LEMBERG <wl@gnu.org>
4138 * configure.in: Move check for mkstemp() to...
4139 * aclocal.m4 (GROFF_MKSTEMP): This new function.
4140 * configure: Regenerated.
4142 * src/include/groff-getopt.h: Don't use variable names in
4145 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
4146 * src/devices/grohtml/Makefile.sub,
4147 src/devices/grohtml/post-html.cc: Updated.
4149 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
4151 * configure.in: Add special check for mkstemp().
4152 * src/libs/libgroff/tmpfile.cc: Use it.
4153 * src/utils/indxbib/indxbib.cc: Ditto.
4154 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
4155 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
4158 2001-04-20 Bruce Lilly <blilly@erols.com>
4160 `Version_string' as C++ object was not visible to linker from C
4162 Add `const' to `Version_string'.
4164 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
4165 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
4166 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
4167 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
4168 (scanArguments), src/preproc/refer/refer.cc (main),
4169 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
4170 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
4171 (main), src/devices/grohtml/post-html.cc (main),
4172 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
4173 (main), src/utils/hpftodit/hpftodit.cc (main),
4174 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
4175 (main), src/utils/lkbib/lkbib.cc (main),
4176 src/utils/addftinfo/addftinfo.cc (main): Implement it.
4178 * src/roff/groff/pipeline.c: Add _UWIN.
4179 * src/include/nonposix.h: Ditto.
4181 2001-04-20 Werner LEMBERG <wl@gnu.org>
4183 * src/include/lib.h: Use HAVE_STRERROR.
4184 * src/roff/groff/pipeline.c: Ditto.
4185 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
4186 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
4187 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
4188 * win32-diffs: Updated.
4189 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
4191 2001-04-19 Werner LEMBERG <wl@gnu.org>
4193 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
4194 instead of hardwired `"troff"'.
4195 (char_buffer::read_file): Remove unused variables.
4196 (char_buffer::write_file_troff): Ditto.
4197 (char_buffer::write_file_html): Ditto.
4198 (generateImages): Ditto.
4200 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
4202 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
4204 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
4205 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
4206 index_search_item::search1): Ditto.
4207 * src/roff/troff/node.h (width_list): Reorder members.
4208 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
4209 (lookup_warning): Ditto.
4210 (prepend_string): Commented out.
4211 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
4212 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
4213 * src/preproc/tbl/main.cc (process_format): Ditto.
4214 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
4216 * src/preproc/pic/pic.cc: Updated.
4217 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
4218 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
4219 * src/preproc/refer/command.cc (execute_command): Ditto.
4220 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
4221 * src/preproc/refer/token.cc (lookup_token): Ditto.
4222 * src/preproc/soelim/soelim.cc: Ditto.
4223 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
4224 (isHexDigit): Commented out.
4225 (pushBackBuffer::isString): Remove unused variable.
4226 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
4228 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
4229 resource_manager::read_resource_arg, read_one_of, parse_extensions):
4231 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
4232 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
4233 lookup_paper_size): Ditto.
4234 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
4235 (text_glob, element_list): Reorder members.
4236 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
4238 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
4239 return value to `void'.
4240 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
4242 * src/devices/grohtml/html.h (simple_output::check_newline,
4243 simple_output::space_or_newline, simple_output::enable_newlines):
4245 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
4247 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
4248 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
4249 output_ligatures, output_charset, read_map): Ditto.
4250 * src/utils/lookbib/lookbib.cc (main): Ditto.
4251 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
4252 (do_file): Fix typo (`=' -> `==').
4253 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
4254 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
4256 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
4258 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
4259 Fix usage of GROFF_BIN_PATH.
4260 * src/roff/nroff/nroff.man: Updated.
4262 2001-04-18 Werner LEMBERG <wl@gnu.org>
4264 * NEWS: Fixing typos.
4267 Version 1.17 released
4268 =====================
4270 2001-04-17 Werner LEMBERG <wl@gnu.org>
4272 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
4273 directory, not in $(srcdir).
4275 2001-04-16 Werner LEMBERG <wl@gnu.org>
4277 * doc/groff.texinfo: More info on conditionals.
4279 2001-04-15 Werner LEMBERG <wl@gnu.org>
4281 * doc/groff.texinfo: Added some info about groff internals.
4283 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
4284 about missing special character only if the name is non-null.
4286 2001-04-14 Werner LEMBERG <wl@gnu.org>
4288 Removing the grohtml-old device driver which is now obsolete.
4290 * src/devices/grohtml-old/*: Removed.
4291 * font/devhtml-old/*: Removed.
4292 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
4294 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
4295 * test-groff (PATH): Updated.
4296 * tmac/Makefile.sub (NORMALFILES): Updated.
4297 * tmac/an-old.tmac: Remove special code for html-old device.
4298 Replace `html-or-html-old' register with `an-html'.
4299 * tmac/eqnrc: Updated.
4300 * tmac/html-old.tmac: Removed.
4301 * tmac/troffrc, tmac/troffrc-end: Updated.
4302 * tmac/www.tmac: Remove special code for html-old device.
4303 Replace `html-or-html-old' register with `www-html'.
4305 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
4306 src/libs/libgroff/htmlindicate.cc (graphic_end),
4307 include/htmlindicate.h, src/preproc/grn/*.cc,
4308 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
4309 single argument for consistency with rest of source code.
4311 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
4313 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
4315 * src/roff/troff/troff.man: Fixing typos.
4317 2001-04-13 Werner LEMBERG <wl@gnu.org>
4319 * doc/pic.ms: Fixing many font switches.
4320 * doc/groff.texinfo: Fixes, additions.
4321 * MORE.STUFF: Updated.
4323 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
4325 * src/devices/grohtml/grohtml.man: Updated manual page regarding
4327 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
4329 (removeTempFiles): New function to tidy up temporary files.
4330 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
4331 Many fixes to do with the new inline suppress node and image regions
4333 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
4334 (generate_img_src): New function.
4335 (html_printer::do_auto_image): Utilizes it.
4336 (do_heading, do_title): Include inline images within their contents.
4337 (html_printer::begin_page): Tidied up comments that are issued to
4338 the html output file.
4339 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
4341 (text_glob::is_br): New method used by do_heading.
4342 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
4343 equivalent diversion.
4344 * src/include/html-strings.h: Altered image tags to reflect the
4346 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
4348 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
4349 it is already inside a pic image. Only emit tags if the argument
4350 `-Tps:html' is present.
4351 * src/preproc/tbl/main.cc: Changes to reflect additional
4352 `html_end_suppress' parameter.
4353 * src/roff/troff/env.cc: Only emit eol tag if a node has been
4354 emitted since the last eol tag was written.
4355 * src/roff/troff/env.h: New boolean `emitted_node'.
4356 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
4357 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
4358 * src/roff/troff/node.cc (check_charinfo): New method.
4359 (troff_output_file::determine_line_limits): Alterations to limit
4361 * tmac/www.tmac: Changes to reflect new suppress nodes.
4363 2001-04-12 Bruno Haible <haible@clisp.cons.org>
4365 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
4366 Escape the html_glyph in the buffer.
4367 (str_translate_to_html): Output the unescaped escaped_char.
4368 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
4369 `frame=void', not `frame=none'. Add `border=0'.
4371 2001-04-12 Werner LEMBERG <wl@gnu.org>
4373 * PROBLEMS: Add some words on how to avoid wrapper macros.
4375 2001-04-11 Blake McBride <blake@florida-software.com>
4377 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
4379 2001-04-11 Werner LEMBERG <wl@gnu.org>
4381 * font/devlbp/Makefile.sub (CLEANADD): Set it.
4382 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
4383 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
4384 * Makefile.sub (DISTCLEANFILES): Here.
4386 * libs/libgroff/new.cc: Include `nonposix.h'.
4387 * win32-diffs: Updated.
4389 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
4391 Added skeleton macro for defunct macros.
4393 Updated documentation.
4395 When inside displays, an empty input line warning should be
4396 suppressed. If another macro call is put inside a display,
4397 all subsequent empty lines found in that display caused a
4398 warning to be emitted.
4400 * tmac/doc.tmac (doc-defunct-macro): New macro.
4401 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
4402 (doc-restore-global-vars): Fixed typo.
4403 (doc-empty-line): Check the `doc-display-depth' register to
4404 determine whether we are inside display or not.
4406 * tmac/doc-common: Removed `Or' and `Sf' registers.
4407 Moved obsolete `Ds' macro to doc.tmac.
4409 * tmac/groff_mdoc.man: Bump document date.
4410 Document `.Vt' under ``Variable Types''.
4411 Removed documentation for obsolete `.Or' macro.
4413 2001-04-10 Werner LEMBERG <wl@gnu.org>
4416 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
4418 2001-04-10 Bruno Haible <haible@clisp.cons.org>
4420 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
4421 (usage): Add stream argument. Don't exit.
4422 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
4423 Write --version output to stdout, not stderr.
4424 (usage): Add stream argument. Don't exit.
4425 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
4426 (usage): Add stream argument. Don't exit.
4427 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
4429 (usage): Add stream argument. Don't exit.
4430 (main): Write --help output to stdout, not stderr.
4431 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
4432 (usage): Add stream argument. Don't exit.
4433 * src/devices/grops/ps.cc (main): Accept --help and --version.
4434 (usage): Add stream argument. Don't exit.
4435 * src/devices/grotty/tty.cc (main): Accept --help and --version.
4436 (usage): Add stream argument. Don't exit.
4437 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
4438 (main): Accept --help and --version.
4439 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
4440 (main): Accept --help and --version.
4441 * src/preproc/html/pre-html.cc (usage): Add stream argument.
4442 (scanArguments): Accept --help and --version.
4443 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
4444 (main): Accept --help and --version.
4445 * src/preproc/refer/refer.cc (main): Accept --help and --version.
4446 (usage): Add stream argument. Don't exit.
4447 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
4449 (main): Accept --help and --version.
4450 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
4451 (main): Accept --help and --version.
4452 * src/roff/groff/groff.cc (main): Accept --help and --version.
4453 (synopsis): Add stream argument.
4454 (help): Write --help output to stdout, not stderr.
4455 (usage): Add stream argument. Don't exit.
4456 * src/roff/grog/grog.pl: Accept --help and --version.
4458 * src/roff/grog/grog.sh: Accept --help and --version.
4459 * src/roff/nroff/nroff.sh: Accept --help and --version.
4460 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
4461 (usage): Add stream argument. Don't exit.
4462 (main): Accept --help and --version.
4463 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
4464 (usage): New function with stream argument, doesn't exit.
4465 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
4466 (usage): New function with stream argument, doesn't exit.
4467 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
4468 (usage): Add stream argument. Don't exit.
4469 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
4470 (main): Accept --help and --version.
4471 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
4473 (main): Accept --help and --version.
4474 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
4475 (main): Accept --help and --version.
4476 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
4477 (usage): Add stream argument. Don't exit.
4479 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
4481 Fix indentation in SYNOPSIS.
4483 Updated to include changes of latest BSD mdoc version (basically,
4484 the only change is that `.Fn' and `.Fc' put a final semicolon after
4485 a function declaration in the SYNOPSIS section).
4487 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
4488 (doc-in-synopsis-section): New variable. Updated all related
4490 (doc-indent-synopsis-active): New register.
4491 (Nd, Fn, Fo): Use it.
4492 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
4493 `.Cd' with long argument line produces indented wrapped lines.
4494 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
4495 undesirable line break to be output.
4496 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
4498 (Fn, Fc): Add final `;' to output.
4499 (doc-save-global-vars, doc-restore-global-vars): Updated.
4500 * tmac/doc-common: Remove `Ex' register.
4502 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
4505 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
4507 * tmac/doc.tmac (Cd): Simplify code.
4508 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
4510 2001-04-06 Werner LEMBERG <wl@gnu.org>
4512 Implement continuous underlining for nroff mode. To do that, a new
4513 request in the ditroff language has been added: `x u N' (N is 0
4516 \X and \Y are now transparent to end-of-sentence recognition.
4518 * src/include/printer.h (printer): Add `type' parameter to `special'
4520 * src/libs/libdriver/printer.cc (printer::special): Updated.
4521 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
4523 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
4524 specials of type `p'.
4525 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
4526 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
4527 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
4528 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
4529 (glyph::order): New method.
4530 (tty_printer::add_char): Use it.
4531 (tty_printer::special): New method.
4532 (tty_printer::end_page): Implement it.
4534 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
4535 * src/roff/troff/node.cc (special_node::special_node): Add parameter
4536 to set `no_init_string'.
4537 (special_node::tprint_start): Use it.
4538 (special_node::same, special_node::copy): Updated.
4539 (special_node::ends_sentence): New method.
4540 (troff_output_file::start_special): Add parameter to include
4541 inititialization of special conditionally.
4543 * src/roff/troff/env.h (environment): New member `underline_spaces'.
4544 * src/roff/troff/env.cc (do_underline_special): New function.
4545 (environment::set_font): Use it.
4546 (do_underline): Use it. This was `underline()'.
4547 (underline): Call `do_underline()'.
4548 (continuous_underline): New function which calls `do_underline()'.
4549 (environment::newline): Use `do_underline_special()'.
4550 (init_env_requests): Updated.
4552 * NEWS, man/troff_out.man: Updated.
4554 2001-04-06 Bruno Haible <haible@clisp.cons.org>
4556 * font/devutf8/R.proto: Fix code of 'shc'.
4558 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
4560 Many fixes. Diag lists can now be nested also; additionally,
4561 `-compact' and `-offset' are supported.
4563 * tmac/doc.tmac (doc-have-indent): Replaced with ...
4564 (doc-list-have-indent-stackXXX): A new register stack.
4565 (doc-have-diag-list): Removed.
4566 (Bl): Use `doc-list-have-indent-stackXXX'.
4568 (doc-diag-list): Use `doc-compact-list-stackXXX'.
4569 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
4570 (doc-set-vertical-and-indent): Ditto.
4571 (doc-next-list-depth): Removed.
4572 (doc-increment-list-stack): Updated.
4573 (doc-decrement-list-stack): Use `doc-list-depth' instead of
4574 `doc-next-list-depth'.
4575 (doc-end-list, doc-end-column-list): Don't use
4576 `doc-increment-list-stack'.
4577 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
4578 (doc-save-global-vars, doc-restore-global-vars): Updated.
4579 * tmac/doc-common: Updated.
4580 * tmac/groff_mdoc.man: Updated.
4583 2001-04-02 Werner LEMBERG <wl@gnu.org>
4585 * src/devices/grotty/grotty.man: Fix grammatical error.
4587 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
4589 Remove .Ld from mdoc package; replace it with special handling of
4592 * tmac/doc-common: Remove `Ld' register.
4593 Uncomment `doc-volume-ds-*' strings.
4594 Remove `doc-operating-system-default'.
4596 * tmac/doc-syms (Ld): Removed.
4597 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
4601 * tmac/groff_mdoc.man: Many fixes and updates.
4603 2001-03-29 Werner LEMBERG <wl@gnu.org>
4605 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
4606 Bond <tkb@tkb.mpl.com>.
4607 * tmac/www.tmac: Save compatibility mode.
4609 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
4611 * tmac/groff_mdoc.man: Many fixes.
4613 2001-03-28 Werner LEMBERG <wl@gnu.org>
4615 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
4618 2001-03-27 Werner LEMBERG <wl@gnu.org>
4620 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
4621 diversion. This fixes overlong tags.
4623 2001-03-26 Werner LEMBERG <wl@gnu.org>
4625 * doc/groff.texinfo: Fixed and improved documentation of fonts.
4626 * tmac/doc-syms: Fix error messages.
4627 * tmac/an-old.tmac: Remove incorrect double backslashes.
4629 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
4631 * tmac/Makefile.sub: Strip mdoc.local also
4632 * tmac/strip.sed: Fixed.
4634 2001-03-24 Werner LEMBERG <wl@gnu.org>
4636 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
4637 selecting the font size.
4638 * tmac/groff_mdoc.man, NEWS: Document it.
4640 2001-03-23 Werner LEMBERG <wl@gnu.org>
4642 * src/roff/troff/div.cc (save_vertical_space): Add default argument
4644 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
4645 argument to restore previous font family.
4646 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
4648 * doc/groff.texinfo: More fixes and additions (mainly for font
4649 manipulating commands).
4651 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
4652 * tmac/groff_mdoc.man: This. The quick reference has been removed.
4653 * tmac/Makefile.sub, NEWS: Updated.
4655 2001-03-23 Werner LEMBERG <wl@gnu.org>
4657 Replaced mdoc implementation. The new version is `state of the
4658 art', using almost all new features of groff 1.17 -- it won't run
4659 with older versions.
4661 * tmac/doc.tmac: Completely rewritten.
4662 * tmac/doc-common: Ditto.
4663 * tmac/doc-nroff: Ditto.
4664 * tmac/doc-ditroff: Ditto.
4665 * tmac/doc-syms: Ditto.
4666 * tmac/mdoc.local: New file.
4667 * tmac/groff_mdoc.samples.man: Replaced with ...
4668 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
4669 * tmac/strip.sed: Updated.
4670 * tmac/Makefile.sub: Updated.
4673 * tmac/groff_man.man: Add `man.local' to the FILES section.
4675 2001-03-22 Werner LEMBERG <wl@gnu.org>
4677 * doc/groff.texinfo: Added many @noindent.
4678 Replaced @end_Example -> @endExample.
4679 Added info whether registers are r/o.
4680 Many other additions and fixes.
4682 2001-03-21 Werner LEMBERG <wl@gnu.org>
4684 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
4685 in makeinfo of texinfo 4.0) to be used in @Def* macros.
4686 Improved @Def* macros: Now the exact syntax of request, register,
4687 and escapes is shown.
4688 Added macros for parentheses and brackets to be used in @Def*.
4689 Many fixes and improvements of the documentation.
4691 2001-03-20 Werner LEMBERG <wl@gnu.org>
4693 * doc/groff.texinfo: Added new index: `st' (for strings).
4694 Added macros @Defstr(x).
4695 Added macro @Example (adding @group).
4696 Other minor improvements.
4698 2001-03-19 Werner LEMBERG <wl@gnu.org>
4700 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
4701 `rq' for requests. `fn' is no longer used.
4702 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
4705 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
4706 number with name of man page.
4708 2001-03-19 Larry Kollar <kollar@alltel.net>
4710 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
4713 2001-03-19 Werner LEMBERG <wl@gnu.org>
4715 * man/groff_font.man: Document `prepro', `postpro', and `print'.
4716 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
4717 * src/devices/grohtml/grohtml.man: Fixing typos.
4719 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
4721 * tmac/s.tmac (@IP): Pass `.ip' html tag.
4722 * tmac/groff_mwww.man: Remove .LINE macro
4723 * tmac/www.tmac (LINE): Add `.ti'.
4725 * src/devices/grohtml/post-html.cc (html_printer): New member
4727 (html_printer::emit_raw): Use it.
4728 (html_printer::do_linelength): Ditto.
4729 (html_printer::do_pageoffset): Ditto.
4730 (html_printer::do_indentation): Ditto.
4731 (html_printer::do_tempindent): Ditto.
4732 (html_printer::do_break): Ditto.
4733 (html_printer::begin_page): Ditto.
4734 (html_printer::do_indentedparagraph): New function.
4735 (html_printer::troff_tag): Handle `.ip'.
4736 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
4737 Add `<td width=...>' handling.
4738 (html_text::do_table): Add parameter.
4739 (html_text::do_indent): Updated.
4740 * src/devices/groohtml/html-text.h: Updated.
4742 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
4744 Introduced simple html tables to implement indentation.
4746 * src/devices/grohtml/html.h (word, word_list): New structures.
4747 (simple_output): Use it.
4748 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
4749 (html_printer): Improve indentation handling.
4750 (html_printer::emit_raw): Set `in_table' element. Handle
4752 (html_printer::write_header): Move conditional downwards.
4753 Don't allow whitespace in tags.
4754 (html_printer::do_linelength): Handle line length and indentation
4756 (html_printer::do_pageoffset): Handle indentation conditionally.
4757 (html_printer::do_indentation): Ditto.
4758 (html_printer::do_tempindent): New function member.
4759 (html_printer::do_fill): Take care of indentation.
4760 (html_printer::do_flush): Finish table.
4761 (html_printer::do_links): Ditto.
4762 (html_printer::do_break): New function for handling `.br' and `.ti'.
4763 (html_printer::troff_tag): Use it.
4765 (html_printer::flush_globs): Fix.
4766 (html_printer::flush_page): Finish table.
4767 (html_printer::html_printer): Fix error message. Set up
4769 (html_printer::add_to_sbuf): Remove special handling of character
4771 (to_unicode): Remove `stop()'.
4772 (html_printer::write_title): Cleanup.
4773 (html_printer::begin_page): Use `put_string()'. Handle indentation.
4774 (html_printer::~html_printer): Flush text and end the line.
4776 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
4777 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
4779 (html_text::start_tag): Disable newlines.
4780 (html_text::table_is_void): New function.
4781 (html_text::issue_table_begin): Ditto.
4782 (html_text::issue_table_end): Ditto.
4783 (html_text::push_para): Better table handling.
4784 (html_text::do_indent): New function.
4785 (html_text::do_table): Ditto.
4786 (html_text::done_table): Ditto.
4787 (html_text::do_tt): Handle PRE_TAG.
4788 (html_text::is_in_table): New function.
4789 (html_text::check_emit_text): Handle tables.
4790 (html_text::do_emittext): Use `nl()'.
4791 (html_text::do_para): Handle table.
4792 (html_text::remove_def): New function.
4793 * src/devices/grohtml/output.cc (word, word_list): Implement
4795 (simple_output::end_line): Flush last word.
4796 (simple_output::simple_comment): Ditto.
4797 (simple_output::begin_comment): Recoded.
4798 (simple_output::end_comment): Ditto.
4799 (simple_output::comment_arg): Removed.
4800 (simple_output::check_newline): Improve test and flush last word.
4801 (simple_output::space_or_newline): Improved.
4802 (simple_output::write_newline): Replaced with...
4803 (simple_output::nl): This.
4804 (simple_output::put_raw_char): Flush last word.
4805 (simple_output::check_space): Removed.
4806 (simple_output::put_translated_string): Ditto.
4807 (simple_output::put_string): Simplified.
4808 (simple_output::put_number): Updated.
4809 (simple_output::put_float): Ditto.
4810 (simple_output::put_symbol): Removed.
4811 (simple_output::enable_newlines): Add `check_newline()'.
4812 (simple_output::flush_last_word): New function.
4814 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
4815 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
4817 * tmac/s.tmac (@PP, @IP): Add html conditional code.
4818 * tmac/an-old.tmac (TP): Ditto.
4820 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
4822 * mdate.sh: Make it POSIX compliant.
4824 2001-03-09 Werner LEMBERG <wl@gnu.org>
4826 Added the `return' request to end a macro immediately. It simply
4827 pops iterators from the input stack until a macro iterator is found.
4829 * src/roff/troff/input.cc (input_iterator::is_macro,
4830 macro_iterator::is_macro): New member.
4831 (input_return_boundary): New class to signal an immediate return
4833 (input_stack::add_return_boundary, input_stack::is_return_boundary):
4835 (input_stack::clear): Use it.
4836 (input_stack::pop_macro): New function.
4837 (while_request): Use `is_return_boundary()'.
4838 (return_macro_request): New function.
4839 (init_input_requests): Use it.
4841 * src/roff/troff/TODO: Updated.
4842 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4844 2001-03-08 Werner LEMBERG <wl@gnu.org>
4846 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
4849 2001-03-07 Werner LEMBERG <wl@gnu.org>
4851 Make `\B' more rigid.
4853 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
4855 (get_number_rigidly): New function.
4856 * src/roff/troff/input.cc (do_expr_test): Use it.
4857 * src/roff/troff/token.h: Updated.
4859 * src/roff/troff/request.h: Fix typo (init_html_request ->
4860 init_markup_request).
4862 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
4864 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
4865 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
4866 are now `.begin', `.end', `.image'.
4868 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
4869 (html_printer::add_to_sbuf): Changing type of `code' parameter.
4870 Use add_char_to_sbuf().
4871 (to_unicode): New function.
4872 (char_translate_to_html): Changing type of `ch' parameter.
4874 (html_printer::~html_printer): Comment out doctype string.
4875 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
4876 instead of `.html-end'.
4877 (write_start_image): Use `.begin' and `.image' instead of
4878 `.html-begin' and `.html-image'.
4879 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
4880 (html_begin): Renamed to ...
4882 (html_end): Renamed to ...
4884 (html_image): Renamed to ...
4886 (init_html_requests): Renamed to ...
4887 (init_markup_requests): This.
4888 * tmac/www.tmac: Updated.
4890 2001-02-28 Bram <bram@avontuur.org>
4892 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
4895 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
4897 * doc/meref.me: Fixing some typos.
4899 2001-02-16 Werner LEMBERG <wl@gnu.org>
4901 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
4902 method. Return `HYPHEN_MIDDLE' if it was `\:'.
4903 * src/roff/troff/node.h: Updated.
4905 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
4907 * tmac/groff_tmac.man: Fix typo.
4909 2001-02-16 Werner LEMBERG <wl@gnu.org>
4911 Fixing a bug which prevented proper end-of-sentence recognition
4912 between an `unformatted' box and the following text. As a
4913 consequence, vertical line distances are no longer preserved in
4914 boxes after a call to `.unformat' -- because boxes aren't
4915 line-oriented (contrary to diversions), this doesn't make sense
4918 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
4920 (vertical_size_node::set_unformat_flag): New method.
4921 * src/roff/troff/node.hh: Updated.
4922 * src/roff/troff/input.cc (word_space_node::reread,
4923 hmotion_node::reread): Reset `unformat' flag after usage.
4924 (unformat_macro): Append only if `set_unformat_flag()' returns
4926 * src/roff/troff/troff.man: Updated.
4928 2001-02-15 Werner LEMBERG <wl@gnu.org>
4930 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
4931 documentation of `asciify' and `unformat' requests.
4933 2001-02-13 Werner LEMBERG <wl@gnu.org>
4935 Redesigned the `unformat' request. It is no longer connected with
4936 `asciify' but rather uses new `reread()' methods if the `unformat'
4937 flag is set. Additionally, the handling of space characters after
4938 unformatting has been fixed so that they retain their width.
4940 * src/roff/troff/node.h (width_list): New structure to store
4941 original widths of spaces.
4942 (node): Added `unformat' member.
4943 Replaced `num_spaces' variable with `orig_width' list.
4944 * src/roff/troff/node.cc (*node::asciify,
4945 asciify_reverse_node_list): Removed `unformat_only' flag and related
4947 (word_space_node::asciify, word_space_node::word_space_node): Use
4949 (word_space_node::~word_space_node): New destructor.
4950 (word_space_node::copy): Updated to handle `orig_width'.
4951 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
4952 (*node::merge_space): Update `orig_width' list if necessary.
4953 (*node::set_unformat_flag): New methods to set the `unformat' flag.
4954 * src/roff/troff/enc.cc (environment::space_newline): Use
4956 (environment::space): Added method to handle space width and
4957 sentence space width as parameters. Use `width_list'.
4958 (environment::make_tab_node): Updated.
4959 * src/roff/troff/env.h: Updated.
4960 * src/roff/troff/input.cc (word_space_node::reread,
4961 unbreakable_space_node::reread, hmotion_node::reread): New methods
4962 to handle nodes specially if `unformat' flag is set.
4963 (do_asciify_macro): Renamed back to ...
4964 (asciify_macro): This.
4965 (unformat_macro): New implementation to simply set the `unformat'
4968 * MORE.STUFF: Added more info about deroff.
4970 2001-02-08 Werner LEMBERG <wl@gnu.org>
4972 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4973 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
4974 and `add_self()' methods to avoid hyphenation. For example, the
4975 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
4976 soft hyphen after `foo'. Now the hyphen list is correctly
4977 `foo<ignore><ignore>bar'.
4979 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
4981 * tmac/groff_tmac.man: Fix `BIR' macro.
4983 2001-02-04 Werner LEMBERG <wl@gnu.org>
4985 A new escape sequence `\:', inserting a zero-width break point.
4987 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4988 * src/roff/troff/input.cc (get_copy, token::next, asciify):
4990 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4992 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
4993 and `asciify()' methods.
4994 * src/roff/troff/node.cc (space_node::space_node): Updated.
4995 (space_node::asciify): Handle `was_escape_colon'.
4996 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4998 Handle `\~' similar to other comparable requests.
5000 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
5002 (token::next): Move creation of an unbreakable_space_node to...
5003 (token::add_to_node_list): Here.
5005 Fix a bug which sometimes prevented hyphenation of words connected
5006 with `\~' or `\ ' (and other escape sequences handled as
5007 TOKEN_NODE). This also fixes a hyphenation problem with boxes
5008 (after a call to the `unformat' request).
5010 * src/roff/troff/env.h (environment::possibly_break_line,
5011 environment::hyphenate_line): Introducing `start_here' parameter.
5012 * src/roff/troff/env.cc (environment::space_newline,
5013 environment::space): Use it.
5014 (environment::possibly_break_line, environment::hyphenate_line):
5016 * src/roff/troff/input.cc (process_input_stack): Use it.
5017 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
5018 space_char_hmotion_node, overstrike_node): Add
5019 `get_hyphenation_type()' method.
5020 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
5021 if `unformat_only' is active.
5023 2001-01-30 Werner LEMBERG <wl@gnu.org>
5025 Implemented new read-only number register `.linetabs' which
5026 returns 1 if in line-tabs mode, 0 otherwise.
5028 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
5029 * src/roff/troff/env.cc (get_line_tabs): New function.
5030 (init_env_requests): Use it.
5031 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5033 * VERSION, REVISION: Changing to 1.17.0.
5035 2001-01-28 Werner LEMBERG <wl@gnu.org>
5037 Fixed a bug which prevented hyphenation of words which are finished
5040 * src/roff/troff/token.h (token): Add enum type
5041 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
5042 * src/roff/troff/input.cc (token::next, token::description,
5043 get_line_arg, token::add_to_node_list, token::process): Use it.
5045 2001-01-27 Werner LEMBERG <wl@gnu.org>
5047 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
5048 * src/roff/troff/div.cc (do_divert): Use it.
5050 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
5052 2001-01-25 Werner LEMBERG <wl@gnu.org>
5054 Adding the `linetabs' request. If set, tab distances are not
5055 computed relative to the input line but relative to the output line.
5057 * src/roff/troff/env.h (environment): New member `line_tabs'.
5058 * src/roff/troff/env.cc (line_tabs_request): Implement request.
5059 (environment::environment, environment::copy): Updated.
5060 (environment::distance_to_next_tab): Use `line_tabs'.
5061 (init_env_requests): Register request.
5062 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
5065 2001-01-24 Werner LEMBERG <wl@gnu.org>
5067 Introducing a new read-only register `.int' which is set to a
5068 positive value if the last output line is interrupted (i.e., if it
5071 * src/roff/troff/env.cc (init_env_requests): Add it.
5072 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5074 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
5076 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
5077 * src/preproc/html/pre-html.cc (findPrefix): New function which
5078 generates the troff executable name via the system prefix.
5079 * src/preproc/eqn/main.cc: Modified warning message.
5081 2001-01-23 Werner LEMBERG <wl@gnu.org>
5083 troff's `box' and `boxa' requests didn't preserve temporary
5086 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
5087 `saved_target_text_length' members.
5088 * src/roff/troff/div.cc (do_divert): Use them.
5090 Tabs (but not yet leaders and fields) are now handled correctly by
5093 * node.h (hmotion_node): Add field `was_tab'.
5094 * env.cc (environment::make_tab_node): Set it.
5095 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
5097 Added new request `unformat' which will, contrary to `asciify',
5098 preserve font information after unformatting (i.e., only nodes
5099 dealing with horizontal space are converted back to input
5102 * input.cc (asciify_macro): Renamed to ...
5103 (do_asciify_macro): this, having a new parameter `unformat_only'.
5104 (asciify_macro, unformat_macro): New; using do_asciify_macro.
5105 (init_input_requests): Added `unformat'.
5106 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
5107 parameter to control asciification process.
5108 * node.h (*_node::asciify): Ditto.
5109 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5111 2001-01-20 Werner LEMBERG <wl@gnu.org>
5113 * doc/groff.texinfo: Minor improvement of `.in' documentation.
5115 2001-01-18 Werner LEMBERG <wl@gnu.org>
5117 * tmac/ps.tmac: Remove call of psold.tmac.
5118 * tmac/psold.tmac: Comment updated.
5119 * tmac/psnew.tmac: Removed since no longer needed.
5120 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
5122 * font/devutf8/R.proto: Adding `shc' glyph.
5123 * font/devutf8/NOTES: Updated.
5125 * test-groff: Updated.
5127 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
5129 First cut of the new html device driver. Changes to pre-html and
5130 the new grohtml are too numerous to be documented here.
5132 Stuff related to `html' has been renamed to `html-old' and `html2'
5133 stuff has been renamed to `html' (including directories). The new
5134 html device driver is therefore invoked as `-Thtml'.
5136 Added new `\O' escape to suppress output (needed by html driver).
5138 Added functions and code to pass info about input-level commands
5139 (`.in', `.fl', etc.) to html driver.
5141 Three new functions (.html-begin, .html-end, and .html-image) for
5142 better html handling: `html-begin' will execute the remaining line
5143 if at the outermost nesting level, increasing an internal counter.
5144 `html-end' does the same but decreases the internal counter.
5145 `html_image' puts its arguments into a special node (suppress_node)
5146 to define an image region.
5148 The `output' request has been removed.
5150 * tmac/html-tags.tmac: Removed.
5151 * tmac/arkup.tmac: Updated and renamed to ...
5152 * tmac/www.tmac: New file.
5153 * tmac/markup.tmac Updated and renamed to ...
5154 * tmac/mwww.tmac: New file.
5155 * tmac/Makefile.sub: Updated.
5156 * tmac/an-old.tmac: Updated.
5157 * tmac/eqnrc: Updated.
5158 * tmac/groff_man.man
5159 * tmac/groff_markup.man: Updated and renamed to ...
5160 * tmac/groff_mwww.man: New file.
5161 * tmac/groff_tmac.man: Updated.
5162 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
5163 * tmac/html.tmac: Updated and renamed from html2.tmac.
5164 * tmac/pspic.tmac: Updated html support.
5165 * tmac/s.tmac: Added html output support.
5166 * tmac/troffrc, tmac/troffrc-end: Updated.
5168 * Makefile.in, doc/Makefile: Updated.
5169 * doc/groff.texinfo: Added info about new `\O' escape.
5170 * doc/homepage.ms: Use `MAILTO' macro.
5172 * font/devhtml/DESC.proto: Add `C' font.
5173 * font/devhtml/Makefile.sub: Updated.
5174 * font/devhtml/R.proto: Minor fixes.
5175 * font/devhtml-old/Makefile.sub: Updated.
5177 * src/devices/grohtml-old/Makefile.sub: Updated.
5179 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
5181 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
5182 graphic_start): Add `inline' parameter. Update.
5183 (html_end_suppress, graphic_end): Update.
5185 * src/include/html-strings.h: New file.
5186 * src/include/htmlindicate.h: Comments updated.
5187 * src/include/printer.h: Updated.
5189 * src/preproc/eqn/main.cc (do_file, main): Updated.
5190 * src/preproc/pic/troff.cc (troff_output::start_picture,
5191 troff_output::finish_picture): Updated.
5192 * src/preproc/tbl/main.cc (process_input_file): Updated.
5194 * src/roff/groff/groff.cc (main): Updated.
5195 Pass device arguments to predrivers also.
5196 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
5197 * src/roff/troff/env.h (environment): Updated.
5198 New elements `need_eol' and `ignore_next_eol' (for html output).
5199 * src/roff/troff/env.cc (environment::environment): Add initializers
5200 for `need_eol' and `ignore_next_eol'.
5201 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
5203 (point_size, fill, no_fill, center, right_justify, line_length,
5204 indent, temporary_indent, break_request, handle_tab): Use
5206 (set_tabs): Use `add_html_tag_tabs()'.
5207 (environment::add_html_tag): Updated.
5208 (environment::do_break): Updated.
5209 * src/roff/troff/div.cc (space_request, flush_output): Use
5210 `environment::add_html_tag()'.
5211 * src/roff/troff/input.cc: Updated.
5212 New variable `html_level' to indicate nested `html-begin' requests.
5213 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
5214 (non_interpreted_char_node, token_node, non_interpreted_node): Add
5215 `force_tprint()' method.
5216 (token::next): Handle `\O'.
5217 (do_suppress): Implement it.
5218 (html_begin, html_end, html_image): New functions.
5219 (init_output_requests): Renamed to ...
5220 (init_html_requests): this.
5222 (macro::append_str, macro::append_unsigned, macro::append_int): New
5224 New variable `output_low_mark_miny' to limit minimal value of y.
5225 (reset_output_registers): Use it.
5226 (output_request): Removed.
5227 (get_output_registers): New function.
5228 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
5229 (*_node): Added `force_tprint()' if necessary.
5230 (special_node): New elements `tf' and `get_tfont()'.
5231 (suppress_node): New class.
5232 * src/roff/troff/node.cc:
5233 New global variables `image_no' and `suppress_start_page'.
5234 (real_output_file): New method `is_on()'.
5235 (troff_output_file): New method `start_special(tfont)'.
5236 (troff_output_file::really_print_line): Use `tprint' conditionally.
5237 (real_output_file::print_line): Updated.
5238 (real_output_file::on): Updated.
5239 (*_node): Added `force_tprint()'.
5240 (special_node::special_node): Initializer updated.
5241 (special_node::same, special_node::copy, special_node::tprint_start):
5243 (get_reg_int, get_reg_str): New functions.
5244 (suppress_node::*): New methods.
5245 New global variables last_position, last_image_filename;
5246 (min): New inline function.
5247 * src/roff/troff/reg.h, src/roff/troff/request.h,
5248 src/roff/troff/troff.h: Updated.
5250 2001-01-13 Werner LEMBERG <wl@gnu.org>
5252 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
5253 documentation of `asciify' request.
5255 2001-01-12 Werner LEMBERG <wl@gnu.org>
5257 * src/roff/troff/input.cc: Move definition of special characters
5258 like `ESCAPE_TILDE' to ...
5259 * src/roff/troff/input.h: New file.
5260 * src/roff/troff/Makefile.sub (HDRS): Add it.
5262 Extending the .asciify request to `unformat' space characters also.
5264 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
5265 to count input space characters.
5266 Update constructors to take care of it.
5267 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
5268 `ESCAPE_SPACE' instead of normal space.
5269 (word_space_node::asciify): New method.
5270 (unbreakable_space_node::asciify): New method.
5271 (word_space_node::merge_space): New method.
5272 * src/roff/troff/env.cc (environment::space_newline,
5273 environment::space): Add code to initialize `num_spaces' (using the
5274 constructor of `word_space_node').
5275 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5278 2001-01-09 Werner LEMBERG <wl@gnu.org>
5280 * man/groff_char.man: Use table header traps only conditionally.
5282 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
5284 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
5286 2001-01-08 Werner LEMBERG <wl@gnu.org>
5288 Introducing the `box' and `boxa' requests which are similar to
5289 `di' resp. `da' but omitting a partially filled line (which is
5290 restored after ending the diversion).
5292 * src/roff/troff/div.h (diversion): Add elements to save partially
5294 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
5295 partially filled line.
5296 (divert, divert_append): Updated.
5297 (box, box_append): New functions.
5298 (init_div_requests): Use them.
5299 * src/roff/troff/env.h (environment): do_divert() is now a friend.
5300 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5302 * doc/groff.texinfo: Fix documentation of `lf' request.
5304 2000-12-25 Werner LEMBERG <wl@gnu.org>
5306 * src/roff/troff/troff.man, NEWS: Document `writem' request.
5308 2000-12-21 Werner LEMBERG <wl@gnu.org>
5310 Ignore `ss' request if in compatibility mode.
5312 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
5313 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
5314 * src/roff/troff/env.cc (space_size): Use it.
5316 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
5317 `ss' request in nroff mode.
5319 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
5322 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
5324 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
5326 2000-12-13 Werner LEMBERG <wl@gnu.org>
5328 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
5329 * src/preproc/eqn/neqn.man: Small fixes and additions.
5331 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
5333 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
5336 * src/preproc/eqn/neqn.man: New file.
5338 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
5341 * tmac/e.tmac: Add `T&' macro.
5342 Fix `indent cannot be negative' warning.
5343 * tmac/s.tmac: Fix `indent cannot be negative' warning.
5345 2000-12-07 Werner LEMBERG <wl@gnu.org>
5347 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
5349 2000-12-06 Werner LEMBERG <wl@gnu.org>
5351 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
5354 * MORE.STUFF: Added info about deroff for djgpp.
5356 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
5357 documentation of -rcR switch.
5359 2000-12-03 Werner LEMBERG <wl@gnu.org>
5361 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
5362 if -rcR=1 (which is now the default in nroff mode), a single, very
5363 long page is created instead of multiple pages: All `ne' and `wh'
5364 requests are put into conditionals; a new macro `an-end' is added to
5365 be called with `em'.
5367 Some other minor cleanups.
5369 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
5371 2000-12-02 Werner LEMBERG <wl@gnu.org>
5373 Fixing a bug which prevented hyphenation in words followed
5374 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
5376 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
5377 Adding possibly_break_line().
5378 * src/roff/troff/env.h (environment): Make possibly_break_line()
5381 Make `\~' usable in .tr request.
5383 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
5384 (token): Add stretchable_space().
5385 * src/roff/troff/input.cc (token::next, token::delimiter,
5386 token::description, process_input_stack, do_translate,
5387 add_to_node_list, token::process): Use it.
5388 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
5389 for adjusting the space.
5390 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
5391 for stretchable space.
5392 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
5393 (make_node): Add code for stretchable space.
5394 * src/roff/troff/env.cc (environment::add_char): Use it.
5395 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
5396 (get_copy, token::next, transparent_translate, asciify): Use it.
5398 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
5399 doc/groff.texinfo: Updated.
5400 * man/groff.man: Small reorderings.
5402 2000-11-23 Werner LEMBERG <wl@gnu.org>
5405 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
5407 * src/roff/troff/input.cc (main): Add `config_macro_path' and
5408 `safer_macro_path' to -M option.
5409 * src/roff/troff/troff.man: Fixes.
5411 2000-11-22 Werner LEMBERG <wl@gnu.org>
5413 Use safer path (except for config files) if -U isn't specified. Add
5414 a special macro path (without home and current directory) for config
5415 files. Add home directory to unsafe path for consistency. Don't
5416 include the home directory in the font path.
5418 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
5420 * src/include/macropath.h: Add `config_macrp_path'.
5421 * src/libs/libgroff/fontfile.cc: Fix font path.
5422 * src/roff/troff/input.cc (process_startup_file): Use
5423 `config_macro_path'.
5424 (main): Select unsafe path if -U is given.
5426 * src/preproc/eqn/main.cc (main): Fixing search path for
5428 * src/preproc/eqn/eqn.man: Updated.
5430 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
5433 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
5434 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
5435 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5436 src/devices/grotty/grotty.man: Updated.
5438 * Makefile.in: Fix comments.
5440 2000-11-17 Werner LEMBERG <wl@gnu.org>
5442 * tmac/safer.tmac: Empty file added (again) for compatibility
5444 * tmac/Makefile.sub: Updated.
5446 2000-11-16 Werner LEMBERG <wl@gnu.org>
5448 * src/devices/grodvi/dvi.cc (main),
5449 src/devices/grohtml2/post-html.cc (main),
5450 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5451 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5452 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5453 (main), src/preproc/html2/pre-html.cc (main),
5454 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5455 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5456 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5457 (main), src/utils/hpftodit/hpftodit.cc (main),
5458 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
5459 (main), src/utils/lookbib/lookbib.cc (main),
5460 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
5461 (main): Use stdout for -v.
5462 * src/roff/groff/groff.cc (run_commands),
5463 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
5464 to make direct printing to stdout possible.
5465 * src/roff/groff/pipeline.h: Updated.
5467 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
5468 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
5469 * src/utils/afmtodit/afmtodit.man: Updated.
5471 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
5472 (version): New function.
5474 * src/utils/addftinfo/addftinfo.man: Updated.
5476 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
5477 Fixing copyright dates.
5479 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
5482 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
5485 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
5487 2000-11-15 Werner LEMBERG <wl@gnu.org>
5489 In all programs, make -v return immediately with exit status 0 to
5490 be compliant with the GNU standard.
5492 * src/devices/grodvi/dvi.cc (main),
5493 src/devices/grohtml2/post-html.cc (main),
5494 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5495 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5496 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5497 (main), src/preproc/html2/pre-html.cc (main),
5498 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5499 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5500 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5501 (main): Implement it.
5504 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
5505 and postprocessors to the -v option.
5507 * src/roff/grog/grog.pl: Implement -v.
5508 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
5509 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5511 * src/roff/nroff/nroff.sh: Implement -v.
5512 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
5513 * src/roff/nroff/nroff.man: Updated.
5515 * src/preproc/eqn/main.cc (main): Fix comment typo.
5517 * MORE.STUFF: Added info about djgpp port of grap.
5519 2000-11-14 Werner LEMBERG <wl@gnu.org>
5521 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
5522 mode (or rather, implemented non-compatibility mode).
5523 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5525 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
5526 replacing it -- we don't find gxditview otherwise.
5527 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
5529 * src/preproc/pic/depend: Removed. Unnecessary.
5531 Implemented dummy keyword `solid' in pic for compatibility with
5534 * lex.cc (lookup_keyword): Added `solid'.
5535 * pic.y: Added SOLID with dummy rule.
5536 * pic.cc, pic_tab.h: Regenerated.
5537 * doc/pic.ms: Updated.
5539 2000-11-13 Werner LEMBERG <wl@gnu.org>
5541 For security reasons, don't use the current directory but the home
5542 directory while searching and scanning troffrc and troffrc-end.
5543 Similarly, replace the current directory with the home directory
5546 * Makefile.in (fontpath, tmacpath): Remove current directory.
5548 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
5549 two parameters `add_home' and `add_current'.
5550 (search_path::~search_path, search_path::command_line_dir,
5551 search_path::open_file): Remove tests for `dirs' being zero.
5552 * src/include/searchpath.h: Adjust.
5553 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
5555 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
5557 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
5558 * src/roff/troff/input.cc: Use `mac_path', initialized with
5560 (process_startup_file): Set `mac_path' to `safer_macro_path'.
5561 * src/roff/troff/env.cc: Use `mac_path'.
5563 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
5565 * NEWS, man/roff.man, src/roff/troff/troff.man,
5566 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
5569 2000-11-12 Werner LEMBERG <wl@gnu.org>
5571 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
5573 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
5574 * configure.in: Fix typo in comment.
5575 * configure: Regenerated.
5577 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
5580 2000-11-08 Werner LEMBERG <wl@gnu.org>
5582 Add system tmac directory (/usr/local/lib/groff/site-tmac).
5584 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
5585 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
5588 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
5589 * tmac/Makefile.sub (install_data): Create
5590 $(systemtmacdir) and $(localtmacdir).
5591 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
5592 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
5593 NEWS, doc/groff.texinfo: Updated and minor fixes.
5595 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
5596 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
5597 $(systemtmacdir) since the wrapper files are platform-dependent.
5599 2000-11-01 Werner LEMBERG <wl@gnu.org>
5601 * doc/groff.texinfo: Fix typo.
5603 2000-10-26 Werner LEMBERG <wl@gnu.org>
5605 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
5606 tmac.doc.old -> doc-old.tmac
5607 tmac.an.old -> an-old.tmac
5609 * tmac/tmac.*: Moved to ...
5610 * tmac/*.tmac: this.
5611 * tmac/man.local: Fix comment.
5612 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
5613 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
5614 Added some `FILES' sections. More use of @...@ directives. Other
5616 * arch/djgpp/README, font/devutf8/NOTES: Updated.
5617 * doc/homepage.ms, doc/groff.texinfo: Updated.
5618 * man/groff.man, man/roff.man: Updated.
5619 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
5620 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5621 src/devices/grotty/grotty.man: Updated.
5622 * src/preproc/pic/pic.man: Updated.
5623 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
5624 instead of -mdoc.old.
5625 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
5626 * src/roff/nroff/nroff.man: Updated.
5629 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
5631 * tmac/mm.diff: Removed -- it has no use now since the mm package
5634 * tmac/*: Removed trailing spaces.
5636 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
5637 the tmac subdirectory also).
5639 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
5640 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
5641 stuff since it is no longer needed.
5643 * README, PROBLEMS: Updated.
5645 2000-10-25 Werner LEMBERG <wl@gnu.org>
5647 Invert current behaviour: Search first FOOBAR.tmac, then
5650 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
5651 (open_mac_file, macro_source): Implement it.
5652 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
5653 doc/groff.texinfo, NEWS: Document it.
5655 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
5656 Small documentation improvements.
5658 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
5661 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
5663 2000-10-24 Werner LEMBERG <wl@gnu.org>
5665 Add local tmac directory (groff/site-tmac).
5667 * Makefile.in: Add $(localtmacdir).
5668 (uninstall_dirs): Add $(localtmacdir).
5669 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
5670 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
5671 in $(localtmacdir). Create $(localtmacdir).
5672 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
5673 Updated and minor fixes.
5675 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
5677 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
5679 2000-10-23 Werner LEMBERG <wl@gnu.org>
5681 Move hyphen.us to tmac directory.
5683 * src/roff/troff/hyphen.us: Removed.
5684 * src/tmac/hyphen.us: Added.
5685 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
5687 Change installation structure for data files from .../groff/... to
5688 .../groff/<version><revision>/... to be conform with other GNU
5691 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
5692 doc/Makefile: Implement it.
5693 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
5694 * configure: Updated.
5695 * arch/djgpp/README, font/devutf8/NOTES: Use it.
5696 * NEWS: Document it.
5697 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
5698 @MACRODIR@ instead of hard-coded directories.
5700 2000-10-22 Werner LEMBERG <wl@gnu.org>
5702 Implement $GROFF_BIN_PATH environment variable (which defaults to
5703 $bindir) used for child programs of groff and similar wrappers.
5705 * gendefs.sh: Improve documentation.
5706 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
5707 src/preproc/eqn/Makefile.sub (neqn),
5708 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
5709 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
5711 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
5712 $GROFF_PATH__ (the latter for communication with troff).
5713 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
5715 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
5716 doc/groff.texinfo: Document it.
5718 * doc/groff.texinfo: Improve documentation of troff's -a option.
5720 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
5722 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
5723 non-intrusive eol marker.
5724 (troff_output_file::determine_line_limits): New function.
5725 (troff_output_file::draw): Use it.
5726 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
5727 output_pending_lines() instead of output_line().
5728 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
5729 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
5730 createImage): Small fixes.
5732 2000-10-14 Werner LEMBERG <wl@gnu.org>
5734 Replace tmac.safer with a real secure solution.
5736 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
5737 system_request, pipe_output): Disable requests if in safer mode.
5738 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
5739 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
5740 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
5741 doc/groff.texinfo, src/roff/groff/groff.man,
5742 src/roff/troff/troff.man, arch/djgpp/README: Updated.
5744 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
5745 (resource_manager::output_prolog): Replace setenv() with putenv().
5747 2000-10-09 Werner LEMBERG <wl@gnu.org>
5749 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
5750 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
5751 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
5752 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
5753 compilation errors with some compilers. It seems that this code
5754 is no longer necessary -- if yes, it is easy to add some #ifdef's
5755 for that particular old-fashioned compiler.
5757 * MORE.STUFF: Added info about Meta-tbl.
5759 * doc/groff.texinfo: Added more info about `.if "..."..."'.
5761 2000-10-07 Werner LEMBERG <wl@gnu.org>
5763 Adding a new escape sequence \B'...': If the string between
5764 the delimiters is a valid numeric expression, return the character
5765 `1', and `0' otherwise. This is an analogon to \A.
5767 * src/roff/troff/input.cc (do_expr_test): Implement it.
5768 (token::next): Use it.
5769 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
5771 * tmac/tmac.trace: Made independent from escape character.
5773 2000-10-06 Werner LEMBERG <wl@gnu.org>
5775 Adding a new request .dei: define indirect. The first and second
5776 parameter of .dei are taken from string registers instead directly;
5777 this very special request is needed to make tmac.trace independent
5778 from the escape character (which might even be disabled).
5780 * src/roff/troff/input.cc (do_define_macro): Implement it.
5781 (define_macro_indirect): New function.
5782 (init_input_requests): Use it.
5784 Adding two requests .ecs and .ecr: Save and restore the escape
5785 character. These two requests are needed to make tmac.trace
5786 independent from the escape character (which might even be
5789 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
5791 (init_input_requests): Use it.
5793 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5795 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
5797 Adding a new option -P and new environment variable GROPS_PROLOGUE
5798 to grops, selecting a different prologue file (minor modifications
5801 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
5802 src/devices/grops/ps.cc (main): Implement it.
5803 * src/devices/grops/grops.man, NEWS: Document it.
5805 2000-09-22 Werner LEMBERG <wl@gnu.org>
5807 * INSTALL: Add info about selecting paper format.
5809 2000-09-21 Werner LEMBERG <wl@gnu.org>
5811 * src/roff/troff/input.cc (main): Fixing compiler warning.
5812 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
5813 strings.h from the former to the latter.
5814 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
5815 stuff from the former to the latter.
5817 2000-09-11 Werner LEMBERG <wl@gnu.org>
5819 Implementing two new requests .tm1 and .tmc: The former is similar
5820 to .tm but can output leading spaces; its syntax is similar to
5821 defining a string, i.e., a `"' can be used to mark the beginning of
5822 the string to be written to stderr: `.tm1 " test'. The latter is
5823 similar to .tm1 but doesn't write out a final newline character.
5825 * src/roff/troff/input.cc (terminal1, terminal_continue,
5826 do_terminal): New functions.
5827 (init_input_requests): Use them.
5828 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5830 2000-09-09 Werner LEMBERG <wl@gnu.org>
5832 * tmac/groff_mdoc.samples.man: Small fixes.
5834 2000-09-08 Werner LEMBERG <wl@gnu.org>
5836 * tmac/groff_mdoc.man: Fixing typo.
5838 2000-09-02 Werner LEMBERG <wl@gnu.org>
5840 Implementing a .nop request which does nothing.
5842 * src/roff/troff/input.cc (nop_request): New function.
5843 (init_input_requests): Use it.
5844 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5846 2000-09-01 Werner LEMBERG <wl@gnu.org>
5848 * doc/groff.texinfo: Added some comments.
5850 2000-08-30 Werner LEMBERG <wl@gnu.org>
5852 * src/roff/troff/TODO: Updated.
5854 2000-08-25 Werner LEMBERG <wl@gnu.org>
5856 * doc/groff.texinfo: Fix comment how to compile the DVI file.
5858 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
5860 * font/devps/generate/Makefile (SHELL): Define explicitly to
5861 "/bin/sh", for non-Unix platforms.
5862 (extraclean): Use a more portable "" quoting instead of a
5863 backslash (which doesn't work on DOS/Windows).
5865 * font/devlj4/generate/Makefile (extraclean): Ditto.
5867 * font/devdvi/generate/Makefile (extraclean): Ditto.
5869 2000-08-25 Werner LEMBERG <wl@gnu.org>
5871 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
5872 src/roff/troff/troff.man: Document Eli's latest changes.
5874 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
5876 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
5877 macro file names of the form NAME.tmac as well as tmac.NAME.
5879 2000-08-25 Werner LEMBERG <wl@gnu.org>
5881 * src/include/posix.h: Remove definition of FILENAME_MAX.
5883 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
5884 `sys_fatal' and `stop' function().
5886 * test-groff: Updated.
5888 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
5890 Added the new troff command .output <arg> to suppress output (while
5891 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
5892 registers (for passing the output dimensions to the output device).
5894 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
5896 * src/roff/troff/node.h, src/roff/troff/node.cc
5897 (troff_output_file::really_print_line,
5898 ascii_output_file::really_print_line,
5899 supress_output_file::really_print_line): Use `width' parameter.
5900 (troff_output_file::really_on, troff_output_file::really_off,
5901 output_file::on, output_file::off, real_output_file::on,
5902 real_output_file::off, real_output_file::really_on,
5903 real_output_file::really_off): New functions.
5904 (real_output_file:public output_file): New variable `output_on'.
5905 (real_output_file::begin_page, real_output_file::copy_file,
5906 real_output_file::transparent_char, real_output_file::print_line):
5908 (real_output_file::print_line): Use check_output_limits.
5909 * src/roff/troff/reg.h, src/roff/troff/request.h,
5910 src/roff/troff/input.cc (assign_registers): New function to remove
5912 (do_ps_file): Use it.
5913 (check_output_limits, reset_output_registers, output_request,
5914 init_output_requests): New functions.
5915 (init_input_requests): Updated.
5917 Added new grohtml2 device and html2 preprocessor (coding
5918 not yet finished) which will eventually replace grohtml.
5920 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
5922 * src/include/htmlindicate.h, src/include/htmlindicate
5923 (html_begin_suppress, html_end_suppress): New functions.
5924 * src/preproc/tbl/main.cc: Use it.
5925 * src/roff/groff/groff.cc: Add support for html2 device (which will
5926 automatically invoke the html2 preprocessor).
5927 * src/roff/troff/input.cc (is_html2): New variable.
5928 * src/roff/troff/troff.h, src/roff/troff/env.h,
5929 src/roff/troff/env.cc (environment::add_html_tag): New function
5931 (environment::do_break): Use it.
5932 * font/devhtml2/*: New files.
5933 * src/devices/grohtml2: New device.
5934 * src/preproc/html2: New preprocessor.
5935 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
5937 2000-08-23 Werner LEMBERG <wl@gnu.org>
5939 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
5941 2000-08-22 Werner LEMBERG <wl@gnu.org>
5943 * src/include/lib.h: Provide a fix for IRIX to not include
5946 2000-08-18 Werner LEMBERG <wl@gnu.org>
5948 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
5949 since some non-GNU sed programs can't handle null regexps.
5950 * configure, src/preproc/eqn/Makefile.sub,
5951 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
5953 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
5954 bug (string.h and strings.h are both needed according to latest
5957 * MORE.STUFF: Added info about unroff and troffcvt.
5959 2000-08-08 Werner LEMBERG <wl@gnu.org>
5961 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
5964 * tmac/tmac.man.old: Remove unused number register.
5966 * tmac.doc: Minor documentation fix.
5968 2000-08-07 Paul Eggert <eggert@twinsun.com>
5970 * src/roff/groff/pipeline.c (is_system_shell):
5971 Fix typo: "monocased_shell" no longer exists.
5973 2000-08-07 Paul Eggert <eggert@twinsun.com>
5975 Remove FILENAME_MAX limits.
5977 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
5978 that the argument length is less than FILENAME_MAX.
5979 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
5980 Use struct hack to allocate and free file name.
5981 (struct xtmpfile_list): fname is now part of the structure,
5982 not a pointer to another string.
5984 2000-08-07 Tom Schmidt <tschmidt@micron.com>
5986 * src/include/posix.h: Add a default value for FILENAME_MAX.
5988 2000-08-06 Paul Eggert <eggert@twinsun.com>
5990 Add support for new BSD-style man pages (with ".Dd" instead of
5991 ".TH"), so that "groff -man" understands both styles, even
5992 when running "groff -man" on a host whose system man page
5993 macros don't support ".Dd".
5995 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5996 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5997 in case the system man macros don't define Dd or TH.
5999 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
6000 * tmac/tmac.an: New one-line file.
6001 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
6003 2000-08-06 Werner LEMBERG <wl@gnu.org>
6005 * src/roff/troff/troff.man: Fixing typos.
6007 Version 1.16.1 released
6008 =======================
6010 2000-07-31 Werner LEMBERG <wl@gnu.org>
6012 Preparing release 1.16.1.
6014 * REVISION: Revision number set to 1.
6015 * MORE.STUFF: Added info about port to DOS.
6016 * NEWS, win32-diffs: Updated.
6018 * src/include/nonposix.h: Remove first line -- this file is used
6021 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
6024 2000-07-30 Werner LEMBERG <wl@gnu.org>
6026 * doc/texinfo.tex: Update to latest version.
6028 2000-06-28 Paul Eggert <eggert@twinsun.com>
6030 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
6031 commands that fail. Don't assume that "export a=b" is valid shell
6032 syntax. This is needed for Solaris 2.5.1.
6034 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
6035 comment about missing Solaris headers.
6037 * PROBLEMS: Add section about problems with Sun Make and VPATH.
6039 2000-06-25 Werner LEMBERG <wl@gnu.org>
6041 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
6044 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
6046 * win32-diffs: Updated.
6047 * README.WIN32: Added CRs to make all Windows editors happy.
6049 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
6050 src/roff/groff/pipeline.c).
6052 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
6054 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
6055 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
6057 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
6059 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
6060 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
6062 (main): Support non-Posix systems with several different styles of
6063 slash characters in file names.
6065 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
6066 (main) [SET_BINARY]: Switch stdin into binary mode.
6068 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
6069 (main): Support file names with several possible slash-type
6070 characters, as given by DIR_SEPS[] in nonposix.h.
6071 (main) [__MSDOS__]: If renaming the temporary index file fails
6072 because it has more than one dot in its trunk, replace the dot
6073 with an underscore and try again.
6074 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
6076 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
6078 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
6079 (File::File): Open the input file in binary mode. Strip CR
6080 characters from each CR-LF pair.
6081 (xbasename): Support file names with several possible slash-type
6082 characters, as given by DIR_SEPS[] in nonposix.h.
6084 * src/include/Makefile.sub (HDRS): Add nonposix.h.
6086 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
6087 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
6088 [!_POSIX_VERSION]: Define for traditional Unix systems.
6089 (real_output_file::real_output_file): Remove the MSVC-specific
6090 call to popen, use instead POPEN_WT, appropriately defined on
6091 nonposix.h. #include nonposix.h.
6092 (real_output_file::~real_output_file): Remove the MSVC-specific
6093 call to pclose, a suitable macro is now defined on nonposix.h.
6094 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
6095 and WEXITSTATUS instead of assuming traditional Unix
6096 interpretation of the status returned by pclose.
6098 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
6099 call to popen, use POPEN_RT instead (appropriately defined on
6100 nonposix.h). #include nonposix.h.
6101 (ps_bbox_request): Open the PostScript file in binary mode.
6102 Close the file after processing it.
6103 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
6106 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
6107 A version of run_pipeline that doesn't use `fork'.
6108 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
6109 (system_shell_name, system_shell_dash_c)
6110 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
6111 the ugliness of testing DOS/Windows file names for equality, and
6112 support both stock shells and ports of Unix shells.
6114 * src/roff/groff/groff.cc: #include nonposix.h.
6115 (BSHELL): Definition moved to nonposix.h.
6116 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
6117 instead of a literal "-c".
6118 (xbasename): Support file names with several possible slash-type
6119 characters, as given by DIR_SEPS[] in nonposix.h.
6120 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
6123 * src/preproc/soelim/soelim.cc: #include nonposix.h.
6124 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
6126 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
6129 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
6131 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
6134 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
6136 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
6137 P_tmpdir is defined, use it instead of the literal "/tmp".
6138 (remove_tmp_files, add_tmp_file): New functions.
6139 (xtmpfile): Record temporary files and register an atexit function
6140 to delete them explicitly, instead of relying on the OS to do
6141 that, which doesn't work on non-Unix systems.
6143 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
6144 (search_path::search_path): Use PATH_SEP instead of a literal
6146 (search_path::command_line_dir): Ditto.
6147 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
6148 to support non-Posix systems.
6150 * src/libs/libbib/search.cc: #include nonposix.h.
6151 (search_list::add_file): Open the file in binary mode.
6153 * src/libs/libbib/linear.cc: #include nonposix.h.
6154 (file_buffer::load): Remove \r characters preceding \n from the
6157 * src/libs/libbib/index.cc: #include nonposix.h.
6158 (make_index_search_item): Open index_filename in O_BINARY mode.
6159 (index_search_item_iterator::get_tag): Ditto. Remove \r
6160 characters before \n characters.
6161 (index_search_item::check_files): Open files in binary mode.
6162 (index_search_item::munge_filename): Support DOS-style file names
6163 with backslashes and drive letters, use IS_ABSOLUTE.
6165 * src/devices/grops/ps.cc: #include nonposix.h.
6166 (main) [SET_BINARY]: Switch stdout to binary mode.
6168 * src/devices/grolj4/lj4.cc: #include nonposix.h.
6169 (main) [SET_BINARY]: Switch stdout to binary mode.
6171 * src/devices/grolbp/lbp.cc: #include nonposix.h
6172 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
6174 * src/devices/grodvi/dvi.cc: #include nonposix.h.
6175 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
6177 (main) [SET_BINARY]: Switch stdout to binary mode.
6178 [_MSC_VER]: Remove an explicit call to _setmode.
6180 * src/include/nonposix.h: New file.
6182 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
6183 operation when building with DJGPP.
6184 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
6185 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
6188 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
6190 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
6191 etc. can include a semi-colon on DOS/Windows.
6192 (depend.temp): Use depend1.temp instead of depend.temp1, to
6193 prevent files from overerwiting each other on 8+3 filesystems.
6195 * gendef.sh (t): Change definition to work with DOS/Windows.
6197 doc/groff.texinfo: Apart of some typo corrections, I also changed
6198 some index entris, to make them more non-ambiguous, and also put
6199 @ignore around some parts that are not yet written, to allow the
6200 Info output be readable.
6202 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
6204 Replaced specific checks for function declarations with a generic
6205 routine taken from GNU bfd.
6207 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
6208 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
6209 * configure.in: Use it.
6210 * src/devices/grolbp/lbp.cc, src/include/lib.h,
6211 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
6212 src/roff/groff/groff.cc: Use it.
6213 * Makefile.in, configure: Updated.
6215 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
6217 * src/devides/grolbp/lbp.h: Removed unused variables.
6219 2000-05-31 Keith Thompson <kst@sdsc.edu>
6221 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
6224 2000-05-31 Werner LEMBERG <wl@gnu.org>
6226 * aclocal.m4 (GROFF_SRAND): New function to test the return value
6227 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
6228 * configure.in: Use it.
6229 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
6230 * configure, Makefile.in: Updated.
6232 * configure.in: Add test for strncasecmp().
6233 * src/include/lib.h: Use it.
6235 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
6237 * src/preproc/grn/Makefile.sub: Add MLIB.
6239 2000-05-29 Nix <nix@esperi.demon.co.uk>
6241 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
6243 2000-05-29 Werner LEMBERG <wl@gnu.org>
6245 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
6247 * PROBLEMS: Small update.
6249 * src/devices/grolbp/lbp.cc: Various small fixes.
6251 2000-05-28 Keith Thompson <kst@sdsc.edu>
6253 * src/roff/nroff/nroff.sh: Fix main loop syntax.
6255 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
6257 2000-05-25 Werner LEMBERG <wl@gnu.org>
6259 * man/roff.man: Removed unused macro.
6261 2000-05-24 Werner LEMBERG <wl@gnu.org>
6263 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
6264 This is needed e.g. if you do
6265 `make distclean; ./configure; make dist'.
6267 Version 1.16 released
6268 =====================
6270 2000-05-23 Werner LEMBERG <wl@gnu.org>
6272 Adding font CWI (constant width italic) to devdvi.
6274 * font/devdvi/CWI: New file.
6275 * font/devdvi/generate/Makefile: Add generating rule.
6276 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
6277 tmac/tmac.dvi: Use it.
6278 * NEWS: Announce it.
6280 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
6281 * font/devlj4/generate/Makefile: Cosmetic changes only.
6283 * man/groff.man: Removed most of the redundant description of
6284 special characters (which is in groff_char.man). Added font
6285 translation CB->CR for devdvi. Other minor fixes.
6287 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
6288 (registered) symbols.
6290 2000-05-22 Werner LEMBERG <wl@gnu.org>
6292 * doc/Makefile: Added rule for creating info files.
6294 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
6296 * font/devdvi/generate/Makefile: Fixed dependencies.
6298 * font/devps/*: Regenerated. Heavy changes for Bookman and
6299 NewCentury Schoolbook!
6300 * font/devps/generate/afmname: Will now run with GNU awk.
6301 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
6302 * font/devps/generate/Makefile: Cosmetic changes only.
6304 2000-05-21 Werner LEMBERG <wl@gnu.org>
6306 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
6307 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
6308 `.SS' now produces a heading with a smaller size than `.SH'.
6309 Completely formatted.
6310 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
6312 * man/groff.man: Improved table appearance. Use of `eo' request
6313 to reduce number of doubled backslashes in macro definitions.
6314 Replacing `\e' with `\(rs'. Other minor fixes.
6316 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
6317 to have correct line number.
6319 * INSTALL: Small improvement.
6321 2000-05-20 Bernd Warken <bwarken@mayn.de>
6323 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
6326 2000-05-19 Bernd Warken <bwarken@mayn.de>
6328 * man/groff.man: Complete update (with a lot of corrections by WL).
6330 2000-05-18 Werner LEMBERG <wl@gnu.org>
6332 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
6334 * font/*/*: Implement it.
6335 * man/groff_char.man, NEWS: Document it.
6337 * src/include/unix.h: Removed. It isn't used.
6339 * doc/groff.texinfo: Slight improvements.
6341 2000-05-17 Werner LEMBERG <wl@gnu.org>
6343 * README, win32-diffs: Small fixes and improvements.
6345 2000-05-16 Werner LEMBERG <wl@gnu.org>
6347 * FDL: New file (the Free Documentation License version 1.1).
6349 * doc/groff.texinfo: Added many start-up values for gtroff.
6350 Some structural improvements of the source code.
6352 2000-05-15 Werner LEMBERG <wl@gnu.org>
6354 * src/roff/troff/input.cc: Added small comment about troffrc-end.
6355 * src/roff/troff/troff.man: Added info about troffrc-end.
6357 2000-05-14 Werner LEMBERG <wl@gnu.org>
6359 * Makefile.in (EXTRADIRS): Fix typos.
6360 (dist): Handle deletion of old .tar.gz file correctly.
6361 (DISTDIRS): Include all tty output devices.
6363 * doc/groff.texinfo: Adding more cross references; countless other
6366 2000-05-13 Werner LEMBERG <wl@gnu.org>
6368 * MORE.STUFF: Added Robert Marks's utilities.
6370 2000-05-12 Werner LEMBERG <wl@gnu.org>
6372 Added win32 port contributed by Blake McBride
6373 <blake@florida-software.com>.
6375 * README.WIN32, win32-diffs: New files.
6378 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
6379 (tmove, tmove2): Added parentheses to avoid compiler warnings.
6380 (change): Removed unused variables.
6382 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
6383 (savebounds): Changed return value from `int' to `void'.
6384 * src/preproc/grn/hdb.cc: Ditto.
6386 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
6387 final backslash in comment to avoid compiler warning.
6389 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
6391 * doc/groff.texinfo: More fixes.
6393 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
6395 * tmac/tmac.doc: Documentation fix.
6397 2000-05-11 Werner LEMBERG <wl@gnu.org>
6399 * doc/groff.texinfo: Reading the source code shows up a lot of
6400 omissions and incorrect data... More conversion to @Deffn macros.
6402 2000-05-10 Werner LEMBERG <wl@gnu.org>
6404 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
6407 * src/roff/troff/request.h: Removing unused `no_break_flag'.
6409 2000-05-09 Werner LEMBERG <wl@gnu.org>
6411 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
6414 * doc/groff.texinfo: Extended history section. More conversion to
6415 @Deffn macros. More .tr documentation.
6417 2000-05-07 Werner LEMBERG <wl@gnu.org>
6419 * doc/groff.texinfo: Completed tab section. Added info about
6422 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
6424 * PROBLEMS: Describe configure script fix for OS/390 Unix.
6426 2000-05-05 Werner LEMBERG <wl@gnu.org>
6428 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
6430 * NEWS: Document it.
6432 * man/troff.man: Minor optical improvements.
6434 2000-05-03 Werner LEMBERG <wl@gnu.org>
6436 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
6438 * font/*/*: Implement it.
6439 * man/groff_char.man, NEWS: Document it.
6441 2000-05-02 Werner LEMBERG <wl@gnu.org>
6443 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
6445 * NEWS: Document the three new man pages.
6447 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
6448 * configure: Updated.
6450 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
6452 2000-05-01 Werner LEMBERG <wl@gnu.org>
6454 Added grap support to grog.
6456 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
6457 * src/roff/grog/grog.man: Document it.
6459 * doc/groff.texinfo, NEWS: Add info about grap support.
6461 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
6462 (with slight fixes by me).
6464 * tmac/groff_tmac.man: New file documenting tmac mechanism.
6465 * tmac/Makefile.sub: Add groff_tmac.man.
6466 * man/roff.man: New file giving overview of roff system.
6467 * man/troff.man: A short reference of troff.
6468 * man/Makefile.sub: Add roff.man and troff.man.
6470 2000-04-30 Werner LEMBERG <wl@gnu.org>
6472 Added grap support to groff.
6474 * src/roff/groff/groff.cc: Implement it.
6475 * src/roff/groff/groff.man: Document it.
6477 * src/devices/grotty/grotty.man: Add cp1047 device.
6478 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
6480 * src/roff/groff/groff.man: Ditto.
6481 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
6482 * doc/groff.texinfo: Ditto.
6484 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
6487 2000-04-29 Werner LEMBERG <wl@gnu.org>
6489 * man/groff_char.man: Add `pc' glyph.
6490 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
6491 * tmac/tmac.tty: Add `pc' glyph.
6492 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
6493 we use cp1047 output device.
6495 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
6496 there are still hardcoded latin1->unicode values in utf8's font
6498 * configure: Updated.
6499 * NEWS: Minor clarification. Updated.
6501 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
6504 2000-04-28 Werner LEMBERG <wl@gnu.org>
6506 Adding EBCDIC code page 1047.
6508 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
6509 font/devcp1047/DESC.proto: New files.
6511 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
6512 either ascii/latin1 or cp1047.
6513 * Makefile.in: Use it.
6514 * configure: Updated.
6516 Replacing and/or adding `md' (mathdot) glyph with `pc'
6517 (periodcentered) in all text fonts.
6519 * font/*/*: Change it.
6521 2000-04-27 Werner LEMBERG <wl@gnu.org>
6523 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
6525 * configure.in: Add check for strings.h.
6526 * src/include/driver.h: Use HAVE_STRINGS_H.
6527 * src/devices/grolbp/lpb.cc: Remove string.h.
6529 * src/include/groff-getopt.h: New file. It will be used instead of
6530 getopt.h (to be included in lib.h) to avoid endless problems with
6531 picky C++ compilers.
6532 * src/include/lib.h: Use groff-getopt.h.
6533 * src/include/Makefile.sub: Updated.
6535 * configure: Updated.
6536 * Makefile.in: Updated.
6538 * NEWS: Mention EBCDIC support.
6540 2000-04-26 Werner LEMBERG <wl@gnu.org>
6542 * TODO: Some additions.
6544 2000-04-25 Werner LEMBERG <wl@gnu.org>
6546 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
6549 2000-04-23 Werner LEMBERG <wl@gnu.org>
6551 * src/roff/troff/troff.man: Minor fixes.
6553 2000-04-22 Werner LEMBERG <wl@gnu.org>
6555 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
6556 `.T' string register and the incompatible definition of the `.T'
6557 number register (compared to Unix troff).
6559 * man/groff_char.man: Add some missing characters.
6560 * font/devutf8/NOTES: Update.
6562 2000-04-21 Werner LEMBERG <wl@gnu.org>
6564 * src/include/htmlindicate.h, src/include/lib.h,
6565 src/include/posix.h: Fix copyright.
6567 * src/include/Makefile.sub: Update.
6569 2000-04-20 Werner LEMBERG <wl@gnu.org>
6571 * src/roff/troff/input.cc (input_char_description): Removing
6572 superfluous space char.
6574 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
6576 * doc/groff.texinfo: Document EBCDIC.
6578 2000-04-19 Werner LEMBERG <wl@gnu.org>
6580 Introducing `shc' as the glyph name for the soft hyphen character.
6582 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
6583 font/devlatin1/R.proto: Use it.
6587 2000-04-18 Werner LEMBERG <wl@gnu.org>
6589 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
6590 dependency on ASCII order.
6592 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
6594 * src/libs/libgroff/illegal.c: Added EBCDIC table.
6595 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
6597 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
6598 to increase portability.
6600 2000-04-15 Werner LEMBERG <wl@gnu.org>
6602 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
6603 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
6604 the generic `\n' if under OS/390 Unix.
6606 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
6608 * configure: Regenerated.
6610 2000-04-14 Werner LEMBERG <wl@gnu.org>
6612 * doc/groff.texinfo: More conversions to @Deffn.
6614 2000-04-12 Werner LEMBERG <wl@gnu.org>
6616 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
6619 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
6621 2000-04-10 Werner LEMBERG <wl@gnu.org>
6623 * doc/groff.texinfo: More conversions to @Deffn.
6625 2000-04-08 Werner LEMBERG <wl@gnu.org>
6627 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
6628 Updated to latest version (glibc 2.1.3).
6630 2000-04-07 Werner LEMBERG <wl@gnu.org>
6632 * doc/Makefile (clean): Include more index files.
6633 Add rule texinfo->dvi.
6635 2000-04-05 Werner LEMBERG <wl@gnu.org>
6637 * doc/groff.texinfo: Added new index `op' for operators. More
6638 info on end of sentence characters. More use of @Deffn.
6640 2000-03-30 Werner LEMBERG <wl@gnu.org>
6642 * */*.man: Adding a note that a whitespace can be inserted between
6643 a command line option and its parameter -- we are using GNU getopt.
6645 * src/roff/groff/groff.man: Add example of `-m mandoc'.
6647 2000-03-28 Werner LEMBERG <wl@gnu.org>
6649 Correct anachronism of calling the man macro file with `-man'
6650 instead of `-m man' etc.
6652 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
6653 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
6654 load tmac.<package>.
6656 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
6660 * doc/groff.texinfo: Updated.
6662 * tmac/groff_man.man: Copyright added.
6664 2000-03-27 Werner LEMBERG <wl@gnu.org>
6666 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
6667 typeset the request resp. escape name with a tt font -- due to a
6668 bug in texinfo.tex it is necessary to use the `-e' switch with
6671 Improving info about usage of groff units.
6675 2000-03-20 Werner LEMBERG <wl@gnu.org>
6677 * doc/groff.texinfo: Added section about man macro package
6678 (I've basically taken groff_man.man). Introducing new indices `ma'
6679 for macros/strings and `gl' for glyph names. Other minor fixes.
6681 * tmac/groff_man.man: Fixed some typos.
6683 2000-03-19 Werner LEMBERG <wl@gnu.org>
6685 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
6688 * doc/texinfo.tex: New file.
6690 2000-03-18 Werner LEMBERG <wl@gnu.org>
6692 * doc/groff.texinfo: Improved section on number registers. Other
6695 2000-03-16 Werner LEMBERG <wl@gnu.org>
6697 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
6700 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
6701 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
6702 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
6703 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
6705 * src/preproc/grn/grn.man: Better synopsis; added copyright.
6707 * src/roff/grog/grog.man: Updated copyright date.
6709 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
6711 * configure.in: Added test for strdup.
6713 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
6716 Replaced dynamic allocation of arrays `[...]' with `new' operator.
6720 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
6722 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
6724 2000-03-11 Werner LEMBERG <wl@gnu.org>
6726 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
6728 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
6729 * src/include/lib.h: Remove some spaces.
6731 2000-03-10 Werner LEMBERG <wl@gnu.org>
6733 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
6734 initializers from arguments (some compilers don't like this).
6736 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
6738 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
6739 used by pic and eqn to tell grohtml where the graphic regions start
6741 * src/libs/libgroff/Makefile.sub: Use it.
6742 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
6743 graphic_start() and graphic_end() from htmlindicate.cc.
6745 2000-03-09 Werner LEMBERG <wl@gnu.org>
6747 * tmac/tmac.safer: Will now work correctly in compatibility mode.
6748 * tmac/groff_man.man: More fixes.
6750 2000-03-08 Werner LEMBERG <wl@gnu.org>
6752 * doc/Makefile: Added texput.log to the `clean' target.
6753 * doc/groff.texinfo: Added info about delimiters for escapes.
6755 2000-03-08 Bernd Warken <bwarken@mayn.de>
6757 * src/preproc/pic/pic.man: Add info on conversion of pic images to
6758 other graphic formats.
6760 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
6762 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
6763 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
6764 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
6767 2000-03-07 Werner LEMBERG <wl@gnu.org>
6769 * doc/groff.texinfo: Spelling fixes.
6771 2000-03-06 Werner LEMBERG <wl@gnu.org>
6773 * tmac/groff_man.man: Completely revised to cover everything in
6776 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
6777 Other minor fixings.
6778 * src/roff/troff/env.cc (environment_copy): Improve error message and
6780 * src/roff/troff/TODO: Updated.
6782 * doc/Makefile: Bug fixes -- this is still provisional, though...
6784 * tmac/eqnrc: Small fixes.
6786 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
6788 Adding a request `evc' to copy environments.
6790 * src/roff/troff/env.cc (environment::copy, environment_copy):
6792 * src/roff/troff/env.h: Add prototype.
6794 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
6796 Adding strsep() -- Solaris 8 doesn't have it.
6798 * configure.in: Test it.
6799 * src/devices/grolbp/lbp.cc: Add code.
6801 2000-03-05 Werner LEMBERG <wl@gnu.org>
6803 * src/roff/troff/div.cc (macro_diversion::output,
6804 top_level_diversion::output): Fixing an incompatibility with
6805 original troff: \x'0' updates the .a register also. Thanks to
6806 <Andries.Brouwer@cwi.nl> for pointing this out.
6807 * doc/groff.texinfo: Document it.
6809 * Makefile.in: Create Makefile.dep if necessary before calling the
6810 submake process to avoid warning about nonexistent file.
6812 * NEWS, PROJECTS: Updated.
6814 2000-03-04 Werner LEMBERG <wl@gnu.org>
6816 * tmac/troffrc: Add tmac.lbp.
6818 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
6820 * tmac/tmac.lbp: New file.
6821 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
6824 2000-03-03 Werner LEMBERG <wl@gnu.org>
6826 * Makefile.in: Fixing $(subdir).
6828 * README, NEWS: Small fixes.
6830 * test-groff: Adding path to grolbp.
6832 * configure.in: The (new) file src/xditview/Imakefile.in will be
6833 also configured -- it is now possible to build gxditview in a
6834 directory different from $srcdir.
6836 2000-03-02 Blake McBride <blake@florida-software.com>
6838 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
6840 * MORE.STUFF: Added website of bell labs and info about plot2dev.
6842 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
6844 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
6847 2000-02-29 Werner LEMBERG <wl@gnu.org>
6849 Adding GNU getopt to the groff distribution.
6851 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
6853 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
6854 * aclocal.a4: Remove GROFF_GETOPT function.
6855 * configure.in, Makefile.in, PROBLEMS: Update.
6856 * src/include/lib.h: Replace getopt tests with getopt.h.
6857 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
6859 * doc/groff.texinfo: Further checking/updating. Adding more index
6862 * man/groff_out.man: Fix nroff mode activation (for emacs).
6863 * man/groff_font.man: Add missing ligature.
6865 2000-02-28 Werner LEMBERG <wl@gnu.org>
6867 * doc/groff.texinfo: Further checking/updating. Adding more index
6870 * src/devices/grolbp/grolbp.man: Added a comment line at the
6871 beginning of the file (similar to shell scripts) which indicates
6872 that `tbl' should be used as a preprocessor.
6874 2000-02-27 Blake McBride <blake@florida-software.com>
6876 Adapting groff to MS Visual C++ 6.0 compiler (tested with
6877 Windows NT 4.0). Uses _MSC_VER define where necessary.
6879 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
6880 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
6881 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
6882 src/include/lib.h, src/libs/libgroff/errarg.cc,
6883 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
6884 src/preproc/refer/label.y, src/preproc/refer/label.cc,
6885 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
6886 src/roff/troff/div.cc, src/roff/troff/env.cc,
6887 src/roff/troff/input.cc, src/roff/troff/node.cc,
6888 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
6889 if_to_a() to avoid name clashes.
6890 * src/include/posix.h: Don't use unistd.h.
6891 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
6892 clause for integrating non-Unix xtmpfile() code.
6893 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
6894 structure; use "rt" for popen() in pipe_source(); add getpid()
6896 * src/roff/troff/node.cc: Use special versions of popen() in
6897 real_output_file() and pclose() in ~real_output_file().
6899 2000-02-27 Werner LEMBERG <wl@gnu.org>
6901 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
6902 LBP-8 series laser printers). This code has been contributed by
6903 Francisco Andrés Verdú <pandres@dragonet.es>.
6905 * src/devices/grolbp/*: The grolbp output device.
6906 * font/devlpb/*: The font description files.
6907 * Makefile.in: Add grolpb and devlbp subdirectories.
6909 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
6910 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
6913 * doc/groff.texinfo: Further checking/updating. Adding more index
6918 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
6920 * man/groff_font.man: Adding info about obsolete DESC keywords.
6921 * src/devices/grolj4/grolj4.man: Documenting additional DESC
6924 2000-02-26 Werner LEMBERG <wl@gnu.org>
6926 * src/preproc/grn/grn.man: Added info about the gremlin file format
6927 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
6929 2000-02-25 Werner LEMBERG <wl@gnu.org>
6931 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
6932 friends to be non-integer.
6934 * src/preproc/grn/grn.man: Document it.
6936 * doc/groff.texinfo: Further checking/updating. Adding more index
6939 2000-02-24 Werner LEMBERG <wl@gnu.org>
6941 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
6942 line thicknesses to be integer multiples of this value.
6944 * src/preproc/grn/grn.man: Commenting out the -s option -- the
6945 corresponding code doesn't work (yet).
6947 * doc/groff.texinfo: Further checking/updating. Adding more index
6950 2000-02-23 Werner LEMBERG <wl@gnu.org>
6952 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
6953 specify line thickness instead of base units. The new default
6954 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
6955 thick lines respectively.
6957 Removed unused variable `prevval'.
6959 * src/preproc/grn/grn.man: Updated.
6961 2000-02-22 Werner LEMBERG <wl@gnu.org>
6963 * src/preproc/grn/main.cc: Slight formatting.
6965 * src/roff/groff/groff.man: Formatting fix.
6966 * src/preproc/grn/grn.man: Ditto.
6968 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
6970 * doc/groff.texinfo: Further checking/updating.
6972 2000-02-21 Werner LEMBERG <wl@gnu.org>
6974 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
6976 * test-groff: Added grn subdir to path.
6978 * doc/groff.texinfo: Some restructing and other small improvements.
6980 * src/roff/groff/groff.cc (help): Fixed info string.
6982 2000-02-20 Werner LEMBERG <wl@gnu.org>
6984 * doc/meref.me: Fix description of .GS request.
6986 * src/roff/troff/troff.man: Fixing typo.
6988 Adding the `grn' preprocessor for gremlin graphic files.
6990 * src/preproc/grn/*: This is the Berkeley distribution written by
6991 David Slattengren and Barry Roitblat, adapted to groff by Daniel
6992 Senderowicz and Werner Lemberg.
6994 * doc/grnexampl.{me,g}: A sample for grn.
6996 * Makefile.in: Added subdirectory entry for grn.
6998 * src/roff/groff/groff.cc: Added support for grn. It can be now
6999 called with the switch `-g'.
7001 * src/roff/groff/groff.man: Updated.
7003 * src/roff/grog/grog.{man,pl,sh}: Updated.
7007 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
7009 * src/include/lib.h: Added xtmptemplate and made xtmpfile
7010 parametrically polymorphic.
7012 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
7013 and the alterations to xtmpfile.
7014 xtmpfile can be requested to return the filename created
7015 and asked not to unlink the temp file. The default behaviour
7016 if parameters are absent is exactly the same as before.
7018 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
7020 A new request `length' is available which returns the length of a
7021 string in a number register:
7023 * src/roff/troff/input.cc (length_macro): Implement it.
7024 * src/roff/troff/input.cc (init_input_requests): Register it.
7026 2000-02-11 Werner LEMBERG <wl@gnu.org>
7028 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
7029 of the `substring' request.
7031 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
7034 * src/roff/troff/TODO, NEWS: Updated.
7036 2000-02-09 Werner LEMBERG <wl@gnu.org>
7038 * src/roff/groff/groff.man: Added an example.
7040 2000-02-06 Werner LEMBERG <wl@gnu.org>
7042 I've considerably modified the directory structure of the
7043 distribution to get a more vertical layout. For example, the number
7044 of top level directories has been reduced from 42 to 6.
7046 As a consequence, many changes, especially to the makefiles, were
7049 * The makefile variables `top_builddir' and `top_srcdir' have been
7050 introduced. Virtually all relative paths have been replaced with
7051 absolute ones using these two variables.
7053 * Dependencies (in the files `Makefile.dep') are no longer part of
7054 the distribution. Instead, they are created during a `make install'
7055 in the build directory.
7057 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
7058 make `top_srcdir' and `top_builddir' absolute.
7062 * Man pages now depend on the files `VERSION' and `REVISION'.
7064 * The added shell script `mkinstalldirs' will replace `mkdir' in
7067 * VERSION: Version number increased to 1.16.
7069 2000-02-04 Werner LEMBERG <wl@gnu.org>
7071 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
7073 * Makefile.in: Removed $(tmac_m) since it is no longer needed
7074 (after an update of the mm stuff).
7076 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
7078 2000-02-03 Werner LEMBERG <wl@gnu.org>
7080 The .psbb request will now also accept Mac PS images (i.e. using LF
7081 as the EOL character).
7083 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
7084 (with slight modifications).
7085 * troff/input.cc (do_ps_file): Use it.
7087 * test-groff: Add grohtml and grolj4 output devices to PATH.
7089 2000-01-30 Werner LEMBERG <wl@gnu.org>
7091 * NEWS, MORE.STUFF: Updated.
7093 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
7095 Add the `srand' command to pic.
7097 * pic/lex.cc, pic/pic.y: Implement it.
7098 * pic/pic.man: Document it.
7099 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
7101 2000-01-30 Werner LEMBERG <wl@gnu.org>
7103 Add a new request `.psbb'. This does exactly what the external
7104 program psbb did. It scans a PostScript image file for a
7105 %%BoundingBox comment and extracts the bounding box values (in
7106 PostScript units) which are then stored in the four new (read-only)
7107 number registers `llx', `lly', `urx', and `ury'.
7109 This will allow the usage of the .PSPIC macro without worrying
7110 about unsafe behaviour of groff, i.e., it will work without the
7111 `-U' switch of groff.
7113 * troff/input.cc: Implement it.
7114 * tmac/tmac.pspic: Use it.
7115 * troff/troff.man, grops/grops.man, NEWS: Document it.
7116 * psbb/*, Makefile.in: Remove it since it is no longer needed.
7118 This is bloody C code simply adapted from psbb.c! Any improvements
7121 2000-01-29 Werner LEMBERG <wl@gnu.org>
7123 * man/groff_font.man: Minor clarifications.
7127 2000-01-28 Werner LEMBERG <wl@gnu.org>
7129 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
7131 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
7133 * man/groff_font.man: Brought up to date regarding tcommand
7135 * libgroff/font.cc: Handle everything after `--' as a comment
7137 * devps/*: Added comment delimiter inside devps font files.
7139 2000-01-28 Werner LEMBERG <wl@gnu.org>
7141 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
7142 \fC...\fP (which now works as expected).
7144 * troff/troff.man: Fix typo.
7146 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
7148 Completed the pass_filenames implementation in troff.
7150 * libdriver/input.cc: Will read the new `F' tcommand.
7151 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
7152 * troff/input.cc: Use it.
7154 2000-01-26 Werner LEMBERG <wl@gnu.org>
7156 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
7157 font will now be updated even if an invalid font is selected.
7159 2000-01-24 Werner LEMBERG <wl@gnu.org>
7161 * doc/homepage.ms: Updated for new tmac.arkup.
7163 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
7165 * tmac/tmac.arkup: Cleanup.
7167 Added `\&' to .HTML macro to `leave vertical mode', so to say.
7169 Removed obsolete .LINK macro completely.
7171 The macros .URL, .FTP, and .MAILTO now accept a third argument which
7172 will be immediately appended to the second argument (to be used with
7173 punctuation, for example).
7175 Disabled .CDFTP macro temporarily for security reasons.
7177 * tmac/groff_markup.man: Complete revision for latest changes in
7178 tmac.arkup -- note that it does not yet format correctly with
7181 2000-01-23 Bruno Haible <haible@clisp.cons.org>
7183 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
7184 * devutf8/R.proto: Add mappings for wp, lh, rh.
7185 * devutf8/NOTES: Updated.
7187 2000-01-23 Werner LEMBERG <wl@gnu.org>
7189 * doc/groff.texinfo: Updated version/copyright info.
7191 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
7193 Added support for two new directives in device descriptions:
7194 `pass_filenames' (to pass the input file name to the output device)
7195 and `use_charnames_in_special' (to support e.g. accented characters
7196 in the `X' request).
7198 * include/font.h, troff/charinfo.h: Declare it.
7200 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
7202 * devhtml/DESC: Use it.
7204 * troff/input.cc: New function encoded_char.
7206 * troff/token.h: Add test for `specialness'.
7208 2000-01-21 Werner LEMBERG <wl@gnu.org>
7210 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
7211 mistake from the list of files to be installed.
7213 2000-01-18 Werner LEMBERG <wl@gnu.org>
7215 * README: Added info how to apply patches.
7217 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
7219 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
7221 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
7223 * troff/input.cc: Add support for troffrc-end.
7225 * tbl/main.cc: Altered to issue table-start and table-end special
7226 characters if using the html device.
7228 * devhtml/*: Modified font files to incorporate html encoding of
7231 * tmac/groff_markup.man: New file documenting tmac.arkup.
7233 * tmac/troffrc-end: New file. This is invoked after all user
7234 specified macros. Currently used by the html device to include
7235 tmac.html. Thus no need for users to specify -mhtml anymore.
7237 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
7238 (MAN7): Add groff_markup.man.
7240 * tmac/tmac.an, tmac/tmac.html: Small html updates.
7242 * tmac/troffrc: tmac.arkup will now be called for the html device.
7244 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
7245 extra device specific information about fonts.
7247 * doc/homepage.ms: New file. It is an example how an HTML home page
7248 could look like with grohtml.
7250 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
7252 2000-01-12 Bruno Haible <haible@clisp.cons.org>
7254 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
7257 * devutf8/NOTES: Updated.
7259 2000-01-08 Bruno Haible <haible@clisp.cons.org>
7261 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
7262 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
7263 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7264 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
7265 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
7266 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
7267 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
7268 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
7271 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
7273 2000-01-12 Fabrizio Polacco <fab@prosa.it>
7275 grolj4: Paper size will be searched case-insensitively.
7277 * include/lib.h: Add check for strcasecmp().
7278 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
7279 * configure.in: Check for strcasecmp().
7281 2000-01-11 Werner LEMBERG <wl@gnu.org>
7283 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
7286 2000-01-10 Werner LEMBERG <wl@gnu.org>
7288 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
7291 Add a new read-only register, `.Y', which contains the groff
7294 * troff/input.cc (init_input_requests): Define it.
7295 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
7296 * doc/groff.texinfo, troff/troff.man: Document it.
7298 * libgroff/Makefile.sub (version.cc): Add definition of
7299 `Version_string[]', consisting of `<major>.<minor>.<revision>'
7300 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
7301 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
7302 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
7303 troff/input.cc, pfbtops/pfbtops.c: Use it.
7305 2000-01-10 Fabrizio Polacco <fab@prosa.it>
7307 Add a revision scheme to the groff package.
7309 * REVISION: New file.
7310 * libgroff/Makefile.sub (version.cc): Use it to define
7311 `revision_string[]'.
7312 * grops/psrm.cc: Use revision_string (converted to an unsigned
7313 integer) in constructor of resource_manager.
7315 2000-01-10 Bruno Haible <haible@clisp.cons.org>
7317 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
7319 * Makefile.in (DEVDIRS): Add devutf8.
7320 * grotty/tty.cc: Include device.h.
7321 (glyph): Change type of `code' to `unsigned int'.
7322 (tty_printer): New field is_utf8. Constructor takes device argument.
7323 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
7324 (tty_printer::add_char): Change type of first arg to `unsigned int'.
7325 (tty_printer::put_char): New function.
7326 (tty_printer::end_page): Use put_char() instead of ::putchar().
7327 (make_printer): Pass device to tty_printer constructor.
7328 * nroff.sh: Determine default device by calling 'locale'. As a
7329 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
7330 Recognize UTF-8 locales.
7331 * tmac/eqnrc: Recognize utf8 like latin1.
7332 * tmac/troffrc: Device utf8 needs tmac.tty.
7334 2000-01-07 Werner LEMBERG <wl@gnu.org>
7336 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
7338 2000-01-07 Paul Eggert <eggert@twinsun.com>
7340 Add a new predefined writeable number register, `year',
7341 which contains the current year.
7343 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
7344 * tmac/tmac.s: Use it.
7345 * troff/input.cc (init_registers): Initialize it.
7347 2000-01-06 Werner LEMBERG <wl@gnu.org>
7349 * PROBLEMS: Fixed typo.
7351 2000-01-04 Paul Eggert <eggert@twinsun.com>
7353 * PROBLEMS: Add Y2k advice for the yr number register.
7355 2000-01-03 Paul Eggert <eggert@twinsun.com>
7357 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
7359 2000-01-02 Werner LEMBERG <wl@gnu.org>
7361 * tmac/tmac.arkup: Slight modification of macros to provide better
7362 appearance for non-HTML formats.
7364 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
7366 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
7367 does not automatically translate to malloc(n) on all OSes
7368 (e.g., SunOS) so do it explicitly. Also, check the returned
7371 2000-01-01 Werner LEMBERG <wl@gnu.org>
7373 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
7375 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
7376 expects this variable
7378 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
7380 * doc/Makefile: Added instructions to create HTML and text
7381 versions of some files.
7383 1999-12-31 Werner LEMBERG <wl@gnu.org>
7385 * Updated INSTALL.gen.
7387 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
7388 better resp. correctly with non-HTML devices.
7390 Version 1.15 released
7391 =====================
7393 1999-12-28 Werner LEMBERG <wl@gnu.org>
7395 * NEWS, VERSION: Changed to 1.15
7397 1999-12-27 Paul Eggert <eggert@twinsun.com>
7399 * nroff/nroff.man: -S is safer, not safe.
7401 * groff/groff.cc (main): Use `safer', not `safe', in variable
7402 names. This does not change the behavior.
7404 * troff/input.cc (main): Likewise.
7406 * nroff/nroff.sh: Likewise.
7408 * troff/input.cc (prepend_string): New function.
7409 (main): Prepend -msafer, so that we check macro libraries for
7412 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
7414 Version 1.14 released
7415 =====================
7417 1999-12-26 Werner LEMBERG <wl@gnu.org>
7419 * NEWS, VERSION: Changed to 1.14.
7421 1999-12-24 Werner LEMBERG <wl@gnu.org>
7423 * refer/refer.cc: Fixing the last fix.
7425 Version 1.13 released
7426 =====================
7428 1999-12-23 Werner LEMBERG <wl@gnu.org>
7430 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
7435 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
7437 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
7438 document conventions, the version number must be a real.
7440 Version 1.12.1 released
7441 =======================
7443 1999-12-22 Werner LEMBERG <wl@gnu.org>
7445 * VERSION: Changed to 1.12.1.
7447 1999-12-22 Alan Rooks <arooks@istar.ca>
7449 * refer/refer.cc (do_file): Slight modification to satisfy the
7450 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
7453 1999-12-20 Werner LEMBERG <wl@gnu.org>
7455 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
7458 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
7459 list of unsafe requests.
7461 * pic/pic.man: Fixed a typo.
7463 * man/groff_out.man: Fixed a typo.
7465 1999-12-18 Werner LEMBERG <wl@gnu.org>
7467 * Makefile.in: Doc fixes.
7469 1999-12-17 Fabrizio Polacco <fab@prosa.it>
7471 * groff/groff.cc: Missing `U' option added to getopt().
7473 * troff/troff.man: Missing `U' option added to synopsis.
7475 Version 1.12 released
7476 =====================
7478 1999-12-14 Werner LEMBERG <wl@gnu.org>
7480 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
7483 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
7484 with the more appropriate terms `safer' and `unsafe'.
7486 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
7487 sys_nerr and sys_errlist[].
7489 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
7491 * pic/pic.y, pic/pic.cc: Added check for fmod().
7493 1999-12-13 Werner LEMBERG <wl@gnu.org>
7495 * VERSION: Changed to 1.12.
7497 Here some patches from various sources; most of them taken from
7498 the Debian distribution.
7500 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
7501 tmac/Makefile.sub: New files copied directly from the NetBSD
7502 distribution. Probably, some additional adaptation later on is
7505 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
7508 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
7509 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
7510 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
7511 (`-S') is now the default.
7513 * README, NEWS: Updated.
7515 1999-12-09 Werner LEMBERG <wl@gnu.org>
7517 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
7519 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
7521 1999-12-06 Werner LEMBERG <wl@gnu.org>
7523 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
7524 grief than relief today. Additionally, it is against the GNU
7527 * configure: Recreated.
7529 1999-12-05 Werner LEMBERG <wl@gnu.org>
7531 * configure.in: Added GROFF_LIBM.
7533 * configure: Recreated.
7535 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
7538 * Makefile.in: Added definition of $(LIBM).
7540 * Makefile.comm (LIBM): Removed.
7542 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
7544 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
7546 * doc/Makefile: Added rule for generation pic.html.
7548 (clean): Files produced by grohtml will be removed also.
7550 * doc/pic.ms: Small fix.
7552 * tmac/tmac.html: Fixed suppression of headers.
7554 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
7556 * tmac/tmac.html: Fixing horizontal arrows.
7558 Turning off hyphenation.
7560 * tmac/tmac.an: Improved support for grohtml; better indentation,
7563 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
7565 * tmac/tmac.arkup: Added CDFTP macro
7567 * tmac/tmac.html: All headers are turned off for ms, me, and mm
7570 * tmac/troffrc: Some additions for HTML stuff.
7572 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
7574 * tmac/tmac.html: Small changes.
7576 1999-09-26 Werner LEMBERG <wl@gnu.org>
7578 * doc/groff.texinfo: Minor fixes.
7580 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
7582 * devhtml/TR: Changed spacewidth to 3.
7584 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
7586 * tmac/tmac.html: Moved markup macros to tmap.arkup.
7588 * tmac/tmac.arkup: New file.
7590 * grohtml/ChangeLog: New file.
7592 1999-09-16 Werner LEMBERG <wl@gnu.org>
7594 * doc/groff.texinfo (Common Features): Added Copying chapter.
7595 Changed format to @smallbook.
7597 1999-09-15 Werner LEMBERG <wl@gnu.org>
7599 * NEWS: Added info about groff.texinfo.
7601 * doc/groff.texinfo: Will now compile (using texi2dvi) without
7604 1999-09-14 Werner LEMBERG <wl@gnu.org>
7606 * groff/groff.man: More updates.
7608 1999-09-13 Werner LEMBERG <wl@gnu.org>
7610 * doc/groff.texinfo: New file. This manual is still very
7611 rudimentary. It has been originally contributed by Trent
7612 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
7615 * INSTALL: Added information about the `doc' subdir
7617 * troff/troff.man: Minor fixes.
7619 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
7622 * troff/input.cc (usage): Added missing `-ffam' to usage message.
7624 * Makefile.in (dist): groff-$(version).tar.gz must be removed
7625 also, otherwise it is included itself in another call of `make
7628 * groff/groff.cc (synopsis): Removed superfluous space.
7630 * PROJECTS, PROBLEMS, NEWS: Updated.
7632 * VERSION: Updated to 1.12beta.
7634 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
7636 * README: Updated: Included documentation about CVS repository,
7637 mailing lists, and daily snapshots.
7639 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
7641 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
7643 * tmac/tmac.an: If the tag didn't fit into the space that the
7644 macro `TP' specifies, the rest of the tag went into the space for
7647 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
7649 * grolj4/lj4.cc: Added duplex printing (option `-d').
7651 * grolj4/grolj4.man: Document duplex printing.
7653 1999-09-12 Werner LEMBERG <wl@gnu.org>
7655 * doc/Makefile (pic.ps): Fixed rule which caused problems with
7656 non-GNUish sed programs.
7658 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
7661 * configure.in (LIBS): Added `-lc'
7663 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
7665 * pic/tex.cc (solid_arc): Casting M_PI to double.
7667 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
7669 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
7670 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
7671 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
7673 * groff/groff_man.man: New file. This manual page was originally
7674 written for the Debian GNU/Linux system by Susan G. Kleinmann
7677 * eqn/list.cc (list_box::compute_metrics,
7678 list_box::compute_sublist_width): Removed variable declaration to
7679 avoid shadowing warnings.
7681 * grops/psrm.cc (resource_manager::process_file): Ditto.
7683 * tfmtodit/tfmtodit.cc (main): Ditto.
7685 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
7686 to avoid shadowing warnings.
7688 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
7689 shadowing loop variable.
7691 * groff/groff.man, troff/troff.man: Added doc about grohtml.
7693 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
7695 New grohtml frontend to convert groff input to html.
7697 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
7699 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
7701 * tmac/eqnrc: Added html device.
7703 * tmac/tmac.html: New file.
7705 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
7706 (troff_output::start_picture, troff_output::finish_picture),
7707 tbl/main.cc (process_input_file):
7708 Surrounded output with `graphics_start' and `graphics_end' so that
7709 the html driver can identify non-text portions.
7711 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
7712 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
7713 grotty/tty.ps (tty_printer::set_char): Additional parameter
7716 * include/printer.h: Class printer: New function
7717 set_char_and_width; new variables (is_char_named, is_named_set,
7718 named_command, named_char_s, named_char_n) to hold information
7719 about named characters -- needed by the html driver.
7721 * libdriver/printer.cc (printer::set_ascii_char,
7722 printer::set_special_char): Use set_char_and_width.
7724 * devhtml/*: New device files for html driver.
7726 * grohtml/*: New driver grohtml.
7728 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
7730 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
7733 1999-09-11 Luke Mewburn <lukem@netbsd.org>
7735 * libgroff/string.cc (search): Small fix to test against NULL
7738 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
7740 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
7741 \b'abc') were stacked in reverse order when processed in a
7744 * troff/node.h: Added `*last' to struct `node' to make the above
7747 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
7748 The default scale for the 'f' and 't' graphics functions were 'm'
7749 rather than 'u' (i.e., no scaling).
7751 1999-09-11 Peter Miller <peterm@jna.com.au>
7753 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
7754 do_file), soelim/soelim.man: Added `-I file' option to soelim,
7755 defining include paths.
7757 * soelim/soelim.cc (include_path_append): New function.
7759 1999-09-11 Larry Jones <larry.jones@sdrc.com>
7761 * tbl/main.cc (process_options): Unix (at least Documenter's
7762 Workbench) tbl allows arbitrary non-alpha characters between
7765 1999-09-11 Paul Eggert <eggert@twinsun.com>
7767 Y2k fixes. Don't assume that the current year precedes 2000.
7769 * doc/meref.me: Add \n(y2, \n(y4.
7771 * tmac/doc-common (Yr): New number register.
7772 (Dd): Don't assume current year precedes 2000.
7774 * tmac/tmac.e (td): Likewise.
7775 (y2, y4): New number registers.
7777 * pic/pic.man: Update reference for pic paper to May, 1991
7780 1999-09-11 Werner LEMBERG <wl@gnu.org>
7782 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7783 Removed quotation marks which prevented correct expansion of
7786 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
7788 1999-09-10 Werner LEMBERG <wl@gnu.org>
7790 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
7793 * Removed configure.old.
7795 1999-08-31 Werner LEMBERG <wl@gnu.org>
7797 * VERSION: Updated to 1.11.1
7799 1999-05-27 Werner LEMBERG <wl@gnu.org>
7801 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
7803 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7804 added quotations around $(tmac_wrap) to avoid syntax error if
7807 * configure: Newly generated using autoconf 2.13.
7809 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
7811 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
7813 * README, PROJECTS, NEWS, INSTALL, VERSION,
7814 doc/Makefile. doc/pic.ms, groff/groff.man:
7815 Prepare for 1.11 release. No code changes.
7816 Documentation for pic added (doc/pic.ms).
7818 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
7820 * Version 1.10 released.
7822 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
7824 * afmtodit/afmtodit.pl: Avoid comment on first line.
7826 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
7828 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
7829 * configure.in: Call it.
7831 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
7832 (distfiles): Doesn't depend on config.log or config.cache.
7834 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
7836 * grog/grog.sh: Use print "" rather than print in END rule.
7838 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
7840 * tbl/main.cc (process_data): Don't give error for excess data
7841 entries that are comments.
7843 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
7845 * tbl/main.cc (process_data): Fix case where new for-scope rules
7846 silently change meaning of code.
7848 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
7850 * troff/env.cc (hyphenate): Loop over all consecutive sequences
7851 of non-zero hyphenation codes.
7853 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
7855 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
7857 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
7859 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
7861 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
7863 * tmac/tmac.andoc: Make it work in compatibility mode.
7865 * refer/token.h (token_info::is_range_sep): New function.
7866 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
7867 * refer/ref.cc (reference::output): More sophisticated check for
7870 * devps/prologue.ps (MANUAL): New procedure.
7871 * grops/ps.cc (main): New -m option.
7872 (usage): Include -m.
7873 (ps_printer::~ps_printer): Implement -m.
7875 * aclocal.m4 (GROFF_G): New macro.
7876 * configure.in: Call it.
7877 * Makefile.in (g): Provided by configure.
7879 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
7881 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
7884 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
7885 (tmac_m, tmac_s): Deleted.
7886 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
7887 tmac_s_prefix): New variables.
7888 (MDEFINES): Change accordingly.
7889 * Makefile.comm (.man.n): Use new TMAC_* variables.
7890 * configure.in (GROFF_TMAC): Call.
7891 * aclocal.m4 (GROFF_TMAC): Define.
7892 * tmac/Makefile.sub (stamp_wrap): New target.
7893 (install_data, uninstall_sub): Handle macro wrapping.
7895 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
7897 * tbl/main.cc (main): Ignore -T option.
7899 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
7901 * devlj4/generate/special.map: Add definition of \(nb.
7903 * tmac/tmac.dvi: Add definition of \(nb.
7905 * troff/dictionary.c (dictionary::dictionary): association::v gets
7906 initialized by association::association.
7908 * tmac/Makefile.sub: Avoid using temporary files when installing.
7910 * troff/env.cc (environment::set_font): Make bad font number a
7913 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
7915 * Makefile.in (datadir): Use share rather than lib.
7917 * groff/groff.cc (basename): Rename to xbasename.
7919 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
7921 * Makefile (CCLIBS): Don't use.
7922 * Makefile.ccpg: Likewise.
7924 * acgroff.m4: Rename to...
7925 * aclocal.m4: Modify extensively for autoconf 2.
7926 * configure.in: Likewise.
7927 * Makefile.in: Likewise.
7929 * groff/pipeline.c (const): Declare as empty if __STDC__ not
7931 (xstrsignal): Check for definition of NSIG. Conditionalize
7932 on SYS_SIGLIST_DECLARED. Make return type const.
7934 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
7936 * troff/input.cc (interpolate_macro): Rephrase missing space
7939 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
7941 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
7942 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
7943 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
7944 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7945 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
7946 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
7947 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
7948 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
7949 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
7950 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
7951 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
7954 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
7956 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
7958 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
7960 (macro_iterator::macro_iterator): Add additional argument.
7962 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
7964 * troff/div.cc (vertical_size::vertical_size): In place of integer
7965 specifying line spacing use cunits specifying post vertical
7967 (macro_diversion::output, top_level_diversion::output): Likewise.
7968 * troff/div.h: Change declarations accordingly.
7969 * troff/env.cc (pending_output_line): Replace ls field by post_vs
7971 (pending_output_line::pending_output_line,
7972 pending_output_line::output, environment::output,
7973 environment::output_line, environment::output_title,
7974 environment::hyphenate_line): In place of
7975 integer specifying line spacing use cunits specifying post vertical
7977 (environment::environment): Add post_vertical_spacing and
7978 prev_post_vertical_spacing arguments.
7979 (environment::get_post_vertical_spacing): New function.
7980 (environment::total_post_vertical_spacing): New function.
7981 (environment::post_vertical_spacing): New function.
7982 (init_env_requests): Initialize pvs request and .pvs register.
7983 * troff/env.h: Change declarations.
7985 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
7987 * tmac/tmac.pspic: Immediately remove the temporary file.
7989 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
7991 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7992 height is specified.
7994 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
7996 * tbl/table.c (struct vertical rule, class table_entry): Use int
7997 not short for start_row and end_row.
7999 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
8001 * troff/input.cc (trapping_blank_line, blank_line_macro): New
8003 (diverted_space_node::reread, process_input_stack): Call
8004 trapping_blank_line() rather than blank_line().
8005 (init_input_requests): Bind "blm" to blank_line_macro().
8007 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
8009 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
8011 * troff/env.cc (environment::possibly_break_line): Require that
8012 width total excluding width of final space node be greater than
8013 the target text length.
8015 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
8017 * troff/node.cc (kern_pair_node::vertical_extent): New function.
8019 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
8021 * troff/node.cc (charinfo_node): New class.
8022 (glyph_node, composite_node): Derive from charinfo_node. Change
8023 member functions accordingly.
8025 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
8027 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
8029 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
8031 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
8033 * devps/generate/textmap (notsubset): Add.
8035 * tmac/tmac.a4: New file.
8037 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
8039 * pic/main.cc (had_parse_error): New variable.
8040 (do_picture, do_whole_file): Set had_parse_error if yyparse()
8042 (main): Return 1 if had_parse_error is true.
8044 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
8046 * grolj4/lj4.cc (main): Avoid use of strtoul.
8048 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
8050 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
8051 iso_8859_1 or $LESSCHARSET is latin1.
8053 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
8055 * hpftodit: New directory.
8056 * Makefile.in (CCPROGDIRS): Add hpftodit.
8057 * devlj4/generate: New directory.
8059 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
8061 * configure.in: Don't use AC_VFORK.
8062 * groff/pipeline.c (run_pipeline): Use fork() always.
8064 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
8066 * grops/ps.cc (main): Use %1 not %s in error message for -w.
8068 * Makefile.in (CCPROGDIRS): Add grolj4.
8069 (DEVDIRS): Add devlj4.
8070 * grolj4, devlj4: New directories.
8071 * tmac/troffrc: Handle lj4.
8072 * tmac/tmac.lj4: New file.
8074 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
8076 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
8078 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
8080 * troff/input.cc (do_if_request): At end of second string, switch
8081 environments before getting next token.
8083 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
8085 * devps/psstrip.sed: Split rule that strips whitespace on either
8088 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
8090 * troff/node.h (font_family::make_definition): Add return value to
8091 declaration. * troff/symbol.h (symbol::operator==,
8092 symbol::operator!=): Likewise.
8094 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
8096 * groff/groff.cc (main, help, synopsis): Handle -S.
8097 (possible_command::insert_arg): New function.
8099 * tmac/tmac.safer: New file.
8100 * tmac/msafer.man: New file.
8101 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
8103 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
8105 * pic/pic.h, pic/main.cc (safer_flag): New variable.
8106 * pic/pic.y (placeless_element): Avoid unsafe operations if
8107 `safer_flag' is set.
8108 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
8110 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
8112 * eqn/lex.cc (get_token): Put call to add_context() in block to
8113 work around Sun C++ 4.0 bug.
8115 * include/stringclass.h (operator +): Use ?: instead of `if' to
8116 work around Sun C++ 4.0 bug.
8118 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
8120 * tbl/main.cc (process_format): Accept - as a synonym for the _
8123 * libbib/index.cc (minus_one): Don't declare as const.
8125 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
8127 * troff/input.cc (get_char_for_escape_name): Push back a newline.
8129 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
8131 * troff/input.cc (write_macro_request): New function.
8132 (init_input_requests): Bind write_macro_request to writem.
8134 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
8136 * tmac/tmac.s (@EN): Turn filling back on even if there was no
8139 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
8141 * tmac/tmac.s (@TS): Renamed from TS.
8142 (TS): Call LP then TS again.
8143 (cov*ab-init): Alias @TS to TS.
8145 * tmac/tmac.s: Allow QP or RS to initialize.
8147 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
8148 Move initializations of PS and LL here.
8149 (par@init): Don't initialize HY. Avoid changing environment 0.
8150 (par*env-init): Don't all par@reset.
8152 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
8154 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
8156 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
8158 * Makefile.in (MDEFINES): Add LDFLAGS.
8159 (LDFLAGS): Add definition line.
8161 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
8163 * troff/input.cc (get_optional_char): Split off error check into...
8164 (check_missing_character): New function.
8165 * troff/token.h: Declare it.
8166 * troff/env.cc (margin_character): Don't call get_optional_char.
8167 Only call tok.next() after making the node.
8169 * include/lib.h (getopt): Make 2nd argument char *const *.
8171 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
8173 * nroff/conftest.sh: Deleted.
8175 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
8177 * pic/make-dos-dist: Deleted.
8179 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
8181 * devps/psstrip.sed: Strip comments before stripping trailing
8184 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
8186 * Version 1.09 released.
8188 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
8190 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
8192 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
8194 * libgroff/font.cc (font::load_desc): Fix typo in error message.
8196 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
8198 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
8199 about returning without a value.
8201 * troff/charinfo.h (charinfo::get_special_translation): Cast
8202 TRANSLATE_NONE to int.
8204 * refer/token.cc (lookup_token, store_token): Remove bogus loop
8205 test. Fix test so that it works with n unsigned.
8207 * pic/pic.y (defaults_table): Fully bracket initializer.
8208 * pic/lex.cc (lookup_keyword): Likewise.
8209 * eqn/lex.cc (token_table, def_table): Likewise.
8210 * eqn/box.cc (param_table): Likewise.
8211 * troff/input.cc (warning_table): Likewise.
8212 * libgroff/font.cc (table): Likewise.
8213 * grops/ps.cc (ps_printer::special): Likewise.
8214 * grops/psrm.cc (resource_manager::process_file): Likewise.
8215 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
8216 * refer/command.cc (command_table): Likewise.
8217 * addftinfo/addftinfo.cc (param_table): Likewise.
8219 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
8220 about temp's being unused.
8221 (unused): New function.
8223 * groff/pipeline.cc: Declare c_fatal.
8225 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
8228 * libbib/index.cc (index_search_item::load): Prevent compiler
8229 warnings about fd_closer's being unused.
8230 (unused): New function.
8232 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
8234 * troff/input.cc (copy_mode_error): Make `prefix' static.
8237 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
8239 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
8240 HAVE_CC_OSFCN_H and modify accordingly.
8242 * troff/input.cc (init_charset_table): radicalex overlaps
8245 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
8246 udodo!hans@relay.NL.net).
8247 * groff/configure.in: Call it.
8249 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
8250 * groff/configure.in: Call it.
8251 * include/lib.h: Conditionalize declaration of pclose.
8253 * troff/div.cc (last_page_number): New global variable.
8254 (top_level_diversion::begin_page): Exit if we just printed the
8256 * troff/div.h (last_page_number): Declare it.
8257 * troff/input.cc (parse_output_page_list): Set last_page_number.
8259 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
8260 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
8261 tmac/tmac.X: Likewise.
8262 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
8263 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
8265 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
8267 * tmac/doc-ditroff (hK): Remove groff specific code which
8268 prevented page-breaks between separate manual entries. If this is
8269 the first page, don't set the page number to 1.
8271 * acgroff.m4 (GROFF_POSIX): New macro.
8272 * configure.in: Use it.
8274 * troff/node.cc (class real_output_file,
8275 real_output_file::real_output_file,
8276 real_output_file::~real_output_file): Conditionalize use of
8277 popen/pclose on POPEN_MISSING.
8278 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
8279 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
8280 (pipe_source): Similarily.
8282 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
8284 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
8285 presence of declarations by trying to compile example with
8286 conflicting declarations. (gcc only gives a warning for missing
8289 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
8291 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
8292 (from Ulrich Lauther).
8294 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
8296 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
8298 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
8300 * indxbib/indxbib.cc (write_hash_table): Add code for case where
8301 pointers and ints have different sizes.
8303 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
8305 * tmac/tmac.s (par*env-init): Call par@reset.
8307 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
8309 * tmac/tmac.s (@IP): Switch to a new environment when diverting
8311 (par*push-tag-env, par*pop-tag-env): New macros.
8313 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
8315 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
8316 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
8318 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
8319 comment. Include <time.h>.
8321 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
8323 * grops/ps.cc (is_small_h, is_small_v): Deleted.
8324 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
8327 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
8329 * troff/input.cc (read_request): Only print a prompt if reading
8330 from the terminal. Also clearerr on EOF if reading from the
8331 terminal. Declare isatty.
8333 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
8335 * refer/label.y: Rename map_t to map_func and extractor_t to
8338 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
8340 * include/assert.h: Don't use volatile.
8341 * libgroff/assert.cc: Likewise.
8343 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
8345 * troff/input.cc (abort_request): Look at character in tok before
8348 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
8350 * troff/troff.h (NO_RETURN): Deleted.
8351 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
8352 * troff/input.cc (exit_troff): Likewise
8354 * Makefile.in: Remove `Making ...' messages since GNU make now
8357 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
8359 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
8361 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
8364 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
8366 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
8368 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
8370 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
8371 MARK_REG if there was no left delimiter.
8373 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
8375 * pic/troff.cc (troff_output::text): Set line thickness to
8376 relative before outputting text.
8378 * tmac/tmac.e (@k): Don't zero ?T.
8381 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
8383 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
8385 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
8387 * troff/input.cc (decode_args): Warn about unquoted tabs (from
8390 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
8392 * troff/input.cc (ignoring): New variable.
8393 (ignore): Set ignoring during call to do_define_macro.
8394 (do_define_macro): Clear ignoring before interpolating terminating
8396 (copy_mode_error): New function.
8397 (get_char_for_escape_name, read_long_escape_name,
8398 interpolate_arg): Use copy_mode_error.
8399 (warning_table): Add WARN_IG.
8400 * troff/troff.h (WARN_IG): Declare.
8401 (WARN_TOTAL): Change accordingly.
8403 * groff/pipeline.c (strsignal): Rename to xstrsignal.
8404 * groff/groff.cc (strsignal): Delete declaration.
8406 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
8408 * troff/div.cc (page_offset): Use 'm' as default scaling.
8410 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
8412 * nroff/nroff.sh: Ignore -u.
8414 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
8416 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
8418 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
8420 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
8422 (B2): With -Tascii, leave additional vertical space before
8423 and after. Ensure that the left and right indent is restored to
8424 what it was even if the point size changes. Don't call
8425 par@finish. Change the indent, line length and title length
8426 directly. With -Tascii, make the width of the box 1n less.
8427 (B1): Remember 1n at the current point size. Don't call
8428 par@reset. Change the indent, line length and title length
8429 directly. Ensure that the temporary indent is preserved.
8430 (par*box-mark-top): Turn off no spacing mode.
8432 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
8434 * Makefile.in (dist): Use .gz suffix.
8436 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
8438 * troff/input.cc (main): Add return 0.
8439 * pic/main.cc (main): Use return instead of exit.
8440 * tbl/main.cc (main): Likewise.
8441 * eqn/main.cc (main): Likewise.
8442 * grops/ps.cc (main): Likewise.
8443 * grotty/tty.cc (main): Likewise.
8444 * groff/groff.cc (main): Likewise.
8445 * grodvi/dvi.cc (main): Likewise.
8446 * refer/refer.cc (main): Likewise.
8447 * indxbib/indxbib.cc (main): Likewise.
8448 * lkbib/lkbib.cc (main): Likewise.
8449 * soelim/soelim.cc (main): Likewise.
8450 * addftinfo/addftinfo.cc (main): Likewise.
8451 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
8452 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
8454 * troff/token.h (process_input_stack): Don't declare as static.
8455 * troff/input.cc: Likewise.
8457 * troff/node.c (invalidate_fontno): Make it a static member of
8458 class font_family. Change callers.
8459 * troff/node.c: Change declaration.
8461 * tbl/main.cc (struct input_entry_format): Add explicit public
8463 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
8464 struct double_hline_stuff): Likewise.
8465 * tbl/table.h (struct entry_format): Likewise.
8466 * pic/object.h (struct saved_state): Likewise.
8468 * include/stringclass.h: Add forward declarations of friend
8469 functions that are later declared as inline. Don't include inline
8470 specifier in friend declaration.
8472 * libgroff/lib.h: Declare popen and pclose.
8473 * acgroff.m4 (GROFF_POPEN): New macro.
8474 * configure.in: Call it.
8476 * include/lib.h (PI): New constant. Undef first if necessary.
8477 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
8478 * grops/ps.cc (degrees, radians): Likewise.
8479 * libgroff/font.cc (font::get_skew): Likewise.
8481 * grops/ps.cc (is_ascii): New function.
8482 (ps_output::put_string): Use is_ascii. Use csprint rather than
8484 (ps_printer::define_encoding): Use csspace.
8485 * libgroff/strtol.c (ISASCII): New macro.
8486 (strtol): Cast arguments to is*() and tolower() to unsigned char.
8487 Use ISASCII rather than isascii.
8488 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
8489 * libgroff/cset.cc: Likewise.
8490 * libdriver/input.cc: Include cset.h.
8491 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
8494 * refer/refer.cc (main): Use %ld rather than %d for longs.
8496 * libbib/index.cc (index_search_item_iterator::get_tag): Use
8499 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
8501 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
8503 * troff/input.cc (hyphenation_code): Skip white space between
8506 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
8508 * tbl/table.h (table::entry_list_tailp): New member.
8509 (table::table): Initialize it.
8510 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
8513 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
8515 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
8516 with negative horizontal positions. Remove casts of glyph::hpos to
8518 (USHRT_MAX): Delete definition.
8519 (SHRT_MAX, SHRT_MIN): New definitions.
8520 (glyph::hpos): Change type to short.
8521 (tty_printer::end_page): Output multiple backspaces if necessary.
8522 Remove casts of glyph::hpos to int.
8524 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
8526 * tmac/tmac.s (@RT): New definition.
8528 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
8530 * refer/refer.cc (do_file): Make sure current_filename is set when
8533 * pic/common.cc (common_output::dot_line): Handle zero length
8536 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
8538 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
8539 (par@init): Initialize \n[HY].
8541 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
8543 * troff/dictionary.cc (dictionary::remove): Continue when
8546 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
8548 * Makefile.com (.y.cc): Avoid ending up with two versions of
8551 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
8553 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
8554 (\(,C): Likewise. Also fix typo.
8556 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
8558 * lib.h: Delete extraneous semi-colon.
8560 * Add pso request: `so' from a pipe.
8561 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
8562 (file_iterator::close): New function.
8563 (file_iterator::~file_iterator, file_iterator::next_file): Use
8564 file_iterator::close.
8565 (file_iterator::backtrace): Say `process' rather than `file' when
8566 the stream is popened.
8567 (pipe_source): New function.
8568 (init_input_requests): Bind ".pso" to pipe_source.
8570 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
8572 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
8574 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
8575 digits in lower case.
8577 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
8579 * Version 1.08 released.
8581 * Makefile.in (dist): Insert || true after ln -s commands that
8584 * mm: Update to mm 1.16.
8586 * acgroff.m4 (GROFF_CSH_HACK): New macro.
8587 * configure.in: Call GROFF_CSH_HACK. Substitute for
8589 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
8591 * nroff/Makefile.sub (nroff): New target.
8592 (install_data): Install nroff.
8593 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
8594 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
8596 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
8598 * eqn/Makefile.sub (neqn): Add chmod +x.
8600 * grog/Makefile.sub (grog): Remove spurious semi-colon.
8602 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
8604 * troff/input.cc (string_iterator::string_iterator()): Initialize
8607 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
8609 * troff/div.cc (macro_diversion::space,
8610 top_level_diversion::space): Don't set high_water_mark.
8611 (macro_diversion::output, top_level_diversion::output): Don't
8612 include post line space in high water mark.
8614 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
8616 * eqn/eqn.y: Don't define YYDEBUG.
8617 * pic/pic.y: Likewise.
8619 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
8621 * tmac/tmac.e ([3): Add space after comma following editors.
8622 Change double spaces to single spaces.
8623 ([4): Change double spaces to single spaces.
8625 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
8626 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
8627 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
8628 after %!PS-Adobe- (for Newsprint).
8630 * troff/div.cc (top_level_diversion::begin_page): When
8631 before_first_page is 1, set page_number to 1.
8633 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
8635 * eqn/box.cc (box::top_level): Protect equation with \&.
8637 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
8639 * groff/groff.cc (possible_command::set_name): Delete old name.
8641 * groff/groff.cc (possible_command::~possible_command): Use
8644 * troff/node.cc (troff_output_file::begun_page): New member.
8645 (troff_output_file::troff_output_file): Initialize it.
8646 (troff_output_file::really_begin_page): Only output V command if a
8647 page has been begun.
8649 * pic/pic.y (placeless_element): Delete argument to PRINT after
8652 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
8654 * Make wrapman work.
8655 * troff/div.h (class top_level_diversion): Replace
8656 first_page_begun by before_first_page (with opposite sense).
8657 * Change first_page_begun to before_first_page inverting sense.
8658 * troff/div.cc (class nl_reg): New class.
8659 (init_div_requests): Use class nl_reg for \n(nl.
8660 (top_level_diversion::begin_page): Don't call
8661 output_file::begin_page if before_first_page is 2;
8662 reset before_first_page afterwards. If have_next_page_number is
8663 false, then always increment page_number.
8664 * tmac/tmac.an: Set traps within TH rather than at the top-level.
8665 Restore compatibility mode after loading, and then disable
8666 compatibility mode in TH.
8668 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
8670 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
8672 * troff/node.h (output_file::trailer): Declare.
8673 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
8674 * troff/node.cc (output_file::trailer): New function.
8675 (troff_output_file::~troff_output_file): Move most code into...
8676 (troff_output_file::trailer): New function.
8677 (class troff_output_file): Delete page_length member. Declare
8679 (troff_output_file::really_begin_page): Use current page length
8680 for final V command.
8682 * tbl/main.cc (struct options): New decimal_point_char member.
8683 (options::options): Initialize this.
8684 (process_options): Implement decimalpoint option.
8685 (process_data): Pass decimal_point_char option to table::table.
8686 * tbl/table.h (class table): New decimal_point_char member.
8687 (table::table): Add additional argument.
8688 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
8689 second argument specifying decimal point character. Use this
8691 (table::table): Initialize decimal_point_char.
8692 (table::add_entry): Change call to find_dot.
8694 * troff/input.cc (get_copy, token::next): Implement \V.
8695 (interpolate_environment_variable): New function.
8697 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
8699 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
8700 * pic/pic.y: Likewise.
8702 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
8704 * refer/ref.cc (reference::insert_field, reference::delete_field):
8706 * troff/number.cc (parse_term): Likewise.
8708 * acgroff.m4 (GROFF_PROG_YACC): New macro.
8709 * configure.in: Use GROFF_PROG_YACC.
8711 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
8713 * Makefile.in (OPTIMIZE): New define.
8714 (DEBUG): Empty by default.
8715 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
8717 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
8718 (GROFF_ARRAY_DELETE): Likewise.
8719 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
8721 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
8723 * devps/psstrip.sed: Use different delimiter on last line (so that
8724 it works with BSD 4.4 sed.)
8726 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
8728 * devps/psstrip.sed: Delete comments.
8730 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
8731 optind, opterr, optarg.
8732 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
8735 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
8737 * Makefile.in (check): Dummy target.
8739 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
8741 * Version 1.07 released.
8743 * Integrate mm 1.11.
8745 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
8746 where start_col was meant.
8748 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
8750 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
8752 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
8754 * troff/input.cc (token::next): Make \z\o'...' and similar things
8757 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
8759 (environment): Add margin_character_flags member.
8760 * env.cc (environment::environment(symbol),
8761 environment::environment(const environment *): Initialize
8762 margin_character_flags.
8763 (margin_character): Rewrite.
8764 (environment::output_line): Add a margin character if
8765 margin_character_flags is non-zero. Turn off the
8766 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
8767 zero, use margin_character_node without copying and then set
8768 margin_character_node to 0.
8770 * devps/DESC.in: Change minimum size to 1000.
8772 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
8774 * troff/symbol.h (symbol::hash): Change return type to unsigned
8776 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
8779 * test-groff: Use -r rather than -x.
8781 * grops/psfig.diff: Include in distribution again.
8783 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
8785 * Makefile.in (dist): Use gzip.
8787 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
8789 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
8790 unistd.h as well as in stdlib.h.
8791 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
8792 defined; otherwise include <sys/types.h> and <unistd.h> if
8793 UNISTD_H_DECLARES_GETOPT is defined.
8795 * configure.in: use builtin(include, ... rather than include(...
8796 * configure: Regenerate with autoconf 1.3.
8798 * libdriver/print.cc (printer::adjust_arc_center): Use new
8799 algorithm suggested by Andy Fyfe.
8801 * libdriver/printer.cc (printer::adjust_arc_center): New function.
8802 * include/printer.h: Declare this.
8803 * grops/ps.cc (ps_printer::draw): Use it.
8804 * grodvi/dvi.cc (dvi_printer::draw): Use it.
8806 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
8808 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
8810 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
8812 * eqn/main.cc (main): Handle "eqn -".
8814 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
8816 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
8818 * mm: Integrate version 1.08.
8820 * pic/troff.cc (troff_output::finish_picture): Set
8821 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
8822 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
8823 if it's not defined. Check whether the register is non-zero rather
8824 than whether it's not defined.
8825 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
8827 * indxbib/indxbib.cc: Move all signal handling into...
8828 * indxbib/signal.c: New file.
8829 * configure.in: Call AC_RETSIGTYPE.
8831 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
8832 * configure.in: Call GROFF_STRUCT_EXCEPTION.
8833 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
8835 * troff/input.cc (token::token, token::operator=): Work round SGI
8837 * pic/object.cc (position::position): Likewise.
8839 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
8841 * pic/pic.h: Move declaration of hypot().
8843 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
8845 * pic/pic.h: Declare hypot().
8847 * pic/pic.h: Define M_PI if necessary.
8849 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
8851 * tmac/tmac.e (re): Add alternative version that doesn't use groff
8854 * devps/prologue.ps (RE): Handle the possibility that the old font
8855 doesn't have a FontName entry.
8857 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
8859 * tmac/tmac.e (fam): Redefine to set family in environment 2.
8860 (@C): Use @fam not fam.
8862 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
8864 * lookbib/lookbib.cc (main): Change type of start to const char *.
8865 * lkbib/lkbib.cc (main): Likewise.
8867 * eqn/lex.cc (definition::definition): Don't use member
8868 initializer syntax for members of anonymous unions.
8870 * troff/input.cc (input_stack::backtrace): Change type of to const
8873 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
8875 * include/stringclass.h (class string): Declare inline friend
8876 functions as inline in class declaration.
8877 * troff/hvunits.h (class hunits, class vunits): Likewise.
8878 * include/refid.h (class reference_id): Likewise
8879 * troff/troff.h (points_to_units(units), scale(units, double)):
8880 Delete declarations.
8881 * libdriver/input.cc (get_char): Delete declaration.
8882 * include/lib.h: Change 2nd argument of getopt from const char **
8884 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
8885 char **' before assigning to a `const char **'.
8886 * tbl/table.cc: Delete extra declarations of prints().
8888 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
8890 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
8891 char **' before assigning to a `const char **'.
8893 * libgroff/errarg.cc (errarg::errarg): Don't use member
8894 initializer syntax for members of anonymous unions.
8896 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
8898 * mm: Integrate version 1.07.
8900 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
8902 * troff/input.c (translate2): Rename to
8903 (translate_no_transparent).
8904 (init_input_requests): Rename tr2 to trnt.
8906 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
8908 * troff/charinfo.h (class charinfo): Add transparent_translate field.
8909 (charinfo::set_translation, charinfo::set_special_translation):
8910 Add second argument that specifies value for
8911 transparent_translate.
8912 (charinfo::get_translation, charinfo::get_special_translation):
8913 Add optional second argument that specifies whether translation is
8914 being used for transparent throughput.
8915 * troff/input.cc (charinfo::set_translation,
8916 charinfo::set_special_translation): Handle second argument.
8917 (charinfo::charinfo): Initialize transparent_translate.
8918 (translate): Split main part off into
8919 (do_translate): New function. Pass argument saying whether
8920 translation applies to transparent throughput.
8921 (translate2): New request.
8922 (init_input_requests): Bind translate2 to `tr2'.
8924 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
8926 * tbl/table.h (class table): Add `nokeep' flag.
8927 * tbl/main.cc (process_options): Handle `nokeep' option.
8928 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
8929 table::do_bottom): Don't output keep/release macro definitions or
8930 calls when `nokeep' option has been specified.
8932 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
8934 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
8936 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
8938 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
8939 block_entry::divert, alphabetic_block_entry::divert): Add extra
8940 argument giving column separation.
8941 (table::compute_widths): Pass column separation to
8942 table_entry::divert().
8943 (block_entry::do_divert): If an entry spans multiple columns and a
8944 minimumum width has been specified for each column, then set the
8945 line length to the sum of the widths (plus possibly the column
8948 * troff/input.cc (set_escape_char): Don't set the escape_char
8949 until after calling has_arg().
8951 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
8953 * tbl/table.cc (table::do_top): Add missing \s0 for double box
8956 * tbl/table.cc (table::print_double_hline): Avoid extra new line
8957 in case where r > nrows - 1.
8959 * tbl/table.cc (BODY_HEIGHT): Deleted.
8960 (LINE_SEP): New definition.
8961 (table::print_single_hline, table::print_double_hline,
8962 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
8963 table::do_row, table::do_top): Use LINE_SEP space before a line
8964 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
8966 * tbl/table.cc (text_entry::print_contents): New function.
8967 (text_string_name, right_text_string_name): Deleted.
8968 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
8969 (simple_text_entry::do_width, numeric_text_entry::do_width,
8970 alphabetic_text_entry::do_width): Don't store the contents of the
8972 (left_text_entry::simple_print, right_text_entry::simple_print,
8973 center_text_entry::simple_print,
8974 alphabetic_text_entry::simple_print,
8975 numeric_text_entry::simple_print): Print the entry directly
8976 instead of using the stored string.
8978 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
8980 * devps/Makefile: Strip PostScript files.
8981 * devps/prologue: Rename to...
8982 * devps/prologue.ps.
8983 * devps/psstrip.sed: New file.
8984 * devps/download: Use .pfa rather than .ps for installed versions
8987 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
8989 * troff/env.cc (input_trap): Give a warning if the argument is out
8992 * troff/env.cc (adjust): Treat negative argument as missing. Round
8993 argument > 5 down to 5.
8995 * troff/env.cc (center, right_justify): Make negative argument zero.
8997 * troff/div.cc (page_offset, vertical_position_traps): Treat
8998 invalid argument as missing.
8999 * troff/env.cc (line_spacing, line_length, title_length, indent,
9000 underline, hyphen_line_max_request, control_char,
9001 no_break_control_char, widow_control_request, adjust, input_trap,
9002 point_size): Likewise.
9003 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
9004 constant_space): Likewise.
9005 * troff/input.cc (compatible, shift, warn_request,
9006 set_escape_char): Likewise.
9008 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
9009 * tbl/table.cc (table::table): Likewise.
9011 * Makefile.dev (install_dev): depends on $(DEVFILES).
9013 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
9015 * devX75, devX75-12, devX100, devX100-12: New directories.
9016 * Makefile.in: Add these to DEVDIRS.
9018 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
9019 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
9020 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
9021 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
9023 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
9024 (uninstall): New target.
9025 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
9026 uninstall_prog, uninstall_dev): New targets.
9028 * troff/div.cc (return_request): Treat an invalid argument as
9031 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
9033 * tmac/tmac.e ((f): Set up the environment even when there's a
9034 current diversion. Transperently throughput a call to @N.
9037 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
9039 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
9040 up to vertical resolution.
9042 * tbl/table.cc (table::do_row): Change row number after printing
9045 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
9047 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
9049 * Rename CHANGES to NEWS.
9051 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
9053 * libgroff/new.cc (operator new): Avoid calling malloc(0).
9055 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
9057 * man.ultrix: Removed.
9059 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
9061 * Makefile.comm (extraclean): Delete files whose names begin with
9064 * pic/troff.cc (troff_output::text): Fix typo in implementation of
9067 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
9069 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
9070 * troff/div.cc (page_length, need_space, space_request): Treat
9071 invalid optional argument as missing.
9072 * troff/env.cc (number_lines): If the first argument is present
9073 but not a number, turn on line numbering, don't change the next
9074 line number and parse the remaining arguments.
9076 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
9078 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
9080 * eqn/box.h: Change declaration accordingly.
9081 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
9082 the specified size was bad but don't give an error. Check for
9084 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
9085 * eqn/lex (do_size): Likewise.
9087 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
9089 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
9092 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
9094 * tbl/table.cc (table::init_output): Improve error message when
9095 table won't fit on one page.
9097 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
9099 * pic/troff.cc (troff_output::start_picture): Generate line
9100 containing a horizontal motion equal to the width of the picture.
9102 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
9103 using GROFF_COMMAND_PREFIX environment variable.
9105 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
9107 * mdate.sh: Use $NF rather than $(NF).
9109 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
9111 * pic/main.cc (main): Use %1 not %c in argument to warning.
9113 * eqn/main.cc (main): Output code to check that geqn was given the
9116 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
9118 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
9119 `ln -s ../Makefile .; make; rm -f Makefile'.
9121 * troff/hyphen: Rename to...
9123 * troff/input.cc (main): Delete -H option. Don't call
9125 * troff/env.cc: Include searchpath.h and macropath.h.
9126 (exception_dictionary): Deleted.
9128 (read_hyphen_file): Deleted.
9129 (hyphenation_language): New struct.
9130 (class trie, class hyphen_trie): Move declarations up.
9131 (trie_node::~trie_node): Deleted.
9132 (trie::delete_trie_node): New function.
9133 (trie::do_delete): New pure virtual function.
9134 (hyphen_trie::do_delete): New function.
9135 (trie::~trie): New function.
9136 (hyphen_trie::~hyphen_trie): New function.
9137 (trie::clear): No need to chcek that tp is not 0.
9138 (current_language, language_dictionary): New variables.
9139 (hyphen_word): Give an error if no current language. Use
9140 exceptions dictionary in current language.
9141 (hyphen_trie::read_patterns_file): Find file using macro_path.
9142 Allow comments (starting with %) in patterns file. Don't make it
9143 a fatal error if the file can't be found.
9144 (hyphenate): Return if no current language. Get the exceptions
9145 dictionary and the hyphenation patterns from the current language.
9146 (set_hyphenation_language): New variable.
9147 (hyphenation_patterns_file): New function.
9148 (hyphenation_language_reg): New class.
9149 (hyphenation_language_reg::get_string): New function.
9150 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
9151 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
9153 * groff/groff.cc (main, help, synopsis): Delete -H option.
9154 * include/Makefile.sub: Don't define HYPHENFILE.
9155 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
9156 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
9157 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
9158 hyphenation patterns.
9160 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
9162 * eqn/neqn.sh: New file.
9163 * eqn/Makefile.sub: Handle neqn.sh.
9165 * eqn/eqn.h: Declare `nroff' variable.
9166 * eqn/box.cc (param_table): Add `nroff' param.
9168 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
9170 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
9172 * troff/troff.h (WARN_FONT): New warning.
9173 (WARN_TOTAL): Change accordingly.
9174 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
9175 (warning_table): Add WARN_FONT.
9176 * troff/node.cc (mount_font_no_translate): Pass argument to
9177 font::load_font. If this is non-zero, give a warning.
9178 Don't give an error message when accessing a font that has already
9179 been found to be invalid.
9180 * include/font.h (font::load, font::load_font): Add additional
9181 optional argument which suppresses error message if the font is
9183 * libgroff/font.cc (font::load_font): Handle additional argument.
9184 (font::load): Add additional argument. If this is non-null, set it
9185 to 1 and don't give error message.
9187 * include/printer.h (printer::end_page): Add argument giving
9189 * libdriver/input.cc (do_file): Pass this.
9190 * grops/ps.cc (ps_printer::end_page): Add argument.
9191 * grodvi/dvi.cc (dvi_printer::end_page,
9192 draw_dvi_printer::end_page): Add argument.
9193 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
9194 columns_per_page members. New member nlines.
9195 (DEFAULT_LINES_PER_PAGE): Deleted.
9196 (tty_printer::tty_printer): Don't compute lines_per_page from
9197 font::paperlength. Don't compute columns_per_page from
9199 (tty_printer::add_char): Don't check horizontal position against
9200 columns_per_page. Grow glyphs vector if neccessary.
9201 (tty_printer::end_page): Add argument giving page_length in units.
9202 Discard lines past end of page.
9204 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
9206 * tmac/tmac.tty-char: Fix definition of \(/l.
9208 * tmac/tmac.X: Define \(en.
9210 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
9212 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
9213 lpq, then use lp rather than lpr.
9215 * tmac/tmac.s (par@reset): Don't call `ad'.
9216 (par*env-init): Call `ad'.
9218 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
9220 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
9223 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
9224 * indxbib/indxbib.cc: Likewise.
9226 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
9228 * libgroff/putenv.c: New file.
9229 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
9230 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
9231 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
9232 stdlib.h with AC_HAVE_HEADERS.
9234 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
9236 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
9239 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
9241 * eqn/box.cc (gsize): Make it an int.
9242 (set_gsize): Parse argument handling increment or decrement.
9243 (box::top_level): Convert gsize to a string.
9245 * troff/input.cc (exit_troff): Make buf unsigned char [].
9246 Call to make_temp_iterator casts buf to char*.
9248 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
9250 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
9251 * Makefile.cpg (depend.temp): Likewise.
9253 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
9255 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
9257 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
9259 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
9261 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
9263 * Version 1.06 released.
9265 * Integrate mm 1.04.
9267 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
9269 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
9271 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
9273 * afmtodit/afmtodit.pl: Add -n option that disables generation of
9275 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
9276 afmtodit. Regenerate.
9278 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
9279 @f back past the current position.
9281 * tmac/tmac.e: Change calls to @R so that comments are not part of
9284 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
9286 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
9288 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
9289 check that we can link a call to a function declared in <stdio.h>.
9290 (GROFF_UNISTD_H): New macro.
9291 * configure.in: Call it.
9292 * Makefile.in: Document it.
9293 * include/posix.h: New file.
9294 * troff/troff.h: Don't include <osfcn.h>
9295 * troff/input.cc: Include posix.h.
9296 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
9298 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
9299 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
9301 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
9302 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
9303 * libbib/search.cc (O_RDONLY): Delete definition.
9304 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
9305 Don't include <osfcn.h>.
9307 * acgroff.m4 (GROFF_TIME_T): New macro.
9308 * configure.in: Call it.
9309 * Makefile.in: Document it.
9311 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
9312 * configure.in: Call it.
9313 * Makefile.in: Document -DTRADITIONAL_CPP.
9314 * include/ptable.h: Don't include generic.h.
9317 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
9318 Afterwards remove [T1 and [T2.
9319 (ref*spec!0, ref*spec!2): Use T1 rather than T.
9320 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
9321 (ref*add-T2): Renamed from ref*add-T.
9322 (ref*add-T1): New macro.
9324 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
9326 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
9328 * libbib/index.cc: Include <fcntl.h>.
9329 (O_RDONLY): Define if necessary.
9330 (make_index_search_item, index_search_item_iterator::get_tag,
9331 index_search_item::check_files): Use O_RDONLY.
9332 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
9333 (O_RDONLY): Define if necessary.
9334 (search_list::add_file): Use O_RDONLY.
9335 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
9337 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
9340 * libbib/index.cc (S_ISREG): Define it if necessary.
9341 (index_search_item::load): Use S_ISREG.
9343 * include/driver.h: Include <errno.h>.
9345 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
9347 * eqn/box.cc (body_height): Increase default value to 85.
9348 (body_depth): Increase default value to 35.
9350 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
9352 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
9353 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
9354 protected from expansion with \E.
9356 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
9358 * Makefile (Makefile): New target.
9360 * Makefile.sub (configure, distfiles): New targets.
9362 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
9365 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
9367 * eqn/box.cc (param_table): Add body_height and body_depth.
9369 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
9371 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
9373 * psbb/Makefile.sub: Don't link with libgroff.a.
9375 * acgroff.m4 (GROFF_PUTENV): New macro.
9376 * configure.in: Call GROFF_PUTENV.
9377 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
9378 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
9381 * troff/env.cc (distribute_space): Rename force_forward argument
9382 to force_reverse. Reverse the list if force_reverse is true.
9384 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
9386 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
9388 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
9389 height or depth to be negative. Guard against SUP_RAISE quantity
9392 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
9394 * devps/generate/textmap: Add `an' (arrowhorizex).
9395 * tmac/tmac.ps: \(an overlaps horizontally.
9396 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
9398 * devps/symbolchars: Add arrowverttp, arrowvertbt.
9399 * devps/textmap: Add arrowvertex.
9400 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
9401 updownarrow delimiters.
9402 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
9404 * tbl/table.cc (simple_entry::position_vertically,
9405 block_entry::position_vertically): For a centered entry, perform
9406 the motion in two stages.
9408 * refer/refer.cc (split_punct): Don't call lookup_token if there
9411 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
9413 * troff/input.cc (token::next): Delete token_node after copying
9416 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
9419 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
9421 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
9423 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
9425 * grops/ps.cc (usage): -b option takes an argument.
9427 * devps/prologue (PLG): New procedure.
9428 * grops/ps.cc (main, usage): New -g option.
9429 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
9432 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
9434 * include/cset.h: Include <limits.h> if we have it.
9436 * libgroff/illegal.cc: New file.
9437 * include/lib.h (illegal_input_char): Use table.
9438 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
9439 * pic/lex.cc (ARG1): Renumber to 14.
9440 * eqn/lex.cc (ARG1: Likewise.
9442 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
9443 (eg 1.05.90) correctly.
9445 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
9447 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
9448 Rename $r and $R registers to $v and $V.
9449 ($r, $R): Initialize to 0.
9450 (@v, @V): New macros.
9454 * troff/input.cc (main, usage): Add -R option that says not to
9456 * eqn/main.cc (main, usage): Rename -n to -R.
9458 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
9460 * devps/DESC.in: Leave font positions 5-9 blank.
9461 * devdvi/DESC.in: Likewise.
9463 * grog/grog.pl: Handle `.PS <file' correctly.
9465 * troff/input.cc (input_stack::push): Improve error message when
9466 input stack limit exceeded.
9468 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
9470 * refer/refer.cc (main): Fix typo in handling of `a' option.
9472 * refer/refer.cc (do_bib): In state START after a newline remain
9475 * groff/groff.sh: Deleted.
9476 * groff/Makefile.sub: Delete handling of groff.sh.
9478 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
9479 to determine whether to use \X'ps:...'.
9480 * tmac/troffrc: Set 0p register to 0.
9481 * tmac/tmac.ps: Set 0p register to 1.
9483 * groff/groff.cc: Support -X option. Give warning for -TXps and
9484 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
9485 * tmac/troffrc: Support -r.X=1.
9487 * pic/troff.cc (troff_output::dot): Don't test
9488 zero_length_line_flag.
9490 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
9492 * include/lib.h: Declare getopt() and friends unless
9493 STDLIB_H_DECLARES_GETOPT is defined.
9495 * doc/chars.tr: Delete.
9496 * man/groff_char.man: New file.
9498 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
9500 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
9501 user has changed register format.
9503 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
9505 * groff/groff.cc: Get rid of device_table. Get postprocessor from
9506 `postpro' command in DESC file. Get spooler command from `print'
9507 command in DESC file. Execute spooler command with /bin/sh.
9509 * groff/groff.cc: Split Unix-specific parts into...
9510 * groff/pipeline.c: New file.
9513 * COPYING: New file.
9514 * all files: Update copyright notices.
9516 * Rearrange files. Redo Makefiles. Use autoconf.
9518 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
9520 * troff/input.c (charinfo_to_node_list): Interpret character
9521 definition with escape_char of `\'.
9523 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
9525 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
9526 Define INT_DIGITS as big enough for 64-bit integer.
9527 * lib/strtol.c: Don't include lib.h.
9528 * lib/lib.h: Delete ifdef __cplusplus stuff.
9530 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
9532 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
9533 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
9534 get DESC from current directory.
9536 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
9538 * tbl/main.c (main): Always reset the line number when reading
9541 * tbl/table.c (table::print_single_hline, table::print_double_hline,
9542 table::define_bottom_macro, table::do_row, table::do_top): Round
9543 vertical spacing up to vertical resolution.
9545 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
9547 * ps/ps.h (enum resource_type): Avoid comma at end of
9549 * dvi/dvi.c (class dvi_printer): Likewise.
9550 * dvi/tfmtodit.c (gf::load): Likewise.
9551 * refer/label.y (struct expression): Likewise.
9552 * refer/refer.c (class label_processing_state): Likewise.
9553 * refer/indxbib.c (do_file): Likewise.
9554 * troff/troff.c (enum warning_type): Likewise.
9555 * tbl/main.c (process_data): Likewise.
9556 * troff/charinfo.h (class charinfo):
9558 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
9560 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
9562 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
9564 * groff.c: Move to new groff subdirectory.
9565 * groff/Makefile: New file.
9566 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
9568 * man/mdate.sh: Use ls -L if supported.
9570 * Consolidate all header files produced by gendef into lib/defs.h.
9571 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
9572 Don't include path.h.
9573 * lib/Makefile (path.h): Don't generate.
9574 * troff/input.c: Include defs.h. Don't include config.h.
9575 * troff/Makefile (config.h): Don't generate.
9576 * refer/index.h: Don't include suffix.h.
9577 * refer/index.c: Include defs.h.
9578 * refer/indxbib.c: Include defs.h.
9579 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
9581 * refer/Makefile (suffix.h, path.h): Don't generate.
9582 * groff.c: Don't include config.h. Include defs.h.
9583 * Makefile (config.h): Don't generate.
9584 (lib/defs.h): Generate.
9585 (topclean): Remove lib/defs.h.
9587 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
9589 * lib/malloc.c, lib/getpagesize.h: Deleted.
9590 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
9592 * lib/Makefile: Delete malloc-related stuff.
9593 * lib/new.c: Workaround COOKIE_BUG if necessary.
9595 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
9596 needed header files directly.
9597 * refer/refer.h: Omit definition of DEFAULT_INDEX.
9598 * Makefile: Include definition of DEFAULT_INDEX in path.h.
9600 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
9602 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
9604 * lib/font (font::load_desc, font::load): Don't split argument of
9606 (font::handle_unknown_font_command): Change type.
9607 * ps/ps.c (ps_font::handle_unknown_font_command,
9608 handle_unknown_desc_command): Change type.
9609 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
9611 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
9613 * lib/font.h (font::handle_unknown_font_command): Add file and
9615 * lib/font.c (font::handle_unknown_font_command):
9616 * ps/ps.c (ps_font::handle_unknown_font_command):
9617 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
9618 lineno arguments. Use _with_file_and_line functions for error
9621 * lib/fontfile.c (font::unknown_desc_command_handler): New static
9623 * lib/font.c (font::set_unknown_desc_command_handler): New
9625 (font::load_desc): For unknown commands, call
9626 unknown_desc_command_handler if not null.
9627 * lib/font.h (class font): Declare them.
9628 (FONT_COMMAND_HANDLER): New typedef.
9629 * ps/ps.c (handle_unknown_desc_command): New function.
9630 (main): Set bflag if we had a -b option. Call
9631 font::set_unknown_desc_command_handler.
9632 (broken.h): Don't include.
9633 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
9635 * ps/devps/Makefile: Add `broken' command to DESC file using
9636 BROKEN_SPOOLER_FLAGS.
9638 * macros/tmac.e ([, ]): Add as synonyms for { and }.
9640 * macros/tmac.e ($p): Only exdent if \$3 > 0.
9642 * macros/tmac.e (@R, @S): New macros.
9643 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
9644 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
9645 Declare $H, $[0-9], .. macros with @S.
9646 Declare |0, |1, |2, |3 strings with @S.
9648 * macros/tmac.e (@S): Rename to @U.
9650 * macros/tmac.e (@z): Define @b and bp as empty instead of
9653 * macros/tmac.e (@m): Deleted.
9654 (@h): Don't call @m.
9655 (@z): Don't set @m trap.
9657 * macros/tmac.e ($h, $f): Define |z as empty string.
9659 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
9662 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
9664 ()f): Likewise for * register.
9666 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
9667 argument is missing, don't change $R. Call sr with three
9668 arguments when initializing.
9670 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
9672 * macros/tmac.e (sr): New macro.
9673 Initialize $r and $R using sr.
9675 * macros/tmac.e (,): Delete \*(#[.
9677 * troff/env.c (set_tabs): Read the tab type even if the position
9678 is bad. Allow the position of the first tab stop to be negative.
9680 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
9682 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
9684 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
9685 rather than -DPATHCONF_MISSING.
9686 * Makefile: Get rid of PATHCONF_MISSING.
9688 * refer/map.c: New file.
9689 * refer/index.c: Interface to mmap through map.c. Rename map_size
9691 * refer/Makefile: Handle map.c.
9692 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
9694 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
9696 * Makefile: RANLIB should be `true' if there is no ranlib.
9697 * lib/Makefile (libgroff.a): Simplify.
9698 * driver/Makefile (libdriver.a): Simplify.
9700 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
9701 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
9704 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
9706 * troff/env.c (compare_ranges): Declare as extern "C".
9708 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
9710 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
9712 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
9714 * pic/troff.c (troff_output::text): Merge in grops_output::text,
9715 but conditionalize use of \X based on \*(.T.
9716 (grops_output::*): Deleted.
9717 * pic/output.h: Delete declaration of make_grops_output.
9718 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
9719 by default. -n sets it to 0.
9720 (usage): Corresponding changes.
9721 * groff.c (main): Don't pass -x or -p to pic.
9722 * groff.sh: Likewise.
9724 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
9727 * ps/devps/afmtodit: Change calculation of asc_boundary and
9728 desc_boundary. Make these bounds inclusive.
9729 * ps/devps: Regenerate font files.
9731 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
9733 * macros/tmac.latin1: New file.
9734 * macros/tmac.tty-char: Use tmac.latin1.
9735 (tmac.tty-tr): Deleted.
9736 * macros/Makefile: Install tmac.latin1.
9737 * macros/tmac.dvi: Use tmac.latin1.
9738 * macros/troffrc: Translate \[char160] onto no-break space here.
9739 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
9741 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
9743 * macros/tmac.Xps: Use `do' request.
9745 * macros/tmac.ps: Use `do' request.
9747 * macros/tmac.e (@C): Use `do' request.
9749 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
9750 * macros/Makefile: Install tmac.X*.
9752 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
9753 * tty/Makefile: Don't install tmac.tty*.
9754 * macros/Makefile: Install tmac.tty*.
9756 * dvi/tmac.dvi: Move to macros.
9757 * dvi/Makefile: Don't install tmac.dvi.
9758 * macros/Makefile: Install tmac.dvi.
9760 * ps/tmac.ps*: Move to macros.
9761 * ps/Makefile: Don't install tmac.ps*.
9762 * macros/Makefile: Install tmac.ps*.
9764 * eqn/box.c: Provide draw_lines parameter corresponding to -D
9766 * macros/eqnrc: Set draw_lines parameter based on device.
9767 * groff.c: Don't pass -D flag to eqn.
9768 * groff.sh: Likewise.
9769 * eqn/main.c: Warn about use of -D.
9771 * troff/input.c (process_startup_file): New function.
9772 (main): Call process_startup_file().
9773 * macros/troffrc: New file.
9774 * macros/Makefile: Install troffrc.
9775 * groff.c (main): Don't pass extra -m option to troff. For a
9776 pseudo device pass the name of the pseudo device to troff using
9778 * groff.sh: Likewise.
9779 * groff.c (possible_command::prepend_arg): Deleted.
9781 * troff/input.c (do_request): New function.
9782 (init_input_requests): Bind "do" to do_request.
9784 * eqn/main.c (main): Instead of loading eqnchar from device directory,
9785 load eqnrc from macro directory.
9786 * macros/eqnrc: New file.
9787 * macros/Makefile: Install eqnrc.
9788 * ps/devps/eqnchar: Deleted.
9789 * ps/devps/Makefile: Don't install eqnchar.
9790 * dvi/devdvi/eqnchar: Deleted.
9791 * dvi/devdvi/Makefile: Don't install eqnchar.
9792 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
9795 * lib/device.[ch]: New files.
9796 * lib/font.h (font::set_device_name, font::get_device_name):
9798 * lib/fontfile.c: Use device.h.
9799 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
9800 * troff/input.c: Delete definition of `device'.
9801 (main): Don't initialize device.
9802 * troff/troff.h: Include device.h rather than declaring device.
9803 * troff/Makefile: No need to handle DEVICE.
9804 * driver/input.c: Include device.h. Don't use
9805 font::{set,get}_device_name.
9806 * groff.c, Makefile: Rename device.h to config.h.
9807 * groff.c: Use library device variable.
9808 * eqn/main.c: Use library device variable.
9809 * eqn/Makefile: No need to handle DEVICE.
9811 * lib/searchpath.[ch]: New files.
9812 * lib/Makefile: Handle searchpath.[ch].
9813 * troff/input.c (open_file, init_dirs): Deleted.
9814 (macro_dirs): Deleted.
9815 (open_mac_file, macro_source): Use class search_path.
9816 (add_string, struct string_list): Move definition.
9817 (main): Change -M option to use macro_path. Delete call to
9819 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
9820 Rewrite to use class search_path.
9821 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
9822 * lib/Makefile: fontfile.c depends on searchpath.h.
9823 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
9825 * lib/macropath.[ch]: New files.
9826 * troff/Makefile: No need to handle MACROPATH.
9828 * troff/input.c: Delete DUMP code.
9829 * lib/fontfile.c, lib/font.h: Delete
9830 font::forget_command_line_font_dirs.
9832 * troff/input.c (push_token): New function.
9833 (handle_first_page_transition): Use push_token().
9834 (process_input_stack): Change handling of a space at the beginning
9837 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
9839 * troff/input.c (font_dirs): Delete unused variable.
9841 * eqn/lex.c (do_set): Correct error messages.
9843 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
9845 * troff/input.c (do_define_string): Allow the string name to be
9846 followed immediately by a tab.
9847 (define_character): Likewise.
9849 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
9851 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
9854 * troff/input.c (input_iterator::is_file): New virtual function.
9855 (file_iterator::is_file): New function.
9856 (input_stack::end_file): New function.
9857 (input_stack::next_file): Handle the situation where there is no
9858 file on the input stack correctly. Avoid making two passes over
9860 (next_file): Make the filename optional; in this case call
9861 input_stack::end_file().
9863 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
9865 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
9866 produce a real _ charater when the current font is CW and _
9869 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
9870 expression to work around gcc 2.2 bug.
9872 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
9874 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
9876 * troff/env.c (environment::add_padding): New function.
9877 (environment::add_char): Use add_padding().
9878 (environment::space): Likewise.
9879 (environment::wrap_up_field): Add some padding if there is none
9880 and there's no current tab.
9881 * troff/env.h: Declare environment::add_padding.
9883 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
9885 * pic/pic.y: undef fmod and rand before declaring them.
9887 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
9889 * troff/input.c (main): If the DESC file specifies a font name of
9890 0, then leave the corresponding font position empty.
9892 * nroff.sh: New file.
9893 * Makefile (install.nobin): Install nroff.sh.
9895 * tty/devlatin1/R.proto: Add ao as synonym for de.
9896 * tty/tmac.tty-char: Define ao as o.
9898 * tty/dev{ascii,latin1}/R.proto: Add aq.
9899 * tty/tmac.tty-char: Delete definition of aq.
9901 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
9903 * troff/input.c (init_charset_table): Don't translate 0240.
9904 * ps/tmac.ps: Translate char160 to space.
9905 * dvi/tmac.dvi: Likewise.
9906 * tty/tmac.tty: Likewise.
9908 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
9910 * dvi/tmac.dvi: Add support for all Latin-1 characters.
9912 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
9913 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
9916 * tty/tmac.tty-char: Add \(ah.
9918 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
9919 No need to define \(FM and \(!/. Conditionalize all character
9922 * ps/devps/lgreekmap: Add +h, +f, +p.
9924 * ps/tmac.psnew: New file.
9925 * ps/Makefile: Install tmac.psnew.
9927 * troff/input.c (charinfo_to_node_list): Don't ever interpret
9928 character definitions in compatible mode.
9930 * troff/input.c (remove_character): New function.
9931 (init_input_requests): Bind remove_character to "rchar".
9933 * ps/tmac.psold: New file.
9934 * ps/Makefile: Install tmac.psold.
9935 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
9936 characters into tmac.psold. Make these definitions unconditional.
9938 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
9940 * ps/tmac.ps: Don't define \('c and \('C.
9942 * ps/devps/textmap: Move Greek characters to...
9943 * ps/devps/symbolchars:
9945 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
9947 * ps/devps/text.enc: Add quotesingle.
9948 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
9949 * tty/tmac.tty-char: Likewise.
9950 * dvi/devdvi/texmi.map: Add +h, +f, +p.
9951 * dvi/devdvi/texi.map: Add Fn.
9952 * dvi/devdvi/msam.map: Add lz.
9953 * dvi/tmac.dvi: Handle Bq, bq, aq.
9955 * pic/lex.c (get_token): Recognize 'th.
9956 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
9958 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
9960 * ps/devps/textmap: Move di, mu, +- to...
9961 * ps/devps/symbolchars:
9963 * macros/tmac.s (@XS): Don't call par@reset or fi.
9964 (XA): Call LP. Turn off adjustment. Reduce line length.
9966 * macros/tmac.s: Initially alias XS to LP.
9967 (XS): Rename to @XS.
9968 (cov*ab-init): Alias XS to @XS.
9970 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
9972 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
9973 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
9974 (token::is_size, token::changes_env): Deleted.
9975 * troff/number.c (parse_term): No need to process \s explicitly.
9976 Call tok.next() only after scale indicator has been processed.
9977 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
9979 (token::next): Handle \s, \f, \S, \H immediately rather than
9980 returning them as tokens.
9981 (token::operator==, token::description, token::add_to_node_list,
9982 token::process): Remove handling of deleted tokens.
9984 * troff/env.c (environment::add_char): When adding padding
9985 indicator character, call start_line() if necessary.
9987 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
9989 * ps/devps/afmtodit: Don't output 0 kerns.
9991 * ps/devps/afmtodit: Remove directory from name of encoding in
9992 font description file.
9994 * ps/devps/afmtodit: Improve error messages.
9996 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9998 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9999 * ps/devps/FontMakefile: Deleted.
10000 * ps/devps/afmname: New file.
10002 * ps/devps/symbol.sed: New file.
10003 * ps/devps/symbol.diff: Deleted.
10004 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
10005 Generate zapfdr.afm from zapfd.afm.
10007 * tty/tmac.tty (tty-char): Prefix definition with ".
10009 * macros/tmac.an (TP): Don't start a diversion if one has already
10012 * tty/tmac.tty-char: Add Latin-1 characters.
10014 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
10016 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
10018 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
10019 Move declaration of struct horizontal_span.
10021 * tbl/table.c (table::table): Initialize span_list.
10022 (table::~table): Delete span_list.
10024 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
10026 * ps/devps/Makefile: Avoid dependency on GNU make.
10028 * ps/tmac.ps: Check that character does not already exist before
10031 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
10032 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
10033 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
10036 * tty/tmac.tty-char: New file.
10037 * tty/Makefile: Install tmac.tty-char.
10038 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
10041 * tty/tmac.tty: Fix definition of \(34.
10043 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
10044 bracket-drawing characters onto |. Add *o.
10046 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
10047 only if current_field.
10049 * troff/dictionary.c (dictionary::lookup): Free old_table after
10052 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
10054 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
10055 whose glyphs are identical to glyphs of some Roman character.
10057 * tty/devlatin1/R.proto (bu): Deleted.
10058 * tty/devascii/R.proto (bu): Deleted.
10059 * tty/tmac.tty: Add definition of \(bu.
10061 * eqn/main.c (do_file): Pass FILE as argument.
10062 (main): Automatically load eqnchar. New options -F and -n.
10063 Pass do_file an opened FILE.
10064 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
10065 No need to include font.h.
10066 * groff.sh: Likewise. Don't need to use - for standard input.
10067 Prefix files with -- if first file starts with -.
10069 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
10071 * troff/env.c (environment::possibly_break_line): Don't set line
10072 to 0 across call to output_line(). Don't call output_line() until
10073 after discarding nodes after break.
10075 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
10077 * request.h (macro::empty): Declare it.
10078 * input.c (macro::empty): New method.
10079 (interpolate_macro): Don't give a WARN_SPACE if the two-character
10082 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
10084 * troff/env.c (environment::start_field): Decrement space_total
10085 when a space is frozen.
10087 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
10089 * macros/tmac.an (R): Delete macro.
10091 * troff/input.c (get_copy, token::next): Support \# (like \" but
10092 newline is ignored).
10094 * troff/input.c (token::next): Fix error message in 'Y' case.
10096 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
10098 * eqn/delim.c (define_extensible_string): Recognize any prefix of
10101 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
10103 * c++test.c: Include <osfcn.h>.
10105 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
10108 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
10110 * tbl/table.c (table::divide_span): Don't count column separation
10111 if expand was specified.
10113 * tbl/main.c (process_format): Don't ignore width specs in
10114 continued format. Give warning for changing equal widths or
10115 column separation in continued format.
10116 (process_data): Set column separation, minimum width, equal
10117 columns at end of table.
10119 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
10121 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
10122 node::add_discretionary_hyphen): Use soft_hyphen_char.
10123 (set_soft_hyphen_char): New function.
10124 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
10126 * Makefile (c++tested): Give more helpful message if test fails.
10128 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
10130 * troff/input.c (init_charset_table): Translate 0240 to
10131 an unbreakable space.
10133 * troff/token.h (token::hyphen_indicator): New function.
10134 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
10136 * troff/input.c (translate): Allow translation to \%.
10137 * troff/node.c (node::add_char): Handle
10138 TRANSLATE_HYPHEN_INDICATOR.
10139 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
10141 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
10144 * tty/devlatin1/R.proto: \(hy and - should print as 055.
10146 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
10148 * groff.c (run_commands): If the last command gets a SIGPIPE send
10149 a SIGPIPE to all children than haven't yet terminated. When
10150 command terminates, set pid field to -1.
10152 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
10154 * groff.c (main): Pass an appropriate -filename option to gxditview.
10156 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
10158 * Makefile.bd (install): Remove existing program before copying.
10160 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
10161 programs which have Unix counterparts to be installed with
10162 user-specified prefix.
10164 * troff/input.c (exit_troff): Don't check if exit_started.
10165 (exit_request): Don't call exit_troff if exit_started.
10167 * Makefile.bd (install.mm): Rename to install.dwbmm.
10169 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
10171 * driver/input.c (do_file): Add missing break for '#' case.
10173 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
10175 * troff/input.c (input_stack::clear): Clear past any boundaries and
10176 then add the boundaries back.
10178 * troff/input.c (exit_troff): Return immediately if already
10181 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
10183 (pg*end-page): If the text has ended and there are no more
10184 footnotes or keeps, exit.
10186 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
10188 * troff/input.c (init_charset_table): Make \(rq transparent by
10191 * macros/tmac.an: Define lq and rq strings.
10193 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
10195 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
10197 * troff/env.c (environment::final_break): New function.
10198 (environment::newline): Set prev_line_interrupted to 2 if
10200 * troff/env.h: Declare environment::final_break.
10201 * troff/input.c (exit_troff): Call environment::final_break()
10202 instead of environment::do_break().
10204 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
10205 doesn't already exist.
10206 * macros/man.local: New file.
10207 * macros/tmac.an: Load man.local.
10208 * macros/man.ultrix: New file.
10210 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
10212 * troff/input.c (exit_groff): Rename to...
10213 (exit_troff): New function.
10215 * troff/div.c (exit_started, done_end_macro,
10216 seen_last_page_ejector): New global variables.
10217 (began_page_in_end_macro): New static variable.
10218 (exit_flag): Deleted.
10219 (top_level_diversion::top_level_diversion): Initialize
10221 (top_level_diversion): More elaborate test for whether
10222 cleanup_and_exit() should be called.
10223 Set began_page_in_end_macro if the end macro isn't yet finished.
10224 * troff/div.h (top_level_diversion::last_page_count): New data
10226 (top_level_diversion::set_last_page): New function.
10227 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
10228 * troff/env.c (do_break): Zero prev_line_interrupted.
10229 * troff/input.c (exit_flag): Delete declaration.
10230 (LAST_PAGE_EJECTOR): New magic cookie.
10231 (token::next): Handle LAST_PAGE_EJECTOR.
10232 (exit_groff): Set exit_started and done_end_macro instead of
10233 exit_flag. Call top_level_diversion::set_last_page. Push a
10234 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
10235 another ejection after setting seen_last_page_ejector.
10237 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
10239 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
10241 * macros/tmac.e (TH): Make sure there's room for the initial
10244 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
10245 Set FVS in points rather than units.
10247 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
10249 * troff/div.c (top_level_diversion::add_trap): Don't consider the
10250 position of empty slots.
10252 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
10254 * ps/devps/S: Fix height and depth of parenrightex.
10255 * ps/devps/symbol.diff: Regenerate.
10257 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
10259 * tmac.e (u): Do underlining as in -mgs.
10261 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
10263 * tty/tty.c (tty_printer::end_page): If overstriking is
10264 suppressed, still turn overstruck horizontal and vertical lines
10267 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
10270 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
10272 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
10274 * Version 1.05 released.
10276 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
10278 * tty/tty.c: Instead of keeping an array of glyphs and then
10279 sorting it, keep a ordered linked list of glyphs for each line.
10281 * driver/driver.h: Include stddef.h.
10283 * tty/tty.c (compare_glyph):
10284 * refer/refer.c (rcompare):
10285 * troff/env.c (compare_ranges): Arguments of qsort comparison
10286 function should be const void *.
10288 * troff/number.c (parse_term):
10289 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
10292 * refer/label.y (consider_authors): Don't access variables
10293 constructed under a condition outside that condition: put braces
10294 round for statement containing declaration; redeclare use of same
10297 * pic/pic.y (text_expr): Delete production that allows
10298 parenthesised text_expr.
10299 (expr): Allow a conditional_expr to appear in parentheses.
10300 (conditional_expr): Rename to any_expr.
10302 * mm: Install new version 1.01 from jh.
10304 * lib/font.c (font::get_width): Cache scaled widths.
10305 (font::font): Initialize widths_cache.
10306 (font::~font): Destroy widths_cache.
10307 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
10309 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
10311 * c++test.c, c++test.ref: New files.
10312 * Makefile: Check that the C++ compiler works.
10314 * ps/tmac.pspic (PSPIC): Do a break.
10316 * ps/tmac.ps: Move definition of PSPIC into...
10317 * ps/tmac.pspic: New file.
10318 (PSPIC): Draw box around picture, but make it invisible to grops.
10319 * ps/tmac.ps: Load tmac.pspic.
10320 * ps/Makefile: Install tmac.pspic.
10322 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
10324 * lib/font.c (scale_round): If n is negative,
10325 subtract .5 before truncating floating point result.
10327 * lib/fontfile.c: Include <errno.h>.
10329 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
10331 * driver/input.c (get_char): Inline. Don't update current_lineno.
10332 Change callers to up date current_lineno if necessary.
10333 Use get_char() instead of getc(current_file).
10335 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
10337 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
10339 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
10341 * tty/tty.c (tmac.tty): Define \(rg as (R).
10343 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
10345 * lib/lib.h: New define a_delete.
10346 * Use a_delete instead of delete when deleting an array of objects
10347 without destructors.
10349 * lib/lib.h: Rename adelete to ad_delete.
10350 * Change uses of adelete.
10352 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
10354 * eqn/eqn.y: Include lib.h.
10356 * troff/node.c (grow_font_table): Delete old_font_table.
10358 * mm: Install new version from jh.
10360 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
10362 * tbl/table.h (format_type): Make global instead of local to class
10363 entry_format. Prefix enumerators with FORMAT_.
10364 * tbl/table.c, tbl/main.c: Corresponding changes.
10365 * refer/token.h (token_type): Make global. Prefix enumerators
10367 * refer/token.[ch]: Corresponding changes.
10368 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
10370 * troff/div.c (node::set_vertical_size): Don't name argument.
10372 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
10374 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
10375 * lib/lib.h: Define adelete accordingly.
10376 * pic/object.c (graphic_object::graphic_object):
10377 * tbl/main.c (format::~format):
10378 * tbl/table.c (table::~table):
10379 * refer/ref.c (reference::~reference, reference::merge,
10380 reference::insert_field, reference::delete_field): Use adelete.
10382 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
10384 * tbl/table.h: Corresponding changes.
10386 * common.c (common_output::dashed_arc, common_output::dotted_arc):
10387 Ensure total_angle is positive.
10389 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
10391 * refer/ref.c (reference::merge, reference::insert_field,
10392 reference::delete_field): Avoid delete[0].
10394 * refer/token.c (init_special_chars): Move calls to cmupper
10395 outside calls to init_two_char_letter to work around bug in gcc
10398 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
10400 * lib/new.c (operator new): Use __builtin_new for g++.
10402 * pic/object.c (graphic_object::~graphic_object): Don't use
10405 * pic/object.c (output::compute_scale): Initialize max_width and
10408 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
10410 * troff/input.c (write_request): Call fflush.
10412 * troff/node.h (class composite_node): Move declaration to node.c
10413 * troff/input.c (charinfo_to_node): Rename to ...
10414 (charinfo_to_node_list): Return node list rather than composite
10416 * troff/node.c (make_composite_node): New function.
10417 (make_node, add_char): Call make_composite_node instead of
10419 (class composite_node): Add a tfont * member. Delete font_size
10421 (composite_node::composite_node, composite_node::copy,
10422 composite_node::size): Corresponding changes.
10423 (composite_node::tprint): Provide constant spacing, emboldening
10424 and track kerning as specified in tfont.
10425 (composite_node::width): Change width calculation accordingly.
10426 * troff/env.h (environment::composite): New member.
10427 (environment::is_composite, environment::set_composite): New
10429 * troff/env.c (environment::environment): Initialize composite.
10430 * troff/input.c (charinfo_to_node): Call
10431 environment::set_composite.
10432 * troff/node.c (make_composite_node, make_glyph_node): Use the
10433 plain version of the tfont if the environment is composite.
10435 * troff/node.c (font_info::get_space_width): Additional argument
10436 giving space_size. Handle constant space correctly. Scale by
10437 space_size unless constant spaced.
10438 (env_sentence_space_width): New function.
10439 * troff/node.h: Declare it.
10440 * troff/env.h (environment::get_space_size,
10441 environment::get_sentence_space_size,
10442 environment::get_narrow_space_width,
10443 environment::get_half_narrow_space_width): Make inline.
10444 (environment::get_space_width): Make inline. Just call
10446 * troff/env.c: Delete definitions for funtions made inline.
10447 (environment::space_newline, environment::space): Use
10448 env_sentence_space_width(). Don't scale by space_size.
10449 * troff/node.h: Move declarations of env*space_width() functions
10452 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
10454 * macros/tmac.s (PS): Don't try to set negative indent.
10456 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
10458 * pic/pic.y: Fix min function.
10460 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
10462 * man/mdate.sh: Clear LANGUAGE.
10464 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
10466 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
10467 * pic/lex.c: New COMMAND keyword.
10468 * pic/pic.y (print_args, print_arg): New rules.
10469 (placeless_element): Use print_args for PRINT.
10470 New COMMAND element.
10472 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
10474 * troff/input.c (terminal): Handle missing argument correctly.
10476 * pic/pic.y (text_expr): New rule.
10478 * pic/pic.y: Implement := operator.
10480 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
10482 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
10485 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
10487 * ps/devps/dingbatsrmap: Include this in the distribution.
10489 * macros/tmac.doc: Replace with new version from 2nd Networking
10490 Release. Fix loading of doc-* files.
10491 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
10492 * macros/tmac.doc.old: New file. Apply fixes that had been
10493 applied to old tmac.doc.
10494 * macros/tmac.andoc: Check that we're running under groff.
10495 * macros/Makefile: Rework.
10497 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
10499 * tbl/table.h (format_type):
10500 * refer/token.h (token_type): If NESTED_TYPES is defined, use
10501 typedef to make these types visible at file scope.
10502 * Makefile: Add NESTED_TYPES configuration option.
10504 * troff/div.c (mark): At the top level use the value of
10505 nl_reg_contents rather than the current vertical position.
10507 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
10509 * tty/tty.c: Implement \D for horizontal or vertical lines.
10510 (tty_printer::set_char): Use vec_used+2 as serial number.
10511 Don't allow size of vector to exceed USHRT_MAX-2.
10512 Split off part into...
10513 (tty_printer::add_char): New function.
10514 (tty_printer::draw): New function.
10515 (compare_glyph): Handle equal serial numbers.
10516 (tty_printer::end_page): Handle overstruck characters from \D.
10517 (main, usage): Implement -d option.
10519 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
10521 * tbl/main.c (process_format):
10522 * eqn/text.c (split_text):
10523 * troff/input.c (token::next): Use inner block for declarations
10524 with initializers in switch statement.
10526 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
10528 * pic/common.c (common_output::dash_line): Cope with zero-length
10531 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
10533 * Version 1.04 released.
10535 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
10537 * macros/tmac.an (TH): Define a macro an-init to define variables
10538 based on command line arguments.
10539 (an-header): Call it.
10541 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
10543 * Makefile (install.mm): Rename to install.dwbmm.
10545 * Makefile: Integrate mm.
10546 * mm: New directory.
10548 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
10550 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
10553 * pic/troff.c (troff_output::simple_spline,
10554 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
10555 shadowing parameter.
10557 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
10559 * lib/ptable.h: Add explicit casts when converting from unsigned
10562 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
10563 * dvi/devdvi/Makefile: Install SA, SB.
10565 * refer/indxbib.c: Add declaration of mktemp.
10567 * refer/lookbib.c: Add declaration of isatty.
10569 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
10571 * pic/lex.c (interpolate_macro_with_args): While collecting
10572 arguments, keep track of whether we're in a string.
10574 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
10576 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
10577 down with \v, so as to avoid problems with top of page trap
10578 setting no space mode.
10580 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
10582 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
10584 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
10586 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
10587 Improve error message.
10589 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
10591 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
10594 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
10596 * groff.c (possible_command::execp): Always use _exit() after a
10599 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
10600 NO_SYS_WAIT_H configuration options.
10601 * groff.c: Use these options. Use POSIX-style macros to extract
10602 fields from the status returned by wait().
10604 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
10606 * tbl/table.c (table::compute_separation_factor): Allow the
10607 separation factor to drop to 0.
10609 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
10611 * refer/search.c: Include <errno.h>.
10613 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
10615 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
10617 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
10620 * pic/lex.c (input_stack::bol): Move definition out of class body.
10622 * pic/main.c: On MSDOS munge argv[0].
10624 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
10626 * lib/ptable.c (hash_string): Use unsigned long rather than
10628 (next_ptable_size): Use unsigned rather than int. Give an error
10629 message if we've hit the largest table size.
10630 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
10633 * pic/object.h (object_spec): Make flags unsigned long. Declare
10634 flags as const unisgned long rather than as enums.
10636 * pic/output.c: Deleted.
10638 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
10640 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
10641 Add additional argument.
10642 (line_entry::note_double_vrule_on_{left,right}): Set value of
10643 douvle_vrule_on_{right,left} flag according to argument.
10644 (simple_line_entry::simple_print,
10645 simple_line_entry::double_line_print): If adjacent to double vrule
10646 on a corner extend rather than shorten the rule by half the double
10649 * troff/number.c (parse_term): In checking for overflow, handle the
10650 case where the current horizontal position is negative.
10652 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
10654 * pic/object.c (draw_arrow): Check for object having zero length.
10656 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
10658 * eqn/main.c (do_file): Split off inline equation handling into...
10659 (inline_equation): New function. Search for starting delimiter
10661 (delim_search): New function. Don't recognize a delimiter that
10662 occurs in the name of an escape sequence, number register, string
10665 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
10667 * eqn/delim.c (delim_box::compute_metrics): Don't call
10668 define_extensible_string if left is 0.
10669 (delim_box::output): Don't print the left delimiter if left is 0.
10670 (delim_box::debug_print): Check for left == 0 before calling printf.
10672 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
10674 * troff/Makefile (majorminor.c): Include only digits in
10677 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
10679 * refer/dirnamemax.c: new file.
10680 * refer/genlimits.c: Deleted.
10681 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
10682 Don't check path length.
10683 * refer/Makefile: Add dir_name_max.o; delete genlimits.
10684 * Makefile: Add PATHCONF_MISSING option.
10686 * refer/indxbib.c (get_cwd): New function.
10687 (main): Use get_cwd().
10688 * lib/getcwd.c: New file.
10689 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
10690 GETCWD in SUBFLAGS.
10691 * lib/Makefile: Compile getcwd.o.
10693 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
10696 * refer/indxbib.c (main): Check success of mktemp.
10698 * lib/tmpfile.c: New file.
10699 * lib/Makefile: Add tmpfile.c.
10700 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
10701 * ps/ps.h: Delete declaration of mktemp().
10702 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
10703 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
10704 * driver/driver.h: No need now to include errno.h.
10706 * everywhere: Set errno to 0 before calling fopen().
10708 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
10709 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
10710 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
10712 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
10714 * troff/env.h (translate_space_to_dummy): Declare it.
10715 * troff/env.c (environment::space_newline, environment::space):
10716 If translate_space_to_dummy is set then make the width of spaces 0.
10717 * troff/input.c (translate): If the second character of a
10718 translation is a space, translate to unbreakable space. If the
10719 first character is a space, set or clear translate_space_to_dummy
10720 according to whether the second character is \&. Weird!
10722 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
10724 * groff.c (run_commands): Don't use non-zero exit code because a
10725 command gets SIGPIPE.
10727 * groff.c, groff.sh: Use -mXps with -TXps.
10729 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
10730 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
10731 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
10732 (ps_printer::special): New specials invis and endinvis.
10733 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
10734 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
10735 (ps_printer::end_page): Check that invis_count == 0.
10736 (ps_printer::invis_count): New member.
10737 (ps_printer::ps_printer): Initialize invis_count to 0.
10739 * troff/env.c (environment::hyphenate_line): Hyphenation
10740 indicator at beginning of word inhibits splitting after -, \(em
10743 * pic/pic.y (element): Allow another element to follow } without
10744 any intervening separator.
10746 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
10748 * pic/lex.c (get_delimited): Allow tabs before delimiter.
10750 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
10752 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
10753 declaration of wait() in header files.
10754 * Makefile: Get rid of -DHAVE_UNION_WAIT.
10756 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
10758 * lib/lib.h: Declare return type of strerror as char *.
10760 * man/Makefile: Add g flag to sed substitutions.
10761 * Makefile (shgroff, bindist): Likewise.
10763 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
10765 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
10766 * ps/devps/prologue (PBEGIN): Define showpage after pushing
10769 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
10771 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
10774 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
10776 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
10779 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
10781 * troff/input.c (define_number_reg): If currently undefined,
10782 don't define it if the argument is an invalid expression.
10784 * Makefile: Ignore return value of `if' commands without `else'
10787 * Makefile: Split up CPPDEFINES into a series of separate
10788 configuration options.
10790 * troff/input.c (init_registers): Use time_t instead of long
10791 unless LONG_FOR_TIME_T is defined. Use returned result rather
10792 than passing pointer.
10793 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
10795 * lib/Makefile (fontpath.h): Use gendef.
10797 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
10799 * troff/input.c (input_iterator::shift): Delete argument name.
10800 * troff/node.c (suppress_output_file::really_begin_page,
10801 suppress_output_file::really_transparent_char, node::ascii_print,
10802 node::tprint): Delete names of unused arguments.
10804 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
10806 * refer/label.y (string): Pass $4 to command_error.
10808 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
10810 * Version 1.03 released.
10812 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
10814 * Makefile: Pass definition of SHELL in SUBFLAGS.
10816 * gendef: New file.
10817 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
10818 ps/Makefile: Use gendef to construct header files that are
10819 constructed from the Makefile.
10821 * macros/Makefile: make all should build stripped version of tmac.e.
10823 * refer/Makefile (clean): Remove y.output.
10825 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
10827 * ps/pfbtops.c (main): Add -v option which prints out a version
10829 * ps/Makefile (pfbtops): Link with libgroff.a.
10831 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
10833 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
10834 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
10836 * refer/lkbib.c (main): Always terminate reference with blank
10838 * refer/lookbib.c (main): Likewise.
10840 * refer/linear.c (file_buffer::load): Check that the file is not a
10843 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
10844 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
10845 Delete second inclusion of <sys/param.h>.
10847 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
10849 * troff/token.h (token::special): Deleted.
10851 * tbl/main.c (process_format): Rework so that opt->tab_char is
10852 recognized only when appropriate.
10854 * ps/Makefile (clean): Remove pfbtops.
10856 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
10858 * lib/font.c (text_file::next): Don't return if we have got a
10861 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
10863 * refer/refer.c (store_reference): Get hash code from old_table[i]
10864 when rehashing the table.
10866 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
10868 * eqn/box.c (box::top_level): Save size and prev size using \R and
10869 restore it afterwards. Set the size to the size at the beginning
10871 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
10872 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
10874 * refer/Makefile (limits.h): Use ./genlimits.
10876 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
10878 * refer/index.c: Delete declarations of stat() and fstat().
10880 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
10882 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
10884 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
10886 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
10888 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
10890 * troff/input.c (token::get_char): Handle \e.
10892 * refer/linear.c: Delete declarations of fstat() and stat().
10894 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
10896 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
10897 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
10899 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
10901 * troff/input.c (do_define_macro): Improve error handling for end
10902 of file while defining macro.
10904 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
10906 * eqn/box.h: Fix declaration of set_gsize.
10907 * eqn/box.c (set_gsize): Make argument const char *.
10908 (gsize): Declare as char *.
10909 * eqn/main.c (main): Don't convert gsize to int.
10910 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
10912 * Version 1.02 released.
10914 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
10916 * macros/tmac.andoc: New file.
10917 * macros/Makefile: Install tmac.andoc.
10919 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
10920 operator new and delete on OP_DELETE_BROKEN not being defined.
10921 * Makefile: Mention OP_DELETE_BROKEN.
10923 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
10925 * Makefile (bindist): Pass SUBFLAGS.
10927 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
10929 * Makefile, groff.c: Pass definitions to groff.c via device.h.
10931 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
10934 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
10936 * ps/ps.h, ps/psrm.c: Make comment_table and
10937 header_comment_table local to resource_manager::process_file.
10939 * groff.sh: With -TXps pass -printCommand option to gxditview.
10941 * groff.c (possible_command::print): Implement using
10942 append_arg_to_string.
10944 * xditview: Merge in new implementation with own ChangeLog.
10946 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
10948 * groff.c (main): Implement PRINT_OPTION.
10949 (append_arg_to_string): New command.
10950 (device_table): Set PRINT_OPTION flag for Xps.
10952 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
10954 * troff/groff.h: Rename to troff.h.
10956 * pic/lex.c (lookup_keyword, docmp): New functions.
10957 (get_token): Use new lookup_keyword.
10958 Don't include key.h.
10959 * pic/key.[ch], pic/pic.gperf: Deleted.
10960 * pic/Makefile: Remove gperf stuff.
10962 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
10964 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
10966 * troff/Makefile, troff/node.c: Move definition of
10967 STORE_WIDTH into node.c.
10969 * etc/grog.pl, etc/grog.sh: Support -mdoc.
10971 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
10973 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
10974 dvi/devdvi/texb.map: Add lq and rq.
10975 dvi/devdvi: Regenerate fonts.
10976 * ps/devps/textmap: Add lq and rq.
10977 * ps/devps: Regenerate fonts.
10978 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
10979 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
10981 * pic/object.c (position_rectangle): When checking radius
10982 cope with possiblity that width or height is negative.
10983 (box_object::box_object): Have separate xrad and yrad with
10984 signs matching signs of dim components.
10985 (box_object::{north,south}_{east,west}): Use xrad and yrad.
10986 (box_object::print): With rounded boxes use absolute values
10987 for dim and rad arguments.
10989 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10992 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10994 * various files: Add explicit destructors to keep Saber CC +d
10997 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
10999 * eqn/box.c (box::top_level): Restore fonts correctly after
11000 font changes in line containing inline equation. Also
11001 restore previous font as well as current font.
11002 * eqn/pbox.h: Define necessary string and register names.
11004 * troff/input.c (token::next): Case 'R' calls do_register.
11005 (do_register): New function.
11007 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
11009 * groff.c, groff.sh: Support Xps device. Allow each device
11010 to have a pseudo_name and a real_name.
11012 * groff.c (run_commands): Don't print `Broken pipe' messages.
11014 * ps/pfbtops.c: New file.
11015 * ps/Makefile: Add pfbtops.
11017 * troff/number.c (parse_term): Improved error message.
11019 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
11021 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
11023 * Makefile: Integrate refer.
11024 * refer: New directory.
11025 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
11026 man/lkbib.man: New files.
11027 * man/Makefile: Support refer man pages.
11029 * lib/lib.h: Declare is_prime.
11030 * lib/prime.c: New file.
11032 * troff/input.c (macro_source): New function.
11033 (init_input_requests): Bind "mso" to macro_source.
11035 * troff/env.c (environment::possibly_break_line): Maintain
11036 pointer to pointer to node to be split in ndp so as to avoid
11037 using address of freed node.
11039 * troff/env.c (environment::hyphenate_line): Maintain pointer to
11040 pointer to first node to be hyphenated in startp so as to
11041 avoid using address of freed node.
11043 * troff/env.c (class trie, class hyphen_trie): Make the
11044 elements of the trie be of type char not unsigned char.
11045 Declare arguments to be const char* instead of unsigned char *.
11047 * troff/env.c (hyphenate): Initialize hbuf[0].
11049 * troff/input.c (set_string): Declare p to be char * and cast
11050 *p to unsigned char when necessary.
11052 * troff/input.c (do_define_macro): Declare s to be const
11053 char*. Cast element to unisgned char when necessary, Declare
11054 d to be an int. Handle EOF better.
11056 * troff/Makefile, troff/input.c: Different scheme for passing
11057 definitions of MACROPATH, HYPHENFILE and DEVICE.
11059 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
11061 * tty/devascii/R.proto: Delete entry for em.
11062 * tty/devlatin1/R.proto: Likewise.
11064 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
11066 * troff/input.c (translate): Stop when we get a space. Treat eof
11069 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
11071 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
11073 * tbl/main.c (process_format): A font name following a `f'
11074 modifier that starts with a digit can be only one character long.
11075 Also deal with EOF on the second character of the font name.
11077 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
11079 * troff/input.c (token::next): Turn \~ into an
11080 unbreakable_space_node.
11081 * troff/node.c (unbreakable_space_node): New class.
11082 * troff/node.h: Declare it.
11084 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
11086 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
11087 it's >= 0, before outputting it as a single byte.
11089 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
11091 * lib/font.c: Make font_char_metric::code an int.
11092 (font::get_code): Change return type to int.
11093 (font::load): Allow code to be arbitrary integer.
11094 * lib/font.h (font::get_code): Change return type to int.
11095 (font::number_to_index): Change argument type to int.
11096 * troff/input.c (token::next): In case 'N', allow any value.
11097 Store value in token::val.
11098 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
11099 (token::get_char, token::add_to_node_list, token::process): Get
11101 (charinfo::set_number): Change argument to int.
11102 (charinfo::get_number): Require that NUMBERED flag be set.
11103 (get_charinfo_by_number): Store numbered characters not between 0
11104 and 255 in a dictionary.
11105 * troff/charinfo.h (get_charinfo_by_number): Change argument type
11107 (charinfo::number): Change type to int.
11108 (charinfo::set_number): Change type of set_number to int.
11109 * troff/node.c (troff_output_file::put_char_width,
11110 troff_output_file::put_char): Test whether character is numbered
11111 using charinfo::numbered().
11112 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
11114 * lib/nametoindex.c: New implementation to cope with arbitrary
11117 * troff/input.c (token::operator==): Test val for
11118 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
11121 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
11122 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
11124 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
11126 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
11129 * all Makefiles: rm targets of cp and >.
11131 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
11134 * eqn/lex.c (def_table): Add dollar.
11136 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
11138 * troff/input.c (do_width): Push back newline before closing delim
11141 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
11143 * groff.c (possible_command::prepend_arg): New function.
11144 (main): Prepend device -m option.
11145 * groff.sh: Put device -m options before command-line options.
11147 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
11149 * macros/tmac.an (IP): Quote argument to TP.
11151 * ps/ps.c (main): New option -b, which sets...
11152 (broken_flags): New variable.
11153 (ps_printer::~ps_printer): Incorporate the setup section in the
11154 prolog if (broken_flags & NO_SETUP_SECTION).
11155 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
11156 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
11157 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
11158 ps_printer::print_needed_font_comment,
11159 ps_printer::print_supplied_font_comment,
11160 ps_printer::print_include_font_comments,
11161 ps_printer::lookup_doc_font, ps_printer::download_fonts,
11162 ps_printer::read_download_file, read_document_fonts, add_font,
11163 skip_line, parse_fonts_arg, document_font::document_font,
11164 document_font::~document_font, document_font::download,
11165 ps_output::include_file): Deleted.
11166 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
11167 rather than %!PS-Adobe-2.0. Make calls to
11168 resource_manager::need_font for each font that we used. Replace
11169 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
11170 print_supplied_font_comment, print_needed_font_comment by call to
11171 resource_manager::print_header_comments. Output %%Orientation
11172 comment. Output %%Requirements: numcopies comment if ncopies > 1.
11173 Don't output the prolog directly. Instead call
11174 resource_manager::output_prolog. Only define #copies when ncopies
11175 > 1. Delete calls to print_include_font_comments and
11176 download_fonts. Add call to resource_manager::document_setup.
11177 (ps_printer::do_file): Call resource_manager::import_file instead
11178 of including it ourselves.
11179 (ps_printer::do_import): Likewise. Also don't call
11180 merge_import_fonts. Push userdict on the dictionary stack before
11181 and pop it afterwards.
11182 Move declaration of ps_output into ps.h.
11183 * ps/psrm.c: New file implementing resource_manager class.
11184 * ps/ps.h: New file declaring ps_output and resource_manager
11186 * ps/devps/zapfdr.ps:
11187 * ps/devps/symbolsl.ps:
11188 * ps/devps/prologue: Use 3.0 conventions.
11189 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
11190 Add default definition of BROKEN_SPOOLER_FLAGS.
11191 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
11192 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
11194 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
11196 * etc/grog.pl: New file.
11197 * Makefile (GROG): New variable.
11198 Add GROG to SUBFLAGS.
11199 * etc/Makefile (GROG): New variable.
11200 (install.nobin): Install $(GROG) rather than grog.sh.
11202 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
11204 * eqn/special.c (special_box::compute_metrics): Make the input and
11205 output strings the same. Get the new height and depth from the
11206 predefined height and depth registers. Also make subscript kern
11207 and skew available.
11208 (special_box::compute_subscript_kern, special_box::compute_skew):
11211 * eqn/box.c (pointer_box::compute_skew,
11212 simple_box::compute_metrics, box::top_level)
11213 * eqn/text.c (prime_box::compute_metrics,
11214 prime_box::comput_subscript_kern)
11215 * eqn/limit.c (limit_box::compute_metrics):
11216 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
11217 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
11218 negative numbers in `nr' requests with a leading 0.
11220 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
11222 * eqn/special.c: New file.
11223 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
11224 Add new rule for simple.
11225 * eqn/lex.c (token_table): Add SPECIAL.
11226 * eqn/box.h: Declare make_special_box.
11227 * eqn/Makefile: Add special.[co].
11229 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
11231 * ps/devps/prologue: Possibly set packing to true while defining.
11232 Create grops dictionary here. Initialize local variables before
11233 defining procedures.
11234 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
11235 the dictionary stack. Set strokeadjust and overprint to false if
11236 the relevant operators are defined.
11237 (PEND): New procedure.
11238 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
11239 prologue. Do everything else in the setup section.
11240 (ps_printer::do_import): Just call PBEGIN and PEND around the
11241 picture. Also push userdict before, and pop it afterwards.
11243 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
11245 * troff/node.c (bracket_node::tprint): Brackets were being printed
11248 * macros/tmac.an (SH, SS): Set fill mode.
11250 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
11252 * troff/div.c (top_level_diversion::begin_page): Set
11253 high_water_mark to 0.
11255 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
11257 * man/mdate.sh: New file.
11258 * man/mdate.c: Deleted.
11259 * man/Makefile: Use mdate.sh instead of mdate.
11262 * eqn/lex.c (do_gsize): Supply missing argument to error message.
11264 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
11266 * man/mdate.c: New file.
11267 * man/*.man: Replace modification date by @MDATE@.
11268 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
11269 (mdate): New target.
11271 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
11272 Remove illegal input characters.
11274 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
11276 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
11278 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
11280 * troff/div.c (begin_page): Change behaviour when
11281 !first_page_begun and !break_flag.
11283 * troff/input.c (do_name_test): Return 0 if argument is empty.
11285 * troff/input.c (read_long_escape_name): Require closing ] to be
11286 at same input level as opening [.
11288 * troff/input.c (read_increment_and_escape_name): New function.
11289 (get_copy, process_input_stack): Use this for \n.
11291 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
11293 * troff/div.c (top_level_diversion::begin_page): Ignore the
11294 current value of page_number if !first_page_begun.
11296 * groff.c (main): Fix declaration of buf.
11298 * troff/input.c (do_name_test): New function.
11299 (token::next): Implement \A.
11300 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
11301 (token::description, token::add_to_node_list, token::process):
11302 Handle TOKEN_ESCAPE.
11303 * troff/token.h: New token TOKEN_ESCAPE.
11305 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
11307 * pic/main.c (do_picture): Allow space before and after filename
11308 following `<'. Check that the filename is not empty.
11310 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
11312 * Version 1.01 released.
11314 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
11316 * dvi/tmac.dvi: ftr HR to H.
11318 * macros/tmac.e: Round up computation of $r.
11320 * xditview/tmac.X: Don't give up completely in compatibility mode.
11321 Use \n(.s instead of \n[.s].
11323 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
11324 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
11325 Add u to factors inside \s[...]. Rename frac to dvi-frac.
11326 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
11327 short names in the char definitions.
11329 * ps/tmac.ps: Don't give up completely in compatibility mode.
11330 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
11331 quote in front of \n(.s. Add u to factors inside \s[...].
11333 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
11335 * tty/tmac.tty: Call the nroff request.
11337 * macros/tmac.e ((x, )x): Better definitions that work properly
11339 (@0, @1): Helper macros for (x.
11341 * macros/tmac.e ($s, hl): Use \l rather than \D.
11343 * tty/tmac.tty: Make it work better in compatibility mode.
11344 (pchar): Rename to tty-char.
11346 * macros/tmac.e (@E): New macro.
11347 (r, i, b, rb, bi): Use @E.
11349 * macros/tmac.e (@F): Don't use (;...) syntax.
11351 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
11352 it was modified for groff.
11354 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
11356 * macros/tmac.e (<., .>): Removed.
11357 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
11359 * macros/tmac.e: Remove check that groff is being used.
11361 * macros/tmac.e (@C): Change families only if using groff; turn
11362 compatibility mode off while changing familes. Save compatibility
11363 mode before changing families and restore it afterwards.
11365 * macros/tmac.e (@h): Remove test for offset + line length.
11367 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
11368 (lo, th, ac): Define to call @S instead of using als.
11370 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
11371 the ratio of the vertical spacing to the point size in units
11372 expressed as a percentage. Use these instead of $10r and $10R,
11373 Delete $10r and $10R.
11375 * lib/font.c (font::load): In default computation of space_width,
11376 divide by sizescale. Use scale_round.
11378 * macros/tmac.an (TP): Don't call `nf'.
11379 (an-do-tag): Don't call `fi'.
11381 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
11383 * troff/input.c (process_input_stack): Handle the case where
11384 spaces at the beginning of an input line are followed by a
11387 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
11389 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
11390 * groff.sh: Use pic -x with the dvi device.
11392 * dvi/devdvi/FontMakefile (H): Don't use -s.
11394 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
11395 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
11396 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
11399 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
11401 * ps/psfig.diff: New file.
11402 * ps/tmac.psfig: New file.
11404 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
11406 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
11407 (]-): Don't call ref*do-tl.
11409 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
11411 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
11412 (fn@do-FS): Rename to fn*do-FS.
11414 * troff/input.c (transparent_translate): New function.
11415 (process_input_stack): Apply transparent_translate before calling
11416 diversion::transparent_output(unsigned char).
11418 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
11420 * troff/input.c (do_define_macro): Define the macro before calling
11423 * xditview/Makefile: Add DEVICES variable. Change install target
11426 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
11428 * groff.c (run_commands): Handle the possibility that there are
11429 child processes other than those forked by us.
11431 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
11433 * lib/string.c (string::append): New function.
11434 * lib/stringclass.h: Declare it.
11436 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
11438 * eqn/main.c (main): New option -N which sets
11439 no_newline_in_delim_flag.
11440 (do_file): If no_newline_in_delim_flag is set don't allow newlines
11442 * groff.c (main): Pass -N on to eqn.
11443 (help, synopsis): Mention -N.
11444 * groff.sh: Implement -N.
11446 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
11448 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
11449 (]-): Call ref*do-tl if ref*need-tl is non-zero.
11450 (XP): Allow as initializer.
11452 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
11454 * troff/env.c (environment::wrap_up_field): If field_spaces are
11455 non-zero and we have a current_tab, subtract padding from
11456 tab_distance. If this makes tab_distance <= 0, use the next tab
11457 stop instead. If there isn't any next tab or it's a left tab,
11458 wrap up the current tab.
11459 (environment::start_field): Initialize tab_precedes_field.
11460 (environment::wrap_up_tab): If there's a current field, update
11461 pre_field_width, field_distance and tab_precedes_field.
11462 * troff/env.h (environment::tab_precedes_field): New member.
11464 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
11466 * ps/ps.c (ps_printer::do_file): New function.
11467 (ps_printer::special): Bind to `file' special.
11468 (ps_printer::do_exec): Set ndefined_styles to 0.
11470 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
11472 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
11473 Avoid stripping first character from the start of unrecognized
11474 escapes. Use lex_error instead of error to report errors.
11475 * eqn/lex.c (get_token): Rework handling of escapes.
11476 (lex_error): Move declaration into...
11479 * xditview/xditview.c (main): Make -page option work.
11481 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
11483 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
11485 * macros/tmac.s (B2): Correct size of box.
11487 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
11489 * macros/tmac.s (B2): Postpone drawing the box until in the
11490 top-level diversion.
11492 * tty/tmac.tty: Add font translations for C, CR, CW.
11494 * groff.c (synopsis, help): Document -i.
11495 * groff.sh: Implement -i.
11497 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
11498 Simplify the construction of SN.
11500 * troff/number.c (parse_term): Give `|' a higher precedence.
11501 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
11504 * macros/tmac.s (B2): Use par@finish instead of par@reset.
11506 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
11508 * lib/string.c (string::move): New function.
11509 * lib/stringclass.h: Declare it.
11511 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
11513 * troff/env.c (distribute_space): Add optional argument
11515 (environment::wrap_up_field): Call distribute_space with
11516 `force_forward' argument of 1.
11518 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
11520 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
11521 Inline it. Move reallocation into...
11522 (string::grow1): New function.
11523 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
11524 dependencies to include library header files.
11525 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
11527 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
11529 * macros/tmac.s (@NH): Use the same number registers than -ms does
11530 for the heading level counters. Use the same string that -ms does
11531 for the number for this heading.
11533 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
11535 * lib/new.c (operator new): Cast result of malloc to char *.
11537 * troff/input.c (spring_trap, lookup_request): Add assert that nm
11540 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
11542 * groff.c (main): Support -i.
11544 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
11546 * pic/pic.h: Include <osfcn.h>.
11548 * ps/ps.c: Add declaration of mktemp.
11550 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
11551 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
11552 argument as union wait *.
11553 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
11554 argument to union wait *.
11556 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
11558 * tty/tmac.tty: Add definition of \(co.
11560 * pic/object.c (make_arc): Only increase radius when radius
11561 strictly less than d.
11562 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
11565 * troff/env.c (environment::environment(symbol),
11566 environment::environment(const environment *)): Initialize
11569 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
11571 * tbl/main.c (main): Add exit(0).
11573 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
11575 * pic/main.c (main):
11576 * eqn/main.c (main):
11577 * tbl/main.c (main):
11578 * etc/soelim.c (main):
11579 * driver/printer.c (printer::~printer):
11580 * troff/node.c (real_output_file::~real_output_file,
11581 real_output_file::flush): Check for errors on stdout.
11583 * most files: Add 1991 to copyright notice.
11585 * macros/tmac.s: Don't test \n(.x and \n(.y.
11587 * troff/input.c (token::next): Rename `escape_char' label to
11588 `handle_escape_char' and `normal_char' label to
11589 `handle_normal_char'.
11591 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
11593 * groff.c (main, synopsis, help): Support -a option.
11594 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
11595 to trflags while parsing options.
11597 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
11599 * troff/number.c (parse_term): With `m', `M' and `n' scale
11600 indicators, convert scale factor to hunits before scaling.
11602 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
11604 * lib/font.c (scale_round): Better test for overflow when n is
11607 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
11609 * tbl/main.c (process_format): Add second argument of type
11610 options*. Change callers. Allow opt->tab_char as well as '\t'
11611 between format items.
11613 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
11615 * macros/tmac.an (PD): With no arguments, make sure register PD is
11617 (TH): Call PD with no argument, instead of setting register PD
11620 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
11622 * Version 1.00 released.
11624 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
11626 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
11628 * dvi/devdvi/DESC: Mount CW instead of CR.
11630 * dvi/tmac.dvi: Add definition of \(tm.
11632 * dvi/devdvi/texsy.map: Add lh, and rh.
11633 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
11634 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
11636 * dvi/devdvi/FontMakefile: Generate H from cmss10.
11637 * dvi/devdvi/Makefile: Install H.
11638 * dvi/devdvi/H: New file.
11640 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
11642 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
11645 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
11647 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
11649 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
11651 * macros/tmac.s (@EN): Handle the case where the equation is empty
11652 but the label is not.
11654 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
11656 * troff/groff.h: New warning category WARN_SPACE.
11657 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
11658 WARN_SPACE to warning_table.
11659 (interpolate_macro): Give a warning of type WARN_SPACE if the name
11660 is longer than two characters and is not defined, but the first
11661 two characters do make a defined name.
11663 * PROBLEMS: New file.
11665 * CHANGES: New file.
11666 * README-0.6, README-1.00: Deleted.
11668 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
11669 * xditview/devX75/Makefile: Make devX75-12.
11670 * xditview/devX100/Makefile: Make devX100-12.
11672 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
11673 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
11675 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
11677 * README-0.7: Rename to README-1.00.
11679 * macros/tmac.pic: New file.
11680 * macros/Makefile (install.nobin): Install tmac.pic.
11682 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
11684 * troff/env.c (hyphen_word): Correct the test for whether the
11685 token is a hyphen. Reset npos to 0.
11687 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
11689 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
11691 * macros/tmac.s (ds*common-end): Call par*reset.
11693 (par@reset-indent): Deleted.
11695 * macros/tmac.s (@IP): Divert the label.
11697 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
11699 * xditview/draw.c (setGC): Use a line width of .1m rather than
11700 .04m by default; round rather than truncate value.
11702 * tbl/table.c (class empty_entry): New class.
11703 (empty_entry::empty_entry, empty_entry::line_type): New functions.
11704 (table::add_entry): Represent empty entries by objects of type
11706 (table_entry::line_type): Return -1.
11707 (table::determine_row_type): Ignore entries with line_type 0.
11708 Treat type -1 as non-lines.
11710 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
11712 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
11713 macros/tmac.s: Rename \(-d to \(Sd.
11715 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
11717 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
11718 * xditview/libXdvi/DviChar.c: Likewise.
11719 * dvi/devdvi/texsy.map: Add `<<', `>>'.
11721 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
11723 * troff/div.c (top_level_diversion::begin_page): Call
11724 init_output() if the_output is 0.
11726 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
11728 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
11730 (get_copy): Turn \E into ESCAPE_E.
11731 (token::process, asciify): Handle ESCAPE_E.
11733 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
11735 (DS): Implement `.DS R'.
11737 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
11739 * macros/tmac.s (FS): New macro.
11741 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
11743 * macros/tmac.s (cov*tl-init): Remove after first execution
11744 instead of aliasing to @nop. Call top of page macro explicitly
11745 instead of setting trap; call @init first. Set pg@top as top of
11747 (cov*auto-init): Deleted. Set cov*tl-init instead of
11748 cov*auto-init as top of page trap.
11749 (TL, LP): Do a break instead of calling cov*tl-init.
11750 (cov*print): With RP format but no TL, alias FS and FE to @FS and
11751 @FE; in this case also give a warning and always start another
11752 page. No need to set pg@top here.
11753 (cov*tl-init): Rename to cov*first-page-init.
11755 * macros/tmac.s (RP): Do `.pn 0'.
11756 (cov*tl-init): With RP format don't do `.pn 0'.
11758 * macros/tmac.s (pg@cs-top): Set no space mode.
11760 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
11761 (cov*ab-init): Alias TL, AU and AI to these.
11763 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
11765 * macros/tmac.s (@EQ): Move the space before the equation into @EN
11766 (@EN): Do nothing unless \n[dl] is > 0.
11768 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
11770 * pic/object.c (ellipse_object::radius): New function.
11772 * VERSION: Change version to 0.7.
11774 * tbl/table.c (block_entry::do_divert): Declare return type as
11776 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
11778 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
11780 * troff/column.c: New file.
11781 * troff/Makefile: Corresponding changes.
11783 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
11786 * troff/div.c (top_level_diversion::space): If the space causes
11787 the first-page transition and springs a trap, truncate the space
11790 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
11792 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
11795 * pic/troff.c (troff_output::line_thickness,
11796 troff_output::set_fill): Do a horizontal motion to compensate for
11797 the width of the \D escape sequence.
11799 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
11801 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
11804 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
11807 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
11808 Supply empty definition.
11809 (text_entry::simple_print, simple_text_entry::simple_print):
11810 Delete declarations.
11811 (table::add_entry): Represent empty entries by objects of type
11814 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
11816 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
11818 * tbl/table.c (left_text_entry::add_tab): New function.
11820 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
11821 initialize like LP.
11823 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
11825 * troff/env.c (environment::start_field): Give an error message if
11826 there is no next tab.
11828 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
11830 * troff/env.c (hyphenate): Skip initial elements with zero
11833 * macros/tmac.s (par@init): Keep VS in points rather than units.
11835 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
11837 * pic/main.c (main): Implement `-c' option.
11838 * pic/output.h: Declare make_tpic_output().
11839 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
11841 (tpic_output): New class.
11842 (tpic_output::tpic_output, tpic_output::set_pen_size,
11843 tpic_output::command, make_tpic_output): New functions.
11845 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
11847 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
11848 if they're not already defined.
11849 * tbl/table.c (init_output): Don't test \n(.g.
11851 * troff/input.c (do_if_request): Delete `g' condition. Recognize
11852 `d', `r' and `c' conditions even in compatibility mode.
11854 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
11856 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
11859 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
11861 * troff/env.h (environment::prev_line_interrupted): New member.
11862 (environment::get_prev_line_interrupted): New function.
11863 * troff/env.c (environment::newline): Set prev_line_interrupted.
11864 (environment::environment(const environment *),
11865 environment::environment(symbol)): Initialize
11866 prev_line_interrupted.
11867 * troff/input.c (process_input_stack): Don't give special
11868 treatment to space and newline at the beginning of the line if the
11869 previous line was interrupted.
11871 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
11873 * eqn/eqn.y: Disallow PRIME by itself.
11874 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
11876 (def_table): Remove definition of '. Define prime to be `.
11878 * eqn/eqn.y: Split off part of rule `script' into a new rule
11881 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
11883 * macros/tmac.s ({, }): New string aliases.
11885 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
11887 * README-0.7: New file.
11889 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
11891 * macros/tmac.s: New file.
11892 * man/groff_ms.man: New file.
11893 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
11894 * Makefile.bd: Similarily.
11895 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
11896 definition of TMAC_S.
11897 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
11898 * macros/TODO: New file.
11900 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
11902 * troff/env.c (right_justify): New function.
11903 (init_env_requests): Bind this to request "rj".
11904 (center_lines): Set right_justify_lines to 0. If we get a bad
11905 integer, center 1 line.
11906 (environment::environment(symbol), environment::environment(const
11907 environment *)): Initialize right_justify_lines.
11908 (environment::get_right_justify_lines): New function.
11909 (init_env_requests): Bind this to number_register ".rj".
11911 * troff/env.c (environment::choose_breakpoint): Implement
11912 hyphenation_margin and hyphenation_space.
11913 (environment::get_hyphenation_space,
11914 environment::get_hyphenation_margin): New functions.
11915 (init_env_requests): Bind these to .hys and .hym.
11916 (hyphenation_space_request, hyphenation_margin_request): New
11918 (init_env_requests): Bind these to hys and hym.
11919 (environment::environment(symbol), environment::environment(const
11920 environment *)): Initialize hyphenation_margin and
11922 * troff/env.h: Corresponding changes to class environment.
11924 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
11926 * troff/div.c (blank_line): Always do a break.
11928 * eqn/box.c (do_text): Turn off escapes while appending text to
11931 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
11933 * troff/input.c (while_break_request, while_continue_request): New
11935 (init_input_requests): Bind these to "break" and "continue".
11936 (while_depth, while_break_flag): New variables.
11937 (while_request): Update while_depth. Break out of loop if
11938 while_break_flag is set.
11940 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
11942 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
11945 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
11947 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
11949 * stringify: New file.
11950 * Makefile (groff.o): Use stringify.
11952 * xditview/tmac.X: Remove definition of \(rn.
11953 * xditview/libXdvi/DviChar.c: Remove radicalex from
11956 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
11958 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
11959 (alphabetic_block_entry::alphabetic_block_entry,
11960 alphabetic_block_entry::divert, alphabetic_block_entry::print):
11962 (block_entry::divert): Split off body into ...
11963 (block_entry::do_divert): If the block is alphabetic, subtract 2n
11964 from the line length; also update the span width to dl+2n, and the
11965 alphabetic span width to dl.
11967 * driver/input.c (do_file): While reading argument to D command,
11968 when expanding buffer, multiply szp by sizeof(int) rather than 2
11969 in the argument to memcpy.
11971 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
11972 width of alphabetic columns.
11974 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
11976 * troff/node.c (lookup_family): Supply second argument to lookup.
11978 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
11979 search, return immediately if v is 0.
11981 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
11982 (troff_output::start_picture): Set this reg.
11983 (troff_output::end_picture): Remove this reg
11984 * eqn/box.c (box::extra_space): Don't produce `\x's if
11985 EQN_NO_EXTRA_SPACE_REG is defined.
11987 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11988 * eqn/text.c (split_text): Map ' to \(fm when it's the first
11991 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
11993 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11996 * troff/div.c (top_level_diversion::top_level_diversion):
11997 Initialize page_number to 0.
11999 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
12001 * groff/troff (environment::environment(const environment *)):
12002 Initialize name to e->name, rather than "anonymous".
12004 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
12006 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
12007 requested_page. Split middle part into ...
12008 (FindPage): New function.
12009 (SetValues): If we don't yet know the last page, and the requested
12010 page is greater than the current page, call FindPage.
12011 Update the font_map_string before doing this.
12013 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
12014 Translate \(lh and \(rh into left and right double arrows.
12016 * troff/node.c (class hyphen_inhibitor_node): New class.
12017 (hyphen_inhibitor_node::hyphen_inhibitor_node,
12018 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
12019 hyphen_inhibitor_node::type,
12020 hyphen_inhibitor_node::get_hyphenation_type): New functions.
12021 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
12022 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
12025 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
12027 * troff/node.h (dummy_node::get_hyphenation_type,
12028 transparent_dummy_node::get_hyphenation_type): Declare them.
12029 * troff/node.c: (dummy_node::get_hyphenation_type,
12030 transparent_dummy_node::get_hyphenation_type): New functions.
12032 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
12034 * xditview/libXdvi/draw.c: If M_PI not defined after including
12035 math.h, then define it.
12037 * xditview/Makefile: Add definition of AR. Pass it to the submake
12039 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
12041 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
12043 * troff/dictionary.h (object_dictionary::alias): Declare return
12045 * troff/dictionary.c (object_dictionary::alias): Return non-zero
12046 if the old name was defined.
12047 * troff/input.c (alias_macro): Give a warning if the old name was
12049 * troff/reg.c (alias_reg): Likewise.
12051 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
12053 * troff/input.c (token::next): Delete implementation of \R.
12055 * macros/Makefile: Strip comments from tmac.e while installing it.
12057 * troff/input.c: New variable `nroff_mode'.
12058 (troff_request, nroff_request): New functions.
12059 (init_input_requests): Bind `troff' and `nroff' to troff_request
12061 (do_if_request): Compute results of t and n conditions from
12064 * text/text.c (split_text): Fix typo in >=.
12066 * eqn/lex.c: Add definition of `==' to def_table.
12068 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
12070 * pic/tex.c (tex_output::start_picture): Change the definitions of
12071 \graph and \graphtemp so that they work properly with Plain TeX.
12073 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
12074 argument to `ar' is not less than the first.
12076 * pic/pic.y: Allow a comma between elements of the variable list
12077 in the argument to `reset'.
12079 * pic/object.c (arc_object::arc_object): Fix computation of
12082 * eqn/main.c (main): Add exit(0).
12084 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
12086 * troff/div.c (begin_page): Test no_space_mode after doing the
12087 break, but still push the page ejector cookie before doing the
12088 break. Also set the next page number after doing the break.
12090 * xditview/xditview.c (NewFile): Don't set the title and icon name
12091 if this is the first file and its name is `-'.
12092 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
12093 the X75 and X100 devices.
12094 (main): If a device has the XT_OPTION flag set and there's exactly
12095 one file argument, pass the driver -xrm and -title options to set
12096 the icon name and window title to the name of the file.
12098 * troff/env.c (environment_switch): If there was an argument but
12099 it wasn't a valid number or name, then pop an environment but
12100 don't give an error message on underflow.
12102 * troff/number.c (start_number): Correct spelling in error message.
12104 * troff/input.c (token::delimiter): Don't print an error message
12107 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
12108 ParseDrawFunction if dw->display_enable is true.
12110 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
12112 * pic/pic.y: Parse text positioning like normal attributes, so as
12113 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
12114 positioning attribute.
12116 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
12118 * tbl/main.c (process_data): When in state START while reading a
12119 text block, don't change to state MIDDLE if c is a newline.
12121 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
12123 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
12124 so as to avoid shadowing parameter.
12126 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
12128 * tbl/table.c (trim_space): Deleted.
12129 (table::add_entry): Don't call trim_space.
12131 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
12133 * VERSION: Change version to 0.6.
12135 * troff/number.c (parse_expr): Make == work.
12137 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
12139 * man/grog.man: New file.
12140 * man/Makefile: Add grog.n to MAN1PAGES.
12141 * etc/grog.sh: New file.
12142 * etc/Makefile: Install grog.sh as grog.
12144 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
12146 * troff/input.c (token::next): Implement \E.
12148 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
12150 * xditview/tmac.X: Change font translations to match tmac.ps.
12152 * troff/input.c (non_empty_name_warning): Don't give a warning if
12153 `\{' terminates the name.
12155 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
12157 * ps/devps/symbol.diff: New file.
12158 * ps/devps/FontMakefile: Mention symbol.diff.
12160 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
12162 * troff/node.c (font_position): Use get_long_name to read the
12165 * troff/env.c (environment_switch): If we get a number that's < 0
12166 or >= NENVIRONMENTS, treat it like a name.
12167 Change NENVIRONMENTS to 10.
12169 * troff/groff.h: Remove definition of FONTS_MAX.
12170 * troff/node.h (class font_family): Make map a pointer instead of
12171 an array. Add a map_size member. Make it a class. Make nm const
12172 and public. Make invalidate_fontno a friend.
12173 * troff/node.c: Define font_table_size. Make font_info a pointer
12174 rather than an array.
12175 (class troff_output_file): Allocate font_position dynamically. Add
12176 nfont_positions member.
12177 (troff_output_file::set_font): Grow font_position if necessary.
12178 (troff_output_file::~troff_output_file): Delete font_position.
12179 (troff_output_file::troff_output_file): Allocate font_position.
12180 (grow_font_table): New function.
12181 (troff_output_file::really_begin_page,
12182 troff_output_file:really_copy_page): Use nfont_positions rather
12184 (mount_font_no_translate, mount_style): Call grow_font_table if
12186 (font_family::font_family): Allocate map.
12187 (font_family::make_definite): Grow map if necessary. Use
12188 font_table_size instead of FONTS_MAX.
12189 (font_family::~font_family): New function.
12190 (invalidate_fontno): Use font_family::map_size.
12191 (get_fontno, env_space_width, env_half_narrow_space_width,
12192 env_narrow_space_width, symbol_fotno, is_good_fontno,
12193 get_bold_fontno, make_glyph_node): Use font_table_size rather than
12195 (next_available_font_position): Never return 0.
12197 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
12199 * ps/tmac.ps: Add font translations for compatibility with dpost.
12201 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
12203 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
12204 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
12205 Move definitions baseline_sep, shift_down, column_sep,
12206 matrix_side_sep into...
12207 * eqn/box.c: Add them to param_table.
12208 * eqn/pbox.h: Add declarations to pbox.h.
12210 * troff/input.c (set_string): Cast value to unsigned char *.
12212 * troff/token.h (process_input_stack): Declare it static before
12213 declaring it a friend.
12215 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
12217 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
12219 * dvi/devdvi/EX: Regenerate.
12221 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
12224 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
12226 * eqn/lex.c: In defaults_table, make definition of `dot' call
12227 `dot_def'. Don't explicitly make it roman. Similarily for other
12230 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
12232 (for_input::get, for_input::peek): Use this.
12233 (do_for): Add by_is_multiplicative argument.
12234 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
12235 Change semantic value of optional_by to be a double plus a flag
12236 saying whethet the by clause is multiplicative.
12238 * eqn/lex.c (get_delimited_text): Remember location of start of
12239 definition. Improve error handling when EOF is encountered.
12241 * lib/font.h: Rename handle_x_command to
12242 handle_unknown_font_command.
12243 * lib/font.c (font::load): Call handle_unknown_font_command for
12244 any unknown command in the font description file. Don't call
12245 handle_x_command. Include the name of the command in the argv.
12246 Improve message for unknown command after kernpairs or charset
12248 * ps/ps.c (ps_font::handle_x_command): Rename to
12249 handle_unknown_font_command. Remove message about `x download'
12250 command. Give error message for wrong number of arguments.
12251 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
12252 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
12253 handle_unknown_font_command. Give an error message for wrong
12254 number of arguments. Rename design_size to designsize.
12255 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
12256 checksum', `designsize' instead of `design_size'.
12258 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
12260 * eqn/*.[chy]: Change underaccent to uaccent.
12262 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
12263 give it the same precedence as ACCENT.
12264 * eqn/other.c (make_underaccent_box): New function.
12265 * eqn/box.h: Declare it.
12266 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
12269 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
12271 * pic/pic.y (reset_all): New function. Called in rule for RESET.
12272 (parse_init): Call reset_all.
12273 (define_variable): When defining scale reset only those
12274 pre-defined variables that are scaled.
12275 (defaults_table): Add `scale' as non-scaled value.
12277 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
12278 together with the text; allow any number of positioning words;
12279 allow center as a positioning word.
12281 * pic/object.c (output::compute_scale): Get picture maximum height
12282 and width from variables called maxpswid and maxpsht.
12283 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
12285 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
12287 * pic/object.c (object_spec::make_text): Multiply textht by number
12290 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
12292 (do_sprintf): New function.
12293 (pic.gperf): Add sprintf token.
12294 (text, sprintf): New rules.
12296 * pic/pic.y: `rand()' with no arguments returns a random number
12297 in the range [0,1).
12299 * pic/pic.y: Allow a bare expression to be an attribute: change
12300 precedences to support this. Change optional_ordinal rule to
12301 optional_ordinal_last to avoid reduce/reduce conflict.
12302 * pic/object.c (object_spec::object_spec): Initialize direction.
12304 * pic/pic.y: Implement ^ operator meaning exponentiation.
12306 * troff/node.h: Add default argument to mount_font.
12307 * troff/node.c (font_position): Read an optional third argument
12308 giving the external_name.
12309 (mount_font): Add optional argument giving the external_name.
12310 (mount_font_not_translate): Have additional argument giving
12311 external name. Use this name to load the font. Pass both names
12312 to font_info::font_info.
12313 (font_info::font_info): Have additional argument giving
12315 (class tfont): New member external_name.
12316 (font_info::get_tfont): Use external name to construct tfont_spec.
12318 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
12320 * eqn/lex.c (init_table): Add argument giving device. Define
12321 name of device to be "1".
12322 (do_ifdef): Counts as true if the argument has been defined with
12324 * eqn/main.c (main): Call init_table with device argument. Make
12325 device local to main.
12326 * eqn/eqn.h: Change declaration of init_table. Remove declaration
12329 * pic/lex.c (get_delimited): Allow text to be delimited by
12330 matching {}s. Don't recognize ending delimiter within a string.
12332 * troff/input.c (get_delim_name): New function.
12333 (token::next): Implement \C.
12335 * lib/font.c (font::load): Grok ---. Add an alias for each
12336 character based on its code.
12337 (font::get_code_width): Deleted.
12338 * lib/font.h (class font): Declare font::number_to_index().
12339 Remove declaration of font::get_code_width.
12340 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
12341 to indices of named characters.
12342 (font::number_to_index): New function.
12343 * troff/input.c (font::number_to_index): New function.
12344 (get_charinfo_by_number, charinfo::get_number,
12345 charinfo::set_number): New functions.
12346 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
12347 (token::process, token::description, token::get_char,
12348 token::add_to_node_list, token::operator==): Handle
12349 TOKEN_NUMBERED_CHAR.
12350 * troff/charinfo.h: Declare get_charinfo_by_number,
12351 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
12353 (charinfo::numbered): New function.
12354 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
12355 * troff/env.h (class environment): Remove declaration of ...
12356 * troff/env.c (environment::make_numbered_char_node): Deleted.
12357 * troff/node.c (make_numbered_node): Deleted.
12358 (class numbered_glyph_node): Remove.
12359 (troff_output_file::put_char_width, troff_output_file::put_char):
12360 Handle numbered chars.
12361 (troff_output_file::numbered_char): Removed.
12362 (tfont::get_code_width): Removed.
12363 (make_glyph_node): Don't search special fonts for numbered
12365 * troff/node.h: Remove declaration of make_numbered_node.
12366 * driver/input.c (do_file): Handle N command.
12367 * driver/printer.h: Add declaration of ...
12368 * driver/printer.c (printer::set_numbered_char): New function.
12369 * dvi/tfmtodit.c (main): Generate unnamed entries.
12370 * ps/devps/afmtodit: Likewise.
12371 * xditview/xtotroff.c (MapFont): Likewise.
12372 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
12374 * tbl/main.c (process_format): If multiple widths are specified
12375 for a column but all the widths are the same, don't give an error
12378 * tbl/table.c (table::do_row): If the current row is all lines and
12379 the stuff doesn't contains a line, mark the top of the row after
12380 printing stuff before the row. If the current row is not all
12381 lines and the stuff doesn't contain a line, don't unnecessarily
12382 mark the top of the row before printing the stuff.
12384 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
12386 * troff/groff.h: Remove MAX_PATH.
12387 * troff/input.c (open_file): Dynamically allocate space for the
12389 (open_mac_file, process_macro_file): Corresponding changes.
12391 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
12393 * troff/node.h (class output_file): Make copy_file pure. Add
12394 vspace method ifdef COLUMN. Add is_printing method.
12395 * troff/node.c: Add class printing_reg. Add class
12396 real_output_file. Derive other output_file classes from
12397 real_output_file; in these classes rename begin_page to
12398 really_begin_page, print_line to really_print_line, copy_file to
12399 really_copy_file, transparent_char to really_transparent_char.
12400 Move output_file::flush to real_output_file. Add printing member
12401 to class output_file.
12402 * troff/div.h: Remove printing member from top_level_diversion.
12403 Add vspace member function to class diversion ifdef COLUMN. Add
12404 some declarations ifdef COLUMN.
12405 * troff/div.c (top_level_diversion::copy_file,
12406 top_level_diversion::transparent_output,
12407 top_level_diversion::output): Don't test printing member before
12409 * troff/input.c: Handle initial variable_space_request ifdef
12411 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
12412 but comment it out.
12414 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
12416 * troff/div.c (diversion::need): Make any space forced. If we
12417 sprung a trap, set truncated_space to minus the distance to the
12418 trap and set needed_space to the amount that was needed.
12419 (top_level_diversion::space): A forced space turns no_space_mode
12421 (class constant_vunits_reg): New class.
12422 (init_div_requests): Implement number registers .trunc and .ne
12423 using constant_vunits_reg.
12424 (class truncated_space_reg): Deleted.
12426 * troff/div.h: Don't have a no_space_mode member in diversion.
12427 Instead have it in top_level_diversion.
12428 * troff/div.c (diversion::diversion): Don't initialize
12430 (top_level_diversion::top_level_diversion): Initialize
12432 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
12433 (macro_diversion::output): Don't clear no_space_mode.
12435 * troff/input.c (diverted_space_node::reread): Don't call
12436 environment::do_break. In fill mode, act like a blank line.
12437 (diverted_copy_file_node::reread): Don't call
12438 environment::do_break.
12440 * troff/div.c (blank_line): New function.
12441 * troff/div.h: Declare it.
12442 * troff/input.c (process_input_stack): Call it.
12444 * troff/div.c (truncated_space_reg::get_string): New function.
12445 (init_div_requests): Bind to .trunc.
12446 (space_request, top_level_diversion::space,
12447 top_level_diversion::output, macro_diversion::space,
12448 macro_diversion::output): Update truncated_space.
12449 (macro_diversion::output): Redo calculations when trap sprung.
12450 (macro_diversion::output, macro_diversion::space): No need for
12453 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
12454 after truncating post line spacing.
12456 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
12458 * ps/devps/prologue (MF, SF): Make them work even if setfont is
12459 defined as a procedure rather than as an operator.
12461 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
12463 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
12465 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
12467 * troff/div.c (top_level_diversion::output): Merge
12468 output_file::print_line and output_file::end_of_line member
12470 * troff/div.h (class output_file):
12471 * troff/node.c (troff_output_file::print_line,
12472 troff_output_file::end_of_line, output_file::end_of_line,
12473 ascii_output_file::print_line, suppress_output_file::print_line):
12474 Corresponding changes.
12476 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
12478 * troff/input.c (token::next): Don't give a warning for `\.'.
12480 * troff/env.c (environment::get_center_lines): New function.
12481 (init_env_requests): Bind number register .ce to it.
12482 * troff/env.h: Declare it.
12483 * tbl/table.c (table::init_output): Define reset macro to restore
12484 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
12486 (table::print): If center option not given, then imply center
12487 option if SAVED_CENTER_REG > 0.
12489 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
12491 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
12492 Troff.ps from DOWNLOAD.
12494 * troff/Makefile: Change comment in DEFINES to avoid confusing
12497 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
12498 code. Don't try to catch errors with stopped.
12499 (check_line_lengths): New function.
12500 * ps/devps/prologue (EXEC): Deleted.
12501 (EBEGIN, EEND): New procedures.
12503 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
12505 * troff/input.c: Include request.h before node.h.
12506 * troff/node.c: Likewise.
12507 * troff/env.c: Likewise.
12508 * troff/div.c: Likewise.
12509 * troff/node.h (class special_node): Store argument as a macro
12510 rather than a char *.
12511 * troff/node.c (special_node::special_node, special_node::copy):
12513 (special_node::~special_node): Deleted.
12514 (special_node::tprint): Deleted.
12515 (special_node::tprint_start, special_node::tprint_end,
12516 special_node::tprint_char): New functions.
12517 (troff_output_file::special): Deleted.
12518 (troff_output_file::start_special, troff_output_file::end_special,
12519 troff_output_file::special_char): New functions.
12520 * troff/input.c (special_node::tprint): New function.
12521 (do_special): Use macro not char *.
12522 (do_transparent_macro): Deleted.
12523 (token::next): Don't call do_transparent_macro.
12525 * troff/input.c (token::next): Add 'Y' case.
12526 (do_transparent_macro): New function.
12527 * troff/node.c (troff_output_file::special): Handle newlines with
12528 argument using new continuation convention.
12529 * driver/input.c (get_string): Cope with continuation convention.
12530 (do_file): Don't call skip_line after calling get_string(1).
12531 * ps/ps.c (ps_printer::special, ps_printer::do_import,
12532 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
12534 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
12537 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
12539 * troff/input.c (asciify): By default, illegal input characters
12540 should return empty string.
12542 * troff/input.c (copy_file): Handle first page transition like title.
12543 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
12545 * troff/input.c (token::next): Improve error message for EOF after
12547 (input_char_description): New function.
12548 (get_char_for_escape_name): Use input_char_description.
12549 (token::next): Warn about unrecognized escape sequences.
12550 (warning_table): Add WARN_ESCAPE.
12551 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
12554 * troff/token.h: Remove declaration of process_input_stack.
12556 * troff/input.c: Remove declaration of init_hyphen_requests.
12557 * troff/request.h: Correct spelling in declaration of same.
12559 * troff/input.c (token::next): Check whether escape_char is 0.
12561 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
12563 * groff.c (main, usage, help): Implement -P and -L options.
12564 * groff.sh: Likewise.
12566 * troff/input.c (token::next): Use some gotos to avoid code
12569 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
12570 Avoid calling symbol::symbol if name empty.
12572 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
12574 * troff/input.c (init_input_requests): Make \n(.x return the major
12575 version number and \n(.y return the minor version number.
12576 * troff/Makefile: Construct file majorminor.c defining
12577 major_version and minor_version automatically from ../VERSION.
12579 * troff/node.c (class glyph_node): Make operator new and operator
12581 (class ligature_node): Similarily.
12583 * troff/input.c (operator==(const macro &, const macro &)): New
12585 (non_interpreted_node::same): Use this.
12586 (string_iterator::string_iterator): Make macro& argument const.
12588 * troff/input.c (input_iterator::get): New function. Don't make
12589 asciify_macro or class non_interpreted_node friends of class
12591 (non_interpreted_node::interpret): Use input_iterator::get.
12592 (asciify_macro): Likewise.
12594 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
12595 ~non_interpreted_node): Deleted.
12596 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
12599 * troff/symbol.h: Make all symbol member functions const.
12601 * lib/strtol.c: New file.
12602 * lib/Makefile: Add strtol.c.
12603 * Makefile: Define STRTOL as strtol.o to include strtol in
12606 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
12608 * pic/troff.c (troff_output::simple_circle): Divide by scale.
12610 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
12612 * troff/input.c (do_special): Use input_level.
12614 * troff/token.h (TOKEN_BACKSPACE): New token.
12615 (token::backspace): New function.
12616 * troff/input.c (token::description, token::next, token::process):
12617 Grok TOKEN_BACKSPACE.
12618 (do_special): Turn TOKEN_BACKSPACE back into \b.
12620 * troff/token.h (token::leader): New function.
12621 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
12623 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
12625 * troff/input.c (do_special): Use token::description in error
12628 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
12630 * troff/input.c (decode_args): Combine quoted and
12631 quote_input_level variables. Make it a for (;;) loop.
12633 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
12635 * troff/input.c (read_long_escape_name): The test for whether to
12636 expand buffer was off by 1.
12637 (read_string): Similarily.
12639 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
12641 * troff/input.c: Use `const int' rather than `static const int'.
12643 * troff/div.h (diversion::copy_file): Declare as pure virtual.
12644 (macro_diversion::copy_file): New function.
12645 * troff/node.h: New class diverted_copy_file_node.
12646 * troff/node.c: Implement it.
12647 * troff/input.c (copy_file): Use diversion::copy_file. Handle
12648 first page transition by pushing a diverted_copy_file_node.
12649 * troff/input.c (token::next, process_input_stack): Don't handle
12652 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
12654 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
12655 whether space widths need adjusting.
12657 * troff/charinfo.h: Generalize translated_to_space to
12658 special_translation so as to allow translation to \&.
12659 * troff/input.c (translate): Allow translation to \&.
12660 (charinfo::*): Corresponding changes.
12661 * troff/node.c (make_node, node::add_char): Corresponding changes.
12662 * troff/node.h (dummy_node::dummy_node): Allow optional first
12665 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
12666 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
12668 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
12669 TOKEN_REQUEST with an argument of TITLE_REQUEST.
12670 (token::process): Grok that.
12671 * troff/input.c (copy_file): Handle first page transition like
12672 title by pushing a COPY_FILE_REQUEST cookie.
12673 (token::next, process_input_stack): Grok that.
12674 * troff/node.h (output_file::copy_file): Add x and y arguments.
12676 * troff/div.c (top_level_diversion::copy_file): Supply them.
12677 * troff/node.c (troff_output_file::copy_file): Add x and y
12678 arguments; moveto specified position. Invalidate font_position
12679 array after copying file.
12680 (output_file::copy_file): New function.
12681 (suppressed_output_file::copy_file, ascii_output::copy_file):
12683 * troff/input.c (transparent_file): New function.
12684 (init_input_requests): Bind to "trf".
12685 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
12686 (process_input_stack): Likewise.
12688 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
12690 * troff/node.c (init_node_requests): New number registers .kern
12691 pointing to global_kern_mode, and .lg pointing to
12692 global_ligature_mode.
12694 * troff/node.c (ligature): Don't change it if we get a bad
12697 * troff/input.c (do_define_string): Don't strip tabs.
12699 * troff/input.c (asciify_macro): Make the string_iterator auto.
12701 * troff/node.c (init_font_requests): Rename to...
12702 (init_node_requests):
12703 * troff/node.h: Change declaration.
12704 * troff/input.c (main): Change call.
12706 * troff/input.c (node::reread, diverted_space_node::reread): New
12708 (process_input_stack): Call reread rather than
12709 get_diverted_space_node.
12710 * troff/node.c (node::get_diverted_space_node,
12711 diverted_space_node::get_diverted_space_node): Removed.
12712 * troff/node.h: Declare reread methods instead of
12713 get_diverted_space_node methods. Make `n' member private.
12714 * troff/input.c: (token::diverted_space): Removed.
12715 * troff/token.h: Removed declaration.
12718 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
12720 * eqn/script.c (script_box::compute_metrics): Don't let
12721 SUP_RAISE_FORMAT become negative.
12723 * tbl/table.c (table::do_row): Entries that don't end in the
12724 this row shouldn't make the row non-blank.
12726 * tbl/table.c (table::make_columns_equal): Only set the width of
12727 columns which are marked as equal.
12729 * tbl/main.c (process_data): Before issuing excess data error,
12730 if last character was a newline unget it; then get it again after
12731 the error. Also include the contents of the entry in the message.
12733 * groff.c: New file.
12734 * Makefile: Build groff from groff.c. Make it possible to use
12735 either groff.sh or groff.c as groff.
12736 * Makefile.bd: Similarily.
12738 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
12740 * groff.sh: Don't delay expansion of $@ in assignment to files.
12741 Remove occurrences of \".
12743 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
12745 * all Makefiles: Simplify and rearrange.
12747 * Makefile: Handle fmod like malloc.
12748 * lib/Makefile: Similarily.
12749 * lib/fmod.c: Remove #ifdef NEED_FMOD.
12751 * Makefile: Rename OPTIMISE to OPTIMIZE.
12753 * groff.sh: Remove assignment to PATH.
12754 * Makefile: Remove SHPATH variable.
12755 * Makefile.bd: Similarily.
12757 * groff.sh: Add -V option to print the pipeline instead of
12760 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
12762 * lib/font.c: Split off file searching into ...
12763 * lib/fontfile.c: New file.
12765 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
12767 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
12769 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
12770 Also change misleading comment.
12771 (table::do_vspan): Change similarily misleading comment.
12772 * tbl/main.c (process_data): A format row with an explicit `s'
12773 uses up a data line, even if all the other columns are `_' or `='.
12775 * troff/input.c (token::description): Fix description of
12776 TOKEN_DUMMY and TOKEN_EMPTY.
12778 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
12780 * groff.sh: Fix description of -Z in help message.
12782 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
12784 * pic/object.c (object_spec::make_object): Allow negative and zero
12786 * pic/pic.y: Give linethick default value of -1.0.
12787 * pic/troff.c (troff_output::troff_output): Initialize
12788 last_line_thickness to BAD_THICKNESS.
12789 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
12790 (troff_output::line_thickness): Canonicalize negative thicknesses
12791 to RELATIVE_THICKNESS.
12792 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
12793 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
12795 (tex_output::start_picture): Set pen_size to -2.0.
12797 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
12798 0, then use 0 linewidth.
12799 (ps_printer::ps_printer): Initialize line_thickness to -1.
12801 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
12803 * ps/devps/symbolchars: Remove `or'.
12804 * ps/tmac.ps: Implement \(or with .char.
12806 * ps/devps/symbolchars: Move most characters into textmap.
12807 * ps/devps/textmap: Add names for troff bracket characters. Remove
12810 * ps/devps/TSymbol.ps: Removed.
12811 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
12812 * ps/tmac.ps: Do with .char what TSymbol did.
12813 * ps/devps/download: Remove TSymbol.
12815 * ps/devps/T: Removed.
12816 * ps/devps/Troff.ps: Removed.
12817 * ps/devps/Troff.afm: Removed.
12818 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
12819 * ps/devps/download: Remove Troff.
12820 * ps/devps/FontMakefile: Remove T target.
12821 * ps/devps/DESC-A4: Remove T from font list.
12822 * ps/devps/DESC-letter: Likewise.
12824 * troff/input.c (macro_to_node): Rename to ...
12825 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
12826 character's definition while processing it.
12827 * troff/node.c (node::add_char, make_node): Change calls to
12828 macro_to_node accordingly.
12830 * troff/input.c (token::next): Translate \_ to \(ul.
12832 * tty/devascii/R.proto: Add `|'.
12833 * tty/devlatin1/R.proto: Likewise.
12835 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
12837 * man: Put the version number in all the man pages.
12839 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
12841 * Makefile.bd: New file.
12842 * README.bd: New file.
12844 * VERSION: New file.
12845 * lib/version.c: Removed.
12846 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
12849 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
12850 environment variable.
12852 * all Makefiles: Split install target into install.bin for
12853 binaries, and install.nobin for everything else.
12854 * Makefile: Add bindist target.
12856 * man/afmtodit.man: New file.
12857 * man/Makefile: Add afmtodit.n to MAN1PAGES.
12858 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
12860 * ps/Makefile: Pass BINDIR to make install in devps.
12862 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
12863 the space character.
12865 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
12867 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
12869 * ps/ps.c: Redo font downloading.
12870 * ps/devps/download: New file.
12871 * ps/devps/Makefile: Add download to DEVICEFILES.
12872 * ps/devps/afmtodit: Remove -d option.
12873 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
12874 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
12875 * ps/devps/zapfdr.ps: Likewise.
12876 * ps/devps/TSymbol.ps: Likewise.
12878 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
12880 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
12882 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
12884 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
12885 then strip the first line if it starts with %.
12886 * Makefile: Add a comment about this.
12888 * man/tfmtodit.man: New file.
12889 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
12890 * dvi/Makefile: Install tfmtodit in BINDIR.
12892 * dvi/tfmtodit.c (usage): Mention -v option.
12894 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
12896 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
12897 * troff/node.c (troff_output_file::transparent_char): Don't call
12900 * eqn: Add check_tabs method to most box classes.
12901 * eqn/box.c (box::top_level): Call check_tabs.
12903 * eqn/script.c (script_box::output): Use \Z.
12904 * eqn/limit.c (limit_box::output): Use \Z.
12906 * eqn/box.c (box::top_level): Use itoa.
12908 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
12910 * dvi/tmac.dvi: Add font translations for CR, C, TT.
12911 * dvi/devdvi/Makefile: Don't make links to CW.
12913 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
12915 * xditview/tmac.X: Likewise.
12917 * troff/node.c: Add font translation feature.
12918 (get_font_translation): New function.
12919 (symbol_fontno): Translate the font name.
12920 (mount_font_no_translate): Rename to mount_font to this.
12921 (mount_font): New function.
12922 (font_family::make_definite): Call mount_font_no_translate instead
12924 (mount_style): Translate the font name.
12925 (font_translate): New function.
12926 (init_font_requests): Bind "ftr" to font_translate.
12928 * ps/devps/prologue (SN): New procedure that rounds a position to
12929 the nearest (pixel + (.25,.25)).
12930 (DL): Use SN to round endpoints.
12932 * lib/version.c: Changed version to 0.5.
12934 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
12936 * Makefile: Move definition of PAGE to the very beginning, so that
12937 people are less likely to miss it.
12939 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
12941 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
12943 * troff/env.c (environment::choose_breakpoint): Make `can't find
12944 breakpoint' error a warning of type WARN_BREAK. Change message to
12945 `can't break line'.
12946 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
12948 * troff/input.c: Add WARN_BREAK to warning_table. Include
12949 WARN_BREAK in DEFAULT_WARNING_MASK.
12951 * tty/tmac.tty: Add definition of \(+-.
12953 * groff.sh: Remove `--' option to set command.
12955 * dvi/devdvi/texsy.map: Remove duplicate md entry.
12957 * ps/devps/eqnchar: Better definition of cdot using md.
12958 * dvi/devdvi/eqnchar: Likewise.
12959 * xditview/devX100/eqnchar: Likewise.
12960 * xditview/devX75/eqnchar: Likewise.
12961 * eqn/lex.c: Add definition of cdot.
12963 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
12965 * troff/input.c (get_optional_char): New function.
12966 * troff/input.c (set_page_character): Use get_optional_char(),
12967 rather than has_arg() and tok.get_char(1).
12968 * troff/env.c (tab_character, leader_character, hyphen_char,
12969 field_characters): Likewise.
12970 (margin_character): Likewise. Also always delete the
12971 margin_character_node.
12973 * troff/input.c (token::get_char): Use token::description.
12975 * troff/input.c (has_arg): Don't skip over tab and \}.
12976 * troff/number.c (start_number): Give a warning if the number
12977 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
12979 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
12981 * troff/input.c (empty_name_warning, non_empty_name_warning): New
12983 (get_name, get_long_name): Use these. Rename `warn' argument to
12986 * troff/node.c (get_fontno): Test that the symbol is not null.
12988 * troff/input.c (token::description): New function.
12989 * troff/number.c (parse_term): Use token::description in `numeric
12990 expression expected' message.
12991 * troff/groff.h: Add WARN_MISSING.
12992 * troff/number.c (start_number): New function.
12993 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12994 get_incr_number): Use start_number().
12995 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12997 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12998 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
13000 * troff/input.c (token::get_char): Use WARN_MISSING.
13001 * troff/input.c (token::delimiter): Use token::description.
13002 * troff/env.c (environment_switch): Back out Aug 3 change.
13003 * troff/input.c (has_arg): Skip over \}s and tabs but give a
13005 * troff/token.h (token::tab): New function.
13006 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
13007 * troff/reg.c (alter_format): Likewise.
13008 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
13010 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
13012 * troff (most files): Redo warnings. Divide warnings into various
13013 categories; warning() has an additional first argument indicating
13014 the category it falls into.
13015 * troff/input.c (main): -w now takes an argument. New option -W.
13016 (enable_warning, disable_warning): New functions.
13018 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
13019 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
13021 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
13023 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
13024 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
13025 * xditview/devX75/eqnchar: Likewise.
13026 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
13028 * eqn/other.c: When bar or over applies to a single character
13029 don't produce an overline_box or an underline_box. Instead produce
13030 an accent_box or an underaccent_box, with the accent a line
13031 whose width is accent_width. New classes underaccent_box,
13032 overline_char_box and underline_char_box.
13033 * eqn/box.h: Move overline_box, underline_box, accent_box class
13034 declarations into eqn/other.c. Add declarations of
13035 make_underline_box, make_overline_box, make_accent_box.
13036 * eqn/eqn.y: Call make_overline_box, make_underline_box
13037 make_accent_box instead of constructors.
13038 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
13040 * eqn/other.c: Add accent_box::~accent_box.
13041 * eqn/box.h: Declare it.
13043 * groff.sh: With -Tps, use eqn -D.
13045 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
13047 (underline_box::output): Similarily.
13048 (accent_box::output): Use \Z.
13050 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
13053 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
13055 * troff/div.c (top_level_diversion::transparent_output(unsigned
13056 char)): Use asciify.
13057 * troff/input.c (asciify): Don't make it static.
13058 * troff/token.h (asciify): Declare it.
13060 * troff/input.c (get_name, get_long_name, token::get_char,
13061 token::delimiter): Add an extra default argument which says
13062 whether a warning should be printed.
13063 * troff: Pass a non-zero argument to one of these rather than
13064 printing a warning directly.
13066 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
13068 * troff: Consistently use symbol::is_null.
13070 * troff/dictionary.h: Move some inline functions into
13073 * troff/request.h: Move inline functions into input.c.
13074 (request_or_macro::invoke): Make it pure.
13076 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
13077 * troff/input.c (init_input_requests): Use class constant_int_reg.
13078 (class compatible_reg): Deleted.
13079 * troff/div.c (init_div_requests): Use class constant_int_reg.
13080 (class last_post_line_extra_space_reg): Deleted.
13082 * troff/env.c (tab_character): Don't change the tab character if
13083 we get an invalid argument.
13084 (hyphen_char): Similarily.
13086 * troff/reg.c (alter_format): Check that nm is not null.
13088 * Makefile, groff.sh: Make it possible to customize the commands
13089 used for printing PostScript and dvi files. Also make it possible
13090 to customize the path used by groff.sh.
13092 * eqn/eqn.y: Make `left' right associative.
13094 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
13096 * pic/pic.h: Added definition of M_SQRT2 for those systems that
13099 * pic/pic.h: Removed definition of INT_MAX.
13101 * troff/node.c (italic_corrected_node::vertical_extent): Omit
13104 * troff/input.c (token::next): Handle \R like \n.
13106 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
13108 * ps/tmac.pc (PSPIC): Simplify.
13110 * troff/env.c (tab_stops::to_string):
13111 * pic/pic.y (object_type_name):
13112 * pic/troff.c (simple_output::line):
13113 * pic/tex.c (tex_output::spline):
13114 * pic/object.c (object_spec::make_object):
13115 * tbl/main.c (process_data): Add cases to switch statements to
13116 avoid cfront warnings. (Some of these are spurious, since the
13117 switch already has a default case.)
13119 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
13120 `ps-'. Don't test systat; instead check number of arguments to
13123 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
13125 * macros/tmac.e: Do not decrease the page offset by 0.5i.
13127 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
13128 Unlink the file as soon as we have opened it, so that we don't
13129 have to bother with signal handlers.
13130 (handler): Deleted.
13131 (fatal_error_exit): Deleted.
13132 (main): Don't call signal.
13134 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
13136 * dvi/devdvi/Makefile: Use the -k option with S and MI.
13138 * pic/pic.y: If there is a label, or an nth construction before
13139 the first `.' in the argument to `with', ignore it and generate a
13141 * pic/lex.c (lex_warning): New function.
13143 * tbl/table.c (table::init_output): In section keep and release
13144 macro, use 0 indent when diverting and the correct indent when
13147 * troff/input.c (interpolate_number_format): Do not interpolate
13148 anything if the number register is not defined.
13150 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
13152 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
13154 * ps/devps/prologue (PICTURE): Set components of graphics state to
13155 their default values.
13157 * ps/devps/text.enc: Add trademark
13158 * ps/devps/textmap: Add names for club, spade, heart, diamond,
13159 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
13160 * ps/devps/symbolchars: Add names for summation and product.
13162 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
13163 suchthat. Add pp. Add upper-case letters.
13165 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
13166 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
13169 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
13170 rA (right angle bracket) to ra. Introduce names for double-headed
13171 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
13172 * ps/devps/textmap: Likewise for ps device.
13173 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
13174 * tty/devascii/R.proto: Rename lA to la and rA to ra.
13175 * tty/devascii/R.proto: Likewise.
13176 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
13178 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
13180 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
13182 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
13185 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
13187 * troff/div.c (when_request): Use symbol::is_null rather than
13188 has_arg to determine whether we have an argument.
13189 (change_trap): Remove the trap if we get an invalid number. Give
13190 an error if we don't get at least the macro name.
13191 (diversion_trap): Remove trap if we get an invalid name or number.
13193 * troff/env.c (environment_switch): Pop if we get an invalid
13194 symbol or numeric expression.
13196 * troff/input.c (do_define_macro): If EOF is encoutered while
13197 defining the macro, do tok.next() before returning.
13199 * troff/token.h (has_arg): Move definition from here, to ...
13200 * troff/input.c (has_arg): ... here
13202 * troff/env.c (space_size): Do nothing if we get an invalid argument.
13203 * troff/input.c (shift): Likewise.
13205 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
13208 * pic/troff.c (troff_output::start_picture): Comment out calls to
13211 * eqn/main.c (do_file): Subtract 1 from current_lineno if
13212 interpret_lf_args succeeds.
13214 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
13215 \\. This avoids problems with \$N.
13217 * groff.sh: Pass -C to preprocessors.
13219 * lib/lf.c (interpret_lf_args): Be more flexible.
13221 * tbl/main.c (main): Add -C option.
13222 (table_input::get): Do not recognize TE if followed by character
13223 other than a space or newline unless -C option given.
13224 (process_input_file): Likewise for lf, TS.
13225 (process_data): Likewise for lf in text blocks.
13227 * eqn/main.c (main): Add -C option.
13228 (do_file): Don't recognize EQ, EN or lf if followed by character
13229 other than space or newline unless -C option given.
13230 * eqn/lex.c (file_input::read_line): Similarily.
13231 * eqn/eqn.h: Declare compatible_flag.
13233 * etc/soelim.c (main): Add -C option.
13234 (interpret_lf_args): Use version in libgroff.
13237 * pic/main.c (main): Add -C option, which sets compatible_flag.
13238 (top_input::get), (top_input::peek): If -C option not given,
13239 do not recognize .PS/.PE/.PF/.lf if followed by a character
13240 other than space or newline.
13241 * pic/lex.c (file_input::read_line): Similarily.
13242 * pic/pic.h: Add declaration of compatible_flag.
13244 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
13246 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
13248 * troff/node.c, troff/node.h: Add `asciify' methods to classes
13249 derived from node. New class space_char_hmotion_node.
13250 * troff/input.c (asciify_macro): New function.
13251 * troff/input.c (init_input_requests): New request `asciify' bound
13253 * macros/mm.diff: New file.
13254 * Makefile: In install.mm target use `patch' to apply
13257 * troff/input.c (macro::print_size): Just print the size in bytes.
13259 * troff/div.c (return_request): Correct the argument
13262 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
13264 * troff/node.h (class composite_node): Add sz member.
13265 * troff/node.c (composite_node::size): Return sz.
13266 * troff/input.c (macro_to_node): Use the initial size in the
13267 environment as the size of the composite_node.
13269 * troff/node.c (node::zero_width_tprint): Provide a reasonable
13272 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
13274 * troff/div.c (change_trap): If we get a bad number expression,
13277 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
13279 * lib/matherr.c (matherr): Define this only if math.h defines
13282 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
13284 * troff/div.c (macro_diversion::distance_to_next_trap): If there
13285 no diversion trap return vunits(INT_MAX - vresolution).
13287 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
13289 * troff/input.c (do_zero_width): New implementation that doesn't
13290 use a temporary environment. Use instead:
13291 (token::add_to_node_list): New function.
13292 * troff/env.c (environment::get_prev_char_height),
13293 (environment::get_prev_char_height),
13294 (environment::get_prev_char_skew): New functions.
13295 (environment::get_prev_char): New function.
13296 (environment::get_prev_char_width): Change to use get_prev_char.
13297 (init_env_request): Implement new registers .cht, .cdp, .csk.
13298 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
13299 \Z being processed in a separate environment.
13301 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
13303 * tbl/table.c: Removed TABLE_BOTTOM_REG.
13305 * tbl/table.c (table::init_output): In the section release macro,
13306 give a warning message if the section won't fit on one page.
13308 * tbl/table.c (table::do_top): Emit table keep only if table is
13310 (table::do_bottom): Likewise for table release.
13311 (table::table), (table::add_vertical_rule): Remove reference to
13313 * tbl/table.h: Remove keep member.
13315 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
13316 SECTION_RELEASE_MACRO, if there's not enough space before the next
13317 trap to output the diversion, call T# ourselves, set
13318 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
13319 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
13320 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
13321 vertical position and return to it before turning traps on again.
13323 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
13325 * troff/node.c, troff/node.h: In classes derived from node,
13326 replace prev_char_width method by last_char_node method.
13327 * troff/env.c (environment::get_prev_char_width): Use
13328 node::last_char_node rather than node::get_prev_char_width.
13330 * Makefile: Added comment about -fno-inline on 68030-based
13333 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
13334 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
13335 expressions using sizeof to int.
13336 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
13338 * macros/tmac.e (TS): Don't move @f back past the current
13341 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
13343 * ps/ps.c (main): Buffer stderr.
13344 * dvi/dvi.c (main): Likewise.
13345 * tty/tty.c (main): Likewise.
13347 * ps/ps.c (ps_printer::do_import): Improve error handling.
13349 * troff/input.c (abort_request): Use asciify.
13351 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
13352 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
13353 type of first argument int rather than char. This works around a
13354 bug on the 68030 based Apollo using g++ 1.37.1.
13356 * tbl/table.h (class table): Add `keep' member.
13357 * tbl/table.c (table::table): Initialize `keep'.
13358 (table::add_vertical_rule): Set `keep' to 1.
13359 (table::do_top): Only emit table keep macro is `keep' is non-zero.
13360 (table::do_bottom): Likewise for table release macro.
13361 (table::do_row): Emit section keep macro even if the row is 0.
13363 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
13365 * macros/tmac.e (@C): Preserve the font family across the change
13368 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
13370 * lib/font.c: Initialize font::hor and font::vert to 1.
13371 (font::load_desc): Check the values of font::hor and font::vert.
13373 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
13374 be included in a C compilation.
13375 (iftoa): Use INT_DIGITS. Include lib.h.
13377 (as_string): Likewise.
13378 * tbl/table.c: Removed definition of INT_DIGITS.
13379 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
13380 * troff/input.c (input_input_requests): Likewise.
13381 * ps/ps.c (make_encoding_name): Likewise.
13382 (ps_printer::set_style): Likewise.
13383 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
13385 * tty/devascii/R.proto: Map fm onto '.
13386 * tty/devlatin1/R.proto: Likewise.
13388 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
13390 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
13391 argument to \w is at a different input level.
13393 * tbl/table.c (table::init_output): Define a new macro
13394 REPEATED_VPT_MACRO, like vpt but if in a diversion also
13395 transparently outputs itself.
13396 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
13398 (table::do_row): Likewise.
13400 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
13401 TRANSPARENT_STRING_NAME.
13403 * tbl/table.c (table::init_output): In the table release macro
13404 print an error message and don't produce any output if after
13405 issuing the need request the table still will not fit. Also
13406 remove the diversion after bringing it back.
13408 * tbl/table.c (table::init_output): Define a new macro
13409 REPEATED_MARK_MACRO, like mk but if in a diversion also
13410 transparently outputs itself.
13411 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
13412 is necessary because .TH might not call .T#.
13413 (table::do_top): Likewise TOP_REG.
13414 (table::define_bottom_macro): If TOP_REG is no longer valid, use
13415 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
13416 table header might contain just the two top rules.
13418 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
13420 * troff/div.c: Implement new request `ptr' to print all traps.
13422 * troff/env.c (init_env_requests): Implement `.tabs' reg with
13423 init_string_env_reg.
13424 * troff/env.c (class tab_reg): Deleted.
13426 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
13428 * troff/div.c: New number register .pn returns the number of the
13429 next page as set by the pn request.
13431 * macros/tmac.an: Redid headers and footers. Number each manual
13432 entry starting from 1 unless \nC is > 0, like Sun. Added an
13433 optional 5th argument to .TH which specifies the manual name and
13434 appears in the center of the header. Understand the X, P and D
13435 registers like Sun.
13437 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
13439 * troff/env.c (init_env_requests): New number register `.lt' to
13440 return the title length.
13442 * troff/node.h (class transparent_dummy_node): New class.
13443 * troff/node.c (class transparent_dummy_node): Provide member
13445 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
13448 * troff/input.c (token::next): New escape sequence \).
13449 * troff/input.c (get_copy): Recognize \) in copy mode.
13451 * troff/input.c (input_stack::clear): New function.
13452 * troff/input.c (exit_request): Use input_stack::clear.
13454 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
13455 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
13457 * troff/env.c: Move set_page_character to input.c. Move
13458 page_character to input.c also.
13459 * troff/env.c (title): Split off the reading of the parts of the
13460 title into read_title_parts.
13461 * troff/input.c (read_title_parts): New function. Check the
13462 input_level when testing whether a token matches the delimiter.
13464 * troff/input.c (exit_request): New function.
13465 * troff/input.c (init_input_requests): Bind ex request to
13466 exit_request rather than exit_groff.
13468 * troff/input.c (exit_groff): Call tok.next() before
13469 process_input_stack().
13471 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
13473 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
13474 * troff/env.h: ditto.
13475 * troff/input.c: ditto.
13477 * troff/env.c (environment::is_empty): Test pending_lines.
13479 * troff/env.c (environment::have_pending_lines): Removed.
13481 * troff/input.c: Add request to flush pending lines from the
13484 * troff/env.c, troff/env.h: Add automatic widow control feature.
13486 * troff/input.c (exit_groff): Do process_input_stack() after
13487 do_break() but before setting exit_flag to 2.
13489 * troff/input.c: Remove FLUSH_PENDING_LINES and
13490 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
13491 environment after END_TRAP token seen, but only if there aren't
13492 any more traps still unfinished.
13493 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
13495 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
13497 * troff/env.c: Rename the `retain_size' member of class
13498 pending_output_line to `no_fill'.
13500 * troff/env.c (title): When the line is output, make the
13501 retain_size argument !fill.
13503 * troff/node.h: Add `hyphenated' member to struct breakpoint.
13504 * troff/node.c (space_node::get_breakpoints),
13505 (dbreak_node::get_breakpoints): Fill this in.
13506 * troff/env.c: Allow specification of maximum number of
13507 consecutive hyphenated lines.
13509 * troff/env.c (environment::is_empty): Add test for !current_tab.
13511 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
13513 * troff/env.c (environment::hyphenate_line): Don't completely give
13514 up if the word is not to be hyphenated; continue so that breaks
13515 can be made at break_char_node's.
13517 * lib/lib.h: Only define INT_MAX if it's not already defined;
13518 undef INT_MIN if it's already defined.
13520 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
13522 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
13523 This works around a bug in AT&T C++ 2.0 used with an ANSI C
13526 * macros/tmac.an (an-header): Set no-space mode.
13528 * macros/tmac.an (TH): Start a new page if necessary.
13530 * Started using ChangeLog at version 0.4.
13533 version-control: never